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 |
|---|---|---|---|---|---|---|
small function to break a list into chunks, this is used for breaking larger requests up to fall under the cache limit | def RM0w(YKHO, CXYT, exwG):
for YRbF in range(0, len(CXYT), exwG):
yield CXYT[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyNP(YKHO, list, ztRo=20):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def yOAJ(qnba, ztRo):\n for YRbF in range(0, len(qnba), ztRo):\n yield qnba[YRbF:YRbF + ztRo]",
"def eHxA(qnba: list, ztRo: int):\n for YRbF in range(0, len(qnba), ztRo):\n yi... | [
"0.8185757",
"0.8012714",
"0.795608",
"0.78886855",
"0.7817693",
"0.7794475",
"0.76965046",
"0.7674729",
"0.7659578",
"0.7638508",
"0.75970286",
"0.7567129",
"0.75670785",
"0.75540185",
"0.7538539",
"0.75275475",
"0.75240064",
"0.75230515",
"0.7510356",
"0.75075895",
"0.74779... | 0.0 | -1 |
Reduce the values in the dictionary from all processes so that process with rank 0 has the reduced results. | def kRM7(chwN, S8vG=True):
aDYX = OZRt()
if aDYX < 2:
return chwN
with ht2j.no_grad():
ZWCE = []
hkxX = []
for G1Hx in sorted(chwN.keys()):
ZWCE.append(G1Hx)
hkxX.append(chwN[G1Hx])
hkxX = ht2j.stack(hkxX, dim=0)
pImw.reduce(hkxX, dst=0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRQN(eQSh, IcUa):\n for geyT in eQSh:\n for XP5J in IcUa:\n if not XP5J in geyT[1].keys():\n geyT[1][XP5J] = 0",
"def TZc5(MHTH, uRP3, YUlJ, t_OJ, yy9U, eJmI=TgYk()):\n qic0 = {}\n for mWFP, NBjn in MHTH.items():\n bXnn = _F3A(uRP3, YUlJ, qic0, t_OJ, yy9U, eJm... | [
"0.69080126",
"0.5876759",
"0.5788534",
"0.574819",
"0.567683",
"0.567683",
"0.567683",
"0.55920565",
"0.5590285",
"0.55811584",
"0.55624735",
"0.5556007",
"0.55146635",
"0.5499127",
"0.548635",
"0.5475088",
"0.54397017",
"0.5385325",
"0.5353026",
"0.53160655",
"0.53124124",
... | 0.5630119 | 7 |
Base params for local1d attention. | def qN2y():
QjBU = OIm0()
QjBU.layer_preprocess_sequence = 'n'
QjBU.layer_postprocess_sequence = 'da'
QjBU.learning_rate = 0.2
QjBU.layer_prepostprocess_dropout = 0.1
QjBU.learning_rate_warmup_steps = 12000
QjBU.filter_size = 2048
QjBU.num_encoder_layers = 4
QjBU.num_decoder_layers =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO):\n y8rd = super(QXON, YKHO).get_params()\n y8rd.update(n_units=YKHO.n_units, activation=YKHO.activation)\n return y8rd",
"def Noje():\n QjBU = oCqI.default_hparams()\n QjBU.update({'name': 'conv1d_classifier', 'num_classes': 2, 'logit_layer_kwargs': {'use_bias': False}})\n return... | [
"0.6251027",
"0.6155566",
"0.6144334",
"0.61331064",
"0.61331064",
"0.6102299",
"0.60940546",
"0.60800016",
"0.6047299",
"0.6035827",
"0.6008476",
"0.6006752",
"0.5971517",
"0.59700644",
"0.5968448",
"0.5967759",
"0.5967759",
"0.5962878",
"0.59613466",
"0.5953899",
"0.5943405... | 0.0 | -1 |
Return string of model discovered by SINDy in humanreadable way | def eea7(YKHO):
FN88 = YKHO.get_coefficients()
Crrw = YKHO.get_labels()
LnWz = oyIN.nonzero(FN88)[0]
Noim = ['({:3.3f}*{})'.format(FN88[YRbF], Crrw[YRbF]) for YRbF in LnWz]
Noim = ['({:f}*{})'.format(FN88[YRbF], Crrw[YRbF]) for YRbF in LnWz]
RKYb = ' + '.join(Noim)
if len(RKYb) == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(next(iter(YKHO.model_dict.values()))).split('(')[0]",
"def C3ST(YKHO):\n KCHu = YKHO.run('model')\n KCHu = KCHu.split('\\n')\n return KCHu[1]",
"def wHJl(YKHO):\n KCHu = '\\nModel name: ' + str(YKHO.name) + '\\n'\n KCHu += ' n. of words: ' + str(len(YKHO.words)... | [
"0.7274332",
"0.69643456",
"0.68531275",
"0.6849576",
"0.67983294",
"0.67447734",
"0.67364264",
"0.6723953",
"0.6701342",
"0.6700361",
"0.6674184",
"0.66662526",
"0.6564444",
"0.656097",
"0.6475217",
"0.6463764",
"0.6448455",
"0.64229476",
"0.64193213",
"0.6416433",
"0.641275... | 0.0 | -1 |
Checks if the member is able to use admin commands. This can be an Admin, Bot owner, or Server owner. | async def is_admin(mS46: discord.Member):
if v8VP(mS46) or Ff43(mS46):
return True
async with await NCls.Session.new() as cb_Q:
if await dp9S.get_member_is_admin(cb_Q, mS46.guild.id, mS46.id):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1():\n\n async def predicate(OaeV):\n if type(OaeV.channel) is ZOrr.DMChannel:\n return False\n if await OaeV.bot.is_owner(OaeV.author):\n return True\n elif OaeV.author is OaeV.guild.owner:\n return True\n Wswm = OaeV.guild.id\n CBIr = ... | [
"0.7993424",
"0.79221153",
"0.78555834",
"0.7696493",
"0.76369476",
"0.7636085",
"0.7577134",
"0.7545941",
"0.7461879",
"0.74553096",
"0.74480283",
"0.73650074",
"0.73460937",
"0.7334003",
"0.73337895",
"0.73238087",
"0.7282875",
"0.7229357",
"0.72284716",
"0.7222266",
"0.720... | 0.7913802 | 2 |
Return a sequence of accented characters found in the passed in lowercased text string | def BzkO(l5Ny):
return [hcXw for hcXw in l5Ny.lower() if ord(hcXw) in range(128, 592)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BzkO(l5Ny):\n bg0R = []\n for YRbF in range(len(l5Ny)):\n hcXw = zVCt.normalize('NFD', l5Ny[YRbF]).encode('ascii', 'ignore').decode('utf-8')\n if hcXw.lower() == l5Ny[YRbF].lower():\n continue\n else:\n bg0R.append(l5Ny[YRbF].lower())\n return bg0R",
"def h... | [
"0.7766186",
"0.7339258",
"0.72343045",
"0.67617947",
"0.672554",
"0.6645244",
"0.65187365",
"0.6497577",
"0.6487903",
"0.6487903",
"0.6473331",
"0.6468547",
"0.6413638",
"0.6398453",
"0.63940156",
"0.63940156",
"0.6370674",
"0.63570195",
"0.63366026",
"0.63319826",
"0.632555... | 0.7551264 | 1 |
Constructs a Rational. Takes a string like '3/2' or '1.5', another Rational instance, a numerator/denominator pair, or a float. Examples >>> Fraction(10, 8) Fraction(5, 4) >>> Fraction(Fraction(1, 7), 5) Fraction(1, 35) >>> Fraction(Fraction(1, 7), Fraction(2, 3)) Fraction(3, 14) >>> Fraction('314') Fraction(314, 1) >>... | def fwuD(Emd4, M6pt=0, UUZ1=None, *, jnV4=True):
YKHO = super(kteF, Emd4).__new__(Emd4)
if UUZ1 is None:
if type(M6pt) is int:
YKHO._numerator = M6pt
YKHO._denominator = 1
return YKHO
elif isinstance(M6pt, mSrU.Rational):
YKHO._numerator = M6pt.num... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RdfN(Emd4, SvX7: typing.Any, TDw3: str='/'):\n if hasattr(SvX7, 'format'):\n return Emd4(*SvX7.split(TDw3))\n elif hasattr(SvX7, 'nu'):\n return SvX7\n else:\n raise RuntimeError(f\"Couldn't identify {SvX7} of type {type(SvX7)}\")",
"def g9_P(BWXx):\n try:\n return kte... | [
"0.7106166",
"0.6909293",
"0.67566675",
"0.6678804",
"0.6594854",
"0.654312",
"0.64191705",
"0.627145",
"0.62082386",
"0.6202882",
"0.6150228",
"0.6003981",
"0.59698147",
"0.59672475",
"0.59518355",
"0.59218216",
"0.59149134",
"0.5894434",
"0.5868161",
"0.58423966",
"0.581730... | 0.7031801 | 1 |
Converts a finite Decimal instance to a rational number, exactly. | def zIcT(Emd4, iSjc):
from decimal import Decimal
if isinstance(iSjc, mSrU.Integral):
iSjc = Decimal(int(iSjc))
elif not isinstance(iSjc, Decimal):
raise TypeError('%s.from_decimal() only takes Decimals, not %r (%s)' % (Emd4.__name__, iSjc, type(iSjc).__name__))
return Emd4(*iSjc.as_inte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g9_P(BWXx):\n try:\n return kteF(str(BWXx))\n except ValueError:\n print(repr(BWXx) + ' is not a Rational number')",
"def dl1H(*qIxc, **YSA3):\n if dl1H.impl is None:\n dl1H.impl = Hruk()\n return dl1H.impl(*qIxc, **YSA3)",
"def yBEd(BWXx):\n BWXx = Wuzo(BWXx)\n retur... | [
"0.66397196",
"0.62859976",
"0.6270108",
"0.6148602",
"0.61075133",
"0.6018144",
"0.60043377",
"0.5904672",
"0.5902811",
"0.58873266",
"0.5855073",
"0.5852404",
"0.5841864",
"0.58055925",
"0.5798258",
"0.5776747",
"0.57518953",
"0.57467675",
"0.5735418",
"0.5734903",
"0.57349... | 0.5151033 | 76 |
joins a list item into a comma separated string | def gzes(list):
KCHu = ''
for LihS in list:
KCHu += LihS + ','
return KCHu[:-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tf3F(vGaq):\n vIwR = ''\n for ZfUD in vGaq:\n vIwR += str(ZfUD) + ','\n return vIwR[:-1]",
"def JbwW(yv6U, W41k=','):\n return W41k.join(yv6U)",
"def kRAs(ybN4):\n return ','.join(ybN4)",
"def YYDj(DumB):\n if len(DumB) == 1:\n return DumB[0]\n if len(DumB) == 2:\n ... | [
"0.7952",
"0.7864674",
"0.7780057",
"0.76502305",
"0.75742596",
"0.7550261",
"0.7511883",
"0.7511883",
"0.74785143",
"0.7410501",
"0.73853207",
"0.7357882",
"0.7322969",
"0.7232183",
"0.7232183",
"0.7203123",
"0.7165778",
"0.7163439",
"0.71145606",
"0.7111166",
"0.7092333",
... | 0.79711026 | 0 |
Copy parameters from the better model and the hyperparameters and running averages from the corresponding optimizer. | def xB98(YKHO, MEj0, yfaS, IA6P=[1.2, 0.8]):
wOkm = MEj0.model
ncmK = wOkm.get_weights()
YKHO.model.set_weights(ncmK)
Jrbc = MEj0.model.optimizer
Lwm5 = Jrbc.get_config()
for uTVR in yfaS:
jT0y = oyIN.random.choice(IA6P)
Lwm5[uTVR] *= jT0y
YKHO.optimizer = YKHO.optimizer.from... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rrx3(YKHO, qtWj):\n YKHO.forward()\n YKHO.set_requires_grad([YKHO.netD_A, YKHO.netD_B], False)\n YKHO.optimizer_G.zero_grad()\n YKHO.backward_G()\n YKHO.optimizer_G.step()\n YKHO.set_requires_grad([YKHO.netD_A, YKHO.netD_B], True)\n YKHO.optimizer_D.zero_grad()\n YKHO.backward_D()\n ... | [
"0.69758236",
"0.69758236",
"0.692149",
"0.67552257",
"0.674466",
"0.6738948",
"0.67368126",
"0.67333174",
"0.67297554",
"0.6719073",
"0.66552544",
"0.65974534",
"0.65433055",
"0.65241176",
"0.65231764",
"0.6519198",
"0.65155715",
"0.650626",
"0.6480659",
"0.6474291",
"0.6466... | 0.6851406 | 3 |
Generates a random password, default length 16 | def NMoC(YKHO, u54L=16):
iHjh = ''.join((FXSn.choice(vIwR.ascii_uppercase + vIwR.punctuation + vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(u54L)))
jTXt = {'password': iHjh}
return pz3A(jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NlX3():\n gLiZ = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n zNig = tuKI.randint(6, 20)\n jTXt = ''.join((tuKI.choice(gLiZ) for bseI in range(zNig)))\n return jTXt",
"def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))",
"def ENfd(len=12):\n imp... | [
"0.8752972",
"0.8718887",
"0.86842847",
"0.86398405",
"0.86199075",
"0.8619489",
"0.84582764",
"0.84476566",
"0.8431195",
"0.84302557",
"0.84246045",
"0.8408279",
"0.8365678",
"0.8310728",
"0.83033556",
"0.8285012",
"0.82807845",
"0.8272811",
"0.8268229",
"0.8264441",
"0.8252... | 0.0 | -1 |
Return the private token used for authentication. | def M0yI(YKHO):
return JhTV(YKHO.account.data['private_token']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNTt():\n if Oa1e.current_user.is_anonymous or Oa1e.token_used:\n return E_WW('Invalid credentials')\n return pz3A({'token': Oa1e.current_user.generate_auth_token(expiration=3600).decode('utf-8'), 'expiration': 3600})",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def gNTt():\n ... | [
"0.76306194",
"0.75964075",
"0.74495065",
"0.7392457",
"0.7392457",
"0.7392457",
"0.7392457",
"0.73826104",
"0.7279494",
"0.7261085",
"0.72598857",
"0.72485566",
"0.7188023",
"0.71834767",
"0.71170765",
"0.7103217",
"0.70911765",
"0.70862335",
"0.7084717",
"0.7082275",
"0.705... | 0.8268324 | 0 |
converts list of strings (where each char is an element) into array of integers 0|1 array means list of rows where each row contains list of elements 0|1 | def To1I(EmUK):
E30Q = []
for rdlD in EmUK:
E30Q.append(tuple(map(int, tuple(rdlD))))
return E30Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dXiS(hkWs):\n IjcO = []\n rdlD = 0\n for KCHu in hkWs:\n IjcO.append(WtaB(KCHu.split(' ')))\n return IjcO",
"def i3j9(yv6U):\n ycBG = yv6U[1:-1].split(',')\n return [int(YRbF) for YRbF in ycBG]",
"def YSmH(xpKR):\n AObu = {'.': 1, '!': 2, '?': 3, '^': 4, ':': 5, ';': 6, '(': 7, ... | [
"0.7932251",
"0.7454378",
"0.7265016",
"0.7084606",
"0.7030897",
"0.69394475",
"0.683924",
"0.68249",
"0.68242836",
"0.67651767",
"0.6765067",
"0.67640704",
"0.65586555",
"0.6553889",
"0.6514036",
"0.65047365",
"0.6464693",
"0.64552164",
"0.64527875",
"0.6433805",
"0.64136416... | 0.0 | -1 |
Initialise the Schedules class instance. | def FIMM(YKHO, CNw8, MV0m=None):
from .commcell import Commcell
from .client import Client
from .agent import Agent
from .backupset import Backupset
from .subclient import Subclient
YKHO.class_object = CNw8
YKHO._repr_str = ''
if isinstance(CNw8, Commcell):
YKHO._commcell_object ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QHT7(YKHO):\n _Fei = TWTZ.cfg.schedule\n b6Gq.every(_Fei.systemMonitor.interval).minutes.at(_Fei.systemMonitor.time).do(YKHO.systemMonitor)\n b6Gq.every(_Fei.stationID.interval).hours.at(_Fei.stationID.time).do(YKHO.ID)\n b6Gq.every(_Fei.mixerDigest.interval).minutes.at(_Fei.mixerDigest.time).do(YK... | [
"0.75378054",
"0.7266399",
"0.7040962",
"0.68581784",
"0.6824671",
"0.6814078",
"0.6802412",
"0.6798577",
"0.6795902",
"0.6727426",
"0.66600144",
"0.665247",
"0.664616",
"0.66104484",
"0.659205",
"0.64501417",
"0.6426902",
"0.64113015",
"0.63968986",
"0.639388",
"0.6384506",
... | 0.0 | -1 |
Representation string for the instance of the Schedules class. | def wHJl(YKHO):
return 'Schedules class instance for {0}'.format(YKHO._repr_str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return repr(YKHO.__schedule)",
"def zAg0(YKHO):\n if YKHO.schedules:\n dbZk = '{:^5}\\t{:^20}\\n\\n'.format('S. No.', 'Schedule')\n for d6pt, b6Gq in enumerate(YKHO.schedules):\n AgAX = '{:^5}\\t{:20}\\n'.format(d6pt + 1, b6Gq)\n dbZk += AgAX\n else:... | [
"0.80047274",
"0.7711773",
"0.7085583",
"0.70460093",
"0.6940012",
"0.69240683",
"0.6903715",
"0.68982834",
"0.6882095",
"0.6876811",
"0.6859972",
"0.6858221",
"0.682236",
"0.68177944",
"0.6797556",
"0.67961186",
"0.6794827",
"0.67808014",
"0.67798656",
"0.67779213",
"0.67734... | 0.8337469 | 0 |
Gets the schedule id from the provided inputs. | def s57Z(YKHO, s2nd=None, W5nB=None, _TKD=None):
if not _TKD and (not s2nd) and (not W5nB):
raise pDrJ('Schedules', '102', 'Either Schedule Name or Schedule Id is needed')
if s2nd and (not isinstance(s2nd, exCv)):
raise pDrJ('Schedules', '102')
if W5nB and (not isinstance(W5nB, int)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s57Z(YKHO):\n mHy5 = sVD8(YKHO.class_object)\n return mHy5.get(YKHO.schedule_name).schedule_id",
"def W5nB(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'schedule_id')",
"def sFKq(YKHO, s2nd):\n W5nB = None\n pB3N = {}\n bD7m = '{url}/schedules'.format(url=YKHO.url)\n pB3N['query'] = s2n... | [
"0.70473975",
"0.6900582",
"0.6699407",
"0.65632373",
"0.6444245",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
"0.6073231",
... | 0.6765212 | 2 |
Returns a schedule object of the specified schedule name. | def NMoC(YKHO, s2nd=None, W5nB=None, _TKD=None):
W5nB = YKHO._get_schedule_id(s2nd, W5nB, _TKD)
if W5nB:
return HwIj(YKHO.class_object, schedule_id=W5nB, task_id=YKHO.schedules[W5nB]['task_id'])
raise pDrJ('Schedules', '105') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GDCc(YKHO, mWFP):\n return YKHO.api_newsletter_schedule_get(name=mWFP)",
"def egIL(WRct):\n return Cb3W.get_schedule(WRct)",
"def sFKq(YKHO, s2nd):\n W5nB = None\n pB3N = {}\n bD7m = '{url}/schedules'.format(url=YKHO.url)\n pB3N['query'] = s2nd\n Mkmy = G4JS.get(bD7m, headers=YKHO.head... | [
"0.708213",
"0.7026091",
"0.6977198",
"0.66784614",
"0.6522049",
"0.6475105",
"0.6469413",
"0.6347413",
"0.6319504",
"0.6265372",
"0.6263309",
"0.61735904",
"0.6136726",
"0.6114624",
"0.6095096",
"0.60890675",
"0.60228634",
"0.6022746",
"0.5997438",
"0.5990198",
"0.5990198",
... | 0.77679884 | 0 |
Initialise the Schedule class instance. | def FIMM(YKHO, CNw8, s2nd=None, W5nB=None, _TKD=None):
from .commcell import Commcell
YKHO.class_object = CNw8
if isinstance(CNw8, Commcell):
YKHO._commcell_object = CNw8
else:
YKHO._commcell_object = CNw8._commcell_object
YKHO.schedule_name = ''
if not s2nd and (not W5nB):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, b6Gq: str):\n qe4Y.set(Ro_8, 'schedule', b6Gq)",
"def QHT7(YKHO):\n _Fei = TWTZ.cfg.schedule\n b6Gq.every(_Fei.systemMonitor.interval).minutes.at(_Fei.systemMonitor.time).do(YKHO.systemMonitor)\n b6Gq.every(_Fei.stationID.interval).hours.at(_Fei.stationID.time).do(YKHO.ID)\n b6Gq... | [
"0.7647202",
"0.76253676",
"0.7138707",
"0.6979513",
"0.6956427",
"0.69136745",
"0.6885767",
"0.679353",
"0.6775836",
"0.6724491",
"0.671296",
"0.66681564",
"0.66545075",
"0.6612829",
"0.66058785",
"0.65392923",
"0.6518503",
"0.64848024",
"0.6422932",
"0.6416698",
"0.6416011"... | 0.653302 | 16 |
gets the start date of the schedule | def p_2P(YKHO):
return z8c6._time_converter(YKHO._pattern['active_start_date'], '%m/%d/%Y', False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeN0(YKHO) -> qe4Y.Input['TransferJobScheduleScheduleStartDateArgs']:\n return qe4Y.get(YKHO, 'schedule_start_date')",
"def nUNa(YKHO):\n return",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nU... | [
"0.81186265",
"0.7872558",
"0.75937706",
"0.75937706",
"0.75937706",
"0.75937706",
"0.75513434",
"0.7544816",
"0.75319695",
"0.7442564",
"0.73332477",
"0.7318048",
"0.7295466",
"0.72794807",
"0.7231993",
"0.7230258",
"0.7220217",
"0.7220217",
"0.7220217",
"0.7220217",
"0.7220... | 0.69050884 | 44 |
sets the start date of the schedule | def p_2P(YKHO, p_2P):
KWm2 = dict()
KWm2['freq_type'] = YKHO.schedule_freq_type
KWm2['active_start_date'] = p_2P
mlr1 = z8c6(YKHO._pattern)
YKHO._pattern = mlr1.create_schedule_pattern(KWm2)
YKHO._modify_task_properties() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeN0(YKHO, LeN0):\n YKHO._schedule_start_date = LeN0",
"def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv",
"def YFxH(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def E1Vg(YKHO, EexH):\n YKHO.__start_date = EexH",
"def kepv(YKHO, kepv):\n ... | [
"0.8352862",
"0.8028641",
"0.7961692",
"0.79126894",
"0.77475363",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
"0.76950556",
... | 0.6341456 | 88 |
gets the start time of the schedule | def s0DY(YKHO):
return z8c6._time_converter(YKHO._pattern['active_start_time'], '%H:%M', False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSV8(YKHO):\n return YKHO.start_time",
"def SWox(YKHO):\n return YKHO.time_list[0]",
"def fMcL(YKHO):\n return YKHO._time_schedule_begin",
"def SWox(YKHO):\n return YKHO.time_range()[0]",
"def jSV8(YKHO):\n return YKHO.start",
"def jSV8(YKHO):\n return YKHO.start_time",
"def SWox(... | [
"0.8116648",
"0.8001804",
"0.79410946",
"0.7923942",
"0.7895826",
"0.78543586",
"0.7805839",
"0.7800958",
"0.7800958",
"0.7788144",
"0.7787822",
"0.7764192",
"0.77498835",
"0.77498835",
"0.7737662",
"0.7737662",
"0.7698376",
"0.7693181",
"0.7673185",
"0.7673185",
"0.7666812",... | 0.0 | -1 |
gets the end date of the schedule if present | def xR1s(YKHO):
if 'active_end_date' in YKHO._pattern:
if YKHO._pattern['active_end_date']:
return z8c6._time_converter(YKHO._pattern['active_end_date'], '%m/%d/%Y', False)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_6u(YKHO) -> h8nf[qe4Y.Input['TransferJobScheduleScheduleEndDateArgs']]:\n return qe4Y.get(YKHO, 'schedule_end_date')",
"def vErB(YKHO, b6Gq: IUSchedule) -> qcWV:\n iXC1 = YKHO.find_last_run(b6Gq)\n if iXC1 is not None:\n return iXC1.end_time\n return None",
"def mjdP(YKHO):\n return... | [
"0.7908358",
"0.76336634",
"0.76225734",
"0.74818367",
"0.74818367",
"0.74818367",
"0.74818367",
"0.7440804",
"0.74188596",
"0.73664564",
"0.7340845",
"0.72566277",
"0.7168251",
"0.7144109",
"0.7144109",
"0.71251875",
"0.70267355",
"0.70107055",
"0.70107055",
"0.70107055",
"0... | 0.68180734 | 29 |
sets the end date for the schedule | def xR1s(YKHO, p_2P):
KWm2 = dict()
KWm2['freq_type'] = YKHO.schedule_freq_type
KWm2['active_end_date'] = p_2P
mlr1 = z8c6(YKHO._pattern)
YKHO._pattern = mlr1.create_schedule_pattern(KWm2)
YKHO._modify_task_properties() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_6u(YKHO, j_6u):\n YKHO._schedule_end_date = j_6u",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end... | [
"0.8395571",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.75787646",
"0.7553393",
"0.7519473",
"0.7519473",
"0.7519473",
"0.7318999",
"0.71802986",
... | 0.61542463 | 89 |
sets the end date for the schedule | def qRvI(YKHO, qRvI):
KWm2 = dict()
KWm2['freq_type'] = YKHO.schedule_freq_type
KWm2['end_after'] = qRvI
mlr1 = z8c6(YKHO._pattern)
YKHO._pattern = mlr1.create_schedule_pattern(KWm2)
YKHO._modify_task_properties() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_6u(YKHO, j_6u):\n YKHO._schedule_end_date = j_6u",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end... | [
"0.8395571",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.7635469",
"0.75787646",
"0.7553393",
"0.7519473",
"0.7519473",
"0.7519473",
"0.7318999",
"0.71802986",
... | 0.6171544 | 87 |
Initialises a driver of the webbrowser, make sure you have the webdriver installed and set on path | def lGWL(YKHO, zlwC):
if zlwC:
xAU6 = lE6K()
xAU6.add_argument('--headless')
YKHO.driver = cSpz.Chrome(options=xAU6)
else:
YKHO.driver = cSpz.Chrome()
try:
YKHO.driver.get(YKHO.url)
except:
print('Internet Disconnected')
YKHO._right_clicking() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlk0(YKHO):\n YKHO.driver = cSpz.Chrome(YKHO.driver_path, chrome_options=YKHO.chop)",
"def uAcP():\n uM9E = {'executable_path': 'chromedriver.exe'}\n return TWLF('chrome', **uM9E, headless=True)",
"def DbxN():\n E_qD = cSpz.Firefox()\n return E_qD",
"def ER9N(YKHO):\n if Hy7s.name == 'n... | [
"0.7919344",
"0.78720546",
"0.77178097",
"0.7650219",
"0.75989985",
"0.7564943",
"0.7412998",
"0.7349842",
"0.73115635",
"0.73039937",
"0.72408324",
"0.71861243",
"0.7111748",
"0.71001345",
"0.7098275",
"0.7077542",
"0.70753044",
"0.70459086",
"0.7036315",
"0.7003741",
"0.700... | 0.6575575 | 61 |
Get ROI center of mass. Get back coordinate in img space and in coordinate space. Also actual center of mass. | def Omw_(K4Ne, onlM):
if type(K4Ne) is str:
VXjJ = j4hm.load(K4Ne)
else:
VXjJ = K4Ne
nPrm = VXjJ.get_data()
nPrm = yHIf(nPrm)
XpMX = nPrm.copy()
fnXU = V2fX.center_of_mass(oyIN.abs(XpMX))
RAe9, k0tH, Kp3n = fnXU[:3]
VZYf = oyIN.asarray(Pj0m(RAe9, k0tH, Kp3n, VXjJ.get_affi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fkpg(YKHO):\n from scipy import ndimage\n return ndimage.measurements.center_of_mass(YKHO.calib)[0]",
"def _3XM(YKHO):\n KQjT = _SU4 = 0\n for e3Fk in YKHO.pixels:\n KQjT += e3Fk[0]\n _SU4 += e3Fk[1]\n return (KQjT / len(YKHO.pixels), _SU4 / len(YKHO.pixels))",
"def OP10(nPrm):... | [
"0.77704996",
"0.7681856",
"0.7540526",
"0.73921543",
"0.7289205",
"0.72216815",
"0.71917677",
"0.71917677",
"0.715706",
"0.709373",
"0.70934415",
"0.70901734",
"0.708797",
"0.70549357",
"0.7048334",
"0.7034282",
"0.6972745",
"0.69680905",
"0.6952124",
"0.6918406",
"0.6909416... | 0.7268058 | 5 |
Return the Mongo class. | def fwuD(dSmw, mWFP, gitN, ZYWN):
ZYWN['_connection'] = None
if ZYWN.get('config_connection_cls', Ta8D) is Ta8D:
XemB = ZYWN.get('config_replica', Ta8D)
if XemB and hasattr(XemB, '__get__'):
try:
XemB = XemB.__get__(None, None)
except:
rais... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JVsJ():\n if 'mongo_connection_client' not in Oa1e:\n eCxz()\n return Oa1e.mongo_connection_client",
"def NMoC():\n return BFCm()",
"def iGQX(Emd4):\n if Emd4.__mongodb_connection is None:\n from pymongo import MongoClient\n Emd4.__mongodb_connection = MongoClient(host=gCuF... | [
"0.7057924",
"0.70097446",
"0.70011365",
"0.6835183",
"0.67344856",
"0.6722252",
"0.6708536",
"0.66925377",
"0.6649681",
"0.6567589",
"0.6558973",
"0.65578187",
"0.6553714",
"0.654737",
"0.65213025",
"0.6520683",
"0.64695126",
"0.64244556",
"0.6416336",
"0.64132124",
"0.63843... | 0.0 | -1 |
Test transact_asset raises for incorrect time Test transact_asset raises for transaction total cost exceeding total cash Test correct total_cash and total_securities_value for correct transaction (commission etc), correct portfolio event and correct time update | def Tc5H():
G39W = rLdf.Timestamp('2017-10-05 08:00:00', tz=FXGE.UTC)
ucbN = rLdf.Timestamp('2017-10-04 08:00:00', tz=FXGE.UTC)
Wzaw = rLdf.Timestamp('2017-10-06 08:00:00', tz=FXGE.UTC)
CkYX = rLdf.Timestamp('2017-10-07 08:00:00', tz=FXGE.UTC)
bIwZ = afQN(G39W)
IbHI = u_uS('Acme Inc.', 'EQ:AAA',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def noMv():\n G39W = rLdf.Timestamp('2017-10-05 08:00:00', tz=FXGE.UTC)\n Wzaw = rLdf.Timestamp('2017-10-06 08:00:00', tz=FXGE.UTC)\n bIwZ = afQN(G39W)\n IbHI = u_uS('Acme Inc.', 'AAA', tax_exempt=False)\n bIwZ.subscribe_funds(Wzaw, 100000.0)\n WNFL = T74E(asset=IbHI.symbol, quantity=100, dt=Wzaw... | [
"0.65582484",
"0.63338065",
"0.6323453",
"0.62957454",
"0.6280098",
"0.62462556",
"0.6200759",
"0.6194813",
"0.6183243",
"0.6182247",
"0.61694515",
"0.6155633",
"0.6151441",
"0.61346376",
"0.6119917",
"0.61194086",
"0.61180645",
"0.6114542",
"0.6113125",
"0.61026645",
"0.6096... | 0.8031963 | 0 |
Search for the best move from the available legal moves and return a result before the time limit expires. YOU DO NOT NEED TO MODIFY THIS FUNCTION For fixeddepth search, this function simply wraps the call to the minimax method, but this method provides a common interface for all Isolation agents, and you will replace ... | def j5YA(YKHO, BH3N, TK8C):
YKHO.time_left = TK8C
DQoW = (-1, -1)
try:
return YKHO.minimax(BH3N, YKHO.search_depth)
except Z7bg:
pass
return DQoW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR1K(YKHO, BH3N, rb7a):\n if YKHO.time_left() < YKHO.TIMER_THRESHOLD:\n raise Z7bg()\n DQoW = (-1, -1)\n f7Dd = float('-inf')\n HMeC = BH3N.get_legal_moves()\n if len(HMeC) > 0:\n DQoW = HMeC[0]\n for BZN_ in HMeC:\n QVeo = BH3N.forecast_move(BZN_)\n DCJh = YKHO.mi... | [
"0.8245226",
"0.82106656",
"0.8144344",
"0.7970947",
"0.7943026",
"0.7823554",
"0.779695",
"0.7788228",
"0.7577173",
"0.7567993",
"0.75625914",
"0.75520444",
"0.7504629",
"0.7500841",
"0.7483626",
"0.7461961",
"0.74500465",
"0.74354655",
"0.7433736",
"0.7424695",
"0.7412747",... | 0.7155288 | 46 |
Return an element with highest fn(seq[i]) score; tie goes to first one. >>> argmax(['one', 'to', 'three'], len) 'three' | def q1NN(Q6uT, FYKK):
return WHwV(Q6uT, lambda WKvO: -FYKK(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1NN(cCrA):\n return max(cCrA.iteritems(), key=seET.itemgetter(1))[0]",
"def q1NN(Q6uT, FYKK):\n return WHwV(Q6uT, lambda WKvO: -FYKK(WKvO))",
"def q1NN(fUYa):\n return max(enumerate(fUYa), key=lambda WKvO: WKvO[1])[0]",
"def q1NN(vC9B):\n return max(enumerate(vC9B), key=lambda WKvO: WKvO[1])... | [
"0.76871836",
"0.74391377",
"0.723758",
"0.72367287",
"0.72367287",
"0.72367287",
"0.72367287",
"0.72302",
"0.7204935",
"0.7148494",
"0.70977247",
"0.70931953",
"0.69878125",
"0.6964424",
"0.69463587",
"0.68965715",
"0.68675",
"0.6800322",
"0.6613304",
"0.6594623",
"0.6578716... | 0.74427676 | 2 |
Return an element with lowest fn(seq[i]) score; tie goes to first one. >>> argmin(['one', 'to', 'three'], len) 'to' | def WHwV(Q6uT, FYKK):
P6Dd = Q6uT[0]
Qai7 = FYKK(P6Dd)
for WKvO in Q6uT:
VTuD = FYKK(WKvO)
if VTuD < Qai7:
P6Dd, Qai7 = (WKvO, VTuD)
return P6Dd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHwV(Q6uT, FYKK):\n P6Dd = Q6uT[0]\n Qai7 = FYKK(P6Dd)\n for WKvO in Q6uT:\n VTuD = FYKK(WKvO)\n if VTuD < Qai7:\n P6Dd, Qai7 = (WKvO, VTuD)\n return P6Dd",
"def WHwV(Q6uT, FYKK):\n P6Dd = Q6uT[0]\n Qai7 = FYKK(P6Dd)\n for WKvO in Q6uT:\n VTuD = FYKK(WKvO)... | [
"0.8368316",
"0.8345532",
"0.8332097",
"0.8332097",
"0.8332097",
"0.7554198",
"0.7451069",
"0.7237556",
"0.7237556",
"0.71494806",
"0.7095988",
"0.708141",
"0.7011972",
"0.6951203",
"0.6897953",
"0.6543707",
"0.65268975",
"0.6488659",
"0.6466916",
"0.64641917",
"0.6443587",
... | 0.8337939 | 2 |
converts a number to it's string equivilant in another base | def rhHw(P8oC=10):
def MYfY(FGW3):
if FGW3 == 0:
return '0'
ybz1 = epAf.floor(epAf.log(FGW3, P8oC) + 1e-06)
def AIzy(FGW3, naF9):
if naF9 == 0:
return str(FGW3)
lk9W = FGW3 // P8oC ** naF9
K0A_ = FGW3 - lk9W * P8oC ** naF9
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVfb(FGW3, P8oC):\n BHGE = '0123456789ABCDEF'\n E5BI = h1Oq()\n while FGW3 > 0:\n K0A_ = FGW3 % P8oC\n E5BI.push(K0A_)\n FGW3 = FGW3 // P8oC\n vIwR = ''\n while not E5BI.is_empty():\n vIwR = vIwR + BHGE[E5BI.pop()]\n return vIwR",
"def a8Pe(mLGw, P8oC):\n Ylbp... | [
"0.8287877",
"0.81482196",
"0.8091766",
"0.8088077",
"0.80707616",
"0.80590975",
"0.80521625",
"0.8037638",
"0.79990876",
"0.79875314",
"0.796538",
"0.79635656",
"0.79635656",
"0.79635656",
"0.7950898",
"0.79326546",
"0.79206634",
"0.7906797",
"0.7900822",
"0.7898827",
"0.787... | 0.71423495 | 57 |
Immediately resolves a Promise. Convenience function for creating a Promise that gets immediately resolved with the specified value. | def xBs1(xx4b: S) -> 'Promise[S]':
def DMxr(OOm9: ResolveFunc[S]) -> None:
OOm9(xx4b)
return sD2T(DMxr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWbH(YKHO, BWXx):\n XP5J = YKHO.__current_promise\n if XP5J:\n YKHO.__current_promise = None\n XP5J.resolve(BWXx)",
"def suE3(YKHO, JaWe: FullfillFunc[T, TResult]) -> 'Promise[TResult]':\n\n def pnV3(OOm9: ResolveFunc[TResult], xx4b: T) -> None:\n \"\"\"A wrapper called when thi... | [
"0.71310073",
"0.59288704",
"0.56965727",
"0.5545819",
"0.54903275",
"0.52902246",
"0.5262765",
"0.51757044",
"0.51189536",
"0.5062981",
"0.50564796",
"0.49873948",
"0.4909854",
"0.48975235",
"0.48865718",
"0.4870788",
"0.47733787",
"0.47522217",
"0.47519255",
"0.4740715",
"0... | 0.6888969 | 1 |
Returns a xarray.DataArray object with the given coords and dims | def gK1k(nPrm, Htse, jNOo):
jNOo = {tpio: jNOo[tpio] for tpio in Htse}
if isinstance(nPrm, zuVY.DataArray):
ROpF = tuple(Mxrf(jNOo))
if nPrm.shape == ROpF:
return zuVY.DataArray(data=nPrm.values, coords=jNOo, dims=Htse)
elif len(ROpF) == len(nPrm.shape) and all([ROpF[YRbF] < ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def toIM(i8WE: Union[list, int]=None, GkJn: Union[list, int]=None, fUYa: Union[list, int]=None, bEXe: Union[list, int]=None, yDqo=XTiz.int32):\n Htse = []\n jNOo = {}\n BWXx = XTiz.zeros(shape=())\n for tpio, gtI8 in [('t', i8WE), ('bands', GkJn), ('x', fUYa), ('y', bEXe)]:\n if gtI8:\n ... | [
"0.64150465",
"0.6394716",
"0.63640547",
"0.63486147",
"0.62761134",
"0.6275714",
"0.6152416",
"0.6136523",
"0.6105892",
"0.60707873",
"0.6015377",
"0.5999026",
"0.5966929",
"0.59398437",
"0.5921726",
"0.5917846",
"0.5894091",
"0.58915746",
"0.58915746",
"0.5873673",
"0.58733... | 0.6436403 | 0 |
Decorate routes to require login. | def uKii(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if cuiw.get('user_id') is None:
return vKnz(nKyW('login'))
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m",
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i... | [
"0.7088456",
"0.69661",
"0.69525415",
"0.6949141",
"0.6931404",
"0.69277924",
"0.69114035",
"0.6908829",
"0.68492377",
"0.68424016",
"0.68367666",
"0.68357086",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6806658",
"0.68059635",
"0.67959154",
"0.6781016",
"0.677388... | 0.660796 | 43 |
Tests updating the biases and weights of the dense layer. | def Jefe(YKHO) -> None:
Ti0O = WIc4([0.0, 0.0, 0.0, 0.0])
Ktos = d1az(neuron_count=2, activation=QZir, activation_prime=wSNN, random_function=Ti0O)
Ktos.add_weights(2)
oyIN.testing.assert_array_equal(oyIN.zeros([2]), Ktos.bias)
oyIN.testing.assert_array_equal(oyIN.zeros([2, 2]), Ktos.get_weights())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWZU(YKHO) -> None:\n Ti0O = WIc4([0.3, 0.4, 0.5, 0.6])\n Ktos = d1az(neuron_count=2, activation=QZir, activation_prime=wSNN, random_function=Ti0O)\n Ktos.add_weights(2)\n oyIN.testing.assert_array_equal(oyIN.zeros([2]), Ktos.bias)\n Ktos.update_bias(oyIN.array([0.1, 0.2]))\n oyIN.testing.ass... | [
"0.7190687",
"0.67696226",
"0.6745763",
"0.65139914",
"0.6427985",
"0.64116144",
"0.6350028",
"0.6305768",
"0.619978",
"0.6134021",
"0.60737264",
"0.6067593",
"0.60146034",
"0.59998757",
"0.59860986",
"0.5819425",
"0.5768782",
"0.57602835",
"0.57459307",
"0.5745819",
"0.56876... | 0.8236352 | 0 |
Return 8bit normalized RGB integers. >>> list(grayscale_gradient([1], 2)) [127, 127, 127] | def fKsn(nPrm, bQ6z):
for BWXx in nPrm:
HBfW = 255 * BWXx // bQ6z
yield HBfW
yield HBfW
yield HBfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBjG(YKHO, Xn71):\n lEHr = list(Xn71.getdata())\n return [lEHr[YRbF * Xn71.size[0]:(YRbF + 1) * Xn71.size[0]] for YRbF in range(Xn71.size[1])][0]",
"def A_B0(ICX2):\n ICX2 = ICX2 - ICX2.min()\n ICX2 /= ICX2.max()\n ICX2 = oyIN.uint8(ICX2 * 255).transpose(1, 2, 0)\n ICX2 = ICX2[..., ::-1]\n ... | [
"0.6317757",
"0.6288593",
"0.62642425",
"0.61714786",
"0.60524803",
"0.60241973",
"0.5977253",
"0.59758365",
"0.5972639",
"0.5966796",
"0.5962465",
"0.59563005",
"0.5937189",
"0.5910705",
"0.5893266",
"0.58931595",
"0.58916074",
"0.5890835",
"0.5890835",
"0.5880529",
"0.58774... | 0.62051857 | 3 |
Return 8bit normalized RGB integers. >>> list(rainbow_gradient([0], 2)) [0, 0, 255] >>> list(rainbow_gradient([1], 2)) [0, 255, 0] >>> list(rainbow_gradient([2], 2)) [255, 0, 0] | def XyEZ(nPrm, bQ6z):
for BWXx in nPrm:
Hpmo = bQ6z / 2.0
Mkmy = int(max(0, 255.0 * (BWXx / Hpmo - 1.0)))
Fg_i = int(max(0, 255.0 * (1.0 - BWXx / Hpmo)))
yield Mkmy
yield (255 - Fg_i - Mkmy)
yield Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bfSE(mLGw):\n qfpW = h478.hsv_to_rgb(mLGw / 2 % 360.0 / 360.0, 1.0, 1.0)\n return tuple((round(YRbF * 255) for YRbF in qfpW))",
"def zSeU(YRbF):\n return Jw9H[YRbF]",
"def LhnI(WVCL):\n Jw9H = 255 - WVCL[3]\n return [max(0, int(Jw9H * (255 - WVCL[0]) / 255.0)), max(0, int(Jw9H * (255 - WVCL[... | [
"0.65092045",
"0.645542",
"0.6267787",
"0.616452",
"0.61266434",
"0.61022156",
"0.60866237",
"0.60794055",
"0.60794055",
"0.6051837",
"0.60515136",
"0.5953486",
"0.59150064",
"0.59144247",
"0.59113616",
"0.5902256",
"0.59004945",
"0.5880308",
"0.58787894",
"0.58690816",
"0.58... | 0.6732146 | 0 |
Retrieves All Device Diagnostic Logs. It accepts typeId (string) and deviceId (string) as parameters In case of failure it throws APIException | def irJN(YKHO, L4F4, RUxZ):
ojYP = OxSd.deviceDiagLogs % (YKHO.host, L4F4, RUxZ)
Mkmy = G4JS.get(ojYP, auth=YKHO.credentials, verify=YKHO.verify)
jGRS = Mkmy.status_code
if jGRS == 200:
YKHO.logger.debug('All Diagnostic logs successfully retrieved')
return Mkmy.json()
elif jGRS == 40... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NOlT(YKHO, L4F4, RUxZ, sl8x):\n ojYP = OxSd.deviceDiagLogsLogId % (YKHO.host, L4F4, RUxZ, sl8x)\n Mkmy = G4JS.get(ojYP, auth=YKHO.credentials, verify=YKHO.verify)\n jGRS = Mkmy.status_code\n if jGRS == 200:\n YKHO.logger.debug('Diagnostic log successfully retrieved')\n return Mkmy.jso... | [
"0.7709361",
"0.76294315",
"0.68389106",
"0.67728704",
"0.6744045",
"0.6445066",
"0.6303201",
"0.61495143",
"0.60436857",
"0.5980645",
"0.59765196",
"0.59043074",
"0.56984496",
"0.56596106",
"0.56005836",
"0.55960673",
"0.5590958",
"0.5581934",
"0.5531054",
"0.55154866",
"0.5... | 0.89528954 | 0 |
Gets a logical interface. | def icLg(YKHO, gOnr, S3dM=False):
if S3dM:
qv1X = OxSd.oneLogicalInterfaceUrl % (YKHO.host, '/draft', gOnr)
else:
qv1X = OxSd.oneLogicalInterfaceUrl % (YKHO.host, '', gOnr)
_hkX = G4JS.get(qv1X, auth=YKHO.credentials, verify=YKHO.verify)
if _hkX.status_code == 200:
YKHO.logger.de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return YKHO.connection.get_network_interface(YKHO.id)",
"def E2BI(YKHO) -> qe4Y.Output['outputs.NetworkInterfaceResponse']:\n return qe4Y.get(YKHO, 'network_interface')",
"def F59y(YKHO) -> qe4Y.Output[bdIy['outputs.GoogleCloudBaremetalsolutionV2LogicalInterfaceResponse']]:\n return ... | [
"0.76888335",
"0.69959235",
"0.69551075",
"0.6922977",
"0.6919466",
"0.68325853",
"0.672973",
"0.6698519",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"0.66944957",
"... | 0.7076651 | 1 |
Gets rules for a logical interface. | def SDHg(YKHO, gOnr, S3dM=False):
if S3dM:
qv1X = OxSd.allRulesForLogicalInterfaceUrl % (YKHO.host, '/draft', gOnr)
else:
qv1X = OxSd.allRulesForLogicalInterfaceUrl % (YKHO.host, '', gOnr)
_hkX = G4JS.get(qv1X, auth=YKHO.credentials, verify=YKHO.verify)
if _hkX.status_code == 200:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zWGO(YKHO, PcuJ: Optional[str]=None, VVOC: str='All') -> list:\n c_NS = []\n if PcuJ is None and VVOC in ['All', 'Global']:\n Ylbp = YKHO._http_request('GET', '/api/access/global/rules')\n DumB = Ylbp.get('items', [])\n for ZfUD in DumB:\n ZfUD['interface_type'] = 'Global'... | [
"0.69348794",
"0.67586815",
"0.66804993",
"0.6676425",
"0.6575213",
"0.65458685",
"0.649823",
"0.64910847",
"0.6490519",
"0.64449185",
"0.64319426",
"0.64319426",
"0.64045525",
"0.6399405",
"0.63700527",
"0.63422585",
"0.63340616",
"0.63276213",
"0.6321404",
"0.6310625",
"0.6... | 0.7724783 | 0 |
Adds a physical interface to a device type. | def yRVN(YKHO, L4F4, h4KD):
qv1X = OxSd.oneDeviceTypePhysicalInterfaceUrl % (YKHO.host, '/draft', L4F4)
TBsA = {'id': h4KD}
_hkX = G4JS.post(qv1X, auth=YKHO.credentials, headers={'Content-Type': 'application/json'}, data=qQXR.dumps(TBsA), verify=YKHO.verify)
if _hkX.status_code == 201:
YKHO.logg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lG7h(YKHO, mWFP, begE, *, DlVq, TwsR=False):\n YmHP = yF2U(name=mWFP, mgmt_only=TwsR, device=begE, type=DlVq)\n YmHP.save()\n YKHO.log_success(f'{begE}: created interface {mWFP} (mgmt={TwsR})')\n return YmHP",
"def m3Al(YKHO, L4F4, gOnr):\n qv1X = OxSd.allDeviceTypeLogicalInterfacesUrl % (YKHO... | [
"0.69727814",
"0.6863211",
"0.6785097",
"0.6542945",
"0.6517462",
"0.6490029",
"0.6377469",
"0.6361043",
"0.6310127",
"0.62201166",
"0.6210386",
"0.61773044",
"0.6175594",
"0.6173294",
"0.61542475",
"0.61460626",
"0.6143641",
"0.6097725",
"0.6084415",
"0.6070943",
"0.6066377"... | 0.776386 | 0 |
Adds a logical interface to a device type. | def m3Al(YKHO, L4F4, gOnr):
qv1X = OxSd.allDeviceTypeLogicalInterfacesUrl % (YKHO.host, '/draft', L4F4)
TBsA = {'id': gOnr}
_hkX = G4JS.post(qv1X, auth=YKHO.credentials, headers={'Content-Type': 'application/json'}, data=qQXR.dumps(TBsA), verify=YKHO.verify)
if _hkX.status_code == 201:
YKHO.logg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZkH_(YKHO, wohN):\n YKHO.add_interfaces([wohN])",
"def lG7h(YKHO, mWFP, begE, *, DlVq, TwsR=False):\n YmHP = yF2U(name=mWFP, mgmt_only=TwsR, device=begE, type=DlVq)\n YmHP.save()\n YKHO.log_success(f'{begE}: created interface {mWFP} (mgmt={TwsR})')\n return YmHP",
"def yRVN(YKHO, L4F4, h4KD)... | [
"0.67689234",
"0.66645604",
"0.6636346",
"0.66269803",
"0.62262905",
"0.6222618",
"0.6218537",
"0.6186851",
"0.61497515",
"0.61249477",
"0.6118208",
"0.6087596",
"0.6071173",
"0.60696286",
"0.60198003",
"0.59677225",
"0.59493226",
"0.59382385",
"0.58423764",
"0.5829687",
"0.5... | 0.7599267 | 0 |
Gets the state for a logical interface for a thing. | def o7g2(YKHO, TlUD, gHiV, gOnr):
qv1X = OxSd.thingStateUrl % (YKHO.host, TlUD, gHiV, gOnr)
_hkX = G4JS.get(qv1X, auth=YKHO.credentials, verify=YKHO.verify)
if _hkX.status_code == 200:
YKHO.logger.debug('State retrieved from the thing type for a logical interface')
else:
raise fANS.APIEx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reuk(YKHO):\n return YKHO.__if_state",
"def mHBY(YKHO):\n if YKHO._interfaces_state is None:\n dixj = []\n GgKL = '1.3.6.1.2.1.2.2.1.2.'\n buXg = '1.3.6.1.2.1.2.2.1.8.'\n jbXL = list(GgKL)\n jbXL[18] = str(4)\n for YRbF in YKHO._value_to_retrieve():\n ... | [
"0.7276089",
"0.6392501",
"0.6332585",
"0.6327218",
"0.6290252",
"0.62428874",
"0.6237193",
"0.6225999",
"0.6189334",
"0.6183694",
"0.6183694",
"0.6146053",
"0.6140499",
"0.6113893",
"0.60817504",
"0.60679126",
"0.60673285",
"0.60673285",
"0.60673285",
"0.60673285",
"0.606732... | 0.7480821 | 0 |
Compute the norm of the gradient for the stopping criterion of the gradient descent process. | def Rh9S(TWbo):
return oyIN.absolute(TWbo).max() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def edma(yvY1):\n yvT9 = yvY1 ** 2\n while yvT9.ndim > 1:\n yvT9 = oyIN.sum(yvT9, axis=yvT9.ndim - 1)\n return oyIN.sqrt(yvT9)",
"def oWRZ(YKHO):\n return oyIN.sqrt(YKHO.real.grad_norm ** 2 + YKHO.imag.grad_norm ** 2)",
"def lGTK(YKHO) -> float:\n jn1Q = [hYp9([ezWE for ezWE in pETf.grad_... | [
"0.74767274",
"0.7324837",
"0.73174435",
"0.73174435",
"0.73174435",
"0.6940013",
"0.686312",
"0.6854713",
"0.683637",
"0.6812705",
"0.67880654",
"0.6777678",
"0.6771437",
"0.6746479",
"0.67399234",
"0.6641684",
"0.6592017",
"0.6552528",
"0.65416795",
"0.6535541",
"0.6529451"... | 0.72069097 | 5 |
Initialize the low dimensional embedding randomly. | def gfPF(ywwl, YKua, j93M):
return 10 ** (-4) * j93M.randn(ywwl, YKua) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wr_3(YKHO):\n yLbG = YKHO.token_dictionary.get_num_embeddings()\n tpio = YKHO.options.embedding_size\n KTQ3 = oyIN.random.normal(0, 0.1, [yLbG, tpio])\n return KTQ3",
"def qIlm(KTQ3):\n oug5 = oyIN.sqrt(3.0 / KTQ3.size(1))\n ht2j.nn.init.uniform_(KTQ3, -oug5, oug5)",
"def qIlm(KTQ3):\n ... | [
"0.732602",
"0.7045052",
"0.7045052",
"0.6945105",
"0.69327706",
"0.6919919",
"0.6895457",
"0.6840408",
"0.68305135",
"0.6777195",
"0.6601194",
"0.65435517",
"0.65191555",
"0.65051335",
"0.6487133",
"0.6408074",
"0.6397149",
"0.6394188",
"0.63724715",
"0.6362381",
"0.6362381"... | 0.6691887 | 10 |
Computes the KL_divergence between the similarities in HDS and in LDS. This function correctly handles the zero's in p_ij, log_p_ij and log_q_ij. | def xcOM(XUsB, AaIp, sYkT):
return oyIN.dot(XUsB.flatten(), (AaIp - sYkT).flatten()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzAH(XP5J, vexM):\n XP5J = oyIN.asarray(XP5J, dtype=oyIN.float)\n vexM = oyIN.asarray(vexM, dtype=oyIN.float)\n mYb5 = 0\n g95K = 0\n for YRbF in range(0, XP5J.size):\n if XP5J[YRbF] != 0.0 and vexM[YRbF] != 0.0:\n hQHm = XP5J[YRbF] / vexM[YRbF]\n jlSq = vexM[YRbF] /... | [
"0.7698143",
"0.75590724",
"0.7542606",
"0.74624366",
"0.7375786",
"0.7364115",
"0.7359331",
"0.73060936",
"0.72233987",
"0.7197598",
"0.7169647",
"0.7146497",
"0.714528",
"0.70917195",
"0.7085193",
"0.70711386",
"0.7063036",
"0.7054779",
"0.7033439",
"0.6986195",
"0.6975986"... | 0.0 | -1 |
Initialize dictionary of history lists for each combination and a total loss. | def eKc6():
FLXQ = {'m1': {'elbo': [], 'image1_bce': [], 'image1_rmse': [], 'image2_bce': [], 'image2_rmse': [], 'speech_mse': [], 'speech_rmse': [], 'label_ce': [], 'label_acc': []}, 'm2': {'elbo': [], 'image1_bce': [], 'image1_rmse': [], 'image2_bce': [], 'image2_rmse': [], 'speech_mse': [], 'speech_rmse': [], 'l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iiwj(YKHO, Wbxz=['loss', 'elbo', 'mmd', 'reconstruction', 'kl', 'classification', 'mmd_group'], RnoT=['train', 'val']):\n return YKHO.init_metric_dict(metrics=Wbxz, phases=RnoT)",
"def aymt(YKHO):\n YKHO._history = {}\n YKHO._history['time'] = [YKHO.time]\n YKHO._history['population'] = {}",
"d... | [
"0.64847106",
"0.6349569",
"0.59983",
"0.59427196",
"0.5930847",
"0.5916166",
"0.5891885",
"0.5868496",
"0.5868496",
"0.58631027",
"0.58428484",
"0.58319145",
"0.5822883",
"0.5789092",
"0.57603717",
"0.5760334",
"0.5710458",
"0.570257",
"0.5652723",
"0.56476456",
"0.5646418",... | 0.6544801 | 0 |
This subresource provides a list of all portfolios that are owned by the investor. | def Ofh8(YKHO):
bD7m = Pqur('accounts', YKHO.investor_id, 'portfolios')
geh0 = YKHO.session.get(url=bD7m)
geh0.raise_for_status()
return [hYwH('LendingClubPortfolio', Csk6) for Csk6 in geh0.json().get('myPortfolios')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSG7(YKHO):\n return YKHO._portfolios",
"def KDlo(YKHO):\n pass",
"def ZOJo(YKHO):\n pass",
"def Rs1d(YKHO):\n pass",
"def pizT(YKHO):\n QePW = YKHO.factory.get(gxEw('get_portfolio_list_by_user', kwargs={'user_id': YKHO.user.id}))\n QePW.user = YKHO.user\n geh0 = nNXP.get_list_of_p... | [
"0.71278167",
"0.69414634",
"0.6553376",
"0.6504751",
"0.6190307",
"0.6097115",
"0.60247576",
"0.6023738",
"0.5801761",
"0.57986605",
"0.5787942",
"0.5779434",
"0.57179713",
"0.5651928",
"0.56429255",
"0.56362647",
"0.5631492",
"0.56266433",
"0.5571859",
"0.5559074",
"0.54379... | 0.7764643 | 0 |
Create a list for the 'install_requires' component of the setup function by parsing a requirements file | def VnMZ(ndwV):
if Hy7s.path.exists(ndwV):
return open(ndwV, 'r').read().splitlines()
else:
print('ERROR: requirements file ' + ndwV + ' not found.')
HwRy.exit(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0tL() -> x1iM[str]:\n SfZu = GkAb(xAKo).parent.joinpath('requirements.txt').read_text()\n return [uiGr for uiGr in SfZu.split('\\n')]",
"def c0tL() -> laHg.List[str]:\n emMa = []\n with open(GkAb(xAKo).absolute().parent.joinpath('requirements.txt'), 'r') as rl4e:\n emMa = [WKvO for WKvO i... | [
"0.8326368",
"0.80459595",
"0.78326964",
"0.7697007",
"0.7667096",
"0.7602319",
"0.7574327",
"0.75474983",
"0.7524914",
"0.745983",
"0.7383377",
"0.73704076",
"0.73471117",
"0.7333488",
"0.7313367",
"0.7246791",
"0.72385925",
"0.722453",
"0.7220883",
"0.72169393",
"0.72078496... | 0.6588421 | 86 |
Validates root directory argument. | def R6Kj(d7pR):
if Hy7s.path.isdir(d7pR):
return d7pR
else:
raise j1Jz.ArgumentError(d7pR, 'Could not resolve root path.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IX6r(YKHO):\n if not vtfo(YKHO.root_directory):\n raise Exception(f\"'{YKHO.root_directory}' does not exist.\")\n if not ppdR(YKHO.root_directory):\n raise Exception(f\"'{YKHO.root_directory}' is not a directory.\")",
"def QdL4(YKHO):\n if not Hy7s.path.isdir(YKHO.root):\n print... | [
"0.7701899",
"0.745639",
"0.6954282",
"0.6876812",
"0.6739424",
"0.66379356",
"0.6600106",
"0.6599669",
"0.6599669",
"0.658045",
"0.6529569",
"0.6511276",
"0.64494723",
"0.6414219",
"0.6384487",
"0.6380217",
"0.6376064",
"0.63701725",
"0.6334983",
"0.63347876",
"0.6291675",
... | 0.0 | -1 |
Encode jwt by payload | def CZDQ(pB3N):
try:
H5ew = gCuF.LOGIN_SECRET
RSvc = DvJO.encode(pB3N, H5ew, algorithm='HS256')
ERVO = bytes.decode(RSvc)
except Exception:
G9jH.error('jwt encode error, for payload={}'.format(pB3N))
return None
return ERVO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxD6(pB3N):\n MOPg = None\n BQqf = widx.JWT_ALGORITHM\n if isinstance(BQqf, list):\n BQqf = BQqf[0]\n if BQqf.startswith('HS'):\n H5ew = dFyd(pB3N)\n else:\n H5ew = widx.JWT_PRIVATE_KEY\n if isinstance(H5ew, dict):\n Y9Xw, H5ew = next(iter(H5ew.items()))\n M... | [
"0.8427437",
"0.83503",
"0.8277168",
"0.8258071",
"0.82570827",
"0.82260895",
"0.8215966",
"0.7882857",
"0.7533757",
"0.75290143",
"0.74558014",
"0.7391468",
"0.73363906",
"0.73092145",
"0.7301086",
"0.7285897",
"0.7271278",
"0.7168186",
"0.7167184",
"0.7167184",
"0.71411246"... | 0.8244334 | 5 |
Plots the learning curves of the loss and accuracy for the train dataset. | def hTVT(jQ3Z: DataFrame):
ZTRo(jQ3Z)
LZpg, MPlV = QrM1.subplots(nrows=1, ncols=2, figsize=(12.8, 4.8))
for YRbF in range(2):
uuEx.lineplot(data=jQ3Z[uCfP[YRbF][0]], marker='o', ax=MPlV[YRbF])
MPlV[YRbF].set(xticks=jQ3Z.index, title=f'{uzmd['loss_accuracy'][YRbF]} learning curve', xlabel='Ep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzaM(YbcW, YSue, vjyh):\n LZpg, MPlV = QrM1.subplots(2)\n ta2H = MPlV[0].plot(YbcW, label=' Train Loss')\n qTVs = MPlV[0].plot(YSue, label=' Test Loss')\n YuU8 = MPlV[1].plot(vjyh, label=' Test Accuracy')\n QrM1.xlabel(' Training Epoch')\n MPlV[0].legend()\n MPlV[1].legend()\n QrM1.... | [
"0.8259278",
"0.8170641",
"0.81292933",
"0.8053386",
"0.8007793",
"0.7942219",
"0.79057",
"0.78919536",
"0.7881026",
"0.78741825",
"0.78396815",
"0.783627",
"0.78254133",
"0.77671903",
"0.7756767",
"0.7755008",
"0.76768434",
"0.76649886",
"0.76576716",
"0.7648552",
"0.7631246... | 0.0 | -1 |
Plots the improvements of the losses and accuracies for each of the different dataset sizes. | def z8aJ(jQ3Z: DataFrame):
jQ3Z.columns = uzmd['dataset_sizes']
LZpg, MPlV = QrM1.subplots(nrows=1, ncols=2, figsize=(12.8, 4.8))
for YRbF in range(2):
uuEx.barplot(data=jQ3Z.iloc[[YRbF]], ax=MPlV[YRbF])
UUS0 = oyIN.linspace(-1.2, 0, 7) if YRbF == 0 else oyIN.linspace(0, 0.22, 12)
MP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMfW(o_M0, N77f, y7GR):\n QIwH = '#1565C0'\n jh1m = '#E53935'\n XX4R = '#2E7D32'\n xbos = '#E64A19'\n LZpg, aNZO = QrM1.subplots(figsize=(10, 5))\n NS42 = ['-', '--', ':', '-.']\n mS4v = [QIwH, jh1m, XX4R, xbos]\n g1TI = o_M0\n exwG = len(g1TI)\n aNZO.plot(range(1, exwG + 1), g1TI... | [
"0.7149328",
"0.702769",
"0.6979424",
"0.69627905",
"0.69151276",
"0.687511",
"0.68467003",
"0.68248934",
"0.6812521",
"0.68118083",
"0.6809294",
"0.68082494",
"0.67984384",
"0.67846364",
"0.6782093",
"0.677364",
"0.6744358",
"0.6717734",
"0.66974103",
"0.6670672",
"0.6663106... | 0.7225022 | 0 |
Get the item's status. | def NMoC(YKHO):
return YKHO.status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO._status",
... | [
"0.7924818",
"0.7881761",
"0.7881761",
"0.7881761",
"0.7881761",
"0.7870035",
"0.7870035",
"0.7846975",
"0.78321254",
"0.77798826",
"0.7778291",
"0.7778291",
"0.7778291",
"0.7739965",
"0.772646",
"0.77092695",
"0.77041066",
"0.7697817",
"0.7682937",
"0.767191",
"0.767188",
... | 0.7738564 | 14 |
Creates and saves a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, **wdCM):
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.8377732 | 26 |
Returns all Instances of this Wall Types | def bUWH(YKHO):
tQGS = fjAL.get_id('SYMBOL_NAME_PARAM')
Vuiz = FAFC.collector.ParameterFilter(tQGS, equals=YKHO.name)
return FAFC.Collector(of_class=pths.Wall, parameter_filter=Vuiz, is_not_type=True).elements | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bUWH(YKHO) -> x1iM[Kt_s]:\n if len(YKHO._type_groups) == 0:\n return []\n return YKHO._type_groups[YKHO._base_type].instances",
"def lbzt(YKHO) -> x1iM[ec6H]:\n pass",
"def all(Emd4):\n return Emd4.instances",
"def lbzt():\n return (APzB() for APzB in pi1E())",
"def y5NJ(YKHO):\n ... | [
"0.7377024",
"0.7055314",
"0.69312316",
"0.6857118",
"0.6825813",
"0.6808803",
"0.67788005",
"0.6754908",
"0.6679958",
"0.66771305",
"0.6604081",
"0.6590765",
"0.65722364",
"0.6567531",
"0.65621734",
"0.6514886",
"0.6484697",
"0.64808065",
"0.6455192",
"0.6442459",
"0.6414236... | 0.71967125 | 1 |
Generate an array for plotting; add randomness to xplotting locations (v, as 1D array) so markers don't all overlie one another. By default, jitters by 17% of the mean separation both ways. If given the yvals, tapers the x value jitter based on the SD. Returns 2D array with n jittered copies of v. | def u4Va(Ty9i, exwG, r8hN=3.0, gbzF=None, dlth=None):
Ty9i = Ty9i.astype(float)
if dlth is not None:
Adn_ = oyIN.abs(dlth - oyIN.mean(dlth)) / (2 * oyIN.std(dlth))
Adn_[Adn_ > 1.0] = 1.0
Adn_ = 1 - Adn_
if gbzF is None:
gbzF = oyIN.diff(Ty9i).mean() / r8hN
oyIN.random.see... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHg_(ezWE, JCoA=1, kpLf=0.5):\n Is3U = ezWE.shape[0]\n tpio = ezWE.shape[-1] if len(ezWE.shape) == 2 else 1\n for G1Hx in range(tpio):\n OKMx = oyIN.concatenate((oyIN.random.uniform(-JCoA, -kpLf, epAf.floor(Is3U * 0.5)), oyIN.random.uniform(kpLf, JCoA, epAf.ceil(Is3U * 0.5))))\n oyIN.ran... | [
"0.64470005",
"0.5996767",
"0.5955942",
"0.59446174",
"0.59102553",
"0.57310295",
"0.5726073",
"0.56119263",
"0.55613285",
"0.55444646",
"0.5512841",
"0.5505991",
"0.54963267",
"0.5409753",
"0.5391845",
"0.53823894",
"0.5347735",
"0.53319454",
"0.5298354",
"0.52908814",
"0.52... | 0.67098135 | 0 |
Use the `argparse` module to make the optional and required commandline arguments for the `wedap`. | def VOin(p06G):
wvEv = j1Jz.ArgumentParser(description='Weighted Ensemble data analysis and plotting (WE-dap). \nGiven an input west.h5 file from a successful WESTPA simulation, prepare probability distributions and plots.')
wvEv.add_argument('--first-iter', default=1, nargs='?', dest='first_iter', help='Plot d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKsZ():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-m', '--monikers', help='replace consultant logins with monikers', action='store_true')\n return wvEv.parse_args()",
"def dvdc():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--pcap', metavar='<input pcap file>', help='pcap fil... | [
"0.6981128",
"0.6968945",
"0.69161695",
"0.68895364",
"0.68763",
"0.6850273",
"0.67682993",
"0.67489856",
"0.67109084",
"0.66906136",
"0.66799694",
"0.66750175",
"0.66741264",
"0.6667856",
"0.66657853",
"0.66635877",
"0.6649839",
"0.6644663",
"0.6639443",
"0.6639443",
"0.6637... | 0.0 | -1 |
Add new work arrangement of an employee | def rUFu(YKHO, xGqu: request_data_models.CreateWorkArrangementData):
YvUd = YKHO._employee_repo.employee_exists(xGqu.employee_id)
if YvUd is None:
raise aW0G.ObjectEntityDoesNotExist('Employee does not exist')
if not YvUd.is_part_time():
raise aW0G.MultipleWorksForFullTimeEmployee()
dZPi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YH9o(YKHO, xGqu: request_data_models.UpdateWorkArrangementData):\n mw1V = YKHO._work_arrangement_repo.work_arrangement_exists(wa_pk=xGqu.id)\n if mw1V is None:\n raise aW0G.ObjectEntityDoesNotExist('Work arrangement does not exist in repository')\n YvUd = YKHO._employee_repo.employee_exists(xGq... | [
"0.67707986",
"0.6604378",
"0.6585877",
"0.6568006",
"0.62804997",
"0.59469396",
"0.5907117",
"0.57797974",
"0.57360154",
"0.5713516",
"0.5650321",
"0.56274784",
"0.56115955",
"0.5578886",
"0.55665743",
"0.5553671",
"0.55533266",
"0.5524531",
"0.54865146",
"0.5479646",
"0.545... | 0.8029437 | 0 |
Returns the data of the section that houses the given address\n UnmappedAddressError is raised when the address is unmapped | def lFae(YKHO, Is4L: int) -> uLKX[i6aH, No6O]:
for XLMv in YKHO.sections:
if XLMv.address <= Is4L < XLMv.address + XLMv.size:
return XLMv
raise Ixa8(f'Unmapped address: 0x{Is4L:X}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sjOv(YKHO, UTX6: ghidra.program.model.address.Address) -> RnTg.program.model.listing.Data:\n ...",
"def xGzs(YKHO, UTX6: ghidra.program.model.address.Address) -> RnTg.program.model.listing.Data:\n ...",
"def Q8HS(YKHO, rRzo: ghidra.program.model.address.Address) -> RnTg.program.model.listing.Data:\n ... | [
"0.6858831",
"0.6583497",
"0.65758276",
"0.65596503",
"0.6440812",
"0.64400506",
"0.6286141",
"0.6285262",
"0.6178872",
"0.6163818",
"0.60801744",
"0.6076493",
"0.60245275",
"0.6011548",
"0.59887576",
"0.5971799",
"0.59299976",
"0.5916393",
"0.59024554",
"0.58890206",
"0.5842... | 0.68360925 | 1 |
returns first n elements of Fibbonaci sequence | def cjNR(exwG):
if exwG < 1:
raise TypeError
if exwG == 1:
Aofo = [1]
if exwG > 1:
Aofo = [1, 1]
for YRbF in range(exwG - 2):
Aofo.append(Aofo[-1] + Aofo[-2])
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bYNU(exwG):\n Rliq = [0, 1]\n for YRbF, FGW3 in enumerate(Rliq):\n IZ2i = YRbF + 1\n jsLP = FGW3 + Rliq[IZ2i]\n Rliq.append(jsLP)\n if len(Rliq) == exwG:\n break\n return Rliq",
"def _iMd(exwG, eHNT):\n from itertools import islice\n return list(islice(eH... | [
"0.6862584",
"0.68128556",
"0.6778522",
"0.6743533",
"0.6692273",
"0.6686547",
"0.66592854",
"0.6621365",
"0.6609876",
"0.6584252",
"0.6484892",
"0.64224446",
"0.6334671",
"0.6313522",
"0.63065004",
"0.63048154",
"0.62940824",
"0.6219517",
"0.6203318",
"0.6195042",
"0.6145509... | 0.5943478 | 32 |
Updates attributes of a given class. | def PThz(YKHO, d7pR):
d7pR = d7pR.split(' ')
qfL8 = ['my_number', 'number_rooms', 'number_bathrooms', 'max_guest', 'price_by_night']
HoLu = ['latitude', 'longitude']
if len(d7pR) == 1 and d7pR[0] == '':
print('** class name missing **')
return
if d7pR[0] not in rskk:
print("*... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sUFK(YKHO, _jJ2):\n if not isinstance(YKHO, _jJ2.__class__):\n raise aTqo.CMApiValueError(bGrB('Class %(class1)s does not derive from %(class2)s; cannot update attributes.') % {'class1': YKHO.__class__, 'class2': _jJ2.__class__})\n for mWFP in YKHO._get_attributes().keys():\n try:\n ... | [
"0.74648875",
"0.7444455",
"0.7433063",
"0.720418",
"0.71900195",
"0.7033673",
"0.7014867",
"0.69096816",
"0.6885995",
"0.67926574",
"0.6722271",
"0.6679301",
"0.66469735",
"0.66347486",
"0.6634425",
"0.66332746",
"0.6610422",
"0.66006327",
"0.6600121",
"0.6575193",
"0.656698... | 0.63186604 | 49 |
Add multiple options as once, with corresponding kwargs. The template determines the keynames used for the arguments, using numbers starting from 1 to differentiate between multiple values. | def NHpq(YKHO, H5ew, hkxX, VWe_=None, rPXJ='IN_FILE_%02i'):
B2fa = {}
for jYva, BWXx in YKHO._get_new_kwarg_keys(hkxX, rPXJ):
YKHO.add_option(H5ew, '%%(%s)s' % (jYva,), sep=VWe_, fixed=True)
B2fa[jYva] = BWXx
YKHO.set_kwargs(**B2fa)
return B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jm39(YKHO, hkxX, rPXJ='IN_FILE_%02i'):\n B2fa = {}\n for jYva, BWXx in YKHO._get_new_kwarg_keys(hkxX, rPXJ):\n YKHO.add_value('%%(%s)s' % (jYva,))\n B2fa[jYva] = BWXx\n YKHO.set_kwargs(**B2fa)\n return B2fa",
"def v6L6(YKHO, *qIxc, **B2fa):\n e1vZ = B2fa.pop('dest')\n if e1vZ ... | [
"0.6322502",
"0.6215001",
"0.59554946",
"0.59324735",
"0.5779384",
"0.5775235",
"0.5764966",
"0.57275",
"0.5703221",
"0.56740403",
"0.56077844",
"0.55877006",
"0.55804414",
"0.5557614",
"0.5548814",
"0.5548552",
"0.5545899",
"0.5523701",
"0.5520067",
"0.54763293",
"0.5469495"... | 0.734593 | 0 |
Add multiple values as once, with corresponding kwargs. The template determines the keynames used for the arguments, using numbers starting from 1 to differentiate between multiple values. | def Jm39(YKHO, hkxX, rPXJ='IN_FILE_%02i'):
B2fa = {}
for jYva, BWXx in YKHO._get_new_kwarg_keys(hkxX, rPXJ):
YKHO.add_value('%%(%s)s' % (jYva,))
B2fa[jYva] = BWXx
YKHO.set_kwargs(**B2fa)
return B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHpq(YKHO, H5ew, hkxX, VWe_=None, rPXJ='IN_FILE_%02i'):\n B2fa = {}\n for jYva, BWXx in YKHO._get_new_kwarg_keys(hkxX, rPXJ):\n YKHO.add_option(H5ew, '%%(%s)s' % (jYva,), sep=VWe_, fixed=True)\n B2fa[jYva] = BWXx\n YKHO.set_kwargs(**B2fa)\n return B2fa",
"def uCzn(**B2fa):\n if l... | [
"0.6675857",
"0.62553716",
"0.606777",
"0.60424",
"0.59277785",
"0.5805514",
"0.569783",
"0.56756985",
"0.55737674",
"0.55591166",
"0.55338466",
"0.5533735",
"0.5503833",
"0.5481734",
"0.5478196",
"0.5472158",
"0.5443854",
"0.5378137",
"0.53712106",
"0.5367506",
"0.53641164",... | 0.7429341 | 0 |
Returns a dictionary of keyword arguments as set by 'set_kwargs'. If the value of an argument is an AtomicCmdBuilder, then the builder is finalized and the resulting value is used. | def B2fa(YKHO):
B2fa = {}
for H5ew, BWXx in YKHO._kwargs.iteritems():
if isinstance(BWXx, oiPS):
BWXx = BWXx.finalize()
B2fa[H5ew] = BWXx
return B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qc2q(YKHO) -> cuzp[str, ImMB]:\n yvT9 = {}\n for YEnM in YKHO.kwargs.all():\n assert isinstance(YEnM, RtuE)\n yvT9[YEnM.param_name] = YEnM.arg\n return yvT9",
"def d1K5(YKHO, **B2fa):\n return B2fa",
"def qc2q(YKHO):\n return YKHO.kwargs if YKHO.kwargs else {}",
"def B2fa(Emd... | [
"0.66458315",
"0.6512438",
"0.6478374",
"0.6374534",
"0.6193959",
"0.61202794",
"0.6099354",
"0.6079187",
"0.6073855",
"0.60478264",
"0.5933169",
"0.58941114",
"0.58450425",
"0.58449197",
"0.58285517",
"0.58194304",
"0.58194304",
"0.58164114",
"0.58005875",
"0.5796808",
"0.57... | 0.84690547 | 0 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
ZylS.summary.scalar('stddev', z2bo)
ZylS.summary... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.77372825",
"0.76371294",
"0.71553725",
"0.70677304",
"0.7010343",
"0.70051324",
"0.686583",
"0.6790819",
"0.6712101",
"0.67020524",
"0.6698547",
"0.6653406",
"0.6651963",
"0.6647064",
"0.66240656",
"0.6604837",
"0.6597623",
"0.6582092",
"0.6571837",
"0.6538044",
"0.6537941... | 0.0 | -1 |
Convert apostrophes word to original form | def Cwlu(l5Ny):
V22M = l5Ny.split()
DIeq = []
for GIN8 in V22M:
SA4M = GIN8.lower()
if SA4M in bYed:
DIeq.append(bYed[SA4M])
else:
DIeq.append(GIN8)
QtSH = ' '.join(DIeq)
return QtSH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _m6P(YKHO, GIN8):\n if GIN8[0] == \"'\":\n GIN8 = GIN8[1:]\n if GIN8[-1] == \"'\":\n GIN8 = GIN8[:-1]\n return GIN8",
"def wm2H(GIN8):\n GIN8 = ZbWC.sub(\"'\", '', GIN8)\n GIN8 = ZbWC.sub('\"', '', GIN8)\n if qIxc.syll != 1 and qIxc.pcfg != 1:\n GIN8 = ZbWC.sub('-', '',... | [
"0.75069165",
"0.7332281",
"0.72491384",
"0.72120154",
"0.71775293",
"0.71250457",
"0.71250457",
"0.7033929",
"0.6979432",
"0.6947343",
"0.69317347",
"0.6916192",
"0.68575984",
"0.6822161",
"0.6819472",
"0.6813037",
"0.6793792",
"0.6773581",
"0.67590386",
"0.6755103",
"0.6700... | 0.0 | -1 |
Remove emoticons from text and returns list of emotions present in text | def EGuR(l5Ny):
V22M = l5Ny.split()
SUvd = []
for GIN8 in V22M:
if GIN8 in AurQ:
SUvd.append(str(AurQ[GIN8]))
l5Ny = l5Ny.replace(GIN8, ' ')
return (l5Ny, SUvd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IGGZ(l5Ny):\n tyMy = ZbWC.compile(u'(' + u'|'.join((G1Hx for G1Hx in HC8C)) + u')')\n return tyMy.sub('', l5Ny)",
"def fB86(l5Ny):\n return [Npgh for Npgh in l5Ny if Npgh in ULO1]",
"def fIzb(l5Ny):\n iYc4 = []\n for JUOb in R4Ks.emoji(l5Ny):\n iYc4.append(JUOb['value'])\n l5Ny... | [
"0.8087785",
"0.7685179",
"0.7541245",
"0.7492489",
"0.7407253",
"0.7121087",
"0.710243",
"0.7088555",
"0.70107853",
"0.6965194",
"0.68306464",
"0.66902006",
"0.6654793",
"0.66544986",
"0.6651163",
"0.6636283",
"0.66157967",
"0.65518177",
"0.65216786",
"0.6492202",
"0.6474197... | 0.76798254 | 2 |
Return the type of a branch of self. | def cCcp(YKHO, jehQ):
WSpX = YKHO.branch_endpoint(-jehQ)
xyQH = YKHO.branch_endpoint(jehQ)
PLqk = YKHO.outgoing_branch(WSpX, 0, YKHO.get_switch_turning(WSpX))
JA5B = YKHO.switch_to_pants_curve(WSpX)
if PLqk == jehQ:
if JA5B > 0:
return njx8
else:
return Yn29
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDmS(YKHO):\n EVsw = jxQ2.cpx_encode\n mktQ = jxQ2.default_encoding\n return EVsw(YKHO._branch_type, mktQ)",
"def GQKl(YKHO, jehQ):\n gt1A = YKHO.branch_endpoint(jehQ)\n Ve1W = YKHO.branch_endpoint(-jehQ)\n if len(YKHO.outgoing_branches(gt1A[0], gt1A[1])) + len(YKHO.outgoing_branches(Ve1W[0... | [
"0.79371786",
"0.69753456",
"0.6603983",
"0.66018295",
"0.6546518",
"0.65248626",
"0.6512615",
"0.6512615",
"0.6512615",
"0.6482445",
"0.6446818",
"0.6440998",
"0.64249825",
"0.64049536",
"0.63815886",
"0.6293939",
"0.62737405",
"0.6257297",
"0.62432486",
"0.62432486",
"0.623... | 0.66841364 | 2 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.8059543",
"0.... | 0.8065137 | 12 |
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box. | def rIvV(hkxX):
for PXGI in dzni:
for Ko6S in '123456789':
S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]]
if len(S5Zo) == 1:
hkxX[S5Zo[0]] = Ko6S
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alHn(hkxX):\n for PXGI in dzni:\n jGiX = dict()\n for FlUN in PXGI:\n if hkxX[FlUN] in jGiX.keys():\n jGiX[hkxX[FlUN]].append(FlUN)\n else:\n jGiX[hkxX[FlUN]] = [FlUN]\n for LTzJ in jGiX.keys():\n qWPs = len(LTzJ)\n ... | [
"0.62930405",
"0.6072755",
"0.60026693",
"0.59532404",
"0.5922287",
"0.5888852",
"0.58878887",
"0.58687687",
"0.5833572",
"0.5765681",
"0.5738213",
"0.570907",
"0.5690142",
"0.56506014",
"0.5623856",
"0.5605741",
"0.5589746",
"0.55886596",
"0.55862284",
"0.5585212",
"0.558080... | 0.5254325 | 64 |
Iterate eliminate() and only_choice(). If at some point, there is a box with no available values, return False. If the sudoku is solved, return the sudoku. If after an iteration of both functions, the sudoku remains the same, return the sudoku. | def yimF(hkxX):
SGTU = False
while not SGTU:
sF3i = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1])
hkxX = zJeh(hkxX)
hkxX = rIvV(hkxX)
cbJ8 = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1])
SGTU = sF3i == cbJ8
if len([FlUN for FlUN in hkxX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(hkxX):\n hkxX = yimF(hkxX)\n if hkxX is False:\n return False\n if all((len(hkxX[KCHu]) == 1 for KCHu in oUSw)):\n return hkxX\n exwG, KCHu = min(((len(hkxX[KCHu]), KCHu) for KCHu in oUSw if len(hkxX[KCHu]) > 1))\n for BWXx in hkxX[KCHu]:\n dkel = hkxX.copy()\n d... | [
"0.73432094",
"0.7339246",
"0.73343647",
"0.7287361",
"0.72159153",
"0.7202255",
"0.7168442",
"0.7166892",
"0.716267",
"0.7160452",
"0.7135885",
"0.71329904",
"0.7107314",
"0.71036035",
"0.70997244",
"0.7084653",
"0.7081124",
"0.70707697",
"0.7067047",
"0.7065195",
"0.7048783... | 0.6941704 | 27 |
Restore us to a margintoassets ratio R within the limit (say, .5). Our current margin amount is M and assets amount is A. We need to sell some assets to pay off some debt. To do this, we sell some amount S of ETF. Let the fee per dollar of S sold be F. If we sell S, we pay FS in fees and get S in cash to pay down margi... | def cZTi(YKHO, CjKC, MvzV, OwA1, oKbq):
if YKHO.margin_to_assets() > (1 + BVxk) * OwA1:
efbi = (YKHO.margin - YKHO.assets * OwA1) / (1 - OwA1 - qmJ2 * OwA1)
EZpU = YKHO.__assets.sell(efbi, qmJ2, CjKC, MvzV, oKbq)
if EZpU > 0:
YKHO.margin = 0
assert YKHO.assets == 0, "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GS8x(YKHO, MvzV, yGjF):\n if YKHO.margin_to_assets() <= (1 + BVxk) * YKHO.personal_max_margin_to_assets_ratio(yGjF):\n return 0\n elif YKHO.margin_to_assets() == float('inf'):\n return YKHO.margin\n else:\n return YKHO.margin - YKHO.assets * YKHO.personal_max_margin_to_assets_rati... | [
"0.59284127",
"0.53946215",
"0.5233177",
"0.5233103",
"0.5222178",
"0.52113044",
"0.51852065",
"0.5165431",
"0.5129987",
"0.50875604",
"0.5085586",
"0.5085586",
"0.50832033",
"0.5078081",
"0.5062356",
"0.5005204",
"0.49728587",
"0.49394542",
"0.49160433",
"0.48967844",
"0.488... | 0.5851444 | 1 |
reject an existing record from REJECTED state with no optional replacedBy | def rYHj():
with open('./src/test/cve_tests/cve_record_fixtures/rejectExisting.json') as wM3v:
nPrm = qQXR.load(wM3v)
Ylbp = G4JS.put(f'{sEAN.AWG_BASE_URL}{ACPD}/CVE-1999-0008/reject', headers=BfDw.BASE_HEADERS, json=nPrm)
assert Ylbp.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufMq(YKHO):\n pass",
"def ufMq(YKHO):\n YKHO.save()",
"def ufMq(YKHO):\n return",
"def sRPb(YKHO):\n YKHO.reject()",
"def PcFS(YKHO):\n YKHO.ensure_one()\n YKHO.state = 'reject'",
"def IR41(cQZk, QePW, SR0I):\n for YEnM in SR0I:\n YEnM.reject(by=QePW.user, description='Rej... | [
"0.70427644",
"0.7018743",
"0.6989868",
"0.69792026",
"0.63086706",
"0.62770635",
"0.62642694",
"0.6048177",
"0.5879967",
"0.5869172",
"0.58613974",
"0.58334213",
"0.5794588",
"0.57826823",
"0.57638556",
"0.57574415",
"0.5756403",
"0.57383305",
"0.5735599",
"0.5734912",
"0.57... | 0.5995702 | 8 |
Poll status of operation so long as operation is incomplete and we have an endpoint to query. | async def _poll(YKHO):
while not YKHO.finished():
await YKHO._delay()
await YKHO.update_status()
if _j4m(YKHO._operation.status):
raise GJ4i('Operation failed or canceled')
if YKHO._operation.should_do_final_get():
if YKHO._operation.method == 'POST' and YKHO._operation.locat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cs5Q(YKHO, hTqE):\n oPhP = YKHO.service.operations().get(name=hTqE).execute()\n while not oPhP.get('done', False):\n S0MI.debug(f'Polling operation {hTqE} ...')\n ITS7.sleep(5)\n oPhP = YKHO.service.operations().get(name=hTqE).execute()\n _oWe.pprint(oPhP)",
"def Cs5Q(YKHO):... | [
"0.7567622",
"0.72695",
"0.7233513",
"0.6797445",
"0.6773569",
"0.66622716",
"0.66622716",
"0.65974027",
"0.6554299",
"0.6549512",
"0.64713806",
"0.64713806",
"0.64707685",
"0.6455358",
"0.6454511",
"0.64329743",
"0.64329743",
"0.642509",
"0.6417499",
"0.6417217",
"0.641481",... | 0.7635282 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(pioB, YKHO).__init__(*qIxc, **c_sp)
if YKHO.latitude is None:
YKHO.latitude = 0.0
if YKHO.longitude is None:
YKHO.longitude = 0.0
if YKHO.mapxy is None:
YKHO.mapxy = u3d1.msg.Point32()
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8165841",
"0.7719984",
"0.7719984",
"0.7652579",
"0.75723845",
"0.75442773",
"0.7485476",
"0.74710065",
"0.7458108",
"0.7446829",
"0.744584",
"0.7433617",
"0.74152017",
"0.7408084",
"0.7391839",
"0.7375146",
"0.73632765",
"0.7326098",
"0.732388",
"0.732388",
"0.732388",
... | 0.0 | -1 |
Return if vent is fully closed. | def SEEh(YKHO) -> bool:
return YKHO._zone['state'] == _tcF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WRTf(YKHO):\n pass",
"def msNV(YKHO):\n return YKHO._state == YKHO.STATE_CLOSED",
"def SEEh(YKHO):\n return not YKHO.is_open()",
"def SEEh(YKHO):\n QTBn = YKHO._tuya.state()\n if QTBn != 2 and YKHO._was_closing:\n return True\n if QTBn != 1 and YKHO._was_opening:\n return ... | [
"0.75018555",
"0.7477925",
"0.7476222",
"0.74404824",
"0.7439614",
"0.7436646",
"0.7388589",
"0.7373459",
"0.73477787",
"0.7322001",
"0.731472",
"0.7276069",
"0.72720516",
"0.725911",
"0.7256769",
"0.7252354",
"0.7248027",
"0.7245281",
"0.7245281",
"0.7237901",
"0.72348267",
... | 0.6607776 | 90 |
Construct a Pareto set. Stores a Pareto set and calculates the cell bounds covering the nondominated region. The latter is needed for certain multiobjective acquisition functions. | def FIMM(YKHO, fuBA, gwAu=0):
super(OCa6, YKHO).__init__()
YKHO.threshold = gwAu
YKHO.Y = fuBA
YKHO.bounds = mRNb.empty(fuBA.shape[1], wHI0)
YKHO.front = GXNK(oyIN.zeros((0, fuBA.shape[1])), 'pass')
YKHO.update() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYdc(nPrm, Q_2E, OCbv=False):\n Aofo = Q_2E(nPrm, OCbv)\n UrXw = nPrm.tolist()\n SedN = []\n UUfz = []\n for YRbF in range(len(UrXw)):\n if Aofo[YRbF] == True:\n SedN.append(UrXw[YRbF])\n else:\n UUfz.append(UrXw[YRbF])\n SedN = oyIN.array(SedN)\n UUfz =... | [
"0.5552493",
"0.5512282",
"0.54330474",
"0.5404513",
"0.53728503",
"0.53506273",
"0.53299314",
"0.532849",
"0.5319309",
"0.5291755",
"0.52893203",
"0.5284336",
"0.52497953",
"0.52312547",
"0.521617",
"0.5181012",
"0.51653886",
"0.51512194",
"0.5116579",
"0.50916225",
"0.50675... | 0.47371334 | 61 |
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.0 | -1 |
Return the current stream position. | def WeOw(YKHO):
if not YKHO._seekable:
raise STYL('tell')
with YKHO._seek_lock:
return YKHO._seek | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO):\n YKHO.pos = YKHO.f.tell()\n return YKHO.pos",
"def uKWF(YKHO):\n YKHO.position_index = YKHO.file_obj.tell()\n return YKHO.position_index",
"def WeOw(YKHO):\n YKHO._check_open()\n return YKHO.position",
"def Iuzb(YKHO):\n return YKHO.read('position')",
"def WeOw(YKHO):\... | [
"0.83263814",
"0.8157716",
"0.77758145",
"0.7734462",
"0.77171814",
"0.76472354",
"0.7638496",
"0.7636002",
"0.7599255",
"0.7599255",
"0.7568252",
"0.7563772",
"0.75452304",
"0.75449395",
"0.75169706",
"0.75120246",
"0.75120246",
"0.74985075",
"0.74985075",
"0.74929726",
"0.7... | 0.0 | -1 |
Return the current value of the Variable. `_resolved_value` takes precedence over `_value`. | def BWXx(YKHO):
return YKHO._resolved_value or YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n if isinstance(YKHO._value, iQnE):\n return YKHO._value.value()\n else:\n return YKHO._value",
"def BWXx(YKHO):\n if YKHO._cached_value is not None:\n return YKHO._cached_value\n with IPme.colocate_with(None, ignore_existing=True):\n return YKHO._read_vari... | [
"0.7656915",
"0.76434946",
"0.74100786",
"0.73635185",
"0.7327659",
"0.7119431",
"0.70680374",
"0.6867555",
"0.6843777",
"0.6825553",
"0.6806044",
"0.6763989",
"0.67585725",
"0.6756879",
"0.67132795",
"0.6677587",
"0.66609865",
"0.66609865",
"0.6654758",
"0.664307",
"0.660626... | 0.78698605 | 0 |
Boolean for whether the Variable has been resolved. Variables only need to be resolved if they contain lookups. | def s2ni(YKHO):
if YKHO.needs_resolution:
return YKHO._resolved_value is not None
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L8VQ(YKHO) -> bool:\n if YKHO._value is not None or YKHO._cache_value is not None:\n return True\n elif YKHO.dependency:\n return YKHO.dependency.is_resolved\n else:\n return False",
"def s2ni(YKHO) -> bool:\n return YKHO._resolved",
"def L8VQ(YKHO) -> bool:\n for X2PW i... | [
"0.79671985",
"0.7580317",
"0.75126004",
"0.748333",
"0.74188006",
"0.70426273",
"0.7021986",
"0.69465685",
"0.6915765",
"0.68162745",
"0.676365",
"0.675528",
"0.66731435",
"0.66538996",
"0.65080667",
"0.648026",
"0.645769",
"0.64463717",
"0.6387521",
"0.6353986",
"0.6341359"... | 0.78202724 | 1 |
Return a path of file based on project folder | def ujvq(YKHO, t_yv: str) -> str:
return pmON.join(pmON.abspath(''), t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwOA(YKHO, alsS=None):\n tk5Y = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', '..'))\n if alsS:\n return Hy7s.path.join(tk5Y, alsS)\n else:\n return tk5Y",
"def edy0(YKHO, VPKF):\n AGPF = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n return Hy7s.path.join(AGPF, V... | [
"0.82346696",
"0.78751713",
"0.7846132",
"0.7781403",
"0.7781034",
"0.7683896",
"0.7628518",
"0.762422",
"0.76154256",
"0.7539839",
"0.7536717",
"0.7532666",
"0.74806136",
"0.7456131",
"0.74427557",
"0.7437791",
"0.74320436",
"0.7423234",
"0.74037075",
"0.73902917",
"0.733401... | 0.0 | -1 |
Return True if there are any legal moves, and False otherwise. | def m4cx(Cs6h):
if gfID(Cs6h):
return True
for rdlD in Cs6h:
if any((rdlD[YRbF] == rdlD[YRbF + 1] for YRbF in range(len(rdlD) - 1))):
return True
for YRbF, wEf2 in enumerate(Cs6h[0]):
iVRZ = iYZ_(Cs6h, YRbF)
if any((iVRZ[YRbF] == iVRZ[YRbF + 1] for YRbF in range(l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SLKL(YKHO):\n oLdq = YKHO.remaining_moves()\n return len(oLdq) != 0",
"def TlNp(YKHO):\n for EhuJ in YKHO._available_moves:\n if YKHO._available_moves[EhuJ] != 0:\n return True\n return False",
"def NoHi(YKHO, BZN_):\n if BZN_ not in YKHO.possible_moves:\n return Fal... | [
"0.83402354",
"0.8339857",
"0.80544025",
"0.79487383",
"0.7939989",
"0.7889446",
"0.7852003",
"0.7808171",
"0.77416515",
"0.77207947",
"0.7713132",
"0.76158583",
"0.76158583",
"0.7600187",
"0.75958174",
"0.75896364",
"0.75713295",
"0.75246114",
"0.74687296",
"0.74673057",
"0.... | 0.74426126 | 24 |
Run a function over `x` in batches. | def tYvz(WKvO, MCGS, Ep8u=128, **B2fa):
__n6 = ZylS.data.Dataset.from_tensor_slices(WKvO)
o4Jx = []
for YjKt in __n6.batch(Ep8u):
o4Jx.append(MCGS(YjKt, **B2fa))
return oyIN.concatenate(o4Jx, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PO_c(JfyU, Ep8u=1000):\n\n def eHNT(EcVT):\n dixj = []\n for A3OT in JnnK(len(EcVT), Ep8u):\n dixj.append(JfyU(EcVT[A3OT]))\n if len(dixj) == 0:\n return []\n else:\n return oyIN.concatenate(dixj, axis=0)\n return eHNT",
"def xhNt(nPrm, htZe,... | [
"0.65642625",
"0.64157003",
"0.6395879",
"0.6378367",
"0.6169147",
"0.61355567",
"0.6079271",
"0.60149837",
"0.5989133",
"0.5989133",
"0.59701043",
"0.59508973",
"0.59266394",
"0.5919544",
"0.5919544",
"0.5919544",
"0.59142363",
"0.59120923",
"0.58660185",
"0.5784686",
"0.576... | 0.75509983 | 0 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
The license specification required as part of a license commitment. Structure is documented below. | def t2Rq(YKHO) -> h8nf[qe4Y.Input['RegionCommitmentLicenseResourceArgs']]:
return qe4Y.get(YKHO, 'license_resource') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def voYm():\n KeQe = {}\n KeQe['name'] = 'cc-by-4.0'\n KeQe['url'] = 'https://creativecommons.org/licenses/by/4.0/'\n KeQe['description'] = 'The content can be shared and adapted but you must give appropriate credit and cannot restrict access to others.'\n return KeQe",
"def license(YK... | [
"0.7588521",
"0.7533752",
"0.70165676",
"0.699743",
"0.69931",
"0.69931",
"0.6974201",
"0.69522685",
"0.6945968",
"0.69113976",
"0.6893721",
"0.68658215",
"0.68658215",
"0.68658215",
"0.6853685",
"0.68384206",
"0.68164694",
"0.6814801",
"0.68138176",
"0.68138176",
"0.6800855"... | 0.6229769 | 46 |
URL of the region where this commitment may be used. | def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGAm(YKHO):\n return YKHO._region_link",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def ... | [
"0.7056157",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",... | 0.0 | -1 |
Unique identifier for the resource. | def KnQj(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'commitment_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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')",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO):\n raise NotImplementedError... | [
"0.8354215",
"0.8354215",
"0.8354215",
"0.8300695",
"0.8296032",
"0.8294476",
"0.8183692",
"0.80883145",
"0.8008638",
"0.8008638",
"0.8008638",
"0.8008638",
"0.8008638",
"0.79871327",
"0.79709333",
"0.79709333",
"0.79709333",
"0.79709333",
"0.79709333",
"0.7952111",
"0.781961... | 0.0 | -1 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
Commitment end time in RFC3339 text format. | def Tetj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'end_timestamp') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxHy(YKHO):\n if YKHO.__end_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__end_time) / 1000).isoformat()",
"def C7pn(YKHO):\n return YKHO._end.strftime('%H:%M:%S')",
"def M4HV(YKHO):\n return iaGK(YKHO.get('EndDateTime'))",
"def wirM(YKHO) -> str:\n return YKHO.en... | [
"0.6983863",
"0.68944716",
"0.6852297",
"0.67919105",
"0.6687713",
"0.6659779",
"0.6641624",
"0.6595651",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6381068",
"0.63460916",
"0.6321543",
"0.6318177",
"0.6275333",
... | 0.0 | -1 |
The license specification required as part of a license commitment. Structure is documented below. | def t2Rq(YKHO) -> h8nf[qe4Y.Input['RegionCommitmentLicenseResourceArgs']]:
return qe4Y.get(YKHO, 'license_resource') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def voYm():\n KeQe = {}\n KeQe['name'] = 'cc-by-4.0'\n KeQe['url'] = 'https://creativecommons.org/licenses/by/4.0/'\n KeQe['description'] = 'The content can be shared and adapted but you must give appropriate credit and cannot restrict access to others.'\n return KeQe",
"def license(YK... | [
"0.7588521",
"0.7533752",
"0.70165676",
"0.699743",
"0.69931",
"0.69931",
"0.6974201",
"0.69522685",
"0.6945968",
"0.69113976",
"0.6893721",
"0.68658215",
"0.68658215",
"0.68658215",
"0.6853685",
"0.68384206",
"0.68164694",
"0.6814801",
"0.68138176",
"0.68138176",
"0.6800855"... | 0.6229769 | 47 |
URL of the region where this commitment may be used. | def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGAm(YKHO):\n return YKHO._region_link",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def ... | [
"0.7056157",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",... | 0.0 | -1 |
Unique identifier for the resource. | def KnQj(YKHO) -> qe4Y.Output[int]:
return qe4Y.get(YKHO, 'commitment_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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')",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO):\n raise NotImplementedError... | [
"0.8354215",
"0.8354215",
"0.8354215",
"0.8300695",
"0.8296032",
"0.8294476",
"0.8183692",
"0.80883145",
"0.8008638",
"0.8008638",
"0.8008638",
"0.8008638",
"0.8008638",
"0.79871327",
"0.79709333",
"0.79709333",
"0.79709333",
"0.79709333",
"0.79709333",
"0.7952111",
"0.781961... | 0.0 | -1 |
An optional description of this resource. | def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
Commitment end time in RFC3339 text format. | def Tetj(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'end_timestamp') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxHy(YKHO):\n if YKHO.__end_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__end_time) / 1000).isoformat()",
"def C7pn(YKHO):\n return YKHO._end.strftime('%H:%M:%S')",
"def M4HV(YKHO):\n return iaGK(YKHO.get('EndDateTime'))",
"def wirM(YKHO) -> str:\n return YKHO.en... | [
"0.6983863",
"0.68944716",
"0.6852297",
"0.67919105",
"0.6687713",
"0.6659779",
"0.6641624",
"0.6595651",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6529017",
"0.6381068",
"0.63460916",
"0.6321543",
"0.6318177",
"0.6275333",
... | 0.0 | -1 |
The license specification required as part of a license commitment. Structure is documented below. | def t2Rq(YKHO) -> qe4Y.Output[h8nf['outputs.RegionCommitmentLicenseResource']]:
return qe4Y.get(YKHO, 'license_resource') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def voYm():\n KeQe = {}\n KeQe['name'] = 'cc-by-4.0'\n KeQe['url'] = 'https://creativecommons.org/licenses/by/4.0/'\n KeQe['description'] = 'The content can be shared and adapted but you must give appropriate credit and cannot restrict access to others.'\n return KeQe",
"def license(YK... | [
"0.7588521",
"0.7533752",
"0.70165676",
"0.699743",
"0.69931",
"0.69931",
"0.6974201",
"0.69522685",
"0.6945968",
"0.69113976",
"0.6893721",
"0.68658215",
"0.68658215",
"0.68658215",
"0.6853685",
"0.68384206",
"0.68164694",
"0.6814801",
"0.68138176",
"0.68138176",
"0.6800855"... | 0.61259764 | 55 |
URL of the region where this commitment may be used. | def zn0c(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGAm(YKHO):\n return YKHO._region_link",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def ... | [
"0.7056157",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",
"0.68939555",... | 0.6520199 | 31 |