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 |
|---|---|---|---|---|---|---|
Toggle file selector and btn enabled/disabled | def UKRd(YKHO):
if YKHO.file_txt.isEnabled():
YKHO.file_txt.setDisabled(True)
YKHO.select_btn.setDisabled(True)
else:
YKHO.file_txt.setEnabled(True)
YKHO.select_btn.setEnabled(True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PY3l(YKHO):\n YKHO.choose_file_button.setEnabled(True)\n YKHO.file_label.setEnabled(True)\n YKHO.disable_available_selection()\n YKHO.disable_url_selection()",
"def H5cM(YKHO, TEdI):\n YKHO.control_toggle_files = TEdI.get_active()",
"def R9uZ(YKHO):\n YKHO.choose_file_button.setEnabled(Fa... | [
"0.81621474",
"0.73488265",
"0.7121812",
"0.70815617",
"0.6887282",
"0.6762694",
"0.6615756",
"0.65818",
"0.6533349",
"0.6337755",
"0.6280902",
"0.61647713",
"0.61012936",
"0.6093453",
"0.6084033",
"0.6077153",
"0.6013642",
"0.5994266",
"0.599153",
"0.5933323",
"0.59320724",
... | 0.6682539 | 6 |
Test response when an incorrect comment id is passed | def XnyR(YKHO):
Qi1G = YKHO.get_reaction_url(102876, 'like')
geh0 = YKHO.client.post(Qi1G)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQ0K(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.create_comment(s5ru)\n pQGt = aM_I.data.get('id')\n qRCH = YKHO.client.post('/api/articles/{}/comments/{}/like/'.format(s5ru, 70000), HTTP_AUTHORIZATION='Bearer ' + YKHO.token, format='json')\n qRCH = ... | [
"0.75256336",
"0.7524466",
"0.7505832",
"0.7395464",
"0.7240051",
"0.7233622",
"0.7173166",
"0.7156423",
"0.71563405",
"0.715149",
"0.7127277",
"0.71136826",
"0.7043326",
"0.70275265",
"0.6979277",
"0.69779176",
"0.697352",
"0.6959138",
"0.6952076",
"0.6932251",
"0.6924728",
... | 0.8062871 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(PhJ3, YKHO).__init__(*qIxc, **c_sp)
if YKHO.type is None:
YKHO.type = 0
if YKHO.dimensions is None:
YKHO.dimensions = []
if YKHO.triangles is None:
YKHO.triangles = []
if YKHO.vertices i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167091",
"0.7721305",
"0.7721305",
"0.7653387",
"0.75735575",
"0.7544938",
"0.7486126",
"0.74712706",
"0.7458634",
"0.7447028",
"0.74456894",
"0.74340963",
"0.741523",
"0.7408652",
"0.73922",
"0.7376216",
"0.7364397",
"0.73264366",
"0.7325022",
"0.7325022",
"0.7325022",
... | 0.0 | -1 |
Returns the latest score. It would be the last element on the scores list. | def fsbt(YKHO):
return YKHO.scores[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fsbt(cCrA: int):\n return cCrA[-1]",
"def jB5X(YKHO):\n return max(YKHO.scores)",
"def kI8N(YKHO):\n return max(YKHO.scores)",
"def kI8N(YKHO):\n return max(YKHO.scores)",
"def JjOV(YKHO):\n return YKHO.scored_paths[0][0]",
"def hckV(YKHO):\n if YKHO.max_score == -1:\n eyqE =... | [
"0.8525167",
"0.75999135",
"0.75764155",
"0.75764155",
"0.7510643",
"0.74903244",
"0.7392181",
"0.72572255",
"0.7224638",
"0.719501",
"0.7164168",
"0.7164168",
"0.71618307",
"0.7134945",
"0.71191525",
"0.7104369",
"0.70097196",
"0.69932663",
"0.6966573",
"0.6940045",
"0.69112... | 0.8925751 | 0 |
Prepare the quaternion version of the ocp | def _flQ(DOdV: str, A2w5: float, r8cA: int, D0JN=ZiVK.RK4()):
oyIN.random.seed(0)
ILkH = YbWo.Model(DOdV)
XEMI, BqRQ, eWgG = (-100, 100, 0)
nDRN = ILkH.nbQ()
iwVX = ILkH.nbQdot()
MxeJ = ILkH.nbGeneralizedTorque() - 6
q2zA = bV2A()
q2zA.add(th4X, custom_type=mo6Q.Lagrange, weight=-1, node... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zlEL(YKHO, vexM):\n vexM = oyIN.array(vexM)\n if abs(oyIN.sum(vexM ** 2) - 1.0) > 1e-06:\n raise ValueError('Quaternion must be normalized so sum(q**2) == 1; use Quaternion.normalize')\n YKHO._q = vexM if vexM[3] > 0 else -vexM\n YKHO._equatorial = None\n YKHO._T = None",
"def FIMM(YKHO... | [
"0.6345989",
"0.6335601",
"0.63337374",
"0.62789226",
"0.62520796",
"0.61947507",
"0.6181743",
"0.6151253",
"0.61439526",
"0.60608304",
"0.60326767",
"0.5943814",
"0.5923347",
"0.5918733",
"0.5898412",
"0.58739483",
"0.5849213",
"0.5846965",
"0.58468574",
"0.57966304",
"0.578... | 0.7003639 | 0 |
Setup a test case environment. Creates a fake volume object and sets up the required API responses. | def FCbF(YKHO):
super(KfuQ, YKHO).setUp()
OaeV = QpfX.RequestContext('fake', 'fake', auth_token=True)
YKHO.volume = n3tr.fake_volume_obj(OaeV)
KcEq = 'host@backend#{}:{}'.format(YKHO.PROT_DOMAIN_NAME, YKHO.STORAGE_POOL_NAME)
YKHO.volume.host = KcEq
YKHO.HTTPS_MOCK_RESPONSES = {YKHO.RESPONSE_MODE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(sHdu, YKHO).setUp()\n YKHO.logger.info('creating test volume')\n YKHO.testVol = None\n try:\n YKHO.sess = I0sP.oci_api.OCISession()\n except Exception:\n YKHO.fail('Failed to start OCI API session')\n YKHO.testVol = YKHO.sess.create_volume(availability_domain... | [
"0.75853395",
"0.7442695",
"0.7386156",
"0.72397816",
"0.7065384",
"0.70476365",
"0.70304674",
"0.6961762",
"0.6921657",
"0.6906988",
"0.6832167",
"0.6819692",
"0.6797515",
"0.6696849",
"0.66804934",
"0.6673722",
"0.66260964",
"0.6619555",
"0.6581923",
"0.65417045",
"0.653985... | 0.686589 | 10 |
Calculates the Wasserstein loss for a sample batch. The Wasserstein loss function is very simple to calculate. In a standard GAN, the discriminator has a sigmoid output, representing the probability that samples are real or generated. In Wasserstein GANs, however, the output is linear with no activation function! Inste... | def Joh4(Y8eF, aMgO):
return nMvt.mean(Y8eF * aMgO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Joh4(Y8eF, aMgO):\n return nMvt.mean(Y8eF * aMgO)",
"def Joh4(Y8eF, aMgO):\n return nMvt.mean(Y8eF * aMgO)",
"def Joh4(Y8eF, aMgO):\n return nMvt.mean(Y8eF * aMgO)",
"def Joh4(Y8eF, aMgO):\n return nMvt.mean(Y8eF * aMgO)",
"def DAWX(Y8eF, aMgO):\n return nMvt.mean(Y8eF * aMgO)",
"def J... | [
"0.74810356",
"0.74810356",
"0.74810356",
"0.74633795",
"0.73723716",
"0.72583014",
"0.7169955",
"0.6990738",
"0.69863707",
"0.69860715",
"0.6893998",
"0.67771906",
"0.6726594",
"0.66787237",
"0.66464084",
"0.65417284",
"0.6480273",
"0.64590085",
"0.64471453",
"0.6414202",
"0... | 0.75345457 | 0 |
Booking an availability with a post request should return 201 | def ghwc(YKHO):
Z9rn = i9zE()
P6bq = p06G.createUser('foo', 'foo@example.com', 'example')
Z9rn.login(username='foo', password='example')
geh0 = Z9rn.post(gxEw('policorp:book', kwargs={'availabilityid': 1}))
YKHO.assertEqual(geh0.status_code, 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, QePW):\n N4nj = QePW.user.username\n W6tb = mv1M.objects.get(username=N4nj)\n YWSi = Y5IF.objects.get(agent=W6tb)\n kepv, KhBf = HD4I(QePW)\n if kepv == 'error':\n return oGir('start_date and end_date must be not Empty', status=jGRS.HTTP_400_BAD_REQUEST)\n if kepv == 'incorr... | [
"0.7770092",
"0.7231489",
"0.7111494",
"0.7010903",
"0.6971805",
"0.694823",
"0.68309855",
"0.65397173",
"0.6531699",
"0.64665014",
"0.6397507",
"0.6335572",
"0.6335455",
"0.6321222",
"0.6317084",
"0.6301923",
"0.62668014",
"0.62464255",
"0.6239319",
"0.6239319",
"0.62336487"... | 0.7228564 | 2 |
Return the projected X value. | def WKvO(YKHO):
return YKHO.X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSnl(YKHO):\n return YKHO.proj.getX()",
"def jSnl(YKHO):\n return YKHO.proj.getX()",
"def nIKw(YKHO):\n return YKHO.descale_x(YKHO.x)",
"def eGO2(YKHO, WKvO):\n WKvO = oyIN.atleast_2d(WKvO)\n return RLNL(YKHO.data, WKvO)",
"def nIKw(YKHO):\n return YKHO.x",
"def nIKw(YKHO):\n ret... | [
"0.79775053",
"0.7898202",
"0.73216856",
"0.72660846",
"0.7242813",
"0.716308",
"0.7158826",
"0.7118606",
"0.71019596",
"0.70605034",
"0.7060341",
"0.70409364",
"0.70128465",
"0.69292885",
"0.6916835",
"0.68892795",
"0.6853151",
"0.6852606",
"0.6846642",
"0.68347114",
"0.6833... | 0.6875091 | 16 |
Unproject to latlon values. Default of 3347 is StatsCan Lambert. | def bLfM(YKHO, gI3u='epsg:3347'):
qcMM = YsBu(init=gI3u)
T8R1 = YsBu(init='epsg:4326')
YKHO.longitude, YKHO.latitude = SZFh(qcMM, T8R1, YKHO.X, YKHO.Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bLfM(YKHO, M_DK):\n WKvO, LVAh = M_DK\n jz6R = WKvO / xUPz * jPo3\n QnmL = 2 * Gqkf(kLQb(LVAh / xUPz)) - mM0K / 2 * jPo3\n return (jz6R, QnmL)",
"def F95g(YKHO):\n pass",
"def qdYe(YKHO, WKvO, LVAh):\n FDPT, QnmL = YKHO.projection(WKvO, LVAh, inverse=True)\n return (QnmL, FDPT)",
"de... | [
"0.67210597",
"0.602389",
"0.6012624",
"0.59446114",
"0.5936941",
"0.59202635",
"0.5914803",
"0.5905701",
"0.5877679",
"0.5855837",
"0.5826306",
"0.5750775",
"0.5735182",
"0.5734166",
"0.56741345",
"0.5651864",
"0.5645732",
"0.5642761",
"0.56331503",
"0.5618198",
"0.56174076"... | 0.7069504 | 0 |
Returns a human readable timestamp string. | def ELmL(YKHO):
return YKHO.time.isoformat(' ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3oo() -> str:\n DUYq = qcWV.datetime.now()\n return DUYq.isoformat().replace('T', ' ')",
"def K5UO():\n exwG = qcWV.datetime.now()\n return '%04d-%02d-%02d--%02d-%02d-%02d' % (exwG.year, exwG.month, exwG.day, exwG.hour, exwG.minute, exwG.second)",
"def E3oo():\n return str(int(ITS7() * 1000... | [
"0.81675345",
"0.8054449",
"0.8046922",
"0.7999761",
"0.796236",
"0.789532",
"0.789149",
"0.7873906",
"0.784363",
"0.7840132",
"0.7816962",
"0.780897",
"0.779596",
"0.7789213",
"0.77784365",
"0.7777999",
"0.77682465",
"0.77593285",
"0.77551055",
"0.77544034",
"0.7742483",
"... | 0.8181086 | 0 |
CategoryItem a model defined in Swagger | def FIMM(YKHO, VMw8=None, JBZA=None, H7rZ=None, uwUO=None, wNo8=None, uaNC=None, Tj1O=None, Hh3r=None, pUBo=None, Zvx6=None, BNoe=None, E94L=None, etDX=None, RKBF=None, QT_b=None, Zvc6=None, UBa6=None, yGZu=None, RJ7j=None, Ay50=None, JDVo=None, cN74=None, P_RK=None, zFXi=None, cm0c=None, JjkJ=None, E3oo=None, KK98=Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qo_0(ipek):\n hlel = []\n try:\n Ghho = cuiw.query(qZuN).filter_by(name=ipek).one()\n DumB = cuiw.query(kLxY).filter_by(category_id=Ghho.id)\n vqhq = {}\n vqhq['id'] = Ghho.id\n vqhq['name'] = Ghho.name\n vqhq['Item'] = [ZfUD.serialize for ZfUD in DumB]\n ... | [
"0.64419335",
"0.627258",
"0.6245298",
"0.6211103",
"0.60117733",
"0.6001323",
"0.5989666",
"0.5961835",
"0.59562707",
"0.59259796",
"0.589918",
"0.5875881",
"0.58444506",
"0.5827739",
"0.58173114",
"0.5809688",
"0.5798708",
"0.57856464",
"0.5780671",
"0.5778624",
"0.57763106... | 0.5287205 | 81 |
Sets the parent_id of this CategoryItem. | def H7rZ(YKHO, H7rZ):
YKHO._parent_id = H7rZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QuYu(YKHO, QuYu):\n YKHO._parent_category_id = QuYu",
"def vJBM(YKHO, H7rZ):\n if H7rZ is not None and (not isinstance(H7rZ, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: parent_id EXPECTED TYPE: str', None, None)\n YKHO.__parent_id = H7rZ\n YKHO.__key_modified['parent_id'] = 1",
"def ... | [
"0.8177149",
"0.7626246",
"0.74305785",
"0.7360346",
"0.72822326",
"0.72822326",
"0.72822326",
"0.72614855",
"0.72428405",
"0.72428405",
"0.7241399",
"0.72363776",
"0.7234787",
"0.7157393",
"0.7157393",
"0.7152926",
"0.7103894",
"0.7086453",
"0.70850235",
"0.70845526",
"0.704... | 0.8061697 | 1 |
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.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 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 |
Splits an input string into meaningful tokens (left parens, right parens, other whitespaceseparated values). Returns a list of strings. | def wr3U(JZXy):
Aofo = []
Nqlg = JZXy.splitlines()
for zFiD in Nqlg:
d1uB = zFiD.split(';')[0]
LihS = ''
eOtH = False
for hcXw in d1uB:
if hcXw == '(' or hcXw == ')':
if LihS:
Aofo.append(LihS)
Aofo.append(hcXw)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pG_y(gLiZ: str) -> list:\n mEiX = gLiZ.count('(')\n vglQ = gLiZ.count(')')\n if mEiX != vglQ:\n raise l8Sf(f'Syntax Error: number of left parens ({mEiX}) does not match number of right parens ({vglQ})')\n return gLiZ.replace('\\n', ' ').replace('(', ' ( ').replace(')', ' ) ').split()",
"de... | [
"0.83208543",
"0.80765027",
"0.8063171",
"0.77131426",
"0.7645826",
"0.7636722",
"0.7428452",
"0.7312876",
"0.7163555",
"0.71514434",
"0.710076",
"0.710076",
"0.710076",
"0.7070196",
"0.6982252",
"0.6973209",
"0.6916096",
"0.6850103",
"0.68328536",
"0.6810958",
"0.6783288",
... | 0.64874506 | 33 |
Return the response receiver's method for receiving a response. | def h0fH(YKHO, Td1T: Receiver):
return Td1T.on_echo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sDAs(YKHO):\n pass",
"def YxsS(YKHO):\n if YKHO._method:\n return YKHO._method\n else:\n return fG1S.get_method(YKHO)",
"def YxsS(YKHO):\n pass",
"def NKcE(YKHO):\n return YKHO.__method",
"def NKcE(YKHO):\n return YKHO.__method",
"def YxsS(YKHO):\n return YKHO._requ... | [
"0.68277687",
"0.6570502",
"0.65702784",
"0.6545873",
"0.6545873",
"0.6540186",
"0.6540186",
"0.6540186",
"0.6523315",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.6502634",
"0.649826",
... | 0.6430801 | 22 |
package_registry_url returns the Elastic Package Registry URL to configure in the managed APM Server service, and Kibana service. | def PEwZ(xAU6):
bD7m = xAU6.get('package_registry_url', '')
if bD7m:
return bD7m
if xAU6.get('enable_package_registry'):
return 'http://package-registry:{}'.format(MM3l.SERVICE_PORT)
elif xAU6.get('snapshot') or not xAU6.get('release'):
return 'https://epr-snapshot.elastic.co'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6I5(YKHO):\n return YKHO._registry_url",
"def o6I5(YKHO, o6I5):\n YKHO._registry_url = o6I5",
"def o6I5(YKHO, o6I5):\n YKHO._registry_url = o6I5",
"def rYSq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'package_url')",
"def i9zu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(Y... | [
"0.65393597",
"0.5826208",
"0.5826208",
"0.5750185",
"0.5680833",
"0.5667193",
"0.5667193",
"0.5611711",
"0.54341745",
"0.5419555",
"0.53448766",
"0.53448766",
"0.5327372",
"0.52452517",
"0.519471",
"0.51903534",
"0.5168604",
"0.5151883",
"0.5126266",
"0.50399774",
"0.4972734... | 0.78485537 | 0 |
Iterate Licenses from Cloud Asset data. | def dXiI(YKHO, N07B):
JKCy = YKHO._iter_compute_resources('License', N07B)
for yuD_ in JKCy:
yield yuD_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z6xm(YKHO):\n nPrm = 'json=' + qQXR.dumps(YKHO.auth_data)\n MOPg = {'Content-Type': 'application/json'}\n bD7m = YKHO.config.get('urls', 'LICENSES_URL')\n B2fa = dict(headers=MOPg, data=nPrm)\n Mkmy = G4JS.get(bD7m, **B2fa)\n KbHS = Mkmy.json()\n fVaT = g760.namedtuple('License', KbHS[0].k... | [
"0.73769665",
"0.64249873",
"0.63605446",
"0.634955",
"0.6226528",
"0.61163026",
"0.6095395",
"0.6069075",
"0.6012249",
"0.5994749",
"0.5978085",
"0.58865345",
"0.58409184",
"0.57573575",
"0.57573575",
"0.57573575",
"0.5735352",
"0.5717366",
"0.57116634",
"0.5707269",
"0.5700... | 0.6932591 | 1 |
Iterate Target HTTPS proxies from Cloud Asset data. | def Moyp(YKHO, N07B):
Qqta = {'sslCertificate': 'sslCertificates'}
JKCy = YKHO._iter_compute_resources('TargetHttpsProxy', N07B)
for t6ZL in JKCy:
yield jcqw(t6ZL, Qqta) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMnO(YKHO, N07B):\n JKCy = YKHO._iter_compute_resources('TargetHttpProxy', N07B)\n for Rp9z in JKCy:\n yield Rp9z",
"def IOu6(YKHO, N07B):\n Qqta = {'sslCertificate': 'sslCertificates'}\n JKCy = YKHO._iter_compute_resources('TargetSslProxy', N07B)\n for piFj in JKCy:\n yield jcqw... | [
"0.6697085",
"0.6640364",
"0.57772607",
"0.57676893",
"0.5720695",
"0.5706136",
"0.5701226",
"0.5636101",
"0.56123734",
"0.5599064",
"0.55831623",
"0.55282956",
"0.55107856",
"0.5502202",
"0.5432523",
"0.5429327",
"0.54287815",
"0.54057664",
"0.53846663",
"0.53671175",
"0.535... | 0.6602586 | 2 |
Iterate CloudDNS Managed Zones from Cloud Asset data. | def EE0s(YKHO, N07B):
JKCy = YKHO.dao.iter_cai_assets(hshX.resource, 'dns.googleapis.com/ManagedZone', '//cloudresourcemanager.googleapis.com/projects/{}'.format(N07B), YKHO.session)
for H4l0 in JKCy:
yield H4l0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wace(YKHO):\n JKCy = YKHO.dao.iter_cai_assets(hshX.resource, 'cloudbilling.googleapis.com/BillingAccount', '', YKHO.session)\n for ZrNc in JKCy:\n yield ZrNc",
"def _Ong(YKHO):\n for Dlxb in YKHO.zone_ids:\n Nk6w = kpgd(Dlxb, rs=YKHO.rs1)\n Nk6w.read_daily_demand(YKHO.daily_dema... | [
"0.5780586",
"0.54723257",
"0.5388567",
"0.52471846",
"0.5243949",
"0.52166283",
"0.514676",
"0.51415765",
"0.5111812",
"0.5109922",
"0.5098328",
"0.50877976",
"0.50497234",
"0.5043923",
"0.5031529",
"0.50231194",
"0.5008835",
"0.50001836",
"0.49956653",
"0.49882543",
"0.4977... | 0.63487667 | 0 |
Iterate Spanner Instances from Cloud Asset data. | def rdr5(YKHO, N07B):
JKCy = YKHO.dao.iter_cai_assets(hshX.resource, 'spanner.googleapis.com/Instance', '//cloudresourcemanager.googleapis.com/projects/{}'.format(N07B), YKHO.session)
for xmmH in JKCy:
yield xmmH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmiP(YKHO, ekCf, N07B):\n JKCy = list(YKHO.dao.iter_cai_assets(hshX.resource, 'sqladmin.googleapis.com/Instance', '//cloudresourcemanager.googleapis.com/projects/{}'.format(N07B), YKHO.session))\n if not JKCy:\n JKCy = list(YKHO.dao.iter_cai_assets(hshX.resource, 'sqladmin.googleapis.com/Instance'... | [
"0.61946744",
"0.61018133",
"0.5962408",
"0.58632874",
"0.57755154",
"0.5749",
"0.5706436",
"0.5693964",
"0.5676728",
"0.5649858",
"0.55450433",
"0.5541961",
"0.55375016",
"0.5525656",
"0.5522348",
"0.5505026",
"0.54858214",
"0.5484418",
"0.54801667",
"0.54793847",
"0.547801"... | 0.72308594 | 0 |
Bucket Access Controls from GCP API. | def JBXo(YKHO, cMrz, ekCf, N07B):
YpaH = YKHO.fetch_storage_bucket_iam_policy(cMrz)
if YpaH:
return XiJn.convert_iam_to_bucket_acls(YpaH, cMrz, ekCf, N07B)
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SAuq(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def V6zj(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!'... | [
"0.74130845",
"0.7112461",
"0.6370043",
"0.6363984",
"0.6249875",
"0.6121545",
"0.6035573",
"0.60080624",
"0.5967379",
"0.5925692",
"0.59128517",
"0.5891763",
"0.58859044",
"0.5880164",
"0.585207",
"0.58441967",
"0.583374",
"0.57883644",
"0.57879025",
"0.5765439",
"0.5724702"... | 0.58377385 | 16 |
A binary image is processed so that noise is filtered out, and the object can be seen more clearly | def Jfm3(knl1):
hFbD = oyIN.ones((3, 3), oyIN.uint8)
LJYB = oyIN.ones((8, 8), oyIN.uint8)
knl1 = XC5k.erode(knl1, hFbD, knl1, iterations=2)
knl1 = XC5k.dilate(knl1, LJYB, knl1, iterations=2)
return knl1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _X6P(_aH1):\n yvT9 = oyIN.copy(_aH1)\n for YRbF, VXjJ in enumerate(_aH1):\n for GzS_ in oyIN.unique(VXjJ)[1:]:\n T5FW = _9A_.crop_out_object(VXjJ, GzS_)\n if any((tpio < KVXD for tpio in T5FW.shape)) or oyIN.count_nonzero(T5FW) < KVXD ** 2:\n print(f'Cell {GzS_... | [
"0.754361",
"0.7202585",
"0.7105915",
"0.7015186",
"0.691757",
"0.6900316",
"0.68964964",
"0.67679733",
"0.6765131",
"0.669411",
"0.66746914",
"0.66674316",
"0.65467256",
"0.65354466",
"0.6501087",
"0.6489796",
"0.6432292",
"0.6420916",
"0.64183426",
"0.6413431",
"0.6408352",... | 0.0 | -1 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8: str) -> None:
kMLo = YKHO.root
for y3RU in GIN8:
if y3RU in kMLo.children:
kMLo = kMLo.children[y3RU]
else:
kMLo.children[y3RU] = o7DN(y3RU)
kMLo = kMLo.children[y3RU]
kMLo.word = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.89349246",
"0.8875727",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8786165",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.... | 0.8425595 | 71 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
kMLo = YKHO.root
for y3RU in GIN8:
if y3RU in kMLo.children:
kMLo = kMLo.children[y3RU]
else:
return False
if kMLo.word == True:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730556",
"0.8268669",
"0.8264989",
"0.821454",
"0.8189983",
"0.81762034",
"0.81695247",
"0.81329536",
"0.7981468",
"0.7973667",
"0.7966321",
"0.79540753",
"0.7881218",
"0.7876813",
"0.78663623",
"0.7835046",
"0.7819606",
"0.7812851",
"0.7811768",
"0.7795306",
"0.77902055... | 0.7612874 | 39 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW: str) -> bool:
kMLo = YKHO.root
for y3RU in y0cW:
if y3RU in kMLo.children:
kMLo = kMLo.children[y3RU]
else:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86418957",
"0.8456077",
"0.8439758",
"0.84152204",
"0.8414917",
"0.8406607",
"0.83812594",
"0.8369774",
"0.83355415",
"0.8326945",
"0.83266926",
"0.8239315",
"0.8228612",
"0.8172047",
"0.81602836",
"0.81522566",
"0.81466633",
"0.811517",
"0.80111045",
"0.79831576",
"0.7983... | 0.752819 | 96 |
Checks if a file is an allowed extension. | def DVFM(Ux0P, CBZq):
GzHq = Ux0P.lower()
return any((GzHq.endswith(YBcr) for YBcr in CBZq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Va2z):\n return Va2z.strip('.') in UWr8",
"def kqN1(Ux0P):\n wEf2 = False\n if pmON.splitext(Ux0P)[-1].lower() in UWr8:\n wEf2 = True\n return wEf2",
"def papa(Emd4, Ux0P: str) -> bool:\n if Hy7s.path.splitext(Ux0P)[1] in Emd4.extensions:\n return True\n return False",
... | [
"0.8831307",
"0.8758656",
"0.8757815",
"0.8685372",
"0.86732805",
"0.866857",
"0.8663155",
"0.8614112",
"0.86115295",
"0.86115295",
"0.86115295",
"0.8592455",
"0.8592455",
"0.8592455",
"0.8592455",
"0.8592455",
"0.8590945",
"0.85580385",
"0.85520566",
"0.8533586",
"0.8533586"... | 0.8022464 | 67 |
Constructs APIReturnedError exception object. | def FIMM(YKHO, geh0, *qIxc, **B2fa):
YKHO.response = geh0
super().__init__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wo3K(YKHO, geh0: requests.Response):\n JBvl = geh0.status_code\n try:\n U34r = geh0.json()\n AJ5d = GCmr(http_status_code=JBvl, code=U34r.get('code', 'unknown'), message=U34r.get('message', 'unknown error'), id=U34r.get('id'), url=U34r.get('url'))\n except Exception:\n l5Ny = geh0... | [
"0.6923471",
"0.6688973",
"0.6455938",
"0.642971",
"0.6390279",
"0.6376389",
"0.6376389",
"0.6374687",
"0.62829334",
"0.6268753",
"0.62682134",
"0.6244036",
"0.6225913",
"0.6200341",
"0.6182009",
"0.6166589",
"0.6143876",
"0.6141323",
"0.61368614",
"0.6111847",
"0.610346",
... | 0.0 | -1 |
Get a dict containing device meta information. | def C0wX():
global _META_CACHE
if STKM is not None:
return STKM.copy()
e5kH = {}
e5kH['agent_version'] = BtDU
e5kH['machine_revision'] = YuXQ.get_machine_revision()
e5kH['model_name'] = YuXQ.get_model_name()
e5kH['os_version'] = Cu3Z()
e5kH['uname'] = g9xW()
e5kH['ip_list'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iF4_(YKHO):\n ZAM1 = {'uuid': YKHO.uuid, 'machine': YKHO.machine, 'arch': YKHO.arch, 'os': YKHO.osname, 'os distribution': YKHO.dist}\n return ZAM1",
"def GWuV(YKHO):\n return {'identifiers': {(Sugg, YKHO._id)}, 'name': YKHO._device_name, 'manufacturer': YhHo, 'model': _vtG[YKHO._model]}",
"def GW... | [
"0.81804836",
"0.809916",
"0.8047857",
"0.79431117",
"0.79395604",
"0.7926563",
"0.79263604",
"0.7923051",
"0.7923051",
"0.790775",
"0.790775",
"0.790775",
"0.7906879",
"0.7906879",
"0.78993315",
"0.7857911",
"0.7848388",
"0.7819079",
"0.7809614",
"0.7809614",
"0.7809614",
... | 0.6967805 | 73 |
Get the alti_key of the parent of this SubField. | def wdWS(YKHO, nPrm: Any, QpfX: Dict[str, Any]) -> str:
yGKs = QpfX.get('parent_alti_key')
if yGKs is None:
raise u52p(f'Missing parent_alti_key in context for {YKHO.__class__.__name__} , data: {nPrm}')
if not isinstance(yGKs, str):
raise oAzQ(f'ParentKey {yGKs} is not a str.')
return yG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUAf(YKHO):\n return YKHO._parent_key",
"def PUAf(YKHO):\n if not hasattr(YKHO, '_parent') and YKHO._id is not None:\n YKHO.load()\n return YKHO._parent",
"def PUAf(YKHO):\n return YKHO.parent_table + '_id'",
"def H5ew(YKHO):\n if not hasattr(YKHO, '_key'):\n if YKHO._id:\n ... | [
"0.77728844",
"0.7487537",
"0.7456663",
"0.6989366",
"0.6844403",
"0.6844403",
"0.67984474",
"0.65690017",
"0.6555111",
"0.6555111",
"0.6541899",
"0.6515566",
"0.65058935",
"0.6466461",
"0.6456324",
"0.6443842",
"0.6441391",
"0.6422532",
"0.64189327",
"0.64160585",
"0.6398198... | 0.7149616 | 3 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = oyIN.diag(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()",
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatte... | [
"0.79748905",
"0.78841347",
"0.78590506",
"0.7824809",
"0.7818386",
"0.7787256",
"0.77343863",
"0.77217567",
"0.77149534",
"0.77057743",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.769770... | 0.78669816 | 2 |
Discriminator model. Tells if a picture is real or artificial | def Shon():
njad = fhcK.Input(shape=(32, 32, 3))
ma8x = fhcK.Input(shape=(len(zZcM.cifar10.labels),))
C3ST = fhcK.Conv2D(64, (5, 5), strides=(2, 2), padding='same')(njad)
C3ST = fhcK.BatchNormalization()(C3ST)
C3ST = fhcK.LeakyReLU()(C3ST)
C3ST = fhcK.Dropout(0.3)(C3ST)
C3ST = fhcK.Conv2D(12... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfgB(YKHO):\n raise NotImplementedError()",
"def nfgB(YKHO):\n raise NotImplementedError()",
"def _ZrT(YKHO, VXjJ):\n o3Uj = YKHO.model.predict(VXjJ)\n if o3Uj == 0:\n EYDd = Lojf.ItemType.glass\n elif o3Uj == 1:\n EYDd = Lojf.ItemType.metal\n else:\n EYDd = Lojf.Item... | [
"0.67872465",
"0.67872465",
"0.60984665",
"0.6087289",
"0.5977945",
"0.5931907",
"0.5921607",
"0.59194297",
"0.5916024",
"0.59141076",
"0.59141076",
"0.58543664",
"0.58543664",
"0.58543664",
"0.58543664",
"0.5814766",
"0.5806921",
"0.5801877",
"0.579337",
"0.5782744",
"0.5760... | 0.53192127 | 60 |
In this example, by calling the Borg's constructor, `self.__dict__` is binded before its attributes are assigned. This will ensure the instance has access to all of the `_shared_state` attributes, and that its attribute assigments will update the shared state. | def FIMM(YKHO, **B2fa):
FtzX.__init__(YKHO)
for H5ew, BWXx in B2fa.iteritems():
setattr(YKHO, H5ew, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dict__ = YKHO._shared_state",
"def FIMM(YKHO, **B2fa):\n FtzX.__init__(YKHO)\n YKHO._shared_state.update(B2fa)",
"def FIMM(YKHO, XruG=FJPv):\n YKHO.__dict__ = YKHO.__shared_state\n YKHO.throttleDelay = XruG\n if not hasattr(YKHO, 'lastRequestTime'):\n YKHO.last... | [
"0.80890477",
"0.7833107",
"0.66060287",
"0.6571438",
"0.65533227",
"0.638499",
"0.63764745",
"0.63695025",
"0.6362029",
"0.6340556",
"0.63306516",
"0.6310991",
"0.6310244",
"0.62840956",
"0.6271754",
"0.6270318",
"0.6260089",
"0.62588257",
"0.62461",
"0.6235105",
"0.6219102"... | 0.71251273 | 2 |
Returns boolean if obj is instance of or inherits from a_class | def Bk6c(YEnM, J9Xy):
return isinstance(YEnM, J9Xy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_gB(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) and type(YEnM) is J9Xy:\n return False\n else:\n return True",
"def b_gB(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) and issubclass(J9Xy, YEnM.__class__) is False:\n return True\n else:\n return False",
"def b_gB(YEnM, J9Xy)... | [
"0.8635927",
"0.8507661",
"0.8480754",
"0.84662306",
"0.8367285",
"0.83484566",
"0.83345294",
"0.8305954",
"0.8302903",
"0.8246902",
"0.8246902",
"0.82285947",
"0.81659675",
"0.8157192",
"0.8133011",
"0.8128927",
"0.812589",
"0.81257105",
"0.812519",
"0.812519",
"0.812519",
... | 0.80934256 | 29 |
Gets the title of this CatalogDataProductCustomOptionValuesInterface. Option title | def leAC(YKHO):
return YKHO._title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n try:\n return YKHO.options['title']\n except KeyError:\n return None",
"def PCdD(YKHO):\n return YKHO.__v_title",
"def leAC(YKHO):\n if 'title' in YKHO._prop_dict:\n return YKHO._prop_dict['title']\n else:\n return None",
"def leAC(YKHO):\n retu... | [
"0.7195819",
"0.66623646",
"0.6623902",
"0.66045874",
"0.65944034",
"0.65459096",
"0.6521373",
"0.64600974",
"0.6451338",
"0.64371085",
"0.6411695",
"0.6393518",
"0.6393518",
"0.6365264",
"0.636468",
"0.6363599",
"0.63600355",
"0.6349165",
"0.6346431",
"0.6334586",
"0.6329524... | 0.0 | -1 |
Gets the price of this CatalogDataProductCustomOptionValuesInterface. Price | def hI0L(YKHO):
return YKHO._price | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXNA(YKHO):\n return YKHO.getData()['price']",
"def NXNA(YKHO):\n return YKHO.__price",
"def NXNA(YKHO):\n return YKHO.__price",
"def N_Zi(YKHO):\n return YKHO._price",
"def N_Zi(YKHO):\n return YKHO._price",
"def N_Zi(YKHO):\n return YKHO._price",
"def NXNA(YKHO):\n return YKH... | [
"0.6941012",
"0.68222344",
"0.68222344",
"0.6768781",
"0.6768781",
"0.6739224",
"0.67124194",
"0.6688985",
"0.6679459",
"0.6647872",
"0.66456836",
"0.66277677",
"0.66277677",
"0.66277677",
"0.66277677",
"0.6581368",
"0.6534415",
"0.64421034",
"0.6391311",
"0.6283496",
"0.6252... | 0.65565413 | 16 |
Gets the price_type of this CatalogDataProductCustomOptionValuesInterface. Price type | def wuGg(YKHO):
return YKHO._price_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wk2c(YKHO):\n return YKHO._pricing_type",
"def fHqR(YKHO) -> uLKX[str, None]:\n return YKHO.__pricingtype",
"def wuGg(YKHO, wuGg):\n if wuGg is None:\n raise ValueError('Invalid value for `price_type`, must not be `None`')\n YKHO._price_type = wuGg",
"def wuGg(YKHO, wuGg):\n YKHO._p... | [
"0.67450845",
"0.6473059",
"0.6134927",
"0.6081933",
"0.58891517",
"0.58658695",
"0.58658695",
"0.57992923",
"0.57110524",
"0.5694363",
"0.5693761",
"0.5657065",
"0.56530046",
"0.56503433",
"0.5610123",
"0.5605708",
"0.5605708",
"0.55672",
"0.5557673",
"0.5557673",
"0.5545941... | 0.77491754 | 0 |
Gets the sku of this CatalogDataProductCustomOptionValuesInterface. Sku | def PXIM(YKHO):
return YKHO._sku | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -... | [
"0.7562015",
"0.7562015",
"0.74569684",
"0.7435595",
"0.7432574",
"0.7432574",
"0.7432574",
"0.7432574",
"0.73897374",
"0.73897374",
"0.735647",
"0.735647",
"0.735647",
"0.735647",
"0.735647",
"0.735647",
"0.735647",
"0.735647",
"0.7352309",
"0.7311404",
"0.7242542",
"0.724... | 0.7567734 | 0 |
Sets the sku of this CatalogDataProductCustomOptionValuesInterface. Sku | def PXIM(YKHO, PXIM):
YKHO._sku = PXIM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO, PXIM):\n if PXIM is None:\n raise ValueError('Invalid value for `sku`, must not be `None`')\n YKHO._sku = PXIM",
"def PXIM(YKHO, PXIM):\n if PXIM is None:\n raise ValueError('Invalid value for `sku`, must not be `None`')\n YKHO._sku = PXIM",
"def PXIM(YKHO, PXIM):\n ... | [
"0.7096576",
"0.7096576",
"0.68128324",
"0.6446928",
"0.6378018",
"0.6378018",
"0.6270507",
"0.6270507",
"0.6270507",
"0.62035483",
"0.61946356",
"0.61946356",
"0.61946356",
"0.61946356",
"0.61946356",
"0.61946356",
"0.61946356",
"0.61946356",
"0.6187047",
"0.61667585",
"0.61... | 0.7292651 | 1 |
Gets the option_type_id of this CatalogDataProductCustomOptionValuesInterface. Option type id | def O8qj(YKHO):
return YKHO._option_type_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NR09(YKHO, MTKo):\n return e0lz.checkResultString(YKHO._lib().indigoGetOptionType(MTKo.encode()))",
"def EhYO(YKHO):\n return YKHO._type_id",
"def O8qj(YKHO, O8qj):\n YKHO._option_type_id = O8qj",
"def fX1C(YKHO) -> str:\n return qe4Y.get(YKHO, 'value_type')",
"def fX1C(YKHO) -> str:\n r... | [
"0.62857336",
"0.6015951",
"0.5999879",
"0.5935532",
"0.5935532",
"0.5792625",
"0.5787304",
"0.5787304",
"0.5773684",
"0.575946",
"0.5708483",
"0.56702435",
"0.5657174",
"0.5657174",
"0.56521934",
"0.56521934",
"0.56519485",
"0.5620065",
"0.5568764",
"0.55347943",
"0.5517285"... | 0.7931258 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(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 |
Render the website's about page. | def vsuQ():
return TvZl('about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='about')",
"def vsuQ():\n ... | [
"0.8763036",
"0.8677626",
"0.8666991",
"0.8650025",
"0.8638193",
"0.86223155",
"0.8601017",
"0.8498177",
"0.8474175",
"0.8472615",
"0.8452931",
"0.84330356",
"0.8430345",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.8424... | 0.8325535 | 45 |
Checks if all provided networks are in valid format. | def WT62(tuDn, qIxc, QePW):
JbyC = ['source_network', 'destination_network']
cyS3 = ZbWC.compile('projects/(?:[a-z][a-z0-9-\\.:]*[a-z0-9])/global/networks/[-\\w]+')
for I1mm in JbyC:
if qIxc.IsSpecified(I1mm):
eVVj = getattr(qIxc, I1mm)
if not cyS3.match(eVVj):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRwh(YKHO):\n f6p5 = YKHO._list_networks()\n DFpe = [exwG['name'] for exwG in f6p5]\n sujs = [exwG['id'] for exwG in f6p5]\n YKHO.assertIn(YKHO.network.name, DFpe)\n YKHO.assertIn(YKHO.network.id, sujs)\n LbJQ = YKHO._list_subnets()\n z0Yi = [exwG['network_id'] for exwG in LbJQ]\n tt9Z ... | [
"0.7023833",
"0.6829936",
"0.67403483",
"0.65862435",
"0.62428415",
"0.61852443",
"0.6184831",
"0.613508",
"0.60948235",
"0.60861665",
"0.6012517",
"0.59396863",
"0.59166634",
"0.5905594",
"0.588609",
"0.58756745",
"0.58434814",
"0.58142203",
"0.57864976",
"0.577733",
"0.5765... | 0.61341137 | 8 |
convert str atom to integer atom | def R2ga(WhQ6):
global __ATOM_LIST__
WhQ6 = WhQ6.lower()
return dJW7.index(WhQ6) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xia2(zvM7: str) -> int:\n WhQ6 = zvM7.strip().lower()\n WhQ6 = BzSB.index(WhQ6) + 1\n return WhQ6",
"def WhQ6(vIwR):\n try:\n return int(vIwR)\n except ValueError:\n try:\n return float(vIwR)\n except ValueError:\n return vd32(vIwR)",
"def LjGi(zZcM... | [
"0.72746897",
"0.7220694",
"0.71664715",
"0.69957554",
"0.6868237",
"0.6740333",
"0.66158384",
"0.66145784",
"0.6579008",
"0.6574703",
"0.6569421",
"0.6556798",
"0.6538356",
"0.65221024",
"0.65030515",
"0.64968264",
"0.6462112",
"0.6456492",
"0.645348",
"0.6442448",
"0.643061... | 0.6966233 | 4 |
The number of radical electrons = absolute atomic charge | def xMij(N9D1, RR8p, mF28, gFxx, vPvX):
for YRbF, WhQ6 in enumerate(RR8p):
jzdc = N9D1.GetAtomWithIdx(YRbF)
if vPvX:
jzdc.SetAtomMapNum(YRbF + 1)
WJkG = G08h(WhQ6, mF28[WhQ6], gFxx[YRbF])
if abs(WJkG) > 0:
jzdc.SetNumRadicalElectrons(abs(int(WJkG)))
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d5s2(N9D1):\n ...",
"def s4n0(YKHO) -> int:\n return YKHO.atomic_number",
"def CwkZ(N9D1):\n ...",
"def eWof(N9D1: 'Mol') -> int:\n return sum([WhQ6.GetAtomicNum() for WhQ6 in N9D1.GetAtoms()])",
"def q8px(I381, WJkG=0):\n j6Zh = uGLX(pG9s(I381))\n jZhk = sum(map(Hptn.to_number, j6Zh.... | [
"0.8246264",
"0.75791705",
"0.7476694",
"0.724447",
"0.70931756",
"0.70342165",
"0.70258653",
"0.6971035",
"0.69367254",
"0.69180346",
"0.6906311",
"0.6774374",
"0.67335415",
"0.66980517",
"0.6602103",
"0.6587808",
"0.6517293",
"0.6502262",
"0.6472238",
"0.64282227",
"0.63782... | 0.0 | -1 |
makes sure that setting `MEDIA_URL` has leading slash | def eAIq():
HqYP = POek.MEDIA_URL
if not (HqYP.startswith('/') or HqYP.startswith('http')):
raise mIXx('\nMEDIA_URL parameter must be a unique url on the site\nand must start with a slash - e.g. /media/ or http(s)://') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoQs(pmON=''):\n import urlparse\n bD7m = gCuF.MEDIA_URL or ''\n if pmON:\n return urlparse.urljoin(bD7m, pmON)\n elif not bD7m.endswith('/'):\n return '%s/' % bD7m\n return bD7m",
"def NQNH(j8eK):\n j8eK = '/'.join(map(ZfMZ, j8eK.split('/')))\n if getattr(gCuF, 'MEDIA_URL'... | [
"0.7182158",
"0.6941046",
"0.66176",
"0.6615592",
"0.6563861",
"0.63908446",
"0.63612294",
"0.6326297",
"0.6302532",
"0.61908954",
"0.61246675",
"0.6096722",
"0.6088268",
"0.60775054",
"0.5919153",
"0.5915035",
"0.5908559",
"0.5872482",
"0.58159643",
"0.58096987",
"0.574956",... | 0.75310755 | 0 |
Read a config file in yaml format. | def R4f_(Ux0P):
GPtr = xRMc(Ux0P)
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfOW():\n with open(Fm4J) as WRxi:\n GPtr = eJb6.load(WRxi)\n return GPtr",
"def R4f_():\n with open('config.yaml') as eHNT:\n GPtr = eJb6.load(eHNT)\n return GPtr",
"def xRMc(_NTK):\n with open(_NTK, 'r') as eHNT:\n GPtr = eJb6.load(eHNT)\n return GPtr",
"def v9dc(... | [
"0.8667237",
"0.8448516",
"0.84308535",
"0.84041816",
"0.83857316",
"0.83819324",
"0.8314417",
"0.8270625",
"0.8211829",
"0.82103574",
"0.8182812",
"0.80894834",
"0.8087227",
"0.80664325",
"0.80492014",
"0.80473626",
"0.80116946",
"0.7987577",
"0.79826736",
"0.7976539",
"0.79... | 0.7988553 | 17 |
Constructor for MyError class | def FIMM(YKHO, Ol8d):
YKHO.message = Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, P1dF: Exception) -> None:\n super().__init__(f'{P1dF}', P1dF)",
"def FIMM(YKHO, isRP, APFA=None):\n super().__init__(isRP, APFA)",
"def FIMM(YKHO, P1dF):\n Exception.__init__(YKHO)\n YKHO.error = P1dF",
"def FIMM(YKHO, Dq8G: Exception) -> None:\n super().__init__(str(Dq8G))\n ... | [
"0.7703128",
"0.76734537",
"0.7564285",
"0.7534456",
"0.7531644",
"0.7531644",
"0.7531644",
"0.7490461",
"0.7455677",
"0.74510354",
"0.73333967",
"0.72635424",
"0.7127898",
"0.7124199",
"0.7116838",
"0.7102972",
"0.70747536",
"0.7068344",
"0.69964445",
"0.69964445",
"0.698222... | 0.0 | -1 |
Constructor for PlayerNameError class | def FIMM(YKHO, BWXx):
YKHO.message = 'Player inputed as name: ' + BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpXb(YKHO, mWFP, aEqx):\n if type(aEqx) == type and issubclass(aEqx, Exception):\n with trZe.raises(TypeError):\n mVZ4(name=mWFP, rules=LXcz(shoe_size=4, bet_limits=[10, 500]), bankroll=100, min_bet=10)\n else:\n XP5J = mVZ4(name=mWFP, rules=LXcz(shoe_size=4, bet_limits=[10, 500]... | [
"0.6659964",
"0.65482235",
"0.6434906",
"0.6417326",
"0.6406342",
"0.63415366",
"0.62269753",
"0.62010235",
"0.6197481",
"0.6173706",
"0.61593956",
"0.6120872",
"0.6089926",
"0.6084933",
"0.60798866",
"0.60755056",
"0.60709375",
"0.6059643",
"0.6035145",
"0.603504",
"0.599889... | 0.66982454 | 0 |
Sets facets in the query as ElasticSearch aggregations, with each aggregation to be filtered by search_filters minus filter affecting facet field in order to get counts for other facet term options. ES5 simply sets aggs by calling update_from_dict after adding them in | def N_Jg(TgwQ, E3Ky, BiUr, dlsU, QePW, geFt, awIJ=None, MnnP=None, zNig=25, ifCF=0):
if ifCF != 0:
return TgwQ
N6wL = U8Lr()
for Jyyj, VkqI in E3Ky:
_H3b = KNp8(Jyyj, QePW, geFt, should_log=True)
PNht = _H3b and gyl0(Jyyj, _H3b)
QzBQ = _H3b and _H3b['type'] in ('integer', 'fl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qemi(YKHO, TgwQ):\n for eHNT, VkqI in BVGD(YKHO.facets):\n waEm = VkqI.get_aggregation()\n hw2c = T8ck('match_all')\n for Jyyj, filter in BVGD(YKHO._filters):\n if eHNT == Jyyj:\n continue\n hw2c &= filter\n TgwQ.aggs.bucket('_filter_' + eHNT,... | [
"0.74372894",
"0.74292076",
"0.73648655",
"0.72279197",
"0.701268",
"0.6872344",
"0.6619612",
"0.6546102",
"0.642898",
"0.6375952",
"0.6228247",
"0.62008274",
"0.61489755",
"0.6139181",
"0.6071914",
"0.6067444",
"0.5982587",
"0.58140457",
"0.579975",
"0.57696944",
"0.57689124... | 0.8141536 | 0 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.80388755 | 54 |
Test that the user can upload a file. | def Wu0D(YKHO):
YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_201_CREATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mI5O(udfG):\n geh0 = udfG.post('/upload', data={'file': (aKaX(b'my file contents'), 'file.flac')})\n assert geh0.status_code == 200",
"def ZOdE(x0hE):\n APkU = Zcdj()\n MoOm = gxEw('files-list')\n iLuo = f'{MoOm}{APkU.id}/'\n _hkX = x0hE.get(iLuo)\n assert _hkX.status_code == 404\n _h... | [
"0.7852964",
"0.78039587",
"0.7711605",
"0.7430127",
"0.73833585",
"0.7371352",
"0.7330798",
"0.72661746",
"0.71949875",
"0.71822524",
"0.71714807",
"0.71692914",
"0.71224433",
"0.7119344",
"0.7057362",
"0.7017286",
"0.7008141",
"0.70046425",
"0.6995646",
"0.699298",
"0.69494... | 0.73292017 | 7 |
List readings for the organization. Get readings for the authenticated organization. | def A53b(zVa7, **B2fa):
return zVa7.get_org_timeseries(**B2fa).get('data') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iCO(YKHO):\n NH5H = YKHO.session.query(YKHO.reading_type).all()\n return NH5H",
"def DizE(YKHO):\n geh0 = None\n if YKHO.app_state['sensor'] == TeJv.TEMP:\n geh0 = G4JS.get('http://127.0.0.1:5000/sensor/temperature/reading/all')\n elif YKHO.app_state['sensor'] == TeJv.PRES:\n ge... | [
"0.6733453",
"0.65791863",
"0.6115081",
"0.6085752",
"0.59572595",
"0.58888435",
"0.5881668",
"0.58642423",
"0.5840245",
"0.5764114",
"0.57391196",
"0.57193583",
"0.5693858",
"0.5686838",
"0.5678177",
"0.5655873",
"0.5645003",
"0.56399417",
"0.5617258",
"0.55659294",
"0.55644... | 0.0 | -1 |
>>> index_of(9, [1, 7, 11, 9, 10]) 3 >>> index_of(5, (1, 2, 4, 5, 6, 10, 5, 5)) 3 >>> index_of(5, (1, 2, 4, 5, 6, 10, 5, 5), 4) 6 >>> index_of('y', 'happy birthday') 4 >>> index_of('banana', ['apple', 'banana', 'cherry', 'date']) 1 >>> index_of(5, [2, 3, 4]) 1 >>> index_of('b', ['apple', 'banana', 'cherry', 'date']) 1 | def hDX3(wEf2, Q6uT, yKcO=0):
if wEf2 not in Q6uT:
return -1
elif Q6uT.index(wEf2) >= yKcO:
return Q6uT.index(wEf2)
else:
return len(Q6uT) - 1 - yKcO + Q6uT.index(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn7Z(WKvO, G2R8):\n for d6pt, mWFP in enumerate(G2R8):\n if WKvO == mWFP:\n return d6pt",
"def KIIO():\n dMcE = ['cat', 'frog', 'fish', 'bird']\n print(\"index of 'frog': {0}\".format(dMcE.index('frog')))\n try:\n print(\"index(frog, 2, 3) of 'frog': {0}\".format(dMcE.ind... | [
"0.69377863",
"0.6802322",
"0.6526068",
"0.633381",
"0.6309496",
"0.6298374",
"0.6298374",
"0.6293265",
"0.6266474",
"0.6256291",
"0.62228346",
"0.6218912",
"0.62107134",
"0.6179221",
"0.6179221",
"0.6110783",
"0.61072934",
"0.61020374",
"0.609391",
"0.6091696",
"0.60749936",... | 0.0 | -1 |
Returns dictionary that maps rater to covid mask. The dictionary is empty if the image is not annotated with covid mask. | def rmZa(YKHO, hbFX):
return {pmON.parent.name: tyeH(pmON) for pmON in YKHO.root.glob(f'covid_masks/{hbFX}/*/covid_mask.npy')} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SmfA():\n AEL4 = {'left': XC5k.imread('masks/left.png')[:, :, 0], 'middle': XC5k.imread('masks/middle.png')[:, :, 0], 'right': XC5k.imread('masks/right.png')[:, :, 0]}\n return AEL4",
"def FEdX(YKHO, r8m5):\n F5V2 = YKHO.image_info[r8m5]\n if F5V2['source'] != 'Abnormality':\n return super... | [
"0.663463",
"0.66137815",
"0.63612795",
"0.6191171",
"0.613158",
"0.6127657",
"0.6104496",
"0.6075165",
"0.6066856",
"0.6066856",
"0.6066856",
"0.6014564",
"0.6013621",
"0.5974056",
"0.5945551",
"0.59170634",
"0.59141064",
"0.590625",
"0.59019536",
"0.5864883",
"0.58609277",
... | 0.6378395 | 2 |
This function standardized features to have mean = 0 with std = 1 | def gmr_(MAGN, IM4K, oyo_):
for mWFP in MAGN:
ZylS = IM4K[mWFP]
JBMS = oyIN.mean(ZylS)
M1Jx = oyIN.std(ZylS)
oyo_[mWFP] = (ZylS - JBMS) / M1Jx
return oyo_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWT_(RDhP):\n qqgr = JBMS(RDhP)\n ifkm = M1Jx(RDhP)\n return [(WKvO - qqgr) / ifkm for WKvO in RDhP]",
"def hWT_(WKvO):\n JBMS = oyIN.mean(WKvO, axis=0)\n M1Jx = oyIN.std(WKvO, axis=0)\n return ((WKvO - JBMS) / M1Jx, JBMS, M1Jx)",
"def hWT_(WKvO):\n JBMS = oyIN.mean(WKvO, axis=0)\n ... | [
"0.7888707",
"0.7864411",
"0.7841417",
"0.7795038",
"0.77878773",
"0.7774407",
"0.7730449",
"0.7676974",
"0.7675085",
"0.76697695",
"0.76495665",
"0.7622871",
"0.7612397",
"0.7599069",
"0.7588719",
"0.75872314",
"0.7543296",
"0.7537217",
"0.75270027",
"0.75270027",
"0.7527002... | 0.0 | -1 |
Yields a generator of requirements as defined by the REQUIRE_PATH which should point to a requirements.txt output by `pip freeze`. | def v5S6(pmON=KI93):
for zFiD in Ueki(pmON).splitlines():
zFiD = zFiD.strip()
if zFiD and (not zFiD.startswith('#')):
yield zFiD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5S6(pmON=KI93):\n for zFiD in Ueki(pmON).splitlines():\n zFiD = zFiD.strip()\n if zFiD and (not zFiD.startswith('#')):\n yield zFiD",
"def emMa(Ux0P='requirements.txt'):\n with open(Ux0P, 'r+t') as aze3:\n for zFiD in aze3:\n zFiD = zFiD.strip()\n ... | [
"0.7466841",
"0.7381454",
"0.73294544",
"0.7309219",
"0.7208871",
"0.71689063",
"0.715449",
"0.7122181",
"0.7122181",
"0.7117297",
"0.7083263",
"0.70828295",
"0.706672",
"0.702238",
"0.70219785",
"0.6999072",
"0.6965398",
"0.6958751",
"0.6934959",
"0.69024694",
"0.6901365",
... | 0.75172794 | 0 |
Construct a new set of grid points for a subgrid cross validation, given the old grid points and the best result of the previous cross valudation. It assunes that the ratio between point n1 and n, and n and n+1 are the same, and will use "linspace((n1), n+1, n_gridpoints)"" to search around the best_params value with i... | def O5qV(qQCj, g3eP, OR1P=15):
jvN0 = list()
for fK8P in g3eP:
Iw2e = dict()
for H5ew, ezWE in fK8P.items():
P6Dd = qQCj[H5ew]
if isinstance(ezWE, oyIN.ndarray):
if ezWE.size <= 3:
raise ValueError('Array assiciated with key the {key} a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(YKHO, Yd35=None, ZfiU=None):\n if YKHO.depth > YKHO.maxdepth:\n P6Dd = YKHO.allPts[YKHO.allScores.argmax(), :]\n G9jH.info('best log2C=%12.7g, log2g=%11.7g ' % (P6Dd[0], P6Dd[1]))\n YKHO.setParams(C=2 ** P6Dd[0], gamma=2 ** P6Dd[1])\n xqoZ = Yvzx(**YKHO.params)\n G9jH... | [
"0.6545682",
"0.5810445",
"0.5709469",
"0.5687342",
"0.5651935",
"0.56208825",
"0.5617649",
"0.5610361",
"0.56094456",
"0.5607116",
"0.5600533",
"0.556086",
"0.55208415",
"0.5518676",
"0.5510328",
"0.55021",
"0.55010486",
"0.54892313",
"0.547743",
"0.5475771",
"0.5445036",
... | 0.68637013 | 0 |
Makes an Arrow LargeListArray from parent indices and values. For example, if `num_parents = 6`, `parent_indices = [0, 1, 1, 3, 3]` and `values` is (an arrow Array of) `[0, 1, 2, 3, 4]`, then the result will | def v2Vo(PODZ: int, xPY3: pa.Array, hkxX: pa.Array, OTUb: bool=True):
return OcsQ(PODZ, xPY3, hkxX, OTUb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPY3(YKHO, _AKB):\n ...",
"def i3ak(hkxX, A96_):\n hkxX = oyIN.atleast_1d(hkxX)\n FaWX = 0\n afYC = oyIN.zeros(oyIN.append(oyIN.sum(A96_), hkxX.shape[1:]))\n for exwG, Ty9i in zip(A96_, hkxX):\n TPao = FaWX + exwG\n afYC[FaWX:TPao] = Ty9i\n FaWX = TPao\n return afYC",
... | [
"0.6239254",
"0.6072056",
"0.59566927",
"0.58672124",
"0.5451826",
"0.5443063",
"0.5425636",
"0.5386778",
"0.5380994",
"0.53180504",
"0.5218198",
"0.5181655",
"0.51693624",
"0.51003027",
"0.50940186",
"0.5088059",
"0.5071221",
"0.5051675",
"0.5050721",
"0.5048825",
"0.504777"... | 0.7898955 | 0 |
Registers an api call made with an api key | def Tqhf(YKHO, rJDA: ApiKey):
YKHO.api_keys[rJDA.get_api_key_hash()] = rJDA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwxC(YKHO, rY6c: str, pmON: str, NKcE: str, jGRS: int, ITS7: float, E3oo: datetime):\n if rY6c not in YKHO.api_calls:\n YKHO.api_calls[rY6c] = []\n YKHO.api_calls[rY6c].append((pmON, NKcE, jGRS, ITS7, E3oo))",
"def EwxC(YKHO, rY6c: str, pmON: str, NKcE: str, jGRS: int, ITS7: float, E3oo: datetim... | [
"0.7440769",
"0.71180284",
"0.69232476",
"0.6605386",
"0.6601873",
"0.6573775",
"0.6464547",
"0.6455642",
"0.64018714",
"0.63891464",
"0.63891464",
"0.63891464",
"0.63708675",
"0.6361311",
"0.63476425",
"0.63127327",
"0.62987",
"0.62675506",
"0.6248944",
"0.624432",
"0.623695... | 0.6510761 | 6 |
Registers an api call made with an api key | def EwxC(YKHO, rY6c: str, pmON: str, NKcE: str, jGRS: int, ITS7: float, E3oo: datetime):
if rY6c not in YKHO.api_calls:
YKHO.api_calls[rY6c] = []
YKHO.api_calls[rY6c].append((pmON, NKcE, jGRS, ITS7, E3oo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwxC(YKHO, rY6c: str, pmON: str, NKcE: str, jGRS: int, ITS7: float, E3oo: datetime):\n N1p7 = YKHO.conn.cursor()\n xDcj = WSSf % (YKHO.api_key_table_name, rY6c)\n N1p7.execute(xDcj)\n OLCc = N1p7.fetchone()[0]\n YKHO.logger.debug('Saving api call from %s' % OLCc)\n xDcj = at7g % (YKHO.api_cal... | [
"0.7118013",
"0.6924926",
"0.6606379",
"0.66038746",
"0.6575108",
"0.6512576",
"0.64644766",
"0.64569545",
"0.64017034",
"0.63907105",
"0.63907105",
"0.63907105",
"0.6370352",
"0.63616145",
"0.634686",
"0.6313204",
"0.6298057",
"0.62685335",
"0.62504613",
"0.6244672",
"0.6235... | 0.74406046 | 0 |
Return a list of all non 0 numbers in row i. | def rdlD(YKHO, YRbF):
rdlD = YKHO.grid[YRbF][:]
rdlD = filter(lambda WKvO: WKvO != 0, rdlD)
return rdlD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def glTS(SppC: list) -> list:\n return [YRbF for YRbF, rdlD in enumerate(SppC) if not all(rdlD)]",
"def VNqG(YKHO):\n return [(YRbF, r845) for YRbF, r845, BWXx in YKHO.get_values() if abs(BWXx) <= 1e-06]",
"def RmxV(YKHO) -> list:\n izyA = []\n for YRbF, rdlD in enumerate(YKHO.rows):\n if 0 ... | [
"0.7316251",
"0.71656257",
"0.6962443",
"0.6807738",
"0.6746341",
"0.6681465",
"0.66120476",
"0.6584296",
"0.6538713",
"0.6500672",
"0.6427995",
"0.63927037",
"0.63520527",
"0.6342541",
"0.6327165",
"0.6323039",
"0.6306015",
"0.6297483",
"0.6229145",
"0.62253755",
"0.62172276... | 0.6625523 | 6 |
Return a list of all non 0 numbers in square k. | def Fyji(YKHO, G1Hx):
Pfcj = map(lambda WKvO: WKvO + YKHO.SQUARE * (G1Hx / YKHO.SQUARE), range(YKHO.SQUARE))
X0Yi = map(lambda WKvO: WKvO + YKHO.SQUARE * (G1Hx % YKHO.SQUARE), range(YKHO.SQUARE))
Fyji = [YKHO.grid[YRbF][r845] for YRbF in Pfcj for r845 in X0Yi]
Fyji = filter(lambda WKvO: WKvO != 0, Fyji)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4m8(G1Hx: int) -> x1iM[int]:\n y4m8 = []\n for YRbF in range(1, G1Hx + 1):\n y4m8.append(YRbF ** 2)\n return y4m8",
"def QyXJ(exwG, G1Hx):\n Aofo = []\n for UOVU in WhY1.combinations(range(exwG), G1Hx):\n KCHu = ['0'] * exwG\n for HkJz in UOVU:\n KCHu[HkJz] = '... | [
"0.72017324",
"0.65536153",
"0.65089816",
"0.6489217",
"0.6438324",
"0.6270399",
"0.6238283",
"0.6228405",
"0.6201525",
"0.61316216",
"0.60504586",
"0.6039509",
"0.6027782",
"0.60210276",
"0.60090244",
"0.5984293",
"0.5978145",
"0.5969338",
"0.5930724",
"0.59219915",
"0.58963... | 0.6761416 | 1 |
Check if square k is correct. | def scjn(YKHO, G1Hx):
Fyji = YKHO.square(G1Hx)
return b5_1(Fyji) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfdN(exwG, G1Hx):\n oUcR = 2 ** exwG\n max = oUcR - 1\n return G1Hx % oUcR == max",
"def AL9H(G1Hx):\n import math\n WKvO = (math.sqrt(8 * G1Hx + 1) - 1) / 2\n if WKvO - int(WKvO) > 0:\n return False\n else:\n return True",
"def AL9H(G1Hx):\n wjRY = 0\n exwG = 0\n ... | [
"0.71970177",
"0.69858795",
"0.6693072",
"0.66503847",
"0.6635289",
"0.6623173",
"0.6593135",
"0.6526306",
"0.64810586",
"0.63944113",
"0.63754284",
"0.63748413",
"0.63719034",
"0.6367513",
"0.63115376",
"0.6295169",
"0.62385535",
"0.6237812",
"0.6222899",
"0.62007654",
"0.61... | 0.87463903 | 0 |
Check if a sudoku grid is valid. A grid is valid if there is no contradiction within a row, column or square. | def deVW(YKHO):
deVW = True
for YRbF in range(YKHO.size):
deVW = deVW and YKHO.check_column(YRbF) and YKHO.check_row(YRbF) and YKHO.check_square(YRbF)
return deVW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pC1V(Cs6h):\n if not UHqo(Cs6h):\n return False\n if not Yzs1(Cs6h):\n return False\n if not GgBO(Cs6h):\n return False\n return True",
"def pC1V(YtM7):\n wVjn = set(range(1, 10))\n bQD6 = oyIN.array(YtM7)\n for rdlD in bQD6:\n if wVjn != set(rdlD):\n ... | [
"0.86673546",
"0.81336987",
"0.8095664",
"0.79259145",
"0.7893731",
"0.7859421",
"0.7829772",
"0.7776334",
"0.7734146",
"0.7713586",
"0.7707597",
"0.759636",
"0.7587041",
"0.7577076",
"0.75739",
"0.7544108",
"0.7528899",
"0.751202",
"0.7501077",
"0.75010747",
"0.7478074",
"... | 0.71123314 | 52 |
Load the pretrained weights stored in file [filename] into the model. | def uyMl(YKHO, Ux0P):
vauY = ht2j.load(Ux0P)
YKHO.load_state_dict(vauY['encoder']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, Ux0P):\n _mSQ = t2lc.load(open(Ux0P, 'rb'))\n YKHO.set_all_weights(_mSQ)",
"def SUd8(YKHO, VqRE):\n raise NotImplementedError()",
"def SUd8(YKHO, SQP_, Ux0P='model.pt', **B2fa):\n SQP_ = HeD1(SQP_)\n Ux0P = Hy7s.path.join(SQP_, Ux0P)\n YKHO.model_.load_state_dict(ht2j.load(Ux0P... | [
"0.78573555",
"0.7770568",
"0.7598027",
"0.75822926",
"0.7555282",
"0.75342464",
"0.75287485",
"0.75175947",
"0.7506858",
"0.7503496",
"0.74640703",
"0.7398395",
"0.73318774",
"0.7330713",
"0.7315702",
"0.72759223",
"0.7248986",
"0.7231366",
"0.7223014",
"0.72068715",
"0.7197... | 0.7447075 | 11 |
Load the pretrained weights stored in file [filename] into the model. | def uyMl(YKHO, Ux0P):
vauY = ht2j.load(Ux0P)
YKHO.load_state_dict(vauY['decoder']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, Ux0P):\n _mSQ = t2lc.load(open(Ux0P, 'rb'))\n YKHO.set_all_weights(_mSQ)",
"def SUd8(YKHO, VqRE):\n raise NotImplementedError()",
"def SUd8(YKHO, SQP_, Ux0P='model.pt', **B2fa):\n SQP_ = HeD1(SQP_)\n Ux0P = Hy7s.path.join(SQP_, Ux0P)\n YKHO.model_.load_state_dict(ht2j.load(Ux0P... | [
"0.7857289",
"0.777068",
"0.7599086",
"0.7582957",
"0.7555763",
"0.7534056",
"0.7528659",
"0.7518164",
"0.75076073",
"0.7503263",
"0.74647105",
"0.7448038",
"0.7399332",
"0.7331061",
"0.7330704",
"0.7316562",
"0.72769135",
"0.7249713",
"0.7232288",
"0.7223733",
"0.7207434",
... | 0.71982926 | 21 |
Returns contours that are possibly license plates. Uses basic image analysis to identify potential license plate candidates, gets their contour, and returns a list. Note that these are NOT necessarily license plates. Further refinedanalysis should be done. | def HTT4(YKHO, FF15: int=10):
NkaO = TJKC.Performance_Monitor()
VXjJ = YKHO.raw_image
Kt_s = TJKC.Performance_Monitor()
fiET = XC5k.Canny(VXjJ, 30, 200)
Kt_s.stop_and_spit(context='[find_contour_candidates(): Edge detection.]')
MTe8 = Kt_s.get_time('nanoseconds')
YKHO._store_proc_step(fiET, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gkaO(YpkZ) -> a1PO.Optional[a1PO.List[ZRnM]]:\n hqvC = []\n LaD9 = VoZd(YpkZ)\n Kx7v = e9c5(LaD9)\n for odkW in Kx7v:\n EuJj = ocUU(YpkZ, odkW)\n if EuJj is not None:\n hqvC.append(EuJj)\n return hqvC",
"def l_nG(LNo8):\n d7Eb = XC5k.pyrDown(LNo8)\n G_yB = XC5k.c... | [
"0.7012908",
"0.6972211",
"0.68292314",
"0.63032097",
"0.63011414",
"0.6247385",
"0.6247385",
"0.62471193",
"0.62471193",
"0.62471193",
"0.62471193",
"0.62471193",
"0.61495787",
"0.61327904",
"0.6115905",
"0.60958433",
"0.607837",
"0.6063457",
"0.60395694",
"0.6025179",
"0.60... | 0.51526856 | 82 |
Returns the last entry off the process step stack. | def vLYb(YKHO):
return YKHO.get_proc_step(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKWY(YKHO):\n return YKHO._step_stack[-1].step_data",
"def XVAW(YKHO):\n return YKHO._history[-1]",
"def T7C_(YKHO):\n return YKHO.stack[-1]",
"def T7C_(YKHO):\n return YKHO.stack[-1]",
"def T7C_(YKHO):\n return YKHO.stack[-1]",
"def T7C_(YKHO):\n return YKHO.stack[-1]",
"def TB5y... | [
"0.72637874",
"0.7241821",
"0.7056836",
"0.7056836",
"0.7056836",
"0.7056836",
"0.6928117",
"0.6913218",
"0.6875533",
"0.68532044",
"0.68526113",
"0.68246984",
"0.6821814",
"0.68142253",
"0.6771921",
"0.676094",
"0.6756376",
"0.67535037",
"0.6751416",
"0.6726436",
"0.6722224"... | 0.8214392 | 0 |
Get a specific VirtualIOServer. | def NMoC(YKHO, TYtD, _s7s, x7dx=[], HMUk=None):
return YKHO._get('/rest/api/uom/ManagedSystem/%s/VirtualIOServer/%s' % (TYtD, _s7s), xag=x7dx, xa=HMUk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxWS(YKHO):\n if Hy7s.path.isfile(YKHO._config['id_file']):\n with open(YKHO._config['id_file']) as eHNT:\n nPrm = eJb6.safe_load(eHNT)\n try:\n N5z6 = YKHO._client.servers.get(nPrm['id'])\n return N5z6\n except KC1E.exceptions.NotFound:\n pas... | [
"0.67673284",
"0.6666968",
"0.65900886",
"0.6562104",
"0.65432245",
"0.6507619",
"0.6507619",
"0.64756304",
"0.64538985",
"0.6411592",
"0.64022636",
"0.6322419",
"0.6322419",
"0.63021815",
"0.6131948",
"0.6108115",
"0.60934156",
"0.6067319",
"0.6067319",
"0.6067319",
"0.60673... | 0.6059939 | 27 |
Get a specific VirtualIOServer. | def gnEw(YKHO, _s7s, x7dx=[], HMUk=None):
return YKHO._get('/rest/api/uom/VirtualIOServer/%s' % _s7s, xag=x7dx, xa=HMUk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxWS(YKHO):\n if Hy7s.path.isfile(YKHO._config['id_file']):\n with open(YKHO._config['id_file']) as eHNT:\n nPrm = eJb6.safe_load(eHNT)\n try:\n N5z6 = YKHO._client.servers.get(nPrm['id'])\n return N5z6\n except KC1E.exceptions.NotFound:\n pas... | [
"0.67673284",
"0.6666968",
"0.65900886",
"0.6562104",
"0.65432245",
"0.6507619",
"0.6507619",
"0.64756304",
"0.64538985",
"0.6411592",
"0.64022636",
"0.6322419",
"0.6322419",
"0.63021815",
"0.6131948",
"0.6108115",
"0.60934156",
"0.6067319",
"0.6067319",
"0.6067319",
"0.60673... | 0.0 | -1 |
Convert an ISO 8601 string to a datetime. | def d9fR(KCHu: Union[datetime, str]) -> qcWV:
if isinstance(KCHu, str):
return wvEv.parse(KCHu)
if isinstance(KCHu, qcWV):
return KCHu
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')",
"def gcC6(BWXx: str) -> qcWV:\n return qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%S.%fZ')",
"def OLXh(gYCd):\n bifY.parse_date(gYCd)",
"def O6uR(VDDH: str) -> qcWV.datetime:\n if VDDH[-3:-2] == ':':\n VDDH = VDD... | [
"0.8567623",
"0.8567623",
"0.82790726",
"0.8075047",
"0.8011075",
"0.7816651",
"0.77674234",
"0.7734847",
"0.7723386",
"0.7648967",
"0.76186585",
"0.7608026",
"0.7521966",
"0.75159705",
"0.7498742",
"0.74925464",
"0.7449703",
"0.7435807",
"0.7433079",
"0.7408484",
"0.73691106... | 0.0 | -1 |
Substitutes keys in dictionary Accepts multilevel mongo like keys | def dwI0(Csk6: Dict, LIAQ: Dict):
for vbQv, H5ew in LIAQ.items():
if xc3U(Csk6, H5ew):
Raji(Csk6, vbQv, NMoC(Csk6, H5ew))
VplZ(Csk6, H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYB0(mUif, VNa4, WBkJ):\n R8cc = {}\n for H5ew, wEf2 in mUif.items():\n if isinstance(H5ew, str):\n hU8D = H5ew.replace(VNa4, WBkJ)\n else:\n hU8D = H5ew\n if isinstance(wEf2, dict):\n R8cc[hU8D] = PYB0(wEf2, VNa4, WBkJ)\n else:\n R8... | [
"0.70700526",
"0.64728796",
"0.6368108",
"0.62941104",
"0.62525725",
"0.6250235",
"0.6244427",
"0.6139305",
"0.6112748",
"0.61102957",
"0.60580367",
"0.6043019",
"0.6037451",
"0.5989038",
"0.59828013",
"0.59810054",
"0.5969413",
"0.5965217",
"0.596485",
"0.59628296",
"0.59569... | 0.5718537 | 58 |
Draws to the screen and updates the display | def _1tc(YKHO):
YKHO.current_stage.draw(YKHO.screen)
YKHO.active_sprite_list.draw(YKHO.screen)
if YKHO.debug:
tKSG.draw.rect(YKHO.screen, hAVj.GREEN, YKHO.player.rect, 1)
tKSG.display.flip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n YKHO.board.draw(YKHO.display)\n YKHO.gui.draw()\n a9eO.display.update()",
"def kAlW(YKHO):\n g74T.display.update()",
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n YKHO.state.draw(Vjhr)",
... | [
"0.8522597",
"0.8450694",
"0.84461063",
"0.84461063",
"0.8409931",
"0.8391283",
"0.8374251",
"0.83163565",
"0.82950175",
"0.82903403",
"0.828252",
"0.82731056",
"0.81508696",
"0.8150792",
"0.81501985",
"0.81464154",
"0.81293523",
"0.8120762",
"0.8100388",
"0.8092056",
"0.8090... | 0.0 | -1 |
If possible, return a dict with preprocessed document and a list of spans with weights, corresponding to features in the document. | def Y9gv(A97Q, he6J, K4bu):
if isinstance(he6J, UVqZ):
return dYdH(A97Q, he6J, K4bu)
else:
Aofo = pB4Q(A97Q, he6J, K4bu)
if Aofo is not None:
R0pu, Zq_Z = Aofo
return QPSZ([Zq_Z], other=ZLdZ(K4bu, [('', R0pu)]))
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghLC(YKHO, oq8E):\n return {'id': oq8E['id'], 'weights': g760.Counter(oq8E['contents'].split())}",
"def bySB(YKHO, C13M):\n ztIo = {}\n ztIo.update(YKHO._get_term_features(C13M))\n ztIo.update(KxBt(C13M))\n return ztIo",
"def sbzI(C13M):\n V22M = set(dFss(C13M))\n return dict(((yzQ0, T... | [
"0.6958248",
"0.66641694",
"0.65226704",
"0.6404566",
"0.6385135",
"0.6371055",
"0.62839144",
"0.6205647",
"0.6150506",
"0.6144526",
"0.6103963",
"0.6097057",
"0.60120255",
"0.60094",
"0.5908034",
"0.5880999",
"0.5830104",
"0.58233464",
"0.5804268",
"0.56900316",
"0.5664832",... | 0.5665849 | 20 |
Test reading/writing of a v0.9 OVF. | def lRXM(YKHO):
with lVWQ(YKHO.v09_ovf, YKHO.temp_file):
pass
YKHO.check_diff('', file1=YKHO.v09_ovf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udyD(YKHO):\n YKHO.staging_dir = gbPf.mkdtemp(prefix='cot_ut_ovfio_stage')\n _PLx = Hy7s.path.dirname(YKHO.input_ovf)\n RDuA.copy(Hy7s.path.join(_PLx, 'input.ovf'), YKHO.staging_dir)\n RDuA.copy(Hy7s.path.join(_PLx, 'input.iso'), YKHO.staging_dir)\n RDuA.copy(YKHO.blank_vmdk, Hy7s.path.join(YKHO... | [
"0.61677176",
"0.6108194",
"0.6030145",
"0.60243493",
"0.60136986",
"0.5952571",
"0.5840066",
"0.58223766",
"0.5805155",
"0.579293",
"0.5791444",
"0.5786134",
"0.5738758",
"0.5722394",
"0.5692773",
"0.56837624",
"0.5673176",
"0.56716406",
"0.5651919",
"0.56413513",
"0.5621929... | 0.5548379 | 27 |
Returns relative and cumulative distances traveled at each pose | def D00Z(YKHO):
Rdo6 = oyIN.empty([len(YKHO.Twv_gt), 3])
for rVpA, Eyy6 in enumerate(YKHO.Twv_gt):
Rdo6[rVpA, :] = Eyy6.trans
D7Yq = oyIN.linalg.norm(oyIN.diff(Rdo6[:, 0:3], axis=0), axis=1)
D7Yq = oyIN.append([0.0], D7Yq)
vN4v = oyIN.cumsum(D7Yq)
return (D7Yq, vN4v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sZDW(Yqiv, lBK9):\n assert isinstance(Yqiv, oyIN.ndarray)\n assert isinstance(lBK9, oyIN.ndarray)\n assert Yqiv.shape == lBK9.shape\n return (oyIN.hypot(Yqiv[..., 0] - lBK9[..., 0], Yqiv[..., 1] - lBK9[..., 1]), oyIN.abs(rAW9(Yqiv[..., 2], lBK9[..., 2])))",
"def KLpe(lBK9, Ci2N):\n return epAf... | [
"0.65834576",
"0.6456282",
"0.64360034",
"0.6402",
"0.6384631",
"0.6382527",
"0.6345685",
"0.6317843",
"0.6230428",
"0.62283343",
"0.6206934",
"0.6139149",
"0.6131647",
"0.6131647",
"0.61172944",
"0.61169136",
"0.61168146",
"0.61077636",
"0.61046165",
"0.60999185",
"0.6099918... | 0.7316169 | 0 |
Returns translational and rotational error at the endpoint of a segment | def A6HG(YKHO, aZHW=None, isx2='m', Zue_='rad'):
if aZHW is None:
aZHW = range(len(YKHO.Twv_gt))
jPzo = YKHO.Twv_gt[aZHW[0]].inv().dot(YKHO.Twv_gt[aZHW[-1]])
r5pq = YKHO.Twv_est[aZHW[0]].inv().dot(YKHO.Twv_est[aZHW[-1]])
i5Ts = r5pq.inv().dot(jPzo)
yN0d = oyIN.linalg.norm(i5Ts.trans)
xRQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y3xn(YKHO, aZHW=None, isx2='m', Zue_='rad', wfRC='traj', RA_F=1):\n EllN, LP8u = YKHO.error_norms(aZHW, isx2, Zue_, wfRC, RA_F)\n return (oyIN.sqrt(oyIN.mean(EllN ** 2)), oyIN.sqrt(oyIN.mean(LP8u ** 2)))",
"def I7NY(hTWD, vuA2):\n TuBe, wVYv, UkV1, iZdT = hTWD\n zTvC, YtJp = vuA2\n UV8M, vHO5 ... | [
"0.66901785",
"0.6579444",
"0.63843",
"0.6360787",
"0.63381284",
"0.61400425",
"0.6138801",
"0.6102621",
"0.6047104",
"0.60284275",
"0.6018065",
"0.5969099",
"0.5964751",
"0.5960683",
"0.5956557",
"0.5946371",
"0.59382695",
"0.59256244",
"0.59106284",
"0.58915746",
"0.58912",... | 0.77095413 | 0 |
Error norms (magnitude of errors in rotation and translation) of the trajectory. | def IIjT(YKHO, aZHW=None, isx2='m', Zue_='rad', wfRC='traj', RA_F=1):
if wfRC == 'traj':
nCQV, v5IH = YKHO.traj_errors(aZHW, isx2, Zue_)
elif wfRC == 'rel':
nCQV, v5IH = YKHO.rel_errors(aZHW, isx2, Zue_, RA_F)
else:
raise ValueError('error_type must be either `traj` or `rel`.')
E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv3L(YKHO):\n Ty9i = (YKHO.u - YKHO.old_u).flat\n return oyIN.sqrt(oyIN.dot(Ty9i, Ty9i))",
"def sm0o(YKHO):\n YKHO.error_sigma = (YKHO.n * YKHO.sum_yy - YKHO.sum_y ** 2 - YKHO.slope ** 2 * (YKHO.n * YKHO.sum_xx - YKHO.sum_x ** 2)) / (YKHO.n * (YKHO.n - 2))\n YKHO.error_sigma = epAf.sqrt(YKHO.erro... | [
"0.70590204",
"0.691211",
"0.6797166",
"0.6773188",
"0.67643124",
"0.67167753",
"0.6702794",
"0.65524757",
"0.6498433",
"0.64242417",
"0.64098215",
"0.6409032",
"0.6400427",
"0.6392078",
"0.63692284",
"0.6368624",
"0.6344023",
"0.6316201",
"0.6312136",
"0.6306631",
"0.6294746... | 0.70513356 | 1 |
Cumulative sum of the rotation and translation error magnitudes over the entire trajectory. | def ppDm(YKHO, aZHW=None, isx2='m', Zue_='rad', wfRC='traj'):
EllN, LP8u = YKHO.error_norms(aZHW, isx2, Zue_, wfRC)
return (oyIN.cumsum(EllN), oyIN.cumsum(LP8u)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sqxd(YKHO):\n return oyIN.sqrt(oyIN.sum(oyIN.square(YKHO.running_target_diff)))",
"def mPQP(YKHO):\n return oyIN.sqrt(oyIN.sum(oyIN.square(YKHO.target_diff)))",
"def P1dF(YKHO):\n GVWx = YKHO.a_tilde\n RoW6 = YKHO.V_tilde\n jmzt = YKHO.tau\n return epAf.fsum((WKvO ** 2 for WKvO in GVWx * ... | [
"0.6142339",
"0.61322886",
"0.597775",
"0.5679186",
"0.5649473",
"0.5599093",
"0.5542556",
"0.55346435",
"0.55028796",
"0.5498162",
"0.5487693",
"0.5453569",
"0.5427385",
"0.54242504",
"0.54188055",
"0.54157364",
"0.54156566",
"0.5407957",
"0.5400937",
"0.5395039",
"0.5392747... | 0.58034945 | 3 |
return df from disk via path | def GXd8(YKHO, pmON, d6pt=None):
G9jH.info('getting db at {} from disk'.format(pmON))
try:
with YKHO.lock:
jQ3Z = rLdf.read_csv(pmON, index_col=d6pt, keep_default_na=False)
return jQ3Z
except Exception as e:
G9jH.error('error in getting db at {} error is {}'.format(pmON, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVOw(YKHO, xBra):\n return YKHO.file_dict_to_df(YKHO.cat_to_files(xBra)[0])",
"def U5Kh(pmON):\n x6nZ = gzes(PSrQ.get_config_folder(), 'library-pd.pkl')\n if vtfo(x6nZ):\n jQ3Z = rLdf.read_pickle(x6nZ)\n else:\n jQ3Z = YEPB._build_data_frame(pmON)\n jQ3Z.to_pickle(x6nZ)\n ... | [
"0.75807613",
"0.74312454",
"0.71443754",
"0.71317333",
"0.71244806",
"0.67754775",
"0.67754775",
"0.6757341",
"0.6756284",
"0.6751552",
"0.65631723",
"0.6538954",
"0.65149266",
"0.651327",
"0.65116423",
"0.64889383",
"0.6469866",
"0.6464697",
"0.6462351",
"0.6462351",
"0.646... | 0.70135516 | 5 |
Test if operator is Hermitian. | def LzOH(seET):
if isinstance(seET, (hxhG, _rbH, AKtH)):
return Ggzi(seET) == Ggzi(cXcx(seET))
if isinstance(seET, (UCDO, w5RD)):
return seET == cXcx(seET)
elif isinstance(seET, YFhp):
by6d = seET - cXcx(seET)
hq_b = 0.0
if by6d.nnz:
hq_b = max(abs(by6d.da... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxfU(WKvO):\n return isinstance(WKvO, lJKo)",
"def LzOH(YKHO, *qIxc):\n return gQS9.gen_op_is_hermitian(YKHO, *qIxc)",
"def LzOH(YKHO) -> bool:\n return True",
"def LzOH(YKHO) -> bool:\n return YKHO.args[0].is_hermitian()",
"def EKs3(YKHO, khtY, hAEw, Wq9Y):\n dJdW = Y35D(hAEw, khtY)\n ... | [
"0.73060435",
"0.70695615",
"0.6755581",
"0.6636482",
"0.63246757",
"0.62921566",
"0.58604664",
"0.57345366",
"0.5559458",
"0.5508476",
"0.54495335",
"0.5445413",
"0.5403318",
"0.53864473",
"0.53631145",
"0.52946794",
"0.5269388",
"0.5245837",
"0.5230785",
"0.521448",
"0.5164... | 0.7340843 | 0 |
Given an Audio Commons unique resource identifier (acid), this function returns a url where the resource can be licensed. If the 3rd party service can't license that resource or some other errors occur during the collection of the url, an AC exceptions should be raised. Individual services can extend this method with e... | def OSLq(YKHO, QpfX, uxWK, *qIxc, **B2fa):
raise NotImplementedError('Service must implement method ACLicensingMixin.get_licensing_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO, QpfX, uxWK, *qIxc, **B2fa):\n return {'license_url': YKHO.get_licensing_url(QpfX, uxWK, *qIxc, **B2fa)}",
"def rkad(Mc9N):\n pass",
"def Kbkq(YKHO):\n if YKHO.gallery and YKHO.gallery.license > 1:\n return YKHO.gallery.get_license_url()\n else:\n return ''",
"def v... | [
"0.65595293",
"0.55840516",
"0.55522346",
"0.531065",
"0.5291085",
"0.5207518",
"0.51891416",
"0.5151206",
"0.51186776",
"0.5092842",
"0.5075055",
"0.5020422",
"0.501887",
"0.50171965",
"0.49954593",
"0.49790236",
"0.49531388",
"0.4949221",
"0.49451315",
"0.4928901",
"0.49267... | 0.6663441 | 0 |
'prefix' is the start of the CC number as a string, any number of digits. 'length' is the length of the CC number to generate. Typically 13 or 16 | def LD3o(y0cW, u54L):
Xyxo = y0cW
while len(Xyxo) < u54L - 1:
Ko6S = str(c2Yh.choice(range(0, 10)))
Xyxo.append(Ko6S)
sum = 0
oeNL = 0
xmpU = []
xmpU.extend(Xyxo)
xmpU.reverse()
while oeNL < u54L - 1:
C_CQ = int(xmpU[oeNL]) * 2
if C_CQ > 9:
C_C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoTy(y0cW, c2Yh, u54L=16):\n SkC9 = y0cW\n while len(SkC9) < u54L - 1:\n Ko6S = str(c2Yh.choice(range(0, 10)))\n SkC9.append(Ko6S)\n wfsQ = ''.join(SkC9)\n lMzL = G32P.append(wfsQ)\n return lMzL",
"def brSB(u54L):\n if u54L is None:\n raise ValueError('Argument length i... | [
"0.7699956",
"0.6981117",
"0.69026464",
"0.68559724",
"0.677526",
"0.6658063",
"0.6603967",
"0.65045094",
"0.64954543",
"0.641973",
"0.6418915",
"0.6328473",
"0.6313773",
"0.6313015",
"0.6300285",
"0.6197764",
"0.60557187",
"0.6049082",
"0.6013507",
"0.5965779",
"0.5951649",
... | 0.7989012 | 0 |
Here we make sure the shipping address belong only to 1 user We exclude all orders placed by the current order user and check if other orders with the current billing details exist, if such orders exist we return False otherwise, we return True | def kkkO(YKHO, T4Wy):
try:
L9Jq.objects.exclude(T8ck(status='Cancelled') | T8ck(user=T4Wy.user)).get(shipping_address__first_name__iexact=T4Wy.shipping_address.first_name, shipping_address__last_name__iexact=T4Wy.shipping_address.last_name, shipping_address__line1__iexact=T4Wy.shipping_address.line1, shippi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1fN(YKHO, T4Wy):\n try:\n L9Jq.objects.exclude(T8ck(status='Cancelled') | T8ck(user=T4Wy.user)).get(billing_address__first_name__iexact=T4Wy.billing_address.first_name, billing_address__last_name__iexact=T4Wy.billing_address.last_name, billing_address__country__iso_3166_1_a2=T4Wy.billing_address.cou... | [
"0.7032803",
"0.65081817",
"0.64347893",
"0.6429626",
"0.6251112",
"0.6125216",
"0.6120811",
"0.61027384",
"0.60415256",
"0.602998",
"0.60247135",
"0.60153824",
"0.60086924",
"0.6003275",
"0.59922653",
"0.59734297",
"0.593049",
"0.58643275",
"0.57540184",
"0.5734126",
"0.5724... | 0.7545589 | 0 |
Get the length of the object wrapped by this partition. | def u54L(YKHO, KbSQ=True):
if YKHO._length_cache is None:
if len(YKHO.call_queue):
YKHO.drain_call_queue()
else:
YKHO._length_cache, YKHO._width_cache = RSZ6.remote(YKHO._data)
if siUP.is_object_ref(YKHO._length_cache) and KbSQ:
YKHO._length_cache = vAHV.materiali... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return YKHO.to_bounded_partition().size()",
"def u54L(YKHO):\n return YKHO.impl['length'](YKHO)",
"def zNig(YKHO):\n return YKHO.to_partition().size()",
"def u54L(YKHO):\n return YKHO.__len__()",
"def u54L(YKHO) -> int:\n return YKHO.__len__()",
"def szAg(YKHO):\n if Y... | [
"0.8069581",
"0.77259487",
"0.76666737",
"0.7650095",
"0.7604647",
"0.75674105",
"0.75674105",
"0.75674105",
"0.75674105",
"0.755362",
"0.75442845",
"0.7523926",
"0.75171924",
"0.7507646",
"0.7506306",
"0.7497791",
"0.7479979",
"0.746732",
"0.7465584",
"0.74633193",
"0.746331... | 0.0 | -1 |
Loads model from specified path | def Ib5B(dyeT, l3zO='ANY'):
aM4N = Hy7s.path.join(gbPf.gettempdir(), 'serialized_ir.bin')
mWdL = Hy7s.path.join(gbPf.gettempdir(), 'serialized_ir.xml')
c4Um = dyeT.weights
pjeI = dyeT.model
if l3zO in kjop:
C3ST = aM69.read_model(model=pjeI, weights=c4Um)
kA2y(C3ST, l3zO.encode('utf-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(Emd4, uqvc):\n pass",
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError()",
"def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)",
"def uyMl(pmON):\n Ylbp = a_JQ.post_js... | [
"0.87936467",
"0.8748896",
"0.87105536",
"0.84645826",
"0.83704424",
"0.83183515",
"0.8305406",
"0.8287219",
"0.8182439",
"0.8179473",
"0.81443024",
"0.8135496",
"0.8127553",
"0.8127553",
"0.8116718",
"0.8113034",
"0.81012475",
"0.8073682",
"0.8060568",
"0.8056569",
"0.801888... | 0.0 | -1 |
Renders the contact page. | def Mxk0():
return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.8118483",
"0.8117153",
"0.8067011",
"0.80406195",
"0.8032139",
"0.80279577",
"0.80256563",
"0.80241436",
"0.80055... | 0.81830716 | 14 |
Covariance of the input and output variables for multioutput GPQ model. | def FX43(YKHO, _mSQ, Ycph, oVid):
for YRbF in range(YKHO.e):
YKHO.tccov[YRbF, :] = Ycph[YRbF, :].dot(_mSQ[..., YRbF].T).dot(oVid.T)
return YKHO.tccov | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lreZ(YKHO):\n return y_hd(YKHO.X_fieldpairs) + kkse(YKHO.X_fieldpairs)",
"def bibf(YKHO):\n return YKHO.covariance",
"def N0iN(YKHO):\n return YKHO.covariance",
"def Sc0n(YKHO):\n return YKHO.standardError2() * YKHO.AtAinv",
"def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error ... | [
"0.7246339",
"0.6948325",
"0.68235326",
"0.6759211",
"0.6625473",
"0.65822613",
"0.6379222",
"0.6378207",
"0.6378207",
"0.63588667",
"0.6324491",
"0.6177483",
"0.6155733",
"0.6145765",
"0.6131672",
"0.61142594",
"0.61142594",
"0.6111458",
"0.61112946",
"0.61076355",
"0.610342... | 0.56854826 | 64 |
Covariance of the input and output variables for multioutput GPQ model. | def FX43(YKHO, _mSQ, Ycph, oVid):
for YRbF in range(YKHO.e):
YKHO.tccov[YRbF, :] = Ycph[YRbF, :].dot(_mSQ[..., YRbF].T).dot(oVid.T)
return YKHO.tccov | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lreZ(YKHO):\n return y_hd(YKHO.X_fieldpairs) + kkse(YKHO.X_fieldpairs)",
"def bibf(YKHO):\n return YKHO.covariance",
"def N0iN(YKHO):\n return YKHO.covariance",
"def Sc0n(YKHO):\n return YKHO.standardError2() * YKHO.AtAinv",
"def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error ... | [
"0.72442305",
"0.6946991",
"0.68226",
"0.6757532",
"0.6624971",
"0.6580565",
"0.637843",
"0.63766646",
"0.63766646",
"0.63554233",
"0.6323692",
"0.61757386",
"0.615478",
"0.61447674",
"0.6132466",
"0.61119014",
"0.61119014",
"0.6111374",
"0.611013",
"0.6104557",
"0.6102897",
... | 0.5683462 | 63 |
Load from pretrained or train lowlevel classifiers if file with save model doesn't exist. | def biH0(YKHO, d17T, Crrw):
zuvD = YKHO._trainable + YKHO._concat_trainable
z224 = zip(zuvD, d17T, Crrw)
for L77v, dXsv, UXqs in z224:
try:
L77v.load()
print(f'Succesful load {L77v.__class__}')
except (FileNotFoundError, APKI):
print(f'Train {L77v.__class_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4QU(Emd4, *qIxc, **YSA3):\n try:\n return Emd4.from_pretrained(*qIxc, **YSA3)\n except OSError as e:\n G9jH.warning('Caught OSError loading model: %s', tTpl)\n G9jH.warning('Re-trying to convert from PyTorch checkpoint (from_pt=True)')\n return Emd4.from_pretrained(*qIxc, fro... | [
"0.7136368",
"0.71105194",
"0.71048295",
"0.7027566",
"0.7002761",
"0.6997658",
"0.69931227",
"0.6986114",
"0.6984595",
"0.6982299",
"0.69737947",
"0.69499785",
"0.6946938",
"0.6946938",
"0.6946938",
"0.6937505",
"0.69372565",
"0.6931222",
"0.69263977",
"0.69160956",
"0.69107... | 0.0 | -1 |
Load classifier model and scaler. | def tyeH(YKHO, GwO0='save_models'):
GwO0 = Hy7s.path.join(NJFQ, GwO0)
try:
with open(Hy7s.path.join(GwO0, 'is_troll_model.pickle'), 'rb') as Fwbn:
YKHO._logreg = t2lc.load(Fwbn)
with open(Hy7s.path.join(GwO0, 'is_troll_scaler.pickle'), 'rb') as Fwbn:
YKHO._scaler = t2lc.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO):\n YKHO.vectorizer = tyeH('resources/vectorizer.joblib')\n YKHO.model = tyeH('resources/token_SVM.joblib')\n YKHO.dimension_reducer = tyeH('resources/dimension_reducer.joblib')",
"def TSyB(YKHO):\n YKHO.classifier = MYoF.load(open(YKHO.classifier_path, 'rb'))",
"def uyMl(YKHO):\n ... | [
"0.7857632",
"0.7674157",
"0.76661277",
"0.7643864",
"0.7537326",
"0.75001216",
"0.7487134",
"0.7448581",
"0.736941",
"0.7242555",
"0.7140089",
"0.71343017",
"0.71177655",
"0.70958674",
"0.70741475",
"0.7044949",
"0.7043875",
"0.7043522",
"0.70322627",
"0.70257974",
"0.699768... | 0.6616215 | 61 |
Remove the first item in the queue. | def kSdD(YKHO):
if YKHO.isEmpty():
raise ValueError('Queue is empty cannot remove item')
else:
c8Vy = YKHO.first.data
YKHO.first = YKHO.first.prev_node
if not YKHO.first:
YKHO.last = None
return c8Vy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ksvm(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ANfV = YKHO._data[YKHO._front]\n YKHO._data[YKHO._front] = None\n YKHO._size -= 1\n if YKHO._size > 0:\n YKHO._front = (YKHO._front + 1) % len(YKHO._data)\n return ANfV",
"def WvVJ(YKHO):\n if not YKHO.isEmp... | [
"0.8314732",
"0.8192516",
"0.7860552",
"0.78435516",
"0.7814521",
"0.7763841",
"0.77577263",
"0.77576333",
"0.7743571",
"0.773003",
"0.7725208",
"0.7724471",
"0.77034914",
"0.76927924",
"0.7671779",
"0.76712877",
"0.767107",
"0.7627335",
"0.76239765",
"0.76029575",
"0.7596138... | 0.77835107 | 5 |
Creates / Loades a Keras model, and returns a Keras Model return Model | def YrZb(YKHO, XJsN=False):
C3ST = QOl5(input_shape=(YKHO.cfg.IMAGE_SIZE, YKHO.cfg.IMAGE_SIZE, 3), include_top=False, alpha=YKHO.cfg.ALPHA)
for gEmA in C3ST.layers:
gEmA.trainable = XJsN
WKvO = C3ST.layers[-1].output
WKvO = yHwh(4, kernel_size=3, name='coords_out')(WKvO)
WKvO = hekC((4,))(WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQkX(YKHO) -> tP8l:\n g4y1, o4Jx = YKHO._make_embedding_layers()\n Iq_3 = YKHO.config.model_assembler.make_hidden_layers(o4Jx)\n Iq_3 = YKHO.config.model_assembler.make_final_layer(Iq_3)\n C3ST = tP8l(inputs=g4y1, outputs=Iq_3)\n C3ST = YKHO.config.model_assembler.compile_model(C3ST)\n return... | [
"0.8342054",
"0.79977167",
"0.79111266",
"0.78719205",
"0.7830143",
"0.7787513",
"0.77469367",
"0.7605039",
"0.7596284",
"0.75171334",
"0.75062466",
"0.74951226",
"0.749453",
"0.7492513",
"0.74917215",
"0.748471",
"0.747955",
"0.7477326",
"0.7457724",
"0.745562",
"0.7417522",... | 0.0 | -1 |
Create a new user model if it doesn't already exist or update and existing user to match the Stormpath account. The authenticate method takes credentials as keyword arguments. Usually, the method is used with a username and password as arguments. Returns a user model if the Stormpath authentication was successful or No... | def NLCy(YKHO, NtEF=None, jTXt=None):
P1lZ = gCuF.STORMPATH_ID
WZVL = gCuF.STORMPATH_SECRET
dOvr = gCuF.STORMPATH_APPLICATION
ZrNc = YKHO.check_account(P1lZ, WZVL, dOvr, NtEF, jTXt)
if ZrNc:
vCWU = egNl()
try:
CBIr = vCWU.objects.get(T8ck(username=ZrNc.username) | T8ck(em... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy(YKHO, NtEF=None, jTXt=None):\n if not NtEF or not jTXt:\n return None\n try:\n CBIr = mv1M.objects.get(email=NtEF)\n except Exception:\n return None\n if not CBIr.is_active:\n return None\n GfdN = YKHO.password_hash(jTXt, salt=CBIr.password[:YKHO.SALT_LENGTH])\n ... | [
"0.70555246",
"0.6956155",
"0.684434",
"0.6825038",
"0.6814412",
"0.67687184",
"0.67685986",
"0.67561567",
"0.67429507",
"0.6739511",
"0.6727",
"0.67127764",
"0.6701367",
"0.67013496",
"0.6699722",
"0.6699722",
"0.6693509",
"0.6691528",
"0.66862094",
"0.66862094",
"0.66727465... | 0.7327004 | 0 |
Return a user model object The method takes a user_id which could be a username, database ID etc. and returns a user model object. | def TKWP(YKHO, uJjO):
try:
vCWU = egNl()
return vCWU.objects.get(pk=uJjO)
except vCWU.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(Emd4, id):\n C3ST = Nc2H.query.filter_by(id=id).first()\n return Emd4.create_user_from_model(C3ST)",
"def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBIr",
"def NMoC(uJjO):\n NCls = GGod()\n CBIr = NCls.execute('SELECT * FROM user WHERE id = ?', (uJjO,)).fetchone()\n ... | [
"0.8309389",
"0.80960095",
"0.80669355",
"0.79870933",
"0.79589933",
"0.7922929",
"0.7917047",
"0.79155266",
"0.7914188",
"0.7914188",
"0.7914188",
"0.78953147",
"0.7883289",
"0.7867821",
"0.7848868",
"0.78213626",
"0.7775275",
"0.7773229",
"0.77613443",
"0.77457833",
"0.7737... | 0.8053637 | 3 |
Computes the softmax of a tensor along a given axis. | def kaos(WKvO, jmzt, jDK_=-1):
return ZylS.math.reduce_sum(ZylS.nn.softmax(WKvO * jmzt, axis=jDK_) * WKvO, axis=jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO, jDK_=1):\n qC1Y = nMvt.ndim(WKvO)\n if qC1Y == 2:\n return nMvt.softmax(WKvO)\n elif qC1Y > 2:\n tTpl = nMvt.exp(WKvO - nMvt.max(WKvO, axis=jDK_, keepdims=True))\n KCHu = nMvt.sum(tTpl, axis=jDK_, keepdims=True)\n return tTpl / KCHu\n else:\n raise Valu... | [
"0.86174214",
"0.85705125",
"0.8240462",
"0.8206786",
"0.8144401",
"0.81389797",
"0.8118422",
"0.8114568",
"0.8110975",
"0.8094117",
"0.80738425",
"0.8045158",
"0.8030318",
"0.80280393",
"0.78016365",
"0.78010553",
"0.7789996",
"0.77608764",
"0.767763",
"0.7623352",
"0.761253... | 0.7634509 | 19 |
Update images on the screen, and flip (update) to the new screen. | def khpC(YKHO):
YKHO.window.blit(YKHO.background, (0, 0))
YKHO.sprite.draw()
a9eO.display.flip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()",
"def udoe(YKHO) -> None:\n a9eO... | [
"0.76224566",
"0.752691",
"0.7319982",
"0.7307166",
"0.7277926",
"0.72442937",
"0.7241208",
"0.7192584",
"0.7186525",
"0.718529",
"0.7124376",
"0.7099924",
"0.70680016",
"0.7066958",
"0.7056329",
"0.70558655",
"0.7001001",
"0.69758487",
"0.6969325",
"0.69529986",
"0.6932939",... | 0.72517353 | 5 |