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 |
|---|---|---|---|---|---|---|
Get the current extruder temperature in degrees celsius | def AsGe(YKHO):
Mkmy = YKHO.s.get(YKHO.base_address + '/api/printer/tool')
if Mkmy.status_code != 200:
raise Exception('Error: {code} - {content}'.format(code=Mkmy.status_code, content=Mkmy.content.decode('utf-8')))
nPrm = Mkmy.content.decode('utf-8').split('\n')
for zFiD in nPrm:
if 'ac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rcrL(YKHO) -> float:\n TZ_R = float(YKHO.__reading[rO6F['temperature']])\n return RV7L(TZ_R)",
"def rcrL(YKHO):\n return YKHO.CC.get_temperature()",
"def QGow(YKHO):\n return YKHO.temp",
"def ovGo(YKHO) -> float:\n return YKHO._device_information['telemetry']['current']['tempF']",
"def o... | [
"0.8346696",
"0.8289956",
"0.828343",
"0.82811743",
"0.82679904",
"0.8240237",
"0.82129514",
"0.81979084",
"0.81819856",
"0.81796753",
"0.817398",
"0.8166877",
"0.81657064",
"0.8160005",
"0.8159807",
"0.81404144",
"0.8109117",
"0.81068814",
"0.8076201",
"0.80717343",
"0.80657... | 0.0 | -1 |
Sets the submitted_date_time of this GetPaymentsForPayoutResponseV3Summary. | def NazE(YKHO, NazE):
YKHO._submitted_date_time = NazE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zSeg(YKHO, zSeg):\n YKHO._submitted_at = zSeg",
"def iHYz(YKHO, iHYz: datetime):\n if iHYz is None:\n raise ValueError('Invalid value for `client_submit_time`, must not be `None`')\n YKHO._client_submit_time = iHYz",
"def yhhw(YKHO):\n return YKHO.__submitDateTime",
"def zSeg(YKHO):\n ... | [
"0.620193",
"0.5382317",
"0.531947",
"0.5251879",
"0.5251879",
"0.5203654",
"0.51581305",
"0.51105666",
"0.5091762",
"0.50359386",
"0.50359386",
"0.48751456",
"0.4848006",
"0.48323512",
"0.48295417",
"0.46886274",
"0.46696362",
"0.46411037",
"0.46211785",
"0.46211785",
"0.462... | 0.7337555 | 0 |
Sets the instructed_date_time of this GetPaymentsForPayoutResponseV3Summary. | def Pf5Z(YKHO, Pf5Z):
YKHO._instructed_date_time = Pf5Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lewj(YKHO, lewj: datetime):\n YKHO._lockout_date = lewj",
"def pdAi(YKHO, pdAi):\n YKHO._adopted_date_time = pdAi",
"def HXyI(YKHO, HXyI):\n YKHO._inception_date = HXyI",
"def hoWK(YKHO, hoWK):\n YKHO._instructed = hoWK",
"def olcX(YKHO, olcX):\n YKHO._estimate_date_time = olcX",
"def ... | [
"0.5612505",
"0.52739304",
"0.48847568",
"0.48099953",
"0.47484937",
"0.45923856",
"0.45686498",
"0.45661026",
"0.45457453",
"0.4409021",
"0.4409021",
"0.4408007",
"0.4395188",
"0.4395188",
"0.4395188",
"0.4395188",
"0.43856373",
"0.43480536",
"0.4337959",
"0.43355304",
"0.43... | 0.68077916 | 0 |
Sets the payout_memo of this GetPaymentsForPayoutResponseV3Summary. | def sldi(YKHO, sldi):
YKHO._payout_memo = sldi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APF0(YKHO, APF0):\n YKHO._payout_to = APF0",
"def i_PE(YKHO, i_PE):\n YKHO._memo = i_PE",
"def LxAA(YKHO, LxAA):\n YKHO._lockout_reset = LxAA",
"def vBWQ(YKHO, vBWQ):\n YKHO._payout_type = vBWQ",
"def wt_e(YKHO, wt_e):\n YKHO._payout_from = wt_e",
"def H_3b(YKHO, H_3b):\n YKHO._over... | [
"0.5353873",
"0.52404726",
"0.48704547",
"0.4822173",
"0.4666126",
"0.4330043",
"0.43252668",
"0.42891207",
"0.42651805",
"0.42621705",
"0.42481333",
"0.42275602",
"0.41451064",
"0.41276413",
"0.40976635",
"0.40426293",
"0.39796638",
"0.397112",
"0.39686057",
"0.39355874",
"0... | 0.7962706 | 0 |
Sets the total_payments of this GetPaymentsForPayoutResponseV3Summary. | def yTUi(YKHO, yTUi):
YKHO._total_payments = yTUi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wh0A(YKHO, Wh0A):\n if Wh0A is None:\n raise ValueError('Invalid value for `payments`, must not be `None`')\n YKHO._payments = Wh0A",
"def ixgL(YKHO, ixgL):\n YKHO._user_payments = ixgL",
"def YTzq(YKHO, YTzq):\n YKHO._returned_payments = YTzq",
"def jypW(YKHO, jypW):\n YKHO._failed... | [
"0.605082",
"0.5522682",
"0.5316913",
"0.531078",
"0.5220208",
"0.521916",
"0.5165634",
"0.51331836",
"0.5084393",
"0.5069168",
"0.5014799",
"0.5014799",
"0.5014799",
"0.5014799",
"0.49964008",
"0.49253553",
"0.49208534",
"0.48869428",
"0.48869428",
"0.4886579",
"0.4885451",
... | 0.7804551 | 0 |
Sets the confirmed_payments of this GetPaymentsForPayoutResponseV3Summary. | def NqkP(YKHO, NqkP):
YKHO._confirmed_payments = NqkP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xUXW(YKHO, xUXW):\n if xUXW is None:\n raise ValueError('Invalid value for `confirmed`, must not be `None`')\n YKHO._confirmed = xUXW",
"def xUXW(YKHO, xUXW):\n YKHO._confirmed = xUXW",
"def xUXW(YKHO, xUXW):\n YKHO._confirmed = xUXW",
"def YTzq(YKHO, YTzq):\n YKHO._returned_payment... | [
"0.6371937",
"0.5587505",
"0.5587505",
"0.5152137",
"0.5125974",
"0.5125974",
"0.5094618",
"0.49669325",
"0.4883886",
"0.46579468",
"0.46579468",
"0.45834216",
"0.45358518",
"0.4518762",
"0.44502813",
"0.44501984",
"0.44244808",
"0.4415613",
"0.42609334",
"0.4217669",
"0.4168... | 0.7668715 | 0 |
Sets the incomplete_payments of this GetPaymentsForPayoutResponseV3Summary. | def xrWp(YKHO, xrWp):
YKHO._incomplete_payments = xrWp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def Wh0A(YKHO, Wh0A):\n if Wh0A is None:\n raise ValueError('Invalid value for `payments`, must not be `None`')\n YKHO._payments = Wh0A",
"def jypW(YKHO, jypW):\n YKHO._failed_p... | [
"0.5584323",
"0.5584323",
"0.5561581",
"0.54796636",
"0.49294958",
"0.49294958",
"0.48591053",
"0.48568374",
"0.4833808",
"0.4833808",
"0.48251998",
"0.4754286",
"0.45816857",
"0.4536682",
"0.45314407",
"0.4525419",
"0.44889274",
"0.43175015",
"0.4310749",
"0.42547253",
"0.42... | 0.79217976 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
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 |
Check arguments to __new__ and raise exception if any problems found. Derived classes may wish to override this. | def QGVw(Emd4, yLHq, RKYb):
from sympy.matrices.expressions.matexpr import MatrixElement, MatrixSymbol
from sympy.tensor.indexed import Indexed
J6q7 = (wZLS, MatrixSymbol, MatrixElement, Indexed, cFlk, iQnE, H4yH.Array)
if not isinstance(yLHq, J6q7):
raise TypeError('Cannot assign to lhs of type... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUkx(YKHO):\n with YKHO.assertRaises(TypeError):\n P8oC = i_Aq(1, 1)",
"def ICXm(YKHO):\n\n def mqzJ():\n return YKHO.Person('Test User', 42, name='Bad User')\n YKHO.assertRaises(TypeError, mqzJ)",
"def ImG1(YKHO):\n with YKHO.assertRaises(TypeError):\n Fg_i = i_Aq(1, 2)",
... | [
"0.67552555",
"0.67084515",
"0.6638962",
"0.6630691",
"0.66076565",
"0.66076565",
"0.66011745",
"0.657655",
"0.64905304",
"0.6473001",
"0.6472045",
"0.6472045",
"0.6472045",
"0.6454987",
"0.6454987",
"0.6454987",
"0.6454987",
"0.6454987",
"0.6454987",
"0.6454987",
"0.6454987"... | 0.0 | -1 |
Return objects for the current authenticated user only | def k66M(YKHO):
SyUH = not not int(YKHO.request.query_params.get('assigned_only', 0))
SR0I = YKHO.queryset
if SyUH:
SR0I = SR0I.filter(receita__isnull=False)
return SR0I.filter(user=YKHO.request.user).order_by('-name').distinct() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n return YKHO.queryset.filter(user=YKHO.request.user)",
"def k66M(YKHO):\n return YKHO.queryset.filter(user=YKHO.requ... | [
"0.8128712",
"0.8128712",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8035397",
"0.8029964",
"0.7974592",
"0.7950248",
"0.7836541",
"0.78123736",
"0.7736637",
"0.7729306",
"0.77020377",
"0.7633406",
"0.76319975",
... | 0.0 | -1 |
Convert a list of string IDs to a list of integers | def TK6O(YKHO, umWR):
return [int(GLFn) for GLFn in umWR.split(',')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eyrs(qnba):\n JiPG = []\n for w1Cv in qnba:\n JiPG.append(int(w1Cv))\n return JiPG",
"def MSjO(list):\n return [int(LVAh) for LVAh in list]",
"def BDBY(DPoP):\n SQ3m = DPoP.split(' ')\n return [int(Q7me) for Q7me in SQ3m]",
"def q28K(KP6z):\n return [int(LihS) for LihS in KP6z... | [
"0.7859352",
"0.77559316",
"0.7750689",
"0.76729053",
"0.76405686",
"0.76373124",
"0.7623711",
"0.761767",
"0.7590534",
"0.7580246",
"0.7463369",
"0.7459902",
"0.7445789",
"0.73937863",
"0.7386332",
"0.7350225",
"0.7326154",
"0.7273802",
"0.7254426",
"0.7245518",
"0.7245518",... | 0.7123974 | 27 |
Return a appropriate serializer class | def l5oD(YKHO):
if YKHO.action == 'retrieve':
return IyFz.ReceitaDetailSerializer
elif YKHO.action == 'upload_image':
return IyFz.ReceitaImageSerializer
return YKHO.serializer_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5oD(YKHO):\n DBSP = YKHO.request.query_params.get('stub', None)\n if DBSP is not None:\n DBSP = YcAF(DBSP)\n if DBSP:\n return YKHO.stub_serializer\n else:\n if YKHO.request.method == 'POST' and getattr(YKHO, 'create_serializer', None) is not None:\n return YKHO.cre... | [
"0.8138567",
"0.7974496",
"0.7974496",
"0.79723525",
"0.79706305",
"0.79695714",
"0.7928375",
"0.7793281",
"0.76267505",
"0.7556347",
"0.7543684",
"0.75305474",
"0.7494118",
"0.7483708",
"0.7465845",
"0.74598473",
"0.7447343",
"0.74291474",
"0.74084514",
"0.73550916",
"0.7350... | 0.73546183 | 20 |
Batch version of unpool_layer2x2. | def uu4m(YKHO, WKvO, q1NN):
OOcW = ZylS.shape(WKvO)
pfA5 = [OOcW[0], OOcW[1] * 2, OOcW[2] * 2, OOcW[3]]
Ep8u = pfA5[0]
H2v2 = pfA5[1]
TVTK = pfA5[2]
xMux = pfA5[3]
kmDT = ZylS.to_int64([Ep8u, H2v2, TVTK, xMux])
q1NN = tybd(q1NN, kmDT)
n2Q1 = ZylS.to_int64(ZylS.range(xMux))
n2Q1 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WIt4():\n return U78l.MaxUnpool2d(kernel_size=2)",
"def uu7L(WKvO, _0fC):\n return kwv8(_0fC)(WKvO)",
"def uPKs(dBuj, QyVM, M6vu=[1, 2, 2, 1], rrBf='unpool'):\n with ZylS.variable_scope(rrBf):\n GhuM = dBuj.get_shape().as_list()\n oLRV = (GhuM[0], GhuM[1] * M6vu[1], GhuM[2] * M6vu[2]... | [
"0.71641433",
"0.69789237",
"0.67573667",
"0.6666062",
"0.6631447",
"0.66117936",
"0.6604893",
"0.66016006",
"0.6584485",
"0.6548806",
"0.65400743",
"0.6537326",
"0.6521584",
"0.6503351",
"0.6483276",
"0.64600396",
"0.62163305",
"0.6213061",
"0.6140009",
"0.61194605",
"0.6097... | 0.7070382 | 1 |
Returns the title of this search result. This is given high priority in search result ranking. You can access the title of the search entry as `entry.title` in your search results. The default implementation returns `force_str(obj)` truncated to 1000 characters. | def Upwb(YKHO, YEnM):
return e0D3(YEnM)[:1000] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO, YEnM):\n return bGrB(\"Results of the search for '%s'\") % YEnM",
"def Upwb(YKHO):\n if hasattr(YKHO.object, 'get_title'):\n return YKHO.object.get_title()\n else:\n raise NotImplementedError(YKHO.NOT_IMPLEMENTED_ERROR)",
"def leAC(YKHO):\n if YKHO.mode == 'SEARCH':\n ... | [
"0.72411644",
"0.6639683",
"0.66349095",
"0.66314775",
"0.6537869",
"0.6526271",
"0.65203816",
"0.6474265",
"0.6474265",
"0.6474265",
"0.6446889",
"0.6438219",
"0.6433602",
"0.6430912",
"0.6430912",
"0.64144784",
"0.64039063",
"0.6390285",
"0.63876086",
"0.638337",
"0.638337"... | 0.78240556 | 0 |
Returns the description of this search result. This is given medium priority in search result ranking. You can access the description of the search entry as `entry.description` in your search results. Since this should contains a short description of the search entry, it's excellent for providing a summary in your sear... | def t5do(YKHO, YEnM):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5do(YKHO):\n return HYW6(_z_R['description'])",
"def JBZA(YKHO):\n return YKHO.get('description')",
"def JBZA(YKHO):\n return YKHO.long_description or YKHO.short_description",
"def CIby(YKHO) -> str:\n return qe4Y.get(YKHO, 'detailed_description')",
"def JBZA(YKHO):\n return getattr(YKH... | [
"0.72687954",
"0.71676946",
"0.7135198",
"0.7131745",
"0.70924807",
"0.7066067",
"0.70463294",
"0.70463103",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7040852",
"0.7039777",
"0.70176214",
"0.7004326",
"0.6995572... | 0.0 | -1 |
Returns the content of this search result. This is given low priority in search result ranking. You can access the content of the search entry as `entry.content` in your search results, although this field generally contains a big mess of search data so is less suitable for frontend display. The default implementation ... | def EPt3(YKHO, YEnM):
NSNj = YKHO.fields or (Jyyj.name for Jyyj in YKHO.model._meta.fields if isinstance(Jyyj, (FYrf.CharField, FYrf.TextField)))
NSNj = (vXX7 for vXX7 in NSNj if vXX7 not in YKHO.exclude)
return YKHO.prepare_content(' '.join((e0D3(YKHO._resolve_field(YEnM, vXX7)) for vXX7 in NSNj))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGN5(YKHO):\n try:\n return oyIN.array([YRbF['content'] for YRbF in YKHO.entries])\n except:\n print('No results found. Try running a query first.')",
"def EPt3(YKHO):\n return YKHO.content",
"def hGN5(YKHO):\n return '\\n'.join([zFiD.content for zFiD in YKHO.line_set.all()])",
... | [
"0.66383815",
"0.6137363",
"0.6075786",
"0.606073",
"0.60389954",
"0.60125375",
"0.5998747",
"0.59691936",
"0.59246695",
"0.591031",
"0.591031",
"0.58939403",
"0.58862257",
"0.58862257",
"0.58862257",
"0.58862257",
"0.5884576",
"0.5873369",
"0.5861593",
"0.57695544",
"0.57649... | 0.6647298 | 0 |
Returns the queryset of objects that should be considered live. If this returns None, then all objects should be considered live, which is more efficient. | def BuG2(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7oj(YKHO):\n return YKHO.get_query_set().filter(is_public=True)",
"def p7oj(YKHO):\n return YKHO.get_queryset().live()",
"def X3B1(Emd4) -> ZYvt:\n return Emd4.objects(return_code=None)",
"def k66M(YKHO):\n return QRWf.objects.live()",
"def p7oj(YKHO):\n return YKHO.filter(is_published=... | [
"0.799168",
"0.78009325",
"0.74753904",
"0.72474194",
"0.7092113",
"0.69954526",
"0.6888376",
"0.68226373",
"0.6647854",
"0.6542933",
"0.6542933",
"0.6525958",
"0.6453987",
"0.64510673",
"0.6415956",
"0.6399387",
"0.6392358",
"0.6378622",
"0.636328",
"0.6343943",
"0.633633",
... | 0.7585211 | 2 |
Adds an object to the current context, if active. | def kWYI(YKHO, eHpk, YEnM):
YKHO._assert_active()
ei4T, bGrB = YKHO._stack[-1]
ei4T.add((eHpk, YEnM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wiqu(YKHO, TqbJ):\n YKHO.context.append(TqbJ)",
"def kWYI(YKHO, p_z1, YEnM):\n YKHO._assert_active()\n ei4T, bGrB = YKHO._stack[-1]\n ei4T.add((p_z1, YEnM))",
"def DwJu(YKHO, YEnM):\n YKHO.objects.add_object(YEnM)",
"def o6sc(YKHO, YEnM):\n YKHO.objects.append(YEnM)",
"def DwJu(YKHO, ... | [
"0.7654825",
"0.7516938",
"0.7142379",
"0.70660037",
"0.70483416",
"0.7036882",
"0.69614667",
"0.69204736",
"0.6870382",
"0.68556774",
"0.68556774",
"0.68372554",
"0.6827525",
"0.6827525",
"0.68081814",
"0.6791307",
"0.6737012",
"0.6620651",
"0.6586746",
"0.658053",
"0.658053... | 0.8202 | 0 |
Called at the end of a request, ensuring that any open contexts are closed. Not closing all active contexts can cause memory leaks and weird behaviour. | def WQoi(YKHO, **B2fa):
while YKHO.is_active():
YKHO.end() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tv6D(YKHO):\n if YKHO._context:\n RKD7.debug('Context closed after plugin execution')\n YKHO._context.close()\n YKHO._context = None",
"def U4F2(YKHO, vEqo, UpHd, wVCK):\n try:\n YKHO._context_manager.invalidate()\n finally:\n YKHO._context_manager.end()",
"def O... | [
"0.73947823",
"0.7233357",
"0.7163694",
"0.7045705",
"0.70424616",
"0.70424616",
"0.6954506",
"0.68605",
"0.6770253",
"0.6623083",
"0.66227645",
"0.65769273",
"0.65750873",
"0.65562564",
"0.6541257",
"0.65341467",
"0.6528835",
"0.6528634",
"0.6528634",
"0.6528634",
"0.6528634... | 0.0 | -1 |
Returns a sequence of models that have been registered with this search engine. | def Bj0l(YKHO):
return list(YKHO._registered_models.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bj0l(YKHO):\n return YKHO._registered_models.keys()",
"def Bj0l(YKHO):\n return [XLL2.get_model(*H5ew) for H5ew in YKHO._registered_models.keys()]",
"def FYrf(YKHO):\n return (C3ST for C3ST in YKHO._models)",
"def ArHU(YKHO):\n wzOh = []\n if YKHO.is_valid():\n for C3ST in YKHO.clea... | [
"0.78111714",
"0.77105045",
"0.7603741",
"0.73865753",
"0.7370516",
"0.7288119",
"0.72413474",
"0.721117",
"0.7118391",
"0.70839256",
"0.7081423",
"0.70413625",
"0.6983328",
"0.6968524",
"0.69651484",
"0.69385934",
"0.6793643",
"0.6747217",
"0.67316824",
"0.67272735",
"0.6693... | 0.782529 | 0 |
Returns an iterable of models and querysets that should be included in the search query. | def eaV1(YKHO, FYrf):
for C3ST in FYrf or YKHO.get_registered_models():
if isinstance(C3ST, ZYvt):
yield C3ST
else:
w0rx = YKHO.get_adapter(C3ST)
SR0I = w0rx.get_live_queryset()
if SR0I is None:
yield C3ST
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n assert YKHO.Meta.model is not None, \"'%s' should set the `Meta.model` attribute, or override the `get_queryset()` method.\" % YKHO.__class__.__name__\n return YKHO.Meta.model.search()",
"def all(YKHO, _M_k=False):\n B2fa = {'model': YKHO.model, 'using': YKHO._db}\n if hasattr(YKHO,... | [
"0.66916305",
"0.66753453",
"0.6585783",
"0.6558169",
"0.65425164",
"0.6495676",
"0.64884937",
"0.6443897",
"0.6425332",
"0.6388668",
"0.63646734",
"0.63327307",
"0.6325791",
"0.6322596",
"0.6318459",
"0.63109773",
"0.6308796",
"0.6306791",
"0.6303504",
"0.6251292",
"0.621429... | 0.74638075 | 0 |
Validate this profile distribution. Throws ProfileDistribution.ValidationError | def xzCw(YKHO):
def ahgl(lgNN):
""" Throw a ValidationError if false. """
if not lgNN:
raise CNiP.ValidationError()
ahgl(isinstance(YKHO.feature, str))
ahgl(YKHO.feature in jtGO)
ahgl(isinstance(YKHO.feature_display_name, str))
ahgl(YKHO.type in ['EASY_CHOICE', 'OPEN_CHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ahgl(lgNN):\n if not lgNN:\n raise CNiP.ValidationError()",
"def jRE4(YKHO, z39Z):\n return True",
"def sBY3(YKHO):\n if YKHO._calc is None:\n raise AttributeError('_calc is None')\n if YKHO._phase is None:\n raise AttributeError('_phase is None')\n MaZE._validate(YKHO)\... | [
"0.66144764",
"0.61325395",
"0.6075133",
"0.59515214",
"0.5769467",
"0.54311234",
"0.5346207",
"0.5271718",
"0.5239567",
"0.5178923",
"0.51756054",
"0.5132501",
"0.5109952",
"0.50571716",
"0.5038452",
"0.50353545",
"0.50267917",
"0.50248826",
"0.5024157",
"0.50224304",
"0.500... | 0.69741267 | 0 |
Get the count of enrolled students matching the feature value. | def DUZc(RDhP, BWXx):
return BTFJ.objects.filter(course_id=S7Jr, is_active=True, **tWz1(RDhP, BWXx)).count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx():\n return len(oziv)",
"def yVGa(YKHO) -> int:\n return len(YKHO._students)",
"def sFjE(YKHO):\n moMn = cQ68.objects.filter(course=YKHO)\n return sum([Oa1e.nb_students() for Oa1e in moMn])",
"def GVEG(YKHO):\n return YKHO.students.filter(deleted=False).count()",
"def UHFx(YKHO, BWX... | [
"0.6634688",
"0.65233004",
"0.6390507",
"0.6326474",
"0.6216869",
"0.6195462",
"0.61764497",
"0.6120792",
"0.6013663",
"0.59720707",
"0.59216833",
"0.59216833",
"0.59179366",
"0.5827964",
"0.5721051",
"0.57127327",
"0.5689034",
"0.5681571",
"0.5676528",
"0.5665021",
"0.565273... | 0.7918698 | 0 |
Get a specific product by its primary key | def NMoC(Mc9N):
return NCls.session.query(msfn).get(Mc9N) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drGQ(Mc9N):\n return msfn.query.filter(msfn.product_id == Mc9N).first()",
"def drGQ(YKHO, Mc9N):\n try:\n YKHO.cur.execute('SELECT * FROM products WHERE product_id = %s', (Mc9N,))\n return YKHO.cur.fetchone()\n except Exception as e:\n YKHO.cur.close\n YKHO.conn.close",
... | [
"0.7929899",
"0.7606882",
"0.759049",
"0.7554573",
"0.7470094",
"0.7428278",
"0.7328707",
"0.72646374",
"0.72420377",
"0.7189087",
"0.7186208",
"0.7156074",
"0.7131",
"0.711864",
"0.705855",
"0.69917375",
"0.6977087",
"0.6977087",
"0.69458634",
"0.69342226",
"0.688041",
"0.... | 0.7817653 | 1 |
Update a product based on user input via POST request | def QdZT(Lx3t, L03z):
Lx3t.updated = qcWV.datetime.now()
Lx3t.name = L03z['name']
Lx3t.description = L03z['description']
Lx3t.category_id = L03z['category']
NCls.session.add(Lx3t)
NCls.session.commit()
return Lx3t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, QePW, _sei=None):\n ZfUD = msfn.objects.get(pk=_sei)\n ZfUD.name = QePW.data['name']\n ZfUD.productType_id = QePW.data['productType_id']\n ZfUD.price = QePW.data['price']\n ZfUD.description = QePW.data['description']\n ZfUD.quantity = QePW.data['quantity']\n ZfUD.location = QePW... | [
"0.7701527",
"0.748167",
"0.7378722",
"0.73750263",
"0.73546064",
"0.72869277",
"0.7286866",
"0.7263475",
"0.72302186",
"0.72276616",
"0.7222235",
"0.71756244",
"0.7149505",
"0.7145579",
"0.7066951",
"0.7045275",
"0.7021976",
"0.7007202",
"0.7006428",
"0.69997704",
"0.6994824... | 0.70635086 | 15 |
Return a random matrix of size `sizexsize'. Density is either 'dense' or 'sparse' and returns a fully dense or a sparse matrix respectively. The matrices are Hermitian. | def xFGK(zNig, InLe, yDqo):
if InLe == 'sparse':
Ylbp = WKDp.rand_herm(zNig, density=1 / zNig)
elif InLe == 'dense':
Ylbp = WKDp.rand_herm(zNig, density=1)
if yDqo == 'numpy':
return Ylbp.full()
elif yDqo == 'scipy_csr':
return Zxt2.sparse.csr_matrix(Ylbp.full())
if y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5RH(zNig):\n assert (1 - wUj5) * zNig ** 2 > zNig\n Ylbp = oyIN.zeros((zNig, zNig))\n AoiH = (1 - wUj5) * zNig ** 2\n for YRbF in range(zNig):\n Ylbp[YRbF, YRbF] = T92b * tuKI.uniform(0.5, 1.0) * (1 if tuKI.random() < 0.5 else -1)\n AoiH -= zNig\n Q_qK = []\n for YRbF in range(len(... | [
"0.6888064",
"0.65614784",
"0.6389079",
"0.61692244",
"0.61446923",
"0.609312",
"0.5996431",
"0.5979124",
"0.5979124",
"0.5968174",
"0.5942106",
"0.5940386",
"0.59117883",
"0.58016884",
"0.57904756",
"0.5723878",
"0.57119215",
"0.5680065",
"0.56663483",
"0.56515163",
"0.56453... | 0.0 | -1 |
Return a random matrix of size `sizexsize'. Density is either 'dense' or 'sparse' and returns a fully dense or a sparse matrix respectively. The matrices are Hermitian. | def xaLu(zNig, InLe, yDqo):
if InLe == 'sparse':
Ylbp = WKDp.rand_herm(zNig, density=1 / zNig)
elif InLe == 'dense':
Ylbp = WKDp.rand_herm(zNig, density=1)
if yDqo == 'numpy':
return Ylbp.full()
elif yDqo == 'scipy_csr':
return Zxt2.sparse.csr_matrix(Ylbp.full())
if y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5RH(zNig):\n assert (1 - wUj5) * zNig ** 2 > zNig\n Ylbp = oyIN.zeros((zNig, zNig))\n AoiH = (1 - wUj5) * zNig ** 2\n for YRbF in range(zNig):\n Ylbp[YRbF, YRbF] = T92b * tuKI.uniform(0.5, 1.0) * (1 if tuKI.random() < 0.5 else -1)\n AoiH -= zNig\n Q_qK = []\n for YRbF in range(len(... | [
"0.6888555",
"0.6562431",
"0.639026",
"0.6170598",
"0.614421",
"0.6093863",
"0.59961677",
"0.59800947",
"0.59800947",
"0.5968575",
"0.59423405",
"0.59421134",
"0.59115434",
"0.58027995",
"0.57916343",
"0.57246214",
"0.5713111",
"0.56805646",
"0.56679225",
"0.56501544",
"0.564... | 0.5140054 | 66 |
List unique elements, preserving order. | def kcwm(OxJJ, H5ew=None):
PwWw = set()
aygV = PwWw.add
if H5ew is None:
for U6D_ in nmsr(PwWw.__contains__, OxJJ):
aygV(U6D_)
yield U6D_
else:
for U6D_ in OxJJ:
G1Hx = H5ew(U6D_)
if G1Hx not in PwWw:
aygV(G1Hx)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KGmq(jzdc):\n return list(set(jzdc))",
"def kcwm(vC9B):\n return list(set(vC9B))",
"def kcwm(vC9B):\n return list(set(vC9B))",
"def kcwm(jzdc):\n return list(set(jzdc))",
"def kcwm(jzdc):\n return list(set(jzdc))",
"def kcwm(jzdc):\n return list(set(jzdc))",
"def kcwm(jzdc):\n ... | [
"0.7784437",
"0.7750042",
"0.7750042",
"0.76899177",
"0.7633555",
"0.7633555",
"0.7615447",
"0.7583155",
"0.7528492",
"0.751674",
"0.7497584",
"0.74772125",
"0.74313635",
"0.74281603",
"0.7427904",
"0.7417584",
"0.7398432",
"0.73908955",
"0.7354254",
"0.7354254",
"0.7354254",... | 0.0 | -1 |
Get the orderbook for this exchange. | def QKUK(YKHO, GT8I=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cHvb(YKHO) -> WrB0:\n return YKHO._fetch('order book', YKHO.market.code)(YKHO._order_book)()",
"def vps3(YKHO, ex5I='BTCLTC'):\n return YKHO._query('/orderbook/%s' % (ex5I,))",
"def vps3(YKHO, q2Xo, **B2fa):\n return YKHO._query('get', 'v1/orderbook/' + q2Xo)",
"def QKUK(YKHO):\n return dl5x(... | [
"0.7666896",
"0.7449406",
"0.71738374",
"0.7117608",
"0.69734144",
"0.6915543",
"0.69121253",
"0.6792169",
"0.6744721",
"0.66606295",
"0.662222",
"0.6496436",
"0.64722425",
"0.63812596",
"0.62852204",
"0.6219861",
"0.6202633",
"0.5995452",
"0.5951967",
"0.59147257",
"0.590137... | 0.61571187 | 17 |
process_data load image, resize it, convert to grayscale, normalize and reshape to dimension required for tensorflow | def mL7R(p4m8):
VXjJ = ZylS.io.read_file(p4m8)
VXjJ = ZylS.io.decode_jpeg(VXjJ, channels=1)
VXjJ = ZylS.image.resize(VXjJ, (196, 196))
VXjJ = ZylS.cast(VXjJ / 255.0, ZylS.float32)
VXjJ = ZylS.reshape(VXjJ, (1, 196, 196, 1))
VXjJ = oyIN.array(VXjJ)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KYM3(YKHO, nPrm: Union[PIL.Image.Image, np.ndarray]) -> AzJI[ht2j.FloatTensor, ht2j.FloatTensor]:\n cH34 = nPrm.copy()\n if YKHO.batch_size == 1:\n cH34.thumbnail(YKHO.input_image_size, resample=3)\n else:\n cH34 = cH34.resize(YKHO.input_image_size, resample=3)\n LNo8 = oyIN.array(cH3... | [
"0.7290061",
"0.7267696",
"0.7266112",
"0.7205245",
"0.7142218",
"0.7128913",
"0.70960027",
"0.705914",
"0.70350784",
"0.70196503",
"0.69956684",
"0.6995246",
"0.69950175",
"0.6978387",
"0.6963718",
"0.6962956",
"0.6958027",
"0.69570154",
"0.6951295",
"0.6913408",
"0.69112927... | 0.7205836 | 3 |
Simple topological sort routine for task lists. Not fast, but easy especially leaves nodes in original order if already topologically sorted. Dependencies that are not in the tasks list are ignored for the purpose of the sort. | def pfXy(xCjU):
qZnl = set(xCjU)
Ij9s = []
LRTA = set()
vYJ9 = xCjU
while len(vYJ9) > 0:
Cfhv = []
for a1PO in vYJ9:
if set(a1PO.deps).intersection(qZnl).issubset(LRTA):
Ij9s.append(a1PO)
LRTA.add(a1PO)
else:
Cfh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Ypz(aeQa):\n\n def U5s3(D5gV):\n \"\"\" return all prereqs for task \"\"\"\n return set([XP5J for XP5J, a1PO in aeQa if a1PO == D5gV])\n iyvl = set([a1PO for XP5J, a1PO in aeQa])\n ruP6 = iyvl | set((XP5J for XP5J, a1PO in aeQa))\n pP0D = ruP6 - iyvl\n LJ3j = list(pP0D)\n while... | [
"0.819707",
"0.7636002",
"0.74001455",
"0.693946",
"0.69279784",
"0.69251215",
"0.68806195",
"0.68364984",
"0.67049706",
"0.6621442",
"0.6568757",
"0.6556709",
"0.65369165",
"0.6532238",
"0.6526097",
"0.65218306",
"0.6498448",
"0.64692557",
"0.6466569",
"0.644374",
"0.6434479... | 0.7670834 | 1 |
Takes the parsed data set created by the parse function and finds the species that has the highest level given the data. The method returns a tuple which contains the species name and level of the highest leveled species. | def f0fZ(U34r):
BWXx = U34r.loc[U34r['level'].idxmax()]
return (BWXx['name'], BWXx['level']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0fZ(nPrm):\n Aofo = nPrm[nPrm['level'] == max(nPrm['level'])].iloc[0, :]\n return (Aofo['name'], Aofo['level'])",
"def GTuh():\n print('Test max_level from Part 0 - Manual')\n LLrw(('Lapras', 72), yWbj.max_level(OFSJ))\n LLrw(('Victreebel', 100), yWbj.max_level(gaFM))\n print('Test max_lev... | [
"0.7223926",
"0.60337234",
"0.5996973",
"0.59623706",
"0.59469616",
"0.59388256",
"0.5906164",
"0.5904689",
"0.58054435",
"0.57805836",
"0.5759981",
"0.57362294",
"0.57185435",
"0.5689389",
"0.5688198",
"0.56081235",
"0.55720633",
"0.556955",
"0.5568191",
"0.5552577",
"0.5548... | 0.6644396 | 1 |
Takes the parsed data set given by the parse function and a string variable for the type of Pokemon we are interested in. Using this information, the method sums the attack values and total count of Pokemon which match the type we are interested in. The method returns None if no Pokemon in the data set match the specif... | def I5sF(U34r, SfI4):
return U34r[U34r['type'] == SfI4].loc[:, 'atk'].mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM8h(m5KI, avWT):\n if avWT in SUVV:\n if m5KI in SUVV[avWT]:\n return SUVV[avWT][m5KI]\n return 1",
"def bnGq(U34r):\n return dict(U34r.groupby('type')['atk'].mean())",
"def RuuL():\n print('Test mean_attack_for_type from Part 0 - Manual')\n LLrw(47.5, yWbj.mean_attack_for... | [
"0.56369865",
"0.5461031",
"0.54005694",
"0.53203124",
"0.53075224",
"0.51403546",
"0.5116265",
"0.503203",
"0.50135046",
"0.5005774",
"0.50000787",
"0.49862412",
"0.49406096",
"0.49068627",
"0.490429",
"0.48903897",
"0.48860142",
"0.48757774",
"0.48568833",
"0.4854112",
"0.4... | 0.62072086 | 0 |
Return this position as floatingpoint block coordinates. | def ajtt(YKHO):
return (YKHO.x / 32, YKHO.y / 32, YKHO.z / 32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JS8P(YKHO):\n return (int(YKHO.x // 32), int(YKHO.y // 32), int(YKHO.z // 32))",
"def jhGN(YKHO):\n YKHO.x = float(YKHO.x)\n YKHO.y = float(YKHO.y)",
"def JCeM(YKHO):\n return (YKHO.latf, YKHO.longf, YKHO.altitude)",
"def DoxV(YKHO):\n YKHO.x = float(YKHO.x)\n YKHO.y = float(YKHO.y)",
... | [
"0.7045046",
"0.6484981",
"0.6482318",
"0.6420461",
"0.6420461",
"0.6420461",
"0.6392649",
"0.6264977",
"0.6169565",
"0.61457926",
"0.61448914",
"0.6130979",
"0.6126346",
"0.6123503",
"0.6123269",
"0.6086072",
"0.6085402",
"0.60616535",
"0.6057066",
"0.6050387",
"0.6036105",
... | 0.0 | -1 |
Return this position as block coordinates. | def JS8P(YKHO):
return (int(YKHO.x // 32), int(YKHO.y // 32), int(YKHO.z // 32)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dQgj(YKHO):\n return (YKHO.x, YKHO.y)",
"def W0Eb(YKHO):\n T86l = YKHO.width // 2\n TRBA = YKHO.height // 2\n return YKHO.Coordinates(fIXy(-T86l, TRBA), fIXy(T86l, -TRBA))",
"def dQgj(YKHO):\n oeNL = (YKHO.x, YKHO.y)\n return oeNL",
"def dQgj(YKHO):\n return (YKHO._x, YKHO._y)",
"d... | [
"0.71588504",
"0.7108361",
"0.70732623",
"0.7010157",
"0.6979236",
"0.6969722",
"0.69658846",
"0.69490933",
"0.6944922",
"0.6935937",
"0.69357765",
"0.69311947",
"0.6930634",
"0.6928394",
"0.69174176",
"0.6880009",
"0.6878416",
"0.68623924",
"0.68588793",
"0.68457496",
"0.684... | 0.76308024 | 0 |
decrease the learning rate at 100 and 150 epoch | def e_63(K0do, qtWj):
tspZ = fM0p.lr
if qtWj >= 100:
tspZ /= 10
if qtWj >= 150:
tspZ /= 10
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLkl(YKHO):\n YKHO.learning_rate = hp1l.LEARNING_RATE * oyIN.exp(-YKHO.steps / hp1l.TRAINING_EPS / 1000)\n YKHO.steps += 1",
"def WT5P():\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] /= 10",
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj):\n ... | [
"0.7636233",
"0.73767436",
"0.7348864",
"0.7214255",
"0.7183398",
"0.718151",
"0.718151",
"0.7176451",
"0.71735895",
"0.7150464",
"0.71494025",
"0.71345466",
"0.7134152",
"0.71274173",
"0.711391",
"0.7109023",
"0.7062678",
"0.70584023",
"0.70466757",
"0.702495",
"0.70197266",... | 0.72216314 | 3 |
Method to convert in tuple | def kbIq(YKHO):
YKHO.conv = (YKHO.product_name, YKHO.product_score, YKHO.product_url, YKHO.product_store) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMpf(*qIxc):\n return tuple(qIxc)",
"def EADN(SjLr):\n if type(SjLr) is tuple:\n return SjLr\n else:\n return (SjLr, SjLr)",
"def pTc2(YKHO, *qIxc, **B2fa):\n pass",
"def Cdjl(WKvO):\n if isinstance(WKvO, tuple):\n return WKvO\n return (WKvO,)",
"def YElZ(WKvO):\n... | [
"0.76506406",
"0.75869477",
"0.75486875",
"0.75074184",
"0.7485839",
"0.7443443",
"0.73896843",
"0.73841894",
"0.737467",
"0.73599637",
"0.7266532",
"0.72653764",
"0.72292286",
"0.7213363",
"0.7209085",
"0.7206441",
"0.71126366",
"0.7067025",
"0.7055174",
"0.7055174",
"0.7047... | 0.0 | -1 |
Create a new logger. | def lmAE(E70h, gG2A=True, xl_N=False, Qwrz=False, xiS5=G9jH.INFO):
bo34 = G9jH.getLogger(E70h)
bo34.setLevel(xiS5)
bo34.propagate = False
uaPq = G9jH.Formatter('%(asctime)s - %(name)26s - %(levelname)7s - [%(filename)20s:%(lineno)4s - %(funcName)25s() ] %(message)s')
uaPq.converter = ITS7.gmtime
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE() -> G9jH.Logger:\n pass",
"def eLpg():\n return Few0()",
"def MWLp(YKHO) -> G9jH.Logger:\n return G9jH.getLogger()",
"def lmAE():\n pmON = './logs'\n if not Hy7s.path.exists(pmON):\n Hy7s.makedirs(pmON)\n bo34 = G9jH.getLogger()\n bo34.setLevel(G9jH.DEBUG)\n bo34.prop... | [
"0.8352201",
"0.82430255",
"0.8123625",
"0.8012783",
"0.79813904",
"0.79813904",
"0.7912152",
"0.78870386",
"0.78855395",
"0.77147853",
"0.76569843",
"0.7632356",
"0.76130223",
"0.7530844",
"0.75101906",
"0.74995714",
"0.74952656",
"0.7474929",
"0.74652624",
"0.7461707",
"0.7... | 0.71541774 | 48 |
Get the resourceid of the element | def id(YKHO):
return YKHO._getValue('resource-id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1RS(YKHO):\n return YKHO.get_id_attr_name()",
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
... | [
"0.79277736",
"0.7924155",
"0.7892336",
"0.7892336",
"0.7892336",
"0.7805151",
"0.7759008",
"0.7740667",
"0.77403",
"0.76532346",
"0.76492983",
"0.7610311",
"0.7610311",
"0.7610311",
"0.7610311",
"0.7610311",
"0.7610311",
"0.76084787",
"0.76084787",
"0.76084787",
"0.76084787"... | 0.8269286 | 0 |
A view that displays an index page | def kZiy(QePW):
return _1tc(QePW, 'home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(QePW):\n return SGJU('index.bp', {})",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(QePW):\n return _1tc(QePW, 'index.html', {})",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n return TvZl('index.html')",
"def... | [
"0.86154556",
"0.8595798",
"0.84865576",
"0.84851",
"0.84851",
"0.8465745",
"0.8464043",
"0.8437037",
"0.8427182",
"0.8419035",
"0.84189343",
"0.83711165",
"0.83709306",
"0.83695585",
"0.83695585",
"0.83695585",
"0.83695585",
"0.83695585",
"0.83695585",
"0.835104",
"0.8323475... | 0.0 | -1 |
A view to show the about us page | def vsuQ(QePW):
return _1tc(QePW, 'about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGH9(QePW):\n WDZp = bYOW.objects.first()\n LeZt = RrG1.objects.all()\n vsuQ = I1X2.objects.first()\n QpfX = {'info': WDZp, 'categories': LeZt, 'about': vsuQ}\n return _1tc(QePW, 'takdhum/about_us.html', QpfX)",
"def AGH9(QePW):\n return _1tc(QePW, 'info/about_us.html')",
"def vsuQ(QePW):... | [
"0.8390412",
"0.8306592",
"0.8290701",
"0.8269223",
"0.8138434",
"0.813763",
"0.8112312",
"0.8100732",
"0.8094152",
"0.8073734",
"0.80359334",
"0.803101",
"0.7998913",
"0.798957",
"0.798904",
"0.79761225",
"0.7975312",
"0.79604244",
"0.7948928",
"0.79334074",
"0.7931719",
"... | 0.0 | -1 |
The set of arguments for constructing a StaticIp resource. | def FIMM(Ro_8, *, phH8: pulumi.Input[str], bNKA: pulumi.Input[str]):
qe4Y.set(Ro_8, 'cloud_name', phH8)
qe4Y.set(Ro_8, 'project', bNKA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: StaticIpArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def eUkF(YKHO) -> None:\n _hkX = YKHO.client.create_static_ip_address(project=YKHO.get_project(), cloud_name=YKHO.args.cloud)\n YKHO.print_response(_hkX, format=YKHO.args.format, json=YKHO.args.json, sin... | [
"0.7797013",
"0.65594125",
"0.64996624",
"0.62993073",
"0.6292014",
"0.62330455",
"0.6218514",
"0.62151736",
"0.60998195",
"0.60518414",
"0.60071737",
"0.597643",
"0.59742886",
"0.59652287",
"0.5915136",
"0.59124297",
"0.5886522",
"0.5886283",
"0.5837495",
"0.5836139",
"0.582... | 0.0 | -1 |
The service name the static ip is associated with. | def bSEa(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'service_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO):\n return YKH... | [
"0.8027437",
"0.8027437",
"0.8027437",
"0.8027437",
"0.8024568",
"0.7851499",
"0.7851499",
"0.7821624",
"0.7821624",
"0.7821624",
"0.7821624",
"0.7688194",
"0.7688194",
"0.7688194",
"0.7688194",
"0.758981",
"0.758981",
"0.7586717",
"0.7556291",
"0.75296915",
"0.7502223",
"0... | 0.75012714 | 25 |
The static ip id of the resource. Should be used as a reference elsewhere. | def C_5g(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'static_ip_address_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_5g(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'static_ip_address_id')",
"def Pq2j(YKHO, HW4f: str):\n return YKHO._get(f'staticIP/{HW4f}')",
"def nPlo(YKHO) -> int:\n ...",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.ge... | [
"0.821398",
"0.71529543",
"0.7136658",
"0.7098526",
"0.7098526",
"0.7098526",
"0.70107406",
"0.6953566",
"0.6930249",
"0.68677896",
"0.68677896",
"0.68677896",
"0.68677896",
"0.68677896",
"0.68235654",
"0.6791682",
"0.67668855",
"0.67533267",
"0.67343646",
"0.67343646",
"0.67... | 0.8007859 | 1 |
The service name the static ip is associated with. | def bSEa(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'service_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO):\n return YKH... | [
"0.8026402",
"0.8026402",
"0.8026402",
"0.8026402",
"0.80234087",
"0.7850948",
"0.7850948",
"0.76870656",
"0.76870656",
"0.76870656",
"0.76870656",
"0.75881433",
"0.75881433",
"0.7585525",
"0.75561905",
"0.7529183",
"0.7501194",
"0.7501194",
"0.7499859",
"0.7499859",
"0.74998... | 0.7820306 | 7 |
The static ip id of the resource. Should be used as a reference elsewhere. | def C_5g(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'static_ip_address_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_5g(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'static_ip_address_id')",
"def Pq2j(YKHO, HW4f: str):\n return YKHO._get(f'staticIP/{HW4f}')",
"def nPlo(YKHO) -> int:\n ...",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe... | [
"0.8008305",
"0.71539783",
"0.7137426",
"0.70966524",
"0.70966524",
"0.70966524",
"0.70086867",
"0.6951925",
"0.6930786",
"0.6866121",
"0.6866121",
"0.6866121",
"0.6866121",
"0.6866121",
"0.6822074",
"0.6791598",
"0.67648077",
"0.67528397",
"0.6732654",
"0.6732654",
"0.673265... | 0.8214435 | 0 |
Load model stored in path. | def tyeH(YKHO, pmON):
with YKHO.graph.as_default():
YKHO.saver.restore(YKHO.sess, pmON)
print('Attgan was restored.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(Emd4, uqvc):\n pass",
"def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError()",
"def J2u4(YKHO, pmON):\n YKHO._model = uyMl(pmON)\n print('Loaded model from file.')",
"def uyMl(YKHO, pmON... | [
"0.91191876",
"0.8885386",
"0.8816081",
"0.85031056",
"0.84443176",
"0.83966506",
"0.83948153",
"0.8363376",
"0.8340593",
"0.83382297",
"0.8325514",
"0.83021367",
"0.8296667",
"0.82763845",
"0.8275666",
"0.8239722",
"0.8238419",
"0.8235115",
"0.822047",
"0.8210688",
"0.81709"... | 0.0 | -1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew):
for YRbF in range(len(YKHO.hashmap)):
if YKHO.hashmap[YRbF][0] == H5ew:
return YKHO.hashmap[YRbF][1]
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.7848024",
"0.75730664",
"0.75311434",
"0.7467767",
"0.7459674",
"0.7427529",
"0.7400849",
"0.73413885",
"0.7307691",
"0.72523814",
"0.7241443",
"0.7225553",
"0.71833247",
"0.71715623",
"0.7169278",
"0.71402776",
"0.70865685",
"0.70381206",
"0.6959099",
"0.6834812",
"0.6757... | 0.7394425 | 7 |
converting a tensor of joint angles to a dictionary of joint angles | def lvbz(YKHO, mJcu):
PiPd = {}
YRbF = 0
for H5ew in rvZN:
if H5ew not in ['root', 'rclavicle', 'lclavicle', 'rfingers', 'lfingers']:
exwG = rvZN[H5ew]
PiPd[H5ew] = jth9.deepcopy(mJcu[YRbF:YRbF + exwG])
YRbF += exwG
if H5ew == 'root':
exwG = rv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgyE(fkGy, t0X1):\n return dict(Hs6x.izip(t0X1.joint_names(), fkGy))",
"def yLwx(YKHO):\n YKHO.check_joint_names()\n return dict(zip(YKHO.joint_names, YKHO.joint_values))",
"def Mpxx(YKHO):\n vexM = {}\n for HMCV in YKHO.joint_dict:\n vexM[HMCV] = oyIN.copy(YKHO.simulation.data.qpos[Y... | [
"0.6201404",
"0.61753803",
"0.60439676",
"0.59855384",
"0.5880486",
"0.5787209",
"0.5784682",
"0.56695634",
"0.56695634",
"0.56199837",
"0.5582342",
"0.5558397",
"0.5537868",
"0.53722584",
"0.53722584",
"0.53391284",
"0.5329388",
"0.53175443",
"0.52847266",
"0.5278672",
"0.52... | 0.59752434 | 5 |
converting a tensor of joint angles to a dictionary of joint angles | def lvbz(YKHO, mJcu):
PiPd = {}
YRbF = 0
for H5ew in rvZN:
if H5ew not in ['root', 'rclavicle', 'lclavicle', 'rfingers', 'lfingers']:
exwG = rvZN[H5ew]
PiPd[H5ew] = jth9.deepcopy(mJcu[YRbF:YRbF + exwG])
YRbF += exwG
if H5ew == 'root':
exwG = rv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgyE(fkGy, t0X1):\n return dict(Hs6x.izip(t0X1.joint_names(), fkGy))",
"def yLwx(YKHO):\n YKHO.check_joint_names()\n return dict(zip(YKHO.joint_names, YKHO.joint_values))",
"def Mpxx(YKHO):\n vexM = {}\n for HMCV in YKHO.joint_dict:\n vexM[HMCV] = oyIN.copy(YKHO.simulation.data.qpos[Y... | [
"0.6201404",
"0.61753803",
"0.60439676",
"0.59855384",
"0.5880486",
"0.5787209",
"0.5784682",
"0.56695634",
"0.56695634",
"0.56199837",
"0.5582342",
"0.5558397",
"0.5537868",
"0.53722584",
"0.53722584",
"0.53391284",
"0.5329388",
"0.53175443",
"0.52847266",
"0.5278672",
"0.52... | 0.59752434 | 4 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, GU4x, 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)
Ylbp.append(R2Dg.mul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Sets the storage_policies of this StorageDiskGroupPolicyAllOf. | def BxXS(YKHO, BxXS):
YKHO._storage_policies = BxXS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oj4Z(YKHO):\n for Qabx in YKHO.policies:\n YKHO.conns.asg.create_scaling_policy(Qabx)",
"def som_(YKHO, som_):\n YKHO._policies = som_",
"def AThA(YKHO, BWXx):\n if isinstance(BWXx, exCv):\n BWXx = BWXx.lower()\n if not YKHO._commcell_object.storage_policies.has_policy(BWXx):\... | [
"0.50437754",
"0.49000466",
"0.48912135",
"0.47537357",
"0.47161642",
"0.47016418",
"0.459437",
"0.457843",
"0.45129853",
"0.44369775",
"0.4422133",
"0.44184268",
"0.4389629",
"0.43780124",
"0.43602377",
"0.4351825",
"0.43274048",
"0.42887118",
"0.42868364",
"0.42736834",
"0.... | 0.69301873 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, r4BS):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
This function calculates the stocks Simple Moving Average and Exponential Moving Average using the rolling function and the ewm function. It calculates for a window of 5,10, and 15 days. | def C9SG(i4kL):
oewt = i4kL.StockName.unique()
for LpID in oewt:
_lYe = i4kL.loc[i4kL.StockName == LpID]
_lYe.reset_index(inplace=True)
nPrm = _lYe[['Date', 'Close']]
for YRbF in (5, 10, 15):
dBGK = nPrm.set_index('Date').rolling(window=YRbF).mean()
_lYe.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FwwX(YKHO, nPrm, KnxT):\n if len(nPrm) < 2 * KnxT:\n raise ValueError('data is too short')\n Z9rn = 2.0 / (KnxT + 1)\n wDC1 = YKHO.sma(nPrm[-KnxT * 2:-KnxT], KnxT)\n for BWXx in nPrm[-KnxT:]:\n wDC1 = Z9rn * BWXx + (1 - Z9rn) * wDC1\n return wDC1",
"def h8Uy(nPrm: pd.Series, KnxT... | [
"0.7177023",
"0.68774277",
"0.6620344",
"0.65624326",
"0.6493719",
"0.6486976",
"0.63832736",
"0.6367982",
"0.63646555",
"0.63412124",
"0.63115627",
"0.6305881",
"0.6242204",
"0.6229105",
"0.6215889",
"0.6200559",
"0.6185011",
"0.6176008",
"0.61451906",
"0.61235064",
"0.60989... | 0.7683691 | 0 |
Returns whether this string matches any of the globs | def OOXC(vIwR, Z8uY):
if isinstance(Z8uY, bool):
return Z8uY
return any((jlVJ.fnmatch(vIwR, SC2F) for SC2F in Z8uY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lt2Q(pmON, b6H_):\n nm9A = Hy7s.path.normcase(Hy7s.path.normpath(pmON))\n for mXDZ in b6H_:\n for P4qX in SC2F.glob(mXDZ):\n if Hy7s.path.normcase(Hy7s.path.normpath(P4qX)) == nm9A:\n return mXDZ\n return False",
"def TeSC(YKHO, b6H_: str | Sequence[str], *, JbyC: in... | [
"0.74685824",
"0.7196145",
"0.71596944",
"0.7093959",
"0.7091468",
"0.70854896",
"0.7080189",
"0.7043292",
"0.6921354",
"0.6888526",
"0.6868469",
"0.6862211",
"0.68392646",
"0.68349797",
"0.68114984",
"0.6793389",
"0.67888504",
"0.67581046",
"0.67283106",
"0.67218196",
"0.670... | 0.8482731 | 0 |
Return Simpson diversity index of eigvalue explained variance ratios. | def rKG3(ufVO: np.ndarray):
i9Rn = sum(ufVO)
cwjD = [YRbF / i9Rn for YRbF in ufVO]
QWRs = sum((WKvO ** 2 for WKvO in cwjD)) * 100
return QWRs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xvr9(YKHO):\n return YKHO.Epssvd",
"def nESp(dy_H):\n exwG = len(dy_H)\n nESp = dy_H.std() / oyIN.sqrt(exwG)\n return nESp",
"def oZuG(WXDS: 'Series') -> 'Series':\n return (WXDS - 1) / WXDS",
"def KCHu(YKHO):\n return oyIN.sort(abs(YKHO.eig))[::-1]",
"def qvVm(YKHO):\n return YKHO... | [
"0.62772334",
"0.58910716",
"0.5844795",
"0.57491666",
"0.5705272",
"0.5705272",
"0.5613618",
"0.56128806",
"0.5593601",
"0.5590549",
"0.556309",
"0.5498493",
"0.5497804",
"0.54923165",
"0.5483309",
"0.5463114",
"0.5449096",
"0.54019785",
"0.5384695",
"0.5368464",
"0.53633463... | 0.7629418 | 0 |
Return number of `eig_vals` needed to explain `threshold`100 percent of variance | def qdcY(ufVO: np.ndarray, gwAu: float=0.99, pVnB: bool=False):
i9Rn = sum(ufVO)
cwjD = [YRbF / i9Rn for YRbF in ufVO]
T8eY = oyIN.cumsum(cwjD)
mszd = oyIN.argmax(T8eY > gwAu)
if pVnB:
return (mszd, T8eY)
return mszd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjRT(YKHO):\n cuUy = YKHO._f.sturm_bound()\n cuUy = cuUy + len(oCcr(YKHO.level()))\n return cuUy",
"def vm5J(YKHO, Hw9C):\n G1JP = oyIN.argmax(YKHO.information_k > Hw9C)\n print(f'{Hw9C:.0%} of the variance is within {G1JP} largest eigenvalues.')\n YKHO.K = G1JP\n return G1JP",
"def _J... | [
"0.6665759",
"0.65669495",
"0.62129086",
"0.6086206",
"0.60555696",
"0.6022608",
"0.59826684",
"0.59052277",
"0.58458793",
"0.5791904",
"0.574023",
"0.5673787",
"0.5627976",
"0.5613597",
"0.5581055",
"0.5579489",
"0.5563642",
"0.5550078",
"0.5543408",
"0.5526947",
"0.55148774... | 0.69248503 | 0 |
Forward propagation of NN to get prediction on input x. | def YEmv(U78l, WKvO, YDYE=oyIN.tanh):
eiBr, kYGz, krgz, ftz7 = (U78l['W1'], U78l['b1'], U78l['W2'], U78l['b2'])
Rtnc = WKvO.dot(eiBr) + kYGz
XOOk = YDYE(Rtnc)
mPai = XOOk.dot(krgz) + ftz7
pHXX = YDYE(mPai)
KPVz = oyIN.exp(pHXX)
BFeB = KPVz / oyIN.sum(KPVz, axis=1, keepdims=True)
return o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n YKHO.x = WKvO\n return YKHO.predict(WKvO)",
"def YEmv(YKHO, WKvO):\n return YKHO.feed_forward(WKvO)",
"def YEmv(YKHO, WKvO):\n return YKHO.__forward_pass(WKvO)",
"def YEmv(YKHO, WKvO):\n hlel = YKHO._forward(WKvO)\n return hlel",
"def uLkJ(YKHO, input):\n YKHO.p... | [
"0.83247447",
"0.8044842",
"0.8004162",
"0.7901367",
"0.78874385",
"0.78815395",
"0.7879181",
"0.7822197",
"0.77361494",
"0.77286804",
"0.7649415",
"0.7648784",
"0.7648784",
"0.7645063",
"0.7645063",
"0.7645063",
"0.7610538",
"0.7595975",
"0.7594582",
"0.75623846",
"0.7554909... | 0.0 | -1 |
Return the child of `nn` with weights shifted by Gaussian noise. | def wwZP(U78l):
h_n3 = {'score': 0, 'scored': False}
wJ4v = []
for gEmA in U78l['model']:
XcU5, Fg_i = gEmA
wJ4v.append((r3Zb(XcU5), r3Zb(Fg_i)))
h_n3['model'] = wJ4v
return h_n3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9y3(YKHO, W061, ARTs):\n hSYI = W061.weight.copy()\n yzQ0 = XTiz.where(hSYI > 0)\n if yzQ0[0].size > 0:\n hSYI[yzQ0] = 1.0 / (1.0 / hSYI[yzQ0] + ARTs ** 2)\n return hSYI",
"def qNvn(edxD: Tensor, aM8h: float=4.0) -> llWB:\n return ht2j.exp(-aM8h * edxD.pow(2))",
"def OPRg(YKHO, W061)... | [
"0.59995216",
"0.5851088",
"0.57153434",
"0.56754553",
"0.56465423",
"0.5537683",
"0.54988354",
"0.54580617",
"0.5425364",
"0.541761",
"0.54063076",
"0.54053855",
"0.5364562",
"0.5354942",
"0.53001326",
"0.5296048",
"0.52814",
"0.52762204",
"0.5268067",
"0.5248961",
"0.524653... | 0.0 | -1 |
Store the score of an nn at the current generation and dump to pickle. | def jDyi(p1kx, d6pt, vzxI):
mFTL = Go7Q(vzxI)
bzTP = mFTL[-1]
bzTP[d6pt]['score'] = p1kx
bzTP[d6pt]['scored'] = True
fe9X(mFTL, vzxI)
JBMS, M1Jx = d0dd(bzTP)
eK5b = len(mFTL) - 1
return (JBMS, M1Jx, eK5b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k7Qm(YKHO):\n with open(YKHO.pickle_name(), 'wb') as VIsj:\n t2lc.dump(YKHO.ngram, VIsj)",
"def bhn8(YKHO):\n try:\n o3BW = FMJQ('save_score.json')\n xDcj = _aLO()\n U34r = [YKHO.h, YKHO.w, YKHO.level, YKHO.nb_cond]\n o3BW.upsert({'params': U34r, 'score': YKHO.nbTurns... | [
"0.6820595",
"0.66034186",
"0.64798456",
"0.6407721",
"0.6372178",
"0.63634217",
"0.63633054",
"0.6317705",
"0.6254604",
"0.6251793",
"0.62249064",
"0.6208109",
"0.6168847",
"0.61622447",
"0.6160359",
"0.6143828",
"0.6117933",
"0.6111549",
"0.60801697",
"0.60733485",
"0.60654... | 0.0 | -1 |
Normalize every word from a sentence. remove all diacritical marks convert all letters to lowercase keep nonascii chars to support nonlatin alphabets | def UCNp(FUjE):
FUjE = zVCt.normalize('NFKD', FUjE)
BAaH = []
for Z9rn in FUjE:
try:
jrGx = Ml1L[Z9rn]
except KeyError:
jrGx = '' if zVCt.combining(Z9rn) else Z9rn.lower()
Ml1L[Z9rn] = jrGx
BAaH.append(jrGx)
return ''.join(BAaH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xosv(KCHu):\n\n def rx6T(l5Ny):\n return ZbWC.sub('\\\\b(a|an|the)\\\\b', ' ', l5Ny)\n\n def hK40(l5Ny):\n return ' '.join(l5Ny.split())\n\n def rW_O(l5Ny):\n DNHh = set(vIwR.punctuation)\n return ''.join((Npgh for Npgh in l5Ny if Npgh not in DNHh))\n\n def LSh8(l5Ny):\n... | [
"0.79763585",
"0.7756937",
"0.77566844",
"0.7738801",
"0.7717379",
"0.7694229",
"0.76078004",
"0.75644994",
"0.7506153",
"0.7496435",
"0.7495255",
"0.74654216",
"0.7463344",
"0.74622804",
"0.74395186",
"0.74391025",
"0.74311286",
"0.7423718",
"0.74190784",
"0.74190784",
"0.74... | 0.7552386 | 8 |
Return a random value. | def tuKI(YKHO):
wI36 = tuKI.randint(0, len(YKHO) - 1)
return YKHO.get_doc(wI36) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ALfI(YKHO):\n return tuKI.randint(1, 10)",
"def RHmZ(YKHO):\n return YKHO.Value(tuKI.random())",
"def tuKI():\n return Ky3Q.random()",
"def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]",
"def ADdS():\n return tuKI.random()",
"def tuKI():\n return tuKI.random()",
"def mCpO():\n ... | [
"0.8645641",
"0.8345795",
"0.8235093",
"0.819398",
"0.80716366",
"0.8056102",
"0.80517006",
"0.8036115",
"0.80350536",
"0.7894337",
"0.78001624",
"0.77893776",
"0.7763937",
"0.7763937",
"0.773692",
"0.77358073",
"0.77327305",
"0.76933026",
"0.76933026",
"0.76765186",
"0.76712... | 0.0 | -1 |
Search for value x in the list. Return a reference to the first node with value x; return None if no such node is found. | def TgwQ(YKHO, WKvO):
ycBG = YKHO.head
while ycBG.next != None:
if ycBG.next.value == WKvO:
print(ycBG.next.value)
break
else:
ycBG = ycBG.next
if ycBG.next == None:
print('element not found') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(YKHO, WKvO):\n XP5J = YKHO.head\n while XP5J:\n if WKvO == XP5J.val:\n return XP5J\n else:\n XP5J = XP5J.next\n return None",
"def TgwQ(YKHO, WKvO):\n YRbF = YKHO.head\n while YRbF.next != None and YRbF.value != WKvO:\n YRbF = YRbF.next\n if Y... | [
"0.8456948",
"0.77727157",
"0.76320606",
"0.74512047",
"0.74281543",
"0.7408152",
"0.73935676",
"0.7379714",
"0.737571",
"0.7318988",
"0.72556806",
"0.720088",
"0.71810585",
"0.7145799",
"0.71423346",
"0.71111524",
"0.7063745",
"0.7039926",
"0.69960994",
"0.69867575",
"0.6975... | 0.7376635 | 8 |
Return the length (the number of elements) in the Linked List. | def len(YKHO):
ycBG = YKHO.head.next
UHFx = 0
while ycBG != None:
UHFx += 1
ycBG = ycBG.next
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return YKHO.size",
"def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L += 1\n aCLL = aCLL.pointer_next\n return u54L",
"def u54L(YKHO):\n exwG = 0\n AsC... | [
"0.89774674",
"0.88020724",
"0.87986165",
"0.87227696",
"0.86974716",
"0.86483663",
"0.8635519",
"0.8629142",
"0.86085445",
"0.86017084",
"0.8577427",
"0.8573922",
"0.85647106",
"0.85591877",
"0.85551697",
"0.85360795",
"0.851088",
"0.84978366",
"0.8495727",
"0.846719",
"0.84... | 0.8321941 | 27 |
Add a comment to a network Provide custom information regarding a single network. | def aM_I(Hbfc, aM_I):
return m8z6('network', 'comment', **locals()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PU3S(YKHO, aM_I=None):\n YKHO.get_issue().create_comment(aM_I)",
"def PU3S(YKHO, aM_I):\n if YKHO.comment and aM_I:\n YKHO.comment.note = 'Comment 1: {0} Comment 2: {1}'.format(YKHO.comment.note.replace('\\n', ''), aM_I.note)\n elif aM_I:\n YKHO.comment = aM_I\n YKHO.comment.rec... | [
"0.661511",
"0.65674573",
"0.65060186",
"0.6503316",
"0.64180833",
"0.6415115",
"0.63434666",
"0.6330877",
"0.6315318",
"0.63126135",
"0.62612826",
"0.62539434",
"0.6228146",
"0.6217913",
"0.62075114",
"0.6181816",
"0.6171103",
"0.615437",
"0.61494726",
"0.6142068",
"0.609181... | 0.77674025 | 0 |
Convert the sub nodes to a list of (Name, [Values]). | def i6XR(qIxc, QToG):
SGPK = []
for aUGN in QToG:
SGPK.append(Vbux(aUGN.tag, aUGN.text.split()))
return SGPK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO.name2obj.values()",
"def DumB(YKHO):\n return [(WKvO.label, WKvO.value) for WKvO in YKHO._nodes]",
"def mFWN(YKHO):\n return [Q6kx.value for Q6kx in YKHO]",
"def iYGA(YKHO):\n yv6U = []\n for H5ew, BWXx in YKHO.nodes.items():\n yv6U.append(BWXx)\n yv... | [
"0.70512503",
"0.69092894",
"0.6724138",
"0.6672095",
"0.6663701",
"0.65677524",
"0.65547025",
"0.63521147",
"0.63267636",
"0.62485814",
"0.62456095",
"0.6244017",
"0.62141716",
"0.62047285",
"0.61577517",
"0.60391605",
"0.60274893",
"0.6024522",
"0.6021266",
"0.60186815",
"0... | 0.0 | -1 |
Function to return current datetime. | def o5Ya(DAsM='%m%d%y_%H_%M_%S'):
return qcWV.today().astimezone(FXGE.timezone('US/Pacific')).strftime(DAsM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B72W():\n return qcWV.now()",
"def hBa0():\n return qcWV.now()",
"def B72W() -> qcWV:\n vHj7: qcWV = qcWV.now()\n return vHj7",
"def vHj7() -> qcWV.datetime:\n return qcWV.datetime.now()",
"def rg4j():\n return qcWV.datetime.now()",
"def rg4j():\n return qcWV.datetime.now()",
"... | [
"0.8990179",
"0.88005626",
"0.87121147",
"0.8671347",
"0.86270636",
"0.86270636",
"0.85329247",
"0.8525857",
"0.8515181",
"0.8456347",
"0.8402389",
"0.8389908",
"0.83838284",
"0.8370153",
"0.83497936",
"0.83497936",
"0.83497936",
"0.8331327",
"0.83077437",
"0.82761526",
"0.82... | 0.0 | -1 |
Sums an array of different experiment results and calculates the total standard deviation. | def aRun(dixj):
oR2Q = []
UUZ1 = []
for Aofo in dixj:
if type(Aofo) is not ahOE:
print('Error, The input array is not of ufloat')
return
else:
oR2Q.append(Aofo.nominal_value / Aofo.std_dev ** 2)
UUZ1.append(1 / Aofo.std_dev ** 2)
return z64... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FM4p(ezWE):\n wjRY = 0\n for mLGw in ezWE:\n wjRY += mLGw\n JBMS = wjRY / float(len(ezWE))\n wjRY = 0\n for mLGw in ezWE:\n wjRY += (mLGw - JBMS) ** 2\n SRYB = wjRY / float(len(ezWE))\n M1Jx = epAf.sqrt(SRYB)\n return M1Jx",
"def z2bo(YKHO):\n return XTiz.std(YKHO._re... | [
"0.62483907",
"0.6150328",
"0.6128023",
"0.60537523",
"0.6047539",
"0.60083324",
"0.6007512",
"0.59958667",
"0.59840953",
"0.59382486",
"0.5935137",
"0.59135956",
"0.5911013",
"0.59030753",
"0.58792084",
"0.58757937",
"0.58751273",
"0.5833753",
"0.5830788",
"0.58234996",
"0.5... | 0.7155376 | 0 |
Calculates the equation for a deviation composed of different variable deviations. | def U7EH(BZ29, NArs):
aWEf = Kudk(' '.join(NArs))
rRTz = '$\\sqrt{'
for Mzf9 in aWEf:
rRTz += '((' + str(okyX(BZ29, Mzf9)) + ')\\Delta ' + str(Mzf9) + ')^2 +'
rRTz = rRTz[:-1] + '}$'
rRTz = rRTz.replace('**', '^')
rRTz = rRTz.replace('*', '')
return rRTz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSc0(YKHO):\n return YKHO.variance ** 0.5",
"def JbiM(J9Sm):\n J9Sm = VEDo.array(J9Sm)\n SQl0 = J9Sm.mean()\n exwG = len(J9Sm)\n WTkW = CfuC(sum((J9Sm - SQl0) ** 2) / (exwG - 1))\n XaHR = WTkW / CfuC(exwG)\n return z64P(SQl0, XaHR)",
"def ee6l(uBiB):\n return PZyS(SRYB(uBiB))",
"d... | [
"0.6826413",
"0.6584443",
"0.654348",
"0.6505646",
"0.6481211",
"0.6473441",
"0.6433921",
"0.63954234",
"0.63944054",
"0.63691074",
"0.6306517",
"0.628152",
"0.62641215",
"0.623891",
"0.620988",
"0.6207436",
"0.6190552",
"0.618263",
"0.617839",
"0.617053",
"0.6138326",
"0.6... | 0.0 | -1 |
Handle regex with named variable groups. | def Jn7x(YKHO):
b6H_ = (bD7m('^/foo/(?P<foo>[0-9]+)/$', PU1l, name='example'),)
oimG = m36K().router
iAwL = inl4.init_routes(oimG, patterns=b6H_)
YKHO.assertEqual(len(iAwL), 1)
PsCT = iAwL._routes.pop()
assert PsCT.resource._match('/foo/123/') is not None
assert PsCT.resource._match('/foo/')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Apnz() -> None:\n kUBT = ZbWC.match('(?P<first>\\\\w+) (?:[A-Z]\\\\. )?(?P<last>\\\\w+)', 'Jane P. Doe')\n assert kUBT and kUBT.group(1) == 'Jane'\n assert kUBT.group('last') == 'Doe'\n assert kUBT.groupdict() == {'first': 'Jane', 'last': 'Doe'}",
"def HPKU(HMZy):\n return {mWFP: WyUl._add_gro... | [
"0.67118937",
"0.6418036",
"0.63727194",
"0.6140323",
"0.6072435",
"0.6059107",
"0.60408884",
"0.5874814",
"0.5849685",
"0.57636946",
"0.565911",
"0.56356704",
"0.56140214",
"0.5592278",
"0.5590369",
"0.5554852",
"0.55104136",
"0.54820687",
"0.5481045",
"0.54803526",
"0.54592... | 0.0 | -1 |
Sets the queue_name of this ListBatchesRequest. | def Q64Y(YKHO, Q64Y):
YKHO._queue_name = Q64Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxNh(YKHO, Q64Y):\n return J8uC.SBBreakpointName_SetQueueName(YKHO, Q64Y)",
"def WxNh(YKHO, Q64Y):\n return J8uC.SBBreakpoint_SetQueueName(YKHO, Q64Y)",
"def WxNh(YKHO, Q64Y):\n return J8uC.SBBreakpointLocation_SetQueueName(YKHO, Q64Y)",
"def cOug(YKHO, _9oW):\n YKHO.queueName = _9oW",
"def... | [
"0.7193779",
"0.71681494",
"0.7150971",
"0.70275414",
"0.5531536",
"0.55132955",
"0.54885453",
"0.53382087",
"0.5210319",
"0.5090372",
"0.50822955",
"0.50799847",
"0.5070144",
"0.5065693",
"0.5059723",
"0.50564027",
"0.50421286",
"0.5004533",
"0.49889535",
"0.4986943",
"0.497... | 0.69039726 | 4 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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.8043786 | 59 |
Gets the normalized answer token text given the token span. | def O6NN(vQBV: _SpanType, JVo9: _RawPredictionType, b0j5: tokenization.FullTokenizer) -> str:
Hl2l = b0j5.convert_ids_to_tokens(JVo9['long_token_ids'][vQBV[0]:vQBV[1] + 1])
return Nhuv.wordpiece_tokens_to_normalized_text(Hl2l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_57(s2mk, uvMl):\n yKcO, Os4s = (uvMl['start_token'], uvMl['end_token'])\n TK2h = ' '.join(s2mk[yKcO:Os4s])\n TK2h = TK2h.replace(' ,', ',').replace(' .', '.').replace(' %', '%')\n TK2h = TK2h.replace(' - ', '-').replace(' : ', ':').replace(' / ', '/')\n TK2h = TK2h.replace('( ', '(').replace('... | [
"0.7451343",
"0.71965426",
"0.67458737",
"0.6477569",
"0.60188395",
"0.5949143",
"0.58242524",
"0.581257",
"0.56848323",
"0.56372464",
"0.5634464",
"0.56222063",
"0.56192327",
"0.55998003",
"0.5571219",
"0.55477536",
"0.5528859",
"0.5524059",
"0.55226815",
"0.55050975",
"0.54... | 0.72706586 | 1 |
Returns a TileNet for unsupervised Tile2Vec with the specified number of input channels and feature dimension. | def stya(DYuh=5, PO4e=512, kuMI=None):
YIPF = [2, 2, 2, 2, 2]
return Y9l1(YIPF, in_channels=DYuh, z_dim=PO4e, sdm=kuMI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uu4m(YKHO, WKvO, q1NN):\n OOcW = ZylS.shape(WKvO)\n pfA5 = [OOcW[0], OOcW[1] * 2, OOcW[2] * 2, OOcW[3]]\n Ep8u = pfA5[0]\n H2v2 = pfA5[1]\n TVTK = pfA5[2]\n xMux = pfA5[3]\n kmDT = ZylS.to_int64([Ep8u, H2v2, TVTK, xMux])\n q1NN = tybd(q1NN, kmDT)\n n2Q1 = ZylS.to_int64(ZylS.range(xMu... | [
"0.57761836",
"0.5745428",
"0.5724444",
"0.5673884",
"0.5673287",
"0.5653541",
"0.5652051",
"0.56511337",
"0.5634401",
"0.5622491",
"0.5611539",
"0.5610448",
"0.55903697",
"0.55885154",
"0.55866766",
"0.558394",
"0.55683964",
"0.55683964",
"0.55683964",
"0.5566265",
"0.554874... | 0.6745972 | 0 |
Get the link type. | def FRul(YKHO, kT1P, kUBT):
if kUBT.group(kT1P + '_commit') is not None:
BWXx = kUBT.group(kT1P + '_commit')
mSc9 = YKHO.COMMIT
elif kUBT.group(kT1P + '_pull') is not None:
BWXx = kUBT.group(kT1P + '_pull')
mSc9 = YKHO.PULL
else:
BWXx = kUBT.group(kT1P + '_issue')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSc9(YKHO):\n return YKHO.data['link_type']",
"def vbXu(YKHO):\n return YKHO.Type",
"def z9hr(YKHO):\n return YKHO.data['link_type']",
"def XMkT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'linked_resource_type')",
"def XMkT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'linked_resource_ty... | [
"0.89123774",
"0.81805503",
"0.74355465",
"0.71236116",
"0.71236116",
"0.69329524",
"0.6864936",
"0.6739045",
"0.6732114",
"0.6728319",
"0.6708864",
"0.6698747",
"0.66957414",
"0.66825944",
"0.6629934",
"0.6595534",
"0.652466",
"0.652466",
"0.652466",
"0.6511066",
"0.6511066"... | 0.67399305 | 7 |
Fetch index idx image and labels from dataset. Perform transforms on image. | def OP2O(YKHO, or8S):
if YKHO.mode3d:
LNo8 = oyIN.load(Hy7s.path.join(YKHO.data_dir, YKHO.df.iloc[or8S, YKHO.name_col]))
LNo8 = LNo8.astype(oyIN.float32)
LNo8 = YKHO.transform(LNo8)
LNo8 = ht2j.from_numpy(LNo8).unsqueeze(0)
else:
rTBW = Hy7s.path.join(YKHO.data_dir, YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, or8S):\n LNo8, UXqs = YKHO.dataset[or8S]\n LNo8 = oyIN.array(LNo8)\n if YKHO.transforms is not None:\n LNo8 = YKHO.transforms(image=LNo8)['image']\n return (LNo8, UXqs)",
"def OP2O(YKHO, or8S):\n if ht2j.is_tensor(or8S):\n or8S = or8S.to_list()\n r8m5 = YKHO.labels_... | [
"0.7424323",
"0.72079897",
"0.71976584",
"0.7181814",
"0.71459156",
"0.71159726",
"0.71039706",
"0.7089706",
"0.7068038",
"0.7010228",
"0.7000586",
"0.6984372",
"0.69619197",
"0.69314915",
"0.69178456",
"0.6857508",
"0.6857508",
"0.6857508",
"0.6857507",
"0.6816535",
"0.67885... | 0.0 | -1 |
Computes and applies layer normalization. | def pOv4(YKHO, WKvO):
JBMS = ZylS.reduce_mean(WKvO, axis=[-1], keepdims=True)
I8JS = ZylS.reduce_mean(ZylS.square(WKvO - JBMS), axis=[-1], keepdims=True)
RIDU = (WKvO - JBMS) * ZylS.rsqrt(I8JS + YKHO.eps)
return RIDU * YKHO.scale + YKHO.bias | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n YKHO.x_train = (YKHO.x_train - YKHO.mean) / YKHO.std\n YKHO.x_test = (YKHO.x_test - YKHO.mean) / YKHO.std\n YKHO.mean = oyIN.mean(... | [
"0.7486087",
"0.72884214",
"0.7279897",
"0.7275846",
"0.7198196",
"0.71885234",
"0.71293133",
"0.7120388",
"0.7094958",
"0.70813274",
"0.7044576",
"0.70427334",
"0.7040496",
"0.7037194",
"0.6992902",
"0.69747585",
"0.6964388",
"0.6960688",
"0.6912993",
"0.69081736",
"0.689284... | 0.0 | -1 |
Indicates whether or not the achieved goal successfully achieved the desired goal. | def igqK(YKHO, Cubv, DImn):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igqK(YKHO, Cubv, DImn):\n raise NotImplementedError()",
"def Zq3b(YKHO) -> bool:\n raise NotImplementedError",
"def igqK(YKHO, Cubv, DImn):\n if YKHO.valid_move:\n Csk6 = YKHO.goal_distance(Cubv, DImn)\n return (Csk6 < YKHO.distance_threshold).astype(oyIN.float32)\n else:\n ... | [
"0.8698019",
"0.8085495",
"0.8007192",
"0.7791095",
"0.775512",
"0.7662946",
"0.7472496",
"0.7395899",
"0.73537076",
"0.7333465",
"0.71096385",
"0.7078631",
"0.70466006",
"0.70307565",
"0.7015813",
"0.70076865",
"0.6994723",
"0.6971657",
"0.69609016",
"0.6941723",
"0.6941723"... | 0.87024087 | 0 |
Scales a layer and returns a new, scaled SpriteLayer. | def NXpY(sQ8T, v1Ee, kII3):
if sQ8T.is_object_group:
return gEmA
gEmA = CeS_(sQ8T.layer_idx, sQ8T._resource_loader)
gEmA.tilewidth = sQ8T.tilewidth * v1Ee
gEmA.tileheight = sQ8T.tileheight * kII3
gEmA.position_x = sQ8T.position_x
gEmA.position_y = sQ8T.position_y
gEmA._level = sQ8T._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, GTZT, ngai=False):\n Hr_j = YKHO.current_scale * GTZT\n YKHO.image = a9eO.transform.scale(YKHO.orig_image, (int(YKHO.orig_size[0] * Hr_j), int(YKHO.orig_size[1] * Hr_j)))\n if ngai:\n THsq = YKHO.image.get_size()\n YKHO.x -= THsq[0] * (GTZT - 1) / 2\n YKHO.y -= THsq[1] ... | [
"0.6256051",
"0.6256051",
"0.61218244",
"0.6090402",
"0.6033662",
"0.6017793",
"0.6010653",
"0.59095466",
"0.5803341",
"0.57847494",
"0.5749223",
"0.5748062",
"0.5748062",
"0.5748062",
"0.5748062",
"0.5748062",
"0.57480556",
"0.57405764",
"0.57217234",
"0.57127416",
"0.566959... | 0.7952745 | 0 |
Remove multiple sprites at once. | def QGaH(YKHO, qP20):
for Jqc7 in qP20:
YKHO.remove_sprite(Jqc7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iF6f() -> None:\n pass",
"def kSdD(YKHO, *qP20):\n for Jqc7 in qP20:\n if Jqc7 in YKHO._sprites:\n YKHO._sprites.remove(Jqc7)\n Jqc7._group = None\n Jqc7._expire_static()\n Jqc7.on_remove.emit(YKHO)",
"def fFx9(YKHO):\n for KCHu in YKHO.sprites:\n... | [
"0.81961834",
"0.8194874",
"0.7705395",
"0.7705395",
"0.74679065",
"0.7388716",
"0.73861456",
"0.72530603",
"0.72242844",
"0.7129228",
"0.70851886",
"0.7066279",
"0.7045819",
"0.7045819",
"0.69984853",
"0.6811533",
"0.6769291",
"0.6763483",
"0.6672332",
"0.66023624",
"0.65735... | 0.85230434 | 0 |
Check if the given sprites is already in this layer. | def Ck9j(YKHO, Jqc7):
if Jqc7 in YKHO.sprites:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xc3U(YKHO, *qP20):\n for Jqc7 in qP20:\n if Jqc7 not in YKHO._sprites:\n return False\n return True",
"def xc3U(YKHO, *qP20):\n for Jqc7 in qP20:\n if isinstance(Jqc7, gYGL):\n return YKHO.has_internal(Jqc7)\n try:\n for Q5ei in Jqc7:\n ... | [
"0.82715243",
"0.7703886",
"0.7401709",
"0.7358615",
"0.6900274",
"0.6605677",
"0.6563155",
"0.6477957",
"0.64165",
"0.63927776",
"0.63423264",
"0.6330973",
"0.62708616",
"0.62542164",
"0.6241179",
"0.6206179",
"0.61764747",
"0.6157125",
"0.614492",
"0.6110671",
"0.6107224",
... | 0.7659953 | 2 |
Retrieve the current x paralax factor. | def W4Lt(YKHO):
return YKHO.paralax_factor_x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n return YKHO.prime_parameters[0]",
"def WKvO(YKHO):\n return YKHO.prime_parameters[0]",
"def nIKw(YKHO) -> int:\n return YKHO.__x",
"def nIKw(YKHO):\n return YKHO.x",
"def nIKw(YKHO):\n return YKHO.x",
"def vAgg(YKHO):\n return YKHO._x",
"def nIKw(YKHO):\n return Y... | [
"0.7224431",
"0.7224431",
"0.7129417",
"0.7040694",
"0.7038363",
"0.70346546",
"0.7032938",
"0.7024507",
"0.7024507",
"0.7013732",
"0.69982135",
"0.6992115",
"0.6974614",
"0.69404125",
"0.693977",
"0.6881563",
"0.68794614",
"0.68794614",
"0.6846963",
"0.6837499",
"0.6764038",... | 0.83577126 | 0 |
Retrieve the current y paralax factor. | def Ya4K(YKHO):
return YKHO.paralax_factor_y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i4e5(YKHO):\n return YKHO.yvar",
"def yDCK(YKHO):\n return YKHO.descale_y(YKHO.y)",
"def yDCK(YKHO):\n return YKHO.y",
"def yDCK(YKHO):\n return YKHO.__y",
"def yDCK(YKHO):\n return YKHO.y",
"def yDCK(YKHO):\n return YKHO._y",
"def yDCK(YKHO):\n return YKHO.y",
"def yDCK(YKHO... | [
"0.766823",
"0.7616744",
"0.75520754",
"0.75510406",
"0.74954647",
"0.74594027",
"0.7444667",
"0.7418311",
"0.7414412",
"0.7399721",
"0.73986375",
"0.73986375",
"0.7380594",
"0.734209",
"0.7318111",
"0.7318111",
"0.72901726",
"0.7243965",
"0.7222296",
"0.7222296",
"0.7222296"... | 0.8403289 | 0 |
Returns the sprites at the given screen positions or an empty list. The sprites are the same order as in the layers.sprites list. | def u7JX(YKHO, gEmA, SQcj, ulIK):
if gEmA.is_object_group:
pass
else:
lP8Q, jdlI = YKHO.get_world_pos(gEmA, SQcj, ulIK)
Mkmy = a9eO.Rect(lP8Q, jdlI, 1, 1)
_0VL = Mkmy.collidelistall(gEmA.sprites)
return [gEmA.sprites[or8S] for or8S in _0VL]
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NfeB(YKHO):\n return (Jqc7 for Jqc7 in YKHO._z_ordered_sprites if Jqc7.visible)",
"def UyJR(jNOo, gEmA, PpMO):\n qP20 = []\n H5ew = []\n for QzhK, qyH4 in jNOo:\n if qyH4 >= len(gEmA.content2D) or QzhK >= len(gEmA.content2D[qyH4]):\n H5ew.append(-1)\n continue\n ... | [
"0.6622848",
"0.6577294",
"0.65461904",
"0.6539475",
"0.6494889",
"0.6490431",
"0.6432228",
"0.61783284",
"0.61710167",
"0.60377103",
"0.6022783",
"0.59617764",
"0.5944584",
"0.59404224",
"0.5940023",
"0.5893603",
"0.5887766",
"0.58383954",
"0.58263516",
"0.5818654",
"0.58087... | 0.69548535 | 0 |
Get command line arguments | def rwTO():
wvEv = j1Jz.ArgumentParser(description='\n Parse opcodes for Risc-V intructions, output python data structure\n ')
wvEv.add_argument('--opcodes', action='store', dest='opcodes', help='opcode file')
wvEv.add_argument('--version', action='version', version='%(prog)s 0.1')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgwn(YKHO):\n return YKHO.argv",
"def BV7_():\n qIxc = {}\n for YRbF in range(len(HwRy.argv)):\n if HwRy.argv[YRbF].startswith('-') and YRbF + 1 < len(HwRy.argv):\n H5ew = HwRy.argv[YRbF][1:]\n YRbF += 1\n qIxc[H5ew] = HwRy.argv[YRbF]\n return qIxc",
"def... | [
"0.7951355",
"0.7823654",
"0.7767637",
"0.7748007",
"0.7703538",
"0.7682058",
"0.7602751",
"0.75961256",
"0.75666356",
"0.7566169",
"0.7537056",
"0.7513172",
"0.7454253",
"0.74497163",
"0.7433844",
"0.7416988",
"0.7415955",
"0.7401011",
"0.7396132",
"0.7385784",
"0.73758984",... | 0.0 | -1 |
Removes the first item of the list representing the Deque. Runtime of this method is linear, or O(n), as each item has to be shifted one position to the left when we remove the first item of the list. | def WvVJ(YKHO):
if YKHO.items:
return YKHO.items.pop(0)
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJiA(YKHO):\n raise 'DequeInterface.removeFirst is not implemented'",
"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... | [
"0.7953456",
"0.78688014",
"0.7547355",
"0.7440797",
"0.7379277",
"0.7368373",
"0.7363536",
"0.73503095",
"0.734065",
"0.7333063",
"0.73324126",
"0.73310477",
"0.73144805",
"0.7276534",
"0.725612",
"0.7212936",
"0.72096306",
"0.71924496",
"0.71739244",
"0.7157392",
"0.7152670... | 0.6992716 | 26 |
Removes the last item of the list representing the Deque. Runtime of this method is O(1) because this only removes the last item leaving the rest intact. | def LDrE(YKHO):
if YKHO.items:
return YKHO.items.pop()
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O40u(YKHO):\n raise 'DequeInterface.removeLast is not implemented'",
"def BIls(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ANfV = YKHO._data[YKHO._back]\n YKHO._data[YKHO._back] = None\n YKHO._size -= 1\n if YKHO._size > 0:\n YKHO._back = (YKHO._back - 1) % l... | [
"0.81925493",
"0.8076779",
"0.79103684",
"0.78853315",
"0.77720267",
"0.7669682",
"0.7546485",
"0.74478793",
"0.74396634",
"0.7432006",
"0.73800504",
"0.73756546",
"0.7374346",
"0.7360124",
"0.7349059",
"0.7339062",
"0.7336346",
"0.7333626",
"0.7309466",
"0.7293441",
"0.72539... | 0.0 | -1 |
Returns the first item of the list representing the Deque. Runtime of this method is O(1). | def vYJ5(YKHO):
if YKHO.items:
return YKHO.items[0]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.items[0]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise Exception('Queue is empty')\n return YKH... | [
"0.8248593",
"0.81239015",
"0.80939144",
"0.8082368",
"0.8049055",
"0.8045659",
"0.80305576",
"0.80136573",
"0.7985837",
"0.7965506",
"0.7918314",
"0.7918314",
"0.7918314",
"0.78922266",
"0.7860049",
"0.78261966",
"0.7790764",
"0.77841276",
"0.77620506",
"0.7738961",
"0.76798... | 0.7268129 | 52 |
Returns the last item of the list representing the Deque. Runtime of this method is O(1). | def N7mQ(YKHO):
if YKHO.items:
return YKHO.items[-1]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._back]",
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element",
"def EFwc(YKHO):\n if YKHO.is_empty():\n return None\n else... | [
"0.83315724",
"0.81775355",
"0.8131065",
"0.81010526",
"0.80623615",
"0.7921166",
"0.7886388",
"0.78686786",
"0.7773922",
"0.77204883",
"0.7674823",
"0.7643682",
"0.76350063",
"0.76002055",
"0.75369555",
"0.7535865",
"0.7525041",
"0.7517591",
"0.75044876",
"0.7498093",
"0.749... | 0.7179956 | 70 |
Method to return the lenght of the list representing the Deque. Runtime for this method is O(1) | def zNig(YKHO):
return len(YKHO.items) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return YKHO.size",
"def szAg(YKHO):\n return len(YKHO.deque)",
"def szAg(YKHO):\n with YKHO._lock:\n return len(YKHO._deque)",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n jvSB = YKHO.head\n UHFx = 0\n while jvSB != None:\n ... | [
"0.79045576",
"0.77980924",
"0.7737693",
"0.7636531",
"0.7574494",
"0.75524694",
"0.75488216",
"0.75395215",
"0.7538179",
"0.7533452",
"0.75312716",
"0.74946475",
"0.74814516",
"0.7478764",
"0.747251",
"0.74695164",
"0.74679494",
"0.7465517",
"0.7465517",
"0.7465517",
"0.7464... | 0.0 | -1 |
Method to check if the Deque's list is empty. Runtime for this method is O(1) | def FBfn(YKHO):
return YKHO.items == [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO) -> bool:\n return len(YKHO.que) == 0",
"def lsmZ(YKHO) -> bool:\n if len(YKHO.que) == 0:\n return True\n else:\n return False",
"def FBfn(YKHO):\n return len(YKHO._deque) == 0",
"def A4KR(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return YKHO.head i... | [
"0.82733256",
"0.8200094",
"0.8190413",
"0.81596464",
"0.8099507",
"0.8089004",
"0.80816907",
"0.8044421",
"0.8026819",
"0.8007936",
"0.7991695",
"0.79757726",
"0.7973865",
"0.7973865",
"0.7973865",
"0.7972959",
"0.79720825",
"0.796641",
"0.79663235",
"0.7956039",
"0.79447",
... | 0.0 | -1 |
Compute the sample covariance matrix of a 2D matrix. | def PFC2(E3D9):
ywwl = E3D9.shape[0]
P6bq = E3D9.mean(axis=0)
E3D9 = E3D9 - oyIN.kron(oyIN.ones((ywwl, 1)), P6bq)
Nq1b = oyIN.dot(E3D9.T, E3D9) / (ywwl - 1)
return Nq1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvHN(OwtC):\n return oyIN.cov(NkkI(OwtC))",
"def GvHN(WKvO, LVAh=None):\n if LVAh is None:\n LVAh = WKvO\n cDK5 = oyIN.shape(WKvO)[0]\n SppC = 1 / (cDK5 - 1) * (WKvO - WKvO.mean(axis=0)).T.dot(LVAh - LVAh.mean(axis=0))\n return oyIN.array(SppC, dtype=float)",
"def _IBo(vb7U):\n Sfq... | [
"0.8067705",
"0.79776484",
"0.78173965",
"0.76286244",
"0.7623828",
"0.75937486",
"0.75848913",
"0.74803686",
"0.73579514",
"0.73053813",
"0.7300474",
"0.7300474",
"0.7250206",
"0.7220542",
"0.7204296",
"0.71836025",
"0.7152119",
"0.71400416",
"0.7086947",
"0.7056154",
"0.703... | 0.73387617 | 9 |
Return the bridge whose identity digest is fp, or None if no such bridge exists. | def aXup(YKHO, ytgA):
for bGrB, bGrB, bGrB, fyuB in YKHO.subrings:
Fg_i = fyuB.getBridgeByID(ytgA)
if Fg_i is not None:
return Fg_i
return YKHO.bridgesByID.get(ytgA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9Lv(YKHO, Bnkd):\n YEnM = YKHO.dbstate.db.get_person_from_gramps_id(Bnkd)\n if YEnM:\n return YEnM.get_handle()\n else:\n return None",
"def v0tW(ytgA: str) -> h8nf[str]:\n r8hN = ZbWC.match('gs:\\\\/\\\\/.*?\\\\/(.*)', ytgA)\n if not r8hN:\n bo34.warning('Could not get t... | [
"0.5951202",
"0.56588894",
"0.55577576",
"0.5485449",
"0.54462004",
"0.5444242",
"0.53930765",
"0.5368458",
"0.5298375",
"0.5216194",
"0.5121853",
"0.50930685",
"0.50912184",
"0.5088446",
"0.50884426",
"0.5088319",
"0.50736827",
"0.5040295",
"0.49941543",
"0.49929008",
"0.498... | 0.75513566 | 0 |
Returns the total number of bridges in all ``rings``. | def szAg(YKHO):
wjRY = 0
for wDuC in YKHO.rings:
wjRY += len(wDuC)
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OKAc(YKHO, N9D1: dm.Mol):\n lRYc = N9D1.GetRingInfo()\n return lRYc.NumRings()",
"def elRu(YKHO, wDuC):\n MxSR = [fyuB for bGrB, fyuB in wDuC.filterRings.values()]\n return sum([len(fyuB) for fyuB in MxSR])",
"def NFLM(YKHO, N9D1: dm.Mol):\n Dz7f, bYSf, bGrB = z5SJ(N9D1)\n return len(bYSf... | [
"0.6775956",
"0.67111266",
"0.6614813",
"0.65547943",
"0.6409311",
"0.6409311",
"0.63371766",
"0.6302793",
"0.62953323",
"0.6199384",
"0.6193632",
"0.6182638",
"0.61801994",
"0.6172354",
"0.6140761",
"0.61303043",
"0.6066327",
"0.6058416",
"0.6046597",
"0.6044873",
"0.6037088... | 0.7368905 | 0 |
Insert a bridge into all appropriate subhashrings. For all subhashrings, the ``bridge`` will only be added iff it passes the filter functions for that subhashring. | def JPHp(YKHO, eV_n):
if not eV_n.flags.running:
G9jH.warn('Skipping hashring insertion for non-running bridge: %s' % eV_n)
return
d6pt = 0
G9jH.debug('Inserting %s into hashring...' % eV_n)
for ZKEL in YKHO.bridges[:]:
if eV_n.fingerprint == ZKEL.fingerprint:
YKHO.br... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, eV_n):\n for HRJ_, wEf2, bGrB, fyuB in YKHO.subrings:\n if HRJ_ == 'port':\n if wEf2 == eV_n.orPort:\n fyuB.insert(eV_n)\n else:\n assert HRJ_ == 'flag' and wEf2 == 'stable'\n if wEf2 == 'stable' and eV_n.flags.stable:\n ... | [
"0.7078047",
"0.6704238",
"0.6177779",
"0.61627483",
"0.604968",
"0.5936979",
"0.566862",
"0.5334855",
"0.5165833",
"0.5044124",
"0.49395838",
"0.48743132",
"0.48253733",
"0.47860676",
"0.47743735",
"0.4769084",
"0.47660708",
"0.47314146",
"0.46905246",
"0.4689576",
"0.464428... | 0.798093 | 0 |
Prepare a Flash message and redirect to USER_UNCONFIRMED_ENDPOINT | def SdBu():
bD7m = QePW.script_root + QePW.path
Dwep(bGrB("Voce deve confirmar seu email para acessar '%(url)s'.", url=bD7m), 'error')
OSYx = wk5E.user_manager
return vKnz(yC_e(OSYx.unconfirmed_email_endpoint)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gRek():\n Ol8d = QePW.args.get('message')\n P1dF = QePW.args.get('error')\n if Ol8d:\n Dwep(uRlK.unquote(Ol8d))\n if P1dF:\n Dwep(uRlK.unquote(P1dF), 'error')\n if Ol8d or P1dF:\n return vKnz(nKyW(gRek.__name__))\n return TvZl('flash_message.html')",
"def ywXa():\n G... | [
"0.71251154",
"0.6724602",
"0.6591263",
"0.64676535",
"0.6376679",
"0.6305511",
"0.61937886",
"0.61411124",
"0.60215694",
"0.59611464",
"0.59595215",
"0.5950177",
"0.59479666",
"0.59289086",
"0.59254515",
"0.5908466",
"0.5885807",
"0.5881322",
"0.5871519",
"0.5871171",
"0.584... | 0.6469443 | 3 |
Prepare a Flash message and redirect to USER_UNAUTHENTICATED_ENDPOINT | def w1GZ():
OSYx = wk5E.user_manager
bD7m = QePW.url
Dwep(bGrB("Voce deve estar logado para acessar '%(url)s'.", url=bD7m), 'error')
kp4r = OSYx.make_safe_url_function(bD7m)
return vKnz(yC_e(OSYx.unauthenticated_endpoint) + '?next=' + NCC9(kp4r)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8lB():\n return vKnz(nKyW('user.user_login'))",
"def p_Hn():\n bD7m = QePW.script_root + QePW.path\n Dwep(bGrB(\"Voce nao tem permissao para acessar '%(url)s'.\", url=bD7m), 'error')\n OSYx = wk5E.user_manager\n return vKnz(yC_e(OSYx.unauthorized_endpoint))",
"def p_Hn():\n Dwep('You mus... | [
"0.7037943",
"0.6973886",
"0.69006735",
"0.68749845",
"0.68247116",
"0.68247116",
"0.6816619",
"0.68160415",
"0.68160415",
"0.68010855",
"0.6789605",
"0.6696479",
"0.66224045",
"0.65231365",
"0.64703244",
"0.64368594",
"0.63214165",
"0.628904",
"0.6280793",
"0.62463325",
"0.6... | 0.7167213 | 0 |