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 |
|---|---|---|---|---|---|---|
Create a string representation of a FritzCallForwardingSwitch. | def zAg0(YKHO):
return '%s --> %s: %s' % (YKHO.from_number, YKHO.to_number, YKHO.enabled) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '<Switch name=\"{0}\" switch=\"{1}\" />'.format(YKHO.name, YKHO.switch.group_addr_str())",
"def zAg0(YKHO):\n return 'Flow(sip:{} dip:{} sport:{} dport{})'.format(YKHO.fr_flow_sip_l, YKHO.fr_flow_dip_l, YKHO.fr_flow_sport, YKHO.fr_flow_dport)",
"def yLCI(YKHO):\n return '{}.{}... | [
"0.6221744",
"0.61382747",
"0.598509",
"0.59504807",
"0.59335953",
"0.5919905",
"0.5776533",
"0.56621337",
"0.56556",
"0.5636727",
"0.5617768",
"0.5521054",
"0.5500576",
"0.5467337",
"0.5455953",
"0.5425164",
"0.54010373",
"0.53993887",
"0.5379205",
"0.53720737",
"0.5364814",... | 0.5240786 | 30 |
Return a randomly initialized hidden state tuple (h, pred, gamma) | def SqHK(YKHO, yDqo=ht2j.float32):
begE = YKHO.device
Ep8u, nMvt = (YKHO.batch_size, YKHO.k)
MKlR = YKHO.inner_rnn.init_hidden() * YKHO.pred_init
nvEb = ht2j.ones(Ep8u, nMvt, *YKHO.input_size, dtype=yDqo) * YKHO.pred_init
EJus = [Ep8u, nMvt] + list(YKHO.gamma_size)
KMvS = oyIN.absolute(oyIN.rand... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o():\n global HMC_MOM\n return dict(randstate=oyIN.random.get_state(), mom=rj9h)",
"def MP8d(YKHO):\n OwND = ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size)\n return OwND",
"def MP8d(YKHO):\n D5BU = ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size)\n return ... | [
"0.6693352",
"0.66885066",
"0.6587457",
"0.64796203",
"0.64765036",
"0.6470142",
"0.64501524",
"0.64501524",
"0.64501524",
"0.64199156",
"0.6403299",
"0.6353586",
"0.63429105",
"0.63362277",
"0.6321232",
"0.6236399",
"0.6206321",
"0.6193823",
"0.616901",
"0.6150956",
"0.61509... | 0.71353424 | 0 |
Print the maximum well depth | def XkHD(YKHO):
Hqoa = oyIN.max(YKHO.get_well_depth_image())
return Hqoa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qi10(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_depth')",
"def rb7a(YKHO):\n return YKHO._max_depth",
"def qi10(YKHO) -> int:\n return 0",
"def UxTt(YKHO):\n pass",
"def UxTt(YKHO):\n return YKHO.well.well_depth if YKHO.well is not None else bTw2",
"def tALi(YKHO):\n return YKHO.MAX... | [
"0.7114265",
"0.70133674",
"0.70054543",
"0.6930168",
"0.68504864",
"0.6815906",
"0.6747816",
"0.6735769",
"0.66701",
"0.65934503",
"0.65464044",
"0.65301305",
"0.6522725",
"0.6513898",
"0.6355805",
"0.63549274",
"0.6348783",
"0.6279597",
"0.6252909",
"0.6245764",
"0.6213553"... | 0.7055147 | 1 |
Create an easiertoread YAMl file from a JSON one | def h61_(apum, _RR0, nmYv=True):
QjUf = eJb6.load(open(apum))
if nmYv == True:
QjUf['background'] = 'medium'
eJb6.dump(QjUf, open(_RR0, 'w'), default_flow_style=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnKZ(YKHO):\n zgjV = TF2o.loads(YKHO.jfile_path)\n with xDSY.open(YKHO.yfile_path, 'w', encoding='utf8') as eHNT:\n eJb6.dump(zgjV, eHNT, default_flow_style=False, allow_unicode=True)",
"def sD1a(nHI3, PcZo):\n Cc00 = {}\n Cc00['experiment'] = 'toy'\n with open(nHI3, 'r') as Ga6V:\n ... | [
"0.6179469",
"0.60503685",
"0.5671166",
"0.56228137",
"0.5493717",
"0.54805946",
"0.53973895",
"0.5394433",
"0.53698105",
"0.53600705",
"0.5355141",
"0.5326113",
"0.5312337",
"0.5307423",
"0.528752",
"0.5275285",
"0.52453",
"0.5215689",
"0.5200135",
"0.5156951",
"0.5153074",
... | 0.4848418 | 68 |
Create a Pandeia wrapper object from a dictionary rather than a YAML file | def FIMM(YKHO, UMV5):
YKHO.pandeia_params = UMV5
YKHO.prep_and_run() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'PipelineDefinition':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def OXMy(Emd4, DWkG, Q6kx):\n r8hN = DWkG.construct_mapping(Q6kx)\n U5bT = Emd4()\n for G1Hx in Emd4._ya... | [
"0.6443686",
"0.6223035",
"0.6223035",
"0.61783344",
"0.6173958",
"0.609547",
"0.60645956",
"0.6052679",
"0.6045101",
"0.60157603",
"0.6002219",
"0.5966936",
"0.58819526",
"0.58373886",
"0.58032596",
"0.57858056",
"0.5744804",
"0.57271725",
"0.5717609",
"0.5712735",
"0.570796... | 0.0 | -1 |
Given a filename, returns the locale it applies to | def Bmkt(FYKK):
return FYKK.split(Hy7s.sep)[-3] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2TO(Ux0P: str) -> str:\n return GkAb(Ux0P).resolve().with_suffix('').name",
"def rDcu():\n return 'he'",
"def xTXV(YKHO, rQow, Ux0P):\n return Hy7s.path.join(YKHO.get_localised_dir(rQow), Ux0P)",
"def rDcu():\n G0mS = QePW.args.get('locale')\n lgvV = P4t4.config['LANGUAGES']\n if G0mS ... | [
"0.72358316",
"0.67703694",
"0.6676295",
"0.61455345",
"0.61441773",
"0.6122228",
"0.6095614",
"0.60787696",
"0.6077188",
"0.59768355",
"0.5964287",
"0.5899094",
"0.5898608",
"0.58685327",
"0.5831718",
"0.5797318",
"0.5732347",
"0.57126147",
"0.5694869",
"0.56353456",
"0.5634... | 0.7120739 | 1 |
Initialize app with test user | def SiXo(YJv1):
if not YJv1.query.first():
CBIr = YJv1(firstName='test', lastName='test', position='test', email='test@test')
NCls.session.add(CBIr)
NCls.session.commit()
bo34.info('Added test user')
return CBIr
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.user = {'Email': 'user@example.com', 'Password': 'pass1234', 'Confirm Password': 'pass1234'}\n YKHO.app = LUif('testing')\n YKHO.client = YKHO.app.test_client",
"def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1:... | [
"0.7859173",
"0.7719847",
"0.75198776",
"0.75082",
"0.7409674",
"0.73578227",
"0.729252",
"0.7176892",
"0.71230376",
"0.70606774",
"0.702537",
"0.70012456",
"0.6986204",
"0.6968085",
"0.6962389",
"0.6954868",
"0.69530106",
"0.69463384",
"0.6934003",
"0.6904392",
"0.6902413",
... | 0.0 | -1 |
returns if a file is allowed to be uploaded to the server | def XT0o(Ux0P: str) -> bool:
if Ux0P is None or Ux0P.strip() is None:
return False
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in wk5E.config['FILE_ALLOWED_EXTENSIONS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in YKHO._allowed_ext:\n return False\n return True",
"def jd1p(YKHO, Ux0P):\n for ZI14 in ['.changes', '.dsc', '.tar.gz', '.diff.gz', '.deb', '.udeb', '.tar.bz2', '.tar.xz']:\n if Ux0P.endswith(ZI14):\n r... | [
"0.75032014",
"0.724088",
"0.71501845",
"0.70646673",
"0.7024312",
"0.70219666",
"0.6865864",
"0.6859579",
"0.67598355",
"0.6755219",
"0.67502594",
"0.6730413",
"0.67181337",
"0.6699822",
"0.66490173",
"0.6594781",
"0.6584769",
"0.6572544",
"0.65715975",
"0.65505344",
"0.6536... | 0.67332184 | 11 |
Get upper andlower quantile of dataframe | def Qj6Z(jQ3Z, gqRb=0.1, ODP9=0.9):
hbUd = jQ3Z.quantile(gqRb)
iv7Q = jQ3Z.quantile(ODP9)
print(hbUd)
print(iv7Q)
return (jQ3Z[jQ3Z < hbUd], jQ3Z[jQ3Z > iv7Q]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jviO(nPrm):\n vexM = oyIN.percentile(nPrm, [25, 50, 75])\n return (vexM[0], vexM[1], vexM[2])",
"def fjLP(NCls: pd.DataFrame, fvDH: str) -> rLdf.DataFrame:\n bGrB, Pyrc = rLdf.qcut(x=NCls[fvDH], q=[0.25, 0.75], retbins=True, duplicates='drop')\n hbUd = Pyrc[0]\n iv7Q = Pyrc[1]\n AUbx = iv7Q... | [
"0.7058964",
"0.69517267",
"0.69203097",
"0.6902817",
"0.6843194",
"0.6779333",
"0.6776067",
"0.66477454",
"0.6614946",
"0.6611694",
"0.6608562",
"0.65918976",
"0.6586586",
"0.657616",
"0.6555758",
"0.6514577",
"0.6505057",
"0.6477352",
"0.6468778",
"0.6468122",
"0.6463169",
... | 0.77326363 | 0 |
returns zeropoint for the SDSS magnitude system | def Zz9J():
return 22.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L41k(YKHO):\n Bc4p = 0.5 * YKHO.rms * YKHO.ndstep\n I1iR = 0.1 * YKHO.ws.coef[1]\n Mjsx = YKHO.ws.coef * 0.0\n Mjsx[0] = Bc4p\n Mjsx[1] = I1iR\n YKHO.ws = aevO.findxcor(YKHO.xarr, YKHO.farr, YKHO.swarr, YKHO.sfarr, YKHO.ws, dcoef=Mjsx, ndstep=YKHO.ndstep, best=False, inttype='interp')\n YK... | [
"0.6556048",
"0.6517042",
"0.6399438",
"0.6339326",
"0.63129085",
"0.6280735",
"0.6280735",
"0.62292665",
"0.6099617",
"0.6089385",
"0.60659134",
"0.604084",
"0.6019864",
"0.60120445",
"0.6000809",
"0.5986735",
"0.5980886",
"0.5979576",
"0.593854",
"0.5934568",
"0.5932934",
... | 0.6031223 | 12 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)",
"def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] ... | [
"0.689674",
"0.656424",
"0.64403737",
"0.6319396",
"0.62971723",
"0.61840755",
"0.6142097",
"0.61261773",
"0.61261773",
"0.6119965",
"0.602972",
"0.60253984",
"0.6020756",
"0.59879434",
"0.5970187",
"0.5970187",
"0.59333944",
"0.59333944",
"0.59187686",
"0.5890526",
"0.587090... | 0.5653365 | 30 |
Initialize the user's bank account details. | def FIMM(YKHO, pl8n, dDSB, wMl7):
YKHO._bank_name = pl8n
YKHO._account_num = dDSB
YKHO._balance = wMl7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__account_number = YKHO.__generate_acct_number()\n YKHO.__account_pin = YKHO.__generate_pin()\n YKHO.card_number = fExc.BIN + YKHO.__account_number + YKHO.__calculate_checksum(fExc.BIN + YKHO.__account_number)\n YKHO.__balance = 0\n YKHO.__display_login_info()",
"def FIMM(YK... | [
"0.7241929",
"0.6872748",
"0.66344535",
"0.66015023",
"0.6580289",
"0.6542164",
"0.64426255",
"0.64356387",
"0.6431768",
"0.64041346",
"0.6368054",
"0.6367499",
"0.6365742",
"0.6344973",
"0.6334896",
"0.63194376",
"0.62900966",
"0.62642276",
"0.62319744",
"0.6179763",
"0.6171... | 0.6877421 | 1 |
Return string of Account details. | def zAg0(YKHO):
return f'bank name: {YKHO._bank_name}\naccount_num: {YKHO._account_num}\nbalance: {YKHO._balance}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpuL(YKHO):\n pass",
"def VRAt(YKHO):\n bD7m, NArs, MOPg = YKHO.request('/account/info', method='GET')\n return YKHO.rest_client.GET(bD7m, MOPg)",
"def zAg0(YKHO):\n return '\\nBasic Account\\nAccount Name: {self.name}\\nAccount Number: {self.acNum:03d}\\nAvailable Balance: £{self.balance:.2f}'... | [
"0.7953251",
"0.7683874",
"0.75335044",
"0.7508491",
"0.7413034",
"0.7204539",
"0.7199108",
"0.7199108",
"0.7189947",
"0.71285456",
"0.7105496",
"0.7095678",
"0.70550644",
"0.70322794",
"0.7027024",
"0.69610566",
"0.6913635",
"0.6913635",
"0.6880421",
"0.6878685",
"0.6819799"... | 0.7172522 | 9 |
Gets the color name for the index | def unja(V3Tb):
v06U = _Fei.ALL_HUE_VALUES.keys()
v06U.sort()
Hafq = v06U[V3Tb]
WRlh = _Fei.ALL_HUE_VALUES[Hafq]
return WRlh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cLzR(YKHO):\n return YKHO._item.get('name_color')",
"def PICn(YKHO, Q6kx: Node) -> str:\n or8S = hash(Q6kx.get_kind_name()) % len(YKHO.colors_)\n return YKHO.colors_[or8S]",
"def SvKF(YKHO):\n return YKHO._item.get('name_color')",
"def Q0HP(YKHO, d6pt) -> golO:\n ...",
"def KGGj(G1Hx):\n... | [
"0.7261607",
"0.7235982",
"0.71976054",
"0.68193156",
"0.6806677",
"0.6746472",
"0.66673625",
"0.66234034",
"0.6597104",
"0.6589163",
"0.65766245",
"0.65323466",
"0.64205915",
"0.63300157",
"0.6327064",
"0.6323244",
"0.6313302",
"0.6256599",
"0.62456757",
"0.6224885",
"0.6206... | 0.5985902 | 37 |
The constructor of the LinearLayer takes the following parameters | def FIMM(YKHO, GhuM, _LFN, pXUk='plain'):
YKHO.m = GhuM[1]
YKHO.params = YKHO.initialize_parameters(GhuM[0], _LFN, pXUk)
YKHO.Z = oyIN.zeros((YKHO.params['W'].shape[0], GhuM[1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(q5Lv, YKHO).__init__()",
"def FIMM(YKHO, *qIxc):\n super(byfJ, YKHO).__init__()\n YKHO.fc = U78l.Linear(*qIxc)",
"def FIMM(YKHO, DYuh, tYiq, **B2fa):\n mZQD.__init__(YKHO, U78l.Linear(DYuh, tYiq, bias=False), **B2fa)",
"def FIMM(YKHO, ykHV, BNrd, XHuv, A7LZ):\n super(Au... | [
"0.72415245",
"0.70467407",
"0.6854869",
"0.6816551",
"0.6781154",
"0.6741812",
"0.6712872",
"0.6693825",
"0.6680953",
"0.6650694",
"0.66388404",
"0.6591748",
"0.65694875",
"0.6560593",
"0.6550114",
"0.6548804",
"0.65367305",
"0.65367305",
"0.6531216",
"0.6513397",
"0.6510700... | 0.0 | -1 |
Helper function to initialize some form of random weights and Zero biases | def K55i(YKHO, Ya2q, _LFN, pXUk='plain'):
NArs = dict()
if pXUk == 'plain':
NArs['W'] = oyIN.random.randn(_LFN, Ya2q) * 0.01
elif pXUk == 'xavier':
NArs['W'] = oyIN.random.randn(_LFN, Ya2q) / oyIN.sqrt(Ya2q)
elif pXUk == 'he':
NArs['W'] = oyIN.random.randn(_LFN, Ya2q) * oyIN.sqrt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XXxF(YKHO):\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])]",
"def e45a(YKHO):\n YKHO.weights = []\n YKHO.bias = []\n for YRbF, tpio in enumerate(YK... | [
"0.8071329",
"0.7991666",
"0.797467",
"0.7896712",
"0.785161",
"0.7780257",
"0.77781427",
"0.77634954",
"0.7751093",
"0.7746057",
"0.7732144",
"0.77162975",
"0.7712275",
"0.76918685",
"0.76636875",
"0.7593231",
"0.75775254",
"0.7546798",
"0.7546798",
"0.75440156",
"0.75395465... | 0.0 | -1 |
The consturctor of the sigmoid/logistic activation layer takes in the following arguments | def FIMM(YKHO, ROpF):
YKHO.A = oyIN.zeros(ROpF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))",
"def YDYE(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n retu... | [
"0.7784138",
"0.77828115",
"0.76102406",
"0.7416088",
"0.7416088",
"0.7414458",
"0.7406703",
"0.7384818",
"0.7364252",
"0.7341665",
"0.73181486",
"0.7303742",
"0.7299681",
"0.7293053",
"0.727587",
"0.727587",
"0.727587",
"0.727587",
"0.727587",
"0.727587",
"0.7273106",
"0.7... | 0.0 | -1 |
Computes the euclidean distance between two tensorflow variables | def tXKv(WKvO, LVAh, vsK8=True):
Csk6 = ZylS.square(ZylS.subtract(WKvO, LVAh))
Csk6 = ZylS.reduce_sum(Csk6, axis=1)
if vsK8:
AjzU, cIIR = ZylS.nn.top_k(input=Csk6, k=100)
else:
AjzU, cIIR = ZylS.nn.top_k(input=-Csk6, k=100)
AjzU = -1.0 * AjzU
return AjzU * 2.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(J9oU, QCf9):\n J9oU = ZylS.convert_to_tensor(J9oU)\n QCf9 = ZylS.convert_to_tensor(QCf9)\n Ayfi = ZylS.sqrt(ZylS.reduce_sum(ZylS.square(J9oU - QCf9), axis=-1))\n return Ayfi",
"def m5ND(WKvO, LVAh):\n with ZylS.name_scope('radical_euclidean'):\n return ZylS.square(ZylS.sub(WKvO, LV... | [
"0.79146487",
"0.7687573",
"0.75993615",
"0.7356422",
"0.7153242",
"0.70788014",
"0.69987154",
"0.697338",
"0.69715846",
"0.69384056",
"0.690804",
"0.6867585",
"0.6864654",
"0.68478847",
"0.6819332",
"0.6801007",
"0.67810655",
"0.67774683",
"0.67685515",
"0.6707438",
"0.66946... | 0.7411859 | 3 |
Encode given data as a DID of this type. If `scaling` is ``False`` no scaling of datas is performed. >>> foo = db.get_did_by_name('Foo') | def kLcZ(YKHO, nPrm, X6rE=True):
ERVO = yhRz(nPrm, YKHO._codec['datas'], YKHO._codec['formats'], X6rE)
ERVO |= 128 << 8 * YKHO._length
ERVO = hex(ERVO)[4:].rstrip('L')
return MRxC.unhexlify(ERVO)[:YKHO._length] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yhRz(YKHO, nPrm):\n if YKHO.unit == 'char':\n nPrm = YKHO.char_encoding(nPrm)\n elif YKHO.unit == 'char-ngram':\n nPrm = YKHO.ngram_encoding(nPrm)\n elif YKHO.unit == 'morpheme' or YKHO.unit == 'oracle':\n nPrm = YKHO.morpheme_encoding(nPrm)\n else:\n nPrm = YKHO.data_to... | [
"0.5016485",
"0.49834743",
"0.49751264",
"0.49213058",
"0.4877217",
"0.47953728",
"0.47856757",
"0.47749007",
"0.4741698",
"0.47310862",
"0.4730063",
"0.47281894",
"0.47281894",
"0.47180304",
"0.4695116",
"0.46833947",
"0.46808097",
"0.4680291",
"0.4608045",
"0.4579615",
"0.4... | 0.549835 | 0 |
Finds unicode emoji in a string. Yields all normal characters as a named | def wr3U(vIwR, nh5o: bool) -> bDy6[_J2v]:
J_Es = hUKP()
OHqy = S8QU.EMOJI_DATA
Aofo = []
YRbF = 0
u54L = len(vIwR)
PrmE = []
while YRbF < u54L:
YLE8 = False
hcXw = vIwR[YRbF]
if YRbF in PrmE:
YRbF += 1
if hcXw == SKyo and nh5o:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lbb0(OXAZ: str) -> None:\n OXAZ = OXAZ.lower()\n dVs3 = GIOW()\n for JUOb, mWFP in dVs3.items():\n if OXAZ in mWFP:\n print(f'{mWFP.strip().title():>42} | {JUOb}')\n else:\n print('no matches')",
"def Lbb0(OXAZ):\n NIGc = GIOW()\n lVze = []\n d2op = {}\n for J... | [
"0.66739917",
"0.65177566",
"0.6369205",
"0.62317204",
"0.6205675",
"0.59982646",
"0.5983602",
"0.5976363",
"0.59678835",
"0.5957423",
"0.5911751",
"0.5832382",
"0.58016235",
"0.57536376",
"0.5738196",
"0.57269853",
"0.56566364",
"0.56560844",
"0.5633768",
"0.56320775",
"0.55... | 0.55582255 | 23 |
Returns configs for redis >>> get_redis_configs()['external_redis'] False >>> get_redis_configs()['redis_url_reg'] | def jmqi(Bovl=None, k5uh=None, g_HV=True):
Bovl = Bovl or {}
k5uh = k5uh or {}
b32v = dict(external_redis=bool(k5uh))
OeZe = {'host': 'redis:6379', 'password': '', 'registry_db_index': 1, 'jobservice_db_index': 2, 'trivy_db_index': 5, 'idle_timeout_seconds': 30}
if len(Bovl) > 0:
OeZe.update... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgJn(YKHO):\n\n def JfyU(N5z6):\n return N5z6.config()\n YKHO.__run_redis_cmd(JfyU)",
"def kFMq(YKHO, GPtr):\n tEHu = {'host', 'port', 'db_id'}\n hJHX(set(GPtr.options('redis')) - tEHu - YKHO.defaults, 'redis section option(s)')\n NMoC = YLnl(GPtr.get, 'redis')\n K4Ei = YLnl(GPtr.get... | [
"0.7111657",
"0.6616137",
"0.64428383",
"0.62798464",
"0.62027335",
"0.61338097",
"0.6040582",
"0.6000731",
"0.5993893",
"0.5980946",
"0.59253126",
"0.5914757",
"0.5889073",
"0.5858368",
"0.57965416",
"0.57935196",
"0.57674205",
"0.57398766",
"0.57398033",
"0.57388157",
"0.57... | 0.7348659 | 0 |
Read file, where each sentence is dilineated by a `\n`. | def _7pG(qaEx, JZXy):
nPrm = []
for zFiD in open(qaEx):
_dZy = zFiD.strip().split(' ')
if JZXy == 'tgt':
_dZy = ['<s>'] + _dZy + ['</s>']
nPrm.append(_dZy)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(eZ_W):\n with open(eZ_W, 'r', encoding='utf-8-sig') as eHNT:\n Rhv4 = eHNT.read().splitlines()\n return Rhv4",
"def iop6(Ux0P):\n with ZylS.gfile.GFile(Ux0P, 'r') as eHNT:\n return [yAmx.split() for yAmx in eHNT.read().split('\\n')]",
"def zs73(Ux0P, tZ2K='utf-8'):\n l5Ny, tZ... | [
"0.73846066",
"0.7183166",
"0.7035023",
"0.6850842",
"0.6850842",
"0.68262714",
"0.67237",
"0.67034435",
"0.6676033",
"0.6676033",
"0.66496515",
"0.6593011",
"0.658854",
"0.6586248",
"0.65819913",
"0.65717185",
"0.65479195",
"0.6546123",
"0.65246904",
"0.651413",
"0.650853",
... | 0.0 | -1 |
this will only be executed when email field is present for unauthenticated users | def YBiq(YKHO):
D3lj = YKHO.cleaned_data['email']
return D3lj.strip().lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YBiq(YKHO):\n D3lj = YKHO.cleaned_data['email']\n YKHO.users_cache = mv1M.objects.filter(email__iexact=D3lj)\n if not len(YKHO.users_cache):\n raise H6V6.ValidationError(YKHO.error_messages['unknown'])\n if any((CBIr.password == gjWX for CBIr in YKHO.users_cache)):\n raise H6V6.Valida... | [
"0.74899983",
"0.746608",
"0.7119564",
"0.7081039",
"0.704882",
"0.7043228",
"0.7021055",
"0.7021055",
"0.698694",
"0.69815254",
"0.69815254",
"0.6979202",
"0.69714695",
"0.69650376",
"0.6918182",
"0.6900484",
"0.68958014",
"0.68905514",
"0.6879052",
"0.6857374",
"0.6846318",... | 0.6155504 | 77 |
Will the snake collide with itself if it proceeds in the direction provided | def cAxU(YKHO, XSoh):
XGgq = YKHO.x[0]
fjU_ = YKHO.y[0]
for WRKq in range(1, YKHO.length):
if YKHO.y[WRKq] == fjU_:
if XSoh == uwaB.RIGHT:
if abs(XGgq + YKHO.step - YKHO.x[WRKq]) <= 1.5 * uwaB.STEP_SIZE:
return True
if XSoh == uwaB.LEFT:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQFq(YKHO, XSoh=None):\n EAqx, UJRg = YKHO.active_piece.try_move(direction=XSoh)\n for rdlD, fvDH in UJRg:\n LVAh, WKvO = (EAqx[0] + rdlD, EAqx[1] + fvDH)\n if LVAh > 19 or LVAh < 0 or WKvO > 9 or (WKvO < 0) or (YKHO.board[LVAh][WKvO] == '#'):\n return True\n return False",
... | [
"0.69015956",
"0.6760199",
"0.6635991",
"0.6466222",
"0.62571543",
"0.6251721",
"0.60652214",
"0.5982337",
"0.59570205",
"0.5948154",
"0.588335",
"0.58068675",
"0.57861465",
"0.5783076",
"0.57496506",
"0.5748788",
"0.5744691",
"0.57365465",
"0.5728851",
"0.5703517",
"0.569623... | 0.7903229 | 0 |
GENERATES the INITIAL VALUES of the independent variables of f. | def DHzQ():
ycBG = [js4S(1, _Fei.n) for YRbF in range(_Fei.n)]
return oyIN.array(ycBG, dtype=oyIN.float_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XYEC(J8hs):\n X7zS = [(-100, 100), (-10, 10), (-100, 100), (-100, 100), (-30, 30), (-100, 100), (-1.28, 1.28), (-500, 500), (-5.12, 5.12), (-32, 32), (-600, 600), (-50, 50), (-50, 50)]\n if J8hs == 8:\n S9E4 = -12569.5\n else:\n S9E4 = 1e-08\n LSh8, CN9P = X7zS[J8hs - 1]\n return (... | [
"0.58772075",
"0.58168614",
"0.5710214",
"0.5688034",
"0.5661912",
"0.5652736",
"0.5645177",
"0.5624059",
"0.56129456",
"0.5569354",
"0.54938596",
"0.548858",
"0.54423726",
"0.5442295",
"0.5412203",
"0.5401658",
"0.538518",
"0.53806996",
"0.5380251",
"0.5375289",
"0.53724855"... | 0.7181554 | 0 |
takes an integer PersonAge and sets the person's age | def kjC_(YKHO, nPiQ):
YKHO.age = nPiQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaIk(YKHO, ZJe_):\n YKHO.age = ZJe_",
"def kjC_(YKHO, ZJe_):\n YKHO.__age = ZJe_",
"def HaIk(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def kjC_(YKHO, ZJe_):\n YKHO.age = float(ZJe_)",
"def kjC_(YKHO, NI3A):\n YKHO.age = NI3A",
"def ZJe_(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def ZJe_(YKHO, Z... | [
"0.822595",
"0.8206998",
"0.8182792",
"0.8143692",
"0.7933872",
"0.7819523",
"0.7819523",
"0.7484549",
"0.6869972",
"0.6842357",
"0.6750477",
"0.6635483",
"0.65704006",
"0.65447265",
"0.64919263",
"0.629428",
"0.60075104",
"0.5971527",
"0.5918435",
"0.58816797",
"0.58711505",... | 0.8619475 | 0 |
returns an rgb tuple with random values between 0 and 255 | def cdH4():
return (qukk(0, 256), qukk(0, 256), qukk(0, 256)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pph3():\n XEpb = [255, 0, 0]\n tuKI.shuffle(XEpb)\n return tuple(XEpb)",
"def yTL5():\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))",
"def pph3() -> AzJI[int, int, int]:\n return (qukk(0, 255), qukk(0, 255), qukk(0, 255))",
"def wmuL(xlLU: random.Random) -> bSef:\n Mkmy = xlLU.ran... | [
"0.8665915",
"0.86478716",
"0.8604022",
"0.84514165",
"0.8372857",
"0.8356782",
"0.8341259",
"0.8297525",
"0.8124699",
"0.80766463",
"0.8002509",
"0.7954558",
"0.79482937",
"0.79239154",
"0.7919847",
"0.78828275",
"0.7835661",
"0.7819847",
"0.7722076",
"0.76877105",
"0.763344... | 0.8463004 | 3 |
Test choose_author function in few cases | def wbM7():
assert CLNr(['string']) == True
assert isinstance(CLNr(['string']), bool)
assert callable(CLNr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwMs(YKHO):\n uDRR = 'citedby:author:doggy'\n M_lQ = 'find citedby author doggy'\n YKHO._compare_searches(uDRR, M_lQ)",
"def oS4h(YKHO):\n Huy8 = 'author:ellis'\n FnyU = 'find a ellis'\n YKHO._compare_searches(Huy8, FnyU)",
"def sWgj(YKHO):\n uDRR = 'author:\"klebanov, ig* r*\" or exac... | [
"0.6842973",
"0.68008196",
"0.6709151",
"0.6692063",
"0.66668206",
"0.6654014",
"0.6625926",
"0.6624629",
"0.65706336",
"0.65181315",
"0.6478356",
"0.64252007",
"0.6374737",
"0.6306689",
"0.62766445",
"0.625765",
"0.62563014",
"0.6249113",
"0.62451863",
"0.6243384",
"0.621431... | 0.7799905 | 0 |
convert rational number string to float | def a8Pe(lLQL):
try:
return float(lLQL)
except ValueError:
mLGw, ciZM = lLQL.split('/')
return float(mLGw) / float(ciZM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjPn(YKHO, KCHu: str) -> float:\n return int(KCHu[:-1]) / 1000000000.0 if KCHu.endswith('n') else float(KCHu[:-1])",
"def gBe3(iljL):\n try:\n return float(iljL)\n except ValueError:\n mLGw, ciZM = iljL.split('/')\n try:\n eRC8, mLGw = mLGw.split(' ')\n zuh... | [
"0.7691206",
"0.7396409",
"0.73931617",
"0.7294042",
"0.72204506",
"0.710605",
"0.7017163",
"0.69722325",
"0.6960623",
"0.69555604",
"0.6950857",
"0.69220334",
"0.6915541",
"0.6834789",
"0.6820067",
"0.68153596",
"0.6795418",
"0.6756995",
"0.67435974",
"0.67410713",
"0.673772... | 0.6928807 | 11 |
Finds median approximate median value of an array. Approximate the median (median value is the middle value of a sorted list | def KYCe(qw7D, LSh8, CN9P):
x1fj = (LSh8 + CN9P) // 2
jzdc = qw7D[LSh8]
Fg_i = qw7D[x1fj]
Z9rn = qw7D[CN9P]
if jzdc <= Fg_i <= Z9rn or Z9rn <= Fg_i <= jzdc:
return x1fj
if jzdc <= Z9rn <= Fg_i or Fg_i <= Z9rn <= jzdc:
return CN9P
return LSh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BjRM(qw7D):\n sorted = [WKvO for WKvO in qw7D]\n sorted.sort()\n Hpmo = len(sorted) / 2\n if len(sorted) % 2 == 0:\n return float(sorted[Hpmo] + sorted[Hpmo - 1]) / 2\n else:\n return sorted[Hpmo]",
"def KFgI(hkxX):\n lKXT = int(len(hkxX) / 2)\n if len(hkxX) % 2 == 0:\n ... | [
"0.8537622",
"0.81164473",
"0.8107881",
"0.8107752",
"0.8088567",
"0.80525",
"0.79944366",
"0.7900605",
"0.7863912",
"0.7856012",
"0.7845431",
"0.78445613",
"0.78111076",
"0.78048295",
"0.77965456",
"0.77292794",
"0.76929307",
"0.7690816",
"0.7688727",
"0.76869506",
"0.768492... | 0.70147365 | 59 |
Compute softmax values for each sets of scores in V. each column of V is a set of score. | def N93T(Nk6w):
sMtr = oyIN.exp(Nk6w)
k0lF = sMtr / sMtr.sum(axis=0)
return k0lF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M49J(cCrA):\n if not cCrA:\n return []\n jB5X = None\n for p1kx in cCrA:\n if jB5X is None or p1kx > jB5X:\n jB5X = p1kx\n KPVz = []\n mq4h = 0.0\n for p1kx in cCrA:\n WKvO = oyIN.exp(p1kx - jB5X)\n KPVz.append(WKvO)\n mq4h += WKvO\n BFeB = []\... | [
"0.7158194",
"0.7047147",
"0.7046276",
"0.70425",
"0.70425",
"0.70425",
"0.70425",
"0.6971333",
"0.6776071",
"0.6765804",
"0.6621016",
"0.64983344",
"0.64933544",
"0.64102453",
"0.63794756",
"0.6377974",
"0.63686955",
"0.63142264",
"0.63112575",
"0.6295851",
"0.6282287",
"0... | 0.0 | -1 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YK... | [
"0.79568833",
"0.79042006",
"0.78795445",
"0.7577913",
"0.7570969",
"0.74478436",
"0.7361023",
"0.72697705",
"0.721816",
"0.71451885",
"0.7106998",
"0.7101183",
"0.69837016",
"0.68905056",
"0.68842727",
"0.6755663",
"0.6712557",
"0.6677425",
"0.64961654",
"0.6488678",
"0.6486... | 0.71984994 | 18 |
Return the current size of internal memory. | def szAg(YKHO):
return len(YKHO.memory) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4(YKHO) -> int:\n return len(YKHO.mem)",
"def R8e4(YKHO):\n return YKHO.bf.memory()",
"def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024",
"def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0",
"def ... | [
"0.8573752",
"0.82169205",
"0.8200361",
"0.8087402",
"0.8021614",
"0.7890747",
"0.78219426",
"0.78017354",
"0.77905464",
"0.7758844",
"0.77559924",
"0.77559924",
"0.775519",
"0.77544576",
"0.7733221",
"0.7732168",
"0.7720068",
"0.77145016",
"0.77092093",
"0.77077913",
"0.7697... | 0.75127405 | 59 |
get the header colmns of a table, from database. Sets sql attribute to sql used to get headers, and table attribue to table retured | def E_hp(YKHO, tyNF, uPxI='TABLES'):
E_hp = 'SELECT * FROM information_schema.columns WHERE table_schema = ' + uPxI + ' AND table_name = ' + tyNF + ''
xyfr, CBoQ, YKHO.sql = (YKHO.sql, YKHO.table, E_hp)
YKHO.run()
YKHO.sql = xyfr
MOPg = YKHO.as_DataFrame()[3].tolist()
YKHO.table = CBoQ
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cyv(w2B8, tyNF):\n N1p7 = w2B8.cursor()\n WBPg = f\"SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '{tyNF}'\"\n N1p7.execute(WBPg)\n JY3R = N1p7.fetchall()\n VxuA = []\n for eBOy in JY3R:\n VxuA.append(eBOy[0])\n return VxuA",
"def CrAr():\n return '\\n<... | [
"0.7002399",
"0.6503627",
"0.6435246",
"0.6397863",
"0.6284719",
"0.6202354",
"0.6168601",
"0.6166977",
"0.6119524",
"0.59969443",
"0.59869707",
"0.59706676",
"0.59695715",
"0.5945299",
"0.5873819",
"0.5873045",
"0.58710456",
"0.5850913",
"0.58275044",
"0.5825417",
"0.5824443... | 0.7477854 | 0 |
returns contents of self.table as pandas DataFrame with column names if possible. Returns pandas.dataframe contents of self.table as pandas DataFrame | def njBY(YKHO):
if YKHO.sql == '':
return hxoQ([])
I1mm, hkxX = YKHO.parse_sql()
try:
if I1mm == 'EXPLICIT':
return hxoQ(YKHO.table, columns=hkxX)
elif I1mm == 'IMPLICIT':
uPxI = "'" + hkxX[0] + "'"
tyNF = "'" + hkxX[1] + "'"
return hxo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gRzA(YKHO):\n return hxoQ(YKHO.table)",
"def o4pG(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(YKHO.fetchall(), columns=YKHO.headers())",
"def oYdR(YKHO, GTA_):\n iZr3 = 'SELECT * FROM {tb}'.format(tb=GTA_)\n DpUl = YKHO.conn.cursor()\n DpUl.execute(iZr3)\n ZWCE = [JBZA[0] for JBZA in... | [
"0.83760315",
"0.75889075",
"0.74760735",
"0.73990023",
"0.7388382",
"0.7341949",
"0.7313462",
"0.71790713",
"0.7107322",
"0.70177686",
"0.7011033",
"0.7009237",
"0.69849825",
"0.6962791",
"0.6958403",
"0.69425315",
"0.69333535",
"0.6924849",
"0.685934",
"0.676409",
"0.673565... | 0.7593289 | 1 |
Split the dataframe into the set of partitions | def GyzW(jQ3Z, JfyU, eNeo):
I7uC = oyIN.array_split(jQ3Z, eNeo)
dBuj = g2zq.Pool(eNeo)
jQ3Z = rLdf.concat(dBuj.map(JfyU, I7uC))
dBuj.close()
dBuj.join()
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def STQp(YKHO):\n qw7D = oyIN.arange(1000)\n jQ3Z = d7pB.from_numpy(qw7D)\n\n def f6kG(**B2fa):\n with YKHO.assertRaises(ValueError):\n jQ3Z.split(**B2fa)\n f6kG(partitions=[])\n f6kG(partitions=[1000, 1])\n f6kG(partitions=[1000, -1])\n f6kG(partitions=[1, 2])\n f6kG(port... | [
"0.70947784",
"0.6920228",
"0.68956256",
"0.6866534",
"0.67028534",
"0.66178304",
"0.6537273",
"0.6474114",
"0.63562185",
"0.63339967",
"0.6318787",
"0.6256318",
"0.62377965",
"0.6220456",
"0.6202459",
"0.6202277",
"0.6187662",
"0.61835164",
"0.6180054",
"0.6178323",
"0.61760... | 0.5535223 | 99 |
Initialize a RIDDLE model. | def FIMM(YKHO, C3ST, nZt5, DC9Y=-1, Ep8u=128, QCuz=1):
YKHO._model = C3ST
YKHO._num_class = nZt5
if DC9Y < 1:
DC9Y = vx9o
YKHO._max_num_epoch = DC9Y
YKHO._batch_size = Ep8u
YKHO._patience = QCuz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv23(YKHO):\n pass",
"def fPO8(YKHO):\n pass",
"def uIcm(YKHO, C3ST):\n pass",
"def Gdbk(YKHO, xpKI):\n xs48 = YKHO.get_rels(xpKI)\n YKHO._model = _tGK(xs48)",
"def uIcm(YKHO) -> None:\n YKHO.model = tyeH(YKHO.path)",
"def FIMM(YKHO):\n YKHO.model = None",
"def FIMM(YKHO):\n ... | [
"0.7799717",
"0.76852393",
"0.7584165",
"0.7493818",
"0.7474814",
"0.7322151",
"0.7322151",
"0.7200487",
"0.7117798",
"0.7106998",
"0.6974054",
"0.6974054",
"0.6974054",
"0.6974054",
"0.69738984",
"0.68970233",
"0.6881011",
"0.687463",
"0.68275225",
"0.68083614",
"0.6792363",... | 0.0 | -1 |
Generator which yields nsized chunks from a list. | def eHxA(yv6U, exwG):
assert exwG > 0
for YRbF in range(0, len(yv6U), exwG):
yOAJ = yv6U[YRbF:YRbF + exwG]
yield yOAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:... | [
"0.78882265",
"0.783065",
"0.77623785",
"0.77594334",
"0.77594334",
"0.7754111",
"0.7741967",
"0.77418536",
"0.7724363",
"0.7724363",
"0.77098286",
"0.76860744",
"0.76789236",
"0.7664232",
"0.7634463",
"0.7634463",
"0.7634463",
"0.7634463",
"0.7634463",
"0.763053",
"0.7628102... | 0.76549304 | 14 |
Information about the Amazon S3 bucket containing the application code. | def xAHb(YKHO) -> h8nf[qe4Y.Input['ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocationArgs']]:
return qe4Y.get(YKHO, 's3_content_location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFqg(YKHO):\n return YKHO._get_param('ResourcesS3Bucket')",
"def ABwj(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 's3_bucket')",
"def WE7e(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'bucket')",
"def WE7e(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'bucket')",
"def WE7e(... | [
"0.7434443",
"0.7344199",
"0.73142916",
"0.73142916",
"0.7262713",
"0.7176705",
"0.7176705",
"0.71574205",
"0.7108692",
"0.70733416",
"0.70733416",
"0.70376784",
"0.6956204",
"0.6898854",
"0.684577",
"0.68426275",
"0.6832975",
"0.6788647",
"0.6788647",
"0.67746747",
"0.677467... | 0.0 | -1 |
The ARN for the S3 bucket containing the application code. | def lguO(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'bucket_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguO(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketArn')",
"def lguO(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketArn')",
"def lguO(YKHO) -> str:\n ...",
"def lguO(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('bucket_arn')",
"def cFqg(YKHO):\n return YKHO._get_param('ResourcesS3... | [
"0.8126707",
"0.8126707",
"0.8067898",
"0.7302088",
"0.6633249",
"0.64334524",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
... | 0.76835716 | 4 |
The file key for the object containing the application code. | def jYva(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'file_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYva(Ux0P):\n return PmyT + Ux0P",
"def LtJP(YKHO):\n return YKHO._get('key_file')",
"def H5ew(YKHO):\n H5ew = YKHO.name\n if YKHO.task:\n H5ew += kGCT(YKHO.task.__class__)\n return HBct.md5(H5ew.encode()).hexdigest()",
"def H5ew(YKHO):\n return VDN9(YKHO.name)",
"def H5ew(YKHO... | [
"0.7508476",
"0.73354226",
"0.7072803",
"0.69536316",
"0.69291615",
"0.69158894",
"0.6855917",
"0.679805",
"0.6769428",
"0.67669773",
"0.6765789",
"0.67546976",
"0.6742771",
"0.6728351",
"0.6709861",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392"... | 0.75691706 | 1 |
The key of the application execution property keyvalue map. | def jX25(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'property_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5ew(YKHO):\n if 'key' in YKHO._prop_dict:\n return YKHO._prop_dict['key']\n else:\n return None",
"def H5ew(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'key')",
"def mexE(YKHO):\n return YKHO._deter... | [
"0.7160247",
"0.6715007",
"0.6715007",
"0.6628513",
"0.65962565",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0.659621",
"0... | 0.0 | -1 |
The name of the column that is created in the inapplication input stream or reference table. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def W0tD(YKHO):\n return YKHO.col_name",
"def GClg(YKHO):\n return YKHO.__column",
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '... | [
"0.829728",
"0.829728",
"0.8044075",
"0.7931571",
"0.7920496",
"0.7434196",
"0.73950624",
"0.7157008",
"0.7115821",
"0.7115821",
"0.7068982",
"0.6940135",
"0.68992466",
"0.6878071",
"0.68575674",
"0.6854659",
"0.6827644",
"0.6827644",
"0.67406684",
"0.6701877",
"0.6692907",
... | 0.0 | -1 |
Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. | def VSFO(YKHO) -> qe4Y.Input['ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaRecordFormatMappingParametersArgs']:
return qe4Y.get(YKHO, 'mapping_parameters') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFqi(JZXy):\n if JZXy['recordType'] not in xHrl.RECORDS:\n return {'rec_type': JZXy['recordType']}\n AIu6 = BOvL.common.Flatdict(JZXy)\n hlel = AB1m(AIu6)\n return hlel",
"def j8_j(YKHO, _AZK):\n NZik = TuoA.Geo()\n YKHO.metadata = {}\n for G1Hx, Ty9i in _AZK.items():\n if ... | [
"0.64300466",
"0.5807673",
"0.57702976",
"0.57081705",
"0.5628267",
"0.5627498",
"0.559967",
"0.5540356",
"0.5518616",
"0.54192805",
"0.54103154",
"0.54093325",
"0.53269774",
"0.53067076",
"0.53051627",
"0.5278323",
"0.52649146",
"0.5245737",
"0.5237092",
"0.5235683",
"0.5228... | 0.0 | -1 |
The column delimiter. For example, in a CSV format, a comma (`,`) is the typical column delimiter. | def n1tO(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'record_column_delimiter') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bf7m(KTLx: str) -> str:\n with open(KTLx) as eHNT:\n kETg = eHNT.readline()\n KCHu = m6_J.Sniffer()\n return KCHu.sniff(kETg).delimiter",
"def cZdN(Ux0P):\n with open(Ux0P) as LtY3:\n kETg = LtY3.readline()\n return m6_J.Sniffer().sniff(kETg).delimiter",
"def OeEu(Y... | [
"0.7160481",
"0.69935775",
"0.6887538",
"0.6887538",
"0.66514015",
"0.65056276",
"0.6475536",
"0.6418397",
"0.64122546",
"0.6394634",
"0.61797684",
"0.61778563",
"0.6057239",
"0.5975895",
"0.5971224",
"0.5918189",
"0.5899364",
"0.5842732",
"0.5809351",
"0.57896143",
"0.571567... | 0.82689506 | 1 |
The ARN of the input Kinesis data stream to read. | def EszR(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'arn')",
"def Rrz5(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'log_stream_arn')",
"def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'arn')",... | [
"0.72147",
"0.7054847",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
"0.69893575",
... | 0.6498027 | 30 |
The ARN of the destination Lambda function to write to. | def EszR(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fy17(YKHO) -> str:\n return HEOD.get(YKHO, 'destinationArn')",
"def aMtM(YKHO):\n return YKHO._event['destination_function_name']",
"def yanj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'notification_lambda_arn')",
"def DmI7(cuiw, Oa_R):\n if cuiw is None:\n return None\n ... | [
"0.69213694",
"0.6328486",
"0.54974574",
"0.5482789",
"0.548099",
"0.54782295",
"0.5476969",
"0.5457332",
"0.53916633",
"0.53796774",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",
"0.5358812",... | 0.49433807 | 64 |
Identifies the S3 bucket and object that contains the reference data. | def dSkP(YKHO) -> qe4Y.Input['ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs']:
return qe4Y.get(YKHO, 's3_reference_data_source') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PASA(YKHO, cdaG):\n if 'bucket' in cdaG:\n QRhP = cdaG['bucket']\n if QRhP != YKHO.bucket:\n RKD7.error(f'Bucket mismatch found with blobs, overriding metadata and using bucket {YKHO.bucket}')\n QRhP = YKHO.bucket\n return (QRhP, cdaG['key'])\n else:\n re... | [
"0.6065481",
"0.5919647",
"0.582233",
"0.5819789",
"0.579438",
"0.57894707",
"0.56910235",
"0.5639296",
"0.5610232",
"0.55327755",
"0.5522789",
"0.5498683",
"0.54752314",
"0.5445441",
"0.54333544",
"0.54255754",
"0.53870666",
"0.53709435",
"0.53709435",
"0.53534746",
"0.53498... | 0.511651 | 56 |
The name of the column that is created in the inapplication input stream or reference table. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def W0tD(YKHO):\n return YKHO.col_name",
"def GClg(YKHO):\n return YKHO.__column",
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '... | [
"0.82973266",
"0.82973266",
"0.80434585",
"0.7930917",
"0.7919774",
"0.7434645",
"0.73943686",
"0.71573234",
"0.71156925",
"0.71156925",
"0.7068516",
"0.6940404",
"0.689935",
"0.68779564",
"0.685796",
"0.6854273",
"0.6828302",
"0.6828302",
"0.67404133",
"0.6701833",
"0.669295... | 0.0 | -1 |
Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. | def VSFO(YKHO) -> qe4Y.Input['ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormatMappingParametersArgs']:
return qe4Y.get(YKHO, 'mapping_parameters') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFqi(JZXy):\n if JZXy['recordType'] not in xHrl.RECORDS:\n return {'rec_type': JZXy['recordType']}\n AIu6 = BOvL.common.Flatdict(JZXy)\n hlel = AB1m(AIu6)\n return hlel",
"def j8_j(YKHO, _AZK):\n NZik = TuoA.Geo()\n YKHO.metadata = {}\n for G1Hx, Ty9i in _AZK.items():\n if ... | [
"0.6430963",
"0.58090264",
"0.5772521",
"0.57086974",
"0.5628836",
"0.5627251",
"0.55993",
"0.55380976",
"0.5519563",
"0.5419827",
"0.54123056",
"0.54118365",
"0.5326372",
"0.5307383",
"0.530351",
"0.52786857",
"0.52669024",
"0.52456933",
"0.52389646",
"0.5235582",
"0.5229287... | 0.47862607 | 66 |
The column delimiter. For example, in a CSV format, a comma (`,`) is the typical column delimiter. | def n1tO(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'record_column_delimiter') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bf7m(KTLx: str) -> str:\n with open(KTLx) as eHNT:\n kETg = eHNT.readline()\n KCHu = m6_J.Sniffer()\n return KCHu.sniff(kETg).delimiter",
"def cZdN(Ux0P):\n with open(Ux0P) as LtY3:\n kETg = LtY3.readline()\n return m6_J.Sniffer().sniff(kETg).delimiter",
"def OeEu(Y... | [
"0.7158849",
"0.69919837",
"0.68864447",
"0.68864447",
"0.66498417",
"0.6502271",
"0.6472595",
"0.6415401",
"0.6408405",
"0.6391545",
"0.617637",
"0.61740214",
"0.6055878",
"0.59736997",
"0.5968155",
"0.59172034",
"0.58977574",
"0.5841925",
"0.5807263",
"0.57889515",
"0.57141... | 0.8267689 | 0 |
The ARN for the S3 bucket containing the application code. | def lguO(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'bucket_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguO(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketArn')",
"def lguO(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketArn')",
"def lguO(YKHO) -> str:\n ...",
"def lguO(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('bucket_arn')",
"def cFqg(YKHO):\n return YKHO._get_param('ResourcesS3... | [
"0.8126707",
"0.8126707",
"0.8067898",
"0.7302088",
"0.6633249",
"0.64334524",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6313027",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
"0.6286308",
... | 0.76835716 | 3 |
The file key for the object containing the application code. | def jYva(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'file_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYva(Ux0P):\n return PmyT + Ux0P",
"def LtJP(YKHO):\n return YKHO._get('key_file')",
"def H5ew(YKHO):\n H5ew = YKHO.name\n if YKHO.task:\n H5ew += kGCT(YKHO.task.__class__)\n return HBct.md5(H5ew.encode()).hexdigest()",
"def H5ew(YKHO):\n return VDN9(YKHO.name)",
"def H5ew(YKHO... | [
"0.7508476",
"0.73354226",
"0.7072803",
"0.69536316",
"0.69291615",
"0.69158894",
"0.6855917",
"0.679805",
"0.6769428",
"0.67669773",
"0.6765789",
"0.67546976",
"0.6742771",
"0.6728351",
"0.6709861",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392",
"0.6701392"... | 0.75691706 | 0 |
When we've iterated through all events, we're ready to write all sessions to the database. This closes all existing open sessions, in order to have all session information ready to save to the database. | def Y_Xm(YKHO):
for pKx9 in YKHO.current_sessions.values():
YKHO.closed_sessions.append(pKx9.close_session())
YKHO.current_sessions = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n for cuiw in YKHO.sessions.copy().values():\n cuiw.close(dF6S.SESSION_DIED)",
"def eXKq() -> None:\n for cb_Q in TM1v.values():\n cb_Q.close()",
"def aDvc(Emd4):\n for cb_Q in Emd4._session_registry.values():\n cb_Q.close()",
"def kTS8(YKHO):\n if YKHO._sessi... | [
"0.709628",
"0.7039125",
"0.69403845",
"0.68360966",
"0.6827279",
"0.66981196",
"0.6578849",
"0.6561418",
"0.6509728",
"0.64647",
"0.6436674",
"0.63637483",
"0.63128906",
"0.6096886",
"0.6079238",
"0.6076759",
"0.60607976",
"0.6045697",
"0.60410523",
"0.60390896",
"0.6037184"... | 0.6953104 | 2 |
Use None instead of empty dict for env. | def fxBp(YKHO) -> None:
YKHO.env = None if YKHO.env == {} else YKHO.env | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmYA(YKHO):\n return ()",
"def IvP1():\n return Bpoi(namespaces={})",
"def IvP1():\n return Bpoi(namespaces={})",
"def stLI(YKHO, sEAN: Dict[str, str]) -> None:\n sEAN['KERNEL_ID'] = YKHO.kernel_id\n G65i = 'unknown-kernel-language'\n if len(YKHO.kernel_spec.language) > 0:\n G65i... | [
"0.7506495",
"0.6892591",
"0.6892591",
"0.6722652",
"0.66688734",
"0.6521722",
"0.65181935",
"0.6515571",
"0.6515571",
"0.6515571",
"0.64632887",
"0.6430169",
"0.63657653",
"0.6362443",
"0.6330296",
"0.6307691",
"0.62757427",
"0.6272593",
"0.62555563",
"0.6251175",
"0.6251175... | 0.78597975 | 0 |
Creates an Implementation object from a PipelineSpec message in dict format. | def mHfd(Emd4, gJ_F: Dict[str, Any], maxk: str) -> 'Implementation':
r5Pd = BfDw.sanitize_executor_label(maxk)
ZaUd = gJ_F['deploymentSpec']['executors'].get(r5Pd)
if ZaUd is not None:
tdnU = xw8B.from_container_dict(ZaUd['container']) if ZaUd else None
return _V5C(container=tdnU)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yONA(Emd4, tO9_):\n if Emd4._debug:\n RKD7.debug('msg=%s', tO9_)\n H5ew, EipC, qxeD, VTyq, TBsA = tO9_\n H5ew = H5ew if H5ew else None\n Q6uT = BlNT.unpack('!q', EipC)[0]\n TBsA = TBsA if TBsA else None\n if TBsA:\n TBsA = nPIK.load(TBsA)\n QWcs = nPIK.load(VTyq)\n return ... | [
"0.6436397",
"0.6267915",
"0.61444587",
"0.61162764",
"0.57210857",
"0.56808233",
"0.5630783",
"0.5594873",
"0.5483311",
"0.5461722",
"0.5453731",
"0.5427917",
"0.53711474",
"0.53690076",
"0.53684783",
"0.5307283",
"0.5288682",
"0.5273172",
"0.52257395",
"0.5142328",
"0.51401... | 0.73927045 | 0 |
Converts the name to a valid name. | def mmAB(YKHO) -> None:
YKHO.name = BfDw.maybe_rename_for_k8s(YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M92n(YKHO, mWFP):\n if not YKHO.re_name.match(mWFP):\n jpuF = mWFP\n mWFP = YKHO.re_white.sub('_', mWFP)\n mWFP = YKHO.re_alpha.sub('_', mWFP)\n if not YKHO.re_name.match(mWFP):\n mWFP = 'x_' + zuPL\n YKHO.warn('Converting name <' + jpuF + '> to <' + mWFP + '>.'... | [
"0.8116373",
"0.7573032",
"0.75393856",
"0.7502956",
"0.7433997",
"0.7368573",
"0.7367807",
"0.7359006",
"0.7339633",
"0.72981745",
"0.72954786",
"0.7286506",
"0.7286506",
"0.7286506",
"0.72072476",
"0.718355",
"0.71751446",
"0.7170703",
"0.716226",
"0.71534574",
"0.7147013",... | 0.626844 | 85 |
Converts a duration string to seconds. | def dsDT(WbTE: str) -> int:
WbTE = sBHc(WbTE)
Yd5E = {'s': 1, 'm': 60, 'h': 3600, 'd': 86400, 'w': 604800}
if WbTE[-1] not in Yd5E.keys():
raise ValueError(f"Unsupported duration unit: '{WbTE[-1]}' for '{WbTE}'.")
return int(WbTE[:-1]) * Yd5E[WbTE[-1]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCN2(WbTE):\n lcOE = int(WbTE[:-1])\n if WbTE[-1] == 's':\n pass\n elif WbTE[-1] == 'm':\n lcOE *= 60\n elif WbTE[-1] == 'h':\n lcOE *= 60 * 60\n elif WbTE[-1] == 'd':\n lcOE *= 60 * 60 * 24\n else:\n raise ValueError('Invalid duration: %r' % WbTE)\n retu... | [
"0.8086014",
"0.77428716",
"0.763269",
"0.7523472",
"0.74770683",
"0.733889",
"0.7248498",
"0.71414965",
"0.70478374",
"0.7006096",
"0.6958672",
"0.68102986",
"0.671041",
"0.6706914",
"0.66889966",
"0.6648879",
"0.65866536",
"0.65786785",
"0.65781003",
"0.65767723",
"0.655214... | 0.7933268 | 1 |
Loads up to two YAML documents from a YAML string. First document must always be present. If second document is present, it is returned as a dict, else an empty dict. | def r_X2(hXel: str) -> AzJI[dict, dict]:
ol4k = list(eJb6.safe_load_all(hXel))
uMKX = len(ol4k)
if uMKX == 1:
gJ_F = ol4k[0]
sXsi = {}
elif uMKX == 2:
gJ_F = ol4k[0]
sXsi = ol4k[1]
else:
raise ValueError(f'Expected one or two YAML documents in the IR YAML file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_M9(Muml):\n try:\n return qQXR.loads(Muml, object_pairs_hook=U8Lr)\n except ValueError:\n DWkG = v1rv\n DWkG.add_constructor(eJb6.resolver.BaseResolver.DEFAULT_MAPPING_TAG, kVn0)\n DWkG.add_multi_constructor('!', _MzP)\n return eJb6.load(Muml, DWkG)",
"def AADa(Ul2G... | [
"0.6587058",
"0.658387",
"0.6566409",
"0.6374544",
"0.62657386",
"0.62417525",
"0.6167273",
"0.6147996",
"0.60870063",
"0.60779995",
"0.60406476",
"0.5983952",
"0.59795594",
"0.59493494",
"0.59470266",
"0.59402436",
"0.59374875",
"0.5931332",
"0.5927774",
"0.5918283",
"0.5893... | 0.6956233 | 0 |
Generate a random hypothesis satisfying all current constraints. | def Ny0b(YKHO):
O2v1 = False
qLfx = 0
W3ev = []
while O2v1 == False:
qLfx += 1.0
W3ev = [set() for p6S0 in range(YKHO.nPlayers + 1)]
O2v1 = True
W3ev[0] = YKHO.myCardSet.copy()
NlYo = YKHO.myCardSet.copy()
for oVM8 in YKHO.logSeenAnswers:
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qcR0(YKHO):\n QWSs = []\n for YRbF in range(YKHO.k ** (2 * YKHO.r + 1) - 1):\n Oa1e = oyIN.random.rand()\n if Oa1e > YKHO.lambda_param:\n Oa1e = 0\n else:\n Oa1e = oyIN.random.randint(1, YKHO.k)\n QWSs.append(Oa1e)\n QWSs.append(0)\n return QWSs",
... | [
"0.64118475",
"0.60135716",
"0.60040313",
"0.5975513",
"0.59719205",
"0.5883127",
"0.5842343",
"0.5830259",
"0.57722783",
"0.5764174",
"0.574327",
"0.5741325",
"0.57405233",
"0.5728624",
"0.56916004",
"0.5691422",
"0.5684358",
"0.5648347",
"0.56463736",
"0.56435454",
"0.56169... | 0.6872866 | 0 |
From a list of string theorems, compute and return their embeddings. | def KbSH(YKHO, GunU: List[Text]) -> x1iM[JCKV]:
GunU = YKHO._thm_string_for_predictions(GunU)
KTQ3 = YKHO._sess.run(fetches=YKHO._graph.get_collection('thm_net'), feed_dict={YKHO._graph.get_collection('thm_string')[0]: GunU})[0]
return KTQ3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmay(F_On, l5Ny, OiEv=False, G1Hx=300):\n KTQ3 = l5Ny.apply(lambda WKvO: f4d0(WKvO, F_On, generate_missing=OiEv, k=G1Hx))\n return list(KTQ3)",
"def USSn(FUjE, C3ST):\n KTQ3 = []\n s2mk = FUjE.split(' ')\n for GIN8 in s2mk:\n KTQ3.append(C3ST.wv[GIN8])\n t0kx = V_SC(KTQ3)\n return... | [
"0.62225133",
"0.6180845",
"0.6058483",
"0.5947791",
"0.592822",
"0.5927285",
"0.59067094",
"0.5768185",
"0.57656956",
"0.5720795",
"0.5720269",
"0.5670243",
"0.5648393",
"0.564823",
"0.56477433",
"0.5642463",
"0.5640286",
"0.5618863",
"0.5618758",
"0.56044465",
"0.5596817",
... | 0.54610485 | 33 |
Create a Flask application using the app factory pattern. | def LUif(sCKU=None):
P4t4 = L2w0(__name__, instance_relative_config=True)
P4t4.config.from_object('config.settings')
P4t4.config.from_pyfile('settings.py', silent=True)
if sCKU:
P4t4.config.update(sCKU)
P4t4.register_blueprint(GQfX)
P4t4.register_blueprint(CBIr)
CBZq(P4t4)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('app.configs.config')\n P4t4.config.from_object('app.configs.settings')\n return P4t4",
"def LUif(GPtr=PSrQ):\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(GPtr)\n NCls.init_app(P4t4)\n nNXP.init_app(P4t4)\n fHeP.init_ap... | [
"0.8629991",
"0.8587432",
"0.8567094",
"0.8560846",
"0.8548992",
"0.8533256",
"0.8532855",
"0.85154873",
"0.8468547",
"0.84618294",
"0.84501874",
"0.8400496",
"0.83925307",
"0.8380182",
"0.8366697",
"0.8356823",
"0.8333603",
"0.83313555",
"0.8325678",
"0.8316702",
"0.8298241"... | 0.8048076 | 37 |
Find person by name (can supply either first name, last name, or both). | def oXtn(YKHO):
EBgd = nj3W.query.first()
MdkZ = EBgd.wrap()
Pnac = MdkZ['first_name']
MSTg = '?first_name={}'.format(Pnac[:3])
im04 = YKHO.app.get('persons', query_string=MSTg)
nPrm = qQXR.loads(im04.data)
YKHO.assertEqual(nPrm['count'], 1)
r_DN = MdkZ['last_name']
MSTg = '?first_na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pi6U(mWFP):\n if ' ' in mWFP:\n mWFP = mWFP.replace(',', '')\n else:\n return None\n try:\n cntZ, XVAW = mWFP.split(' ', 1)\n return nj3W.get(nj3W.first_name ** cntZ, nj3W.last_name ** XVAW)\n except nj3W.DoesNotExist:\n pass\n try:\n XVAW, cntZ = mWFP.s... | [
"0.8371874",
"0.70397246",
"0.69642144",
"0.6921002",
"0.67691207",
"0.6734593",
"0.6730486",
"0.6717378",
"0.66699153",
"0.6665478",
"0.66387594",
"0.66387594",
"0.6629511",
"0.6435801",
"0.6379602",
"0.63201123",
"0.63159394",
"0.6293829",
"0.62536263",
"0.62296087",
"0.620... | 0.7409197 | 1 |
Returns the name of the mysql service. | def aVxp(z3rX):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cXcX(z3rX):\n del z3rX\n return 'mysql'",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa... | [
"0.7474581",
"0.6829732",
"0.6829732",
"0.6829732",
"0.68110716",
"0.68110716",
"0.671715",
"0.66382146",
"0.66382146",
"0.66382146",
"0.64938444",
"0.64697003",
"0.64697003",
"0.64697003",
"0.6415178",
"0.63908523",
"0.6350583",
"0.6346128",
"0.6290802",
"0.6276551",
"0.6259... | 0.53838134 | 65 |
Returns the name of the mysql service. | def cXcX(z3rX):
del z3rX
return 'mysql' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name... | [
"0.6829732",
"0.6829732",
"0.6829732",
"0.68110716",
"0.68110716",
"0.671715",
"0.66382146",
"0.66382146",
"0.66382146",
"0.64938444",
"0.64697003",
"0.64697003",
"0.64697003",
"0.6415178",
"0.63908523",
"0.6350583",
"0.6346128",
"0.6290802",
"0.6276551",
"0.6259246",
"0.6211... | 0.7474581 | 0 |
Enumerate all rows as a dictionary. | def all(YKHO, V_D6=None):
if V_D6 is None:
YKHO.update()
for YRbF in range(YKHO.count()):
AIu6 = {}
if V_D6 is None:
for Jyyj in YKHO.__fields:
AIu6[str(Jyyj)] = YKHO.dbms.get_record_field_value(Jyyj, YKHO.table, YRbF, YKHO.db)
else:
for Jy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FkCx(YKHO):\n WRKq = iter(YKHO)\n MOPg = next(WRKq)\n for rdlD in WRKq:\n yield dict(zip(MOPg, rdlD))",
"def usx6(YKHO):\n if YKHO.header is None:\n raise ValueError('header cannot be None.')\n WBPg = list(enumerate(YKHO.header))\n return ({'count': Ty9i, **{eHNT: G1Hx[YRbF] f... | [
"0.74351746",
"0.70843107",
"0.7030183",
"0.7021647",
"0.70096445",
"0.69957113",
"0.69957113",
"0.68964124",
"0.66201705",
"0.6575368",
"0.6558362",
"0.6547085",
"0.6542892",
"0.6518194",
"0.65017",
"0.6494942",
"0.6487442",
"0.64271075",
"0.64133406",
"0.64133406",
"0.63910... | 0.0 | -1 |
anticaptcha_key str | anticaptcha com api key gb bool | True default | Show blance on startup | def FIMM(YKHO, suwg, qBVh=True):
YKHO.solver = DeSk()
YKHO.solver.set_key(suwg)
YKHO.solver.set_website_url('https://2ch.hk/')
YKHO.solver.set_website_key('248cebfd-9b3f-4d8c-88b5-f812daf51261')
if qBVh:
YKHO.get_balance() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def apikey_bing(YKHO, OaeV, H5ew):\n gCuF = O_Fa()\n gCuF['apikey'] = H5ew\n gEt_(gCuF)\n return await YKHO.bot.say('Bing API key saved.')",
"def O5D8():\n return qqwM.get('bamboohr', {}).get('apikey', None)",
"def nxIv(GqWH: bool=False) -> str:\n if GqWH:\n eJmI.print('Checking ... | [
"0.61280024",
"0.6071189",
"0.5912534",
"0.57820755",
"0.5728642",
"0.56398314",
"0.5534863",
"0.5519876",
"0.55193615",
"0.5507338",
"0.54924357",
"0.5449495",
"0.54443884",
"0.5399823",
"0.5345974",
"0.52975255",
"0.52800316",
"0.52753466",
"0.5256352",
"0.5256352",
"0.5256... | 0.63601124 | 0 |
Reads the first assigned value of the given field in the CSV table. | def zVPG(Ux0P, vXX7):
if not Hy7s.path.exists(Ux0P):
return None
with open(Ux0P, 'rb') as LtY3:
N5Pj = m6_J.DictReader(LtY3)
for rdlD in N5Pj:
BWXx = rdlD.get(vXX7)
if BWXx:
return BWXx
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, Jyyj):\n Jyyj = YKHO.find_first(Jyyj)\n if Jyyj is not None:\n return Jyyj.value\n return None",
"def VTCK(YKHO, rdlD, Jyyj):\n if len(YKHO.field_map[Jyyj]) == 2:\n return rdlD[int(YKHO.field_map[Jyyj][0]) - 1:int(YKHO.field_map[Jyyj][1])].strip()\n if len(YKHO.field_m... | [
"0.65338564",
"0.6392548",
"0.63200605",
"0.6235137",
"0.62271905",
"0.6227104",
"0.6205975",
"0.61009073",
"0.60299647",
"0.59715605",
"0.5899107",
"0.5786881",
"0.5672882",
"0.5607519",
"0.5607519",
"0.55464906",
"0.54786897",
"0.5478634",
"0.54507464",
"0.5392752",
"0.5363... | 0.78890985 | 0 |
Initialize Involution Layer. Unpack arguments and initialize needed transformations. | def FIMM(YKHO, MY1T: int, Fmaf: int, pNRf: Union[int, Tuple[int, int]], _0fC: Union[int, Tuple[int, int]], moMn: int=1, gH2v: int=1, ivFb: Union[int, Tuple[int, int]]=1, dvgN: Union[int, Tuple[int, int]]=3, YDYE: nn.Module=None) -> None:
super(Z4ff, YKHO).__init__()
YKHO.in_dim = MY1T
YKHO.out_dim = Fmaf
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n super(bNS0, YKHO).__init__()\n pass",
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def FIMM(YKHO, uBeC, BEQ3, c3v3):\n YKHO.layer_num = c3v3\n YKHO.in_dims = BEQ3\n YKHO.out_dims = BEQ3['width'] * BEQ3['... | [
"0.6404122",
"0.63648295",
"0.622279",
"0.6135271",
"0.61323744",
"0.61123925",
"0.60772014",
"0.6075436",
"0.60568666",
"0.60568666",
"0.60568666",
"0.60165906",
"0.59600294",
"0.59600294",
"0.595582",
"0.5945746",
"0.59369826",
"0.5914431",
"0.5912376",
"0.5903811",
"0.5899... | 0.0 | -1 |
Forward Pass of Involution Layer. | def KVH6(YKHO, EcVT: torch.tensor) -> ht2j.tensor:
tjUW, Nq1b, C7Ls, XcU5 = EcVT.shape
assert Nq1b == YKHO.in_dim
eBKj = YKHO.unfold(YKHO.initial_mapping(EcVT))
eBKj = eBKj.view(tjUW, YKHO.groups, YKHO.out_dim // YKHO.groups, YKHO.kernel_dim[0] * YKHO.kernel_dim[1], C7Ls, XcU5)
dBuj = YKHO.o(EcVT)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n _E99 = WKvO\n yvT9 = YKHO.conv1(WKvO)\n yvT9 = YKHO.bn1(yvT9)\n yvT9 = YKHO.activation(yvT9)\n yvT9 = YKHO.conv2(yvT9)\n yvT9 = YKHO.bn2(yvT9)\n if YKHO.upsample is not None:\n _E99 = YKHO.upsample(WKvO)\n yvT9 += _E99\n yvT9 = YKHO.activation(yvT9)\n re... | [
"0.7094181",
"0.69762164",
"0.69762164",
"0.6975647",
"0.6975456",
"0.69609654",
"0.6960735",
"0.6938076",
"0.6932147",
"0.69134164",
"0.6887291",
"0.68826944",
"0.68700963",
"0.6835707",
"0.6832334",
"0.68128276",
"0.6799478",
"0.6798185",
"0.6778102",
"0.6773727",
"0.675363... | 0.0 | -1 |
Shows the top 10 karmas in a given group, if the group doesn't have at least 10 users, show the maximum amount | def EgSs(bGrB: Bot, QdZT: Update):
JAS1 = EO_n.get_top_n_karmas(QdZT.message.chat.id, 10)
geh0 = '\n'.join((f'{YRbF} - {CBIr.name} ({CBIr.karma})' for YRbF, CBIr in enumerate(JAS1, 1)))
QdZT.message.reply_text(geh0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f7uA(leAC, DW23, max=3):\n \"\"\" ten prolific users \"\"\"\n ' max : number of user with related followers '\n lVgX(DW23, ESns, WXHF, JIbD, max, R45P, leAC)\n for nPrm in WXHF:\n print(nPrm.id)",
"def DMB7(bOBl, Gta7=TcYg, Vc9H=aPQ9, G1Hx=_nVD):\n t0At = bOBl.groupby(Gta7, as_index=Fa... | [
"0.60215867",
"0.60107267",
"0.59359956",
"0.58820724",
"0.585288",
"0.58523005",
"0.5816334",
"0.5640699",
"0.5551383",
"0.55489355",
"0.5533259",
"0.55250305",
"0.5408803",
"0.540484",
"0.5393519",
"0.5372351",
"0.5299541",
"0.5277865",
"0.5269924",
"0.5188993",
"0.5185934"... | 0.66216785 | 0 |
Generating padding values for missing values in batch for tensorflow datasets. | def L1ue():
return (ZylS.constant(0, ZylS.float32), ZylS.constant(0, ZylS.float32), ZylS.constant(-1, ZylS.int32)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGdJ(g4y1, LkVj, wH3T):\n if wH3T == 'channels_first':\n PE9h = ZylS.pad(g4y1, [[0, 0], [0, 0], LkVj, LkVj])\n else:\n PE9h = ZylS.pad(g4y1, [[0, 0], LkVj, LkVj, [0, 0]])\n return PE9h",
"def XSUz(nPrm: List[np.ndarray], fRI8) -> x1iM[ZylS.Tensor]:\n LkVj = oyIN.array([0, oyIN.max(l... | [
"0.6989612",
"0.6901503",
"0.686671",
"0.686671",
"0.6813313",
"0.6791755",
"0.674493",
"0.6701146",
"0.66841936",
"0.6674651",
"0.6659418",
"0.6591822",
"0.65840924",
"0.6574735",
"0.6562189",
"0.6519637",
"0.64870447",
"0.6482151",
"0.6479098",
"0.64637697",
"0.64521813",
... | 0.6431333 | 22 |
Function to compute dot product between two vectors | def BJ1H(YKHO, Elif):
M4y0(YKHO, Elif)
N06i = YKHO.client.map(nud9, YKHO.vecDask, Elif.vecDask, pure=False)
BJ1H = 0.0
for KS9L, Aofo in INeQ.as_completed(N06i, with_results=True):
BJ1H += oyIN.float64(Aofo)
return BJ1H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(ENWa, ZoT5):\n return sum((XOOk * pHXX for XOOk, pHXX in zip(ENWa, ZoT5)))",
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range... | [
"0.8630284",
"0.8601396",
"0.8598018",
"0.85945415",
"0.85939234",
"0.8573501",
"0.8548062",
"0.8517112",
"0.85057056",
"0.84493536",
"0.84202045",
"0.8377423",
"0.8364285",
"0.8349452",
"0.83292514",
"0.8323946",
"0.82975394",
"0.82953393",
"0.8288867",
"0.82578677",
"0.8245... | 0.7246433 | 78 |
Create and configure an instance of the Flask application. | def LUif():
P4t4 = L2w0(__name__)
P4t4.config['SQLALCHEMY_DATABASE_URI'] = GPtr('DATABASE_URL')
P4t4.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
pths.init_app(P4t4)
@P4t4.route('/')
def tk5Y():
pths.drop_all()
pths.create_all()
jGRS = Yp0j()
Ol8d = ''
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxQM():\n P4t4 = L2w0(import_name=__name__, template_folder='templates', static_folder='static')\n P4t4 = jPWl(P4t4)\n fRSk(P4t4)\n wyyA.init_app(P4t4)\n WWrj(P4t4.config)\n S0MI.info('Set up app & logger.')\n _wue(P4t4.config)\n ptR4(P4t4.config)\n TfOc(P4t4)\n sSY8(P4t4)\n re... | [
"0.8524236",
"0.8516853",
"0.8504485",
"0.83319825",
"0.82396483",
"0.82314265",
"0.8200104",
"0.81300336",
"0.80288595",
"0.8026753",
"0.8019436",
"0.79989535",
"0.7984679",
"0.7978355",
"0.7973289",
"0.7970172",
"0.7959833",
"0.79556865",
"0.7952428",
"0.7946338",
"0.793713... | 0.0 | -1 |
Return the external (coupling) quality factor of the resonator. | def NrVP(NArs):
return NArs['Q_e_real'].value + 1j * NArs['Q_e_imag'].value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C8Km(YKHO) -> int:\n return YKHO._quality",
"def C8Km(YKHO):\n return YKHO.plays * YKHO.number",
"def G4h4(YKHO):\n return YKHO.parent.printer.get_quality()",
"def IFS3(YKHO):\n XP5J = YKHO.suitability + 1.15 * YKHO.fono\n YKHO.quality = oyIN.exp(XP5J) / (1 + oyIN.exp(XP5J))",
"def o6tq(... | [
"0.6836358",
"0.678076",
"0.67304426",
"0.6653859",
"0.66437507",
"0.62799925",
"0.61350304",
"0.61335063",
"0.6013231",
"0.6013231",
"0.591665",
"0.58983153",
"0.58839136",
"0.58595115",
"0.5799859",
"0.5786415",
"0.5775012",
"0.5772998",
"0.57477397",
"0.57402885",
"0.57099... | 0.0 | -1 |
Create a bcrypt hash of a password | def GPjS(YKHO, jTXt):
hmgX = B8ni.hashpw(jTXt.encode('utf8'), B8ni.gensalt())
return hmgX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(jTXt: str) -> str:\n return B8ni.hashpw(jTXt.encode(), B8ni.gensalt()).decode('utf8')",
"def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hexlify(mNdd)\n return (N... | [
"0.81158215",
"0.784968",
"0.77817076",
"0.7740906",
"0.77358174",
"0.7666057",
"0.7666057",
"0.7666057",
"0.7636678",
"0.7614581",
"0.76089275",
"0.7604094",
"0.7601943",
"0.756695",
"0.7542338",
"0.7503173",
"0.7470942",
"0.74610966",
"0.74574625",
"0.7439365",
"0.73963904"... | 0.819452 | 0 |
Implementing set total amount functionality | def hedl(YKHO, KpBD):
YKHO.set_value_into_input_field(YKHO.total_amount_textbox_locator, KpBD, True)
VFY2 = (Q71O.XPATH, "//label[text()='Total Amount']")
YKHO.click_element(VFY2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOQa(YKHO):\n YKHO.objects[YKHO.ids.AMOUNT].setText('Total Spend: £%.2f' % (YKHO.owner.total_price() / 100))",
"def L7wS(YKHO):\n YKHO.total = 0\n for ZfUD in YKHO.items.all():\n YKHO.total += ZfUD.price\n YKHO.save()",
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def GBoj(... | [
"0.76804733",
"0.73925525",
"0.7129859",
"0.70237124",
"0.6991082",
"0.69786125",
"0.69786125",
"0.69786125",
"0.69786125",
"0.69786125",
"0.69786125",
"0.69786125",
"0.69786125",
"0.694637",
"0.6899732",
"0.6884278",
"0.6850443",
"0.67878556",
"0.67748886",
"0.6696671",
"0.6... | 0.72733045 | 2 |
Implementing get inbound statement grid number of rows functionality | def qGVZ(YKHO):
XoAb = YKHO.wait().until(i1TH.visibility_of_element_located(YKHO.inbound_statement_grid_number_of_rows_locator), 'inbound statement grid number of rows locator not found before specified time out')
oe3Y = XoAb.text.split()
return oe3Y[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWGE(YKHO) -> int:\n ...",
"def cR8f(YKHO) -> int:\n ...",
"def c_Kg(YKHO) -> int:\n return 1 + YKHO.display.get_rows() + 1",
"def SWGE(YKHO):\n return YKHO.__rows",
"def RJbo(YKHO):\n return YKHO.iter_n_children(None)",
"def ryMu(IPsP, xOT8, aRYw):\n SQaW = IPsP.screen_height - 3 *... | [
"0.7933964",
"0.7610979",
"0.75622946",
"0.7083791",
"0.70720017",
"0.6865969",
"0.6850622",
"0.68229806",
"0.68175477",
"0.67938685",
"0.67907816",
"0.6769514",
"0.67518353",
"0.6735044",
"0.66978234",
"0.66978234",
"0.66970694",
"0.6688934",
"0.66874576",
"0.6684982",
"0.66... | 0.7675888 | 1 |
Implementing set billing cycle begin date functionality | def jgwP(YKHO, bWOo):
if bWOo == '':
rg4j = qcWV.date.today()
bWOo = rg4j.replace(day=1)
bWOo = bWOo.strftime('%m/%d/%Y')
YKHO.set_value_into_input_field(YKHO.billing_cycle_begin_date_inputbox_locator, bWOo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEHY(YKHO, qwXE, N3hG):\n YKHO.current_charge_begin_date = qwXE\n if N3hG is True:\n if qwXE == '':\n YKHO.first_day_of_previous_month = YKHO.get_date(first_day_of_last_month=True)\n qwXE = YKHO.first_day_of_previous_month\n elif qwXE == '':\n qwXE = YKHO.get_date(c... | [
"0.7340317",
"0.72412044",
"0.66576",
"0.66031843",
"0.65601575",
"0.65317243",
"0.6487312",
"0.6283432",
"0.6218747",
"0.61166626",
"0.600389",
"0.5930355",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
"0.5913446",
... | 0.7915728 | 0 |
Implementing set dispute contact first name functionality | def KYyD(YKHO, c9ua, kkFr):
if kkFr is True:
Qajz = YKHO.wait().until(i1TH.presence_of_element_located(YKHO.dispute_contact_first_name_textbox_locator), 'first name textbox locator not found before specified time out')
Qajz.clear()
else:
if c9ua == '':
c9ua = YKHO.random_stri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McTO(YKHO, QBRK):\n YKHO.firstName = QBRK",
"def Lnj8(YKHO, c9ua):\n YKHO.first_name = c9ua",
"def fcCO(YKHO, fcCO):\n YKHO._firstname = fcCO",
"def fcCO(YKHO, fcCO):\n YKHO._firstname = fcCO",
"def ztph(YKHO):\n J2us = YKHO.search([('firstname', '=', False), ('lastname', '=', False)])\n... | [
"0.7537012",
"0.72481596",
"0.72322214",
"0.72322214",
"0.71751994",
"0.71145296",
"0.7093389",
"0.7059425",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6831373",
"0.6788495",
"0.6767721",
"0.6744098",
"0.67398465... | 0.72886723 | 1 |
Implementing get outbound statements end date functionality | def ko7A(YKHO):
return YKHO.get_text_from_element(YKHO.outbound_statements_end_date_locator, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OW4X(YKHO):\n return YKHO.get_text_from_element(YKHO.inbound_statements_end_date_locator, True)",
"def vJJX(YKHO):\n return YKHO.get_text_from_element(YKHO.inbound_statements_details_end_date_locator, True)",
"def ulsM(YKHO):\n return YKHO.get_specific_column_value_from_grid(YKHO.outbound_statemen... | [
"0.75716054",
"0.73776615",
"0.71118313",
"0.70772713",
"0.68390137",
"0.64624184",
"0.64139324",
"0.62675464",
"0.62357366",
"0.62357366",
"0.62151146",
"0.62151146",
"0.62151146",
"0.6120816",
"0.6092508",
"0.605824",
"0.605824",
"0.6013706",
"0.5992594",
"0.59401494",
"0.5... | 0.77054393 | 0 |
Returns a TFFeature of int64s. | def xJYY(hkxX):
if not isinstance(hkxX, (tuple, list)):
hkxX = [hkxX]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[int(Ty9i) for Ty9i in BWXx]))",
"def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[int(Ty9i) for Ty9i in BWXx]))",
"def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int6... | [
"0.688075",
"0.6862741",
"0.68326515",
"0.68326515",
"0.67430365",
"0.67394435",
"0.67394435",
"0.67394435",
"0.673107",
"0.67192674",
"0.67192674",
"0.67192674",
"0.67192674",
"0.67192674",
"0.67192674",
"0.6709931",
"0.6709931",
"0.6709931",
"0.6709931",
"0.67064357",
"0.66... | 0.66444874 | 22 |
Make a PATCH call and return a WeeblyCloudResponse object | def Po4F(YKHO, w2IS, hGN5=None, NArs=None):
return YKHO._call('PATCH', w2IS, hGN5, NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pc4v(YKHO, bD7m, nPrm=None):\n bD7m = TDhU(YKHO.base_url, bD7m)\n try:\n Mkmy = YKHO._make_request(**dict(method='PATCH', url=bD7m, json=nPrm, auth=YKHO.auth, timeout=YKHO.timeout, hooks=YKHO.request_hooks, headers=YKHO.request_headers))\n except G4JS.exceptions.RequestException as e:\n ... | [
"0.7077751",
"0.7021419",
"0.6776632",
"0.67556494",
"0.6698181",
"0.65880984",
"0.6565383",
"0.655743",
"0.65295047",
"0.6513851",
"0.6503771",
"0.6472786",
"0.6469537",
"0.6469473",
"0.6452879",
"0.64436615",
"0.6439973",
"0.6432273",
"0.64150006",
"0.64135486",
"0.63975686... | 0.6322044 | 29 |
Get the ZSync trigger delay. | def VkGg(cuiw: Session, oZYu: AWG) -> int:
XIUE = str(oZYu).split('/')
XIUE.insert(2, 'raw')
XIUE.append('zsync')
XIUE.append('trigdelay')
QdIi = '/'.join(XIUE)
_LlJ = cuiw.daq_server.getInt(QdIi)
if 'sgchannels' in str(oZYu) or 'qachannels' in str(oZYu):
_LlJ = int(oyIN.ceil(_LlJ / ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lj9i(YKHO):\n return YKHO._TERRAINS[YKHO.terrain]['delay']",
"def h8k4(YKHO) -> float:\n return YKHO.maxdelay",
"def tJuz(YKHO):\n if type(YKHO.apply_delay) is not int:\n XObx = 'ReplicationDelay().get_delay_diff(): the self.apply_dilay should be an integer'\n raise ValueError(XObx)\... | [
"0.7331803",
"0.70847446",
"0.70209676",
"0.697348",
"0.6967559",
"0.69218016",
"0.68821573",
"0.68505645",
"0.68383604",
"0.68376315",
"0.68229395",
"0.6780892",
"0.6752767",
"0.6746795",
"0.67309755",
"0.66501635",
"0.66501635",
"0.6631623",
"0.65808666",
"0.65808666",
"0.6... | 0.6502191 | 24 |
Constructor. name The name used to identify this attribute. set The KeyIndexableSet whose elements can be assigned a value within this attribute. | def FIMM(YKHO, mWFP: unicode, set: ghidra.util.graph.KeyIndexableSet):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.ds = set()\n YKHO.keys = []",
"def FIMM(YKHO, mWFP: str):\n super(oisb, YKHO).__init__()\n YKHO.name = mWFP\n YKHO.sequence = set()\n YKHO.index = 0",
"def FIMM(YKHO, **azoT):\n YKHO.set(**azoT)",
"def set(YKHO):\n return GoiF(YKHO, lambda WKvO, LVAh: LVAh)",
... | [
"0.6343454",
"0.60338116",
"0.6030579",
"0.5960513",
"0.5955464",
"0.5894221",
"0.5861004",
"0.5848963",
"0.584766",
"0.5839426",
"0.5839426",
"0.5801566",
"0.57772523",
"0.57410544",
"0.57410544",
"0.5738753",
"0.5735084",
"0.5722881",
"0.57044965",
"0.5693556",
"0.5689613",... | 0.76226497 | 0 |
Removes all assigned values of this attribute. | def Y7Bk(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TO83(YKHO) -> None:\n for hkS8 in YKHO._attrs:\n setattr(YKHO, hkS8, None)",
"def qReA(YKHO):\n YKHO._attributes.clear()",
"def _Frq(YKHO):\n YKHO.attrs = _b8Y.AttributeContainer()",
"def pzUJ(YKHO) -> None:\n YKHO._row.remove(YKHO._value)\n YKHO._column.remove(YKHO._value)\n YKH... | [
"0.7478614",
"0.7357718",
"0.73396844",
"0.69982743",
"0.6996864",
"0.6992237",
"0.6956828",
"0.6805499",
"0.6730171",
"0.66969603",
"0.6695556",
"0.66829526",
"0.668087",
"0.6672988",
"0.6670365",
"0.66604215",
"0.66538155",
"0.6650434",
"0.664232",
"0.66403705",
"0.6601658"... | 0.0 | -1 |
Return the name of this Attribute. | def mWFP(YKHO) -> QMSQ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')",
"def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')",
"def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')",
"def W0tD(YKHO):\n return YKHO.attributes['name']",
"def av29(YKHO):\n return YKHO._get_attribute('name')",
... | [
"0.8481288",
"0.8481288",
"0.8481288",
"0.82458186",
"0.8205045",
"0.80255413",
"0.7997814",
"0.77118605",
"0.76510406",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",
"0.7644881",... | 0.0 | -1 |
Returns the elements of the owningSet sorted by their values of this Attribute. | def iqee(YKHO) -> x1iM[RnTg.util.graph.KeyedObject]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UuF2(YKHO):\n YKHO._elements = list((bGrB[-1] for bGrB in sorted(((tTpl.value, tTpl.weight, tTpl) for tTpl in YKHO))))",
"def sorted(YKHO, JfyU):\n return zFl6(sorted(YKHO.sets, key=JfyU))",
"def SAZ7(YKHO):\n YKHO.sort_and_reduce()\n return YKHO.data",
"def DumB(YKHO):\n Aofo = YKHO._dict... | [
"0.6853953",
"0.6499001",
"0.6480032",
"0.63646907",
"0.63385385",
"0.6144738",
"0.6129683",
"0.61153847",
"0.6050461",
"0.5947791",
"0.59465057",
"0.59204274",
"0.5909975",
"0.59069365",
"0.5865689",
"0.5862626",
"0.58405197",
"0.58351946",
"0.5833236",
"0.58261335",
"0.5816... | 0.56371194 | 32 |
Read JSON, return dict | def PSj2(Ux0P):
with open(Ux0P, 'r') as KAfx:
return qQXR.load(KAfx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PSj2(YKHO):\n YKHO._fopen.seek(YKHO._json_start, 0)\n return qQXR.loads(YKHO._fopen.read().decode('utf-8'))",
"def Nw5e(wM3v: str) -> dict:\n zgjV = {}\n if not Hy7s.path.isfile(wM3v):\n UtPW(Hy7s.path.basename(wM3v) + ' does not exist.')\n HwRy.exit(1)\n with open(wM3v) as eHNT:... | [
"0.7366292",
"0.73083895",
"0.730763",
"0.7213408",
"0.72055006",
"0.7202988",
"0.71772295",
"0.71769017",
"0.71589404",
"0.71501535",
"0.71480477",
"0.71459043",
"0.7139679",
"0.71254426",
"0.70945793",
"0.70945793",
"0.70905346",
"0.70862776",
"0.7082895",
"0.7082807",
"0.7... | 0.676514 | 54 |
Write dictionary to JSON | def uP8n(cmPJ, Ux0P):
with open(Ux0P, 'w') as KAfx:
qQXR.dump(cmPJ, KAfx, indent=4, sort_keys=True)
print('--> Wrote ' + Hy7s.path.basename(Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uP8n(YKHO, YGFP):\n hGN5 = qQXR.dumps(YGFP)\n if isinstance(hGN5, QMSQ):\n hGN5 = hGN5.encode('utf-8')\n YKHO.wfile.write(hGN5)",
"def f0cv(pmON, cmPJ):\n jcIu = qQXR.dumps(cmPJ, indent=4)\n with open(pmON, 'w', encoding='utf-8') as eHNT:\n eHNT.write(jcIu)",
"def Lsrz(YKHO, yt... | [
"0.7932182",
"0.78356576",
"0.77754295",
"0.76260453",
"0.7487478",
"0.74824244",
"0.7473716",
"0.74631274",
"0.74537027",
"0.7334966",
"0.72773993",
"0.7236022",
"0.72240007",
"0.7203074",
"0.7197882",
"0.7165491",
"0.7163943",
"0.71173054",
"0.7085702",
"0.7043441",
"0.7041... | 0.7493411 | 4 |
Provide a friendly representation | def wHJl(YKHO) -> str:
QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items()))
return '<Twilio.Api.V2010.UserDefinedMessageInstance {}>'.format(QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.76010835",
"0.7571921",
"0.7230172",
"0.7216933",
"0.7194604",
"0.71428955",
"0.714158",
"0.71369046",
"0.7134454",
"0.7134454",
"0.7131177",
"0.7104331",
"0.70761895",
"0.70686626",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70311874",
"0.701... | 0.0 | -1 |
Provide a friendly representation | def wHJl(YKHO) -> str:
return '<Twilio.Api.V2010.UserDefinedMessageList>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.7601743",
"0.75718004",
"0.72295034",
"0.7216429",
"0.71937954",
"0.71428096",
"0.7140594",
"0.7136909",
"0.7135249",
"0.7135249",
"0.7130013",
"0.7103256",
"0.7075",
"0.70674646",
"0.70674646",
"0.70674646",
"0.70674646",
"0.70674646",
"0.70671123",
"0.70313466",
"0.70191... | 0.0 | -1 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
j5sA = input('Would you like to analyze Chicago, New York City or Washington? ').lower()
while j5sA == 'chicago' or 'new york city' or 'washington':
print('You have selected: ', j5sA)
break
else:
print('Invalid in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671714",
"0.65376973",
"0.64612824",
"0.6376945",
"0.63504905",
"0.6311004",
"0.6288045",
"0.62342596",
"0.6215191",
"0.6207211",
"0.61830604",
"0.6174147",
"0.61701334",
"0.6160666",
"0.6159556",
"0.61552376",
"0.61457616",
"0.61299276",
"0.61062425",
"0.6104349",
"0.609... | 0.6260879 | 7 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
if x0eS != 'all':
X_bn = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7681617 | 67 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
TeiA = jQ3Z['month'].mode()[0]
print('\nThe most popular month is: ', TeiA)
_c3g = jQ3Z['day_of_week'].mode()[0]
print('\nThe most popular day is: ', _c3g)
Tz2d = jQ3Z['hour'].mode()[0]
print... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.7583438",
"0.75797... | 0.76002145 | 19 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
WeaF = jQ3Z['Start Station'].mode()[0]
print('\nThe most popular start station is: ', WeaF)
Lc6V = jQ3Z['End Station'].mode()[0]
print('\nThe most popular end station is: ', Lc6V)
jQ3Z['Start an... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.71610874 | 52 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
pe8w = jQ3Z['Trip Duration'].sum()
print('\nTotal travel time in seconds for this time period is ', pe8w)
iwXA = jQ3Z['Trip Duration'].mean()
print('\nThe mean travel time for this time period is ', int(iwXA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143977",
"0.80268085",
"0.8005599",
"0.79511017",
"0.7938921",
"0.79326934",
"0.792851",
"0.7916632",
"0.7915868",
"0.79095894",
"0.79071254",
"0.79020894",
"0.789307",
"0.78909105",
"0.78881186",
"0.7886607",
"0.78857124",
"0.78838766",
"0.7875441",
"0.7870104",
"0.78680... | 0.7807881 | 44 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8222023",
"0.8221203",
"0.8221203",
"0.8221203",
"0.8221203",
"0.8194479",
"0.811131",
"0.808555",
"0.7971664",
"0.7864228",
"0.76597136",
"0.72357756",
"0.7158288",
"0.71510094",
"0.71510094",
"0.7148979",
"0.7148979",
"0.7139939",
"0.7135133",
"0.71262753",
"0.71262753",... | 0.8161975 | 26 |
determines the distance between an the actor and a point on the map | def s7yO(YKHO, WKvO, LVAh):
Jw7X = WKvO - YKHO.x
eUWA = LVAh - YKHO.y
return epAf.sqrt(Jw7X ** 2 + eUWA ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, Xf84):\n return epAf.sqrt((YKHO.x - Xf84.x) ** 2 + (YKHO.y - Xf84.y) ** 2)",
"def Ayfi(EBgd, HpuQ):\n return ((EBgd.x - HpuQ.x) ** 2 + (EBgd.y - HpuQ.y) ** 2) ** 0.5",
"def haqT(FMwV, xzAw):\n return rbSi(FMwV, xzAw.get_location())",
"def pImw(YKHO, XP5J):\n return epAf.sqrt((XP5J.... | [
"0.7150524",
"0.69134736",
"0.68946624",
"0.6825415",
"0.68233377",
"0.68129843",
"0.6801358",
"0.6801358",
"0.6801358",
"0.6801358",
"0.6801358",
"0.6801358",
"0.6801358",
"0.6799072",
"0.6797185",
"0.67873955",
"0.67573434",
"0.67351544",
"0.6732874",
"0.67243373",
"0.66368... | 0.6797212 | 14 |
Test that strings are equivalent. | def fogn(YKHO):
qoGC = 'this is the first string'
VyPo = 'this is the first string'
Tmbm = 'this is the second string'
YKHO.assertEqual(True, GFDZ.strings_are_equal(qoGC, VyPo))
YKHO.assertEqual(False, GFDZ.strings_are_equal(qoGC, Tmbm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_Z3(qoGC, VyPo):\n return True",
"def BxtT(YKHO, UXsi, c163):\n if UXsi.lower().strip().replace('_', ' ') == c163.lower().strip().replace('_', ' '):\n return 1\n return 0",
"def Vbf8(j93S, Nqp_):\n j93S = zVCt.normalize('NFKC', j93S)\n Nqp_ = zVCt.normalize('NFKC', Nqp_)\n return ... | [
"0.7624572",
"0.73017526",
"0.72484386",
"0.7212676",
"0.71893454",
"0.70621693",
"0.7000434",
"0.6867128",
"0.68393123",
"0.68095803",
"0.67924976",
"0.6786772",
"0.67573386",
"0.6748181",
"0.66982424",
"0.66889256",
"0.6671233",
"0.65936756",
"0.6592168",
"0.6582873",
"0.65... | 0.8114444 | 0 |