query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Dense version of GAT. | def FIMM(YKHO, l_wy, prkQ, hr1G, J1Nm='bn', Cwt5=0.1):
super(bG8a, YKHO).__init__()
YKHO.dropout = hr1G
YKHO.nhid = l_wy
YKHO.nheads = prkQ
YKHO.graph_attentions = [qz4s(l_wy, l_wy // prkQ, dropout=hr1G, alpha=Cwt5, concat=True) for bGrB in range(prkQ)]
for YRbF, v2uf in enumerate(YKHO.graph_att... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)",
"def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z... | [
"0.64760274",
"0.61745125",
"0.6032927",
"0.6025716",
"0.5986026",
"0.5918554",
"0.5891656",
"0.58866566",
"0.58427864",
"0.58353937",
"0.5828208",
"0.5822424",
"0.58105785",
"0.5805133",
"0.5799729",
"0.57900155",
"0.5789868",
"0.57867205",
"0.57813394",
"0.57669044",
"0.576... | 0.0 | -1 |
Initialize a new ThirdPartyCodeApiV3 which uses the provided base_api | def FIMM(YKHO, NDOW):
super(Z5v_, YKHO).__init__(NDOW, Z5v_.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rkpa):\n YKHO.api_version = 'v3'\n YKHO.cloud_api = rkpa",
"def FIMM(YKHO, QvK3, Z2dz, _eu6=None):\n YKHO.experiment_id = Z2dz\n zm4o.__init__(YKHO, QvK3, _id=_eu6)",
"def FIMM(YKHO, nNXP):\n YKHO.api = nNXP",
"def FIMM(YKHO, eC7C, rJDA):\n YKHO.api_id = eC7C\n YKHO.api_ke... | [
"0.74799514",
"0.709196",
"0.68728435",
"0.68407434",
"0.68407434",
"0.682024",
"0.682024",
"0.682024",
"0.682024",
"0.6776801",
"0.6776801",
"0.6776801",
"0.6753853",
"0.6699307",
"0.65912855",
"0.6574846",
"0.6553771",
"0.6548381",
"0.6538759",
"0.65313655",
"0.65260303",
... | 0.8773156 | 0 |
Sets the result_email of this CreateFields. | def g0XY(YKHO, g0XY):
if YKHO.local_vars_configuration.client_side_validation and g0XY is not None and (len(g0XY) > 256):
raise ValueError('Invalid value for `result_email`, length must be less than or equal to `256`')
YKHO._result_email = g0XY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJpF(YKHO, Aofo):\n try:\n from zcrmsdk.src.com.zoho.crm.api.bulk_write.result import Result\n except Exception:\n from .Aofo import Result\n if Aofo is not None and (not isinstance(Aofo, Result)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: result EXPECTED TYPE: Result', None, None)... | [
"0.66192883",
"0.6554061",
"0.6441758",
"0.6222965",
"0.6222965",
"0.6222965",
"0.6222965",
"0.6222965",
"0.6189701",
"0.6185509",
"0.616115",
"0.61148053",
"0.60807735",
"0.60713935",
"0.6050563",
"0.6038407",
"0.60024786",
"0.59496903",
"0.5918849",
"0.58848",
"0.586703",
... | 0.7747435 | 0 |
Sets the return_error_url of this CreateFields. | def g1uW(YKHO, g1uW):
if YKHO.local_vars_configuration.client_side_validation and g1uW is not None and (len(g1uW) > 512):
raise ValueError('Invalid value for `return_error_url`, length must be less than or equal to `512`')
YKHO._return_error_url = g1uW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kNRZ(YKHO, kNRZ):\n try:\n YKHO._errorurl = kNRZ\n except Exception as e:\n raise tTpl",
"def vCaG(YKHO, pDYH):\n if not pDYH:\n if YKHO.__force_delauth_nonprovisioned:\n return\n YKHO.fatal('Error: setReturnUrl: Null return URL given.')\n YKHO.__returnurl =... | [
"0.63442117",
"0.6170368",
"0.6031105",
"0.6004713",
"0.59039295",
"0.58201736",
"0.55901474",
"0.54414177",
"0.53398365",
"0.5299348",
"0.5274965",
"0.5220398",
"0.52022225",
"0.51563674",
"0.51516384",
"0.5140054",
"0.5117995",
"0.50983614",
"0.50983614",
"0.5089862",
"0.50... | 0.7448702 | 0 |
Sets the email of this CreateFields. | def D3lj(YKHO, D3lj):
if YKHO.local_vars_configuration.client_side_validation and D3lj is None:
raise ValueError('Invalid value for `email`, must not be `None`')
if YKHO.local_vars_configuration.client_side_validation and D3lj is not None and (len(D3lj) > 64):
raise ValueError('Invalid value for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def srEc(YKHO, D3lj=''):\n YKHO._email = D3lj",
"def D3lj(YKHO, BWXx):\n YKHO._email = BWXx",
"def srEc(YKHO, D3lj):\n YKHO.email = D3lj",
"def lEeL(YKHO, D3lj):\n YKHO.__email = D3lj",
"def D3lj(YKHO, D3lj):\n YKHO._email = D3lj",
"def D3lj(YKHO, D3lj):\n YKHO._email = D3lj",
"def D3... | [
"0.7347257",
"0.73218864",
"0.73098546",
"0.71984863",
"0.71744305",
"0.71114695",
"0.71114695",
"0.7046611",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
"0.70307094",
... | 0.6776185 | 40 |
Sets the city of this CreateFields. | def j5sA(YKHO, j5sA):
YKHO._city = j5sA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm",
"def Eg4e(YKHO, BWXx):\n YKHO.city = BWXx\n G9jH.debug(\"User's city received\... | [
"0.76429856",
"0.7636089",
"0.7636089",
"0.7613785",
"0.7272654",
"0.7258608",
"0.70412314",
"0.70353764",
"0.6928998",
"0.6902902",
"0.68733263",
"0.68418115",
"0.65631676",
"0.655206",
"0.6545362",
"0.6443251",
"0.637301",
"0.6351052",
"0.63190734",
"0.63108295",
"0.628239"... | 0.7572033 | 6 |
Sets the api_password of this CreateFields. | def qYP0(YKHO, qYP0):
if YKHO.local_vars_configuration.client_side_validation and qYP0 is None:
raise ValueError('Invalid value for `api_password`, must not be `None`')
if YKHO.local_vars_configuration.client_side_validation and qYP0 is not None and (len(qYP0) > 40):
raise ValueError('Invalid va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n YKHO.values['password'] = vT87(jTXt)",
"def jTXt(YKHO, BWXx):\n YKHO._password = BWXx",
"def jTXt(YKHO, BWXx):\n YKHO._password = BWXx",
"def jTXt(YKHO, BWXx):\n YKHO._password = BWXx",
"def gz4m(YKHO, gz4m):\n YKHO._auth_password = gz4m",
"def G3s8(YKHO, jTXt):\n ... | [
"0.6309955",
"0.6224867",
"0.6188815",
"0.6188815",
"0.6172695",
"0.60892636",
"0.6058986",
"0.6054112",
"0.6048846",
"0.60432893",
"0.5991838",
"0.5981785",
"0.59632283",
"0.591549",
"0.59140843",
"0.5909329",
"0.5909329",
"0.59092206",
"0.5885473",
"0.58718014",
"0.58697927... | 0.7562557 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, ZJBv):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
This method should return the value that __file__ would be set to if the named module was loaded. If the module is not found, an ImportError should be raised. | def yFjF(YKHO, jeLr):
if YKHO.is_package(jeLr):
Ux0P = MlfJ.os_path_join(MlfJ.os_path_join(kbAH, jeLr.replace('.', MlfJ.os_sep)), '__init__.pyc')
else:
Ux0P = MlfJ.os_path_join(kbAH, jeLr.replace('.', MlfJ.os_sep) + '.pyc')
return Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uzhs(YKHO, P8oC):\n return YKHO.modules.get(P8oC, '')",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n return xAKo",
"def xAKo(YKHO):\n ... | [
"0.6860002",
"0.67701846",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
"0.6648184",
... | 0.0 | -1 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))",
"def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ... | [
"0.8432407",
"0.8417754",
"0.8410382",
"0.83439016",
"0.829968",
"0.8295242",
"0.82869047",
"0.82756424",
"0.8252614",
"0.81636107",
"0.81593966",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",
"0.8157497",... | 0.81406265 | 21 |
bias_variable generates a bias variable of a given shape. | def Y7ph(ROpF):
RqgG = ZylS.constant(0.1, shape=ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='bias')",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n Es0b = ZylS.Variable(RqgG)\n return Es0b",
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, s... | [
"0.8450208",
"0.843371",
"0.84225553",
"0.8418631",
"0.83956254",
"0.8339686",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.8325915",
"0.8306395",
"0.8306395",
"0.8303826",
"0.83... | 0.8330452 | 6 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134815",
"0.7896117",
"0.7551975",
"0.73699284",
"0.73402196",
"0.7335666",
"0.7311286",
"0.73011637",
"0.72905505",
"0.7242906",
"0.72419995",
"0.72191435",
"0.7199848",
"0.7199848",
"0.71561444",
"0.7117234",
"0.7117234",
"0.7117234",
"0.7105009",
"0.7105009",
"0.709816... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134949",
"0.7896553",
"0.7552023",
"0.7370427",
"0.7340749",
"0.7335147",
"0.7311818",
"0.7300764",
"0.72908205",
"0.72442716",
"0.7242433",
"0.72199464",
"0.7200061",
"0.7200061",
"0.7156488",
"0.7116912",
"0.7116912",
"0.7116912",
"0.710481",
"0.710481",
"0.70996255",
... | 0.0 | -1 |
Tags is dictionary with tag as key and bool as value. Check permission and then make form from recipe, and ingredients from query set to append to form. If form contains any data, then for correct update, must delete old data. When update recipe, then update recipe.slug. | def cbjP(QePW, rXcN=None, My4m=None):
CBIr = QePW.user
YSCM = Iofl(LC16, id=rXcN)
if not (CBIr.is_staff or CBIr == YSCM.author):
return G2TX
Y5bi = ('breakfast', 'lunch', 'dinner')
L03z = dq3a(QePW.POST or None, files=QePW.FILES or None, instance=YSCM)
qacv = YSCM.ingredients.all()
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8N5(QePW, _sei):\n YSCM = Iofl(LC16, pk=_sei, status=LC16.STATUS_DRAFT)\n if YSCM.author != QePW.user:\n raise wPvU()\n if QePW.method == 'POST':\n Vz1X = dq3a(instance=YSCM, data=QePW.POST, prefix='recipe')\n NRe5 = Wfyz(QePW.POST, QePW.FILES, prefix='photo')\n FQTU = QE5... | [
"0.62361777",
"0.5978117",
"0.5976478",
"0.5785222",
"0.5708389",
"0.5708371",
"0.5686597",
"0.5670052",
"0.5650229",
"0.56455916",
"0.5624583",
"0.5623634",
"0.5619352",
"0.5605473",
"0.5595783",
"0.5585626",
"0.5580324",
"0.55788064",
"0.5575138",
"0.557018",
"0.5515444",
... | 0.5700335 | 6 |
Builds a model that takes a triplet as input, feeds them through tower_model and outputs the triplet loss of the embeddings. | def hpSP(GhuM, kwpC):
Vcu5 = X6a0(GhuM)
VT5p = X6a0(GhuM)
tnuU = X6a0(GhuM)
kwpC.summary()
GxTV = kwpC(Vcu5)
pnJI = kwpC(VT5p)
QxTI = kwpC(tnuU)
Ayfi = Zlsf(u43A, output_shape=SfB2)([GxTV, pnJI, QxTI])
C3ST = wOed([Vcu5, VT5p, tnuU], Ayfi, name='siamese')
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8cN(_2q5, L0K3, GPtr, q16r=True, Kc3M=True):\n WKvO, M01R, P0PA, EkM0 = gl6n(_2q5, trng=L0K3, use_mask=q16r, use_noise=Kc3M, **GPtr)\n LVAh, Xl_x, OIzz, QpfX, SqHK, bGrB, IDBL = _6k9(_2q5, WKvO, M01R, P0PA, EkM0, trng=L0K3, use_mask=q16r, one_step=False, use_noise=Kc3M, **GPtr)\n BFeB = FufY(_2q5, L0... | [
"0.6483848",
"0.64834833",
"0.643348",
"0.6430853",
"0.6335422",
"0.6326714",
"0.6314902",
"0.6312131",
"0.62525684",
"0.6204896",
"0.61964226",
"0.6192085",
"0.61897093",
"0.6185676",
"0.6185607",
"0.6183626",
"0.61736226",
"0.61681515",
"0.6156846",
"0.6154864",
"0.61533445... | 0.75780845 | 0 |
Given an x, y, see if we need to register any button clicks. | def RlNs(WKvO, LVAh, OjT3):
for oD_N in OjT3:
if WKvO > oD_N.center_x + oD_N.width / 2:
continue
if WKvO < oD_N.center_x - oD_N.width / 2:
continue
if LVAh > oD_N.center_y + oD_N.height / 2:
continue
if LVAh < oD_N.center_y - oD_N.height / 2:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RlNs(YKHO, WKvO, LVAh):\n for oD_N in YKHO.button_list:\n if WKvO > oD_N.center_x + oD_N.width / 2:\n continue\n if WKvO < oD_N.center_x - oD_N.width / 2:\n continue\n if LVAh > oD_N.center_y + oD_N.height / 2:\n continue\n if LVAh < oD_N.center_y... | [
"0.7486186",
"0.7282362",
"0.7022205",
"0.7021841",
"0.7014448",
"0.6935266",
"0.6823043",
"0.678487",
"0.67184395",
"0.67132336",
"0.6673628",
"0.6659754",
"0.66541153",
"0.66407496",
"0.6581792",
"0.6573567",
"0.6516047",
"0.6481415",
"0.6461326",
"0.64322203",
"0.6392177",... | 0.72285247 | 2 |
Generates padded batches of tokens and tags. | def CLT2(Ep8u, s2mk, dJ1p, vD9X, RAmz, jBRr, RYm9, hXNa=True, CP5w=True):
cDK5 = len(s2mk)
if hXNa:
T4Wy = oyIN.random.permutation(cDK5)
else:
T4Wy = oyIN.arange(cDK5)
fO_R = cDK5 // Ep8u
if CP5w and cDK5 % Ep8u:
fO_R += 1
for G1Hx in range(fO_R):
Q4JG = G1Hx * Ep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CLT2(Ep8u, s2mk, dJ1p, hXNa=True, CP5w=True):\n cDK5 = len(s2mk)\n if hXNa:\n T4Wy = oyIN.random.permutation(cDK5)\n else:\n T4Wy = oyIN.arange(cDK5)\n fO_R = cDK5 // Ep8u\n if CP5w and cDK5 % Ep8u:\n fO_R += 1\n for G1Hx in range(fO_R):\n Q4JG = G1Hx * Ep8u\n ... | [
"0.6937649",
"0.67638904",
"0.6729031",
"0.65410215",
"0.6506747",
"0.6418687",
"0.6417855",
"0.6389375",
"0.6384587",
"0.6342465",
"0.6322877",
"0.6304844",
"0.6239785",
"0.623835",
"0.621886",
"0.6212233",
"0.61817855",
"0.61663103",
"0.61530024",
"0.61398554",
"0.6109142",... | 0.7011712 | 0 |
Creates a random list of colors for the initial mean lsit values | def c3Kc(G1Hx):
JBMS = []
for YRbF in range(G1Hx):
JBMS.append((tuKI.randint(0, 255), tuKI.randint(0, 255), tuKI.randint(0, 255)))
return JBMS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gOt5(YKHO):\n return [qukk(0, 255) / 255.0 for bGrB in range(3)]",
"def tuKI():\n return HRmL([tuKI.randint(0, 256) for WKvO in range(3)])",
"def yl06(B0DR):\n SXwH = I8kJ.colors.cnames\n qmVw = []\n for YRbF in range(B0DR):\n qmVw.append(tuKI.choice(list(SXwH.keys())))\n return qm... | [
"0.74045926",
"0.7248998",
"0.7160559",
"0.7089897",
"0.70340276",
"0.69062835",
"0.6817398",
"0.6769006",
"0.6753376",
"0.67231095",
"0.67204744",
"0.6681176",
"0.66792935",
"0.66438454",
"0.66316587",
"0.66257477",
"0.6612302",
"0.65961796",
"0.65645665",
"0.65608335",
"0.6... | 0.6227369 | 52 |
Sets the attachment_name of this MultiFormAttachmentDto. | def gAZd(YKHO, gAZd):
YKHO._attachment_name = gAZd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5jr(YKHO, s5jr):\n YKHO._attachment = s5jr",
"def s5jr(YKHO, s5jr):\n YKHO._attachment = s5jr",
"def jS0o(YKHO, gIsw):\n YKHO.response.headers['Content-Disposition'] = 'attachment;filename=%s' % gIsw",
"def zE1d(YKHO, mWFP):\n YKHO.fileName = mWFP\n if YKHO.fileName:\n YKHO.__fileN... | [
"0.5770436",
"0.5770436",
"0.5570634",
"0.5417203",
"0.53809035",
"0.53615266",
"0.53213364",
"0.53156495",
"0.53156495",
"0.52776676",
"0.52776676",
"0.5226052",
"0.5217586",
"0.5167484",
"0.516109",
"0.5148379",
"0.5142451",
"0.5119348",
"0.51129663",
"0.51069975",
"0.51032... | 0.79609954 | 0 |
Sets the attachment_description of this MultiFormAttachmentDto. | def f86t(YKHO, f86t):
YKHO._attachment_description = f86t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5jr(YKHO, s5jr):\n YKHO._attachment = s5jr",
"def s5jr(YKHO, s5jr):\n YKHO._attachment = s5jr",
"def AqxA(YKHO, l9HT):\n YKHO.description = l9HT",
"def prlj(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n if JBZA is not None and len(JBZA) > 1024:\n raise ValueE... | [
"0.5856527",
"0.5856527",
"0.57702386",
"0.56764895",
"0.56431335",
"0.56431335",
"0.56431335",
"0.5613314",
"0.5598691",
"0.5595199",
"0.5589889",
"0.5543629",
"0.5519995",
"0.5510112",
"0.54993856",
"0.5478456",
"0.5478456",
"0.5478456",
"0.5478456",
"0.5470604",
"0.5470604... | 0.7936522 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, XTqE):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Compute the xcomponent of the vorticity field. | def I7F3(Ty9i, yzQ0, gDGy, Zggd):
tpio = len(Ty9i.shape)
assert tpio == 3, 'Velocity field should be 3D'
_Re6, LVAh = ICX2(yzQ0, Zggd, axis=1)
ZUwx, epBp = ICX2(Ty9i, gDGy, axis=0)
lnPd = _Re6 - ZUwx
WKvO = gDGy[0]
return (lnPd, (WKvO, LVAh, epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnFl(YKHO):\n return YKHO.__v_x",
"def WKvO(YKHO):\n return YKHO._v_x",
"def WKvO(YKHO, d6pt):\n return gQS9.coord_vec_x(YKHO, d6pt)",
"def gKdI(YKHO):\n return YKHO.vector.getX()",
"def WKvO(YKHO) -> h8nf[mSrU.Real]:\n return YKHO.__model.solver.var_get_x(YKHO)",
"def WKvO(YKHO):\n ... | [
"0.74324155",
"0.7351796",
"0.65810424",
"0.65780777",
"0.646712",
"0.6363724",
"0.63569534",
"0.6355135",
"0.63132477",
"0.6270937",
"0.6236078",
"0.62103266",
"0.62070096",
"0.619069",
"0.6156433",
"0.61425644",
"0.61425644",
"0.6081975",
"0.6065592",
"0.60536534",
"0.60523... | 0.0 | -1 |
Adds a node to the end of the linked list. | def N8wS(YKHO, nPrm):
Q6kx = YKHO
while Q6kx.next is not None:
Q6kx = Q6kx.next
Q6kx.next = o7DN(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tj6L(YKHO, Q6kx):\n if not YKHO.head:\n YKHO.head = Q6kx\n return\n exwG = YKHO.head\n for kMLo in YKHO:\n pass\n kMLo.next = Q6kx",
"def H2v5(YKHO, Q6kx):\n if YKHO.head == None:\n YKHO.head = Q6kx\n else:\n AsCw = YKHO.head\n while AsCw.next != No... | [
"0.80276537",
"0.7900813",
"0.78073215",
"0.7781934",
"0.7778704",
"0.7767334",
"0.76245475",
"0.74878997",
"0.7485134",
"0.7481214",
"0.7461994",
"0.74399155",
"0.741144",
"0.7408291",
"0.74058086",
"0.7383077",
"0.73762655",
"0.73466265",
"0.73349446",
"0.73349446",
"0.7334... | 0.7249926 | 28 |
Removes the first node containing data. | def o5Nc(YKHO, nPrm):
Q6kx = YKHO
if Q6kx.data == nPrm:
return Q6kx.next
while Q6kx.next is not None:
if Q6kx.next.data == nPrm:
Q6kx.next = Q6kx.next.next
return Q6kx
Q6kx = Q6kx.next
raise ValueError('{} not found'.format(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_1Z(YKHO, nPrm):\n pass",
"def kSdD(YKHO, nPrm):\n if YKHO.is_empty():\n return 0\n Q6kx = YKHO.head\n CXwD = None\n while Q6kx:\n if Q6kx.data == nPrm:\n if CXwD:\n CXwD.next = Q6kx\n else:\n YKHO.head = o7DN(nPrm)\n CX... | [
"0.7986286",
"0.7811385",
"0.77691346",
"0.75315094",
"0.7460916",
"0.72772205",
"0.7272122",
"0.726832",
"0.7226687",
"0.71071786",
"0.70713085",
"0.7044721",
"0.7029368",
"0.7014834",
"0.70099604",
"0.69643456",
"0.6957567",
"0.69512826",
"0.6873786",
"0.68647283",
"0.68412... | 0.6974804 | 15 |
Color image loaded by OpenCV is in BGR mode, but Matplotlib displays in RGB mode. cv2.imread(path, style) 1 cv2.IMREAD_COLOR 0 cv2.IMREAD_GRAYSCALE 1 cv2.IMREAD_UNCHANGED | def _mtc(Ux0P):
VXjJ = XC5k.imread(Ux0P, 1)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1b1(LNo8):\n if LNo8.ndim == 2:\n d7Eb = XC5k.cvtColor(LNo8, XC5k.COLOR_GRAY2RGB)\n else:\n d7Eb = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2RGB)\n return d7Eb",
"def XvhD(LNo8):\n QrM1.figure(figsize=(12, 10), dpi=80)\n QrM1.imshow(jbYn.cvtColor(LNo8, jbYn.COLOR_BGR2RGB))\n QrM1.sh... | [
"0.738716",
"0.72054315",
"0.6822855",
"0.68165785",
"0.66481",
"0.6643942",
"0.66336966",
"0.662989",
"0.6629667",
"0.6599828",
"0.6595741",
"0.65873736",
"0.65319604",
"0.6521316",
"0.65186214",
"0.6470764",
"0.6422926",
"0.6421204",
"0.6390543",
"0.6379236",
"0.6364107",
... | 0.0 | -1 |
If no display name mapping is provided, and the global setting is defined, prefer it to the fallback calculated names. | def vDlK(YKHO):
DqlU = YPkF('menu/*')
GH48 = Yisc(templates=DqlU, display_names=None)
YKHO.assertEqual(list(GH48), [(u'menu/complicated_file-name.20xx.html', u'We keep hyphens!'), (u'menu/menu.html', u'Global menu'), (u'menu/submenu.html', u'Global Sub-menu')]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO) -> h8nf[GySg[str, str]]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> h8nf[GySg[str, str]]:\n return qe4Y.get(YKHO, 'display_name')",
"def el4M(YKHO, qQNS):\n \"\"\" \n label = ''.join(x.capitalize() or ' ' for x in display_name.split(' '))\n label = label[... | [
"0.62366015",
"0.62366015",
"0.62323886",
"0.6184505",
"0.60243744",
"0.59009176",
"0.58627236",
"0.5609061",
"0.55777",
"0.5562826",
"0.55575114",
"0.55447626",
"0.55369663",
"0.5527457",
"0.55066943",
"0.54923284",
"0.54923284",
"0.54923284",
"0.54923284",
"0.54923284",
"0.... | 0.0 | -1 |
Validate a (local) file. | def dkRF(YKHO, el7G, NArs=None):
DCgT, S7z9 = YKHO._prepare(NArs)
if isinstance(el7G, exCv):
el7G = open(el7G)
return DCgT(YKHO.session.post(YKHO.validator_url, params=S7z9, data=el7G)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dkRF(YKHO, nUeQ):\n pass",
"def dkRF(YKHO):\n Zg0d = YKHO.get_full_path()\n if Zg0d.startswith('http'):\n return True\n if not Hy7s.path.exists(Zg0d):\n Er1K.throw(bGrB('File {0} does not exist').format(YKHO.file_url), IOError)",
"def xzCw(YKHO, qaEx):\n pass",
"def dkRF(pmON... | [
"0.7890987",
"0.7639283",
"0.7595638",
"0.72367126",
"0.712479",
"0.6997824",
"0.695969",
"0.69406587",
"0.6915681",
"0.69106483",
"0.688799",
"0.6835154",
"0.6818267",
"0.68143433",
"0.6799366",
"0.6778044",
"0.673652",
"0.673226",
"0.66613525",
"0.6631203",
"0.6580673",
"... | 0.65349 | 25 |
Return a collection of isomorphic sets of the subgraphs of the Topology Graph. | def ttvw(pNZh):
EA8J = MUE7((pNZh.subgraph(Z9rn) for Z9rn in jHsn.connected_components(pNZh)))
g_ce = EA8J.popleft()
sdLq = {g_ce: []}
UHFx = 0
DDj9 = None
while EA8J:
if EA8J[0] == DDj9:
UHFx = 0
g_ce = EA8J.popleft()
sdLq[g_ce] = []
if EA8J:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JiOo(yvY1: nx.DiGraph) -> x1iM[jHsn.DiGraph]:\n lIKx = []\n for Fy8W in range(2, yvY1.number_of_nodes() + 1):\n for ktYB in (yvY1.subgraph(Utgs) for Utgs in Hs6x.combinations(yvY1, Fy8W)):\n if jHsn.is_connected(ktYB.to_undirected()):\n lIKx.append(ktYB)\n return lIKx"... | [
"0.70090353",
"0.6557755",
"0.6530304",
"0.6508109",
"0.6493454",
"0.6414864",
"0.6311681",
"0.6305484",
"0.62521327",
"0.62505627",
"0.62172437",
"0.6201682",
"0.61477715",
"0.61381245",
"0.61363477",
"0.61363477",
"0.61363477",
"0.612523",
"0.60993874",
"0.6072384",
"0.6068... | 0.6636984 | 1 |
Given a date string, return it formatted as %d %B %Y | def pbww(_c1T):
if isinstance(_c1T, str):
_c1T = qcWV.datetime.strptime(_c1T, '%Y-%m-%dT%H:%M:%S.%fZ')
return '{} {} {}'.format(_c1T.strftime('%d'), _c1T.strftime('%B'), _c1T.strftime('%Y')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbww(VmuV):\n try:\n doIl = qcWV.strptime(VmuV, '%Y-%m-%d')\n return qcWV.strftime(doIl, '%-d. %B %Y')\n except:\n return 'ERROR CONVERTING DATE FORMAT'",
"def U6Tk(_c1T) -> str:\n return _c1T.strftime('%d%m%y')",
"def pbww(WKvO):\n _c1T = ZbWC.search(_AR6, WKvO)\n if _c... | [
"0.76467866",
"0.7638396",
"0.73625374",
"0.7347579",
"0.72824365",
"0.7280569",
"0.72302246",
"0.72231394",
"0.71848446",
"0.71643466",
"0.7148125",
"0.71386296",
"0.7122648",
"0.7112919",
"0.7059808",
"0.70546776",
"0.7052577",
"0.7023156",
"0.7010827",
"0.7010827",
"0.7007... | 0.729918 | 4 |
Parse STIX tactics from the given data and return corresponding pandas dataframes. | def AT6W(zZcM, zrIJ):
BjH4 = zZcM.query([kEyY('type', '=', 'x-mitre-tactic')])
BjH4 = H_2N(BjH4)
NnyJ = []
for zM3v in PRqg(BjH4, desc='parsing mitigations'):
NnyJ.append(woNV(zM3v))
S8VF = EsPr(BjH4)
L9AY = {'tactics': rLdf.DataFrame(NnyJ).sort_values('name')}
if not S8VF.empty:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rOi4(X9KG, VYNS):\n U6zf.activate()\n vb7U = X9KG[VYNS]\n nPrm = U6zf.ri2py(vb7U)\n bySB = U6zf.ri2py(Mkmy.rownames(vb7U))\n gGnb = U6zf.ri2py(Mkmy.colnames(vb7U))\n return rLdf.DataFrame(nPrm, index=bySB, columns=gGnb)",
"def lcK2(zZcM, zrIJ):\n ELZO = zZcM.query([kEyY('type', '=', 'att... | [
"0.5922885",
"0.58810365",
"0.58095",
"0.5776128",
"0.5740307",
"0.5677972",
"0.5659525",
"0.5631412",
"0.55992997",
"0.558939",
"0.558669",
"0.55783165",
"0.5549029",
"0.5535885",
"0.552988",
"0.546329",
"0.5448166",
"0.5447976",
"0.5442578",
"0.5441671",
"0.5440188",
"0.5... | 0.6854044 | 0 |
Parse STIX relationships from the given data and return corresponding pandas dataframes. | def qaxc(zZcM, ScRM=None):
BfvW = {'technique': ['attack-pattern'], 'tactic': ['x-mitre-tactic'], 'software': ['tool', 'malware'], 'group': ['intrusion-set'], 'mitigation': ['course-of-action'], 'matrix': ['x-mitre-matrix']}
A5bL = {'attack-pattern': 'technique', 'x-mitre-tactic': 'tactic', 'tool': 'software', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fNBJ(jpc5, HSc4, K2kF):\n for exwG, wg8q in enumerate(jpc5):\n Emd4 = ['pw']\n Emd4.extend([str('x' + str(YRbF)) for YRbF in range(1, wg8q.arity + 1)])\n WLzO = []\n for r8hN, RBFf in enumerate(HSc4):\n if wg8q.relation_name in RBFf.rls:\n l7GM = []\n ... | [
"0.6225273",
"0.5875967",
"0.577859",
"0.5688259",
"0.5675876",
"0.5579823",
"0.55543894",
"0.55163467",
"0.5443562",
"0.54370534",
"0.54003",
"0.53346807",
"0.5326608",
"0.53106886",
"0.5294938",
"0.5294686",
"0.52838314",
"0.52697307",
"0.5268874",
"0.52570665",
"0.52557564... | 0.6521609 | 0 |
Wien's displacement constant is defined by b = h c / (k_B x), where x is described by this nonlinear equation. | def h1Jo(WKvO):
return 5 * epAf.exp(-WKvO) + WKvO - 5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOHS(YKHO, WKvO):\n return 3.0 * (ywwl.sin(WKvO) - WKvO * ywwl.cos(WKvO)) / WKvO ** 3",
"def QvJP(YKHO):\n zAoU = 5.373 * (1 + YKHO.w) * (1 - YKHO.Tc / YKHO.T)\n KzH2 = oyIN.log(YKHO.Pc / YKHO.P) + zAoU\n YKHO.Ki = oyIN.exp(KzH2)\n return YKHO.Ki",
"def d8MF(YKHO):\n M6pt = oyIN.abs((YKHO... | [
"0.6366038",
"0.6350895",
"0.616134",
"0.6104225",
"0.60741305",
"0.6062698",
"0.6057314",
"0.60135925",
"0.60102487",
"0.60102487",
"0.597485",
"0.5956099",
"0.5942322",
"0.58877414",
"0.5883437",
"0.58205914",
"0.58158433",
"0.5813024",
"0.5798997",
"0.5797473",
"0.5793182"... | 0.55934834 | 52 |
Passes an array of TimeStamps to an array of arrays of indices classified by day of the year | def vFew(a1PO: pd.DatetimeIndex):
exwG = len(a1PO)
vgXP = a1PO[0].dayofyear
RsfQ = a1PO[exwG - 1].dayofyear
ezWE = list()
for YRbF in range(RsfQ - vgXP + 1):
ezWE.append(list())
for YRbF in range(exwG):
vTt7 = a1PO[YRbF].dayofyear
ezWE[vTt7 - vgXP].append(YRbF)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bZaK(i8WE):\n G1Hx = list()\n for a1PO in i8WE:\n G1Hx.append(a1PO.dayofyear)\n return oyIN.array(G1Hx)",
"def W6Sf(YKHO):\n G9jH.info(' *** Finding the datetime indices ')\n qcWV = YKHO.combined['observations_table']['date_time'].values\n scat, _0VL, BWz1 = oyIN.unique(qcWV, return_... | [
"0.715207",
"0.6847844",
"0.6629368",
"0.65084153",
"0.6406433",
"0.6281001",
"0.6260094",
"0.6103528",
"0.6055036",
"0.6019868",
"0.597746",
"0.58953047",
"0.5891151",
"0.58802176",
"0.58694905",
"0.5844068",
"0.5844068",
"0.58301485",
"0.58180743",
"0.5809723",
"0.5786075",... | 0.7356312 | 0 |
Returns a deep (true) copy of this circuit | def jth9(YKHO):
piAD = Msez()
piAD.name = YKHO.name
kWPZ = dict()
for Pjr8 in YKHO.buses:
E171 = Pjr8.copy()
kWPZ[Pjr8] = E171
piAD.add_bus(E171)
for jehQ in YKHO.branches:
piAD.add_branch(jehQ.copy(kWPZ))
return piAD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO, y4ha: bool=False):\n if y4ha:\n OSh4 = YKHO.__class__(**YKHO.init_kwargs)\n for ewpR in YKHO.queue:\n if isinstance(ewpR, IXCZ.FusedGate):\n nvUx(NotImplementedError, 'Cannot create deep copy of fused circuit.')\n OSh4.add(jth9.copy(ewpR))\n e... | [
"0.7386499",
"0.7331426",
"0.71637285",
"0.7053297",
"0.7052253",
"0.6935696",
"0.6864333",
"0.6848043",
"0.68366045",
"0.68366045",
"0.6827617",
"0.6788061",
"0.6780678",
"0.6754968",
"0.6754247",
"0.67534494",
"0.67518556",
"0.6743516",
"0.67270994",
"0.6719276",
"0.6695405... | 0.66989356 | 20 |
Return a copy of this | def jth9(YKHO):
return UGyq(Sbus=YKHO.Sbus, voltage=YKHO.voltage, Sbranch=YKHO.Sbranch, Ibranch=YKHO.Ibranch, loading=YKHO.loading, losses=YKHO.losses, error=YKHO.error, converged=YKHO.converged, Qpv=YKHO.Qpv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return YKHO.__copy__()... | [
"0.88018674",
"0.87368983",
"0.87368983",
"0.87368983",
"0.87368983",
"0.87368983",
"0.8600904",
"0.8575301",
"0.8575301",
"0.8575301",
"0.8575301",
"0.8475658",
"0.8463248",
"0.8463248",
"0.84579873",
"0.84579873",
"0.8425669",
"0.8425669",
"0.84239525",
"0.84239525",
"0.842... | 0.0 | -1 |
Return a copy of this | def jth9(YKHO):
return mAvV(Sbus=YKHO.Sbus, voltage=YKHO.voltage, Sbranch=YKHO.Sbranch, Ibranch=YKHO.Ibranch, loading=YKHO.loading, losses=YKHO.losses, SCpower=YKHO.Scpower, error=YKHO.error, converged=YKHO.converged, Qpv=YKHO.Qpv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return YKHO.__copy__()... | [
"0.88018674",
"0.87368983",
"0.87368983",
"0.87368983",
"0.87368983",
"0.87368983",
"0.8600904",
"0.8575301",
"0.8575301",
"0.8575301",
"0.8575301",
"0.8475658",
"0.8463248",
"0.8463248",
"0.84579873",
"0.84579873",
"0.8425669",
"0.8425669",
"0.84239525",
"0.84239525",
"0.842... | 0.0 | -1 |
Norm of all localized perturbations to neighborhood perturbations. In other words, the column to row ratio. | def nVzB(EUkm, fdMZ=0):
Ty9i = HeDM(EUkm[:, fdMZ])
return (Ty9i ** 2).sum(1) / (Ty9i ** 2).sum(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(YKHO):\n return oyIN.sqrt(oyIN.trapz(oyIN.absolute(YKHO.values) ** 2, YKHO.grid))",
"def CkYf(YKHO):\n return 0.0",
"def tWpp():\n _T7A = [int(_dWL * (float(k_Ti - jwMT) / YNdt)) for _dWL in vkYD]\n for WKvO in Ni9Y(k_Ti - LeTs(_T7A)):\n _T7A[WKvO % ulBT] += 1\n return _T7A",
"... | [
"0.67694086",
"0.67653024",
"0.6697517",
"0.6588935",
"0.6562611",
"0.65554214",
"0.6536076",
"0.6519549",
"0.65119684",
"0.6477125",
"0.64753556",
"0.64600116",
"0.63951826",
"0.63852465",
"0.6381439",
"0.6341944",
"0.6332778",
"0.63260484",
"0.6317248",
"0.6304212",
"0.6273... | 0.0 | -1 |
Return the root of the tree, none if empty. | def tk5Y(YKHO):
raise NotImplementedError('Must be Implemented by sublcassj') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIOs(YKHO):\n return YKHO.tree[0]",
"def LIOs(YKHO):\n if YKHO.is_root_node() and type(YKHO) == YKHO._tree_manager.tree_model:\n return YKHO\n return YKHO._tree_manager._mptt_filter(tree_id=YKHO._mpttfield('tree_id'), parent=None).get()",
"def hm3W(YKHO, MQp8):\n if YKHO._base_manager:\n... | [
"0.81088215",
"0.7779587",
"0.77663547",
"0.7681145",
"0.765579",
"0.7562097",
"0.7554002",
"0.7525055",
"0.74903816",
"0.7473555",
"0.74563175",
"0.74507415",
"0.7450586",
"0.7406015",
"0.7406015",
"0.7368482",
"0.734554",
"0.730719",
"0.7296326",
"0.7263195",
"0.7250492",
... | 0.0 | -1 |
Return the Position of p's parent, None if p is root. | def _AKB(YKHO, XP5J):
raise NotImplementedError('Must be Implemented by subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
... | [
"0.8630883",
"0.85906744",
"0.85906744",
"0.85906744",
"0.85906744",
"0.85111016",
"0.8456477",
"0.7712212",
"0.7602154",
"0.7602028",
"0.7561333",
"0.75458074",
"0.7532445",
"0.73829085",
"0.73589",
"0.73571265",
"0.72302777",
"0.7119812",
"0.71069294",
"0.70974994",
"0.7049... | 0.0 | -1 |
Return true if p represents the root of the tree. | def kFcs(YKHO, XP5J):
return YKHO.root() == XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO, XP5J):\n return XP5J == YKHO.root()",
"def kFcs(YKHO, XP5J):\n return YKHO.root() == XP5J",
"def kFcs(YKHO, XP5J):\n return YKHO.root() == XP5J",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def loae(YKHO, XP5J):\n return YKHO.num_children(XP5J) == 0",
"def loa... | [
"0.8941415",
"0.8595431",
"0.8438637",
"0.758424",
"0.7571505",
"0.7571505",
"0.7571505",
"0.7571505",
"0.7571505",
"0.7571505",
"0.74853766",
"0.74808556",
"0.74543244",
"0.743128",
"0.7395286",
"0.7389944",
"0.73561126",
"0.73436624",
"0.729592",
"0.7281933",
"0.72598743",
... | 0.87613636 | 1 |
Return the height of the tree. assuming self.children will take time less than O(n) this algorithm computes the height, O(cp + 1) where cp is number of children of node p, traverses them one by one Each position of T with exception to the root, is a child of another position, and thus contributes one to the sum sump cp... | def rj3P(YKHO, XP5J):
if YKHO.is_leaf(XP5J):
return 0
else:
return 1 + max((YKHO.height2(Z9rn) for Z9rn in YKHO.children(XP5J))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oyMm(YKHO, XP5J):\n if YKHO.is_leaf(XP5J):\n return 0\n else:\n return 1 + max((YKHO.__height(Z9rn) for Z9rn in YKHO.children(XP5J)))",
"def H2v2(YKHO):\n if YKHO.is_leaf():\n return 1\n return 1 + max((aUGN.height() for aUGN in YKHO.children))",
"def wvKd(YKHO, XP5J):\n ... | [
"0.7845202",
"0.77749854",
"0.76192766",
"0.7601781",
"0.75859547",
"0.7552577",
"0.74974424",
"0.745553",
"0.7438384",
"0.7423611",
"0.73853594",
"0.73853594",
"0.73574567",
"0.7337432",
"0.73232484",
"0.7320493",
"0.73186475",
"0.7231055",
"0.7226554",
"0.7193448",
"0.71921... | 0.73371214 | 14 |
Return the height of subtree rooted at Position p. | def H2v2(YKHO, XP5J=None):
if XP5J is None:
XP5J = YKHO.root()
return YKHO.height2(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO.__height(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO._height(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return... | [
"0.86230147",
"0.8571341",
"0.8475489",
"0.84107774",
"0.8190091",
"0.7870219",
"0.78555006",
"0.77012056",
"0.7696713",
"0.7676021",
"0.7353631",
"0.722707",
"0.71766466",
"0.71611434",
"0.710296",
"0.7096837",
"0.7070132",
"0.7050346",
"0.7046605",
"0.70323175",
"0.6969359"... | 0.8668884 | 0 |
Generate an iteration of the tree's elements. | def Vs4Q(YKHO):
for XP5J in YKHO.positions():
yield XP5J.element() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XN2a(YKHO):\n YKHO._cur_path = []\n yield from YKHO._iter_tree()",
"def Vs4Q(YKHO):\n if YKHO.root:\n for tTpl in YKHO.root.leafOrder():\n yield tTpl",
"def AOUI(YKHO):\n for oWrg in YKHO.subtree(including=True):\n yield oWrg",
"def VoWx(YKHO):\n yield YKHO\n fo... | [
"0.7426076",
"0.73346937",
"0.7300699",
"0.7259946",
"0.7259946",
"0.71754175",
"0.71547484",
"0.7137907",
"0.71300936",
"0.7112337",
"0.70850015",
"0.70425314",
"0.7028112",
"0.70187074",
"0.69799995",
"0.6949566",
"0.69356906",
"0.6923274",
"0.68941593",
"0.6887925",
"0.688... | 0.6529763 | 55 |
Manually expire all sessions in the pool. | async def clear(YKHO):
for cuiw in list(YKHO.values()):
if cuiw.state != Cy2T:
await cuiw._remote_closed()
YKHO.sessions.clear()
super(jzp7, YKHO).clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zhlt(YKHO):\n YKHO.sync_session.expire_all()",
"def pg_u(YKHO):\n del YKHO.site.sessions[YKHO.uid]\n for Z9rn in YKHO.expireCallbacks:\n Z9rn.callback(YKHO)\n YKHO.expireCallbacks = []",
"def pg_u(YKHO):\n del YKHO.site.sessions[YKHO.uid]\n for Z9rn in YKHO.expireCallbacks:\n ... | [
"0.78247386",
"0.70702344",
"0.698387",
"0.6948968",
"0.6802581",
"0.6753144",
"0.6536016",
"0.652342",
"0.6404894",
"0.6402891",
"0.63504434",
"0.62731695",
"0.6268439",
"0.6268334",
"0.62599486",
"0.6205195",
"0.6189507",
"0.61448854",
"0.61391294",
"0.6129184",
"0.609494",... | 0.6096274 | 20 |
Computes padding size given a TF convolution or pooling node. | def TEnu(Q6kx, Ot1W, _0fC):
Aafd = Q6kx.attr['padding']
G9jH.vlog(4, 'padding_attr = %s', Aafd)
if Aafd.s in K16c:
dvgN = 0
elif Aafd.s in RLOy:
if Ot1W == 1:
dvgN = 0
elif _0fC == 1:
dvgN = int(epAf.floor((float(Ot1W) - 1) / 2))
elif _0fC == 2 and... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _CSs(Q6kx, _lpz):\n EVUR = Q6kx.input[1]\n if not EVUR.endswith('/paddings'):\n raise ValueError(\"Padding layer name does not end with '/paddings'\")\n krxp = _lpz[EVUR].node\n if krxp.op != 'Const':\n raise ValueError('Padding op is not Const')\n BWXx = krxp.attr['value']\n a1... | [
"0.7445483",
"0.74184513",
"0.69956917",
"0.697239",
"0.69031864",
"0.6892894",
"0.6823668",
"0.68066585",
"0.6692643",
"0.6661514",
"0.6612412",
"0.6611959",
"0.66105556",
"0.6605755",
"0.66025853",
"0.66002804",
"0.65940535",
"0.65817773",
"0.6554145",
"0.6519982",
"0.65130... | 0.8163473 | 0 |
Gets layer parameters relevant for RF computation. | def iO99(Q6kx, _lpz):
G9jH.vlog(3, 'node.op = %s', Q6kx.op)
G9jH.vlog(4, 'node = %s', Q6kx)
if Q6kx.op == 'Conv2D' or Q6kx.op == 'DepthwiseConv2dNative':
VUio, yMSE = QqMF(Q6kx)
yOdv, iqlb = A8ju(Q6kx, _lpz)
_OSm = TEnu(Q6kx, yOdv, VUio)
vwCW = TEnu(Q6kx, iqlb, yMSE)
elif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO):\n return (YKHO.reliability_for_action, YKHO.discount, YKHO.learning_rate, YKHO.momentum, YKHO.bias, YKHO.hidden_layers, YKHO.number_of_neurons)",
"def OqPV(YKHO):\n O_uP = sQC5.get_param('~depth_topic')\n D2K7 = sQC5.get_param('~face_topic')\n hwDo = sQC5.get_param('~output_topic')\n ... | [
"0.714897",
"0.7148026",
"0.69764143",
"0.69447",
"0.69045067",
"0.67502207",
"0.67489016",
"0.6739478",
"0.6739478",
"0.6703412",
"0.6699755",
"0.66762584",
"0.66693085",
"0.6665694",
"0.6662086",
"0.66326916",
"0.6606494",
"0.6605122",
"0.65994895",
"0.659906",
"0.65877473"... | 0.62409925 | 68 |
Computes effective stride at the input of a given layer. | def HNeN(_0fC, N7ej):
return _0fC * N7ej | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VM2q(zNig, Ot1W, _0fC):\n return (zNig - Ot1W) // _0fC + 1",
"def VM2q(zNig, Ot1W, _0fC):\n return (zNig - Ot1W) // _0fC + 1",
"def U0a7(_0fC, dvgN, pFms):\n return _0fC * pFms + dvgN",
"def PP5A(Emd4) -> ht2j.Tensor:\n return ht2j.tensor([128 / WKvO.shape[-2] for WKvO in Emd4.model(ht2j.zero... | [
"0.6654883",
"0.6654883",
"0.64095676",
"0.6389217",
"0.63860136",
"0.63657856",
"0.62793684",
"0.62275165",
"0.6219951",
"0.6191912",
"0.61853576",
"0.6156132",
"0.6139172",
"0.61252856",
"0.60825324",
"0.606842",
"0.6065798",
"0.6040788",
"0.6031304",
"0.6018583",
"0.600786... | 0.6983046 | 0 |
Returns a number equal to the maximum number of vowels in one word | def y8ry(l5Ny, cKRe='AEIOUY'):
V22M = l5Ny.split()
_jxP = []
for GIN8 in V22M:
UHFx = 0
for v1tz in GIN8:
if v1tz.upper() in cKRe:
UHFx += 1
_jxP.append(UHFx)
return max(_jxP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xGxP(l5Ny):\n bfPc = float('-inf')\n tbiS = None\n for GIN8 in l5Ny.lower().split():\n VFMH = 0\n for bseI in GIN8:\n if bseI in Moq7:\n VFMH += 1\n if VFMH > bfPc:\n bfPc = VFMH\n tbiS = GIN8\n return (tbiS, bfPc)",
"def xGxP(l... | [
"0.80355626",
"0.79129523",
"0.7632889",
"0.73275703",
"0.727996",
"0.71487355",
"0.70578665",
"0.70404595",
"0.69165695",
"0.6879294",
"0.6742847",
"0.6736307",
"0.6732243",
"0.6680178",
"0.6634135",
"0.6611334",
"0.6609495",
"0.6571623",
"0.65478945",
"0.6540149",
"0.652013... | 0.740684 | 3 |
Converts card figure (210, J, Q, K, A) into an integer representation. | def PnwD(wEf2):
if wEf2 in range(2, 11):
return int(wEf2)
if wEf2 == 'J':
return 11
if wEf2 == 'Q':
return 12
if wEf2 == 'K':
return 13
if wEf2 == 'A':
return 14
return ValueError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPOP(YKHO):\n return PnwD(YKHO.figure)",
"def dMj6(YKHO, dxhl):\n BWXx = dxhl[-1]\n if BWXx == 'A':\n return 11\n elif BWXx in ['J', 'Q', 'K', '0']:\n return 10\n elif BWXx == '1':\n raise Exception(\"\\n\\nThe card '{}' is invalid. If you need an Ace,\\nchange the label o... | [
"0.7215202",
"0.651171",
"0.6399758",
"0.61856973",
"0.6181021",
"0.61043406",
"0.6096344",
"0.60691875",
"0.6065414",
"0.6040927",
"0.60038066",
"0.59125084",
"0.5863279",
"0.5842449",
"0.58376265",
"0.580865",
"0.5804621",
"0.5730529",
"0.5716169",
"0.5714834",
"0.5702713",... | 0.73181 | 0 |
Provides a string representation of the current Card instance. | def zAg0(YKHO):
if YKHO.covered:
return '|??|'
if YKHO.color == '♠' or YKHO.color == '♣':
return '|' + rUyw.WHITE + str(YKHO.figure) + YKHO.color + Wx5P.RESET_ALL + '|'
else:
return '|' + rUyw.RED + str(YKHO.figure) + YKHO.color + Wx5P.RESET_ALL + '|' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Card({0}, {1})'.format(str(YKHO.get_number()), YKHO.get_colour().__str__())",
"def wHJl(YKHO):\n return str(YKHO.cards)",
"def wHJl(YKHO):\n return 'Card({0}, {1})'.format(str(YKHO.get_number()), YKHO.get_colour().__str__())",
"def zAg0(YKHO):\n return f'Card({YKHO._numb... | [
"0.81420743",
"0.8120446",
"0.80037004",
"0.7992897",
"0.7938495",
"0.79051346",
"0.78871304",
"0.7880414",
"0.7874248",
"0.77880013",
"0.7761208",
"0.77514684",
"0.77313805",
"0.77294326",
"0.7725365",
"0.7710733",
"0.7700974",
"0.76816213",
"0.76356184",
"0.76329064",
"0.76... | 0.0 | -1 |
Initializes the donor's first name, last name and creates a new donation list for the donor. Their first donation will be appended to the donation list. | def FIMM(YKHO, c9ua, zp3f, OOWi):
YKHO.first_name = c9ua
YKHO.last_name = zp3f
YKHO.donation_list = []
YKHO.append_donation(OOWi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l0hJ(YKHO, cntZ, XVAW):\n YKHO.donor_list.append(nh4x(cntZ, XVAW))",
"def BbKc():\n XbHb.append(['George Washington', [1789.0, 1.0, 1797.0]])\n XbHb.append(['Abraham Lincoln', [1861.0, 16.0]])\n XbHb.append(['James Madison', [1809.0, 4.0]])\n XbHb.append(['Theodore Roosevelt', [1901.0, 26.0, 6... | [
"0.7656063",
"0.74283457",
"0.73152643",
"0.7087739",
"0.6981293",
"0.6920356",
"0.6915747",
"0.690935",
"0.68529725",
"0.6840342",
"0.68210405",
"0.680028",
"0.67665017",
"0.6756869",
"0.6678424",
"0.66695625",
"0.6601189",
"0.65720284",
"0.6569127",
"0.6541148",
"0.650616",... | 0.8022231 | 0 |
The donor's full name. Primarily used for printing purposes in the main script. The full name is how the user will see the donor names printed out in the report or when the user just wants to see a list of donor names. | def xpqj(YKHO, cntZ=None, XVAW=None):
if cntZ == None and XVAW == None:
return YKHO.first_name + ' ' + YKHO.last_name
else:
return cntZ + ' ' + XVAW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO) -> str:\n return f'{YKHO.rider['first_name']} {YKHO.rider['last_name']}'",
"def xpqj(YKHO):\n return '{0} {1}'.format(YKHO.owner.first_name, YKHO.owner.last_name).strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, ZbWC.sub(' - ADMIN', '', YKHO.last_name))\n return eHMM.s... | [
"0.785405",
"0.7686525",
"0.7543288",
"0.75396997",
"0.74941176",
"0.74901783",
"0.7485534",
"0.7476467",
"0.7466608",
"0.7418694",
"0.74185854",
"0.74185854",
"0.74178225",
"0.74133056",
"0.74133056",
"0.7411963",
"0.7405758",
"0.7387074",
"0.7387074",
"0.7387074",
"0.738707... | 0.0 | -1 |
Appends a new donation to the donor's donation list. There is no limit on the amount of donations a donor can give. | def PvnO(YKHO, yJpz):
YKHO.donation_list.append(yJpz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtQ7(YKHO, OOWi):\n if type(YKHO.donations) != list:\n YKHO.donations = []\n YKHO.donations.append(OOWi)",
"def SStx(YKHO, OOWi):\n YKHO.donation_list.append(OOWi)",
"def OOWi(YKHO, OOWi):\n YKHO.donations.append(OOWi)",
"def VtQ7(YKHO, Z5kt):\n YKHO.donations += [Z5kt]",
"def Ref... | [
"0.82492334",
"0.81829184",
"0.816652",
"0.77621245",
"0.76771384",
"0.76244473",
"0.75847024",
"0.7552587",
"0.75464785",
"0.75324637",
"0.75035626",
"0.7401275",
"0.72983694",
"0.72882503",
"0.7282688",
"0.7236799",
"0.72185713",
"0.7197276",
"0.71856326",
"0.7117881",
"0.7... | 0.82067525 | 1 |
Returns a thank you message after someone has donated | def kH9V(YKHO):
CQCz = '\nThank you {0:s} for you generous donation of ${1:.2f}.\n'.format(YKHO.get_full_name(), round(YKHO.donation_list[-1], 2))
return CQCz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W1Or():\n wSZD = EG21()\n OOWi = Sb5o(wSZD)\n print(Bc4p.thank_donor(wSZD))",
"def cNKi(YKHO):\n hGN5 = '\\n\\n'.join([f'\\nDear {YKHO.name},', 'Thank you for your generous donation in the amount of ${:.2f}! Have a great day!\\n'.format(YKHO.donations[len(YKHO.donations) - 1])])\n return hGN5"... | [
"0.8330447",
"0.817889",
"0.79877687",
"0.7750342",
"0.76598704",
"0.760834",
"0.76044035",
"0.75661564",
"0.74911153",
"0.7446607",
"0.7415991",
"0.73783374",
"0.7372668",
"0.7349734",
"0.7224095",
"0.7149924",
"0.71306294",
"0.71204007",
"0.70639133",
"0.7034201",
"0.699961... | 0.72237456 | 15 |
When a new donor is added the the collection, the init function in the donor class will be called because we want to create a new instance of a Donor | def l0hJ(YKHO, cntZ, XVAW, OOWi):
if YKHO.donor_exists(cntZ, XVAW):
DHHD = YKHO.create_dict_key(cntZ, XVAW)
YKHO.donor_dict[DHHD].append_donation(OOWi)
else:
yQUJ = nh4x(cntZ, XVAW, OOWi)
YKHO.append_collection_dict(yQUJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.donor_dict = {}",
"def FIMM(YKHO, c9ua, zp3f, OOWi):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.donation_list = []\n YKHO.append_donation(OOWi)",
"def b2Ap():\n G9jH.basicConfig(level=G9jH.INFO)\n bo34 = G9jH.getLogger(__name__)\n p9bx = tdMG('mailroo... | [
"0.70435184",
"0.6736061",
"0.670072",
"0.6653013",
"0.6625799",
"0.6587653",
"0.6572492",
"0.6533507",
"0.6412907",
"0.63638127",
"0.63418925",
"0.627769",
"0.6256276",
"0.6237393",
"0.6220228",
"0.62071496",
"0.616857",
"0.6090741",
"0.6056199",
"0.60423046",
"0.6006371",
... | 0.6741371 | 1 |
Retrieves the thank you message for a specific donor | def fQr5(YKHO, cntZ, XVAW):
DHHD = YKHO.create_dict_key(cntZ, XVAW)
return YKHO.donor_dict[DHHD].thank_you_letter() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W1Or():\n wSZD = EG21()\n OOWi = Sb5o(wSZD)\n print(Bc4p.thank_donor(wSZD))",
"def zOSv():\n mWFP = gTfm()\n if not mWFP:\n return True\n q8Qv = WRNr(name=mWFP)\n print(wz1O.get_thank_you_email(donor=mWFP, new_donation=float(q8Qv)))\n return True",
"def cNKi(YKHO):\n hGN5 ... | [
"0.7802888",
"0.7574085",
"0.732265",
"0.7233185",
"0.7129698",
"0.704037",
"0.701949",
"0.70148975",
"0.7009308",
"0.6944361",
"0.68504244",
"0.67829686",
"0.6769354",
"0.6763925",
"0.6746365",
"0.6728677",
"0.66913885",
"0.6681269",
"0.66662455",
"0.6662809",
"0.66549903",
... | 0.6776887 | 12 |
format path using os.normpath and removes "\\". | def cZ8_(pmON):
try:
return str(Hy7s.path.normpath(pmON).replace('\\', '/'))
except:
return str(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aoz7(YKHO, pmON):\n ENtY = Qumu.normpath(pmON)\n if pmON.endswith('/') and (not ENtY.endswith('/')):\n ENtY += '/'\n return ENtY",
"def ENtY(pmON):\n return Hy7s.path.normpath(pmON)",
"def n9WL(Nx5N):\n return pmON.normpath(Nx5N)",
"def V5gm(pmON):\n pmON = Hy7s.path.normpath(pmO... | [
"0.8195218",
"0.8191394",
"0.78466815",
"0.7770502",
"0.7649352",
"0.7632372",
"0.762981",
"0.7626059",
"0.7622597",
"0.75626165",
"0.75285566",
"0.7470281",
"0.74313223",
"0.7430817",
"0.74204165",
"0.7417777",
"0.7386347",
"0.73259723",
"0.73199534",
"0.73170644",
"0.731594... | 0.8392305 | 0 |
Find the middle index of a python list | def nxZM(IqQl):
Hpmo = float(len(IqQl)) / 2
if Hpmo % 2 != 0:
return IqQl[int(Hpmo - 0.5)]
else:
return (IqQl[int(Hpmo)], IqQl[int(Hpmo - 1)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMu1(J_VL):\n AUb7 = None\n if len(J_VL):\n if len(J_VL) == 1:\n AUb7 = 0\n else:\n AUb7 = round(len(J_VL) / 2 + 0.01)\n return AUb7",
"def mMu1(J_VL):\n AUb7 = None\n if len(J_VL):\n if len(J_VL) == 1:\n AUb7 = 0\n else:\n ... | [
"0.84820205",
"0.84820205",
"0.837507",
"0.75982744",
"0.7349587",
"0.7335664",
"0.7333702",
"0.7262277",
"0.72591174",
"0.7130687",
"0.7038717",
"0.7035249",
"0.70294917",
"0.6923373",
"0.6845378",
"0.67481196",
"0.6692573",
"0.66507745",
"0.66402185",
"0.66311735",
"0.66142... | 0.78140515 | 3 |
Evenly split a list by specified number. | def nJNG(mZmz, FGW3):
G1Hx, r8hN = divmod(len(mZmz), FGW3)
yvT9 = list((mZmz[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in Ni9Y(FGW3)))
yvT9 = [z1Rg for z1Rg in yvT9 if z1Rg]
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNUG(UrXw, cZYJ):\n UHFx = 0\n FhX7 = []\n Ezbi = []\n for YRbF in range(len(UrXw)):\n FhX7.append(UrXw[YRbF])\n UHFx += 1\n if UHFx > 0 and UHFx % cZYJ == 0:\n UHFx = 1\n Ezbi.append(FhX7)\n FhX7 = [UrXw[YRbF]]\n return Ezbi",
"def lpha(yv... | [
"0.7886323",
"0.7843737",
"0.77673876",
"0.7761697",
"0.7568065",
"0.749531",
"0.7466132",
"0.7401437",
"0.7361196",
"0.7342705",
"0.73336256",
"0.72827286",
"0.7268599",
"0.7268452",
"0.72638714",
"0.7258405",
"0.7238554",
"0.7237552",
"0.722991",
"0.72208977",
"0.72098935",... | 0.8280712 | 0 |
Strip name space dagpath name. | def BGNs(mWFP):
s2mk = mWFP.split('|')
Aofo = ''
for YRbF, eOtH in enumerate(s2mk):
if YRbF > 0:
Aofo += '|'
DQYq = None
eOtH = eOtH.split('.')
if len(eOtH) > 1:
DQYq = '.'.join(eOtH[1:])
eOtH = eOtH[0]
Aofo += eOtH.split(':')[-1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UyQ0(mWFP):\n pu8V = mWFP.split('//')\n if len(pu8V) == 1:\n return mWFP.strip()\n else:\n return '//'.join(pu8V[:len(pu8V) - 1]).strip()",
"def B5sD(YKHO, pmON):\n if pmON.startswith('/'):\n pmON = pmON[1:]\n return pmON",
"def B5sD(pmON: str) -> str:\n return '.'.jo... | [
"0.6971038",
"0.6754264",
"0.65464634",
"0.6528279",
"0.6497641",
"0.6497585",
"0.6490608",
"0.6439958",
"0.6384783",
"0.63312525",
"0.62855816",
"0.6277407",
"0.61963695",
"0.61871386",
"0.6169388",
"0.616302",
"0.6152533",
"0.6131239",
"0.6110855",
"0.61003745",
"0.6086674"... | 0.6389811 | 8 |
Get the current model panel. | def F_0E(YKHO):
lYEE = FQNo.getPanel(visiblePanels=True)
for mAB6 in lYEE:
if mAB6.find('modelPanel') != -1:
YKHO.mp = mAB6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FbYK(YKHO):\n return YKHO._panel",
"def JPhW(YKHO):\n return YKHO.__module_panel",
"def MNSy(YKHO):\n return YKHO._panel",
"def F_0E():\n H_az = ccKF.getPanel(type='modelPanel') or []\n d5Su = ccKF.getPanel(withFocus=True) or []\n Dubw = ccKF.getPanel(visiblePanels=True) or []\n BT9a... | [
"0.7635451",
"0.7577008",
"0.7554452",
"0.7325065",
"0.7225556",
"0.68453693",
"0.6528663",
"0.6515333",
"0.6451384",
"0.6335167",
"0.62968713",
"0.6284742",
"0.6270811",
"0.6244452",
"0.6180216",
"0.6169877",
"0.6156632",
"0.6150299",
"0.613729",
"0.61322194",
"0.6131861",
... | 0.8400904 | 0 |
Sell shares of stock. | def ZBqQ():
if QePW.method == 'POST':
iTlw = int(QePW.form.get('shares'))
o61b = QePW.form.get('symbol')
xrA5 = ccBJ(o61b)
weUZ = Z9rn.execute('SELECT share FROM stocks where id = ? AND symbol=?', (cuiw['user_id'], o61b)).fetchone()
if int(weUZ[0]) < iTlw:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLdO(YKHO, o61b, Z5kt):\n pass",
"def vLdO(YKHO):\n pass",
"def e4Ga(YKHO, q9zX, FGW3, RdoJ):\n pass",
"def D3VZ(YKHO):\n YKHO.txnumber = YKHO.txnumber + 1\n B__k = YKHO.portfolio.positions[YKHO.stockB].amount\n YKHO.order(YKHO.stockB, -1 * B__k)\n VjqK = YKHO.portfolio.positions[YKH... | [
"0.8072918",
"0.8063354",
"0.76947683",
"0.7503331",
"0.7384993",
"0.7310677",
"0.71882445",
"0.71568274",
"0.70857376",
"0.7041662",
"0.7009744",
"0.69902384",
"0.69897187",
"0.6959713",
"0.6925477",
"0.6925465",
"0.69224066",
"0.68414044",
"0.68296736",
"0.6818411",
"0.6784... | 0.6676572 | 28 |
Name of this pipeline. | def W0tD(YKHO):
return YKHO._pipeline['name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBkE(YKHO):\n return YKHO._pipeline_name",
"def jBkE(YKHO) -> I2jr:\n return YKHO.artifact.properties['pipeline_name'].string_value",
"def mWFP(YKHO):\n return YKHO.stage['name']",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n ret... | [
"0.89149016",
"0.8315031",
"0.78193474",
"0.7693054",
"0.7687584",
"0.7687584",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
"0.7678182",
... | 0.90445507 | 0 |
Test for _lookup_ids Ask for a test ID that does not exist yet | def itxF(YKHO, KD0m, lgmb, hrGj):
IiJE = {'links': [], 'page': 1, 'page_size': 100, 'total': 0, 'items': []}
hrGj(IiJE)
Ud7_ = YQYC(KD0m, lgmb, rjWG)
Ud7_.parse()
GPIy = DmtE(Ud7_)[0]
assert GPIy.qtest_testcase_id is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KXuM(YKHO):\n yrkh = [YKHO.parser.parse_args(qIxc) for qIxc in Awrq() if 'lookup' in qIxc]\n for qIxc in yrkh:\n TpAC.tools.assert_false(qIxc.func(qIxc))\n TpAC.tools.assert_true(len(p9bx.read_table(ASun, TLdo)) == rhRv)\n for AIu6 in bvgk():\n TpAC.tools.assert_true(p9bx.... | [
"0.6492473",
"0.64217657",
"0.64175147",
"0.6193289",
"0.601179",
"0.601139",
"0.60106003",
"0.6007264",
"0.5936537",
"0.59317136",
"0.59147894",
"0.5862446",
"0.57685196",
"0.5757751",
"0.573505",
"0.5708405",
"0.5695534",
"0.5684485",
"0.5653675",
"0.56356746",
"0.56318927"... | 0.64985615 | 0 |
Test for _lookup_ids Ask for a test ID that does not exist yet | def pyZN(YKHO, KD0m, lgmb, hrGj):
IiJE = {'links': [], 'page': 1, 'page_size': 100, 'total': 0, 'items': []}
hrGj(IiJE)
Ud7_ = YQYC(KD0m, lgmb, rjWG)
Ud7_.parse()
GPIy = DmtE(Ud7_)[0]
assert GPIy.test_execution_parameters == ['ansible://localhost'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itxF(YKHO, KD0m, lgmb, hrGj):\n IiJE = {'links': [], 'page': 1, 'page_size': 100, 'total': 0, 'items': []}\n hrGj(IiJE)\n Ud7_ = YQYC(KD0m, lgmb, rjWG)\n Ud7_.parse()\n GPIy = DmtE(Ud7_)[0]\n assert GPIy.qtest_testcase_id is None",
"def KXuM(YKHO):\n yrkh = [YKHO.parser.parse_args(qIxc) ... | [
"0.64985615",
"0.6492473",
"0.64217657",
"0.64175147",
"0.6193289",
"0.601179",
"0.601139",
"0.60106003",
"0.6007264",
"0.5936537",
"0.59317136",
"0.59147894",
"0.5862446",
"0.57685196",
"0.5757751",
"0.573505",
"0.5708405",
"0.5695534",
"0.5684485",
"0.5653675",
"0.56356746"... | 0.0 | -1 |
Test for _lookup_ids Ask for a test ID that does not exist yet | def JLgB(YKHO, Mjgf, lgmb, hrGj):
IiJE = {'links': [], 'page': 1, 'page_size': 100, 'total': 0, 'items': []}
hrGj(IiJE)
Ud7_ = YQYC(Mjgf, lgmb, rjWG)
Ud7_.parse()
GPIy = DmtE(Ud7_)[0]
assert GPIy.test_execution_parameters == ['_testinfra_host0'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itxF(YKHO, KD0m, lgmb, hrGj):\n IiJE = {'links': [], 'page': 1, 'page_size': 100, 'total': 0, 'items': []}\n hrGj(IiJE)\n Ud7_ = YQYC(KD0m, lgmb, rjWG)\n Ud7_.parse()\n GPIy = DmtE(Ud7_)[0]\n assert GPIy.qtest_testcase_id is None",
"def KXuM(YKHO):\n yrkh = [YKHO.parser.parse_args(qIxc) ... | [
"0.6498479",
"0.6492139",
"0.642195",
"0.64167666",
"0.6192426",
"0.6012974",
"0.6012167",
"0.6009168",
"0.6005975",
"0.59354013",
"0.5933516",
"0.5913566",
"0.5863964",
"0.57690114",
"0.5758938",
"0.57365334",
"0.5707523",
"0.56960386",
"0.5683825",
"0.5652646",
"0.5636116",... | 0.0 | -1 |
Test to ensure that test artifacts are being correctly attached Ensure that there are two attachments, one of type xml and one of type text. | def giCr(YKHO, fXxQ, lgmb, hrGj):
hrGj()
Ud7_ = YQYC(fXxQ, lgmb, rjWG)
Ud7_.parse()
GPIy = DmtE(Ud7_)[0]
assert GPIy.stderr == 'stderr'
assert GPIy.stdout == 'stdout'
assert isinstance(GPIy.qtest_test_log.attachments, list)
assert len(GPIy.qtest_test_log.attachments) == 4
assert GPIy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRvj(YKHO, KD0m):\n VSXJ = V66C._load_input_file(KD0m)\n mV9U = V66C._generate_test_logs(VSXJ)[0].to_dict()\n q59f = ZbWC.compile('^junit_.+\\\\.xml$')\n Uxwh = 'application/xml'\n zPGN = '17a3778912a8bf149eaf13311e82b85e'\n assert q59f.match(mV9U['attachments'][0]['name']) is not None\n a... | [
"0.7651173",
"0.7050745",
"0.6891829",
"0.68849057",
"0.6819738",
"0.67753494",
"0.6747271",
"0.66966724",
"0.6645325",
"0.6633096",
"0.65938514",
"0.65865844",
"0.65624833",
"0.65600884",
"0.6538966",
"0.6522693",
"0.65094525",
"0.6458702",
"0.6456034",
"0.645493",
"0.645225... | 0.6948938 | 2 |
Get the SDPMaster device server version attribute. | def Q5cB(YKHO):
return M_SI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO.device_version_",
"def nnPr(YKHO):\n geh0 = YKHO.makeRequest('midas.version')\n return geh0['version']",
"def nnPr(YKHO):\n geh0 = YKHO.makeRequest('midas.version')\n return geh0['version']",
"def KZVb(YKHO):\n _hkX = G4JS.get(TDhU(YKHO.baseurl, '/'), auth=YKHO... | [
"0.7841361",
"0.76472914",
"0.76472914",
"0.758069",
"0.7445761",
"0.73557556",
"0.72996825",
"0.72325265",
"0.722793",
"0.7218214",
"0.72111136",
"0.7191881",
"0.7191881",
"0.7027921",
"0.7023245",
"0.7001161",
"0.6988821",
"0.692946",
"0.6911465",
"0.69061345",
"0.69029266"... | 0.7554515 | 4 |
Composes successful container with a function that returns a container. In other words, it modifies the function's | def exLp(m2Zb: Callable[[_FirstType], IO[_UpdatedType]]) -> GE6k[YrBT[[We2H[H4ml, EYl7, rD2s, g8bL]], We2H[H4ml, dtvF, rD2s, g8bL]]]:
@IL72
def i_PC(zGKt: KindN[_IOLikeKind, _FirstType, _SecondType, _ThirdType]) -> We2H[H4ml, dtvF, rD2s, g8bL]:
return zGKt.bind_io(m2Zb)
return i_PC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OB3i(JfyU, zGKt):\n\n def se9s(WKvO):\n if isinstance(WKvO, oKbK):\n XpDD = se9s(WKvO.rets)\n b6Y0 = se9s(WKvO.kwrets)\n return oKbK(*XpDD, **b6Y0)\n elif isinstance(WKvO, VsgV):\n LVAh = [se9s(ATUZ) for ATUZ in WKvO]\n if hasattr(WKvO, 'c... | [
"0.6788235",
"0.65565485",
"0.6363217",
"0.608225",
"0.5986159",
"0.59526056",
"0.5806009",
"0.5751922",
"0.57292074",
"0.5653705",
"0.56353045",
"0.56216717",
"0.56175405",
"0.5600485",
"0.55713314",
"0.5463771",
"0.54526234",
"0.5436565",
"0.5378636",
"0.5371642",
"0.533597... | 0.0 | -1 |
Calculate weighter average on series | def KiTx(dy_H, _mSQ):
Aofo = 0.0
_mSQ.reverse()
for exwG in range(len(_mSQ)):
Aofo += dy_H.iloc[-exwG - 1] * _mSQ[exwG]
return float(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkoD(YKHO):\n for _x49, dUg8 in YKHO.weights.items():\n GamQ = {}\n for TZ9E, upAO in dUg8.items():\n wd7a = YKHO._totals[_x49, TZ9E] + (YKHO.i - YKHO._tstamps[_x49, TZ9E]) * upAO\n GamQ[TZ9E] = float(wd7a) / float(YKHO.i)\n YKHO.weights[_x49] = GamQ",
"def S8vG(... | [
"0.7310155",
"0.7294406",
"0.72884154",
"0.72845125",
"0.72426355",
"0.7232487",
"0.72166246",
"0.7059575",
"0.701712",
"0.70093936",
"0.69941694",
"0.69941694",
"0.69477683",
"0.69047",
"0.6896101",
"0.6881422",
"0.68747735",
"0.6858398",
"0.68556595",
"0.6854367",
"0.683143... | 0.79586285 | 0 |
Initializing instance for opening the youtube video | def PuTj(YKHO):
HywK.open(YKHO.trailer_youtube_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, CZKo, leAC=None, *, lGbz=None):\n YKHO.video_url = CZKo\n YKHO.loop = lGbz or V7ok.get_event_loop()\n YKHO.ytdl = J65f.YoutubeDL(cQYH)\n YKHO.title = leAC\n YKHO.channel = None\n YKHO.requester = None\n YKHO.downloaded = False",
"def FIMM(YKHO, CZKo, leAC=None, *, lGbz=None):\... | [
"0.7249855",
"0.7249855",
"0.70006984",
"0.694",
"0.693046",
"0.67349523",
"0.66850245",
"0.6637272",
"0.65962833",
"0.65810645",
"0.6573101",
"0.65193915",
"0.6496539",
"0.64872706",
"0.6474735",
"0.64611983",
"0.6454344",
"0.6450377",
"0.64308625",
"0.64090794",
"0.64073527... | 0.0 | -1 |
Set up an employee to work in the tests. | def FCbF(YKHO):
YKHO.eric = TjLA('eric', 'matthews', 60000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.employee = TjLA('Edward', 'Stone', 120000)",
"def FCbF(YKHO):\n YKHO.my_employee = TjLA('adam', 'baker', 78000)",
"def FCbF(YKHO):\n YKHO.emp_1 = TjLA('Corey', 'Schafer', 50000)\n YKHO.emp_2 = TjLA('sue', 'SMITH', 60000)",
"def FCbF(YKHO):\n YKHO.new_employee = TjLA('Chr... | [
"0.8109781",
"0.8098345",
"0.80428475",
"0.80302083",
"0.798215",
"0.7963808",
"0.7909649",
"0.79046786",
"0.78644395",
"0.7830443",
"0.775512",
"0.75861055",
"0.7070587",
"0.7059681",
"0.70070934",
"0.6955193",
"0.6812731",
"0.67871517",
"0.65522677",
"0.65064305",
"0.650388... | 0.80035776 | 4 |
New instance of these coordinates | def fwuD(Emd4, Ddli: Union[Sequence, np.ndarray], rYO3: Union[str, 'Unit']='Å amu^1/2') -> 'OptCoordinates':
ezWE = super().__new__(Emd4, oyIN.array(Ddli), rYO3)
if ezWE.ndim != 2 or ezWE.shape[0] != 3:
raise ValueError('Dimer coordinates must be initialised from a 3x3N array for a system with N atoms')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, WKvO, epBp):\n return super(PvyL, Emd4).__new__(PvyL, (WKvO, epBp))",
"def FIMM(YKHO, W0Eb):\n YKHO.xx = W0Eb\n if len(YKHO.xx.shape) == 2:\n YKHO.xx = oyIN.expand_dims(YKHO.xx, axis=0)",
"def FIMM(YKHO, LTIa=None):\n if LTIa is not None:\n YKHO.setCoordinate(LTIa)",
... | [
"0.7425846",
"0.7134025",
"0.7085119",
"0.70491457",
"0.70465994",
"0.70301425",
"0.7020629",
"0.69915164",
"0.69883645",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
"0.69745994",
... | 0.0 | -1 |
Accepts sheet name to be read Returns sheet data object of the specified sheet. | def lV60():
OGYo = nKtp()
zxr_ = OGYo.worksheet(khdS)
return zxr_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v34T(nPrm, khdS):\n OGYo = ooDa(nPrm[khdS])\n return OmHg(OGYo)",
"def FycR(YKHO, VgNm):\n if isinstance(VgNm, int):\n return ja1s(YKHO.tables[VgNm])\n elif isinstance(VgNm, str):\n YRbF = YKHO.sheet_names.index(VgNm)\n if YRbF != -1:\n return ja1s(YKHO.tables[YRbF... | [
"0.79861426",
"0.73707753",
"0.72817916",
"0.7007589",
"0.6938661",
"0.6912041",
"0.6883465",
"0.6867469",
"0.68173194",
"0.6813975",
"0.67612684",
"0.673056",
"0.6707852",
"0.66674125",
"0.6641819",
"0.6575856",
"0.65497786",
"0.65236837",
"0.6508495",
"0.64853543",
"0.64805... | 0.7632792 | 1 |
Return the state attributes. | def R1i3(YKHO):
return YKHO.attr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.82891315 | 21 |
Gets a global state that has been previously set. | def OEQv(YKHO, pe5E):
return YKHO.states.get(pe5E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8ye(YKHO):\n if not YKHO.state_loaded:\n raise ValueError('The state is not fully loaded/computed yet.')\n return YKHO._stats",
"def ja6o(YKHO):\n with YKHO.__state_lock:\n return YKHO.sys_state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__stat... | [
"0.7249274",
"0.7233562",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"0.7233165",
"... | 0.0 | -1 |
Creates an instance of this client using the provided credentials file. | def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa):
return E8Km.from_service_account_file.__func__(opGp, Ux0P, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)",
"def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N... | [
"0.7249915",
"0.7053171",
"0.68975395",
"0.68081045",
"0.6802571",
"0.6738844",
"0.67199385",
"0.6675532",
"0.6666354",
"0.6666354",
"0.6666354",
"0.6666354",
"0.6666354",
"0.6660721",
"0.6660721",
"0.6660721",
"0.6660721",
"0.6660721",
"0.6646984",
"0.6643617",
"0.66432035",... | 0.0 | -1 |
[summary] This function is the function which creates the final result image. This function has the traditional but slow nested for loop approach to build the image. It begins by first getting the blank image of the size of the new image from the createBlankImageArray function above. | def _D2Q(YKHO, Y_Pt, oudh):
print('Processing...')
xuF5, BQGg, h3cg = YKHO.createBlankImageArray(Y_Pt, oudh)
for iVRZ in range(0, xuF5.shape[0]):
for rdlD in range(0, xuF5.shape[1]):
print('processing' + str(iVRZ) + ' out of ' + str(xuF5.shape[0]))
dnvY = oyIN.dot(YKHO.homogr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUMZ(YKHO, Y_Pt, oudh):\n C9mA = []\n KRre = []\n kNW2 = []\n for YRbF in range(4):\n C9mA.append(oyIN.dot(YKHO.homographies[Y_Pt], YKHO.image_sizes_corner_points_HC[oudh][YRbF]))\n for YRbF, U6D_ in enumerate(C9mA):\n C9mA[YRbF] = U6D_ / U6D_[2]\n for U6D_ in C9mA:\n KRr... | [
"0.69535285",
"0.6905317",
"0.6665636",
"0.660473",
"0.6485097",
"0.64697504",
"0.6346842",
"0.6344289",
"0.62982225",
"0.627648",
"0.6212541",
"0.6196732",
"0.6188248",
"0.61852556",
"0.6153167",
"0.61453694",
"0.61241835",
"0.61172175",
"0.611083",
"0.6106916",
"0.61062896"... | 0.61387396 | 16 |
[We construct the A Matrix with dimension 8X8 and then we calculate the inverse of A matrix needed for the homography calculation] | def POuO(YKHO, gGq6, OozY):
YKHO.parameterMatrix = oyIN.zeros((8, 8))
for YRbF in range(4):
YKHO.parameterMatrix[2 * YRbF][0] = YKHO.roiList[gGq6][YRbF][0]
YKHO.parameterMatrix[2 * YRbF][1] = YKHO.roiList[gGq6][YRbF][1]
YKHO.parameterMatrix[2 * YRbF][2] = 1.0
YKHO.parameterMatrix... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lPRk(k0lF):\n return oyIN.linalg.inv(k0lF)",
"def ZX_G():\n Ty9i = oyIN.array([[674, 318], [546, 454], [676, 580], [800, 452]])\n P6bq = oyIN.array([[942, 301], [453, 402], [944, 517], [1426, 402]])\n KkY2 = oyIN.zeros((8, 2 * P6bq.shape[0]))\n for G1Hx in range(2 * P6bq.shape[1]):\n Kk... | [
"0.7012719",
"0.69353247",
"0.6748384",
"0.6651146",
"0.66061336",
"0.6514672",
"0.651252",
"0.64579356",
"0.64362353",
"0.64273626",
"0.6349872",
"0.6341897",
"0.62895036",
"0.6255208",
"0.6251711",
"0.6246787",
"0.6243651",
"0.6235768",
"0.6210882",
"0.6204137",
"0.6159558"... | 0.0 | -1 |
[summary] Calculate the homography matrix to eliminate both projective and affine distortion | def hRqf(YKHO, oudh):
fdOb = []
hD5A = []
C9mA = []
C9mA.append(oyIN.cross(YKHO.roiList[oudh][0], YKHO.roiList[oudh][1]))
C9mA.append(oyIN.cross(YKHO.roiList[oudh][1], YKHO.roiList[oudh][3]))
C9mA.append(oyIN.cross(YKHO.roiList[oudh][1], YKHO.roiList[oudh][3]))
C9mA.append(oyIN.cross(YKHO.ro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZat(zZcM, zr3f):\n mLGw = zZcM.shape[0]\n ac8D = []\n for G1Hx in range(mLGw):\n rtbV = oyIN.append(zZcM[G1Hx], 1)\n jCbG = oyIN.append(zr3f[G1Hx], 1)\n ukbL = [-jCbG[2] * rtbV[0], -jCbG[2] * rtbV[1], -jCbG[2] * rtbV[2], 0, 0, 0, jCbG[0] * rtbV[0], jCbG[0] * rtbV[1], jCbG[0] * rt... | [
"0.71550816",
"0.7124742",
"0.7036147",
"0.70188385",
"0.70113975",
"0.7010288",
"0.70030254",
"0.6896037",
"0.6836928",
"0.6790792",
"0.67693454",
"0.6759528",
"0.67240983",
"0.6657254",
"0.66230285",
"0.65768343",
"0.6554941",
"0.6544673",
"0.64706594",
"0.64348483",
"0.642... | 0.6050024 | 38 |
Calculates next power of 2. | def rCT3(exwG):
ju77 = oyIN.log2(exwG)
kqeo = int(oyIN.ceil(ju77))
return 2 ** kqeo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RqDx(WKvO):\n return GYhQ.b2NextPowerOfTwo(WKvO)",
"def xBap(mLGw):\n if mLGw <= 0:\n return 0\n oOzV = 1\n while oOzV < mLGw:\n oOzV <<= 1\n return oOzV",
"def kWLa(exwG):\n if exwG <= 0:\n return 1\n cWFu = 1 << int(exwG).bit_length()\n if cWFu >> 1 == exwG:\n... | [
"0.8508409",
"0.84729373",
"0.8470314",
"0.8469568",
"0.8444447",
"0.842979",
"0.8385023",
"0.8338564",
"0.8254141",
"0.8252647",
"0.82341814",
"0.8211122",
"0.8205367",
"0.8205367",
"0.8090705",
"0.8055159",
"0.80346996",
"0.7955318",
"0.7943328",
"0.7803192",
"0.77940613",
... | 0.79786676 | 17 |
Calculates the Fourier transform of the squared envelope | def b6Iq(Z9rn):
Lgxx = int(rCT3(len(Z9rn)))
sEAN = oyIN.abs(Z9rn) ** 2
o4sw = oyIN.abs(oyIN.fft.fft((sEAN.ravel() - oyIN.mean(sEAN)) * oyIN.hanning(len(sEAN)) / len(sEAN), Lgxx))
return o4sw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WqGg(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = XTiz.fft.fftshift(XTiz.fft.fft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half':\n ... | [
"0.6711722",
"0.66943824",
"0.6638382",
"0.6606481",
"0.6554863",
"0.6553027",
"0.6484817",
"0.6232796",
"0.62318856",
"0.61778283",
"0.6112852",
"0.6101667",
"0.6091533",
"0.6077585",
"0.60631555",
"0.6061319",
"0.60577685",
"0.6052071",
"0.60219616",
"0.6010671",
"0.6008174... | 0.608294 | 13 |
Return response for API to return | def T_2m(nyyK, Ol8d, vr43):
geh0 = {'success': nyyK, 'message': Ol8d}
if vr43:
geh0.update(vr43)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def geh0(YKHO):\n return (YKHO.get_data(), EloR.OK)",
"def iXC1(YKHO):\n _hkX = {}\n return YKHO.response(200, **_hkX)",
"def Yxsy(YKHO):\n return ['xxx']",
"def T_2m(YKHO):\n pass",
"def geh0(YKHO, *qIxc, **B2fa):\n bD7m = YKHO.build_url(*qIxc, **B2fa)\n return YKHO.session.get(bD7m)"... | [
"0.7485333",
"0.74613893",
"0.7340531",
"0.7279849",
"0.71478647",
"0.71270025",
"0.71270025",
"0.71270025",
"0.71219534",
"0.7099341",
"0.70446354",
"0.7004985",
"0.6999304",
"0.69954336",
"0.6994513",
"0.69648737",
"0.69646454",
"0.69600916",
"0.6931716",
"0.6901931",
"0.68... | 0.0 | -1 |
Filters out everything but white pixels | def hWYg(YKHO):
m3DV = YKHO.greyscale_threshold(YKHO.l)
AUJm = oyIN.zeros_like(YKHO.l)
nB8I = YKHO.l > m3DV
AUJm[nB8I] = 1
return AUJm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n for e3Fk in YKHO.all_onscreen_pixels():\n e3Fk.force_black()",
"def m2Qf(e3Fk):\n return 0",
"def Jcz5(LNo8):\n for e3Fk in LNo8:\n xUgQ = e3Fk.red + e3Fk.green + e3Fk.blue\n if xUgQ >= hluo:\n e3Fk.green = 218\n e3Fk.blue = 185\n return ... | [
"0.677601",
"0.67620057",
"0.65170336",
"0.6510751",
"0.64798605",
"0.644319",
"0.64319533",
"0.638334",
"0.6382078",
"0.6369777",
"0.63513064",
"0.63421625",
"0.6322571",
"0.6316095",
"0.6262602",
"0.6251967",
"0.6236467",
"0.6219588",
"0.6219015",
"0.6191845",
"0.61594886",... | 0.5763382 | 85 |
Get the display name for a record. | def y0hN(AIu6):
return AIu6['LoadBalancerName'] + ' (' + AIu6['DNSName'] + ')' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0hN(AIu6):\n return str(AIu6['family']) + ':' + str(AIu6['revision'])",
"def y0hN(YKHO):\n return YKHO.display_name",
"def Jx3D(YKHO):\n Aofo = YKHO.get_attribute(s6Cf.AttributeIds.DisplayName)\n return Aofo.Value.Value",
"def y0hN(YKHO):\n return YKHO._data['name']",
"def y0hN(YKHO):\n... | [
"0.84351593",
"0.8138397",
"0.8106009",
"0.80886763",
"0.79851794",
"0.7963243",
"0.78847617",
"0.7789131",
"0.7789131",
"0.7789131",
"0.7784329",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77832454",
"0.77814615",
"0.... | 0.81564265 | 1 |
Create an auto scaling group. | def eLpg(z39Z, mWFP, khuV=None, AzGG=None, SQxz=None, Npkd=None, VgIM=None, dJ1p=None):
if vtfo(z39Z, mWFP):
tO9_ = "Load balancer '" + str(mWFP) + "' already exists."
raise MRPk(tO9_)
TaQy = []
if AzGG:
for ANtU in AzGG:
FCTS = w15Y.fetch(z39Z, ANtU)
if FCTS:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jrBu(YKHO, jAwo):\n return YKHO._update_group('CreateAutoScalingGroup', jAwo)",
"def ng4s(YKHO):\n if YKHO.name in [jAwo.name for jAwo in YKHO.conns.asg.get_all_groups()]:\n raise uRWd(YKHO.name)\n mQPL = []\n if YKHO.dsl_elems.create_load_balancer:\n mQPL.append(YKHO.dsl_elems.load... | [
"0.83832943",
"0.78709143",
"0.7321394",
"0.70514363",
"0.67823184",
"0.6768022",
"0.6617353",
"0.66128135",
"0.65150213",
"0.6504747",
"0.6438278",
"0.6398103",
"0.6379997",
"0.6379323",
"0.6375694",
"0.6368198",
"0.63555604",
"0.6343186",
"0.63110375",
"0.63082814",
"0.6295... | 0.0 | -1 |
Read sf_data_file and get number of vertices. | def FEUK(TJfj):
bCYe = open(TJfj, 'r')
uV1E = bCYe.read()
pan_ = 'element vertex '
exwG: int = int([geyT for geyT in uV1E.split('\n') if geyT.startswith(pan_)][0].split(pan_)[1])
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrQl(YKHO):\n with open(nUeQ, 'r'):\n gffn = len(YKHO.prot_dict)\n return gffn",
"def ts4V(YKHO):\n return len(YKHO.data)",
"def MrQl(YKHO):\n return YKHO._n",
"def X7h0(YKHO):\n return len(YKHO.vertices)",
"def JalI(YKHO):\n return len(YKHO.vertices)",
"def poMF(YKHO):\n... | [
"0.77341896",
"0.7101596",
"0.7067086",
"0.6881599",
"0.6819249",
"0.6801095",
"0.6778153",
"0.67657566",
"0.67657566",
"0.67647487",
"0.67647487",
"0.6721508",
"0.6703485",
"0.67007047",
"0.6663492",
"0.66534936",
"0.66320664",
"0.66184497",
"0.65988976",
"0.6590935",
"0.657... | 0.7241699 | 1 |
Get mean of angles the successif vectors used in the reconstruction. return mean an variance of the angles. | def _JAf(YI5I, PXGI='deg'):
bLm4 = []
for YRbF in range(YI5I.shape[1] - 1):
p06G = 0
yKrh = oyIN.dot(YI5I[YRbF] / oyIN.linalg.norm(YI5I[YRbF]), YI5I[YRbF + 1] / oyIN.linalg.norm(YI5I[YRbF + 1]))
if yKrh < 0:
p06G = oyIN.pi
bLm4.append(oyIN.arccos(yKrh) + p06G)
bLm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BSDs(YKHO):\n if YKHO.spike_count > 2:\n return hfFz.array_mean(oyIN.diff(YKHO.spikes.x))\n elif YKHO.spike_count == 2:\n Csk6 = YKHO.spikes.x[1] - YKHO.spikes.x[0]\n return hfFz.vartype(Csk6, 0.001)\n else:\n return hfFz.vartype(YKHO._obj.injection_interval, 0.001)",
"de... | [
"0.65711385",
"0.6554233",
"0.6490799",
"0.6426056",
"0.64086854",
"0.6395953",
"0.631825",
"0.63124615",
"0.62935907",
"0.62851673",
"0.6259078",
"0.62373656",
"0.62035686",
"0.6160415",
"0.6142467",
"0.6128564",
"0.6128564",
"0.6106779",
"0.6093646",
"0.6092393",
"0.6091978... | 0.58739716 | 59 |
Convert a response from pymatgen.MPRester into a matador document, via an ASE atoms object. Expects certain properties to be requested in order to construct a full matador document, e.g. `structure` & `input`. | def Kvty(geh0):
if 'structure' not in geh0:
raise RuntimeError('`structure` key missing, nothing to scrape...')
JeL8 = SDan.get_atoms(geh0['structure'])
A97Q = LCwC(JeL8)
A97Q['source'] = []
if 'material_id' in geh0:
A97Q['_mp_id'] = geh0['material_id']
A97Q['source'].append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fXAR(g8x2):\n if not xu0H.FOUND_ASE:\n print('ASE must be installed to convert a Structure to an Atoms object')\n return\n RR8p = l4iq.Atoms(g8x2.name, cell=g8x2.cell, scaled_positions=g8x2.coords, magmoms=g8x2.magmoms)\n return RR8p",
"def eFst(TBXe):\n from matdb.atoms import Atom... | [
"0.59684813",
"0.5762055",
"0.5649338",
"0.56147087",
"0.5585992",
"0.54997534",
"0.5442599",
"0.5389187",
"0.53739494",
"0.530266",
"0.529488",
"0.52270055",
"0.52210075",
"0.52185225",
"0.51492465",
"0.51182145",
"0.5081418",
"0.50438076",
"0.5042354",
"0.50349563",
"0.5011... | 0.6805061 | 0 |
Return True if permission is granted to the user owner. | def m4il(YKHO, QePW, tTee, YEnM):
if isinstance(YEnM, J0qS):
return YEnM.owner == QePW.user
return YEnM.owner == QePW.user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFLq(QePW, qsJ6):\n return qsJ6 in E6ft(QePW) or not CyBR(QePW)",
"def HPs4(YKHO, CBIr):\n if YKHO.owner is None:\n return True\n return CBIr.pk == YKHO.owner",
"def o27r(YKHO):\n return 'r' in YKHO.perms_owner",
"def qHTF(YKHO, CBIr, XeOP, _sei):\n return CBIr.is_authenticated",
... | [
"0.8250142",
"0.77628547",
"0.77568066",
"0.7665576",
"0.7631894",
"0.7555509",
"0.7497917",
"0.74924463",
"0.7487669",
"0.74611986",
"0.7438899",
"0.74372095",
"0.7427013",
"0.7427013",
"0.7423103",
"0.7416273",
"0.7412625",
"0.7410317",
"0.7406208",
"0.7390697",
"0.73867476... | 0.73490894 | 22 |
The location to which the exit leads. | def eLig(YKHO):
return YKHO._to_location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NmWI(YKHO) -> str:\n return YKHO._end_location",
"def sxXJ(YKHO):\n return (3, 7)",
"def eOt8(YKHO) -> str:\n return qe4Y.get(YKHO, 'steps_location')",
"def yuHr(YKHO):\n return J8uC.SBValue_GetLocation(YKHO)",
"def vG9E(YKHO):\n if 'location' in YKHO.options:\n return YKHO.option... | [
"0.6691527",
"0.63700515",
"0.63109934",
"0.6191189",
"0.6187683",
"0.61802393",
"0.6151352",
"0.61406034",
"0.61406034",
"0.6125911",
"0.61189336",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"0.61008453",
"... | 0.0 | -1 |
Converts a location to a default textual representation. | def OROw(Rci7):
leAC = Rci7.name
leAC += ' (exits: '
t6xE = len(Rci7.exits)
if t6xE == 0:
leAC += '<none>'
for YRbF in range(t6xE):
W1gw = Rci7.exits[YRbF]
leAC += W1gw.direction.name
if YRbF < t6xE - 1:
leAC += ', '
leAC += ')'
if Rci7.description... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PrXH(YKHO):\n raise NotImplementedError",
"def L2UI(YKHO, Rci7):\n str = 'Name: {}\\n'.format(Rci7['name'])\n str += 'Author: {}\\n'.format(Rci7['author']['name'])\n str += 'Coordinates: ({}, {})\\n'.format(Rci7['coords']['x'], Rci7['coords']['y'])\n if Rci7['coords']['z'] is not None:\n ... | [
"0.69832057",
"0.6783679",
"0.6687023",
"0.65875596",
"0.657467",
"0.6552894",
"0.6547059",
"0.65181863",
"0.6441838",
"0.64277524",
"0.6398281",
"0.63721627",
"0.6335443",
"0.6321316",
"0.62450206",
"0.614686",
"0.6127658",
"0.61132294",
"0.6108287",
"0.6087358",
"0.6073775"... | 0.6815569 | 1 |
The name of the location. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuUm(YKHO):\n return YKHO._location_name",
"def mWFP(YKHO):\n Rci7 = YKHO._data.get_location(YKHO._location_id)\n return Rci7.name",
"def WuUm(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location_name')",
"def mWFP(YKHO):\n return f'{YKHO._vehicle.name} Location'",
"def Rci7(YKHO)... | [
"0.91085607",
"0.88925266",
"0.8409371",
"0.81875765",
"0.81131315",
"0.80346185",
"0.77857465",
"0.77790123",
"0.77790123",
"0.77790123",
"0.77790123",
"0.77790123",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
"0.774023",
... | 0.0 | -1 |
The description of the location. | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rci7(YKHO) -> str:\n return YKHO._dd_text_for_label('Location:')",
"def Ervk(YKHO) -> h8nf[str]:\n raise NotImplementedError()",
"def wE8e(YKHO) -> cuzp:\n pass",
"def Rci7(YKHO) -> str:\n pass",
"def JBZA(YKHO):\n return YKHO._placemark.description",
"def JBZA(YKHO):\n return YKHO.... | [
"0.7815415",
"0.76513976",
"0.7569169",
"0.75184715",
"0.7452391",
"0.74167585",
"0.7326487",
"0.7296207",
"0.7264338",
"0.7225716",
"0.7202354",
"0.7154822",
"0.7134328",
"0.7105689",
"0.70967746",
"0.70967746",
"0.7083435",
"0.70758396",
"0.7070974",
"0.7054874",
"0.7048660... | 0.0 | -1 |
Convert an expression into a binary decision diagram. | def OOMF(VN2L):
tk5Y = VN2L.top.var
_GPK, DNNB = VN2L.cofactors(VN2L.top)
try:
gqRb = o7Sc[_GPK]
except KeyError:
gqRb = OOMF(_GPK)
try:
ODP9 = o7Sc[DNNB]
except KeyError:
ODP9 = OOMF(DNNB)
H5ew = (tk5Y, gqRb.root, ODP9.root)
try:
Q6kx = tp0w[H5ew]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnf0(lsX7: eda.Expression, oLzv: Path):\n pNZh = LSFv(lsX7.to_dot())\n pNZh.render(oLzv, view=False, format='pdf')",
"def F9aX(VN2L):\n return LSFv(JNGZ(VN2L))",
"def GO1l(XxFT, t4zr, yhS3):\n M_NZ = J_Es.DecisionTreeClassifier()\n M_NZ.fit(XxFT, yhS3)\n aMgO = M_NZ.predict(t4zr)\n J_E... | [
"0.6187023",
"0.59635085",
"0.5523858",
"0.5391212",
"0.5386097",
"0.5333241",
"0.5286421",
"0.52178204",
"0.52013135",
"0.51634985",
"0.51570237",
"0.51443595",
"0.5125603",
"0.5125603",
"0.5125603",
"0.50856864",
"0.5075171",
"0.5030051",
"0.50255144",
"0.49987316",
"0.4976... | 0.6151338 | 1 |
draws all the objects in the game in their correct position | def EyrD(YKHO):
eHOn, US0K = YKHO.__ship.get_location()
D4Cc = YKHO.__ship.get_heading()
YKHO.__screen.draw_ship(eHOn, US0K, D4Cc)
for O6AE in YKHO.__astroids_list:
oFUi, ETJH = O6AE.get_location()
YKHO.__screen.draw_asteroid(O6AE, oFUi, ETJH)
for v5_8 in YKHO.__torpedos_list:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KPYr():\n global fuel_available\n BWYr.draw_bg(ufJO)\n SByc.draw_obstacles(ufJO)\n LOQe.draw_coins(ufJO)\n ZDn9.draw_fg(ufJO)\n for gwN3 in dJ8d.Coin_spark_effects.coin_effects_list:\n gwN3.draw(ufJO)\n for kp2y in dJ8d.Hit_effects.hit_effects_list:\n kp2y.draw(ufJO)\n if ... | [
"0.78008384",
"0.7726205",
"0.7646359",
"0.763746",
"0.762966",
"0.758126",
"0.75332814",
"0.75024843",
"0.74945134",
"0.7473255",
"0.7449747",
"0.7441307",
"0.7385225",
"0.738129",
"0.73728865",
"0.7359561",
"0.73595285",
"0.7325473",
"0.7313571",
"0.7282495",
"0.7281391",
... | 0.72353756 | 22 |