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 |
|---|---|---|---|---|---|---|
Creates a vocab of up to max_size words, reading from the vocab_file. If max_size is 0, reads the entire vocab file. | def FIMM(YKHO, AsxV, E0wO):
YKHO._word_to_id = {}
YKHO._id_to_word = {}
YKHO._count = 0
for yzQ0 in [JarF, z1QK, bZIn, qVg1]:
YKHO._word_to_id[yzQ0] = YKHO._count
YKHO._id_to_word[YKHO._count] = yzQ0
YKHO._count += 1
with open(AsxV, 'r') as bz_W:
for zFiD in bz_W:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K218(jXxl):\n ABWP = ulZV.simulation.datasets.stackoverflow.load_word_counts(cache_dir='/tmp')\n return list(ABWP.keys())[:jXxl]",
"def efap(GEQi, i0XC, bhnf, b0j5=None, ocBH=True):\n if not qJi5.Exists(GEQi):\n print('Creating vocabulary %s from data %s' % (GEQi, i0XC))\n CtWL = {}\n ... | [
"0.77154875",
"0.7610258",
"0.75389427",
"0.7482672",
"0.74462205",
"0.71611786",
"0.7073963",
"0.70486355",
"0.6762593",
"0.6707071",
"0.661201",
"0.65914786",
"0.64898854",
"0.6485488",
"0.64273554",
"0.6421991",
"0.6369072",
"0.6351218",
"0.6325294",
"0.62968075",
"0.62607... | 0.69756883 | 8 |
Add a point that exists in building config but not in message. | def zg0b(YKHO, AU8u: str) -> None:
YKHO._valid = False
YKHO._missing_points.append(AU8u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbHN(YKHO, AU8u: str) -> None:\n YKHO._valid = False\n YKHO._missing_present_values.append(AU8u)",
"def dRty(YKHO, AU8u: str) -> None:\n YKHO._valid = False\n YKHO._extra_points.append(AU8u)",
"def h2nb(YKHO, nPrm=None, tvqc=None, MPlV=None):\n d6pt = YKHO.getIndexPoint(event=tvqc, plane=nPr... | [
"0.6199457",
"0.60503995",
"0.57947356",
"0.5788921",
"0.5535654",
"0.54810846",
"0.5433729",
"0.5320492",
"0.5319616",
"0.5284959",
"0.52364117",
"0.52364117",
"0.52364117",
"0.52131104",
"0.5211699",
"0.5187845",
"0.5168795",
"0.5150008",
"0.51141715",
"0.5109992",
"0.50532... | 0.6627074 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = qIxc.lr * (1 - 0.015) ** qtWj
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.7398816 | 69 |
Convert a Cypher value to a Python Unicode string. This function converts the supplied value into a string form, as used for humanreadable output. This is generally identical to | def jzgQ(BWXx, **B2fa):
if isinstance(BWXx, gHji):
return BWXx
elif isinstance(BWXx, jUrF):
return BWXx.decode(B2fa.get('encoding', 'utf-8'))
else:
return UmjJ(BWXx, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KHvY(YKHO, BWXx, tZ2K='utf8'):\n if isinstance(BWXx, str):\n return BWXx\n return str(BWXx, tZ2K)",
"def FLqr(YKHO, BWXx):\n try:\n BWXx = str(BWXx)\n except UnicodeEncodeError:\n try:\n BWXx = str(BWXx.encode('ISO-8859-15'))\n except UnicodeEncodeError:\n ... | [
"0.73247373",
"0.7293527",
"0.7141125",
"0.69979966",
"0.6909878",
"0.6879357",
"0.67949605",
"0.6731768",
"0.666175",
"0.654128",
"0.65021574",
"0.6477549",
"0.6477549",
"0.644888",
"0.6448638",
"0.64203465",
"0.64179426",
"0.6406938",
"0.6384979",
"0.63812923",
"0.6380067",... | 0.78996384 | 0 |
Original Implementation of the gelu activation function in Google Bert repo when initially created. | def Hrvd(WKvO):
return WKvO * 0.5 * (1.0 + ht2j.erf(WKvO / epAf.sqrt(2.0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CKFj(pKvt):\n yvT9 = 1 + ZylS.tanh(oyIN.sqrt(oyIN.pi) * (pKvt + 0.044715 * ZylS.pow(pKvt, 3)))\n yvT9 *= 0.5 * pKvt\n return yvT9",
"def CKFj(pKvt):\n yvT9 = 1 + ZylS.tanh(oyIN.sqrt(oyIN.pi) * (pKvt + 0.044715 * ZylS.pow(pKvt, 3)))\n yvT9 *= 0.5 * pKvt\n return yvT9",
"def Vmco(FRUf, wZLk... | [
"0.7250695",
"0.7250695",
"0.7118769",
"0.6987851",
"0.6980915",
"0.69768816",
"0.67160904",
"0.67001384",
"0.650245",
"0.648378",
"0.6446696",
"0.6422017",
"0.6411159",
"0.6378614",
"0.6306891",
"0.61967504",
"0.6176067",
"0.6128397",
"0.6128397",
"0.6128397",
"0.6128397",
... | 0.6266658 | 15 |
Basic contact page that takes a name, email, and message and sends the message as an email to the site owner. | def Mxk0(QePW):
if QePW.method == 'POST':
UYKr = H6V6.Contact(QePW.POST)
if UYKr.is_valid():
TKMu = UYKr.cleaned_data
Ol8d = f'\n Name: {TKMu['first_name']} {TKMu['last_name']}\n\n Message:\n {TKMu['message']}\n\n (Press to reply to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mzWx(nPrm):\n U4ZT = f'Inkbusters form contact: {nPrm['title']}'\n vC92 = wk5E.config['MAIL_USERNAME']\n n6_N = ['adrian.borowski.tattoo@gmail.com']\n ozzS = TvZl('email/email_contact.txt', data=nPrm)\n Z3Ek = TvZl('email/email_contact.html', data=nPrm)\n pC5n(subject=U4ZT, sender=vC92, recip... | [
"0.7681415",
"0.76364386",
"0.7580009",
"0.75336844",
"0.7508874",
"0.74715376",
"0.7387366",
"0.73862416",
"0.73083216",
"0.7290592",
"0.7290198",
"0.72797084",
"0.72797084",
"0.72047776",
"0.72031397",
"0.72031397",
"0.72031397",
"0.72031397",
"0.72031397",
"0.72031397",
"0... | 0.7452471 | 6 |
Returns is seq is sequence and not string. | def Znlm(Q6uT):
return isinstance(Q6uT, g760.abc.Sequence) and (not isinstance(Q6uT, str)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jom1(YEnM):\n return hasattr(YEnM, '__iter__') and (not isinstance(YEnM, str))",
"def FDfP(BWXx):\n return hasattr(BWXx, '__iter__') and (not isinstance(BWXx, (jKi7.string_types, jKi7.binary_type)))",
"def FDfP(ZfUD):\n return not hasattr(ZfUD, 'strip') and (hasattr(ZfUD, '__getitem__') or hasattr... | [
"0.76831025",
"0.75530386",
"0.7428751",
"0.7346544",
"0.72136575",
"0.7135174",
"0.70628536",
"0.6936288",
"0.68852645",
"0.687924",
"0.6743411",
"0.67217743",
"0.670854",
"0.6705627",
"0.66954195",
"0.6666201",
"0.6439784",
"0.63700044",
"0.6265502",
"0.62411654",
"0.608838... | 0.8542561 | 0 |
Generates the app routes using the configuration parameters. | def elFr(Fv2L: T.Dict[T.Text, T.Any]) -> Kt_s.List[jA2G.RouteDef]:
XCv1 = [jA2G.get('/api/verify', wOmD.verify), jA2G.get('/api/interpolate', wOmD.interpolate)]
if Fv2L.get('graphiql'):
XCv1.append(xuqZ.get_view(graphiql=True))
else:
XCv1.append(xuqZ.get_view(graphiql=False))
return XCv1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkbJ(YKHO):\n YKHO._app.route('/api/autoconf', methods=['GET'], endpoint='api_autoconf')(YKHO.entrypoint)\n YKHO._app.route('/api/autoconf/<string:session_id>', methods=['GET', 'POST', 'DELETE'], endpoint='api_autoconf_status')(YKHO.entrypoint)\n YKHO._app.route('/api/autoconf/rgc', methods=['POST', '... | [
"0.7552453",
"0.7467011",
"0.70304716",
"0.70142955",
"0.6975728",
"0.6853407",
"0.6761418",
"0.66410583",
"0.6578278",
"0.65600365",
"0.64498144",
"0.640278",
"0.6389206",
"0.6334587",
"0.63295215",
"0.6309324",
"0.628035",
"0.6262996",
"0.6252107",
"0.6222517",
"0.6213156",... | 0.78941584 | 0 |
Given a list, it concatenates all the elements into a string. | def KCQd(JTgH):
o9EA = ''
for LihS in JTgH:
o9EA += str(LihS)
return o9EA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def whrw(list):\n vIwR = ''\n for WKvO in list:\n vIwR = vIwR + str(WKvO)\n return vIwR",
"def vxch(YKHO, list) -> str:\n vIwR = ''\n for U6D_ in list:\n vIwR = vIwR + str(U6D_) + '\\n'\n return vIwR",
"def irIg(DMbc):\n return ' '.join(DMbc)",
"def sCS9(aPd6):\n o4sw = ... | [
"0.86829597",
"0.795348",
"0.7901727",
"0.78963417",
"0.78103286",
"0.76697254",
"0.76127714",
"0.76094127",
"0.7530823",
"0.7454834",
"0.7435962",
"0.74323213",
"0.73956984",
"0.73895997",
"0.73823947",
"0.73823947",
"0.73775",
"0.7371389",
"0.7365496",
"0.731931",
"0.731412... | 0.81429213 | 1 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ... | [
"0.8313066",
"0.82006806",
"0.8049215",
"0.80409706",
"0.8017754",
"0.7999701",
"0.79541886",
"0.7942144",
"0.7942144",
"0.7942144",
"0.7937664",
"0.79287225",
"0.7921711",
"0.790314",
"0.7892264",
"0.7890117",
"0.7878668",
"0.786143",
"0.78528684",
"0.7823523",
"0.7813124",
... | 0.77466476 | 47 |
Test that the url can deal with the current_app context setting. | def MGtc():
from coffin.template.loader import get_template_from_string
from django.template import RequestContext
from django.http import HttpRequest
a1PO = get_template_from_string('{% url testapp:the-index-view %}')
assert a1PO.render(RequestContext(HttpRequest())) == '/app/one/'
assert a1PO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uymu(YKHO):\n YKHO.setup_defaults()\n P4t4 = YKHO.get_app()\n with P4t4.test_request_context('/'):\n YKHO.assertEqual(nKyW('nereid.website.home', _external=True), 'http://localhost/')",
"def tbjH(YKHO):\n geh0 = YKHO.client.get('/')\n YKHO.assertContains(geh0, 'Imager Site')",
"def iY... | [
"0.6544757",
"0.63869876",
"0.636498",
"0.63288945",
"0.63288945",
"0.63078755",
"0.62511945",
"0.6223648",
"0.61608344",
"0.6149793",
"0.61488473",
"0.6083443",
"0.6059816",
"0.6058962",
"0.60523534",
"0.6024216",
"0.6016266",
"0.601187",
"0.59928435",
"0.5983868",
"0.596849... | 0.70756197 | 0 |
Define A Simple Data Source Constructor | def m5Tx():
__n6 = [0.1, 0.2, 0.3, 0.4, 0.5]
while True:
ITS7.sleep(2)
yield tuKI.choice(__n6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, cYDi, PJWX=True):\n pass",
"def FIMM(YKHO):\n super(vJc7, YKHO).__init__()",
"def FIMM(YKHO, **B2fa):\n pVAc.__init__(YKHO, **B2fa)",
"def EaSo():\n WKvO = oyIN.array([1])\n LVAh = oyIN.sin(WKvO)\n qqgr = oyIN.cumsum(LVAh) / oyIN.arange(1.0, len(LVAh) + 1.0)\n m5Tx = CJD_(... | [
"0.7411646",
"0.7189689",
"0.66582537",
"0.65334475",
"0.64920527",
"0.64828986",
"0.64650285",
"0.64563006",
"0.6447131",
"0.64084506",
"0.63733727",
"0.6348368",
"0.63443285",
"0.6323235",
"0.63107264",
"0.63107264",
"0.6273803",
"0.6269963",
"0.6239284",
"0.6216172",
"0.62... | 0.0 | -1 |
Get parser description. We parse this as reStructuredText, allowing users to embed rich information in their help messages if they so choose. | def hVM_(wvEv):
for zFiD in JDJM.string2lines(wvEv.description, tab_width=4, convert_whitespace=True):
yield zFiD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnsH(YKHO):\n return YKHO._parser.description",
"def t5do(YKHO):\n try:\n dOy0 = YKHO.__data['descriptions']['MM - ' + YKHO.__name]['text'].replace('<p>', '').split('</p>')[0]\n return dOy0\n except:\n return None",
"def t5do(YKHO):\n return ZbWC.sub('\\n\\\\W+', ' ', YKHO.... | [
"0.7108416",
"0.69704455",
"0.68859166",
"0.68767816",
"0.68767816",
"0.682973",
"0.682973",
"0.682973",
"0.682973",
"0.67996067",
"0.6778806",
"0.67397755",
"0.67397755",
"0.6728579",
"0.6728579",
"0.67031825",
"0.6693854",
"0.66926014",
"0.6679759",
"0.6674419",
"0.66639555... | 0.0 | -1 |
Get a reader by reader's type. | def _QmQ(nops):
return Y63l.get(nops, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _QmQ(FYKK):\n if oWPI(FYKK):\n return h9FG(FYKK)\n elif RW__(FYKK):\n return MrzE(FYKK)\n else:\n raise ValueError('Could not get reader for %s' % FYKK)",
"def cBOu(YKHO, VqRE: str):\n ztnR = Hy7s.path.splitext(VqRE)[-1]\n YKHO._validate_file(VqRE)\n if ztnR == '.ipynb'... | [
"0.7281672",
"0.6302608",
"0.6185781",
"0.61075497",
"0.5981711",
"0.5973598",
"0.59378946",
"0.5904417",
"0.58844227",
"0.5740614",
"0.5700527",
"0.5684732",
"0.5681969",
"0.5621444",
"0.5567588",
"0.5534645",
"0.5519957",
"0.53459203",
"0.53018034",
"0.526802",
"0.5236586",... | 0.8406222 | 0 |
Gets the value of the element. For input tags, this method is used to retrieve the value (cannot be obtained with the Textcontent property). Note that for DOM elements with no value, the value is none. | def BWXx(YKHO):
return YKHO.raw.get_attribute('value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.element().get_attribute('value') if YKHO.exists() else ''",
"def UnfG(YKHO):\n return YKHO.field.text()",
"def BWXx(YKHO):\n return YKHO.element.get_attribute('value')",
"def BWXx(YKHO):\n return YKHO.element.get_attribute('value')",
"def BWXx(YKHO):\n return YK... | [
"0.7887481",
"0.78870845",
"0.78830457",
"0.78830457",
"0.78830457",
"0.77831835",
"0.7523947",
"0.74936545",
"0.7473668",
"0.74506706",
"0.7379061",
"0.7379061",
"0.7345596",
"0.7345596",
"0.7345596",
"0.7345596",
"0.7345596",
"0.7345596",
"0.7345596",
"0.7345596",
"0.734559... | 0.0 | -1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
UH90 = oyIN.exp(WKvO)
UH90 = UH90 / oyIN.sum(UH90, axis=0)
return UH90 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.0 | -1 |
Converts flattened theta back to tensor shape compatible with network | def Kvyu(C3ST, q7In):
_mSQ = []
or8S = 0
for gEmA in C3ST.layers:
PvFr = []
for xqoZ in gEmA.get_weights():
NJAn = oyIN.prod(xqoZ.shape)
PvFr.append(oyIN.asarray(q7In[or8S:or8S + NJAn].reshape(xqoZ.shape), dtype=oyIN.float32))
or8S += NJAn
_mSQ.app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDTT(WKvO):\n return ZylS.contrib.layers.flatten(WKvO)",
"def mLv6(YKHO):\n return ZylS.reshape(YKHO.out_degrees_tf, [YKHO.n])",
"def MKPt(YKHO, S8xm, zNig):\n return ZylS.reshape(S8xm, (-1, zNig))",
"def MKPt(i92A):\n with ZylS.name_scope('flatten'):\n ROpF = int(oyIN.prod(i92A.get_sh... | [
"0.64800155",
"0.62993",
"0.6212624",
"0.61442155",
"0.61127913",
"0.6107817",
"0.6011825",
"0.5938885",
"0.59202063",
"0.5907756",
"0.5895051",
"0.5882685",
"0.58445317",
"0.5799527",
"0.577262",
"0.57253724",
"0.57253724",
"0.5718193",
"0.5685154",
"0.56815773",
"0.567601",... | 0.61661416 | 3 |
Sets the Keras model params from a flattened numpy array of theta | def XbfU(C3ST, q7In):
_mSQ = Kvyu(C3ST, q7In)
C3ST.set_weights(_mSQ)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZRx(YKHO, q7In):\n YKHO.params = q7In\n return YKHO",
"def L1EB(YKHO, q7In):\n YKHO.rnn.theta.set_value(q7In)",
"def q7In(YKHO, q7In):\n YKHO.kernel.theta = q7In",
"def Kvyu(C3ST, q7In):\n _mSQ = []\n or8S = 0\n for gEmA in C3ST.layers:\n PvFr = []\n for xqoZ in gEmA.g... | [
"0.6812525",
"0.66009647",
"0.62490714",
"0.6046544",
"0.60355115",
"0.59157515",
"0.59119356",
"0.59011436",
"0.5796549",
"0.5793016",
"0.5772094",
"0.57327294",
"0.56880444",
"0.5686082",
"0.5668403",
"0.56546223",
"0.5641231",
"0.56330866",
"0.56214255",
"0.5532082",
"0.55... | 0.76384664 | 0 |
Return the height of the window | def bAiv(YKHO):
return YKHO.height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eIgl(YKHO):\n return YKHO._window_size()[1]",
"def H2v2(YKHO):\n bGrB, h3cg, bGrB, Z3uP = YKHO.viewport\n return YKHO.parent.window_size[1] * (Z3uP - h3cg)",
"def H2v2(YKHO):\n return YKHO.SCREEN_H",
"def H2v2(YKHO) -> int:\n return YKHO.screen.getmaxyx()[0]",
"def WEQQ(YKHO):\n retur... | [
"0.8742522",
"0.86418915",
"0.81723183",
"0.8047453",
"0.7829384",
"0.76832265",
"0.76553386",
"0.7527061",
"0.75238705",
"0.75062746",
"0.74959934",
"0.7469232",
"0.74500936",
"0.74455863",
"0.74455863",
"0.7442378",
"0.74163246",
"0.7395741",
"0.7395741",
"0.7395741",
"0.73... | 0.74715227 | 12 |
Undraw the object (i.e. hide it). Returns silently if the object is not currently drawn. | def INFO(YKHO):
if not YKHO.canvas:
return
if not YKHO.canvas.isClosed():
sJjt(YKHO.canvas.delete, YKHO.id)
if YKHO.canvas.autoflush:
gmYn(qpKq.update)
pass
YKHO.canvas = None
YKHO.id = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FaAz(YKHO, YEnM):\n YKHO._drawables.discard(YEnM)\n YKHO._updateables.discard(YEnM)\n YKHO._collidables.discard(YEnM)\n YKHO._projectiles.discard(YEnM)\n YKHO._textboxes.discard(YEnM)\n YKHO.__len__.cache_clear()",
"def KiXY(YKHO, *qIxc, **B2fa):\n YKHO._canvas.unbind(*qIxc, **B2fa)",
... | [
"0.6406441",
"0.62361354",
"0.6193606",
"0.6178376",
"0.61770606",
"0.6104393",
"0.6041389",
"0.5991233",
"0.5923967",
"0.5899326",
"0.58970976",
"0.58596146",
"0.58549887",
"0.5854115",
"0.58108544",
"0.57884526",
"0.57866013",
"0.5782513",
"0.5741284",
"0.57247525",
"0.5720... | 0.7296931 | 0 |
Returns a copy of this Pixmap | def i3ak(YKHO):
return KQr9(YKHO.image.copy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _gO8(YKHO):\n return YKHO._pixmap",
"def jth9(YKHO):\n return hnIv(YKHO.img.copy())",
"def jth9(YKHO) -> 'BaseImage':\n LNo8 = K8L2(image_path=YKHO._filepath, drawing_mode=YKHO._drawing_mode, drawing_offset=YKHO._drawing_offset, load_from_file=False, frombase64=YKHO._frombase64)\n LNo8._angle =... | [
"0.71491456",
"0.6812532",
"0.6654499",
"0.62792975",
"0.62792975",
"0.6201754",
"0.6177614",
"0.61632174",
"0.61628383",
"0.6132829",
"0.6066402",
"0.59559345",
"0.5934361",
"0.5921455",
"0.58904016",
"0.57947856",
"0.57946366",
"0.5792253",
"0.5779137",
"0.57752925",
"0.574... | 0.889772 | 0 |
Returns integer representing maximum power output of solar panel array | def GERS(fUYa):
oJpn = []
tpuU = None
jMlA = []
QlKX = False
if isinstance(fUYa, list) and (not fUYa):
raise IndexError('xs must be a non-empty list. Empty list received.')
for WKvO in fUYa:
if WKvO > 0:
jMlA.append(WKvO)
if WKvO < 0:
if not tpuU o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUNe(YKHO):\n X_m2 = YKHO.model * YKHO.max_pwm / 100\n return X_m2",
"def Jp_o(YKHO):\n return YKHO.max_power",
"def uUcB():\n return -3.8918287373004357",
"def nbUB(YKHO):\n YKHO.max_power = max(YKHO.getOutputValue('RotPwr'))",
"def X4Qf(YKHO) -> float:\n return 9",
"def f0fZ(nPrm:... | [
"0.69011664",
"0.67780834",
"0.6692524",
"0.6583201",
"0.6428379",
"0.6374584",
"0.63191813",
"0.62709254",
"0.62561285",
"0.6233588",
"0.62227124",
"0.6212908",
"0.61916864",
"0.6175198",
"0.6144504",
"0.61244524",
"0.6121709",
"0.61081904",
"0.610289",
"0.61014277",
"0.6098... | 0.65452266 | 4 |
Generates cell to the left of current cell. | def Y8N6(YKHO, WKvO, LVAh, wORu):
MmB2 = YKHO.island_map[LVAh][WKvO - 1]
wORu.append(MmB2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ap8_(YKHO):\n Cs6h = rApN(YKHO.width, YKHO.height)\n for r845 in range(0, YKHO.height):\n for YRbF in range(0, YKHO.width):\n Ty9i = YKHO.get(YKHO.width - 1 - r845, YRbF)\n Cs6h.set(YRbF, r845, Ty9i)\n return Cs6h",
"def BOYQ(YKHO):\n YKHO.rect.centerx -= 9",
"def j... | [
"0.70819235",
"0.6975897",
"0.6953719",
"0.69454205",
"0.6907529",
"0.6897413",
"0.6869083",
"0.6869083",
"0.6783098",
"0.67385286",
"0.66796345",
"0.66774154",
"0.6676252",
"0.6650228",
"0.6643324",
"0.66370374",
"0.6589287",
"0.6584987",
"0.6570146",
"0.6564305",
"0.6525833... | 0.7016711 | 1 |
Adds carnivores to the island population. Used for 'adding_population' method. | def Ocp2(YKHO, io6K, QzNR):
YKHO.island_map[QzNR['loc'][0]][QzNR['loc'][1]].population.append(qoEj(age=io6K['age'], weight=io6K['weight'])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jJEh(YKHO, CHNM):\n for oMqC in CHNM:\n LVAh, WKvO = [exwG - 1 for exwG in oMqC['loc']]\n for KheR in oMqC['pop']:\n if KheR['species'] == 'Herbivore':\n YKHO.island.island[LVAh][WKvO].herbivores.append(exSo(weight=KheR['weight'], age=KheR['age'], coordinates=(LVAh, W... | [
"0.6488862",
"0.5977973",
"0.5623271",
"0.5505954",
"0.5245644",
"0.50400364",
"0.49819586",
"0.49449646",
"0.49330732",
"0.49230498",
"0.48969296",
"0.48944554",
"0.48917755",
"0.48714575",
"0.48688993",
"0.4861397",
"0.4853813",
"0.48414904",
"0.48213258",
"0.48149297",
"0.... | 0.7950215 | 0 |
yield successive nsized chunks from list l | def qCZK(vC9B, exwG=10):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def AyNP(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[Y... | [
"0.82189894",
"0.8204953",
"0.8197592",
"0.8148836",
"0.8140544",
"0.81378734",
"0.81292903",
"0.8127351",
"0.8127351",
"0.8124293",
"0.81232536",
"0.81219226",
"0.80977917",
"0.80727047",
"0.806711",
"0.80289614",
"0.80289614",
"0.8025218",
"0.8025218",
"0.8025218",
"0.79973... | 0.0 | -1 |
Get list of available products | def jlB2(zawA=True):
TLbt = G4JS.get(kh6s + 'products')
ficO = qQXR.loads(TLbt.content)['products']
Csk6 = U8Lr(zip([WKvO.pop('product') for WKvO in ficO], ficO))
if zawA:
return Csk6
return Csk6.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nOVP():\n CkrI = {}\n try:\n with ufJ1:\n uZKd = ufJ1.connection.assignment_07['product'].find()\n for Lx3t in uZKd:\n if int(Lx3t['quantity_available']) > 0:\n CkrI[Lx3t['product_id']] = {'description': Lx3t['description'], 'product_type': L... | [
"0.820228",
"0.8188385",
"0.8147095",
"0.80760795",
"0.8058985",
"0.76072353",
"0.7576175",
"0.7575832",
"0.75192446",
"0.7515428",
"0.74613464",
"0.74519205",
"0.7389093",
"0.7314297",
"0.72184676",
"0.7207571",
"0.71557575",
"0.7142874",
"0.7123189",
"0.71197903",
"0.711818... | 0.6472543 | 57 |
Normalize an encoding name. | def a_0X(tZ2K):
if isinstance(tZ2K, bytes):
tZ2K = str(tZ2K, 'ascii')
gLiZ = []
qpw9 = False
for Z9rn in tZ2K:
if Z9rn.isalnum() or Z9rn == '.':
if qpw9 and gLiZ:
gLiZ.append('_')
if Z9rn.isascii():
gLiZ.append(Z9rn)
qpw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uD9m(YKHO, BWXx):\n import unicodedata\n import re\n YKHO.log('Converting string %s' % BWXx)\n try:\n BWXx = unicodedata.normalize('NFKD', u'%s' % BWXx).encode('ascii', 'ignore')\n BWXx = QMSQ(re.sub('[^\\\\w\\\\s-]', '', BWXx).strip().lower())\n BWXx = re.sub('[-\\\\s]+', '-',... | [
"0.7139224",
"0.7113511",
"0.70428526",
"0.70362127",
"0.6853774",
"0.6777337",
"0.67644906",
"0.67644906",
"0.67644906",
"0.6589034",
"0.6557821",
"0.64751935",
"0.6379293",
"0.63538426",
"0.63372886",
"0.63209635",
"0.6301066",
"0.62955683",
"0.6286991",
"0.62798905",
"0.62... | 0.6184507 | 23 |
Constructs a `TensorSummary` instance. | def FIMM(YKHO, mWFP: str):
if mWFP == JvOe:
raise ValueError(f'{JvOe} is a reserved name. Please use a different name for summaries.')
super().__init__(mWFP)
YKHO._log_provider = myoB(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def Y4OH(mWFP, BWXx):\n QxIo = ZylS.Summary()\n wEf2 = QxIo.value.add()\n wEf2.tag = str(mWFP)\n wEf2.simple_value = float(BWXx)\n return QxIo",
... | [
"0.7188703",
"0.68655676",
"0.6832173",
"0.67569655",
"0.6729925",
"0.6673327",
"0.6660357",
"0.6602413",
"0.6602413",
"0.6545785",
"0.6529805",
"0.6506894",
"0.6496368",
"0.6480261",
"0.6469945",
"0.6331449",
"0.62910557",
"0.62894934",
"0.62371325",
"0.6091151",
"0.60899967... | 0.0 | -1 |
Convenience method for creating and running tensor summaries. This method searches registered summaries for the given name. If one is found, it uses it. Otherwise, it creates a new summary and runs the tensor through that summary. | def Qbew(mWFP: str, vhpA: torch.Tensor):
QxIo = P_mK(mWFP)
QxIo(vhpA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fsN4(mWFP, SRYB):\n with ZylS.name_scope('{}/summaries'.format(mWFP)):\n JBMS = ZylS.reduce_mean(SRYB)\n ZylS.summary.scalar('mean', JBMS)\n with ZylS.name_scope('stddev'):\n z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))\n ZylS.summary.scalar('stddev', z... | [
"0.66983134",
"0.62766343",
"0.62203974",
"0.62158775",
"0.61121404",
"0.6107735",
"0.60967565",
"0.60816747",
"0.60495394",
"0.6002912",
"0.5962757",
"0.5958025",
"0.59249365",
"0.5917806",
"0.59047234",
"0.5903628",
"0.5901872",
"0.5901872",
"0.58882743",
"0.58176863",
"0.5... | 0.7288509 | 0 |
Returns the UTC time when this tensor was saved. | def oZmq(YKHO) -> qcWV:
return qcWV.utcfromtimestamp(float(YKHO.ns_since_epoch) / 1000000000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3(YKHO):\n return qcWV.datetime.utcnow()",
"def E3oo(YKHO):\n return ITS7.time()",
"def DUnb(YKHO):\n qtWj = float(YKHO._current_observation['observation_epoch'])\n return qcWV.datetime.utcfromtimestamp(qtWj)",
"def aqVz() -> str:\n return str(qcWV.now().astimezone())",
"def aqVz() ->... | [
"0.7535067",
"0.74245363",
"0.7319065",
"0.71778023",
"0.71778023",
"0.7085643",
"0.7083075",
"0.706",
"0.7040117",
"0.7004145",
"0.6996977",
"0.6996977",
"0.6996977",
"0.6994038",
"0.6991442",
"0.6991442",
"0.6976124",
"0.6969902",
"0.69696677",
"0.69696677",
"0.69696677",
... | 0.6709185 | 73 |
Returns a descriptor from a dict of values. | def jG8h(hkxX) -> 'TensorDescriptor':
return SV4d(**hkxX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, Csk6):\n la9G = Csk6.get('confidence', None)\n si3H = Csk6.get('constant', False)\n dJ1p = Csk6.get('tags', None)\n return Emd4(Csk6['name'], Csk6['value'], confidence=la9G, constant=si3H, tags=dJ1p)",
"def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)",
"def jG8h(Emd4, qHj0) -> 'Shardi... | [
"0.6554534",
"0.6157181",
"0.60732394",
"0.6007713",
"0.5857444",
"0.584524",
"0.5833858",
"0.57635784",
"0.5691932",
"0.5688369",
"0.56861687",
"0.5673174",
"0.5606009",
"0.5583979",
"0.556795",
"0.554785",
"0.55357885",
"0.55279756",
"0.5519273",
"0.55075663",
"0.54962593",... | 0.7652282 | 0 |
Constructs a `TensorSummaryReader` instance. | def FIMM(YKHO, pmON: str):
YKHO._path = pmON
YKHO._summary_dirs: x1iM[GkAb] = []
a6y7 = YKHO._discover_event_files(YKHO._path)
WSwM = YKHO._discover_cerebras_summary_dirs(a6y7)
YKHO._summary_dirs = YKHO._discover_tensor_summary_dirs(WSwM)
if not YKHO._summary_dirs:
G9jH.warning(f'Could n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0fz(YKHO):\n YKHO.summaries['loss'] = ZylS.summary.scalar('loss', YKHO.loss)\n YKHO.summaries['0_inputs_outputs'] = ZylS.summary.image('0_inputs_outputs', ZylS.concat([ZylS.expand_dims(ZylS.expand_dims(ZylS.stack(YKHO.inputs, axis=-1), axis=0), axis=-1), ZylS.ones(shape=(1, YKHO.input_vector_size, 1, 1)... | [
"0.5490224",
"0.5213864",
"0.5162801",
"0.5153095",
"0.5145889",
"0.51341957",
"0.5131073",
"0.5083866",
"0.5083866",
"0.50705135",
"0.5033322",
"0.502389",
"0.50201267",
"0.50047",
"0.5002436",
"0.4990002",
"0.4973144",
"0.49505648",
"0.49483812",
"0.49429953",
"0.49415764",... | 0.45528874 | 90 |
Loads and returns tensor(s) with given name at the given step. | def tyeH(YKHO, mWFP: str, YPaw: int, x5Mg: bool=True) -> uLKX[SV4d, x1iM[SV4d], None]:
K8H8 = []
for u8iS in YKHO._summary_dirs:
for pmON in u8iS.joinpath(mWFP).glob(f'{YPaw}.*'):
if pmON.exists():
hGN5 = ht2j.load(str(pmON))
K8H8.append(SV4d.from_dict(hGN5))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNUK(mWFP, VTcd):\n return VTcd.get_tensor(mWFP).ToNumpy()",
"def hNh6(YKHO, mWFP):\n return YKHO._tensor_name_to_result[mWFP]",
"def OHrd(mWFP):\n if mWFP.rfind(':') == -1:\n mWFP += ':0'\n return ZylS.get_default_graph().get_tensor_by_name(mWFP)",
"def Eki1(YKHO, pNZh, mWFP, mvWS=3):... | [
"0.6505942",
"0.62820977",
"0.61697644",
"0.6062561",
"0.59731156",
"0.5858442",
"0.5854949",
"0.5758646",
"0.56752753",
"0.55361956",
"0.550396",
"0.54739",
"0.54528475",
"0.53111655",
"0.52605957",
"0.5206088",
"0.5203752",
"0.5162752",
"0.5152899",
"0.51366264",
"0.5134263... | 0.57487416 | 8 |
Returns absolute path to directory for writing tensor data. | def CfXJ(YKHO) -> GkAb:
assert YKHO._logdir, 'Log provider has not been tied to a SummaryWriter yet'
return YKHO._logdir | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6eb(__n6, BuX_=GDa9.WORK_DIR):\n return zOLB(mC1D(__n6, BuX_), GDa9.OUTPUT_DIR)",
"def VEcX(YKHO) -> str:\n if YKHO._tensorboard_path is None:\n xtX7 = Hy7s.path.join(YKHO.output_path, YKHO._TENSORBOARD_LOG_DIR)\n if not Hy7s.path.exists(xtX7):\n Hy7s.makedirs(xtX7)\n Y... | [
"0.73302287",
"0.71926546",
"0.694429",
"0.68918866",
"0.6798425",
"0.67864114",
"0.67774826",
"0.66907567",
"0.6685422",
"0.6651306",
"0.6612013",
"0.6585874",
"0.657904",
"0.6537162",
"0.65232337",
"0.65165645",
"0.6503679",
"0.64261",
"0.64139724",
"0.6408016",
"0.64004344... | 0.0 | -1 |
Returns relative path to directory for writing tensor data. This is relative to the directory where the corresponding tensorboard events file resides. | def F9r5(YKHO) -> GkAb:
assert YKHO._logdir, 'Log provider has not been tied to a SummaryWriter yet'
return YKHO._rel_logdir | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VEcX(YKHO) -> str:\n if YKHO._tensorboard_path is None:\n xtX7 = Hy7s.path.join(YKHO.output_path, YKHO._TENSORBOARD_LOG_DIR)\n if not Hy7s.path.exists(xtX7):\n Hy7s.makedirs(xtX7)\n YKHO._tensorboard_path = xtX7\n return YKHO._tensorboard_path",
"def V6eb(__n6, BuX_=GDa9... | [
"0.7482737",
"0.6904064",
"0.6706005",
"0.662319",
"0.6609771",
"0.6598657",
"0.65665823",
"0.65637386",
"0.65606415",
"0.65414023",
"0.6537445",
"0.6537445",
"0.6537445",
"0.65209556",
"0.6520281",
"0.65108603",
"0.6508724",
"0.64876926",
"0.64790624",
"0.64750886",
"0.64496... | 0.6303057 | 41 |
Returns a root directory for placing tensor summaries. | def kKPs(zPtF: Union[str, Path]) -> GkAb:
zPtF = GkAb(zPtF).resolve(strict=True)
TLI7 = zPtF.name.replace('events.out.tfevents.', 'events.out.cbevents.')
return zPtF.parent.joinpath(TLI7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uxqx(HsC7: Union[str, Path]) -> GkAb:\n return HsC7.joinpath('tensors')",
"def LIOs():\n return 'data/simulators/mg1'",
"def rzxN(YKHO, jUu2: bool=False) -> str:\n if YKHO.linked_lut:\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), '../data', YKHO.linked_lut)\n if jUu2:\n return ... | [
"0.7534432",
"0.66555494",
"0.6479312",
"0.64318687",
"0.6378075",
"0.6312645",
"0.6236795",
"0.6236054",
"0.62294745",
"0.6200678",
"0.61913425",
"0.6155077",
"0.61528426",
"0.6141398",
"0.61135185",
"0.61075634",
"0.6090187",
"0.6090187",
"0.60888857",
"0.6082979",
"0.60210... | 0.0 | -1 |
Reads the tensor summary version from summaries root dir. | def Fz4H(tTqh: Path) -> uLKX[str, None]:
hiHK = tTqh.joinpath(JvOe)
if hiHK.exists():
with hiHK.open('r') as eHNT:
hGN5 = qQXR.load(eHNT)
if NthI in hGN5:
return hGN5[NthI]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uxqx(HsC7: Union[str, Path]) -> GkAb:\n return HsC7.joinpath('tensors')",
"def sk91(lTaq: List[Path]) -> x1iM[GkAb]:\n g8pl = []\n for fYvO in lTaq:\n tk5Y = myoB.get_tensor_summaries_root(fYvO)\n H2v5 = True\n if not tk5Y.exists():\n G9jH.warning(f'No tensor summarie... | [
"0.6637483",
"0.5856737",
"0.5608334",
"0.5530554",
"0.5472221",
"0.5454341",
"0.5435715",
"0.54090637",
"0.539351",
"0.5331818",
"0.5295308",
"0.52574855",
"0.52530015",
"0.52372265",
"0.52338415",
"0.52194035",
"0.514872",
"0.514872",
"0.51439327",
"0.5127861",
"0.5121738",... | 0.52626777 | 11 |
Create a new instance of this Mode. Keyword arguments can be provided for the linker, in which case its `clone` method will be called with these arguments. | def i3ak(YKHO, sbOF=None, K0do='', Ol8d=None):
ern7 = YKHO.linker.clone(**sbOF)
S674 = K0do
if K0do == '':
S674 = YKHO.provided_optimizer
d0N7 = type(YKHO)(linker=ern7, optimizer=S674)
if YKHO in vlXI:
vlXI.append(d0N7)
if Ol8d:
d0N7.message = Ol8d
return d0N7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BdN0(YKHO, **B2fa):\n return YKHO.__model__(**YKHO._preprocess_params(B2fa))",
"def PEX4(YKHO, *qIxc, **B2fa):\n Tuqy = B2fa.pop('mode', e89i.compile.mode.get_default_mode())\n uCmi = YKHO.make_no_init(Tuqy)\n if hasattr(uCmi, 'initialize'):\n uCmi.initialize(*qIxc, **B2fa)\n return uCm... | [
"0.6763419",
"0.64121944",
"0.63908464",
"0.62189996",
"0.6114689",
"0.61039305",
"0.5981219",
"0.5930975",
"0.580109",
"0.57511544",
"0.57361966",
"0.5697168",
"0.5650885",
"0.56271666",
"0.5608665",
"0.55935025",
"0.55771893",
"0.55771893",
"0.5562365",
"0.55331695",
"0.551... | 0.7236268 | 0 |
Forward propagation compute the output value based on input nodes and store the value into self.value | def KVH6(YKHO):
raise NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO):\n YKHO.value = oyIN.dot(YKHO.x_node.value, YKHO.w_node.value) + YKHO.b_node.value",
"def Zmkp(YKHO):\n if not YKHO.visited:\n YKHO.visited = True\n for Q6kx, upAO in YKHO.predecessors:\n YKHO.value += Q6kx.get_value() * upAO\n if YKHO.activation is not None:\... | [
"0.7669217",
"0.74298275",
"0.7371656",
"0.7253357",
"0.7160984",
"0.7102906",
"0.70070386",
"0.6917895",
"0.69035614",
"0.6715777",
"0.6689886",
"0.65138143",
"0.64646304",
"0.64565825",
"0.6456289",
"0.6448939",
"0.6433448",
"0.6412225",
"0.6402653",
"0.6400634",
"0.6398856... | 0.0 | -1 |
Creates and returns an Axes object attached to this object's Figure. | def Wity(YKHO, mWFP):
return YKHO.figure.add_axes([0.05, 0.05, 0.9, 0.9], label=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orf9(YKHO):\n QrM1.switch_backend('cairo')\n LZpg = QrM1.figure(figsize=(15, 10))\n aNZO = LZpg.add_axes([0.05, 0.15, 0.9, 0.8])\n return (LZpg, aNZO)",
"def VAy2(YKHO) -> None:\n QrM1.ion()\n YKHO.fig = QrM1.figure(1)\n YKHO.axis = YKHO.fig.add_subplot(111, xlim=(0, 1), ylim=(0, 1))\n ... | [
"0.7047487",
"0.65094334",
"0.6505662",
"0.6493476",
"0.6481961",
"0.63738716",
"0.634137",
"0.63165",
"0.63165",
"0.6307798",
"0.6219995",
"0.618631",
"0.6172847",
"0.61675",
"0.60905874",
"0.5957569",
"0.5946683",
"0.5946683",
"0.5921273",
"0.58983934",
"0.58941424",
"0.5... | 0.6310012 | 9 |
Assign rules to bot {list[Rule]|Rule} rules | def eD8c(YKHO, c_NS):
if not isinstance(c_NS, list):
c_NS = [c_NS]
for eD8c in c_NS:
YKHO.__addRule(eD8c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RyDq(YKHO, c_NS: List[Rule]):\n YKHO.rules.extend(c_NS)",
"async def set_rules(YKHO, OaeV: discord.ext.commands.context.Context, *, c_NS: str):\n HQYq = rDkA.get_guild_info(OaeV.guild)\n if HQYq['rulesChannelID'] is not None:\n j60F = rDkA.get_channel(guild=OaeV.guild, channel_id=HQYq['rulesC... | [
"0.7151604",
"0.6797421",
"0.670297",
"0.67003846",
"0.64769006",
"0.6473998",
"0.6389133",
"0.63680845",
"0.63637793",
"0.6253548",
"0.62169874",
"0.62147576",
"0.6211387",
"0.61407655",
"0.6134305",
"0.6105276",
"0.6081077",
"0.6070477",
"0.6045388",
"0.60409564",
"0.601399... | 0.74536663 | 0 |
Get the front element. | def T7C_(YKHO):
return YKHO.queue[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.items:\n r... | [
"0.82009244",
"0.79261875",
"0.7852642",
"0.7791182",
"0.77886623",
"0.75723046",
"0.752337",
"0.7510604",
"0.7478953",
"0.7379256",
"0.7379256",
"0.734284",
"0.7323573",
"0.7320296",
"0.7291721",
"0.72772557",
"0.7269801",
"0.72657627",
"0.7253295",
"0.72355044",
"0.72213495... | 0.654919 | 70 |
Returns whether the queue is empty. | def lsmZ(YKHO):
return not YKHO.queue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.92692643",
"0.92497975",
"0.92353415",
"0.92353415",
"0.91545284",
"0.9097578",
"0.90938354",
"0.9091679",
"0.9072095",
"0.9052828",
"0.89198774",
"0.89132065",
"0.88763297",
"0.884273",
"0.884273",
"0.88345623",
"0.88032347",
"0.87571824",
"0.8730618",
"0.864504",
"0.8628... | 0.8756626 | 18 |
Create a new Var and add it to the Var scope. | def Qb67(YKHO, mWFP, kN9s):
SRYB = VN2L.Var(mWFP, kN9s)
YKHO.var_scopes[0].appendleft((mWFP, SRYB))
return SRYB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4rf(YKHO, mWFP, zrIJ):\n mWFP = str(mWFP)\n P1pV = LTLo(mWFP, zrIJ)\n if mWFP in YKHO.vs:\n raise RuntimeError(\"Variable '{0}' already defined\".format(mWFP))\n YKHO.vs[mWFP] = P1pV\n return P1pV",
"def C4rf(YKHO, SRYB):\n YKHO.var_list.append(SRYB)\n YKHO.var_dict[SRYB.name] = ... | [
"0.74044526",
"0.69930196",
"0.68243915",
"0.66757524",
"0.66757524",
"0.65560055",
"0.651152",
"0.6464004",
"0.64505494",
"0.64460903",
"0.6439728",
"0.6385581",
"0.6380459",
"0.6375443",
"0.6375443",
"0.6334677",
"0.6319741",
"0.63164896",
"0.63146156",
"0.62874466",
"0.627... | 0.7330912 | 1 |
Deepcopy an observation dict. | def rR9A(W061):
return {G1Hx: oyIN.copy(Ty9i) for G1Hx, Ty9i in W061.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.from_dict(YKHO.to_dict(True))",
"def FzJk(YKHO):\n Csk6 = dict()\n Csk6.update(YKHO.items())\n return Csk6",
"def jth9(YKHO):\n return WY2F(dict.copy(YKHO))",
"def oK4F(YKHO, cmPJ):\n return cmPJ.copy()",
"def jth9(YKHO):\n BdN0 = AwUt()\n for H5ew, BWX... | [
"0.7131251",
"0.7111388",
"0.6887822",
"0.6787168",
"0.67861456",
"0.6576845",
"0.655322",
"0.6445199",
"0.6412705",
"0.63506573",
"0.63001037",
"0.6298945",
"0.6278639",
"0.6261269",
"0.6253145",
"0.62435263",
"0.620387",
"0.6175976",
"0.6169087",
"0.61685205",
"0.612027",
... | 0.784363 | 0 |
Convert an observation dict into a raw array if the original observation space was not a Dict space. | def ZOV1(D_7T):
if set(D_7T.keys()) == {None}:
return D_7T[None]
return D_7T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nhxO(fK8P):\n if isinstance(fK8P, dict) and '__ndarray__' in fK8P:\n nPrm = WR89.b64decode(fK8P['__ndarray__'])\n return oyIN.frombuffer(nPrm, fK8P['dtype']).reshape(fK8P['shape'])\n return fK8P",
"def byED(fK8P):\n if isinstance(fK8P, dict) and '__ndarray__' in fK8P:\n nPrm = W... | [
"0.67930365",
"0.6771495",
"0.6771495",
"0.6771495",
"0.67065537",
"0.6422132",
"0.64013284",
"0.63608253",
"0.6109799",
"0.610762",
"0.6023305",
"0.60232586",
"0.59954816",
"0.5983186",
"0.5876181",
"0.5838815",
"0.580129",
"0.5713723",
"0.57103366",
"0.5697887",
"0.56146824... | 0.58168477 | 16 |
saves data as a yaml file to the given pathname | def l7qG(YKHO, nPrm, uvd8):
uvd8 = YKHO._yaml_extension(uvd8)
with open(uvd8, 'w') as _RR0:
eJb6.dump(nPrm, _RR0, default_flow_style=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aYK2(nPrm, nUeQ, pmON='./data/'):\n with open('{}{}.yml'.format(pmON, nUeQ), 'w') as yvT9:\n eJb6.dump(nPrm, yvT9)",
"def MZB0(nPrm, YyI5: PathLike) -> None:\n with open(YyI5, 'w') as zyFt:\n eJb6.dump(nPrm, zyFt, default_flow_style=False)",
"def xkzz(nPrm, pmON='.travis.yml'):\n if ... | [
"0.8041541",
"0.8008754",
"0.79124606",
"0.77930826",
"0.76837605",
"0.7530199",
"0.73869854",
"0.73643816",
"0.7314376",
"0.72485584",
"0.72120297",
"0.71634215",
"0.7048274",
"0.7010355",
"0.6998923",
"0.6986194",
"0.69353455",
"0.69332635",
"0.6894796",
"0.68790746",
"0.68... | 0.86586624 | 1 |
loads and returns the data from a filepath currently only suports yaml | def DMrX(YKHO, VqRE):
VqRE = YKHO._yaml_extension(VqRE)
nPrm = YKHO._load_data_yaml(VqRE)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bf30(YKHO, uvd8):\n uvd8 = YKHO._yaml_extension(uvd8)\n with open(uvd8) as nUeQ:\n NejO = eJb6.load(nUeQ, Loader=eJb6.FullLoader)\n return NejO",
"def aF8O(pmON):\n import yaml\n ytgA = None\n try:\n ytgA = open(pmON)\n nPrm = yaml.load(ytgA)\n finally:\n if y... | [
"0.76325816",
"0.7474641",
"0.74627763",
"0.7451761",
"0.74369603",
"0.7425077",
"0.73399013",
"0.7332311",
"0.7269149",
"0.7255877",
"0.7241399",
"0.7201785",
"0.7159741",
"0.71520996",
"0.70642245",
"0.70540774",
"0.70469254",
"0.69756097",
"0.6961522",
"0.69470036",
"0.694... | 0.79945546 | 0 |
open and load yaml file Returns list or dict contents of yaml file | def bf30(YKHO, uvd8):
uvd8 = YKHO._yaml_extension(uvd8)
with open(uvd8) as nUeQ:
NejO = eJb6.load(nUeQ, Loader=eJb6.FullLoader)
return NejO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(qaEx):\n with open(qaEx) as Fwbn:\n hGN5 = eJb6.load(Fwbn, Loader=eJb6.FullLoader)\n return hGN5",
"def f9B0(pmON: str) -> cuzp[str, ImMB]:\n with open(pmON, 'r', encoding='utf8') as ytgA:\n nPrm = eJb6.safe_load(ytgA)\n return nPrm",
"def f9B0(nUeQ):\n with open(nUeQ,... | [
"0.7817054",
"0.7654229",
"0.7647486",
"0.7594485",
"0.7582787",
"0.7537064",
"0.7520317",
"0.7514032",
"0.7466005",
"0.74226195",
"0.7417371",
"0.7392923",
"0.7391325",
"0.733824",
"0.7330068",
"0.73198414",
"0.7315563",
"0.7312744",
"0.7298719",
"0.7293845",
"0.7289084",
... | 0.6858378 | 48 |
saves data as a yaml file to the given pathname | def l7qG(YKHO, nPrm, uvd8):
uvd8 = YKHO._yaml_extension(uvd8)
with open(uvd8, 'w') as _RR0:
eJb6.dump(nPrm, _RR0, default_flow_style=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aYK2(nPrm, nUeQ, pmON='./data/'):\n with open('{}{}.yml'.format(pmON, nUeQ), 'w') as yvT9:\n eJb6.dump(nPrm, yvT9)",
"def MZB0(nPrm, YyI5: PathLike) -> None:\n with open(YyI5, 'w') as zyFt:\n eJb6.dump(nPrm, zyFt, default_flow_style=False)",
"def xkzz(nPrm, pmON='.travis.yml'):\n if ... | [
"0.8041541",
"0.8008754",
"0.79124606",
"0.77930826",
"0.76837605",
"0.7530199",
"0.73869854",
"0.73643816",
"0.7314376",
"0.72485584",
"0.72120297",
"0.71634215",
"0.7048274",
"0.7010355",
"0.6998923",
"0.6986194",
"0.69353455",
"0.69332635",
"0.6894796",
"0.68790746",
"0.68... | 0.86586624 | 0 |
Get the node mode class used for this relation link. This is needed to ensure we are not using the base node class used during construction of the model. For polymorphic models the node's node._meta.model may be a subclass of this. | def Ko3g(Emd4, x3vQ='children'):
return getattr(Emd4._meta.model, x3vQ).rel.model | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gR7d(YKHO):\n return Xu3m(YKHO._node_cls)",
"def BuMS(YKHO):\n return YKHO.node_type",
"def PGEZ(YKHO):\n return YKHO._node_type",
"def IVJ5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'db_node_class')",
"def PGEZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'node_type')",
"def PGEZ(YKHO) -> ... | [
"0.6804981",
"0.67144865",
"0.65858227",
"0.64868575",
"0.6256244",
"0.62095153",
"0.6039023",
"0.59502524",
"0.59421843",
"0.58896035",
"0.58895594",
"0.5766037",
"0.57559407",
"0.5734141",
"0.5732424",
"0.5731096",
"0.57057875",
"0.5695185",
"0.5695185",
"0.5695185",
"0.568... | 0.7030535 | 0 |
Find the root nodes in the dag attached to the currect node If the dag is node is an island this will return a query set containing just the source node (self). | def G2z3(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RyBj(YKHO):\n RyBj = []\n for Q6kx in YKHO.nodes:\n if 'querynode' == Q6kx.get('infos').get('type'):\n RyBj.append(Q6kx)\n return RyBj",
"def Ziit(YKHO):\n return YKHO._get_tree_queryset()",
"def G2z3(YKHO, UzPC=None):\n UzPC = UzPC or YKHO.engine.connect()\n return UzPC... | [
"0.62119275",
"0.6149487",
"0.60426825",
"0.601313",
"0.5957541",
"0.5841407",
"0.58398074",
"0.58288956",
"0.57975626",
"0.57959425",
"0.5786706",
"0.5759349",
"0.5740379",
"0.57032055",
"0.5695816",
"0.56885177",
"0.5681696",
"0.5668359",
"0.563715",
"0.56365013",
"0.563318... | 0.0 | -1 |
Validates all images name in excel. | def AWj3(YKHO):
q5XS = rLdf.read_csv(YKHO.file)
KT2k = []
for d6pt, rdlD in q5XS.iterrows():
if not Hy7s.path.isfile(f'{gCuF.MEDIA_ROOT}/images/{rdlD['image_name']}.jpg'):
KT2k.append(rdlD['image_name'])
if len(KT2k) > 0:
geh0 = {'error': KT2k}
else:
geh0 = {'succ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO, Cqok):\n Csk6 = Cqok.directory\n for gIsw in Hy7s.listdir(Csk6):\n if gIsw.endswith('.icon'):\n if ' ' in gIsw:\n raise LxX6(f\"The .icon file name was '{gIsw}'.\\n .icon file may not contain spaces use a '_' instead.\")",
"def n2a3(YKHO, Yw_3):\n tyOh = [... | [
"0.66623217",
"0.6658406",
"0.6494051",
"0.63344526",
"0.61939657",
"0.59784704",
"0.59534335",
"0.5943832",
"0.5930585",
"0.5911532",
"0.58642864",
"0.5753331",
"0.56143767",
"0.5586891",
"0.5578926",
"0.55781466",
"0.5560841",
"0.5503378",
"0.54568374",
"0.5455",
"0.5427461... | 0.6937443 | 0 |
Read the value of this property | def xtUD(YKHO, KAOR, qsJ6):
if YKHO.name is None:
YKHO.name = KG2U.search(KAOR, qsJ6, YKHO)
if YKHO.name is not None:
try:
if KAOR is not None:
return KAOR.__dict__[YKHO.name]
elif qsJ6 is not None:
return qsJ6.__dict__[YKHO.name]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _h_a(YKHO):\n return YKHO.load_attr('value')",
"def NMoC(YKHO):\n return YKHO._value",
"def _h_a(YKHO):\n raise NotImplementedError",
"def _h_a(YKHO):\n raise NotImplementedError",
"def Ueki(YKHO):\n return YKHO.read_value",
"def Ueki(YKHO):\n return YKHO.get_attr().Value()",
"def... | [
"0.82250446",
"0.8176574",
"0.810509",
"0.810509",
"0.796693",
"0.79547805",
"0.79393846",
"0.78652763",
"0.78652763",
"0.7815156",
"0.7815156",
"0.7815156",
"0.7789923",
"0.7789923",
"0.7765907",
"0.7765907",
"0.7765907",
"0.7759358",
"0.77522856",
"0.7720804",
"0.7719444",
... | 0.0 | -1 |
Read the value of this property | def xtUD(YKHO, KAOR, qsJ6):
return (YKHO.key, YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _h_a(YKHO):\n return YKHO.load_attr('value')",
"def NMoC(YKHO):\n return YKHO._value",
"def _h_a(YKHO):\n raise NotImplementedError",
"def _h_a(YKHO):\n raise NotImplementedError",
"def Ueki(YKHO):\n return YKHO.read_value",
"def Ueki(YKHO):\n return YKHO.get_attr().Value()",
"def... | [
"0.82250446",
"0.8176574",
"0.810509",
"0.810509",
"0.796693",
"0.79547805",
"0.79393846",
"0.78652763",
"0.78652763",
"0.7815156",
"0.7815156",
"0.7815156",
"0.7789923",
"0.7789923",
"0.7765907",
"0.7765907",
"0.7765907",
"0.7759358",
"0.77522856",
"0.7720804",
"0.7719444",
... | 0.0 | -1 |
Unicode representation of this model | def Ku9n(YKHO):
return u'%s' % str(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ku9n(YKHO):\n return str(YKHO).decode('ascii')",
"def Ku9n(YKHO):\n return QMSQ(YKHO).encode('utf-8')",
"def zAg0(YKHO):\n return YKHO.__unicode__().encode('utf-8').decode()",
"def Ku9n(YKHO):\n return QMSQ(YKHO.asPyDict())",
"def Ku9n(YKHO):\n return QMSQ(YKHO.GetString())",
"def zAg0... | [
"0.8167525",
"0.8006175",
"0.79807335",
"0.7852525",
"0.77712053",
"0.77484745",
"0.7656151",
"0.74757063",
"0.7471969",
"0.7471969",
"0.7462336",
"0.72724736",
"0.7164928",
"0.71272665",
"0.70481294",
"0.7042886",
"0.7036273",
"0.7017932",
"0.69887066",
"0.69809884",
"0.6946... | 0.74055153 | 11 |
Optimize the sentence towards the target activation. | def VsIv(K0do, h3Aq, lqyV, DOuq, oAeY, D3Yx, tAuv, ovGo, dfHy, t_rd, sRol, ITew, nPrm, I0MX, EqaN, rZh3, sVWi, Gmh0, b0j5, gOwG, C3ST, Unpy):
K0do.zero_grad()
nv9M = NgYg.softmax_one_hots(lqyV, ovGo, t_rd)
UMOP = ht2j.cat([h3Aq, nv9M, DOuq], dim=1)
if sRol:
eNkt.write_top_ks(UMOP, ITew, dfHy, nP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WIl5(YKHO):\n YKHO.output = YKHO.net.forward(iQnE(YKHO.source))\n YKHO.optimizer.zero_grad()\n YKHO.loss = YKHO.loss_function(YKHO.output, iQnE(YKHO.target))\n YKHO.loss.backward()\n YKHO.optimizer.step()",
"def tA0u(yAmx):\n if yAmx.strip() == '':\n return 'Null'\n K0do = False\n... | [
"0.62639695",
"0.6130314",
"0.59339696",
"0.5838509",
"0.56818515",
"0.56087697",
"0.55828065",
"0.5504363",
"0.5461631",
"0.54138947",
"0.54088014",
"0.53690004",
"0.5347256",
"0.5326484",
"0.53169",
"0.5314994",
"0.530622",
"0.52992994",
"0.52988243",
"0.527495",
"0.5267822... | 0.6319755 | 0 |
Opens a get request with params specifying a query string. | def CEeV(bD7m, NArs):
QePW = G4JS.get(bD7m, params=NArs)
return QePW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, *qIxc, **YSA3):\n YSA3['method'] = 'GET'\n return YKHO.open(*qIxc, **YSA3)",
"def NMoC(YKHO, *qIxc, **B2fa):\n YKHO.request('get', *qIxc, **B2fa)",
"def Vl0e(bD7m, MOPg=None, NArs=None) -> oGir:\n if NArs:\n bD7m = '{}?{}'.format(bD7m, hfK9.urlencode(NArs))\n qv1X = VNUm(bD... | [
"0.7315533",
"0.6999508",
"0.69957286",
"0.6964658",
"0.6753037",
"0.6733682",
"0.6717613",
"0.6713933",
"0.67007315",
"0.66816795",
"0.66735643",
"0.66667134",
"0.6625618",
"0.6616819",
"0.65468645",
"0.6501841",
"0.64819735",
"0.64691085",
"0.63853455",
"0.6355646",
"0.6350... | 0.681433 | 4 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91893613",
"0.9167641",
"0.89006543",
"0.87700266",
"0.8510253",
"0.84789824",
"0.84436315",
"0.82990927",
"0.8186006",
"0.81047755",
"0.8079411",
"0.8065188",
"0.80489177",
"0.770037",
"0.7611718",
"0.76110727",
"0.76002693",
"0.76002693",
"0.76002693",
"0.75386775",
"0.7... | 0.0 | -1 |
Finds points that don't require clockwise turns to connect. | def jJHw(LTIa: np.ndarray) -> oyIN.ndarray:
E3D9 = 3
ywwl = LTIa.shape[0]
for YRbF in range(4, ywwl):
while rSJO(LTIa[E3D9], LTIa[E3D9 - 1], LTIa[YRbF]) >= 0:
E3D9 -= 1
E3D9 += 1
b3SJ(LTIa, E3D9, YRbF)
return LTIa[1:E3D9 + 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xEaI(YKHO):\n for G1FV in range(YKHO.n):\n for XezH in range(G1FV + 1, YKHO.n):\n for fq6N in range(YKHO.n):\n for xBgE in range(fq6N + 1, YKHO.n):\n YKHO.__clause(-YKHO.preds.w(G1FV, xBgE), -YKHO.preds.w(XezH, fq6N))",
"def aMtA(LTIa):\n if len(LTIa)... | [
"0.6028774",
"0.5948258",
"0.59384656",
"0.58502847",
"0.5778959",
"0.5765414",
"0.57120085",
"0.56897247",
"0.5671454",
"0.5671417",
"0.56707746",
"0.5651507",
"0.5587817",
"0.5585447",
"0.5585396",
"0.5555514",
"0.55238324",
"0.55231136",
"0.5506797",
"0.55021244",
"0.55002... | 0.50743437 | 83 |
Check to see if a given nick is valid. | def G3sG(CVgL):
if not q5CT < len(CVgL) < Qfzv:
return False
r8bT = '\\|^`[]()_'
jUwZ = vIwR.ascii_letters + vIwR.digits + r8bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cpFI(YKHO, CVgL):\n return YKHO.get_client_by_nick(CVgL) is not None",
"def lfcw(YKHO, CVgL: str) -> bool:\n GxSO = YKHO.config.core.nick_blocks\n for Sd9M in GxSO:\n Sd9M = Sd9M.strip()\n if not Sd9M:\n continue\n if ZbWC.match(Sd9M + '$', CVgL, ZbWC.IGNORECASE) or Y... | [
"0.742499",
"0.73148334",
"0.63294446",
"0.6251922",
"0.6213392",
"0.6168409",
"0.6141596",
"0.61354464",
"0.611538",
"0.61008614",
"0.60717684",
"0.6069103",
"0.60664105",
"0.6046842",
"0.6039346",
"0.6014535",
"0.5952144",
"0.5940618",
"0.5917594",
"0.59137994",
"0.5910957"... | 0.7817538 | 0 |
Return the symbolic function. | def IZHR(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGR4(YKHO):\n return YKHO.sym_func",
"def SGR4(YKHO):\n return YKHO.sym_func",
"def J03l(dpnb, rmc3):\n dpnb = dpnb.replace('^', '**')\n FYKK = ljrb([FCE9.symbols(rmc3)], dpnb, 'numpy')\n return FYKK",
"def IZHR(YKHO):\n return BPuU(YKHO.get_graph())",
"def m2Zb(YKHO):\n vtMg = 5 *... | [
"0.73793197",
"0.73793197",
"0.6614362",
"0.6443564",
"0.6363499",
"0.6328741",
"0.62737083",
"0.61984783",
"0.61444277",
"0.614239",
"0.6071249",
"0.6028624",
"0.6011971",
"0.59426683",
"0.59348416",
"0.59200853",
"0.5903745",
"0.5889025",
"0.58782613",
"0.58713275",
"0.5866... | 0.0 | -1 |
Return the symbolic function. | def IZHR(YKHO):
return YKHO.element.get_basis_functions()[YKHO.n] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGR4(YKHO):\n return YKHO.sym_func",
"def SGR4(YKHO):\n return YKHO.sym_func",
"def J03l(dpnb, rmc3):\n dpnb = dpnb.replace('^', '**')\n FYKK = ljrb([FCE9.symbols(rmc3)], dpnb, 'numpy')\n return FYKK",
"def IZHR(YKHO):\n return BPuU(YKHO.get_graph())",
"def m2Zb(YKHO):\n vtMg = 5 *... | [
"0.73793197",
"0.73793197",
"0.6614362",
"0.6443564",
"0.6363499",
"0.6328741",
"0.62737083",
"0.61984783",
"0.61444277",
"0.614239",
"0.6071249",
"0.6028624",
"0.6011971",
"0.59426683",
"0.59348416",
"0.59200853",
"0.5903745",
"0.5889025",
"0.58782613",
"0.58713275",
"0.5866... | 0.58109623 | 25 |
Return the symbolic function. | def IZHR(YKHO):
return zbDt(YKHO.f.get_function(), YKHO.sub_pre, YKHO.sub_post) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGR4(YKHO):\n return YKHO.sym_func",
"def SGR4(YKHO):\n return YKHO.sym_func",
"def J03l(dpnb, rmc3):\n dpnb = dpnb.replace('^', '**')\n FYKK = ljrb([FCE9.symbols(rmc3)], dpnb, 'numpy')\n return FYKK",
"def IZHR(YKHO):\n return BPuU(YKHO.get_graph())",
"def m2Zb(YKHO):\n vtMg = 5 *... | [
"0.73799556",
"0.73799556",
"0.6616697",
"0.64436275",
"0.6363745",
"0.6327365",
"0.62746584",
"0.61976916",
"0.614486",
"0.6143291",
"0.60709494",
"0.6030756",
"0.60122544",
"0.59422994",
"0.59352946",
"0.5922005",
"0.5905769",
"0.5889022",
"0.5879507",
"0.58733386",
"0.5866... | 0.56339633 | 37 |
y = y pixel position (cast as a float) | def ba1I(LVAh, TVTK, Hwv4=False):
H2v2 = int(TVTK / 2)
PzBY = oyIN.pi * 2 / TVTK
Neck = oyIN.pi / H2v2
q7In = (1.0 - (LVAh + 0.5) / H2v2) * oyIN.pi
return PzBY * (oyIN.cos(q7In - Neck / 2.0) - oyIN.cos(q7In + Neck / 2.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return YKHO.position.y",
"def LVAh(YKHO):\n return YKHO.coords[1]",
"def BBTF(YKHO):\n return YKHO.position.y",
"def LVAh(YKHO) -> int:\n return YKHO.data.y_centre >> 4",
"def boAb(YKHO):\n return YKHO.rect.y",
"def boAb(YKHO):\n return YKHO.actual_coordinates[1]",
"... | [
"0.72356",
"0.69160527",
"0.6906892",
"0.67751694",
"0.6769609",
"0.6762792",
"0.67605275",
"0.67102444",
"0.6658589",
"0.6648598",
"0.6642375",
"0.6637628",
"0.66358846",
"0.6617216",
"0.6615922",
"0.6602411",
"0.6594984",
"0.65829456",
"0.6565133",
"0.65152645",
"0.65152645... | 0.0 | -1 |
Centers the anchor point of img. | def se5S(VXjJ):
VXjJ.anchor_x = int(VXjJ.width / 2)
VXjJ.anchor_y = int(VXjJ.height / 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qRCk(LNo8):\n LNo8.anchor_x = LNo8.height / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor... | [
"0.8385181",
"0.8043658",
"0.8043658",
"0.7960501",
"0.66741693",
"0.66512936",
"0.66457415",
"0.65865",
"0.6578959",
"0.65282106",
"0.64527196",
"0.64204586",
"0.64121026",
"0.6393284",
"0.63400227",
"0.633469",
"0.62460554",
"0.62423754",
"0.6190456",
"0.6186249",
"0.616942... | 0.86355156 | 0 |
Return True if the user is authenticated. | def rts1(YKHO):
return YKHO.authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(Vu5X())",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n retu... | [
"0.8739372",
"0.87086535",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.8613915",
"0.8609252",
"0.8578436",
"0.83723366",
"0.83587176",
"0.8258534",
"0.82273275",
"0.8209421",
"0.8200795",
"0.8174884",
"0.81280386",
"0.8... | 0.8580474 | 19 |
Ensure we have access to API endpoint. | def SNwL(YKHO):
bD7m = gxEw('airlines:aircraft-list')
geh0 = YKHO.client.get(bD7m, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eIzd(d4y1):\n assert d4y1().get('/anything/else').status_code == 200",
"def gGOn(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.get(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])",
"def nkKr(YKHO):\n... | [
"0.69789565",
"0.68439215",
"0.6813232",
"0.67298204",
"0.6704099",
"0.66545403",
"0.66545403",
"0.6649408",
"0.66269577",
"0.65817416",
"0.6563278",
"0.6544286",
"0.653628",
"0.64732224",
"0.64411116",
"0.64375037",
"0.6402903",
"0.6398786",
"0.6383181",
"0.63590443",
"0.635... | 0.0 | -1 |
Get an existing Cluster resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU, id, VKhi=None, hMqs=None, FVCx=None, aJ2e=None, lZsd=None, w2IS=None, G6Ug=None, mWFP=None, gmNu=None, axXk=None, jGRS=None, dJ1p=None, DpZH=None, GquP=None):
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = dict()
r6DL['arn'] = hMqs
r6DL['certificate_authority'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, JvOq: Optional[pulumi.Input[str]]=None, _E99: Optional[pulumi.Input[pulumi.InputType['ClusterIdentityArgs']]]=None, Rci7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str... | [
"0.70554805",
"0.68861353",
"0.676244",
"0.6145249",
"0.57506424",
"0.57485956",
"0.5696903",
"0.5688549",
"0.5618175",
"0.5476951",
"0.5444422",
"0.54396003",
"0.54200834",
"0.54180175",
"0.53814524",
"0.53799874",
"0.5322839",
"0.52938914",
"0.52797425",
"0.52736527",
"0.52... | 0.6268129 | 3 |
Return True if expr belongs to Order(self.expr, \self.variables). Return False if self belongs to expr. Return None if the inclusion relation cannot be determined (e.g. when self and expr have different symbols). | def sjXf(YKHO, VN2L):
Z9rn, r8hN = VN2L.as_coeff_mul(*YKHO.variables)
if r8hN != ():
return YKHO._contains(WRDB(*r8hN))
else:
return YKHO._contains(VN2L) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gS6s(YKHO, VN2L):\n return VN2L in YKHO.table.inv",
"def FYXB(YKHO, mWFP):\n mWFP = y58A(mWFP).bare\n for DeLa in YKHO:\n if DeLa.bare == mWFP:\n return True\n return False",
"def xBs1(YKHO, p2DA=True, dsE5=False, **B2fa):\n B2fa['nonempty_universe'], B2fa['debug'] = (p2DA,... | [
"0.58077276",
"0.55266297",
"0.5466278",
"0.53708196",
"0.5359253",
"0.5305547",
"0.51732755",
"0.51732755",
"0.51732755",
"0.51732755",
"0.51605165",
"0.50923157",
"0.50608295",
"0.50448173",
"0.5022195",
"0.49744135",
"0.49448538",
"0.4923687",
"0.49216893",
"0.4900996",
"0... | 0.5458814 | 3 |
Checks whether a value is a number. >>> ISNUMBER(17) True >>> ISNUMBER(123.123423) True >>> ISNUMBER(False) True >>> ISNUMBER(float('nan')) True >>> ISNUMBER(float('inf')) True >>> ISNUMBER('17') False >>> ISNUMBER(None) False >>> ISNUMBER(datetime.date(2011, 1, 1)) False | def hhXp(BWXx):
return isinstance(BWXx, mSrU.Number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yz_j(BWXx):\n try:\n float(BWXx)\n return True\n except (TypeError, ValueError):\n return False",
"def ye72(BWXx):\n try:\n float(BWXx)\n return True\n except ValueError:\n return False",
"def ye72(BWXx):\n try:\n int(BWXx)\n return Tru... | [
"0.78908086",
"0.76844984",
"0.76667255",
"0.76092535",
"0.7469764",
"0.74561197",
"0.7393753",
"0.738818",
"0.7386333",
"0.7339884",
"0.73034066",
"0.7246958",
"0.72397137",
"0.72223455",
"0.7221903",
"0.7217552",
"0.72159916",
"0.71905726",
"0.71905726",
"0.71905726",
"0.71... | 0.8508126 | 0 |
Checks whether a value is a table record. For example, if a column person is of type Reference to the People table, then ISREF($person) is True. Similarly, ISREF(People.lookupOne(name=$name)) is True. For any other type of value, ISREF() would evaluate to False. >>> ISREF(17) False >>> ISREF("Roger") False | def CK20(BWXx):
return isinstance(BWXx, Ky4Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFYo(NBcv):\n lyOf = BDQe.coercerhinoobject(NBcv, True, True)\n return lyOf.IsReference",
"def m338(type):\n ThyU = Nl70(type)\n return isinstance(ThyU, ZdIm.reference_t)",
"def NvpY(Emd4, q8R2):\n return isinstance(q8R2, V_D6.ReferenceField)",
"def m338(YKHO, Fxhz):\n return bool(set(F... | [
"0.57230115",
"0.5710984",
"0.57027227",
"0.5514932",
"0.54797953",
"0.5479475",
"0.5419707",
"0.53038156",
"0.5288411",
"0.5287265",
"0.5284591",
"0.5273162",
"0.5267205",
"0.5265878",
"0.5253703",
"0.5239885",
"0.51788145",
"0.51541865",
"0.5154001",
"0.510009",
"0.50510955... | 0.8410261 | 0 |
Checks whether a value is a valid URL. It does not need to be fully qualified, or to include | def MVVt(BWXx):
BWXx = BWXx.strip()
if ' ' in BWXx:
return False
return bool(Jm6u.match(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW != True:\n return False",
"def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW is not True:\n return False",
"def KSw8(YKHO):\n pass",
"def KSw8(OaeV, xqoZ, BWXx):\n try:\n return rOmR(QePW.urlopen(BWXx).read())\n excep... | [
"0.82682526",
"0.82295996",
"0.77959144",
"0.7660489",
"0.7637248",
"0.7582453",
"0.7569024",
"0.75417864",
"0.7533172",
"0.74096787",
"0.7408426",
"0.7406656",
"0.7400155",
"0.73930186",
"0.7385821",
"0.737198",
"0.73473126",
"0.73420054",
"0.7330573",
"0.7291825",
"0.729052... | 0.7960981 | 2 |
return instance of class argparse.The values returned by parsing will be stored as attributes in this instance | def rwTO(YKHO):
return YKHO.args | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvEv(YKHO):\n return YKHO.arg_parser",
"def gGZX(Emd4):\n wvEv = j1Jz.ArgumentParser(description='Easy Infer for model benchmark')\n Emd4.base_arg_parse(wvEv)\n Emd4.model_arg_parse(wvEv)\n Emd4.task_arg_parse(wvEv)\n qIxc = wvEv.parse_args()\n return qIxc",
"def EpPs(YKHO):\n wvEv ... | [
"0.7352352",
"0.7336791",
"0.72647685",
"0.72070444",
"0.7202392",
"0.7191306",
"0.71189225",
"0.7108842",
"0.70945734",
"0.70899105",
"0.70814025",
"0.7079502",
"0.7064564",
"0.70624006",
"0.702815",
"0.7000846",
"0.6987335",
"0.6967243",
"0.69652957",
"0.6951666",
"0.694105... | 0.0 | -1 |
Returns the MAC address of the router in our so called generic format lowercase HEX, no separators. | def KBOU(YKHO):
YKHO.__not_implemented() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1Iq(YKHO):\n Uu_n = qxeD.UUID(int=qxeD.getnode()).hex[-12:]\n return Uu_n",
"def QfE5(YKHO) -> str:\n BTpE = jry1(YKHO.message)[160:172].decode().upper()\n return BTpE[0:2] + ':' + BTpE[2:4] + ':' + BTpE[4:6] + ':' + BTpE[6:8] + ':' + BTpE[8:10] + ':' + BTpE[10:12]",
"def QeBN():\n hww6 = z... | [
"0.7675288",
"0.74545366",
"0.74071664",
"0.72973883",
"0.7281991",
"0.7277573",
"0.72287804",
"0.7214234",
"0.7087766",
"0.70455676",
"0.704051",
"0.7003926",
"0.6975201",
"0.6918401",
"0.68629587",
"0.686182",
"0.6858475",
"0.68578047",
"0.6826825",
"0.681029",
"0.6810036",... | 0.65107244 | 39 |
Updates the DMZ settings and returns True on success. | def rbM4(YKHO, gCuF):
YKHO.__not_implemented() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n if YKHO.name == 'Settings':\n qIxc = ['NAME:Settings']\n else:\n qIxc = ['NAME:' + YKHO.name, 'Enable:=', YKHO.Enable]\n if YKHO.UserSpecifiedSettings:\n qIxc += YKHO.manualsettings\n else:\n qIxc += YKHO.autosettings\n if YKHO.name == 'Settings':\n ... | [
"0.5928838",
"0.58195394",
"0.571099",
"0.5506674",
"0.5441416",
"0.53947634",
"0.5374681",
"0.5373611",
"0.5365296",
"0.5321621",
"0.52768993",
"0.5086283",
"0.50335664",
"0.5022663",
"0.50202954",
"0.5007967",
"0.50024164",
"0.49950567",
"0.49915543",
"0.49895275",
"0.49851... | 0.54321754 | 5 |
Serves root HTML page Renders static page from a template with variables | def d6pt():
return TvZl('index_t.html', call_counter=str(YrZb().call_counter), app_version=str(P4t4.config.get('GIT_HASH', None))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('index.html')",
"def Ozko():\n return TvZl('main_page.html')",
"def NMoC(YKHO):\n rPXJ = Byma.JINJA_ENVIRONMENT.get_template('homepage.html')\n YKHO.response.headers['Content-Type'] = 'text/html'\n YKHO.response.write(rPXJ.render())",
"def vja_() -> str:\n return T... | [
"0.7882224",
"0.7761534",
"0.7620109",
"0.7612462",
"0.76073635",
"0.75958955",
"0.7573267",
"0.7558742",
"0.7558742",
"0.7558742",
"0.7557799",
"0.75520384",
"0.7548515",
"0.75463575",
"0.75358224",
"0.75358224",
"0.75027174",
"0.74757636",
"0.7473501",
"0.74577713",
"0.7457... | 0.0 | -1 |
Performs vanilla stochastic gradient descent. | def qeKj(GPtr=None, Aak1=None):
b0Ix = GPtr['learning_rate']
_U64 = ZylS.train.GradientDescentOptimizer(b0Ix)
return _U64 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxhz(H6go, rcrN, UU3d, Cwt5, q7In):\n exwG = UU3d\n QRFO = oyIN.dot(q7In, H6go.transpose())\n QRFO -= rcrN\n print('pro: data_x', QRFO.shape, H6go.shape)\n rqLy = oyIN.dot(QRFO, H6go)\n print('总梯度的值:', rqLy.shape)\n q7In = q7In - Cwt5 / exwG * rqLy\n return q7In",
"def BiJf(YKHO, EcVT... | [
"0.71703225",
"0.713931",
"0.6992501",
"0.69541925",
"0.685828",
"0.6787778",
"0.67432874",
"0.66829914",
"0.6661341",
"0.66472995",
"0.66416246",
"0.66269284",
"0.661329",
"0.66126883",
"0.66101414",
"0.6591566",
"0.6588291",
"0.65871376",
"0.6585805",
"0.65719914",
"0.65586... | 0.6620759 | 12 |
Uses the RMSProp update rule, which uses a moving average of squared gradient values to set adaptive perparameter learning rates. | def Mm4K(GPtr=None, Aak1=None):
b0Ix = GPtr['learning_rate']
WMj5 = GPtr.get('decay', 0.9)
H0zq = GPtr.get('momentum', 0.99)
_hZ2 = GPtr.get('epsilon', 1e-08)
_U64 = ZylS.train.RMSPropOptimizer(b0Ix, WMj5, H0zq, _hZ2)
return _U64 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHQ7(YKHO, NArs, vtNT, b0Ix=0.001, oZuG=0.9, tTpl=1e-08):\n Vhxs = []\n for xqoZ, Ro40 in zip(NArs, vtNT):\n zNig = xqoZ.shape.eval()\n IVOm = e89i.shared(value=oyIN.zeros(shape=zNig, dtype=e89i.config.floatX), name='accu')\n WwLj = oZuG * IVOm + (1.0 - oZuG) * Kt_s.sqr(Ro40)\n ... | [
"0.70522714",
"0.7007888",
"0.6803046",
"0.68006194",
"0.6781389",
"0.66811174",
"0.6636037",
"0.6635496",
"0.65722775",
"0.6536883",
"0.6521535",
"0.65201294",
"0.65201294",
"0.64966524",
"0.6490281",
"0.6480543",
"0.646192",
"0.6454348",
"0.64211535",
"0.6414371",
"0.640955... | 0.61253726 | 50 |
Transform the weight matrix and initial state vector for the simulation. | def KuUY(T3TX: Union[pd.DataFrame, np.ndarray], W9gz: dict) -> tuple:
if type(T3TX) != oyIN.ndarray:
W9gz = {G1Hx: W9gz[G1Hx] for G1Hx in T3TX.columns}
T3TX = T3TX.to_numpy()
else:
qmLP.warn('When passing an initial state with a weight matrix type numpy.ndarray make sure ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gdbk(YKHO):\n YKHO.A_inv = oyIN.zeros(shape=(YKHO.numUsers, YKHO.d, YKHO.d))\n YKHO.b = oyIN.zeros(shape=(YKHO.numUsers, YKHO.d))\n YKHO.w = oyIN.zeros(shape=(YKHO.numUsers, YKHO.d))\n for YRbF, vb7U in enumerate(YKHO.A_inv):\n YKHO.A_inv[YRbF] = oyIN.eye(YKHO.d)",
"def vB93(YKHO) -> None:... | [
"0.63334566",
"0.6209362",
"0.61789095",
"0.6172393",
"0.6115332",
"0.6115332",
"0.6110219",
"0.6072243",
"0.60429853",
"0.6035786",
"0.6019923",
"0.60196155",
"0.59906",
"0.5985943",
"0.5949474",
"0.59448797",
"0.59386396",
"0.5937977",
"0.5925377",
"0.5924645",
"0.5919815",... | 0.7195747 | 0 |
Test case for vault_delete_authorization_for_vault_section | def osq_(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NS46(YKHO):\n pass",
"def eYL4(YKHO):\n pass",
"def g6F6(YKHO):\n pass",
"def t5wj(YKHO):\n pass",
"def x5lo(YKHO):\n A0Gq = M8lk(title='Test Story', summary='Test Summary', byline='Test Byline', status='published', language='en', author=YKHO.user2)\n LAOT = eRww.objects.get(sectionla... | [
"0.8550292",
"0.75414014",
"0.74407345",
"0.7272498",
"0.7258358",
"0.70472014",
"0.6909105",
"0.6877982",
"0.6726948",
"0.6675798",
"0.66687953",
"0.660025",
"0.6595564",
"0.6585521",
"0.6585157",
"0.6563147",
"0.643671",
"0.6417325",
"0.6415729",
"0.64053833",
"0.63837427",... | 0.9493678 | 0 |
Test case for vault_delete_vault_section | def NS46(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osq_(YKHO):\n pass",
"def eYL4(YKHO):\n pass",
"def vnT5(YKHO):\n pass",
"def dusX(YKHO):\n pass",
"def Jbpm(YKHO):\n pass",
"def Ftpk(YKHO):\n A0Gq = M8lk(title='Test Story', summary='Test Summary', byline='Test Byline', status='published', language='en', author=YKHO.user)\n LAO... | [
"0.8530548",
"0.80736387",
"0.7443883",
"0.7115427",
"0.7077132",
"0.68730193",
"0.6823832",
"0.67886657",
"0.6679716",
"0.6649187",
"0.65452033",
"0.64731526",
"0.64704484",
"0.6439164",
"0.6430353",
"0.63685155",
"0.6365893",
"0.6358025",
"0.6326576",
"0.6286651",
"0.624392... | 0.9471199 | 0 |
Collect the string of the best predicted span from the context metadata and update `self._per_instance_metrics`, which in the case of SQuAD v1.1 / v2.0 includes the EM and F1 score. This returns a `Tuple[List[str], torch.Tensor]`, where the `List[str]` is the predicted answer for each instance in the batch, and the ten... | def oYto(YKHO, Q8MU: torch.Tensor, CYB3: torch.IntTensor, yIVm: List[Dict[str, Any]], ujHY: Optional[torch.LongTensor]) -> AzJI[x1iM[str], ht2j.Tensor]:
HSIp = Q8MU.detach().cpu().numpy()
QjjR: x1iM[str] = []
QAtA: x1iM[str] = []
usOs: x1iM[x1iM[str]] = []
for NmAz, vfGE, qRZH, gr5d in zip(yIVm, HSI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBUj(YKHO, Q8MU: torch.Tensor, peXl: torch.Tensor, cktn: torch.Tensor, HHlF: torch.Tensor) -> ht2j.Tensor:\n Q_Az = HHlF[:, 0]\n u1g6 = HHlF[:, 1]\n YKHO._span_accuracy(Q8MU, HHlF)\n uugc = CqbS(peXl, Q_Az, ignore_index=-1)\n L62l = min(ht2j.finfo(uugc.dtype).max, 1000000000.0)\n assert not h... | [
"0.6227739",
"0.597694",
"0.56194234",
"0.55592126",
"0.55447596",
"0.55344343",
"0.54214895",
"0.53767776",
"0.5351666",
"0.5306305",
"0.52820754",
"0.5219725",
"0.52009577",
"0.5197821",
"0.5197821",
"0.5183327",
"0.5170069",
"0.51646215",
"0.5155521",
"0.5149911",
"0.51499... | 0.76255715 | 0 |
Return set of variables in tf.GraphKeys.MODEL_VARIABLES collection. | def iPtx():
Oa1e = ZylS.get_default_graph()
return set(Oa1e.get_collection(ZylS.GraphKeys.MODEL_VARIABLES)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r51G(YKHO):\n NArs = ZylS.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, YKHO.scope)\n return NArs",
"def kc1W(C3ST: Model) -> ZLWb[str]:\n assert l5Y5(C3ST)\n return C3ST.keys()",
"def jbKh(YKHO, XJsN=False):\n if XJsN:\n assert YKHO.varscope\n return ZylS.get_collection(Z... | [
"0.7886281",
"0.7751747",
"0.77346784",
"0.7713664",
"0.7710161",
"0.7666239",
"0.7632162",
"0.7588056",
"0.75370735",
"0.71862864",
"0.71680355",
"0.715456",
"0.715456",
"0.7113968",
"0.708966",
"0.7054182",
"0.7038533",
"0.7027662",
"0.6973958",
"0.6950921",
"0.6926432",
... | 0.9027616 | 0 |
Tests if the metar is auto or not. Valid cases. | def Phtc(YKHO, jY0K, IuVB):
wvEv = i9Wa(jY0K)
n5sN = wvEv.parse()
assert n5sN['is_auto'] is 'True'
wvEv = i9Wa(IuVB)
n5sN = wvEv.parse()
assert n5sN['is_auto'] is 'False' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nd9T(YKHO, bVA9):\n YKHO._validator.validate_one('auto', iyhn['auto'], bVA9)\n YKHO._ifAttributes['auto'] = bVA9",
"def bVA9(YKHO):\n return YKHO._auto",
"def bVA9(YKHO, bVA9):\n YKHO._auto = bVA9",
"def yzqJ(YKHO) -> bool:\n if YKHO._uses_autosetup is not None:\n return YKHO._uses_... | [
"0.6293032",
"0.60101646",
"0.5869378",
"0.57549524",
"0.5703336",
"0.56967217",
"0.5626699",
"0.55728626",
"0.5507023",
"0.54978055",
"0.5479172",
"0.5479172",
"0.5475528",
"0.544539",
"0.5425172",
"0.53885984",
"0.5374332",
"0.5362702",
"0.5356492",
"0.5356492",
"0.5351057"... | 0.77011126 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, uoA8):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8456082",
"0.83912885",
"0.81436425",
"0.81406975",
"0.8131807",
"0.8093013",
"0.80912536",
"0.80912536",
"0.80912536",
"0.8084505",
"0.8084505",
"0.8075543",
"0.8075543",
"0.8065009"
] | 0.0 | -1 |
Instantiates a new instance of EntityTableManager class | def FIMM(YKHO):
YKHO.tableConnString = Hy7s.environ['ENTITYTABLE_CONNECTIONSTRING']
YKHO.__table = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iiH1(tyNF):\n assert tyNF is not None, 'Must provide a table'\n assert hasattr(tyNF.c, 'id'), 'Table %s must contain a field named id' % tyNF\n assert isinstance(tyNF.c.id.type, RyuO.Integer), 'Field id in table %s must be an integer' % tyNF\n assert tyNF.c.id.primary_key, 'Field id in table %s mus... | [
"0.6285532",
"0.60943615",
"0.59625345",
"0.5950479",
"0.583876",
"0.5794576",
"0.5780054",
"0.5780054",
"0.574905",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.5706062",
"0.56850576",
... | 0.64919806 | 0 |
Builds a unique file name out of a given one. | def W2a_(nUeQ: Union[str, pathlib.Path]) -> oAb3.Path:
return _ytQ(nUeQ, qxeD.uuid1()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CAta(nPrm):\n nUeQ = nPrm\n DJty = nUeQ.filename.split('.')[-1]\n Dokz = '%s.%s' % (qxeD.uuid4().hex, DJty)\n return Dokz",
"def pcWg(Ux0P: str) -> str:\n return f'{str(qxeD.uuid4())}.{oIn5(Ux0P)}'",
"def g_2H() -> str:\n import uuid\n sI06 = uuid.uuid4().hex\n return 'LOCAL_STORAGE... | [
"0.79769593",
"0.7955831",
"0.7797684",
"0.76885605",
"0.7623968",
"0.76157314",
"0.7495375",
"0.7490044",
"0.7445948",
"0.74360776",
"0.74340475",
"0.742118",
"0.738864",
"0.7305276",
"0.7303047",
"0.728939",
"0.7257094",
"0.7228646",
"0.7211563",
"0.7208216",
"0.720331",
... | 0.7445164 | 9 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)
Ylbp.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330746",
"0.8284342",
"0.823773",
"0.8229572",
"0.82199436",
"0.81861925",
"0.81845963",
"0.81748337",
"0.8171267",
"0.81697196",
"0.81662124",
"0.81641984",
"0.8163521",
"0.8161706",
"0.8161706",
"0.8161706",
"0.8161706",
"0.8161706",
"0.8161706",
"0.8161706",
"0.8161706... | 0.81619215 | 17 |
Test method to check initialization of city object. | def as4H(YKHO, XpzV):
xVsl = Vdqf.City(environment=XpzV)
assert xVsl._kind == 'citydistrict' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.my_city = cKBo()",
"def Nptr(YKHO):\n bWRQ = cKBo()\n YKHO.assertTrue(hasattr(NqG7, 'name'))\n YKHO.assertEqual(bWRQ.name, '')\n YKHO.assertTrue(hasattr(NqG7, 'state_id'))\n YKHO.assertEqual(bWRQ.state_id, '')",
"def Nptr(YKHO):\n Z9rn = cKBo()\n YKHO.assertEqual(... | [
"0.8208791",
"0.78769827",
"0.77986366",
"0.77795875",
"0.76048577",
"0.754388",
"0.73767126",
"0.7267092",
"0.7240301",
"0.72173876",
"0.71167403",
"0.7113835",
"0.71073353",
"0.7061404",
"0.7059045",
"0.70508224",
"0.70508224",
"0.70508224",
"0.70453376",
"0.7042586",
"0.70... | 0.8608368 | 0 |
Is x iterable? >>> isiterable([1, 2, 3]) True >>> isiterable('abc') True >>> isiterable(5) False | def kUz6(WKvO):
try:
iter(WKvO)
return True
except TypeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUz6(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n return True",
"def GfZ5(WKvO):\n if isinstance(WKvO, jKi7.string_types):\n return False\n return hasattr(WKvO, '__iter__')",
"def OxJJ(WKvO):\n try:\n iter(WKvO)\n return True\n exce... | [
"0.8761655",
"0.85234815",
"0.8522508",
"0.821404",
"0.8183848",
"0.8150876",
"0.8101413",
"0.78824735",
"0.7839455",
"0.77972245",
"0.7774228",
"0.77212083",
"0.7623906",
"0.7575932",
"0.7564972",
"0.7563256",
"0.75537014",
"0.75014585",
"0.7445784",
"0.7403414",
"0.7394402"... | 0.88116336 | 0 |
The first n elements of a sequence >>> list(take(2, [10, 20, 30, 40, 50])) [10, 20] | def _iMd(exwG, Q6uT):
return Hs6x.islice(Q6uT, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))",
"def _iMd(exwG, Q6uT):\n Q6uT = iter(Q6uT)\n Aofo = []\n try:\n for YRbF in range(exwG):\n Aofo.append(next(Q6uT))\n except StopIteration:\n pass\n return Aofo",
"def _iMd(exwG, OxJJ):\n return list(uOg... | [
"0.8141343",
"0.80795014",
"0.8068839",
"0.8068839",
"0.80510163",
"0.80510163",
"0.775401",
"0.76662433",
"0.7558641",
"0.74475354",
"0.7106462",
"0.6662611",
"0.6599173",
"0.65830445",
"0.65723467",
"0.64912075",
"0.6485345",
"0.64637107",
"0.64611137",
"0.6430839",
"0.6430... | 0.8263646 | 0 |
The sequence following the first n elements >>> list(drop(2, [10, 20, 30, 40, 50])) [30, 40, 50] | def ReNU(exwG, Q6uT):
return Hs6x.islice(Q6uT, exwG, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ReNU(yv6U, exwG):\n for bGrB in range(exwG):\n try:\n yv6U = yv6U.tail\n except AttributeError:\n break\n return yv6U",
"def ReNU(OxJJ, exwG, uOgj=uOgj):\n return uOgj(OxJJ, exwG, None)",
"def ReNU(exwG):\n\n def KfqQ(YPaw):\n vU9r = {'count': 0}\n\n ... | [
"0.7905065",
"0.74295384",
"0.6763828",
"0.67272156",
"0.6669577",
"0.6648098",
"0.66229075",
"0.65501606",
"0.64945686",
"0.643039",
"0.63765883",
"0.63765883",
"0.63395727",
"0.63395727",
"0.62736756",
"0.6054525",
"0.60503644",
"0.6036039",
"0.598577",
"0.5961386",
"0.5911... | 0.8087424 | 0 |
The nth element in a sequence >>> nth(1, 'ABC') 'B' | def _J4B(exwG, Q6uT):
try:
return Q6uT[exwG]
except TypeError:
return next(Hs6x.islice(Q6uT, exwG, None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _J4B(OxJJ, d6pt):\n return next(Hs6x.islice(OxJJ, d6pt, None))",
"def _oqe(KCHu, YRbF):\n while YRbF > 0:\n KCHu, YRbF = (wOmD(KCHu), YRbF - 1)\n return cntZ(KCHu)",
"def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, None), WmM4)",
"def _J4B(OxJJ, exwG, WmM4=None):\n r... | [
"0.6975472",
"0.68884224",
"0.684532",
"0.684532",
"0.684532",
"0.682165",
"0.6750317",
"0.6679597",
"0.65622926",
"0.648812",
"0.63863564",
"0.6241083",
"0.62299436",
"0.6191448",
"0.6146418",
"0.605952",
"0.597531",
"0.5928899",
"0.59208065",
"0.58448225",
"0.58417475",
"... | 0.78693 | 0 |
Concatenate zero or more iterables, any of which may be infinite. An infinite sequence will prevent the rest of the arguments from being included. We use chain.from_iterable rather than chain(seqs) so that seqs can be a generator. >>> list(concat([[], [1], [2, 3]])) [1, 2, 3] | def ENFq(Xtuq):
return Hs6x.chain.from_iterable(Xtuq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENFq(*Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)",
"def ENFq(ix7N):\n return Hs6x.chain.from_iterable(ix7N)",
"def ENFq(Emd4, *qIxc):\n if isinstance(qIxc[0], list):\n c7pe = qIxc[0]\n else:\n c7pe = list(qIxc)\n return ENFq(Zbll.for_each(c7pe))",
"def ENFq(*qIxc: Union[O... | [
"0.78347844",
"0.7793156",
"0.6923485",
"0.68935525",
"0.6584743",
"0.64061105",
"0.62967205",
"0.62400794",
"0.6221371",
"0.60994184",
"0.60464287",
"0.6016572",
"0.5937169",
"0.59291077",
"0.58789116",
"0.58568937",
"0.5801373",
"0.57500094",
"0.56451416",
"0.5623169",
"0.5... | 0.77909493 | 2 |
Variadic version of concat >>> list(concatv([], ["a"], ["b", "c"])) ['a', 'b', 'c'] | def b6sD(*Xtuq):
return ENFq(Xtuq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RDt6(*qIxc):\n dZB7 = [cbML(WKvO) for WKvO in qIxc]\n if any((A3mO is None for A3mO in dZB7)):\n return _WqI.concat(qIxc, 0)\n return cACa.constant([A3mO for yRfO in dZB7 for A3mO in yRfO])",
"def ENFq(*Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)",
"def ENFq(cAlv, KCHu):\n EcVT = [... | [
"0.6760438",
"0.6125383",
"0.5945617",
"0.58371544",
"0.58182865",
"0.5802171",
"0.5668729",
"0.5651316",
"0.5552251",
"0.5495297",
"0.54793125",
"0.5433212",
"0.54305035",
"0.53857404",
"0.5380562",
"0.53738916",
"0.53682035",
"0.53604835",
"0.532356",
"0.5313424",
"0.529761... | 0.7426831 | 0 |
Apply f to each sequence in seqs, concatenating results | def VdIF(eHNT, Xtuq):
return ENFq(map(eHNT, Xtuq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aWuw(eHNT, yv6U: list) -> list:\n U5bT = []\n for _pUq in yv6U:\n U5bT.append(eHNT(_pUq))\n return U5bT",
"def eLur(eHNT, fUYa):\n return ENFq(JaxB(eHNT, fUYa))",
"def orij(eHNT, aWuw):\n dBuj = IIs7(processes=JvGB)\n Aofo = dBuj.map(eHNT, aWuw)\n TKMu = [WKvO for WKvO in Aofo i... | [
"0.7168194",
"0.68441665",
"0.6557089",
"0.6493904",
"0.6479037",
"0.64775634",
"0.62704474",
"0.6169643",
"0.6145393",
"0.61331916",
"0.605745",
"0.601665",
"0.59623605",
"0.5956978",
"0.59534156",
"0.5931321",
"0.59240204",
"0.58933854",
"0.5860937",
"0.5825499",
"0.5823625... | 0.7556508 | 0 |
Add el to beginning of (possibly infinite) sequence seq. >>> list(cons(1, [2, 3])) [1, 2, 3] | def sDym(geyT, Q6uT):
yield geyT
for KCHu in Q6uT:
yield KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxUM(YKHO, xgT5):\n YKHO.chain.insert(0, xgT5)",
"def rMGb(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._head, YKHO._head._next)",
"def sDym(vC9B, WKvO):\n return vC9B + [WKvO]",
"def rMGb(YKHO, LihS):\n if YKHO.is_empty():\n YKHO.head = YKHO.tail = YKHO.Node(LihS, None, None)\n e... | [
"0.61411357",
"0.60449934",
"0.5978425",
"0.59646565",
"0.5937577",
"0.5890092",
"0.5888932",
"0.5859856",
"0.5706877",
"0.5658728",
"0.5624926",
"0.5615269",
"0.5615032",
"0.56088316",
"0.5608388",
"0.55668443",
"0.554704",
"0.55362463",
"0.5493912",
"0.5492491",
"0.54239213... | 0.64185774 | 0 |
Repeatedly apply a function f onto an original input Yields x, then f(x), then f(f(x)), then f(f(f(x))), etc.. | def X73w(eHNT, WKvO):
while True:
yield WKvO
WKvO = eHNT(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X73w(JfyU, WKvO):\n while True:\n WKvO = JfyU(WKvO)\n yield WKvO",
"def LQ1C(eHNT, WKvO):\n\n def wPFE(YRbF, WKvO=WKvO):\n if YRbF == 0:\n return WKvO\n else:\n return wPFE(YRbF - 1, eHNT(WKvO))\n return wPFE",
"def EcW1(JfyU, /, *qIxc, **B2fa):\n ... | [
"0.74091274",
"0.7000441",
"0.6745888",
"0.66321695",
"0.649637",
"0.6408161",
"0.6293555",
"0.62705964",
"0.6188598",
"0.61679155",
"0.61679155",
"0.61482906",
"0.61267513",
"0.61078167",
"0.6068974",
"0.60461646",
"0.603153",
"0.5980083",
"0.59559304",
"0.5911748",
"0.58859... | 0.7568979 | 0 |