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 |
|---|---|---|---|---|---|---|
Return the heuristic value for a given state. Default heuristic function used is h(n) = number of misplaced tiles | def MKlR(YKHO, Q6kx):
return sum((KCHu != Oa1e for KCHu, Oa1e in zip(Q6kx.state, YKHO.goal))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_oG(QTBn, eZzF):\n MKlR = 0\n for YRbF in range(eZzF.dimension):\n for r845 in range(eZzF.dimension):\n BWXx = YRbF * eZzF.dimension + r845 + 1\n if BWXx == eZzF.dimension ** 2:\n BWXx = ' '\n uKWF = eZzF.get_coordinates(QTBn, BWXx)\n Ccp... | [
"0.77346325",
"0.7654883",
"0.74284846",
"0.73011035",
"0.7242607",
"0.7046602",
"0.7026075",
"0.697503",
"0.68184316",
"0.6818057",
"0.674383",
"0.6740973",
"0.6732053",
"0.6711918",
"0.66688246",
"0.66471696",
"0.6638178",
"0.6495556",
"0.64928424",
"0.64860433",
"0.646674"... | 0.0 | -1 |
Load a dictionary of objects from a json file. This function loads a dictionary of objects from a json file. The | def Hiy9(nUeQ, iYnN=None):
MtVH = qQXR.load(nUeQ)
if iYnN:
try:
MtVH = dict([(G1Hx, iYnN.json_deserialize(z1Rg)) for G1Hx, z1Rg in MtVH.items()])
except AttributeError:
raise TypeError('non JsonSerializable class')
except:
raise
return MtVH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO):\n with xDSY.open(YKHO.filename, encoding='utf-8') as eHNT:\n YKHO.load_from_dict(qQXR.loads(eHNT.read()))",
"def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ",
"def U3hF(YKHO):\n try:\n with open(YKHO.__file_path, 'r... | [
"0.7506544",
"0.74715936",
"0.7309802",
"0.72842115",
"0.7261859",
"0.719322",
"0.71890604",
"0.71666133",
"0.7100827",
"0.7082036",
"0.7029916",
"0.70243615",
"0.7017344",
"0.6971616",
"0.6960963",
"0.69577605",
"0.69365466",
"0.69328463",
"0.69187915",
"0.6917001",
"0.68741... | 0.66113627 | 70 |
Load object from a deserialized json object. This method should load object from data returned by | def lcde(KGvk):
raise NotImplementedError('json_deserialize must be overriden') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(YKHO):\n YKHO.load_json_str(YKHO.get_json_str())",
"def cMLr(YKHO):\n from test.resources import object_json\n YKHO.assertEqual(object_json._data, {'answer': 42})\n YKHO.assertEqual(len(object_json), 1)\n YKHO.assertEqual(object_json['answer'], 42)",
"def RgB_(YKHO, nPrm: Dict[str, Any]... | [
"0.68574446",
"0.68526304",
"0.67517924",
"0.6714143",
"0.6706278",
"0.6699001",
"0.6689056",
"0.6678043",
"0.6648171",
"0.65466624",
"0.6534616",
"0.6517503",
"0.6515564",
"0.6510992",
"0.64804906",
"0.64561087",
"0.64272976",
"0.6400208",
"0.63936055",
"0.6375655",
"0.63674... | 0.6943058 | 0 |
Returns an asynchronous iterator that yields chunks of size n. Python3.5 available for Python 3.5+ only | def k2zH(YKHO, exwG: int) -> kcmk[bytes]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(Q6uT: Sequence[T], exwG: int) -> bDy6[bdIy[Kt_s]]:\n for YRbF in range(0, len(Q6uT), exwG):\n yield Q6uT[YRbF:YRbF + exwG]",
"def eHxA(OxJJ: Iterable, exwG: int=1000, Emd4: Type=list) -... | [
"0.71770084",
"0.714404",
"0.7130353",
"0.7025188",
"0.70212555",
"0.70097613",
"0.70097613",
"0.700124",
"0.6995675",
"0.6995675",
"0.6995675",
"0.6995675",
"0.6995675",
"0.69865084",
"0.6983201",
"0.69800216",
"0.6975258",
"0.69691044",
"0.69691044",
"0.6964514",
"0.6963392... | 0.8406365 | 0 |
Generate split data with temporal_basket_split. Generate split data with temporal_basket_split method. | def n4NX(YKHO, nPrm=None, MdeS=0.1, eEwT=100, VuzP=False, alBp=10):
if nPrm is None:
nPrm = YKHO.load_interaction()
if not isinstance(nPrm, rLdf.DataFrame):
raise RuntimeError('data is not a type of DataFrame')
if GhpG not in nPrm.columns:
raise RuntimeError("This dataset doesn't hav... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XnuE(YKHO, MdeS=0.1, eEwT=100, VuzP=False, alBp=10, BsfS=False, k030=False):\n QnGa = Hy7s.path.join(YKHO.processed_path, 'temporal_basket')\n if not Hy7s.path.exists(QnGa):\n Hy7s.mkdir(QnGa)\n OMbW = cIR4(test_rate=MdeS, random=False, n_negative=eEwT, by_user=VuzP)\n TNll = QnGa\n QnGa ... | [
"0.6783587",
"0.6612773",
"0.6102922",
"0.58242923",
"0.5757818",
"0.5713793",
"0.5695739",
"0.5482762",
"0.5446944",
"0.53853124",
"0.5376321",
"0.5373172",
"0.53675795",
"0.535025",
"0.53106225",
"0.5301982",
"0.5292067",
"0.5278453",
"0.5264799",
"0.5236665",
"0.52323955",... | 0.7527967 | 0 |
Create and return a fake RiakObject. | def l1Z8(YKHO, CLBf, H5ew):
l7rj = YKHO.bucket_name(CLBf)
l1Z8 = YXfN(YKHO._state, l7rj, H5ew)
l1Z8.set_content_type('application/json')
l1Z8.set_data({'$VERSION': CLBf.VERSION})
return l1Z8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXBP():\n return object()",
"def J9vS(YKHO, mWFP: str) -> LGwx:\n n9UN: w7nD = getattr(YKHO.faker, mWFP)\n return jtAy(maxsize=None)(lambda bGrB: n9UN())",
"def u76q(YKHO):\n return IbcJ(store=YKHO.store, hash=u'somehash', contentDigest=u'quux', content=YKHO.store.newFilePath('foo'), contentTyp... | [
"0.6498993",
"0.6185029",
"0.6068252",
"0.5993571",
"0.59780276",
"0.5866788",
"0.58306056",
"0.5774978",
"0.57056415",
"0.566206",
"0.5632154",
"0.5630083",
"0.56242526",
"0.55080545",
"0.55028653",
"0.54455763",
"0.5429836",
"0.54195917",
"0.54066926",
"0.5395255",
"0.53947... | 0.71742576 | 0 |
Construct and return an index page object. | def QTJF(YKHO, l7rj, V_s1, kLRn, OEGN, azir, zD4t, dixj, q8f8):
if not azir:
dixj = [H5ew for bGrB, H5ew in dixj]
return tt9l(YKHO, q8f8, dixj, {'bucket_name': l7rj, 'index_name': V_s1, 'start_value': kLRn, 'end_value': OEGN, 'return_terms': azir, 'max_results': zD4t}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return {'page': 'index'}",
"def Vn7Z():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('pages/index.html', isNav=True)",
"def t7ng(nPrm):\n lpOi = [_R2e.H1('INDEX'), _R2e.Div([_R2e.A('Characters', href='/character'), ' | ', _R2e.A('Search', href='/search')]), zoLL.Loading(... | [
"0.71548754",
"0.64618194",
"0.6436049",
"0.6369808",
"0.6298626",
"0.6282117",
"0.6282117",
"0.6282117",
"0.62155414",
"0.6210448",
"0.6186697",
"0.61463696",
"0.60686356",
"0.606648",
"0.6062112",
"0.60497737",
"0.60472274",
"0.60227215",
"0.6021287",
"0.6020807",
"0.600525... | 0.67040664 | 1 |
Take a string and return a valid filename constructed from it. | def LWVQ(KCHu):
jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)
Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))
Ux0P = Ux0P.replace(' ', '_')
return Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWVQ(KCHu: str):\n jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)\n Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))\n Ux0P = Ux0P.replace(' ', '_')\n return Ux0P",
"def XZ66(KCHu):\n assert KCHu is not '' or KCHu is not None\n KCHu = str(KCHu).strip().replace(' ', '_')\n ... | [
"0.79578626",
"0.7950373",
"0.78903204",
"0.7826596",
"0.7820293",
"0.76784",
"0.7637565",
"0.7621958",
"0.7454506",
"0.7445902",
"0.74298054",
"0.74010444",
"0.7303567",
"0.72452104",
"0.71115357",
"0.70342577",
"0.6890423",
"0.6883135",
"0.68203956",
"0.67677194",
"0.674243... | 0.7780477 | 7 |
Constructs a Configuration, validating the values in `dictionary`, expecting paths to be within `location`. | def QkSu(Emd4, cmPJ: Dict[str, Any], *, Rci7: Path) -> 'Configuration':
uPxI = {'type': 'object', 'additionalProperties': False, 'required': ['destination', 'namespace', 'requirements'], 'properties': {'destination': {'type': 'string'}, 'namespace': {'type': 'string'}, 'requirements': {'type': 'string'}, 'protected... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eQF9(Rci7):\n if not Hy7s.path.exists(Rci7):\n Zg0d = Hy7s.path.abspath(Rci7)\n G9jH.fatal('Config not found - expected a configfile at: [{loc}] - exiting.'.format(loc=Zg0d))\n HwRy.exit(1)",
"def FIMM(YKHO, Rci7=None, _AKB=None, **B2fa):\n if not Rci7:\n raise ValueError('M... | [
"0.5855621",
"0.5390428",
"0.5295843",
"0.52190936",
"0.51966506",
"0.51655555",
"0.513441",
"0.5131885",
"0.5109062",
"0.5101511",
"0.5075852",
"0.50618964",
"0.49730387",
"0.49712208",
"0.4969562",
"0.49658695",
"0.49602363",
"0.4941562",
"0.49261326",
"0.4875033",
"0.48718... | 0.74685436 | 0 |
Iterate through given lines iterator (file object or list of lines) and return ngram frequencies. The return value is a dict mapping the length of the ngram to a collections.Counter object of ngram tuple and number of times that ngram occurred. Returned dict includes ngrams of length min_length to max_length. | def Y908(Nqlg, Lx0h=2, BcCR=4):
Fbjb = range(Lx0h, BcCR + 1)
pCSA = {u54L: g760.Counter() for u54L in Fbjb}
gGq6 = g760.deque(maxlen=BcCR)
def xKhZ():
jvSB = tuple(gGq6)
for u54L in Fbjb:
if len(jvSB) >= u54L:
pCSA[u54L][jvSB[:u54L]] += 1
for zFiD in Nqlg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y908(YKHO, Nqlg, Lx0h=2, BcCR=4):\n YKHO.lengths = range(Lx0h, BcCR + 1)\n YKHO.ngrams = {u54L: g760.Counter() for u54L in Fbjb}\n YKHO.queue = g760.deque(maxlen=BcCR)",
"def Y908(Nqlg, Lx0h=1, BcCR=4):\n\n def xKhZ():\n jvSB = tuple(gGq6)\n for u54L in Fbjb:\n if len(jvS... | [
"0.7684961",
"0.76285505",
"0.73904157",
"0.680265",
"0.67729276",
"0.67621726",
"0.6700955",
"0.6661531",
"0.66487426",
"0.659852",
"0.6427865",
"0.6388674",
"0.63881356",
"0.6381354",
"0.63468874",
"0.63448745",
"0.6335181",
"0.6334952",
"0.63114697",
"0.6289899",
"0.628243... | 0.78236645 | 0 |
Computes the area under the precisionrecall curve. | def ptxW(x6A0: List[int], aTLP: List[float]) -> float:
rhd_, AOzf, bGrB = wzRA(x6A0, aTLP)
return zUeS(AOzf, rhd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPRp(rhd_: list, AOzf: list) -> float:\n return ajDR(AOzf, rhd_)",
"def H6dO(AOzf, rhd_):\n YuCV = oyIN.concatenate(([0.0], AOzf, [1.0]))\n BsPE = oyIN.concatenate(([0.0], rhd_, [0.0]))\n for YRbF in range(BsPE.size - 1, 0, -1):\n BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF])\n... | [
"0.8208191",
"0.79268074",
"0.79202956",
"0.790217",
"0.790217",
"0.78619045",
"0.7840341",
"0.75207496",
"0.74233323",
"0.7329511",
"0.73156524",
"0.708228",
"0.7062399",
"0.7015234",
"0.6936933",
"0.68373823",
"0.6776866",
"0.6753741",
"0.6667789",
"0.6637576",
"0.6547334",... | 0.67768353 | 18 |
Computes the accuracy of a binary prediction task using a given threshold for generating hard predictions. Alternatively, computes accuracy for a multiclass prediction task by picking the largest probability. | def vjyh(x6A0: List[int], aTLP: Union[List[float], List[List[float]]], gwAu: float=0.5) -> float:
if type(aTLP[0]) == list:
w8ho = [XP5J.index(max(XP5J)) for XP5J in aTLP]
else:
w8ho = [1 if XP5J > gwAu else 0 for XP5J in aTLP]
return aFTQ(x6A0, w8ho) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(x6A0: List[int], aTLP: Union[List[float], List[List[float]]], gwAu: float=0.5) -> float:\n if type(aTLP[0]) == list:\n w8ho = [XP5J.index(max(XP5J)) for XP5J in aTLP]\n else:\n w8ho = [1 if XP5J > gwAu else 0 for XP5J in aTLP]\n return aFTQ(x6A0, w8ho)",
"def vjyh(x6A0: List[int],... | [
"0.7709991",
"0.7511051",
"0.7276398",
"0.70488864",
"0.70320666",
"0.69131315",
"0.6908888",
"0.68309194",
"0.6726362",
"0.67168456",
"0.6644039",
"0.6570016",
"0.64819574",
"0.6433799",
"0.643102",
"0.64011323",
"0.6399237",
"0.6395455",
"0.6382157",
"0.63656",
"0.63620985"... | 0.7749667 | 0 |
Builds a PyTorch Optimizer. | def mHsN(C3ST: nn.Module, qIxc: Namespace) -> hCm3:
NArs = [{'params': C3ST.parameters(), 'lr': qIxc.init_lr, 'weight_decay': 0}]
return qhl4(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mHsN(_Fei: CfgNode, C3ST: torch.nn.Module) -> ht2j.optim.Optimizer:\n u4wb = (ht2j.nn.BatchNorm1d, ht2j.nn.BatchNorm2d, ht2j.nn.BatchNorm3d, ht2j.nn.SyncBatchNorm, ht2j.nn.GroupNorm, ht2j.nn.InstanceNorm1d, ht2j.nn.InstanceNorm2d, ht2j.nn.InstanceNorm3d, ht2j.nn.LayerNorm, ht2j.nn.LocalResponseNorm)\n NA... | [
"0.6598968",
"0.6491794",
"0.64786536",
"0.6437391",
"0.63047016",
"0.61300355",
"0.60748035",
"0.6072925",
"0.598902",
"0.5971825",
"0.59371614",
"0.5908207",
"0.5907911",
"0.5886632",
"0.5873024",
"0.58706564",
"0.5867648",
"0.58661216",
"0.5852822",
"0.5833402",
"0.579277"... | 0.66013163 | 0 |
Builds a PyTorch learning rate scheduler. | def Ai8u(K0do: Optimizer, qIxc: Namespace, _YX8: List[int]=None) -> pCDx:
return jsvk(optimizer=K0do, warmup_epochs=[qIxc.warmup_epochs], total_epochs=_YX8 or [qIxc.epochs] * qIxc.num_lrs, steps_per_epoch=qIxc.train_data_size // qIxc.batch_size, init_lr=[qIxc.init_lr], max_lr=[qIxc.max_lr], final_lr=[qIxc.final_lr]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GVec(K0do, GPtr):\n return ht2j.optim.lr_scheduler.StepLR(K0do, step_size=5, gamma=0.9)",
"def tIkX(tspZ: float, djTW: float, JkES: int, PJWX: int=1) -> bdPE.callbacks.LearningRateScheduler:\n b6Gq = rXdc(tspZ, djTW, JkES)\n return WTXF(schedule=b6Gq, verbose=PJWX)",
"def RwOA(K0do, y7GR):\n NV... | [
"0.7930454",
"0.7270104",
"0.72256047",
"0.7176108",
"0.7084193",
"0.70634633",
"0.7060095",
"0.70600694",
"0.7007854",
"0.69914424",
"0.6941896",
"0.6919559",
"0.69080704",
"0.6861845",
"0.6807765",
"0.67986774",
"0.6795805",
"0.6786529",
"0.67793083",
"0.67793083",
"0.67736... | 0.7315069 | 1 |
Test that a given password policy is valid according to the first stars' rules. | def WQC0(Qabx: str, aEqx: bool):
assert dzHS.validate_first_star_policy(Qabx) == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5Df(Mol0):\n Qabx, sZqf, zN5h = Mol0\n return zN5h.count(sZqf) in Qabx",
"def kPGM(Mol0):\n Qabx, sZqf, zN5h = Mol0\n a06Z = Qabx[0] - 1\n dsqg = Qabx[-1] - 1\n return (zN5h[a06Z] == sZqf) ^ (zN5h[dsqg] == sZqf)",
"def rggK(Qabx: str, aEqx: bool):\n assert dzHS.validate_second_star_po... | [
"0.7051201",
"0.70007664",
"0.69529474",
"0.68343574",
"0.66242343",
"0.6584886",
"0.6536774",
"0.6471579",
"0.64339715",
"0.64224905",
"0.63708144",
"0.6358362",
"0.6347376",
"0.63193583",
"0.6316809",
"0.63018954",
"0.6277832",
"0.6274736",
"0.6211703",
"0.61495656",
"0.613... | 0.65974146 | 5 |
Test that a given password policy is valid according to the second stars' rules. | def rggK(Qabx: str, aEqx: bool):
assert dzHS.validate_second_star_policy(Qabx) == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kPGM(Mol0):\n Qabx, sZqf, zN5h = Mol0\n a06Z = Qabx[0] - 1\n dsqg = Qabx[-1] - 1\n return (zN5h[a06Z] == sZqf) ^ (zN5h[dsqg] == sZqf)",
"def P5Df(Mol0):\n Qabx, sZqf, zN5h = Mol0\n return zN5h.count(sZqf) in Qabx",
"def jqmR():\n assert EvfH('Longpassword') == False\n assert EvfH('1... | [
"0.7291398",
"0.69760734",
"0.6725762",
"0.6681516",
"0.6674957",
"0.660869",
"0.659909",
"0.6551593",
"0.64916486",
"0.64302176",
"0.6377811",
"0.63685375",
"0.6358652",
"0.6352963",
"0.6323817",
"0.62727654",
"0.6260491",
"0.6254762",
"0.6252222",
"0.6249409",
"0.6229831",
... | 0.7226481 | 1 |
Gets all the articles | def mrVf():
VECZ = []
DpUl = Oa1e.db.execute("\n SELECT entries.location FROM categories\n INNER JOIN entries ON\n entries.slug = categories.slug AND\n entries.published = categories.published\n WHERE categories.category='{category}'\n ORDER BY entries.published D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iqGZ(NCls: Session):\n return NCls.query(LJI6).all()",
"def mrVf(YKHO):\n return YKHO.get_queryset().filter(content_type__model='article').order_by('-articles__published_at')",
"def mrVf(YKHO):\n return mrVf.Articles(YKHO)",
"def mrVf(YKHO):\n return mrVf.Articles(YKHO)",
"def list():\n ... | [
"0.8152243",
"0.79722065",
"0.7871781",
"0.7833883",
"0.769121",
"0.75862175",
"0.75804",
"0.7577904",
"0.74154687",
"0.7402131",
"0.7390644",
"0.73225033",
"0.732051",
"0.73135287",
"0.7283619",
"0.712267",
"0.7118482",
"0.7115349",
"0.70855975",
"0.70765924",
"0.7034778",
... | 0.63388735 | 51 |
Removes the filename extension | def NVCy(nUeQ):
return nUeQ.split('.')[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXbr(Ux0P):\n return Ux0P.rsplit('.', 1)[-2]",
"def HcGC(Ux0P):\n P8oC = Hy7s.path.basename(Ux0P)\n return Hy7s.path.splitext(P8oC)[0]",
"def jJEX(WKvO):\n return Hy7s.path.splitext(Hy7s.path.basename(WKvO))[0]",
"def dbzI(pmON):\n for Fst3 in H7iW:\n pmON = pmON.replace('.%s' % Fst... | [
"0.8577537",
"0.8402366",
"0.82835704",
"0.7953714",
"0.75720996",
"0.74829245",
"0.74663013",
"0.7405754",
"0.7345079",
"0.73050994",
"0.7301551",
"0.7291763",
"0.7096758",
"0.7093853",
"0.7092374",
"0.7085213",
"0.70423526",
"0.70324636",
"0.69982874",
"0.6982967",
"0.69548... | 0.7704698 | 4 |
Returns the block containing addr. If the block is not present, it calls read on the next level store. | def Y_Cu(YKHO, rRzo):
ZwtW = None
TZ9E, ACOY, vgXP = YKHO._decompose(rRzo)
if ACOY not in YKHO._d:
YKHO._d[ACOY] = []
fQa0 = YKHO._d[ACOY]
for kdxT, XkN1 in fQa0:
if TZ9E == kdxT:
YKHO._track(rRzo, read=True, hit=True)
return XkN1
if YKHO.implicit and len(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO, rRzo: str) -> dict:\n for XkN1 in YKHO.__mem:\n if XkN1['address'] == rRzo:\n return XkN1\n return {}",
"def gR8w(YKHO, rRzo: ghidra.program.model.address.Address) -> RnTg.program.model.mem.MemoryBlock:\n ...",
"def gyco(YKHO, yOAJ, jNOo):\n return yOAJ.get_block(jN... | [
"0.71545273",
"0.6975174",
"0.66679907",
"0.65838784",
"0.6459256",
"0.634004",
"0.633193",
"0.63195604",
"0.6292701",
"0.6288051",
"0.6278899",
"0.62583405",
"0.6253954",
"0.6194434",
"0.61794126",
"0.60847723",
"0.6075524",
"0.6063847",
"0.6043325",
"0.6032997",
"0.5892681"... | 0.76011753 | 0 |
Get a grid entry. | async def get(YKHO, CGRu):
U5bT = await YKHO.db.grids.find_one({'grid_id': CGRu}, projection={'_id': False})
if not U5bT:
YKHO.send_error(404, reason='Grid not found')
else:
YKHO.write(U5bT)
YKHO.finish() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YvTL(YKHO, rdlD, iVRZ, D7qW=None):\n if not D7qW:\n D7qW = YKHO.gameGrid\n return D7qW.getItem(rdlD, iVRZ)",
"def l80C(YKHO, rdlD, fvDH):\n return YKHO._grid[rdlD][fvDH]",
"def l80C(YKHO, rdlD, fvDH):\n return YKHO._grid[rdlD][fvDH]",
"def l80C(YKHO, rdlD, fvDH):\n return YKHO._grid... | [
"0.67409325",
"0.6644148",
"0.6644148",
"0.6644148",
"0.66041654",
"0.65990686",
"0.65252686",
"0.6521284",
"0.64955336",
"0.64949054",
"0.6484982",
"0.645304",
"0.6406731",
"0.6405405",
"0.6397506",
"0.6296497",
"0.6248816",
"0.622451",
"0.6198434",
"0.61945254",
"0.6157268"... | 0.60561895 | 31 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83704215",
"0.8281178",
"0.8249269",
"0.81396633",
"0.8114569",
"0.80989784",
"0.8094434",
"0.80801415",
"0.8068151",
"0.8067846",
"0.8057441",
"0.8054995",
"0.80453163",
"0.80453163",
"0.80453163",
"0.80453163",
"0.80453163",
"0.80453163",
"0.80453163",
"0.80453163",
"0.8... | 0.8062881 | 16 |
Random weights drawn from a Gaussian | def qwQW(dzpA, KR2F=None, NXpY=0.01, HJVe=True):
if KR2F is None:
KR2F = dzpA
if KR2F == dzpA and HJVe:
XcU5 = Xjd_(dzpA)
else:
XcU5 = NXpY * XTiz.random.randn(dzpA, KR2F)
return XcU5.astype('float32') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2eI(YKHO):\n IrOQ = k4GM()\n KoVS = k4GM()\n if IrOQ < 1e-06:\n IrOQ = 1e-06\n return PZyS(-2 * RKD7(IrOQ)) * YhSR(2 * mM0K * KoVS)",
"def qVll(YKHO, f7dA):\n raise NotImplementedError",
"def vfX0(YKHO, JBMS=0, z2bo=1):\n YKHO.slp_weights = oyIN.random.normal(JBMS, z2bo, size=(YKH... | [
"0.69253546",
"0.6907757",
"0.6906672",
"0.6900726",
"0.6889791",
"0.6867258",
"0.6847343",
"0.6796425",
"0.67804855",
"0.6768728",
"0.67305326",
"0.6666161",
"0.6633314",
"0.66207737",
"0.65838647",
"0.65782684",
"0.655484",
"0.65189344",
"0.65089655",
"0.6487783",
"0.647785... | 0.0 | -1 |
Convert string to datetime object. | def h6AV(K1jx):
Aofo = None
if Aofo is None:
Aofo = PFJs(K1jx, '%Y-%m-%d %H:%M:%S.%f %z')
if Aofo is None:
Aofo = PFJs(K1jx, '%Y-%m-%d %H:%M:%S.%f')
if Aofo is None:
Aofo = PFJs(K1jx, '%Y-%m-%d %H:%M:%S')
if Aofo is None:
raise RuntimeError("Failed to convert '{}' int... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDPx(str):\n return qcWV.strptime(str, '%Y-%m-%dT%H:%M:%S.%fZ')",
"def R2Sr(KCHu):\n return qcWV.strptime(KCHu.decode(), '%Y-%m-%d %H:%M:%S')",
"def dDPx(str):\n if not str:\n return str\n return qcWV.datetime.strptime(str.split('.')[0], Vjr_)",
"def TZLK(mbyn: str) -> qcWV:\n retur... | [
"0.78559595",
"0.7806504",
"0.76967424",
"0.76847774",
"0.7623683",
"0.7548493",
"0.7525062",
"0.7456067",
"0.744933",
"0.7443482",
"0.743952",
"0.7422947",
"0.73081374",
"0.7255298",
"0.72483724",
"0.7230942",
"0.72260016",
"0.722573",
"0.7221167",
"0.72035706",
"0.71921664"... | 0.0 | -1 |
Returns event data matching the event label specified or None. | def DId7(NBld, UbRR, vYBr=1.0):
Aofo = None
VWJ7 = False
poxP, _pP8 = SQUV(NBld, vYBr)
if not poxP:
VWJ7 = True
return (Aofo, VWJ7)
hCPK = '{:f}'.format(_pP8)
if UbRR is None:
gJsM = ['timeout', hCPK, 'tail', '-n', '1', NBld]
yvT9 = ''
try:
yvT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYkd(YKHO, UXqs):\n try:\n return YKHO._data[UXqs]\n except KeyError:\n try:\n Jyyj = fhm8[UXqs]\n except KeyError:\n return None\n else:\n return getattr(YKHO, '_get' + Jyyj.meth_pl)()",
"def iIby(YKHO, UXqs):\n nPrm = YKHO._getData(UXqs)... | [
"0.6986888",
"0.6744777",
"0.6611872",
"0.6522634",
"0.6315734",
"0.6216993",
"0.6191255",
"0.5773424",
"0.57695127",
"0.57607955",
"0.5585442",
"0.55435276",
"0.55417466",
"0.54313314",
"0.54313314",
"0.5372679",
"0.535484",
"0.53264093",
"0.5309692",
"0.5295486",
"0.5274525... | 0.51357186 | 32 |
r"""Return the matching group of the event label regex if one is found. | def hKgh(YKHO, UbRR, jkf2=None, nvUx=False, vYBr=1.0, tTLi=0):
if not jkf2:
jkf2 = UbRR
Aofo = YKHO.get_last_event([UbRR], timeout=vYBr)
if not Aofo.results_list:
tO9_ = '{} get event state failed. {} not yet seen in logs'.format(YKHO._device_name, jkf2)
else:
L6rk = Aofo.results... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOe2(YKHO, SLbw):\n if YKHO.rematch is None:\n return None\n else:\n return YKHO.rematch.group(SLbw)",
"def gRrm(gxiP, l5Ny, hE03=1):\n kUBT = ZbWC.search(gxiP, l5Ny)\n if kUBT:\n return kUBT.group(hE03)\n else:\n return None",
"def WbIa(l5Ny, Crrw):\n for UXqs... | [
"0.6243117",
"0.60847455",
"0.6034069",
"0.60160875",
"0.5840702",
"0.5764992",
"0.56929356",
"0.56208205",
"0.5490368",
"0.5478569",
"0.5462098",
"0.5397177",
"0.53950393",
"0.53933126",
"0.53859985",
"0.5336552",
"0.5291058",
"0.52490413",
"0.5186651",
"0.5180022",
"0.51639... | 0.5116134 | 27 |
Locates a datetime.datetime closest to target datetime. | def ixQ9(YKHO, hE6x, azyF):
if not hE6x:
raise UAju.ParserError('Input parameter datetime_list length is zero. Required parameters: [datetime.datetime], datetime.datetime')
kVxi = [bTKY for bTKY in hE6x if bTKY < azyF]
if not kVxi:
raise UAju.ParserError('work_list length is zero. Entries in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ct5V(WZ22, XdMZ, VCtQ=None) -> qcWV.date | None:\n\n def QQt7(Csk6):\n return WZ22 - Csk6 if Csk6 <= WZ22 else qcWV.timedelta.max\n\n def uBEl(Csk6):\n return Csk6 - WZ22 if Csk6 >= WZ22 else qcWV.timedelta.max\n\n def jUvi(Csk6):\n return WZ22 - Csk6 if Csk6 < WZ22 else Csk6 - WZ... | [
"0.6702089",
"0.6500694",
"0.64598507",
"0.585127",
"0.57860357",
"0.56574386",
"0.5651094",
"0.56321347",
"0.56310844",
"0.55818236",
"0.5565437",
"0.554823",
"0.54743797",
"0.5420503",
"0.5417901",
"0.526718",
"0.52564967",
"0.52448344",
"0.52256316",
"0.5214709",
"0.519476... | 0.7585258 | 0 |
This function constructs the URL to a user's profile. | def ZIjJ(ePsw, vh8d='id'):
if vh8d == 'username':
NtEF = ePsw
else:
NtEF = fiXC(ePsw, vh8d)
xj6k = f'{NKRf}/people/{NtEF}'
return xj6k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xj6k(YKHO):\n return gxEw('auth_profile', args=[YKHO.user.username])",
"def hlzF(YKHO):\n return '/profile/%s' % YKHO.id",
"def hlzF(YKHO):\n return gxEw('profile', args=[str(YKHO.user.username)])",
"def hlzF(YKHO):\n return gxEw('profile', args=[str(YKHO.id)])",
"def jbux(YKHO):\n retur... | [
"0.8227132",
"0.7430972",
"0.71914357",
"0.6894003",
"0.6826512",
"0.6684108",
"0.6663101",
"0.6608801",
"0.6577758",
"0.6514719",
"0.6459156",
"0.64151084",
"0.6401612",
"0.63838965",
"0.63838965",
"0.63838965",
"0.6374063",
"0.6371142",
"0.6349622",
"0.6319628",
"0.6292984"... | 0.7533327 | 1 |
Assess if Docker should be used based on the value of args. | def aNn7(L5ai: DockerizePipArgTypeDef=None) -> bool:
if isinstance(L5ai, bool):
return L5ai
if isinstance(L5ai, str):
if L5ai == 'non-linux' and (not HwRy.platform.startswith('linux')):
return True
try:
return bool(oOc6(L5ai))
except ValueError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcXo(YKHO) -> bool:\n from hubble.executor.helper import is_valid_docker_uri\n DFkc = getattr(YKHO.args, 'uses', '')\n return is_valid_docker_uri(DFkc)",
"def pX9J():\n return False",
"def T_vr(zGKt):\n try:\n return 'dockerfile' in YKHO.kard.env.get_container(zGKt)\n except KeyErr... | [
"0.75592434",
"0.6791129",
"0.641314",
"0.63690114",
"0.6301101",
"0.61071885",
"0.60725427",
"0.60477525",
"0.58751506",
"0.5770867",
"0.5769221",
"0.5697177",
"0.5614681",
"0.55873924",
"0.55785286",
"0.55209535",
"0.5489136",
"0.545635",
"0.53722596",
"0.5362115",
"0.53584... | 0.6928599 | 1 |
Return the appropriate region to use when uploading functions. Select the appropriate region for the bucket where lambdas are uploaded in. | def QBgQ(imVg: Optional[str], WshG: Optional[str], L5Th: Optional[str], LjF8: str) -> str:
zn0c = None
zn0c = WshG if imVg else L5Th
return zn0c or LjF8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JqvI(YKHO) -> str:\n return qe4Y.get(YKHO, 'function_region')",
"def fmlE() -> str:\n cuiw = iVGz.session.Session()\n aGvo = k8wH.get_current_context().params.get('region') or cuiw.region_name\n return aGvo",
"def zn0c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'region')",
"def Vx1Q... | [
"0.7334205",
"0.6579131",
"0.6273241",
"0.6175507",
"0.6165684",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.6162876",
"0.61409694",
"0.6136126",
"0.6130676",
... | 0.71261233 | 1 |
remove distracting whitespaces and newline characters | def QZWg(_R2e):
lvR3 = ZbWC.compile('(^[\\s]+)|([\\s]+$)', ZbWC.MULTILINE)
_R2e = ZbWC.sub(lvR3, '', _R2e)
_R2e = ZbWC.sub('\n', ' ', _R2e)
_R2e = ZbWC.sub('[\\s]+<', '<', _R2e)
_R2e = ZbWC.sub('>[\\s]+', '>', _R2e)
return _R2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bPnd(l5Ny):\n return l5Ny",
"def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.text)",
"def T7vC(YKHO, KCHu):\n return KCHu.translate({ord(Z9rn): None for Z9rn in vIwR.whitespace})",
"def S2gQ(YKHO, FUjE):\n return FUjE.replace('\\r', '').replace('\\n', '')",
... | [
"0.7512734",
"0.74011576",
"0.73931",
"0.7392397",
"0.72668093",
"0.7214466",
"0.71911186",
"0.7189776",
"0.7180525",
"0.7179743",
"0.7165845",
"0.7156132",
"0.71512353",
"0.7145525",
"0.7124246",
"0.71108913",
"0.7079354",
"0.7075042",
"0.7049608",
"0.70375574",
"0.70324016"... | 0.0 | -1 |
View function for home page of site. | def d6pt(QePW, qm1k='index.html'):
t0xh = {}
C3ST = WSum
f4Bp = ['rank', 'name', 'location', 'city', 'scores_overall']
ua_Z = ['scores_citations', 'scores_industry_income', 'scores_international_outlook', 'scores_research', 'scores_teaching', 'stats_student_staff_ratio', 'stats_pc_intl_students', 'stats... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'... | [
"0.8493426",
"0.84268916",
"0.83415145",
"0.83306193",
"0.82976943",
"0.8295291",
"0.8276345",
"0.82545686",
"0.82155704",
"0.8132563",
"0.81246215",
"0.81224865",
"0.8121264",
"0.81049734",
"0.8098485",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0... | 0.0 | -1 |
Create an array of the given shape and populate it with random samples from a uniform distribution over [0, 1). | def Zwka():
Ep8u = 10
Gzv5 = 28
Zwka = oyIN.random.rand(Ep8u, Gzv5)
return Zwka | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W9X1(YKHO, ROpF):\n return oyIN.random.randn(ROpF[0], ROpF[1]) * 0.01",
"def gyIm(YKHO, ROpF=(None,), yDqo='float64'):\n ROpF = tuple((YRbF if YRbF is not None else YKHO.int(20) for YRbF in ROpF))\n return (100 * YKHO.rng.random(XTiz.prod(ROpF)) - 50).reshape(ROpF).astype(yDqo)",
"def nrOS(YKHO, R... | [
"0.7742863",
"0.7600855",
"0.7438788",
"0.73372513",
"0.73372513",
"0.7225661",
"0.70718646",
"0.6932274",
"0.689363",
"0.6843742",
"0.68274975",
"0.6786792",
"0.67669463",
"0.6762449",
"0.6760896",
"0.6744737",
"0.6633466",
"0.66286033",
"0.66112137",
"0.6599423",
"0.6539307... | 0.0 | -1 |
Return a representation of this enumeration value. | def wHJl(YKHO):
return ('<%s "%s" (0x%x)>' if YKHO.makehex else '<%s "%s" (%d)>') % (YKHO.__class__.__name__, YKHO.name, YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.value)",
"def wHJl(YKHO):\n return str(YKHO.value)",
"def wHJl(YKHO) -> str:\n return YKHO.value",
"def wHJl(YKHO):\n return '{}(value={})'.format(YKHO.__class__.__name__, YKHO.value)",
"def wHJl(YKHO):\n return '{}(value={})'.format(YKHO.__class__.__name__,... | [
"0.7571263",
"0.7571263",
"0.75241333",
"0.7411102",
"0.7411102",
"0.72029716",
"0.71417725",
"0.71417725",
"0.71417725",
"0.71417725",
"0.71417725",
"0.71417725",
"0.7103676",
"0.7103676",
"0.7054559",
"0.7053413",
"0.70528144",
"0.70528144",
"0.70528144",
"0.70528144",
"0.7... | 0.7048697 | 21 |
Determine the number of options contained within the ``EnumSet`` instance. | def szAg(YKHO):
return len(YKHO.by_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pT8E(YKHO) -> int:\n return len(YKHO._choices)",
"def mrPm(YKHO):\n YKHO._choices = YKHO.getChoices()\n return len(YKHO._choices)",
"def szAg(YKHO):\n return len(YKHO._enums)",
"def szAg(YKHO):\n return len(YKHO._opts) + len(YKHO._groups)",
"def szAg(YKHO) -> int:\n return len(YKHO._o... | [
"0.71791655",
"0.692308",
"0.68106925",
"0.6607",
"0.65172154",
"0.64987546",
"0.64216137",
"0.63446486",
"0.620711",
"0.61528575",
"0.6135118",
"0.60672617",
"0.60482633",
"0.6048155",
"0.60394466",
"0.5983859",
"0.59663296",
"0.59662783",
"0.5944988",
"0.594224",
"0.58795",... | 0.56543607 | 33 |
Determine if the ``FlagSet`` instance contains the specified flags. | def FYXB(YKHO, I1mm):
if isinstance(I1mm, jKi7.integer_types):
return YKHO.bitflags & I1mm == I1mm
elif isinstance(I1mm, jKi7.string_types):
return I1mm in YKHO.flags
else:
try:
return all((str(YKHO.eset[PFCt]) in YKHO.flags for PFCt in I1mm))
except KeyError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wEPO():\n for I1mm in JbyC:\n if JbyC[I1mm]:\n return True\n return False",
"def xc3U(YKHO, *xAU6: str) -> bool:\n return bool(YKHO.flags & YKHO.mask(*xAU6))",
"def zSaZ(JbyC: Set[str], RDhP: str) -> bool:\n if not isinstance(RDhP, str):\n raise Exception('Given feature... | [
"0.7395332",
"0.70454514",
"0.6428682",
"0.6359156",
"0.63465047",
"0.62633365",
"0.5987054",
"0.5924127",
"0.590645",
"0.5763223",
"0.571385",
"0.5619686",
"0.54595345",
"0.5436726",
"0.5432826",
"0.54285216",
"0.5423442",
"0.54006237",
"0.53594786",
"0.5264322",
"0.52434474... | 0.7988177 | 0 |
Discard a flag on the ``FlagSet`` instance. | def FaAz(YKHO, I1mm):
try:
I1mm = YKHO.eset[I1mm]
except KeyError:
return
AOBR = YKHO.bitflags
YKHO.bitflags &= ~int(I1mm)
YKHO.flags.discard(str(I1mm))
if AOBR != YKHO.bitflags and YKHO._notify:
YKHO._notify() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tceG(YKHO, I1mm, zF0X=True):\n if zF0X:\n YKHO.__data.discardFlags |= I1mm\n else:\n YKHO.__data.discardFlags &= ~I1mm",
"def ytPi(YKHO, JbyC):\n YKHO.__data.discardFlags = JbyC",
"def FaAz(YKHO, ZfUD):\n try:\n YKHO._data.remove(ZfUD)\n except ValueError:\n pass\... | [
"0.7705357",
"0.7167262",
"0.65679157",
"0.61577463",
"0.61577463",
"0.6107064",
"0.6039238",
"0.59883547",
"0.59009844",
"0.5894775",
"0.56465137",
"0.55505514",
"0.54692906",
"0.5387131",
"0.5349529",
"0.53450084",
"0.5329477",
"0.53255093",
"0.5220295",
"0.5217501",
"0.518... | 0.7911526 | 0 |
Canonicalize a value. This implementation returns the corresponding ``Enum`` value from the ``EnumSet`` specified at initialization. | def Un5w(YKHO, KAOR, BWXx):
try:
return YKHO.eset[BWXx]
except KeyError:
raise AttributeError('Invalid value for attribute %s: %r' % (YKHO.attr_name, BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOxh(YKHO, BWXx):\n if isinstance(BWXx, YKHO.enum_class):\n return BWXx\n BWXx = super(YKHO.__class__, YKHO).to_python(BWXx)\n if isinstance(BWXx, int):\n return YKHO.enum_class(BWXx)\n assert BWXx is None\n return None",
"def BP3C(YKHO, BWXx):\n if BWXx is None:\n retu... | [
"0.57567173",
"0.5645661",
"0.54367954",
"0.53182817",
"0.5155281",
"0.5131945",
"0.50391257",
"0.4990143",
"0.494559",
"0.49313572",
"0.4926061",
"0.49163398",
"0.48853543",
"0.4877798",
"0.48573652",
"0.4844941",
"0.47871658",
"0.4778595",
"0.47566354",
"0.47526324",
"0.472... | 0.0 | -1 |
Initialize a ``FlagSetAttr`` instance. | def FIMM(YKHO, Kqk4, wCZ6='invalidate'):
super(e3gP, YKHO).__init__(wCZ6)
YKHO.eset = Kqk4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Kqk4, JbyC=None):\n YKHO.eset = Kqk4\n YKHO.bitflags = 0\n YKHO.flags = set()\n YKHO._notify = None\n if isinstance(JbyC, jKi7.integer_types):\n for y7GR in Kqk4:\n if JbyC & int(y7GR):\n YKHO.bitflags |= int(y7GR)\n YKHO.flags.add(str(y... | [
"0.6014541",
"0.5964356",
"0.5957173",
"0.5914509",
"0.58628297",
"0.58485585",
"0.5797345",
"0.5684662",
"0.5607551",
"0.55607164",
"0.5557966",
"0.53762037",
"0.53533566",
"0.5348422",
"0.5291797",
"0.52211326",
"0.52210116",
"0.52180463",
"0.5195433",
"0.5183904",
"0.51824... | 0.6945288 | 0 |
Model of a damped pendulum | def FK1w(oeNL):
def CjCq(WKvO, LVAh):
return LVAh
def u7KJ(WKvO, LVAh):
return -0.1 * LVAh - oyIN.sin(WKvO)
return oyIN.array([CjCq(oeNL[0], oeNL[1]), u7KJ(oeNL[0], oeNL[1])]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, t_XE, mWFP='Pendulum', JRYC=0.01):\n super().__init__(name=mWFP)\n YKHO.pendulum = t_XE\n YKHO.dt = JRYC",
"def KFJf(YKHO, a1PO, q7In, pQ4c, C37s):\n rPXJ = YKHO.templates[C37s]\n JT9N = (a1PO / pQ4c - q7In[2]) % 1\n return q7In[0] + q7In[1] * rPXJ(JT9N)",
"def t_XE(oeNL):\n\n ... | [
"0.6389757",
"0.62570584",
"0.6251534",
"0.6018877",
"0.5953172",
"0.58293605",
"0.58160734",
"0.5796524",
"0.57523537",
"0.56851745",
"0.56645703",
"0.5663768",
"0.56319314",
"0.562755",
"0.55919474",
"0.55872536",
"0.5567067",
"0.55479765",
"0.5503377",
"0.54973847",
"0.549... | 0.6742539 | 0 |
Hard sigmoid function For a given value u as input, it gives hard sigmoid of u as output. | def rjwA(P6bq):
if P6bq > 1:
HMVl = 1
elif P6bq < 0:
HMVl = 0
else:
HMVl = P6bq
return HMVl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxwO(P6bq):\n if P6bq > 1:\n HMVl = 0\n elif P6bq < 0:\n HMVl = 0\n else:\n HMVl = 1\n return HMVl",
"def m1Hg(WKvO):\n return 1 / (1 - naF9(tTpl, -WKvO))",
"def m1Hg(epBp):\n return mFhB(epBp)",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO)... | [
"0.8340554",
"0.7792559",
"0.77599376",
"0.7747133",
"0.7747133",
"0.76981646",
"0.7667149",
"0.7664956",
"0.7651496",
"0.76462394",
"0.76462394",
"0.76407063",
"0.7631713",
"0.76259273",
"0.76033205",
"0.76024806",
"0.7595583",
"0.7590885",
"0.7590708",
"0.7586715",
"0.75819... | 0.83319825 | 1 |
Hard sigmoid function for an array of values For a given array u as input, it gives hard sigmoid of u as output. | def M6j4(P6bq):
HMVl = oyIN.zeros(len(P6bq))
for YRbF in oyIN.arange(len(P6bq)):
HMVl[YRbF] = rjwA(P6bq[YRbF])
return HMVl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(a1PO):\n return oyIN.exp(a1PO) / (1 + oyIN.exp(a1PO))",
"def m1Hg(WKvO: np.ndarray) -> oyIN.ndarray:\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(hkxX, mb4J, DkWr):\n import numpy as oyIN\n TYgv = 1e-09\n if type(hkxX) != oyIN.ndarray:\n hkxX = oyIN.array(hkxX)\n return 1.0 ... | [
"0.7557232",
"0.75521666",
"0.7530991",
"0.75062776",
"0.74866426",
"0.7473698",
"0.74650526",
"0.7455005",
"0.7455005",
"0.7455005",
"0.7455005",
"0.7455005",
"0.7455005",
"0.74319494",
"0.7427566",
"0.7409621",
"0.74043214",
"0.7399037",
"0.7392596",
"0.7390544",
"0.7388159... | 0.8358422 | 0 |
Derivative of hard sigmoid function For a given value u as input, it gives hard sigmoid derivative of u as output. | def FxwO(P6bq):
if P6bq > 1:
HMVl = 0
elif P6bq < 0:
HMVl = 0
else:
HMVl = 1
return HMVl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.7970959",
"0.7970959",
"0.79495186",
"0.7897426",
"0.7845998",
"0.7710246",
"0.7476678",
"0.7226657",
"0.7202913",
"0.71984",
"0.70288426",
"0.69358486",
"0.6927546",
"0.69059795",
"0.6862626",
"0.6840817",
"0.6803506",
"0.6792324",
"0.6756603",
"0.67067933",
"0.6668996",
... | 0.8027031 | 0 |
Returns the cumulative returns of a portfolio. | def yvjF(x3Lw, uL6U, Zwka):
cZoC = []
for LpID in x3Lw.index:
cZoC.append(x3Lw.loc[LpID].values * Zwka[LpID])
uShz = rLdf.concat(cZoC, axis=1).reset_index()
uShz.set_index('Day', inplace=True)
RgYJ = uShz.sum(axis=1)
return RgYJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvjF(YKHO):\n return (1 + YKHO.pct_change).cumprod()",
"def GW4R(UMki: pd.DataFrame):\n Uy0E = UMki.copy().add(1)\n fjXW = Uy0E.groupby(level=0).cumprod()\n fjXW.dropna(inplace=True)\n fjXW.sort_index(level=1, inplace=True)\n return fjXW",
"def lSah(YKHO, jQ3Z, xBX9=1):\n return (1 + j... | [
"0.80346304",
"0.7117688",
"0.7020555",
"0.68004584",
"0.6599235",
"0.65987766",
"0.65317065",
"0.6378568",
"0.6267627",
"0.61863387",
"0.6161118",
"0.61232454",
"0.61232454",
"0.6069886",
"0.60389215",
"0.6008858",
"0.5964947",
"0.5934377",
"0.591715",
"0.5849632",
"0.582511... | 0.76559335 | 1 |
Returns the daily return on investment. | def z3Jq(x3Lw, uL6U, Zwka):
RgYJ = yvjF(x3Lw, uL6U, Zwka)
rtfs = RgYJ.apply(lambda CuxP: (CuxP - uL6U) / uL6U * 100)
return rtfs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhPP(YKHO, eWAE, *qIxc, **B2fa):\n if eWAE != 'returnsN':\n return super(e9ai, YKHO).fetch_daily(eWAE, *qIxc, **B2fa)\n ywwl, _c1T = qIxc[:2]\n if 'offset' in B2fa:\n vgXP = B2fa.pop('offset')\n else:\n vgXP = qIxc[-1] if len(qIxc) == 3 else 0\n B2fa['delay'] = vgXP\n U5b... | [
"0.6251522",
"0.62175494",
"0.6184673",
"0.6074017",
"0.60315067",
"0.5999271",
"0.59204483",
"0.58649945",
"0.58231676",
"0.5821116",
"0.58064353",
"0.57915264",
"0.5759449",
"0.5746898",
"0.5705196",
"0.5705196",
"0.56715834",
"0.5593716",
"0.5593335",
"0.55523324",
"0.5540... | 0.56852764 | 16 |
Returns the daily running 252day maximum. | def bdr6(yvjF, KnxT=252, Encw=1):
return yvjF.rolling(window=KnxT, min_periods=Encw).max() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5Ir(nPrm=rLdf.DataFrame()):\n return nPrm.resample('D').max()",
"def ImM5(YKHO):\n return YKHO.value.max_days",
"def soYV(YKHO):\n aaQr = YKHO.number * 365.24 + YKHO.days\n return int(oyIN.ceil(aaQr))",
"def xbyD(LjLI):\n return round(LjLI.min() * 100, 2)",
"def xgep(YKHO) -> h8nf[qe4Y.... | [
"0.73749036",
"0.7217937",
"0.70836467",
"0.667602",
"0.6598183",
"0.6598183",
"0.6532576",
"0.64994997",
"0.6396165",
"0.6396148",
"0.62458897",
"0.6223828",
"0.61432564",
"0.6141461",
"0.6097955",
"0.60674804",
"0.58854157",
"0.58501315",
"0.5818336",
"0.5808526",
"0.575486... | 0.6340012 | 10 |
Returns the daily running 252day maximum daily drawdown. | def HgW1(LjLI, KnxT=252, Encw=1):
return LjLI.rolling(window=KnxT, min_periods=Encw).min() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xbyD(LjLI):\n return round(LjLI.min() * 100, 2)",
"def BMH7(YKHO) -> JRYC.date:\n NC9g = (YKHO.tsdf / YKHO.tsdf.expanding(min_periods=1).max()).idxmin().values[0].astype(JRYC.datetime)\n return JRYC.datetime.fromtimestamp(NC9g / 1000000000.0).date()",
"def Omwr(yvjF, I7hx):\n return yvjF / I7hx... | [
"0.8053372",
"0.7309904",
"0.7136397",
"0.6945596",
"0.66620314",
"0.65847397",
"0.65381736",
"0.6391821",
"0.623571",
"0.61597496",
"0.59037566",
"0.5875009",
"0.5865871",
"0.58287054",
"0.5795373",
"0.5767846",
"0.57399833",
"0.56995285",
"0.5673958",
"0.56637424",
"0.56529... | 0.7519542 | 1 |
Returns the lifetime maximum drawdown. | def xbyD(LjLI):
return round(LjLI.min() * 100, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def flMa(YKHO):\n return YKHO._get_attribute('maxLifetime')",
"def uqEL(YKHO):\n return 120 if YKHO.realtime else 1800",
"def max(YKHO):\n return pTmx(YKHO, stat='max')",
"def PUEA(YKHO) -> float:\n return YKHO._max_frame_age",
"def gNly(YKHO):\n return YKHO._max_time",
"def gNly(YKHO):\n ... | [
"0.70438933",
"0.6749617",
"0.6718662",
"0.6696578",
"0.6525013",
"0.64177185",
"0.6395959",
"0.63215995",
"0.6261537",
"0.6258824",
"0.6245386",
"0.61703086",
"0.6164336",
"0.6164336",
"0.6155133",
"0.6142087",
"0.6137692",
"0.6115013",
"0.60518104",
"0.60164064",
"0.5985856... | 0.7830443 | 0 |
Returns the lifetime maximum drawdown. | def TNC1(kgnq, lO87, w9SG):
return round(kgnq[lO87] / abs(w9SG), 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xbyD(LjLI):\n return round(LjLI.min() * 100, 2)",
"def flMa(YKHO):\n return YKHO._get_attribute('maxLifetime')",
"def uqEL(YKHO):\n return 120 if YKHO.realtime else 1800",
"def max(YKHO):\n return pTmx(YKHO, stat='max')",
"def PUEA(YKHO) -> float:\n return YKHO._max_frame_age",
"def gN... | [
"0.7830443",
"0.70438933",
"0.6749617",
"0.6718662",
"0.6696578",
"0.6525013",
"0.64177185",
"0.6395959",
"0.63215995",
"0.6261537",
"0.6258824",
"0.6245386",
"0.61703086",
"0.6164336",
"0.6164336",
"0.6155133",
"0.6142087",
"0.6115013",
"0.60518104",
"0.60164064",
"0.5985856... | 0.6137692 | 17 |
Retrieve the id of this object from the database. | def unpH(YKHO) -> int:
xDcj = 'SELECT id \n FROM ESLReceipts \n WHERE Transaction_Number=? AND Date=? AND Description=? \n AND Memo=? AND Amount_Debit=? \n AND Amount_Credit=? AND Balance=? ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return ... | [
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.8268289",
"0.82324207",
"0.82324207",
"0.8194997",
"0.81552595",
... | 0.0 | -1 |
Retrieve the string representation of this objects' type. | def FRul(YKHO) -> str:
return Dy8w.ESL.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkSm(YKHO):\n return YKHO.properties.get('TypeAsString', None)",
"def l87X(YKHO) -> str:\n return wKNS(YKHO.type_obj)",
"def ljQ3(YKHO):\n return '_'.join(YKHO.types)",
"def type(YKHO) -> str:\n return YKHO._type",
"def type(YKHO) -> str:\n return YKHO._type",
"def type(YKHO) -> str:\n... | [
"0.8733057",
"0.8553197",
"0.85377437",
"0.8325933",
"0.8325933",
"0.8325933",
"0.8290743",
"0.8279878",
"0.82764584",
"0.82569075",
"0.82285696",
"0.82285696",
"0.8195347",
"0.81576073",
"0.8149313",
"0.8138784",
"0.8124178",
"0.81017655",
"0.8085337",
"0.8024441",
"0.792285... | 0.0 | -1 |
Returns root endpoint HTML | def Z1md():
ENZA = 'Gamestop'
GdJA = fkR8(ENZA)
return TvZl('index.html', topic=ENZA, headlines=GdJA['headlines'], snippets=GdJA['snippets']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIOs():\n return (TvZl('index.html'), 200)",
"def tk5Y(YKHO):\n return YKHO.app.get('/', headers=YKHO.headers)",
"def tk5Y():\n return TvZl('index.html')",
"def tk5Y():\n return TvZl('index.html')",
"def tk5Y():\n return TvZl('index.html')",
"def tk5Y():\n return TvZl('root.html')",... | [
"0.7781494",
"0.7524314",
"0.7460347",
"0.7460347",
"0.7460347",
"0.73451215",
"0.73225725",
"0.7263215",
"0.72324246",
"0.7196254",
"0.71309966",
"0.7130514",
"0.70534015",
"0.6958472",
"0.695357",
"0.6901402",
"0.6869037",
"0.68371344",
"0.68197304",
"0.6809037",
"0.6803652... | 0.0 | -1 |
Method that converts data and labels to instances of class torch.utils.data.DataLoader | def lnQ1(YKHO, *qIxc, **B2fa):
Nf5P = YKHO.init_datasets(*qIxc, **B2fa)
if hasattr(Nf5P['train'], 'collate_fn') and callable(getattr(Nf5P['train'], 'collate_fn')):
QxcP = Nf5P['train'].collate_fn
else:
QxcP = VqTo
if YKHO.config_dict.get('iters_per_epoch') is not None:
eAYh = YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hxDW():\n ZRAy = '../dataset/train/'\n lXoe = Ymkf.Compose([Ymkf.Resize((224, 224)), Ymkf.ToTensor(), Ymkf.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])\n ppBc = gMbG.ImageFolder(ZRAy, transform=lXoe)\n AHI0 = ht2j.utils.data.DataLoader(ppBc, batch_size=16, shuffle=True)\n return AHI... | [
"0.74957144",
"0.74059236",
"0.73900753",
"0.73697627",
"0.7280223",
"0.7249118",
"0.7240241",
"0.71756315",
"0.70918363",
"0.7086592",
"0.7085246",
"0.7044244",
"0.7007126",
"0.6970048",
"0.69508225",
"0.6943519",
"0.69286335",
"0.6925529",
"0.6924148",
"0.6876771",
"0.68674... | 0.6935648 | 16 |
Creates data loaders from inputs for use at prediction time | def YDGz(YKHO, Mjw9, OX2H):
return YKHO.init_loaders(Mjw9, OX2H) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang in ['En', 'Fr', 'It', 'Id', 'Jp', 'Ko', 'Zh']:\n for j3aw, __n6 in ... | [
"0.74005574",
"0.7197881",
"0.7158881",
"0.6972034",
"0.6917558",
"0.68405676",
"0.6837874",
"0.678532",
"0.6781111",
"0.6738349",
"0.67170435",
"0.67128015",
"0.66842",
"0.6673706",
"0.6673443",
"0.6654735",
"0.6637798",
"0.659848",
"0.65955985",
"0.6593302",
"0.6554777",
... | 0.6874065 | 5 |
Initialize the weights with Glorot initilization | def DVZr(r8hN):
if isinstance(r8hN, U78l.Linear) or isinstance(r8hN, U78l.EmbeddingBag) or isinstance(r8hN, U78l.Embedding) or isinstance(r8hN, dvU9):
U78l.init.xavier_normal_(r8hN.weight) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n uHk4(YKHO.norm0)",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.uniform_(-wOp_, wOp_)\n YKHO.l3.bias.data.uniform_(-wOp_, wOp_)",
"def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.unifor... | [
"0.77464277",
"0.77000946",
"0.7654312",
"0.7586706",
"0.7586706",
"0.7573792",
"0.7558622",
"0.7346543",
"0.73462576",
"0.73323685",
"0.72910225",
"0.7271283",
"0.7249364",
"0.7227278",
"0.72014505",
"0.71860826",
"0.71860826",
"0.71860826",
"0.7170588",
"0.7168318",
"0.7163... | 0.0 | -1 |
A learning rate scheduler | def Mvr3(YKHO):
KMvS = YKHO.config_dict.get('gamma')
if KMvS is None:
return None
else:
return ht2j.optim.lr_scheduler.ExponentialLR(YKHO.optimizer, gamma=KMvS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IesV(_rSf, tspZ):\n WVUz = tspZ\n if _rSf == 60 or _rSf == 120 or _rSf == 160 or (_rSf == 260) or (_rSf == 320) or (_rSf == 360):\n WVUz *= 0.2\n '\\n if epoch_idx == 200:\\n new_lr = 0.1\\n '\n return WVUz",
"def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)",
"def... | [
"0.77524346",
"0.7731428",
"0.76842254",
"0.7560328",
"0.75120646",
"0.7460543",
"0.7310491",
"0.7296485",
"0.7284341",
"0.7246998",
"0.72235614",
"0.7219927",
"0.72191936",
"0.7198546",
"0.7141376",
"0.7127686",
"0.711566",
"0.7062372",
"0.70451397",
"0.7035816",
"0.70277953... | 0.0 | -1 |
Creates data loaders from inputs | def r_T9(YKHO, Mjw9, OX2H):
yYD1 = YKHO.config_dict.get('sparse_mode') == 'count'
RYsB = Mjw9.keys()
Nf5P = {H5ew: WBqG(Mjw9[H5ew], ht2j.LongTensor(OX2H[H5ew]), convert_sparse=yYD1) for H5ew in RYsB}
return Nf5P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang in ['En', 'Fr', 'It', 'Id', 'Jp', 'Ko', 'Zh']:\n for j3aw, __n6 in ... | [
"0.7164973",
"0.6952015",
"0.6815742",
"0.6736966",
"0.66130817",
"0.65923643",
"0.65912664",
"0.6540567",
"0.6521354",
"0.6456177",
"0.6426",
"0.6398036",
"0.6369821",
"0.6331816",
"0.63271666",
"0.63155395",
"0.62999266",
"0.62793946",
"0.6273316",
"0.6219768",
"0.621602",
... | 0.0 | -1 |
Creates data loaders from inputs | def r_T9(YKHO, Mjw9, OX2H):
RYsB = Mjw9.keys()
Nf5P = {H5ew: WBqG(Mjw9[H5ew], ht2j.LongTensor(OX2H[H5ew])) for H5ew in RYsB}
return Nf5P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang in ['En', 'Fr', 'It', 'Id', 'Jp', 'Ko', 'Zh']:\n for j3aw, __n6 in ... | [
"0.7164973",
"0.6952015",
"0.6815742",
"0.6736966",
"0.66130817",
"0.65923643",
"0.65912664",
"0.6540567",
"0.6521354",
"0.6456177",
"0.6426",
"0.6398036",
"0.6369821",
"0.6331816",
"0.63271666",
"0.63155395",
"0.62999266",
"0.62793946",
"0.6273316",
"0.6219768",
"0.621602",
... | 0.0 | -1 |
Creates data loaders from inputs | def r_T9(YKHO, Mjw9, OX2H):
RYsB = Mjw9.keys()
Nf5P = {H5ew: WBqG(Mjw9[H5ew], ht2j.LongTensor(OX2H[H5ew]), convert_sparse=False) for H5ew in RYsB}
return Nf5P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang in ['En', 'Fr', 'It', 'Id', 'Jp', 'Ko', 'Zh']:\n for j3aw, __n6 in ... | [
"0.7164973",
"0.6952015",
"0.6815742",
"0.6736966",
"0.66130817",
"0.65923643",
"0.65912664",
"0.6540567",
"0.6521354",
"0.6456177",
"0.6426",
"0.6398036",
"0.6369821",
"0.6331816",
"0.63271666",
"0.63155395",
"0.62999266",
"0.62793946",
"0.6273316",
"0.6219768",
"0.621602",
... | 0.0 | -1 |
Adjust the learning rate of the params of an optimizer. | def e_63(K0do, Aak1, aF2y, RvCN=0.1, ILPn=60000.0):
tspZ = aF2y * RvCN ** (Aak1 / ILPn)
if tspZ < 1e-06:
tspZ = 1e-06
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(YKHO, K0do, qtWj, qIxc):\n tspZ = qIxc.learning_rate * 0.1 ** (qtWj // 30)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def e_63(qIxc, K0do, qtWj):\n if qtWj * 3 == qIxc.epochs or qtWj * 3 == 2 * qIxc.epochs:\n tspZ = qIxc.lr * 0.1 ** (qtWj * 3 // qIxc.epochs)\n ... | [
"0.84753436",
"0.84628916",
"0.8429673",
"0.83984476",
"0.83933645",
"0.8341199",
"0.8315756",
"0.82856673",
"0.8283146",
"0.8277514",
"0.8277514",
"0.8277514",
"0.82710576",
"0.8265629",
"0.8265629",
"0.8265629",
"0.8256059",
"0.8221603",
"0.8218627",
"0.821692",
"0.82004076... | 0.0 | -1 |
Return the email address to satisfy FlaskLogin's requirements. | def unpH(YKHO):
return YKHO.email | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return ... | [
"0.74636996",
"0.74636996",
"0.74636996",
"0.74636996",
"0.744493",
"0.744493",
"0.744493",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7421634",
"0.72910833",
"0.7233626",
"0.7228416",
"0.72064245",
"0.7176058",
"0.71472573",... | 0.0 | -1 |
Return True if the user is authenticated. | def rts1(YKHO):
return YKHO.authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(Vu5X())",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n retu... | [
"0.8739372",
"0.87086535",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.8613915",
"0.8609252",
"0.8578436",
"0.83723366",
"0.83587176",
"0.8258534",
"0.82273275",
"0.8209421",
"0.8200795",
"0.8174884",
"0.81280386",
"0.8... | 0.8580474 | 23 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn():\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed",
"def rts1(YKHO):\n return False",
"def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w",
"def... | [
"0.8561902",
"0.8379807",
"0.8245341",
"0.78152746",
"0.7576769",
"0.72893053",
"0.72617674",
"0.72353363",
"0.72353363",
"0.72353363",
"0.72353363",
"0.72353363",
"0.72353363",
"0.72353363",
"0.72341543",
"0.7159127",
"0.710755",
"0.70946115",
"0.70573515",
"0.7021494",
"0.7... | 0.8359887 | 18 |
Unhide the match comment. | def XJps(pQGt):
uPxI = eKiT()
try:
qv1X = uPxI.load(QePW.get_json())
except sUXu as e:
eTsH(400, str(tTpl.normalized_messages()))
ALmv = ud_Z.find_active_user(qv1X['initiator_id'])
if not ALmv:
eTsH(400, 'Initiator ID does not reference an active user.')
m80x.unhide_comme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJH7(pQGt: MatchCommentID, eOji: UserID) -> None:\n aM_I = nBO4.query.get(pQGt)\n if aM_I is None:\n raise ValueError('Unknown match comment ID')\n aM_I.hidden = False\n aM_I.hidden_at = None\n aM_I.hidden_by_id = None\n NCls.session.commit()",
"def htrY(YKHO):\n YKHO.activeWindow... | [
"0.70979667",
"0.65529567",
"0.6209326",
"0.61320955",
"0.60730875",
"0.6047574",
"0.6014774",
"0.5923895",
"0.5921565",
"0.5790912",
"0.57796824",
"0.57351196",
"0.56272805",
"0.5621866",
"0.5553992",
"0.5522723",
"0.54890823",
"0.54295117",
"0.5421029",
"0.5381388",
"0.5304... | 0.7044827 | 1 |
Load a string in YAML format. | def f9B0(hGN5):
from yaml import load, FullLoader
return load(hGN5, Loader=FullLoader) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InB_(Emd4, vIwR):\n return Emd4(UEZb(vIwR))",
"def UEZb(zZcM):\n if not isinstance(zZcM, str):\n try:\n IcOY = zZcM.name\n except AttributeError:\n IcOY = '<yaml stringio>'\n zZcM = zZcM.read()\n else:\n IcOY = '<yaml string>'\n try:\n retu... | [
"0.7954442",
"0.756084",
"0.72663134",
"0.72186196",
"0.72009647",
"0.71363896",
"0.7074121",
"0.7060779",
"0.7014209",
"0.69570035",
"0.69149274",
"0.6834525",
"0.6805121",
"0.6780684",
"0.6779875",
"0.6770773",
"0.6749694",
"0.672829",
"0.67155385",
"0.66844296",
"0.6665231... | 0.72355795 | 3 |
Return ``QuerySet`` with related content preloaded. | def Cce9(YKHO):
return YKHO.get_query_set().select_related('product_class').prefetch_related('variants', 'product_options', 'product_class__options', 'stockrecords', 'images').all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFtx(Emd4, SR0I):\n SR0I = SR0I.prefetch_related('keywords_str')\n SR0I = SR0I.prefetch_related('tags_str')\n return SR0I",
"def fmfM(YKHO, *qIxc, **B2fa):\n return super().get_prefetched_queryset(*qIxc, **B2fa).prefetch_related('assignment_related_users', 'agenda_items', 'lists_of_speakers', 'ta... | [
"0.679683",
"0.6397021",
"0.6240532",
"0.60717916",
"0.60220003",
"0.5965624",
"0.5962794",
"0.58966774",
"0.58433366",
"0.5831678",
"0.5744291",
"0.572757",
"0.56999606",
"0.56916636",
"0.5684065",
"0.56319755",
"0.5624948",
"0.5520748",
"0.5506694",
"0.54910636",
"0.5474627... | 0.5304603 | 29 |
Returns an argparse instance | def w4jA():
wvEv = j1Jz.ArgumentParser(description=__doc__)
wvEv.add_argument('--verbose', action='store_true', help='Be verbose')
wvEv.add_argument('--debug', action='store_true', help='Enable debugging')
wvEv.add_argument('-b', '--bam', required=True, help='Input BAM file matching vcf')
wvEv.add_a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EpPs():\n XP5J = j1Jz.ArgumentParser(description='such a good program')\n XP5J.add_argument('infile')\n XP5J.add_argument('outfile')\n return XP5J",
"def EpPs():\n wvEv = wvEv.ArgumentParser()\n return wvEv",
"def ioG2():\n import argparse\n return argparse.ArgumentParser(formatter_... | [
"0.7767424",
"0.77440184",
"0.7693054",
"0.75894576",
"0.75894576",
"0.74071556",
"0.7322823",
"0.73185104",
"0.7240093",
"0.7232856",
"0.72174203",
"0.72085565",
"0.72033024",
"0.71685386",
"0.71665",
"0.7139135",
"0.7130057",
"0.7107946",
"0.71069175",
"0.7100661",
"0.70824... | 0.0 | -1 |
return the current OBC configuration | def SA5D():
return g0JX['OBC'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n return YKHO._config",
"def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)",
"def GPtr(YKHO):\n return YKHO._config",
"def tgzD(YKHO):\n return YKHO.config",
"def GPtr(YKHO):\n return YKHO._cfg",
... | [
"0.76223904",
"0.758794",
"0.7562929",
"0.7540094",
"0.7497914",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"0.74324155",
"... | 0.0 | -1 |
Creates a new ball | def mHEx():
DeuS.append(WBxB())
nHMa(DeuS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bnMV():\n nYVo = mEGe()\n nYVo.x = tuKI.randrange(Dlbo, zMH2 - Dlbo)\n nYVo.y = tuKI.randrange(Dlbo, vkJL - Dlbo)\n nYVo.change_x = tuKI.randrange(-2, 2)\n nYVo.change_y = tuKI.randrange(-2, 2)\n return nYVo",
"def bnMV(id):\n nYVo = mEGe()\n nYVo.id = id\n nYVo.size = 10\n nYVo... | [
"0.78910744",
"0.7773026",
"0.75718427",
"0.729235",
"0.71304464",
"0.7016827",
"0.68962",
"0.68675226",
"0.68090975",
"0.67911744",
"0.6787879",
"0.67824346",
"0.6752662",
"0.6746393",
"0.6635242",
"0.6631885",
"0.65989226",
"0.64579904",
"0.64246917",
"0.6302894",
"0.630126... | 0.7948333 | 0 |
Returns the path of the global configuration file | def TsiK():
return '/etc/dapsenv/dapsenv.conf' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jizk():\n return './' + vg61",
"def S673():\n tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))[:-5]\n lqQH = Hy7s.path.join(tk5Y, 'config.ini')\n return lqQH",
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getc... | [
"0.8170498",
"0.8149112",
"0.8113216",
"0.7989826",
"0.7970176",
"0.79333484",
"0.7824644",
"0.7777473",
"0.77438056",
"0.7719309",
"0.7697185",
"0.76197577",
"0.7570368",
"0.7545556",
"0.75374484",
"0.7467858",
"0.74403304",
"0.74283",
"0.7358495",
"0.73165745",
"0.7294852",... | 0.8346807 | 0 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello there! Let's explore some data!")
_aDm = ['chicago', 'new york city', 'washington']
j5sA = input('\nWhich city do you want to analyze? Chicago, New York City or Washington?\n').lower()
while j5sA not in _aDm:
print('There is no such city in database!')
j5sA = inp... | {
"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.667135",
"0.65355784",
"0.6372491",
"0.6349019",
"0.63104576",
"0.62870693",
"0.6259983",
"0.62297434",
"0.62112975",
"0.62049454",
"0.6181796",
"0.6170252",
"0.6170224",
"0.6159359",
"0.61588275",
"0.6153817",
"0.61454034",
"0.61345667",
"0.61054",
"0.61033493",
"0.609148... | 0.6459417 | 2 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
nPrm = rLdf.read_csv('{}.csv'.format(j5sA))
nPrm.drop(nPrm.columns[0], axis=1, inplace=True)
nPrm['Start Time'] = rLdf.to_datetime(nPrm['Start Time'], format='%Y-%m-%d %H:%M:%S')
nPrm['End Time'] = rLdf.to_datetime(nPrm['End Time'], format='%Y-%m-%d %H:%M:%S')
nPrm['weekd... | {
"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.73460114 | 97 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('=' * 40)
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
Nkit = str(jQ3Z.groupby(['hour'])['Start Time'].count().idxmax())
Il5K = str(jQ3Z.groupby(['hour'])['Start Time'].count().max())
if len(jQ3Z['weekday'].unique()) != 1 and len(jQ3Z['mo... | {
"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.76002145",
"0.7583... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
vZsG = jQ3Z.groupby(['Start Station'])['Start Time'].count().idxmax()
J2j9 = jQ3Z.groupby(['Start Station'])['Start Time'].count().max()
print('The hottest start station was {}'.format(vZsG))
print(... | {
"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.69124997 | 83 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
jQ3Z['time'] = jQ3Z['End Time'] - jQ3Z['Start Time']
print('Total travel time in that period of time: {}'.format(jQ3Z['time'].sum()))
print('Average time of journey: {}'.format(jQ3Z['time'].mean()))
print('\nThis took %... | {
"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.8141812",
"0.8024182",
"0.80032814",
"0.7948688",
"0.79363805",
"0.79301584",
"0.7925556",
"0.79139745",
"0.79132074",
"0.79069036",
"0.79044855",
"0.7899693",
"0.78905743",
"0.7888294",
"0.78858185",
"0.7883996",
"0.78832155",
"0.7881429",
"0.7872763",
"0.78675747",
"0.78... | 0.76539797 | 78 |
Add the mask to the provided face, and return the face with mask. | def f2Y_(RpU_: np.array, ZHfW: np.array) -> oyIN.array:
kcOA, mAh1, bGrB = ZHfW.shape
bGpS, XBAH, bGrB = RpU_.shape
aM8h = min(bGpS / kcOA, XBAH / mAh1)
w1jX = int(aM8h * mAh1)
KXrZ = int(aM8h * kcOA)
oR8d = (w1jX, KXrZ)
xvM6 = XC5k.resize(ZHfW, oR8d)
ItSU = RpU_.copy()
BnhJ = (xvM6 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCxt(YKHO, RpU_):\n try:\n x0nO = YKHO.faces.index(RpU_)\n return YKHO.faces[x0nO]\n except Exception:\n YKHO.faces.append(RpU_)\n return RpU_",
"def uZ6h(YKHO, dnR4, ZHfW):\n if dnR4.shape[0] < ZHfW.shape[0]:\n ZHfW = XC5k.resize(ZHfW, (int(0.5 * ZHfW.shape[0]), i... | [
"0.68112254",
"0.61941063",
"0.61160135",
"0.5863433",
"0.5680295",
"0.56591696",
"0.5506171",
"0.5495523",
"0.5465617",
"0.54287475",
"0.540982",
"0.5407283",
"0.5399397",
"0.53711027",
"0.53566027",
"0.52766466",
"0.5251095",
"0.52477425",
"0.5221825",
"0.521897",
"0.516831... | 0.7651554 | 0 |
Receive yaml string, update instance state with its value | def H8Pn(YKHO, xfkT):
X5mj = eJb6.safe_load(xfkT)
HlAZ = X5mj['pwd']
rM96 = X5mj['env']
YKHO.update_workdir(HlAZ)
YKHO.update_env(rM96)
if 'code' in X5mj:
return X5mj['code']
else:
print('[ssh] Error: Cannot parse exit_code. As a result, returing code=1')
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UzTX(YKHO, Csk6):\n YKHO.temp_yaml = None\n YKHO.__dict__.update(Csk6)",
"def OXMy(YKHO, eJb6):\n YKHO.hwAddress = eJb6.get('hwAddress')\n if YKHO.hwAddress:\n YKHO.hwAddress = YKHO.hwAddress.lower()\n YKHO.ip = eJb6.get('IP')\n YKHO.formulas = {}\n for eHNT in eJb6:\n if i... | [
"0.61438406",
"0.6056736",
"0.5877559",
"0.5833056",
"0.58151037",
"0.5771336",
"0.5758185",
"0.5707733",
"0.56915504",
"0.5662397",
"0.5634253",
"0.5543256",
"0.5499675",
"0.5443834",
"0.5396185",
"0.5373637",
"0.534983",
"0.5343931",
"0.53255194",
"0.5319177",
"0.5310332",
... | 0.0 | -1 |
Copy this config, replacing the regions with those in the `regions` parameter. | def xKID(YKHO, zQZR):
BdN0 = jth9.deepcopy(YKHO)
BdN0.regions = []
for zn0c in zQZR:
BdN0.regions.append(YKHO._parse_region(zn0c))
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQZR(YKHO, zQZR):\n YKHO._regions = zQZR",
"def jth9(YKHO, **B2fa):\n return _qLf(YKHO).update(**B2fa)",
"def UAqH(Emd4, TBsA: CloudAccountRegionConfigurationViewModel) -> cuzp:\n pass",
"def FzJk(YKHO):\n return m1kU(list_poly=YKHO.list_poly[:], props=YKHO.props.copy())",
"def MlgL(OaeV, G... | [
"0.61411893",
"0.6017079",
"0.60054064",
"0.5572163",
"0.5489599",
"0.54806817",
"0.54680604",
"0.54073626",
"0.5361858",
"0.5301637",
"0.5257151",
"0.4999279",
"0.49944136",
"0.49855417",
"0.4982498",
"0.49822417",
"0.49773163",
"0.49644902",
"0.49597627",
"0.49420026",
"0.4... | 0.728114 | 0 |
The number of tokens in the corpus. | def E3D9(YKHO) -> int:
K3vl = sum(YKHO.values())
return K3vl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjiL():\n return p6S0.doc_count()",
"def u54L(YKHO):\n return len(YKHO.tokens)",
"def LBzT():\n s2mk = wyyA.get('tokens-number')\n if s2mk is None:\n s2mk = 0\n aWDa = RX0T.find({}, {'text': 1})\n for Mau6 in aWDa:\n if 'full_text' in Mau6.keys():\n ... | [
"0.806606",
"0.7887896",
"0.77023524",
"0.76616067",
"0.7650494",
"0.75955534",
"0.75822",
"0.75771636",
"0.7513522",
"0.7409987",
"0.7341951",
"0.7302427",
"0.7302427",
"0.7294214",
"0.7235468",
"0.72276926",
"0.7198542",
"0.7188423",
"0.716213",
"0.7112996",
"0.70776194",
... | 0.63286906 | 84 |
Entropy content of this corpus, based on wordfrequency distribution. | def oqGu(YKHO, P8oC: int=None):
Rm2V = YKHO.fdist
Rm2V['prob'] = Rm2V['freq'] / Rm2V['freq'].sum()
Rm2V['logp'] = oyIN.log(Rm2V['prob'])
Rm2V['nats'] = -Rm2V['prob'] * Rm2V['logp']
oQVy = Rm2V['nats'].sum()
if P8oC:
oQVy = oQVy / oyIN.log(P8oC)
return oQVy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jr3B(YKHO, A97Q, HIMF=False):\n V22M = [eOtH for eOtH in A97Q if not eOtH.is_punct and \"'\" not in eOtH.text and (not eOtH.is_space)]\n if HIMF:\n iWMf = [yzQ0.lemma_ for yzQ0 in V22M]\n else:\n iWMf = [yzQ0.text for yzQ0 in V22M]\n yLbG = len(iWMf)\n MLrC = mBkc(iWMf)\n return... | [
"0.71550137",
"0.7075918",
"0.6877915",
"0.6864271",
"0.68232894",
"0.6782823",
"0.6778635",
"0.67370933",
"0.67321175",
"0.6719566",
"0.6655286",
"0.66454005",
"0.6627845",
"0.66105163",
"0.6608293",
"0.65667075",
"0.65590805",
"0.6539854",
"0.651763",
"0.65124595",
"0.65088... | 0.58525765 | 92 |
Destroy blank temp database after each test. | def tBIc(YKHO):
Hy7s.close(YKHO.db_fd)
Hy7s.unlink(P4t4.app.config['DATABASE']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n P4t4.db.drop_database('local')\n P4t4.db.close()",
"def tBIc(YKHO):\n kO5c.tearDown()\n ... | [
"0.78953713",
"0.78953713",
"0.78953713",
"0.78953713",
"0.78953713",
"0.78953713",
"0.7880197",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.78739846",
"0.7790146",
"0.7782551",
"0.7782551",
"0.776434",
"0... | 0.747593 | 36 |
consider there are 5 points in YAxis, if we give 4/5 in `yAxisPos`, Paddle we positioned at 4th place + + | 1 . | | 2 . | | 3 . | | 4 . (canvas_height yAxisPos) | def FIMM(YKHO, GrzS, qfpW, m4X0, nue7, zYgq):
YKHO.canvas = GrzS
YKHO.id = GrzS.create_rectangle(0, 0, m4X0, nue7, fill=qfpW)
YKHO.canvas_width = YKHO.canvas.winfo_width()
YKHO.canvas_height = YKHO.canvas.winfo_height()
YKHO.x = 0
YKHO.canvas.move(YKHO.id, YKHO.canvas_width // 2 - m4X0 // 2, int... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ydjp(YKHO, *qIxc, **B2fa) -> ImMB:\n pass",
"def E3ji(BWXx, XtFw):\n if xToX.check_value(BWXx, XtFw):\n return (32 - int(BWXx)) * 12.5 + 50 if XtFw == 't' else 450 - int(BWXx) / 10 * 40\n return",
"def V9kZ(YKHO, *qIxc):\n WKvO = YKHO.initialXScale.get()\n LVAh = YKHO.initialYScale.ge... | [
"0.66333294",
"0.64487386",
"0.62421274",
"0.6238937",
"0.6220619",
"0.6194612",
"0.6183145",
"0.61616826",
"0.61470264",
"0.60619056",
"0.60619056",
"0.6048159",
"0.60376287",
"0.6028491",
"0.60157543",
"0.6014515",
"0.60117626",
"0.6009412",
"0.6004599",
"0.5994862",
"0.598... | 0.5968976 | 21 |
Keep path to last data directory selected in a YAML in config | def iROo(YKHO, Z0kE):
_NTK = 'cicada/config/config.yaml'
_fuv = None
if Hy7s.path.isfile(_NTK):
with open(_NTK, 'r') as wOb_:
_fuv = eJb6.safe_load(wOb_)
if _fuv is None:
_fuv = dict()
_fuv['dir_name'] = Z0kE
with open(_NTK, 'w') as _RR0:
eJb6.dump(_fuv, _RR0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WO09(xAU6):\n if '/' not in xAU6['config_yaml']:\n Z0kE = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))\n xAU6['config_yaml'] = Hy7s.path.join(Z0kE, xAU6['config_yaml'])\n return xAU6",
"def b32v() -> GkAb:\n return fmoX.parent / 'fixtures' / 'configs'",
"de... | [
"0.6551428",
"0.6194027",
"0.6087345",
"0.6048823",
"0.5975001",
"0.5923837",
"0.5874789",
"0.5872855",
"0.5858172",
"0.58444166",
"0.57109195",
"0.56871974",
"0.56857955",
"0.567317",
"0.5672065",
"0.56700754",
"0.5640668",
"0.561254",
"0.55931914",
"0.5587805",
"0.55854946"... | 0.7011594 | 0 |
Get a HyperHelpAuthor setting from a cached settings object. | def Mwrq(H5ew):
WmM4 = Mwrq.default.get(H5ew, None)
return Mwrq.obj.get(H5ew, WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tu0q(tTee):\n tTee.assign_syntax(nKmJ('HyperHelp-Help.sublime-syntax'))\n IgtJ = Mwrq('author_view_settings')\n gCuF = tTee.settings()\n for MTKo in IgtJ:\n gCuF.set(MTKo, IgtJ[MTKo])",
"def gCuF():\n return v083()[1]",
"def YqMg(_DBc):\n return getattr(gCuF, _DBc)",
"def sAYn():... | [
"0.6095596",
"0.5634342",
"0.5394313",
"0.52192473",
"0.52102685",
"0.52102685",
"0.51438564",
"0.512326",
"0.5084381",
"0.50817287",
"0.50310844",
"0.5022928",
"0.50225395",
"0.5015123",
"0.50020033",
"0.49942827",
"0.49935323",
"0.49907595",
"0.49438605",
"0.49339852",
"0.4... | 0.5041114 | 10 |
subtract the arg from the value. | def wncN(BWXx, d7pR):
try:
return int(BWXx) - int(d7pR)
except (ValueError, TypeError):
try:
return BWXx - d7pR
except Exception:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wncN(YKHO, BWXx):\n return YKHO.number - BWXx",
"def wncN(wEf2, LFv2=None):\n if LFv2 is None:\n return wEf2\n try:\n ANfV = wEf2 - int(LFv2)\n return ANfV\n except ValueError:\n return wEf2",
"def wncN(*qIxc):\n by6d = str(qIxc[0] - qIxc[1])\n return by6d",
... | [
"0.7714425",
"0.71640867",
"0.71093124",
"0.69877523",
"0.69389325",
"0.6776049",
"0.67269045",
"0.6721766",
"0.6658199",
"0.6658199",
"0.66268027",
"0.66268027",
"0.66268027",
"0.66232294",
"0.66111463",
"0.6543256",
"0.65196186",
"0.6496731",
"0.6493978",
"0.6485772",
"0.64... | 0.7948222 | 0 |
Checks if all mines have been flagged. | def kTv5(YKHO):
return YKHO.mines_found == YKHO.mines | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imDs(YKHO, JnVq):\n for VmPb in JnVq:\n rdlD, fvDH = VmPb\n YKHO.mine_field[rdlD][fvDH] = 'x'\n YKHO.mines_left -= 1\n return",
"def Ukgb(YKHO):\n YKHO.mines",
"def mfk_(YKHO):\n oeNL, zJeG, nyyK = YKHO.perception\n if len(oeNL) > 0:\n return all(map(lambda WKvO: ... | [
"0.6496075",
"0.6441596",
"0.62646043",
"0.61920667",
"0.5948475",
"0.59368217",
"0.5887279",
"0.58706886",
"0.58314085",
"0.5809972",
"0.579444",
"0.5790966",
"0.5783772",
"0.5762287",
"0.5746479",
"0.57060987",
"0.56872654",
"0.56198263",
"0.5619175",
"0.5610368",
"0.560209... | 0.67849445 | 5 |
Marks the specified amount for the given order as paid. This allows to hook in more complex behaviors (like saving a history of payments in a Payment model) The optional save argument allows backends to explicitly not save the order yet | def FzYD(YKHO, T4Wy, Z5kt, vkFH, DDLl, JBZA, xkzz=True):
l3Gb.objects.get_or_create(order=T4Wy, amount=ZjSO(Z5kt), transaction_id=vkFH, backend=DDLl, description=JBZA)
if xkzz and YKHO.is_order_paid(T4Wy):
if T4Wy.status < L9Jq.PAID:
for ZfUD in T4Wy.items.all():
ZfUD.product... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yJhk(YKHO, yJhk):\n YKHO._paid = yJhk",
"def b0AH(YKHO, b0AH):\n YKHO._transaction_amount_paid = b0AH",
"def z1sQ(YKHO, z1sQ):\n YKHO._paid_interest = z1sQ",
"def xkzz(YKHO, *qIxc, **B2fa):\n hGMD = YKHO.wallet.withdraw(YKHO.value)\n super(SSCD, YKHO).save(*qIxc, **B2fa)",
"def a4IO(**B2... | [
"0.6905266",
"0.6039232",
"0.6021345",
"0.59171605",
"0.5789729",
"0.57723475",
"0.5649608",
"0.5606408",
"0.5603221",
"0.5592143",
"0.554666",
"0.5468819",
"0.5401203",
"0.5376429",
"0.5343095",
"0.5258786",
"0.52550066",
"0.523511",
"0.5198044",
"0.51331836",
"0.51278967",
... | 0.66326064 | 1 |
Set initial location of the central controller. | def b8V_():
Rci7 = H6av('0.856901647439813,14.08447265625')
onPc(Rci7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cUEM(YKHO, BWXx: str) -> None:\n YKHO.set_capability(u40C, BWXx)",
"def uOYE(YKHO, x0hE):\n TVTK = YKHO._get_main_width()\n H2v2 = YKHO.screen_rect.height\n LFlW = YKHO.screen_rect.x\n tlxW = YKHO.screen_rect.y\n if YKHO.main_centered and len(YKHO.clients) > 2:\n LFlW += (YKHO.screen... | [
"0.5979996",
"0.5911836",
"0.5897334",
"0.5872533",
"0.5869994",
"0.5820433",
"0.58033293",
"0.57864046",
"0.57571167",
"0.5735946",
"0.57304484",
"0.5696587",
"0.56753886",
"0.56547064",
"0.5641599",
"0.5622692",
"0.5616644",
"0.56052744",
"0.56052464",
"0.5605135",
"0.56011... | 0.0 | -1 |
Returns a set of SparseVectorDimensions which are each assigned a transformation function appropriate for standardizing the respective dimension. | def SYhW(YKHO, wDWA, ZLJ_):
vAUg = wDWA.colStats()
TONb = oyIN.sqrt(vAUg.variance())
B9EC = vAUg.mean()
y8sG = map(lambda WKvO: WKvO if WKvO != 0.0 else 1.0, TONb)
Aofo = []
for fvDH, JBMS, UET8 in zip(ZLJ_, B9EC, y8sG):
zqwW = YKHO.generateStandardizationFunction(fvDH, JBMS, UET8)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def coHD(YKHO):\n nPrm = qw7D([[0.564, 20.661], [-18.512, 41.168], [-0.009, 20.44]])\n bOVy = onCM(nPrm)\n ANfV = qw7D([[0.60355, -0.568043], [-1.1543, 1.15465], [0.550748, -0.586608]])\n bOVy.scale_features('standardize')\n YKHO.assertTrue(Jw17(bOVy.data, ANfV))",
"def k3Jn(jzdc, jDK_=None):\n ... | [
"0.58996356",
"0.5885209",
"0.562922",
"0.5424146",
"0.5354879",
"0.5301714",
"0.52051574",
"0.5184689",
"0.51839614",
"0.51808983",
"0.5156929",
"0.5156137",
"0.5154081",
"0.51329243",
"0.5126789",
"0.50431347",
"0.49799955",
"0.4977521",
"0.4954653",
"0.4950907",
"0.4950194... | 0.60437644 | 0 |
Create and return a SQLAlchemy engine object | def PWOV(YKHO, YtR6):
if YtR6 not in WhVQ:
WhVQ[YtR6] = y2U9(YKHO.get_connection_string())
return WhVQ[YtR6] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2U9(YKHO):\n YtR6 = f'postgresql://{YKHO.user}:{YKHO.password}@{YKHO.host}/{YKHO.database_name}'\n return y2U9(YtR6)",
"def PWOV(zk0k: Dict[str, str]) -> RyuO.engine:\n cmRX = zFcP(zk0k)\n return RyuO.create_engine(cmRX)",
"def i4ns():\n TLmj = eHDE()\n eHpk = y2U9(TLmj)\n return eHpk... | [
"0.81582",
"0.8151789",
"0.8096098",
"0.8074667",
"0.78949046",
"0.7888775",
"0.78016627",
"0.7694161",
"0.7633024",
"0.7619185",
"0.75568897",
"0.7526892",
"0.75230956",
"0.75139517",
"0.751324",
"0.7408494",
"0.7328666",
"0.73017824",
"0.7291083",
"0.7289729",
"0.7289729",
... | 0.0 | -1 |
Run a PostGIS query and return results as a GeoDataFrame | def XVHR(eHpk, xDcj, NArs, Fmty, fSzI):
nPrm = SsVK.GeoDataFrame.from_postgis(xDcj, eHpk, geom_col=Fmty, crs={'init': 'epsg:{}'.format(fSzI)}, params=NArs)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iqkn(fZqJ):\n import os\n import psycopg2\n import pandas as rLdf\n w2B8 = psycopg2.connect(host='postgis1', dbname='sdad', user=os.environ.get('UVA_uname'), password=os.environ.get('UVA_pass'))\n Rlpj = rLdf.read_sql_query(fZqJ, w2B8)\n return Rlpj",
"def QNu4():\n eHpk = Umx4()\n bh... | [
"0.68622106",
"0.6783693",
"0.6631549",
"0.65065295",
"0.64609385",
"0.6398335",
"0.63537514",
"0.63044345",
"0.629543",
"0.6189722",
"0.6184706",
"0.61680967",
"0.6097106",
"0.6089787",
"0.60863835",
"0.60695153",
"0.60299134",
"0.6028463",
"0.6016495",
"0.5989992",
"0.59744... | 0.83570623 | 0 |
Get appropriate DataFrame column name and readable axis label. | def SYoE(YKHO, Z9pM: str) -> AzJI[str, str]:
if Z9pM == 'distance':
if YKHO.config.distance_unit == 'km':
return ('distance_2d_km', 'Distance (km)')
elif YKHO.config.distance_unit == 'mile':
return ('distance_2d_mile', 'Distance (miles)')
elif Z9pM == 'duration':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nscJ(YKHO):\n if YKHO._label is not None:\n return YKHO._label\n return 'Column %d' % (YKHO.index + 1)",
"def dBxG(YKHO, iVRZ):\n return iVRZ",
"def aPp1(jQ3Z, mWFP='agg'):\n while mWFP in jQ3Z.columns:\n mWFP += '_'\n return mWFP",
"def wl_9(YKHO):\n return YKHO._axis_nam... | [
"0.6837961",
"0.66392434",
"0.6530014",
"0.6514728",
"0.6507803",
"0.6419064",
"0.636666",
"0.63305116",
"0.62810653",
"0.62264484",
"0.62251216",
"0.62186813",
"0.62026006",
"0.61959815",
"0.61305",
"0.6121797",
"0.6063063",
"0.6025661",
"0.60128766",
"0.60128766",
"0.596436... | 0.62674105 | 9 |
A configurable scatterplot of all activities. | def lLfD(YKHO) -> C1zu:
bo34.debug('Generating main scatterplot.')
A8EW = zoLL.Dropdown('overview_main_scatterplot_x_dropdown', options=[{'label': 'Distance', 'value': 'distance'}, {'label': 'Average speed', 'value': 'mean_speed'}, {'label': 'Average heart rate', 'value': 'mean_hr'}, {'label': 'Duration', 'valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JFjE(YKHO):\n QrM1.scatter(YKHO.a1[:, 0], YKHO.a1[:, 1], c='red', alpha=0.5, s=10)\n QrM1.scatter(YKHO.a2[:, 0], YKHO.a2[:, 1], c='blue', alpha=0.5, s=10)\n QrM1.scatter(0, 0, marker='D', c='black', alpha=0.8)\n QrM1.scatter(2, 2, marker='D', c='black', alpha=0.8)\n QrM1.show()",
"def u6_w(YKH... | [
"0.67238843",
"0.6708577",
"0.66642416",
"0.6630281",
"0.630712",
"0.63052666",
"0.6298917",
"0.6278833",
"0.6265205",
"0.6168853",
"0.6166783",
"0.6123382",
"0.61222416",
"0.6115842",
"0.6083699",
"0.60783607",
"0.607288",
"0.6068224",
"0.6062484",
"0.6058355",
"0.6018583",
... | 0.7072408 | 0 |
Extracts square patches of patch_dim by patch_dim from the data. Returns a patch_dim^2 by numpatches matrix. | def YXTw(nPrm, bUwb):
r8hN = nPrm.shape[0]
tFgk = nPrm.shape[1]
aPoP = nPrm.shape[2]
assert tFgk % float(bUwb) == 0 and aPoP % float(bUwb) == 0, 'patch_size must divide x and y dimensions of image'
F3xk = r8hN * (tFgk / bUwb) * (aPoP / bUwb)
FTrt = bUwb ** 2
ohfT = oyIN.empty((FTrt, F3xk))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vgAe(YKHO, LNo8, FTrt, _0fC):\n MKlR, yzQ0 = LNo8.shape[2:4]\n ohfT = []\n for YRbF in range(0, MKlR - FTrt + 1, _0fC):\n for r845 in range(0, yzQ0 - FTrt + 1, _0fC):\n ohfT.append(LNo8[:, :, YRbF:YRbF + FTrt, r845:r845 + FTrt])\n ohfT = ht2j.cat(ohfT, dim=0).to(YKHO.device)\n ... | [
"0.6891319",
"0.6779682",
"0.66917896",
"0.6450875",
"0.64256436",
"0.6412834",
"0.6366795",
"0.63452667",
"0.6342837",
"0.6332445",
"0.63294715",
"0.6287567",
"0.62787473",
"0.6240202",
"0.6159606",
"0.6138685",
"0.606784",
"0.60129994",
"0.597121",
"0.5943119",
"0.59225255"... | 0.7664922 | 0 |
Determine the index of the top of climb altitude. Returns The index of the first cruising altitude. | def xJrR(YKHO):
return YKHO.altitudes.argmax() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lwtf(YKHO):\n c9pH = YKHO.altitudes.argmax()\n if c9pH < len(YKHO.altitudes) - 1 and YKHO.altitudes[c9pH] == YKHO.altitudes[c9pH + 1]:\n c9pH += 1\n return c9pH",
"def t8gS(YKHO) -> h8nf[int]:\n if not YKHO.is_hom_alt():\n return None\n return max(YKHO.allele1, YKHO.allele2) - 1"... | [
"0.82650274",
"0.6586973",
"0.64087886",
"0.63747007",
"0.63523763",
"0.62209785",
"0.60802037",
"0.6078412",
"0.60293245",
"0.60026336",
"0.59891087",
"0.5984468",
"0.5980566",
"0.5978508",
"0.5973972",
"0.59719825",
"0.59692377",
"0.5964401",
"0.59599084",
"0.59111434",
"0.... | 0.84036976 | 0 |
Determine the index of the top of climb altitude. Returns The index of the last cruising altitude. | def lwtf(YKHO):
c9pH = YKHO.altitudes.argmax()
if c9pH < len(YKHO.altitudes) - 1 and YKHO.altitudes[c9pH] == YKHO.altitudes[c9pH + 1]:
c9pH += 1
return c9pH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJrR(YKHO):\n return YKHO.altitudes.argmax()",
"def t8gS(YKHO) -> h8nf[int]:\n if not YKHO.is_hom_alt():\n return None\n return max(YKHO.allele1, YKHO.allele2) - 1",
"def wvNT(YKHO):\n raise NotImplementedError",
"def tlxW(YKHO):\n return YKHO.get_cards()[-1]",
"def tlxW(YKHO):\n ... | [
"0.845523",
"0.66592854",
"0.6438688",
"0.64357513",
"0.64272976",
"0.64195174",
"0.6181029",
"0.6179077",
"0.6126768",
"0.61237574",
"0.6112536",
"0.61075664",
"0.61017954",
"0.60960674",
"0.60574836",
"0.6043104",
"0.60421985",
"0.6038397",
"0.6038397",
"0.60144544",
"0.601... | 0.82606477 | 1 |
Return pandas dataframe with annual, quarterly, monthly or daily data. | def V0JD(QTg7: str):
bD7m = 'http://minikep-db.herokuapp.com/api/frame?freq={}'.format(QTg7)
return rLdf.read_csv(bD7m, converters={0: rLdf.to_datetime}, index_col=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNjD():\n xFPM = [int(lO87) for lO87 in QePW.args.getlist('n')]\n EE5N = QePW.args.getlist('m')\n o26J = [str(lO87) for lO87 in range(min(xFPM), max(xFPM) + 1)]\n _qIg = Pusg(lambda jzdc, Fg_i: jzdc | Fg_i, (P4t4.df['month'].str.contains(lO87) for lO87 in o26J))\n G_PE = P4t4.df[_qIg][['month'] ... | [
"0.61230016",
"0.6044962",
"0.59703547",
"0.5963478",
"0.5958542",
"0.59389883",
"0.5922768",
"0.5885662",
"0.58801645",
"0.58436364",
"0.5840979",
"0.58044046",
"0.57593805",
"0.57528985",
"0.5697548",
"0.5684046",
"0.5673133",
"0.564309",
"0.56324506",
"0.56079215",
"0.5598... | 0.0 | -1 |
Return a string representation of the config. | def zAg0(YKHO):
Aofo = ' '
Aofo = '\n ' + '-' * (YKHO.DIM * 2 + 5) + '\n'
for rdlD in range(YKHO.DIM):
if rdlD is 3 or rdlD is 6:
Aofo += '|' + '-' * (YKHO.DIM * 2 + 5) + '|' + '\n'
Aofo += '| '
for fvDH in range(YKHO.DIM):
if fvDH is 3 or fvDH is 6:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0():\n return str(viqz)",
"def zAg0(YKHO):\n cKY_ = 'Configurations\\n'\n cKY_ += CgYo.pformat(YKHO.__dict__)\n return cKY_",
"def wHJl(YKHO) -> str:\n return qQXR.dumps(YKHO._config)",
"def str(YKHO):\n oXYM = ['{0} name={1}'.format(YKHO.layer_type, YKHO.name)]\n for H5ew, BWXx i... | [
"0.85173273",
"0.8513157",
"0.8259779",
"0.7956899",
"0.77279353",
"0.7583788",
"0.7550117",
"0.7511544",
"0.7511544",
"0.7487914",
"0.74800324",
"0.74372464",
"0.7417465",
"0.737675",
"0.73606914",
"0.7319001",
"0.72816837",
"0.7248459",
"0.7144512",
"0.7063809",
"0.68749636... | 0.0 | -1 |
forward pass of the layer | def KVH6(YKHO, WKvO):
return ht2j.conv_transpose2d(input=WKvO, weight=YKHO.weight * YKHO.scale, bias=YKHO.bias if YKHO.use_bias else None, stride=YKHO.stride, padding=YKHO.pad) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n return YKHO.layers(input)",
"def KVH6(YKHO, WKvO):\n return YKHO.layers(WKvO)",
"def kOkt(YKHO, EcVT):\n for gEmA in YKHO.__layers:\n EcVT = gEmA.compute_act(EcVT)\n return EcVT",
"def pftB(YKHO):\n ZylS.summary.image('image', tensor=ZylS.reshape(YKHO.x, (YKHO.b... | [
"0.7367367",
"0.73399484",
"0.7315237",
"0.72809756",
"0.7266685",
"0.72531646",
"0.72451967",
"0.7235675",
"0.72132516",
"0.7186353",
"0.7180268",
"0.7173166",
"0.71502644",
"0.7145505",
"0.7143514",
"0.71366554",
"0.7135957",
"0.7118842",
"0.70899886",
"0.70655066",
"0.7061... | 0.0 | -1 |
forward pass of the layer | def KVH6(YKHO, WKvO, Cwt5=1e-08):
Ep8u, bGrB, H2v2, TVTK = WKvO.shape
LVAh = WKvO - WKvO.mean(dim=0, keepdim=True)
LVAh = ht2j.sqrt(LVAh.pow(2.0).mean(dim=0, keepdim=False) + Cwt5)
LVAh = LVAh.mean().view(1, 1, 1, 1)
LVAh = LVAh.repeat(Ep8u, 1, H2v2, TVTK)
LVAh = ht2j.cat([WKvO, LVAh], 1)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n return YKHO.layers(input)",
"def KVH6(YKHO, WKvO):\n return YKHO.layers(WKvO)",
"def kOkt(YKHO, EcVT):\n for gEmA in YKHO.__layers:\n EcVT = gEmA.compute_act(EcVT)\n return EcVT",
"def pftB(YKHO):\n ZylS.summary.image('image', tensor=ZylS.reshape(YKHO.x, (YKHO.b... | [
"0.7367367",
"0.73399484",
"0.7315237",
"0.72809756",
"0.7266685",
"0.72531646",
"0.72451967",
"0.7235675",
"0.72132516",
"0.7186353",
"0.7180268",
"0.7173166",
"0.71502644",
"0.7145505",
"0.7143514",
"0.71366554",
"0.7135957",
"0.7118842",
"0.70899886",
"0.70655066",
"0.7061... | 0.0 | -1 |
create u_{xx} matrix operator using central differences. No flux boundaries assumed. | def tCmj(WKvO):
Jw7X = WKvO[1] - WKvO[0]
QRtr = oyIN.arange(1, len(WKvO) - 1, dtype=int)
KVz2 = oyIN.hstack((QRtr, QRtr, QRtr))
d9kK = oyIN.hstack((QRtr - 1, QRtr, QRtr + 1))
IE_7 = 1 / Jw7X ** 2 * oyIN.hstack((oyIN.ones(len(WKvO) - 2), -2 * oyIN.ones(len(WKvO) - 2), oyIN.ones(len(WKvO) - 2)))
U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4ju(WKvO):\n Jw7X = WKvO[1] - WKvO[0]\n 'x_int = np.arange(1,len(x)-1,dtype=int)\\n Ux_mat_row = np.hstack((x_int, x_int))\\n Ux_mat_col = np.hstack((x_int, x_int[:len(x_int)/2]-1,x_int[len(x_int)/2:]+1))\\n Ux_entry = (1/dx)*np.hstack((np.ones(len(x_int)/2),-np.ones(len(x_int)/2),-np.ones(len(... | [
"0.62446815",
"0.62316376",
"0.6046306",
"0.6005687",
"0.59617823",
"0.5938628",
"0.59300697",
"0.58108884",
"0.5771789",
"0.5753315",
"0.5722855",
"0.5706403",
"0.56890017",
"0.5678955",
"0.5677416",
"0.5673115",
"0.5672235",
"0.56281036",
"0.5621129",
"0.56142914",
"0.55678... | 0.69822335 | 0 |