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 |
|---|---|---|---|---|---|---|
Sets the text of this BatchFuturesOrder. | def l5Ny(YKHO, l5Ny):
YKHO._text = l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HDnm(YKHO, l5Ny):\n YKHO.clear()\n Mkmy = YKHO.add_run()\n Mkmy.text = iyQ9(l5Ny)",
"def eiHf(YKHO, l5Ny):\n YKHO.set_text_f('%s', l5Ny)",
"def ju1d(YKHO, l5Ny):\n YKHO._text = l5Ny",
"def eiHf(YKHO, l5Ny):\n YKHO.text = l5Ny",
"def eiHf(YKHO):\n pass",
"def ju1d(YKHO, l5Ny):\n ... | [
"0.738883",
"0.73102534",
"0.7282904",
"0.72776896",
"0.72113734",
"0.71097034",
"0.7109433",
"0.6877894",
"0.68464094",
"0.67774165",
"0.67680264",
"0.67234176",
"0.66786504",
"0.6630735",
"0.66227275",
"0.6553275",
"0.6505064",
"0.64859176",
"0.6396813",
"0.63152385",
"0.63... | 0.7059112 | 11 |
Sets the tkfr of this BatchFuturesOrder. | def lgEz(YKHO, lgEz):
YKHO._tkfr = lgEz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CtSp(YKHO, CtSp):\n YKHO._fee_taf = CtSp",
"def Kiag(YKHO, KS9L):\n YKHO._future = KS9L",
"def set(YKHO):\n raise Exception(\"Can't set frmt.\")",
"def aF0O(YKHO, aF0O):\n YKHO._fr = aF0O",
"def VnJt(YKHO, eHNT):\n YKHO.f = eHNT\n YKHO.refresh()",
"def yKi0(YKHO, D8Lu: str):\n YK... | [
"0.5249413",
"0.52169377",
"0.5205643",
"0.50446403",
"0.50440377",
"0.49556962",
"0.49090248",
"0.48828828",
"0.47640434",
"0.4741821",
"0.4730547",
"0.46186864",
"0.45995447",
"0.4579824",
"0.45171097",
"0.45045435",
"0.4496954",
"0.44920358",
"0.44658023",
"0.4457235",
"0.... | 0.73629487 | 0 |
Sets the mkfr of this BatchFuturesOrder. | def XcXb(YKHO, XcXb):
YKHO._mkfr = XcXb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lgEz(YKHO, lgEz):\n YKHO._tkfr = lgEz",
"def set(YKHO):\n raise Exception(\"Can't set frmt.\")",
"def Kiag(YKHO, KS9L):\n YKHO._future = KS9L",
"def DWkF(YKHO, DWkF):\n YKHO._mtf = DWkF",
"def aF0O(YKHO, aF0O):\n YKHO._fr = aF0O",
"def TKgy(YKHO, TKgy):\n YKHO.logger.debug(\"In 'fin... | [
"0.5318648",
"0.49486306",
"0.48694998",
"0.48431262",
"0.47991398",
"0.46544263",
"0.46497783",
"0.4568865",
"0.45504254",
"0.4540998",
"0.45386323",
"0.44944158",
"0.44827116",
"0.44706678",
"0.44444895",
"0.44067228",
"0.43773124",
"0.43757445",
"0.4355087",
"0.4347009",
"... | 0.66274464 | 0 |
Sets the auto_size of this BatchFuturesOrder. | def CSyy(YKHO, CSyy):
BbPm = ['close_long', 'close_short']
if YKHO.local_vars_configuration.client_side_validation and CSyy not in BbPm:
raise ValueError('Invalid value for `auto_size` ({0}), must be one of {1}'.format(CSyy, BbPm))
YKHO._auto_size = CSyy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVA9(YKHO) -> 'Size':\n YKHO.maximum = 'auto'\n return YKHO",
"def HPas(YKHO) -> 'Size':\n YKHO.minimum = 'auto'\n return YKHO",
"def qDK4(YKHO, Ep8u):\n Q1W9 = YKHO.full_dataset_size % Ep8u\n if not YKHO.final_batch:\n YKHO.dataset_size = YKHO.full_dataset_size - Q1W9\n YKHO.en... | [
"0.657556",
"0.63142294",
"0.6037942",
"0.5843828",
"0.5719651",
"0.56144124",
"0.5605638",
"0.5605638",
"0.5605638",
"0.5605638",
"0.5605638",
"0.5571605",
"0.5564202",
"0.55581945",
"0.5496308",
"0.54906946",
"0.5369566",
"0.53652227",
"0.53251934",
"0.52507436",
"0.5241644... | 0.7379249 | 0 |
Sets the stp_id of this BatchFuturesOrder. | def rXJr(YKHO, rXJr):
YKHO._stp_id = rXJr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZuB6(YKHO, ZuB6):\n YKHO._state_id = ZuB6",
"def _TKD(YKHO, _TKD):\n YKHO._task_id = _TKD",
"def _TKD(YKHO, _TKD):\n YKHO._task_id = _TKD",
"def _TKD(YKHO, _TKD):\n if YKHO.local_vars_configuration.client_side_validation and _TKD is None:\n raise ValueError('Invalid value for `task_id`... | [
"0.5439722",
"0.5395826",
"0.5375513",
"0.49912408",
"0.4950217",
"0.49064633",
"0.49064633",
"0.49064633",
"0.49064633",
"0.48698026",
"0.48597",
"0.4850475",
"0.48293912",
"0.47988915",
"0.47979003",
"0.47979003",
"0.47799927",
"0.4746367",
"0.47304225",
"0.47231445",
"0.47... | 0.77797455 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, _8OU):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, _8OU):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Save init mode to json file | def r6A5(YKHO):
def VAha():
mWFP = FzR0.entry.get()
YKHO.init_modes[mWFP] = YKHO.save_list
with open(YKHO.modes_file, 'wb') as ytgA:
qQXR.dump(YKHO.init_modes, ytgA)
YKHO.world_alive = WMaV[0]
YKHO.world_setable = WMaV[1]
YKHO.modes_names.insert(1, mWFP)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_wH(YKHO, gIsw):\n with open('saves/' + gIsw + '.json', 'w') as ytgA:\n qQXR.dump(YKHO.options, ytgA, indent=4)",
"def J1J4(YKHO):\n YKHO.keys = {}\n Ga6V = open(YKHO.path, 'w')\n qQXR.dump(YKHO.keys, Ga6V)\n Ga6V.close()\n Hy7s.chmod(YKHO.path, 384)",
"def wiPd(YKHO):\n with o... | [
"0.6887022",
"0.68404675",
"0.67693",
"0.6658712",
"0.65835565",
"0.65712905",
"0.6562384",
"0.6555416",
"0.65441346",
"0.65335107",
"0.6529931",
"0.6524807",
"0.6503875",
"0.64891696",
"0.64891696",
"0.64891696",
"0.648137",
"0.64463985",
"0.64313436",
"0.6412618",
"0.640953... | 0.6046581 | 70 |
The id of the DOM element that contains this widget if parent is None. | def KCib(Ty9i=''):
return str(Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4dJ(YKHO):\n _AKB = LRdN.find(YKHO.resource.container)\n return _AKB.uuid",
"def H7rZ(YKHO):\n return YKHO._parent_id",
"def H7rZ(YKHO):\n return YKHO._parent_id",
"def H7rZ(YKHO) -> int:\n return YKHO._parent_id",
"def O4dJ(YKHO):\n NmVZ = YKHO.collection.container\n if YKHO.coll... | [
"0.70854264",
"0.7081342",
"0.7081342",
"0.6941954",
"0.69028586",
"0.68693876",
"0.68054086",
"0.68054086",
"0.67876214",
"0.6726368",
"0.66635585",
"0.6598652",
"0.65762496",
"0.65732473",
"0.64747864",
"0.64618737",
"0.6392635",
"0.63814396",
"0.6368345",
"0.6325241",
"0.6... | 0.0 | -1 |
The real (actual) size of the widget. | def LJMr(Ty9i=(0, 0)):
return (Ty9i[0], Ty9i[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCQL(YKHO) -> int:\n return YKHO._widget_size",
"def zNig(YKHO):\n zNig = YKHO.widget.size()\n return DEza(zNig.width(), zNig.height())",
"def zNig(YKHO):\n return YKHO.width",
"def zNig(YKHO):\n return YKHO.width",
"def zNig(YKHO):\n return YKHO.width",
"def zNig(YKHO):\n return... | [
"0.8618168",
"0.8545094",
"0.780891",
"0.780891",
"0.780891",
"0.780891",
"0.780891",
"0.780891",
"0.780891",
"0.77900195",
"0.7772742",
"0.7766709",
"0.7742323",
"0.773087",
"0.76422435",
"0.7602682",
"0.7541158",
"0.75367326",
"0.75109446",
"0.7310525",
"0.72724414",
"0.7... | 0.0 | -1 |
Remove the DOM element. Called right after the child widget is removed. | def xIK3(YKHO, TEdI):
YKHO.node.removeChild(TEdI.node) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XALq(YKHO):\n YKHO.parent.remove(YKHO.element)",
"def kSdD(YKHO):\n if YKHO._parent:\n YKHO._parent.removeChild(YKHO)\n else:\n YKHO.clear()",
"def kSdD(YKHO, TEdI):\n YKHO.widgets.remove(TEdI)\n TEdI.destroy()",
"def ElqU(YKHO, IHkM):\n YKHO.widgets_list.pop(IHkM)\n YK... | [
"0.7485156",
"0.7187746",
"0.7184754",
"0.6905952",
"0.67884785",
"0.6710861",
"0.6687458",
"0.66557515",
"0.66322166",
"0.6566373",
"0.6530083",
"0.6514613",
"0.6503867",
"0.6439918",
"0.64324903",
"0.63766557",
"0.6370551",
"0.6361438",
"0.63293856",
"0.6294435",
"0.6290520... | 0.85500693 | 0 |
Add a colorbar to the right of an axis. | def Rz7N(YKHO, LZpg, aNZO, X7zS, MYQr, UXqs=''):
import matplotlib as x5MY
oeNL = aNZO.get_position()
BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.4]
k13D = LZpg.add_axes(BFKx)
CkYf = x5MY.colors.BoundaryNorm(X7zS, MYQr.N)
wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]\n k13D = LZpg.add_axes(BFKx)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation... | [
"0.7577057",
"0.7577057",
"0.7418903",
"0.7179385",
"0.7166474",
"0.71613485",
"0.71574956",
"0.6979866",
"0.6953447",
"0.6930779",
"0.67889935",
"0.6788904",
"0.6615177",
"0.6534736",
"0.6524789",
"0.65199506",
"0.6450172",
"0.6343112",
"0.62681675",
"0.62551737",
"0.625244"... | 0.74102116 | 3 |
If `quantile` is `None`, return the quantile _rank_ of the last value of `series` wrt former series values. If `quantile` is a value between 0 and 1, return the _value_ of `series` at this quantile. If used to working with percentiles, just divide your percentile amount with 100 to obtain quantiles. | def aM62(dy_H: Sequence, aM62: Union[None, float]=None):
if aM62 is None:
try:
XVAW, dy_H = (dy_H[-1], dy_H[:-1])
return oyIN.mean(dy_H < XVAW)
except IndexError:
return oyIN.nan
assert 0 <= aM62 <= 1, 'quantile must be within [0, 1]'
return oyIN.nanpercen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPyy(nPrm, aM62):\n d6pt = aM62 * (len(nPrm) - 1)\n TdQE = int(pBSp(d6pt))\n D_4q = int(lO1m(d6pt))\n by6d = d6pt - TdQE\n hlel = (1 - by6d) * nPrm[TdQE] + by6d * nPrm[D_4q]\n return hlel",
"def aM62(YKHO, aM62: float, vjyh: int=10000) -> jHAz:\n return super().quantile(aM62, vjyh)",
"... | [
"0.6520899",
"0.6145551",
"0.6145551",
"0.6145551",
"0.61079895",
"0.6095731",
"0.5873301",
"0.58228385",
"0.57943034",
"0.57624453",
"0.5733412",
"0.5733412",
"0.56995964",
"0.56587195",
"0.5644355",
"0.5642954",
"0.5638669",
"0.56355345",
"0.5628076",
"0.5623091",
"0.560649... | 0.7877083 | 0 |
Apply `func` (such as an indicator) to `series`, resampled to a time frame specified by `rule`. When called from inside `backtesting.backtesting.Strategy.init`, the result (returned) series will be automatically wrapped in `backtesting.backtesting.Strategy.I` wrapper method. `rule` is a valid [Pandas offset string] ind... | def aZG3(eD8c: str, JfyU: Optional[Callable[..., Sequence]], dy_H: Union[pd.Series, pd.DataFrame, _Array], *qIxc, waEm: str='last', **B2fa):
if JfyU is None:
def JfyU(WKvO, *bGrB, **IaaG):
return WKvO
if not isinstance(dy_H, (rLdf.Series, rLdf.DataFrame)):
assert isinstance(dy_H, m2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VsGh(jQ3Z: DataFrame, eD8c: str, NKcE: str, ydQI: str, kfE6: Optional[Tuple[Optional[str], ...]]=None, xgWT: Optional[Union[float, int]]=None) -> hxoQ:\n\n def I6Wc(PBtj: DataFrame) -> hxoQ:\n PBtj = PBtj.set_index(ydQI)\n if NKcE == 'asfreq' and xgWT is not None:\n return PBtj.resa... | [
"0.594337",
"0.5805199",
"0.53954834",
"0.5369058",
"0.5094904",
"0.5033484",
"0.5027912",
"0.5024656",
"0.50126797",
"0.4890479",
"0.4886314",
"0.4790668",
"0.4790668",
"0.47272936",
"0.4701877",
"0.46794966",
"0.46776852",
"0.46546692",
"0.46399835",
"0.4631947",
"0.4620494... | 0.8047186 | 0 |
Reads either an XML document or a JSON object from environ. | def u1Um(YKHO, PNq_):
NkEf = None
tZ2K = None
if 'CONTENT_TYPE' in PNq_:
MgI3 = NArs.MediaType.from_str(PNq_['CONTENT_TYPE'])
for Mkmy in YKHO.AtomRanges:
if Mkmy.match_media_type(MgI3):
NkEf = True
break
if NkEf is None:
for Mk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PSj2(mWFP, WmM4=_mcN):\n BWXx = Hy7s.environ.get(mWFP)\n if BWXx is None:\n if WmM4 is _mcN:\n return None\n else:\n return WmM4\n try:\n DxE7 = qQXR.loads(BWXx)\n except:\n raise ValueError(f'String `{BWXx}` cannot be parsed as json')\n return D... | [
"0.569929",
"0.53281",
"0.52944857",
"0.52831954",
"0.5206056",
"0.5181543",
"0.51783836",
"0.5177183",
"0.5144976",
"0.5114635",
"0.50724524",
"0.504457",
"0.50386524",
"0.498097",
"0.49776605",
"0.4969273",
"0.4962634",
"0.4923059",
"0.49116328",
"0.49112168",
"0.48747563",... | 0.7502383 | 0 |
Returns the best match for the Accept header. Given a list of media types, examines the Accept header and returns the best match. If there is no match then None is returned. We also handle an accept list override in the form of acceptList, e.g., parsed from the $format parameter. | def cQ7J(YKHO, QePW, PNq_, TP1r):
ybN4 = QePW.sys_query_options.get(aM69.SystemQueryOption.format, None)
if ybN4 is None:
if 'HTTP_ACCEPT' in PNq_:
try:
ybN4 = yEHD.AcceptList.from_str(PNq_['HTTP_ACCEPT'])
except mIy_.BadSyntax:
ybN4 = YKHO.Default... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DGXu(YKHO, KcEq, bIwZ, PNq_, sEDC):\n Hhz4 = E2kW(PNq_.get('HTTP_ACCEPT', ''))\n P4t4 = None\n pKmM, NArs = Hhz4.best_match(sEDC)\n if 'version' in NArs:\n P4t4, iAU8 = YKHO._match(KcEq, bIwZ, '/v' + NArs['version'])\n if P4t4:\n P4t4 = YKHO._set_script_name(P4t4, iAU8)\n ... | [
"0.7609767",
"0.72352767",
"0.7204714",
"0.68856543",
"0.6858982",
"0.68290895",
"0.67379814",
"0.6703386",
"0.6695137",
"0.6658856",
"0.6606308",
"0.65931076",
"0.64771515",
"0.64253324",
"0.6400845",
"0.6302983",
"0.61780673",
"0.6176516",
"0.6062491",
"0.5933245",
"0.58545... | 0.692304 | 3 |
copies keys from d2 that doent exist in d1 into d1 | def LJF9(AjzU, _sQW):
for G1Hx, Ty9i in _sQW.items():
if G1Hx not in AjzU:
AjzU[G1Hx] = Ty9i
return AjzU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qDd2(AjzU, _sQW):\n UsDa = [YRbF for YRbF in _sQW.keys()]\n for H5ew in UsDa:\n for YRbF in range(len(_sQW[H5ew])):\n try:\n wEf2 = AjzU[_sQW[H5ew][YRbF][2]]\n _sQW[H5ew][YRbF][2] = wEf2\n if None in _sQW[H5ew][YRbF]:\n _sQ... | [
"0.72088456",
"0.68125874",
"0.6801156",
"0.6755334",
"0.6589003",
"0.65879613",
"0.6578424",
"0.64387685",
"0.6389865",
"0.63801384",
"0.63774425",
"0.63733107",
"0.6323963",
"0.63097984",
"0.6309151",
"0.63009244",
"0.6277226",
"0.62756914",
"0.62694836",
"0.626825",
"0.624... | 0.7595908 | 0 |
Returns True if arr is a string or a string array with a dtype that represents a unicode string, otherwise returns False. | def ow6M(ezWE):
if isinstance(ezWE, str) or issubclass(XTiz.asarray(ezWE).dtype.type, str):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sd4x(nPrm):\n return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str)",
"def X7_c(ZfUD: Any) -> bool:\n if isinstance(ZfUD, (bytes, bytearray, str)):\n return True\n elif isinstance(ZfUD, (tuple, list)) and all((X7_c(WKvO) for WKvO in ZfUD)):\n return True\n elif isinstance(ZfUD, o... | [
"0.7966714",
"0.73032117",
"0.71168894",
"0.7111482",
"0.686274",
"0.671574",
"0.66610277",
"0.6634594",
"0.6610915",
"0.6609697",
"0.65711135",
"0.6550568",
"0.654741",
"0.6530493",
"0.6523975",
"0.6523705",
"0.6522986",
"0.6350834",
"0.6295146",
"0.62918717",
"0.6276921",
... | 0.9189814 | 0 |
Helper function to cast a result back into an array with the appropriate dtype if an object array must be used as an intermediary. | def D5U5(Aofo, TxWU=None):
U5bT = XTiz.asarray(Aofo.tolist())
yDqo = getattr(TxWU, 'dtype', None)
if yDqo is not None:
return U5bT.astype(type(yDqo)(nqKB(U5bT)), copy=False)
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DSj2(YEnM: ndarray, qe77: dtype) -> gyIm:\n if YEnM.dtype != qe77:\n return YEnM.astype(qe77)\n return YEnM",
"def cxGG(YKHO, Iup5):\n raise NotImplementedError",
"def EBvd(jzdc, yDqo, T4Wy=None):\n if str(yDqo) == 'floatX':\n yDqo = e89i.config.floatX\n yDqo = XTiz.dtype(yDqo)... | [
"0.7096671",
"0.6841039",
"0.6830651",
"0.6828725",
"0.66789085",
"0.64556044",
"0.6426028",
"0.6370754",
"0.63456815",
"0.63394296",
"0.6315407",
"0.6304702",
"0.6249234",
"0.62315524",
"0.6222053",
"0.61602265",
"0.6156637",
"0.6086843",
"0.6081079",
"0.60629636",
"0.604392... | 0.5883857 | 29 |
Return (x1 == x2) elementwise. Unlike `numpy.equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backwardcompatibility with numarray. | def InF8(o4D3, ajwV):
return iEmF(o4D3, ajwV, '==', True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgu0(o4D3, ajwV):\n return iEmF(o4D3, ajwV, '<=', True)",
"def kUu4(o4D3, ajwV):\n return iEmF(o4D3, ajwV, '!=', True)",
"def z9g8(YKHO, UrE_: List[str], MP_r: List[str]) -> bool:\n cSjL = ''.join(UrE_)\n oKId = ''.join(MP_r)\n return cSjL == oKId",
"def JvdK(WKvO, LVAh):\n return WKvO[... | [
"0.7509916",
"0.7294553",
"0.6723392",
"0.65218514",
"0.6225552",
"0.60661477",
"0.6031216",
"0.6015804",
"0.60073864",
"0.5997947",
"0.5982622",
"0.59248394",
"0.588789",
"0.58679116",
"0.585102",
"0.5820265",
"0.5783995",
"0.5705827",
"0.566642",
"0.5653403",
"0.56294584",
... | 0.8008796 | 0 |
Return a copy of each string element where all tab characters are replaced by one or more spaces. | def rZfd(jzdc, agdd=8):
return D5U5(BkRE(jzdc, Iup5, 'expandtabs', (agdd,)), jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJ_J(l5Ny, oi6k=4):\n return l5Ny.replace('\\t', ' ' * oi6k)",
"def cAaD(JNSG):\n if JNSG is None:\n return None\n while True:\n if JNSG.find('\\t\\t') == 0:\n JNSG = JNSG.replace('\\t\\t', '\\t')\n continue\n return JNSG.replace('\\t', ' ')",
"def b5be(v... | [
"0.71183926",
"0.65958834",
"0.620285",
"0.6186827",
"0.60230243",
"0.59868914",
"0.59636563",
"0.588255",
"0.58771384",
"0.58337706",
"0.5829873",
"0.57723075",
"0.5743903",
"0.5731502",
"0.5672966",
"0.5648179",
"0.5616224",
"0.56048214",
"0.5594087",
"0.5592536",
"0.555345... | 0.4895127 | 93 |
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. | def ioN7(jzdc):
return BkRE(jzdc, TpFH, 'isdigit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQGg(vIwR):\n for bseI in vIwR[:-1]:\n if not (bseI.isdigit() or bseI in (',', ' ')):\n return False\n return True",
"def qekA(b7zw):\n return any((hcXw.isdigit() for hcXw in b7zw))",
"def tIyV(vIwR):\n for hcXw in vIwR:\n rbrL = ord(hcXw)\n if rbrL < 48 or rbrL ... | [
"0.78533113",
"0.7561768",
"0.7475313",
"0.7440053",
"0.73669094",
"0.7201638",
"0.71519977",
"0.7132112",
"0.71114177",
"0.71021056",
"0.7024682",
"0.70234317",
"0.70116323",
"0.6942178",
"0.6839974",
"0.68116593",
"0.66650045",
"0.66237056",
"0.6609525",
"0.6604078",
"0.656... | 0.67674977 | 16 |
Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. | def aT8X(jzdc):
return BkRE(jzdc, TpFH, 'istitle') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGzK(KCHu):\n for Z9rn in KCHu:\n if Z9rn.islower():\n return True\n else:\n return False",
"def flvb(KCHu):\n ppkj = [Z9rn for Z9rn in KCHu if Z9rn.isalpha()]\n if ppkj == []:\n return False\n for WKvO in ppkj:\n if not WKvO.isupper():\n ... | [
"0.6941038",
"0.68716043",
"0.6780692",
"0.6780692",
"0.6512118",
"0.6399989",
"0.6380385",
"0.6357817",
"0.6357817",
"0.6357817",
"0.6355132",
"0.6309197",
"0.6285292",
"0.6258547",
"0.62567323",
"0.623165",
"0.62136436",
"0.62105006",
"0.61694354",
"0.6168388",
"0.6163217",... | 0.0 | -1 |
Return a string which is the concatenation of the strings in the sequence `seq`. | def gzes(VWe_, Q6uT):
return D5U5(BkRE(VWe_, Iup5, 'join', (Q6uT,)), Q6uT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IP24(Q6uT):\n return ','.join(map(eb4L, Q6uT))",
"def CMX7(aWuw) -> str:\n PYZn = ''\n for Q6uT in [aWuw[YRbF:YRbF + 60] for YRbF in range(0, len(aWuw), 60)]:\n PYZn += ' ' + ' '.join((Q6uT[YRbF:YRbF + 10] for YRbF in range(0, len(Q6uT), 10))) + '\\n'\n return PYZn",
"def Qjtx(Q6uT):... | [
"0.69917446",
"0.69156003",
"0.63484746",
"0.6296491",
"0.62703073",
"0.62689954",
"0.6260878",
"0.6163532",
"0.61488706",
"0.6119395",
"0.61155546",
"0.60861564",
"0.608115",
"0.6074101",
"0.6059275",
"0.6044948",
"0.6010762",
"0.5994815",
"0.59882516",
"0.58637524",
"0.5823... | 0.6457387 | 2 |
Return an array with the elements of `a` leftjustified in a string of length `width`. | def HWiO(jzdc, TVTK, BY31=' '):
rihc = XTiz.asarray(jzdc)
gkdA = XTiz.asarray(TVTK)
zNig = int(XTiz.max(gkdA.flat))
if XTiz.issubdtype(rihc.dtype, XTiz.bytes_):
BY31 = Ck8V(BY31)
return BkRE(rihc, type(rihc.dtype)(zNig), 'ljust', (gkdA, BY31)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HWiO(YKHO, TVTK, BY31=' '):\n return MF4b(HWiO(YKHO, TVTK, BY31))",
"def C3tM(jzdc, TVTK, BY31=' '):\n rihc = XTiz.asarray(jzdc)\n gkdA = XTiz.asarray(TVTK)\n zNig = int(XTiz.max(gkdA.flat))\n if XTiz.issubdtype(rihc.dtype, XTiz.bytes_):\n BY31 = Ck8V(BY31)\n return BkRE(rihc, type(r... | [
"0.7043984",
"0.6927092",
"0.65656453",
"0.650507",
"0.6413466",
"0.6408715",
"0.63705087",
"0.63438576",
"0.63402236",
"0.6301571",
"0.6272976",
"0.6107203",
"0.60244024",
"0.60244024",
"0.60244024",
"0.60244024",
"0.60244024",
"0.6013437",
"0.59690136",
"0.58454025",
"0.583... | 0.73811245 | 0 |
For each element in `a`, return a list of the words in the string, using `sep` as the delimiter string. | def X8Y1(jzdc, VWe_=None, rZdO=None):
return BkRE(jzdc, Iup5, 'rsplit', [VWe_] + P4Dy(rZdO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(jzdc, VWe_=None, rZdO=None):\n return BkRE(jzdc, Iup5, 'split', [VWe_] + P4Dy(rZdO))",
"def XQ_r(input, TDw3=u','):\n if not input:\n return []\n V22M = [yzQ0.strip() for yzQ0 in input.split(TDw3)]\n return [yzQ0 for yzQ0 in V22M if yzQ0]",
"def RLcL(hfsm):\n return ZbWC.split('[... | [
"0.6227914",
"0.6176784",
"0.6151628",
"0.61416644",
"0.60964584",
"0.6021042",
"0.6004054",
"0.58559257",
"0.58449996",
"0.583339",
"0.5772689",
"0.57500595",
"0.57454807",
"0.5717567",
"0.56444246",
"0.5623361",
"0.5617884",
"0.561691",
"0.56161356",
"0.5607101",
"0.5607101... | 0.0 | -1 |
For each element in `a`, return a list of the words in the string, using `sep` as the delimiter string. | def lpha(jzdc, VWe_=None, rZdO=None):
return BkRE(jzdc, Iup5, 'split', [VWe_] + P4Dy(rZdO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XQ_r(input, TDw3=u','):\n if not input:\n return []\n V22M = [yzQ0.strip() for yzQ0 in input.split(TDw3)]\n return [yzQ0 for yzQ0 in V22M if yzQ0]",
"def RLcL(hfsm):\n return ZbWC.split('[\\\\s,]', hfsm)",
"def wr3U(KCHu: str, DNHh: list=None, VWe_: str='_', kzlz: bool=False) -> str:\n ... | [
"0.6175783",
"0.6150606",
"0.6139819",
"0.6097065",
"0.6019408",
"0.60053664",
"0.5855007",
"0.5842084",
"0.5831188",
"0.57714456",
"0.57503814",
"0.5742755",
"0.5718715",
"0.56426924",
"0.5621288",
"0.5618435",
"0.5616384",
"0.5616018",
"0.5607548",
"0.5607548",
"0.5575949",... | 0.62272996 | 0 |
For each element in `a`, return a list of the lines in the element, breaking at line boundaries. | def PL9q(jzdc, JN60=None):
return BkRE(jzdc, Iup5, 'splitlines', P4Dy(JN60)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nqlg(jzdc, Fg_i):\n DtA1 = []\n NI9g = []\n for zFiD in jzdc:\n DtA1.append(zFiD)\n for zFiD in Fg_i:\n NI9g.append(zFiD)\n return []",
"def PyNg(L49q):\n with open(L49q, 'r') as eHNT:\n Nqlg = eHNT.read()\n return Nqlg.splitlines()",
"def Nqlg(l5Ny):\n retu... | [
"0.6343864",
"0.6318174",
"0.62880236",
"0.6150436",
"0.61434174",
"0.61360204",
"0.6048654",
"0.6017373",
"0.58687353",
"0.58561",
"0.5841335",
"0.5813515",
"0.5799253",
"0.5765263",
"0.5734014",
"0.56684154",
"0.5650965",
"0.5589976",
"0.5571621",
"0.55594873",
"0.55565673"... | 0.71157223 | 0 |
For each element, return True if there are only numeric characters in the element. | def kIbd(jzdc):
if not ow6M(jzdc):
raise TypeError('isnumeric is only available for Unicode strings and arrays')
return BkRE(jzdc, TpFH, 'isnumeric') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQGg(vIwR):\n for bseI in vIwR[:-1]:\n if not (bseI.isdigit() or bseI in (',', ' ')):\n return False\n return True",
"def tIyV(vIwR):\n for hcXw in vIwR:\n rbrL = ord(hcXw)\n if rbrL < 48 or rbrL > 57:\n return False\n return True",
"def Ozdp(yzQ0):\n ... | [
"0.70307505",
"0.6969218",
"0.69474757",
"0.68575186",
"0.679697",
"0.67844236",
"0.6732247",
"0.67028123",
"0.668302",
"0.66280687",
"0.66180533",
"0.66044587",
"0.65981555",
"0.65356493",
"0.6504214",
"0.64832485",
"0.64257586",
"0.6424728",
"0.6407274",
"0.63965833",
"0.63... | 0.6690595 | 8 |
Return (self == other) elementwise. See Also equal | def xa14(YKHO, Elif):
return InF8(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO.element() == Elif.element()",
"def xa14(YKHO, Elif):\n ... | [
"0.83785",
"0.83785",
"0.8083074",
"0.8083074",
"0.8067659",
"0.80388385",
"0.7978107",
"0.796262",
"0.7881343",
"0.78671926",
"0.7859771",
"0.7856313",
"0.7850773",
"0.78459334",
"0.78459334",
"0.7843383",
"0.782459",
"0.78176045",
"0.7809106",
"0.77888995",
"0.77888995",
... | 0.83182645 | 2 |
Return (self != other) elementwise. See Also not_equal | def Vdqg(YKHO, Elif):
return kUu4(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.8356103",
"0.8319851",
"0.8319851",
"0.8318627",
"0.8318627",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"0.8300962",
"... | 0.83294284 | 1 |
Return (self >= other) elementwise. See Also greater_equal | def Zcf_(YKHO, Elif):
return iAAT(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n return YKHO.element() >= Elif.element()",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and (not YKHO <= Elif)",
"def Zcf_(YKHO, Elif):\n ret... | [
"0.81039894",
"0.8084001",
"0.8084001",
"0.80728567",
"0.79933965",
"0.7870833",
"0.78633183",
"0.78371096",
"0.78363997",
"0.7809979",
"0.7778618",
"0.7713752",
"0.7695564",
"0.76186454",
"0.7610709",
"0.760211",
"0.7591801",
"0.7566062",
"0.75426847",
"0.7515614",
"0.751439... | 0.7979543 | 5 |
Return (self <= other) elementwise. See Also less_equal | def TPjt(YKHO, Elif):
return jgu0(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return YKHO.element() <= Elif.element()",
"def Zcf_(YKHO, Elif):\n return Elif <= YKHO",
"def xa14(YKHO, Elif):\n return YKHO <= Elif and YKHO >= Elif",
"def TPjt(YKHO, Elif):\n return YKHO.runtime.greater_than_equal(Elif, YKHO)",
"def Zcf_(YKHO, Elif):\n return YKHO.... | [
"0.8304744",
"0.82557625",
"0.81052005",
"0.80792266",
"0.8020132",
"0.7877541",
"0.7873354",
"0.78645647",
"0.7858902",
"0.7858902",
"0.78445256",
"0.7842935",
"0.7816166",
"0.78126585",
"0.78042746",
"0.7802925",
"0.7802925",
"0.7783988",
"0.77502084",
"0.77472365",
"0.7714... | 0.82730126 | 1 |
Return (self < other) elementwise. See Also less | def JWbp(YKHO, Elif):
return HFDh(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n return YKHO.element() < Elif.element()",
"def JWbp(YKHO, Elif):\n return YKHO.lessThan(Elif)",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and (not YKHO >= Elif)",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif",
"def JWbp(YKHO, Elif):\n return YKHO <=... | [
"0.85328865",
"0.8445823",
"0.8358106",
"0.8341501",
"0.8341501",
"0.8301288",
"0.82819813",
"0.8201047",
"0.8168915",
"0.81506443",
"0.81109184",
"0.80958414",
"0.80797833",
"0.807492",
"0.80560225",
"0.8041856",
"0.8038948",
"0.80287814",
"0.79924417",
"0.7985427",
"0.79816... | 0.8388125 | 2 |
Return the indices that sort the array lexicographically. For full documentation see `numpy.argsort`, for which this method is in fact merely a "thin wrapper." Examples >>> c = np.array(['a1b c', '1b ca', 'b ca1', 'Ca1b'], 'S5') >>> c = c.view(np.chararray); c chararray(['a1b c', '1b ca', 'b ca1', 'Ca1b'], dtype='|S5')... | def hj4Q(YKHO, jDK_=-1, eJTR=None, T4Wy=None):
return YKHO.__array__().argsort(jDK_, eJTR, T4Wy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hj4Q(nPrm, reversed=False):\n d6pt = oyIN.arange(len(nPrm))\n H5ew = lambda WKvO: nPrm[WKvO]\n QCY0 = sorted(d6pt, key=H5ew, reverse=reversed)\n QCY0 = oyIN.array(list(QCY0))\n return QCY0",
"def dzSq(Q6uT):\n return sorted(range(len(Q6uT)), key=Q6uT.__getitem__)",
"def pydd(jzdc):\n W... | [
"0.65047985",
"0.6422976",
"0.63188636",
"0.62670755",
"0.62400144",
"0.6194454",
"0.57943624",
"0.57884544",
"0.57674444",
"0.5738136",
"0.5666745",
"0.55607355",
"0.5557059",
"0.55409867",
"0.5522309",
"0.54618233",
"0.54382974",
"0.5408864",
"0.54081786",
"0.52271765",
"0.... | 0.5671365 | 10 |
Return a copy of each string element where all tab characters are replaced by one or more spaces. See Also char.expandtabs | def rZfd(YKHO, agdd=8):
return MF4b(rZfd(YKHO, agdd)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJ_J(l5Ny, oi6k=4):\n return l5Ny.replace('\\t', ' ' * oi6k)",
"def WVWl(l5Ny, agdd=1):\n return l5Ny.expandtabs(agdd)",
"def cAaD(JNSG):\n if JNSG is None:\n return None\n while True:\n if JNSG.find('\\t\\t') == 0:\n JNSG = JNSG.replace('\\t\\t', '\\t')\n co... | [
"0.7422389",
"0.67966485",
"0.6702227",
"0.6592022",
"0.63332325",
"0.63141936",
"0.60228413",
"0.6021405",
"0.59502554",
"0.5941132",
"0.58949846",
"0.58574057",
"0.5846565",
"0.5794571",
"0.5775798",
"0.5774099",
"0.5728216",
"0.5600399",
"0.5598799",
"0.556683",
"0.5534603... | 0.49939102 | 66 |
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. See Also char.isdigit | def ioN7(YKHO):
return ioN7(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQGg(vIwR):\n for bseI in vIwR[:-1]:\n if not (bseI.isdigit() or bseI in (',', ' ')):\n return False\n return True",
"def qekA(b7zw):\n return any((hcXw.isdigit() for hcXw in b7zw))",
"def tIyV(vIwR):\n for hcXw in vIwR:\n rbrL = ord(hcXw)\n if rbrL < 48 or rbrL ... | [
"0.7732513",
"0.7610174",
"0.7431741",
"0.7327803",
"0.7207452",
"0.7116334",
"0.70109373",
"0.6970108",
"0.68902713",
"0.68804675",
"0.6866535",
"0.6864217",
"0.6799698",
"0.6798304",
"0.6785278",
"0.6759273",
"0.6687837",
"0.6679585",
"0.6609653",
"0.65738493",
"0.64952594"... | 0.5987139 | 53 |
Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. See Also char.istitle | def aT8X(YKHO):
return aT8X(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BNxy(n294, DkWm):\n sWPF = False\n kG28 = False\n iter = QZIF.ItemIterator(DkWm._node)\n for oeNL in range(0, DkWm._node.length()):\n Npgh = iter.nextchar()\n if Npgh.isupper():\n if kG28:\n return n294.w_False\n kG28 = True\n sWPF = Tru... | [
"0.70674455",
"0.6625902",
"0.6595639",
"0.6529429",
"0.6511004",
"0.64965606",
"0.64965606",
"0.648749",
"0.6479723",
"0.6438498",
"0.6361878",
"0.6269496",
"0.6217127",
"0.6215273",
"0.61611027",
"0.6127161",
"0.61244214",
"0.61240447",
"0.61200106",
"0.6112698",
"0.6106873... | 0.5419513 | 99 |
Return an array with the elements of `self` leftjustified in a string of length `width`. See Also char.ljust | def HWiO(YKHO, TVTK, BY31=' '):
return MF4b(HWiO(YKHO, TVTK, BY31)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HWiO(jzdc, TVTK, BY31=' '):\n rihc = XTiz.asarray(jzdc)\n gkdA = XTiz.asarray(TVTK)\n zNig = int(XTiz.max(gkdA.flat))\n if XTiz.issubdtype(rihc.dtype, XTiz.bytes_):\n BY31 = Ck8V(BY31)\n return BkRE(rihc, type(rihc.dtype)(zNig), 'ljust', (gkdA, BY31))",
"def C3tM(YKHO, TVTK, BY31=' '):\... | [
"0.72176135",
"0.7098168",
"0.6750606",
"0.66644454",
"0.6612451",
"0.6596697",
"0.6327994",
"0.6303161",
"0.62641084",
"0.6258107",
"0.6242285",
"0.6109158",
"0.603986",
"0.6039585",
"0.6028544",
"0.6023879",
"0.5992693",
"0.59696305",
"0.5965873",
"0.595173",
"0.5920457",
... | 0.7976274 | 0 |
For each element in `self`, return a copy of the string with all occurrences of substring `old` replaced by `new`. See Also char.replace | def qx_G(YKHO, gv2B, BdN0, UHFx=None):
return MF4b(qx_G(YKHO, gv2B, BdN0, UHFx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iCQO(gv2B, BdN0, KCHu):\n KCHu = KCHu.split()\n KCHu = ' '.join(KCHu)\n return BdN0.join(KCHu.split(gv2B))",
"def iCQO(gv2B, BdN0, KCHu):\n if gv2B.isspace():\n gv2B = None\n return BdN0.join(KCHu.split(gv2B))",
"def qx_G(YKHO, gv2B, BdN0) -> FgBH:\n pass",
"def Svsz(KCHu, gv2B, ... | [
"0.7140363",
"0.6693934",
"0.658641",
"0.65489835",
"0.64956796",
"0.64662486",
"0.6331115",
"0.6275569",
"0.6233054",
"0.60994416",
"0.5980552",
"0.5938535",
"0.59136426",
"0.5887986",
"0.5868637",
"0.5843665",
"0.5819143",
"0.5817038",
"0.57622373",
"0.5743864",
"0.5705023"... | 0.5385032 | 33 |
Return an array with the elements of `self` rightjustified in a string of length `width`. See Also char.rjust | def C3tM(YKHO, TVTK, BY31=' '):
return MF4b(C3tM(YKHO, TVTK, BY31)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HWiO(YKHO, TVTK, BY31=' '):\n return MF4b(HWiO(YKHO, TVTK, BY31))",
"def C3tM(jzdc, TVTK, BY31=' '):\n rihc = XTiz.asarray(jzdc)\n gkdA = XTiz.asarray(TVTK)\n zNig = int(XTiz.max(gkdA.flat))\n if XTiz.issubdtype(rihc.dtype, XTiz.bytes_):\n BY31 = Ck8V(BY31)\n return BkRE(rihc, type(r... | [
"0.74029857",
"0.7173306",
"0.7038471",
"0.66472065",
"0.66196966",
"0.6259409",
"0.6234053",
"0.621299",
"0.59979856",
"0.5975219",
"0.5958487",
"0.59245026",
"0.58871484",
"0.5883636",
"0.5862282",
"0.58371276",
"0.581589",
"0.5814881",
"0.580915",
"0.57382166",
"0.57382166... | 0.77756715 | 0 |
Return an array with the elements of `self` converted to uppercase. See Also char.upper | def CN9P(YKHO):
return MF4b(CN9P(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXiu(YKHO):\n return MF4b(YXiu(YKHO))",
"def V53k(FiiE):\n Aofo = []\n for GDUz in FiiE:\n Aofo.append(GDUz.upper())\n return Aofo",
"def CN9P(YKHO):\n if not YKHO._upper_string:\n YKHO._upper_string = ''.join(YKHO.upper_word_list)\n return YKHO._upper_string",
"def Ayui(Y... | [
"0.7749284",
"0.6852509",
"0.67583764",
"0.657437",
"0.6479573",
"0.64703065",
"0.6420857",
"0.64024675",
"0.63715565",
"0.63638675",
"0.62712586",
"0.60145324",
"0.60024774",
"0.59689105",
"0.59485763",
"0.59357965",
"0.59317786",
"0.5884544",
"0.58455884",
"0.584461",
"0.58... | 0.7853501 | 0 |
For each element in `self`, return True if there are only numeric characters in the element. See Also char.isnumeric | def kIbd(YKHO):
return kIbd(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dece(YKHO) -> bool:\n return False",
"def SpEm(YKHO) -> bool:\n rrb5 = YKHO.app_name_no_punc()\n try:\n int(rrb5)\n return True\n except ValueError:\n pass\n RNFd = 0\n for hcXw in rrb5:\n if not hcXw.isnumeric():\n RNFd += 1\n return RNFd / len(rrb... | [
"0.6806881",
"0.67419815",
"0.6643586",
"0.66338474",
"0.663281",
"0.66325986",
"0.6598145",
"0.65546954",
"0.65250516",
"0.65207386",
"0.65206975",
"0.6515477",
"0.65025306",
"0.646047",
"0.64571553",
"0.644892",
"0.6385377",
"0.6372136",
"0.6322396",
"0.62826014",
"0.627679... | 0.7178055 | 0 |
For each element in `self`, return True if there are only decimal characters in the element. See Also char.isdecimal | def AWsl(YKHO):
return AWsl(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmLk(KCHu):\n if len(KCHu) is 0:\n return False\n for Z9rn in KCHu:\n if Z9rn not in AZwh.decimal_set:\n return False\n return True",
"def AWsl(jzdc):\n if not ow6M(jzdc):\n raise TypeError('isdecimal is only available for Unicode strings and arrays')\n return B... | [
"0.74820995",
"0.6623495",
"0.6560578",
"0.6421966",
"0.6197398",
"0.612383",
"0.6110045",
"0.6065796",
"0.5946977",
"0.5914447",
"0.59090704",
"0.59006554",
"0.58717793",
"0.579248",
"0.5771743",
"0.57602406",
"0.5719818",
"0.5675546",
"0.5636648",
"0.5629216",
"0.5617922",
... | 0.7213087 | 1 |
Test that SRBs move the craft, and run out of fuel. | def mzBG(YKHO):
with s2c9('tests/habitat.json') as I56G:
lGE9 = 1
n2Q1 = 5
I56G.handle_requests([BJsk.Request(ident=BJsk.Request.IGNITE_SRBS)], requested_t=lGE9)
RqgG = I56G.get_state(lGE9)
lCOu = I56G.get_state(n2Q1)
YKHO.assertAlmostEqual(RqgG[0].heading, 0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EmpD(YKHO):\n kYGz = iBIi.Board(YKHO.small_ter)\n yKcO = oyIN.array((0, 1), dtype='int')\n LEev = Tv7F.Knight(kYGz, yKcO)\n NcNb = 1\n sSN_, IOzI = LEev.validate_move(NcNb)\n YKHO.assertTrue(IOzI)\n YKHO.assertEqual(sSN_, 1)\n yKcO = oyIN.array((5, 4), dtype='int')\n LEev = Tv7F.Knig... | [
"0.67601323",
"0.6623755",
"0.65073687",
"0.64953923",
"0.649527",
"0.64837956",
"0.6453559",
"0.6399947",
"0.63883835",
"0.637876",
"0.63641274",
"0.63507104",
"0.63409126",
"0.6315346",
"0.6220188",
"0.62106204",
"0.6199223",
"0.6174865",
"0.61497515",
"0.6146699",
"0.61451... | 0.5743264 | 85 |
Add data vector `X[i]` to component `k`. If `k` is `K`, then a new component is added. No checks are performed to make sure that `X[i]` is not already assigned to another component. | def hlZU(YKHO, YRbF, G1Hx):
if G1Hx == YKHO.K:
YKHO.K += 1
YKHO.m_N_numerators[G1Hx, :] = YKHO.prior.k_0 * YKHO.prior.m_0
YKHO.S_N_partials[G1Hx, :] = YKHO.prior.S_0 + YKHO.prior.k_0 * YKHO._cached_prior_square_m_0
YKHO.m_N_numerators[G1Hx, :] += YKHO.X[YRbF]
YKHO.S_N_partials[G1Hx, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn6P(YKHO, JB7U):\n YKHO.mem_x[YKHO.mem_idx, :] = JB7U",
"def qsPF(YKHO, G1Hx: str, nPrm) -> None:\n if G1Hx not in YKHO.fp.keys():\n raise ValueError('No dataset %s in internal data' % str(G1Hx))\n if YKHO.data_ptr[G1Hx] > YKHO.size[G1Hx]:\n raise ValueError('Maximum index reached (%d... | [
"0.6305053",
"0.5841529",
"0.5568043",
"0.55220383",
"0.5491832",
"0.5472362",
"0.543726",
"0.54337496",
"0.5401342",
"0.5378995",
"0.5355455",
"0.53222597",
"0.53222597",
"0.53222597",
"0.531311",
"0.52850926",
"0.5284119",
"0.5268935",
"0.52541417",
"0.5247794",
"0.5239126"... | 0.6661089 | 0 |
Return the value of the log of the product of the univariate Student's t PDFs at `X[i]`. | def JLIf(YKHO, YRbF, yGTL, WXTi, QWZc, Ty9i):
RA_F = YKHO.X[YRbF, :] - yGTL
return YKHO.D * (YKHO._cached_gammaln_by_2[Ty9i + 1] - YKHO._cached_gammaln_by_2[Ty9i] - 0.5 * YKHO._cached_log_v[Ty9i] - 0.5 * YKHO._cached_log_pi) - 0.5 * WXTi - (Ty9i + 1.0) / 2.0 * oyIN.log(1.0 + 1.0 / Ty9i * oyIN.square(RA_F) * QWZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QF3p(YKHO, EcVT) -> oyIN.ndarray:\n return YKHO.dist.logpdf(YKHO.inv_trans(EcVT))",
"def QF3p(YKHO, EcVT) -> oyIN.ndarray:\n kvIT = [oyIN.reshape(yCnv.logpdf(EcVT), [-1, 1]) for yCnv in YKHO.components]\n uYqq = oyIN.hstack(kvIT)\n Aofo = vqBa(uYqq, axis=1, b=YKHO.coefficients)\n return oyIN.a... | [
"0.73996794",
"0.72871464",
"0.71131086",
"0.71131086",
"0.70695525",
"0.7025632",
"0.69100636",
"0.68624103",
"0.65969235",
"0.65141135",
"0.64902365",
"0.6476452",
"0.64598167",
"0.6434644",
"0.64293134",
"0.63856643",
"0.63855886",
"0.63820535",
"0.6379934",
"0.6372338",
"... | 0.71608895 | 2 |
Returns a list whose elements are the separate terms in document. Something of a hack, but for the simple documents we're using, it's okay. Note that we casefold when we tokenize, i.e., we lowercase everything. | def wr3U(C13M):
NHn2 = C13M.lower().split()
n294 = ' '
return [OXAZ.strip(SIyd) for OXAZ in NHn2 if OXAZ not in n294] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vKnU(C13M):\n vexM = s_Fu(C13M)\n s2mk = w1Lp(vexM)\n NHn2 = OXCB(s2mk)\n return NHn2",
"def wr3U(C13M):\n V22M = Dhdw.word_tokenize(C13M)\n return [GIN8.lower() for GIN8 in V22M if not all((hcXw in vIwR.punctuation for hcXw in GIN8)) and GIN8 not in Dhdw.corpus.stopwords.words('english')]"... | [
"0.76705617",
"0.7257853",
"0.7257321",
"0.7238248",
"0.72243047",
"0.7107971",
"0.70512325",
"0.70141673",
"0.70008624",
"0.69705045",
"0.6957619",
"0.69490683",
"0.69383264",
"0.68765837",
"0.68337864",
"0.6739288",
"0.67356414",
"0.669961",
"0.6683654",
"0.6679387",
"0.664... | 0.77325976 | 0 |
Iterates over nonoverlapping list of 'n' consecutive elements (python equivalent of each_slices). The last element might be smaller. | def caQu(OxJJ, exwG, zt7C=False, KHPh=None):
jvSB = []
for jzdc in OxJJ:
jvSB.append(jzdc)
if len(jvSB) == exwG:
yield jvSB
jvSB = []
if jvSB:
if zt7C:
jvSB += [KHPh] * (exwG - len(jvSB))
yield jvSB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y8pi(aWuw: Sequence[T], exwG: int) -> x1iM[Kt_s]:\n for YRbF in range(len(aWuw) - (exwG - 1)):\n yield aWuw[YRbF:YRbF + exwG]",
"def eHxA(vC9B, exwG):\n for YRbF in range(0, exwG):\n yield vC9B[YRbF::exwG]",
"def eHxA(vC9B: List, exwG: int):\n for YRbF in range(0, len(vC9B), exwG):\n... | [
"0.73084015",
"0.7209659",
"0.715213",
"0.715213",
"0.71037626",
"0.70655525",
"0.70639044",
"0.7059356",
"0.7053247",
"0.70493114",
"0.7047632",
"0.70423347",
"0.7039255",
"0.7039255",
"0.70105356",
"0.6986326",
"0.6981029",
"0.6980161",
"0.6980161",
"0.6980028",
"0.69751346... | 0.7619225 | 0 |
Sets the web_log_id of this WebLogItem. | def MbbA(YKHO, MbbA):
YKHO._web_log_id = MbbA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYeM(YKHO, tYeM):\n YKHO._web_id = tYeM",
"def ERL_(YKHO, ERL_):\n YKHO._web_site_id = ERL_",
"def p_lF(YKHO, p_lF):\n YKHO._web_section_id = p_lF",
"def Ppc8(YKHO, Ppc8):\n YKHO._item_web_url = Ppc8",
"def COe8(YKHO, COe8):\n YKHO._log_metric_id = COe8",
"def nS60(YKHO, nS60):\n YK... | [
"0.72772175",
"0.6780549",
"0.5887708",
"0.5755763",
"0.5576034",
"0.5507558",
"0.5507558",
"0.535682",
"0.53004086",
"0.505792",
"0.4921419",
"0.4921419",
"0.4919863",
"0.49113163",
"0.48896873",
"0.4817204",
"0.47949544",
"0.4771764",
"0.47317952",
"0.46474653",
"0.46381494... | 0.87703234 | 0 |
Sets the machine_name of this WebLogItem. | def oSzM(YKHO, oSzM):
if oSzM is not None and len(oSzM) > 100:
raise ValueError('Invalid value for `machine_name`, length must be less than or equal to `100`')
YKHO._machine_name = oSzM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBrM(YKHO, mWFP):\n if type(mWFP) != str:\n return None\n YKHO.description.setName(mWFP)",
"def oSzM(YKHO) -> str:\n return qe4Y.get(YKHO, 'machine_name')",
"def oSzM(YKHO) -> str:\n return qe4Y.get(YKHO, 'machine_name')",
"def oSzM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(... | [
"0.7471434",
"0.6228557",
"0.6228557",
"0.5828472",
"0.5828472",
"0.58051664",
"0.58051664",
"0.574799",
"0.5739208",
"0.5655175",
"0.564087",
"0.5431581",
"0.5396255",
"0.53213334",
"0.5317432",
"0.52834547",
"0.52506065",
"0.5245235",
"0.52264035",
"0.52010256",
"0.51988864... | 0.74086404 | 1 |
Sets the entry_id of this WebLogItem. | def QWLk(YKHO, QWLk):
YKHO._entry_id = QWLk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tl1c(YKHO, Tl1c):\n YKHO._thread_id = Tl1c",
"def Tl1c(YKHO, Tl1c):\n YKHO._thread_id = Tl1c",
"def Tl1c(YKHO, Tl1c):\n YKHO._thread_id = Tl1c",
"def Fnvt(YKHO, bTKY):\n assert YKHO.entry is None, 'An entry was already set for this DirectEntryScroll element'\n YKHO.entry = bTKY\n YKHO.e... | [
"0.60288566",
"0.60288566",
"0.60288566",
"0.58862317",
"0.58845866",
"0.5864405",
"0.5833399",
"0.57429564",
"0.57429564",
"0.5613247",
"0.56121963",
"0.55841726",
"0.5542967",
"0.5542967",
"0.55245876",
"0.5493822",
"0.5464202",
"0.5444797",
"0.5435358",
"0.54323107",
"0.54... | 0.83543396 | 1 |
Sets the active_users of this WebLogItem. | def iOuf(YKHO, iOuf):
YKHO._active_users = iOuf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DW23(YKHO, DW23):\n YKHO._users = DW23",
"def DW23(YKHO, DW23):\n YKHO._users = DW23",
"def DW23(YKHO, DW23):\n YKHO._users = DW23",
"def iOuf(YKHO, *qIxc, **B2fa):\n return YKHO._get('ActiveUsers', *qIxc, **B2fa)",
"def p7Dv(YKHO, p7Dv):\n YKHO._logged_in_users = p7Dv",
"def ddco(YKHO... | [
"0.616837",
"0.616837",
"0.616837",
"0.60524994",
"0.59288585",
"0.58198667",
"0.5634061",
"0.5630524",
"0.55776834",
"0.55689317",
"0.5467311",
"0.5465469",
"0.5433245",
"0.54018503",
"0.53679186",
"0.5351684",
"0.5351684",
"0.5351684",
"0.5351684",
"0.5349999",
"0.5324025",... | 0.8045006 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, bPw6):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Supplies a basic Flask app with a graphene schema mounted inside the flasql view at /graphql. | def P4t4():
P4t4 = LUif(schema=aO5t())
with P4t4.test_request_context():
yield P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKyO(GPtr=vPjB):\n P4t4 = L2w0(__name__, template_folder='templates', static_folder='static')\n P4t4.config.from_object(GPtr)\n ADkh(P4t4)\n TfOc(P4t4)\n\n @P4t4.route('/', methods=['GET'])\n def d6pt():\n \"\"\"Returns the applications index.\"\"\"\n return 'welcome to sqlalche... | [
"0.621361",
"0.6202036",
"0.61454356",
"0.61091685",
"0.60560554",
"0.6045897",
"0.5990806",
"0.5989298",
"0.59627146",
"0.59084016",
"0.5867595",
"0.5822282",
"0.580273",
"0.58010894",
"0.5788795",
"0.57814556",
"0.5764773",
"0.5756709",
"0.57322145",
"0.57193893",
"0.571815... | 0.61777014 | 2 |
Returns the width of the media player | def TiRu(YKHO):
QpfX = lgcA(YKHO.context)
return QpfX.getWidth() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAD1(YKHO):\n return YKHO._el._parent.execute_script('return arguments[0].videoWidth', YKHO._el)",
"def eAD1(YKHO):\n return YKHO._el._parent.execute_script('return arguments[0].videoWidth', YKHO._el)",
"def Mpxt(YKHO):\n return YKHO._video_playback_width",
"def V8C_(YKHO):\n return YKHO.widt... | [
"0.813535",
"0.813535",
"0.79287934",
"0.7513053",
"0.7396114",
"0.7338204",
"0.7319346",
"0.7295444",
"0.7295444",
"0.7295444",
"0.72888047",
"0.72852385",
"0.72852385",
"0.72852385",
"0.72852385",
"0.7273083",
"0.7205518",
"0.7187752",
"0.71673703",
"0.71673703",
"0.7149738... | 0.832979 | 0 |
Returns the height of the media player | def oSXh(YKHO):
QpfX = lgcA(YKHO.context)
if QpfX.getAudiomode():
return 24
else:
return QpfX.getHeight() + 24 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKcL(YKHO):\n return YKHO._el._parent.execute_script('return arguments[0].videoHeight', YKHO._el)",
"def yKcL(YKHO):\n return YKHO._el._parent.execute_script('return arguments[0].videoHeight', YKHO._el)",
"def Fw8w(YKHO):\n return YKHO._video_playback_height",
"def xglF(YKHO):\n if YKHO.heigh... | [
"0.8335271",
"0.8335271",
"0.8015489",
"0.7978224",
"0.74621356",
"0.74273276",
"0.73141116",
"0.7269054",
"0.7240647",
"0.72005314",
"0.71803",
"0.71556836",
"0.71556836",
"0.71556836",
"0.7139502",
"0.7139502",
"0.7139502",
"0.7139502",
"0.71201456",
"0.71201456",
"0.704636... | 0.8112369 | 2 |
Unroll a batch of sequences, i.e. flatten batch and sequence dimension. (Used for loss computation) | def eWpN(YKHO, Wc9F):
ROpF = Wc9F.shape
if len(ROpF) == 3:
return Wc9F.view(ROpF[0] * ROpF[1], ROpF[2])
elif len(ROpF) == 2:
return Wc9F.view(ROpF[0] * ROpF[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBFZ(VmPb, YhDe, u54L, g4y1, DOAf=None, LAOT='NTC'):\n VmPb.reset()\n g4y1, bGrB, vuvg, Ep8u = d5fW(u54L, g4y1, LAOT, False)\n DOAf = N4qY(VmPb, vuvg, DOAf, g4y1, Ep8u)\n wspz = DOAf\n o4Jx = []\n for YRbF in range(u54L):\n hlel, wspz = YhDe.record(0, VmPb, g4y1[YRbF], wspz).split(2)\n... | [
"0.6740898",
"0.65447414",
"0.6513062",
"0.635172",
"0.635172",
"0.62510717",
"0.62439674",
"0.62399924",
"0.62311876",
"0.62060153",
"0.61889553",
"0.6172056",
"0.6158164",
"0.61539364",
"0.6123136",
"0.6115137",
"0.60707927",
"0.6044811",
"0.6044811",
"0.60425323",
"0.60014... | 0.7917433 | 0 |
Save checkpoint for the specified epoch number. If is_best is True, also save current checkpoint as 'model_best.pth'. | def t4X7(YKHO, qtWj, xWf0=False):
JACg = type(YKHO.model).__name__
QTBn = {'arch': JACg, 'epoch': qtWj, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'config': YKHO.config}
Ux0P = str(YKHO.checkpoint_dir / 'checkpoint-epoch{}.pth'.format(qtWj))
ht2j.save(QTBn, Ux0P)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRyE(QTBn, xWf0, qtWj, qIxc, Ux0P='checkpoint.pth'):\n if not Hy7s.path.exists(qIxc.save_folder):\n Hy7s.makedirs(qIxc.save_folder)\n Ux0P = qIxc.save_folder + str(qtWj) + '_' + Ux0P\n ht2j.save(QTBn, Ux0P)\n if xWf0:\n RDuA.copyfile(Ux0P, qIxc.save_folder + 'model_best.pth')",
"def... | [
"0.8539403",
"0.84266627",
"0.8362118",
"0.8283222",
"0.8244089",
"0.82274926",
"0.8217209",
"0.80957633",
"0.8085324",
"0.8037687",
"0.800268",
"0.7965901",
"0.7947712",
"0.79226893",
"0.79162663",
"0.7911913",
"0.78826475",
"0.7874946",
"0.7864674",
"0.7786618",
"0.77285564... | 0.8834462 | 0 |
Do not return anything, modify rooms inplace instead. | def awDp(YKHO, DFSo: List[List[int]]) -> None:
gQVb = [[0, 1], [1, 0], [0, -1], [-1, 0]]
zNig = [len(DFSo), len(DFSo[0])]
vexM = []
for YRbF in range(len(DFSo)):
for r845 in range(len(DFSo[YRbF])):
if DFSo[YRbF][r845] == 0:
vexM.append([YRbF, r845])
while len(vexM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFSo(YKHO, DFSo):\n YKHO._rooms = DFSo",
"def eEEi(YKHO):\n DFSo = YKHO.model.get_all_rooms()\n for abiq in DFSo:\n YKHO._add_room(abiq)",
"def DFSo(*qIxc):\n s_GD.system_message('\\n'.join(DFSo()))",
"def pUc1(YKHO):\n pass",
"def a12t(YKHO, gv2B: str, BdN0: str):\n for abiq i... | [
"0.67922723",
"0.6150443",
"0.5985418",
"0.59520423",
"0.5938853",
"0.5910455",
"0.5802791",
"0.5788961",
"0.57677865",
"0.56960684",
"0.56584203",
"0.56518275",
"0.5649922",
"0.56375164",
"0.5580176",
"0.5570199",
"0.5540112",
"0.5534412",
"0.5534412",
"0.5529608",
"0.549605... | 0.53502834 | 36 |
Return dictionary of bbox | def s_Sm(WKvO, LVAh, NRcB=0.0):
return dict(left=oyIN.min(WKvO), right=oyIN.max(WKvO), bottom=oyIN.min(LVAh), top=oyIN.max(LVAh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mdqk(YKHO):\n pass",
"def cviu(YKHO):\n return YKHO._bbox",
"def cviu(YKHO):\n return YKHO.get_bounding_box()",
"def cviu(YKHO):\n cviu = YKHO.get_bounding_box()\n if cviu is None:\n cviu = ((0, 0), (0, 0))\n return oyIN.array(cviu)",
"def qx0C():\n UorC = {'gt_bboxes': 'gt_... | [
"0.76412326",
"0.7323698",
"0.7322006",
"0.72095543",
"0.7132405",
"0.71319735",
"0.7007611",
"0.70063585",
"0.70063585",
"0.69595045",
"0.69220793",
"0.6917276",
"0.69009686",
"0.6869985",
"0.68652064",
"0.68622583",
"0.6846119",
"0.6809936",
"0.68038726",
"0.6795248",
"0.67... | 0.7554435 | 1 |
Extract the smallest bounding box from a mask | def A5Vo(ruSK):
WKvO, LVAh, epBp = oyIN.where(ruSK > 0)
oM1k = oyIN.array([WKvO.min(), LVAh.min(), epBp.min()])
zNig = oyIN.array([WKvO.max() + 1, LVAh.max() + 1, epBp.max() + 1])
return (oM1k, zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5Vo(ruSK):\n WKvO, LVAh, epBp = oyIN.where(ruSK > 10)\n oM1k = oyIN.array([WKvO.min(), LVAh.min(), epBp.min()])\n zNig = oyIN.array([WKvO.max() + 1, LVAh.max() + 1, epBp.max() + 1])\n return (oM1k, zNig)",
"def iPL7(ZHfW):\n fUYa = oyIN.where(oyIN.sum(ZHfW, axis=0) > 0)[0]\n bEXe = oyIN.wh... | [
"0.7624876",
"0.7230303",
"0.7098378",
"0.69976777",
"0.6939646",
"0.6922342",
"0.69192773",
"0.68058246",
"0.6802908",
"0.67974967",
"0.6774587",
"0.6640921",
"0.66126287",
"0.6612228",
"0.6589775",
"0.65189314",
"0.64820874",
"0.644539",
"0.64409256",
"0.6437819",
"0.642982... | 0.77130044 | 1 |
Returns a random word. | def gc3r(rw6h):
return tuKI.choice(rw6h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2WA(YKHO):\n pass",
"def uway():\n cfuW = G8sL()\n GIN8 = tuKI.choice(cfuW)\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n retur... | [
"0.88615733",
"0.8597407",
"0.85261667",
"0.85261667",
"0.85261667",
"0.84640265",
"0.8324689",
"0.8243119",
"0.8160317",
"0.8080931",
"0.803451",
"0.7998791",
"0.7992949",
"0.78472656",
"0.77283627",
"0.7725877",
"0.77045876",
"0.76605856",
"0.7627101",
"0.7570928",
"0.75480... | 0.81857026 | 10 |
Test the get request with a collection parameter | def E9LR(YKHO):
VECZ = RAUw.objects.filter(id__in=(1, 5, 10, 15))
xUwc = m8b3(entries=VECZ)
NArs = {'collection': xUwc.id}
YKHO._test_filtering(**NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tzjW(YKHO):\n pass",
"def qxEW(YKHO, MC83, YofL, QpfX):\n zVa7 = fqXr(QpfX, YofL)\n geh0 = zVa7.collection_get()\n assert 'data' in geh0\n assert 'pagination' in geh0",
"def XHH_(YKHO):\n pass",
"def A5hq(YKHO):\n geh0 = YKHO.client.get('http://localhost:8000/webapp/api/collection/')... | [
"0.7843733",
"0.7257336",
"0.718152",
"0.714491",
"0.7008334",
"0.6728784",
"0.6694924",
"0.665027",
"0.6625752",
"0.66209954",
"0.6569023",
"0.6511248",
"0.65063363",
"0.64756125",
"0.6459046",
"0.6399147",
"0.6387948",
"0.6383114",
"0.63583875",
"0.63534075",
"0.6328062",
... | 0.6770182 | 5 |
Routes opens the designated window for the user | def oimG(YKHO, mLGw):
YKHO.newWindow = on8l.Toplevel(YKHO.master)
if mLGw == 1:
YKHO.app = i0mY(YKHO.newWindow)
elif mLGw == 3:
YKHO.app = YoEF(YKHO.newWindow)
elif mLGw == 4:
YKHO.app = OxdX(YKHO.newWindow)
elif mLGw == 5:
YKHO.app = Vv3L(YKHO.newWindow)
elif mLG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JH_p(YKHO):\n YKHO._window = ao30(YKHO, MvBY.RESTAL)",
"def IY3P(YKHO):\n tO9_ = YKHO.name + ' is open. Come on in!'\n print('\\n' + tO9_)",
"def nUHY(YKHO, KnxT):\n return",
"def theH(YKHO):\n bD7m = 'http://kfc.matrix.io'\n YKHO.browser.openurl(bD7m)\n YKHO.OnlyDisplay(f'start {bD7... | [
"0.7549119",
"0.62864166",
"0.62739664",
"0.6272578",
"0.6265829",
"0.62173176",
"0.62087905",
"0.61563367",
"0.6099234",
"0.60819525",
"0.60745025",
"0.6071393",
"0.60440695",
"0.6018352",
"0.6006456",
"0.6000093",
"0.59931594",
"0.5968254",
"0.5928682",
"0.5903403",
"0.5882... | 0.6421511 | 1 |
Send a message to Slack. If self.slack_webhook is not set, the message is only logged in the logger with loglevel INFO. If self.slack_channel is not set, the default channel of the webhook is used. | def N2mx(YKHO, Ol8d):
RKD7.info(f'MC: {Ol8d}')
if not hasattr(YKHO, 'slack_webhook'):
RKD7.info(f'MC: Not logging to slack because slack_webhook is not defined.')
return
try:
pB3N = {'text': Ol8d}
if hasattr(YKHO, 'slack_channel'):
pB3N['channel'] = YKHO.slack_cha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sczE(YKHO, Ol8d):\n YKHO.slack_client.api_call('chat.postMessage', channel=YKHO.slack_channel, text=Ol8d, username=YKHO.username, icon_emoji=YKHO.slack_icon_emoji)\n print('Slack Notification sent')",
"def WdaX(YKHO, Ol8d, YwkQ=None):\n if YwkQ is None:\n YwkQ = YKHO.default_channel\n YKHO... | [
"0.7703384",
"0.72871554",
"0.7159838",
"0.6824066",
"0.6756946",
"0.6705088",
"0.63765514",
"0.63729423",
"0.63176805",
"0.6258126",
"0.62530535",
"0.6237889",
"0.6206803",
"0.61999",
"0.6078251",
"0.60490096",
"0.59679675",
"0.5954792",
"0.59319335",
"0.5898765",
"0.5859944... | 0.7442679 | 1 |
How many nodes can be painted on a tree, assuming that no adjacent nodes can be colored and the root's state is painted (true or false) | def Dcqr(tk5Y, Nt_M):
if wyyA[tk5Y][Nt_M] != -1:
return wyyA[tk5Y][Nt_M]
if Nt_M:
za53 = [Dcqr(P6bq, painted=False) for P6bq in afYC[tk5Y]]
wyyA[tk5Y][Nt_M] = 1 + sum(za53)
else:
za53 = [max(Dcqr(P6bq, True), Dcqr(P6bq, False)) for P6bq in afYC[tk5Y]]
wyyA[tk5Y][Nt_M]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kytq(YKHO):\n if YKHO.is_empty():\n return 0\n elif YKHO.is_leaf():\n return 1\n elif YKHO.get_left():\n if YKHO.get_right():\n return 1 + YKHO.get_left().count_nodes() + YKHO.get_right().count_nodes()\n else:\n return 1 + YKHO.get_left().count_nodes()... | [
"0.769694",
"0.7479256",
"0.7346389",
"0.72400683",
"0.71986175",
"0.7108546",
"0.7058728",
"0.7036648",
"0.70276934",
"0.702475",
"0.6899905",
"0.689268",
"0.68744963",
"0.6844234",
"0.68255436",
"0.6807381",
"0.68009776",
"0.6793788",
"0.6774721",
"0.67479014",
"0.66995245"... | 0.0 | -1 |
takes list as a input and returns the copy of the list using list comprehension | def zzuG(vC9B: List[Any]) -> x1iM[ImMB]:
return [ZfUD for ZfUD in vC9B] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mEcU(list):\n cRPd = []\n for ZfUD in list:\n cRPd.append(ZfUD)\n return cRPd",
"def Iwtg(bCES: list) -> list:\n return [ZfUD for XuXy in bCES for ZfUD in XuXy]",
"def j6NS(mBYt):\n return [ZfUD for ZfUD in mBYt if ZfUD]",
"def COne(YKHO, list):\n jth9 = list.copy()\n for YRbF... | [
"0.7411996",
"0.72238374",
"0.7077029",
"0.707486",
"0.6986126",
"0.6915285",
"0.6892424",
"0.66372645",
"0.6634844",
"0.66341704",
"0.6626084",
"0.65542775",
"0.6505839",
"0.6495717",
"0.64610016",
"0.64485997",
"0.64353365",
"0.64019006",
"0.6385644",
"0.6347571",
"0.634102... | 0.7829286 | 0 |
r"""Split channels (dimension 2) into multiple heads, becomes dimension 1). Must ensure ``x.shape[1]`` can be divided by num_heads. | def Hiht(YKHO, WKvO: torch.Tensor) -> ht2j.Tensor:
rb7a = WKvO.size(-1)
lPV6 = ht2j.reshape(WKvO, (WKvO.size(0), WKvO.size(1), YKHO._hparams.num_heads, rb7a // YKHO._hparams.num_heads))
return lPV6.permute((0, 2, 1, 3)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Plaj(WKvO, hC9O):\n Rv0k = WKvO.size()\n WKvO = WKvO.view(Rv0k[0], Rv0k[1], hC9O, Rv0k[2] // hC9O)\n kJiB = ht2j.chunk(WKvO, hC9O, 2)\n WKvO = []\n for YRbF in range(hC9O):\n WKvO.append(ht2j.squeeze(kJiB[YRbF], 2))\n return WKvO",
"def Hiht(YKHO, WKvO, gMeC):\n if gMeC is False:\... | [
"0.82614386",
"0.81451607",
"0.78986675",
"0.78886116",
"0.7718236",
"0.76721853",
"0.76210016",
"0.76210016",
"0.76210016",
"0.76210016",
"0.76210016",
"0.76210016",
"0.76210016",
"0.7608375",
"0.7540727",
"0.726374",
"0.67482615",
"0.6072764",
"0.602509",
"0.60143137",
"0.5... | 0.8438572 | 0 |
Add a scalar summary to both TF events file and StatHolder. | def APlQ(YKHO, mWFP, wEf2):
YKHO.add_summary(yUup(mWFP, wEf2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcfa(YKHO, AATk):\n mWFP = AATk.name.replace(':', '_')\n p5Xx = ZylS.summary.scalar('scalar/train/' + mWFP, AATk)\n YKHO._train_summaries.append(p5Xx)\n Kbrw = ZylS.summary.scalar('scalar/validation/' + mWFP, AATk)\n YKHO._val_summaries.append(Kbrw)",
"def Ol3k(YKHO, QxIo):\n if isinstance(... | [
"0.7023675",
"0.6998757",
"0.68300205",
"0.68300205",
"0.68300205",
"0.6802911",
"0.6795887",
"0.67553234",
"0.6754024",
"0.6735733",
"0.66640085",
"0.66449887",
"0.6635212",
"0.65294194",
"0.6424656",
"0.6424656",
"0.6422242",
"0.63821405",
"0.63566846",
"0.6282443",
"0.6255... | 0.6724381 | 10 |
cumsum takes in a list and returns a list integers from the first list each added to the number before it | def _3JK(yv6U):
for YRbF in range(1, len(yv6U)):
yv6U[YRbF] = yv6U[YRbF - 1] + yv6U[YRbF]
return yv6U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n if YRbF == 0:\n S06t.append(qgK3[YRbF])\n else:\n S06t.append(S06t[YRbF - 1] + qgK3[YRbF])\n return S06t",
"def _3JK(aPd6):\n for YRbF in range(1, len(aPd6)):\n aPd6[YRbF] += aPd6[YRbF - 1]\... | [
"0.8179812",
"0.8056273",
"0.79615253",
"0.79316074",
"0.7885108",
"0.7679509",
"0.74078083",
"0.7228586",
"0.6938837",
"0.6938837",
"0.6938837",
"0.69087696",
"0.6672079",
"0.6665657",
"0.6612476",
"0.6594035",
"0.6500159",
"0.6470118",
"0.6452226",
"0.6396911",
"0.6356356",... | 0.8410762 | 0 |
Creates a new vis_list and initialises all to zero | def AZjC(mADQ):
def sbx9(XmRU):
if XmRU is not None:
fPuh = aPyz(XmRU, zero=True)
return fPuh
else:
return None
Aofo = [wKNk.execute(sbx9, pure=True, nout=1)(Ty9i) for Ty9i in mADQ]
return wKNk.optimize(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.container = [[-1] * 1000 for bGrB in range(1000)]",
"def FIMM(YKHO):\n YKHO.vertList = {}\n YKHO.vertCount = 0",
"def TmT3(YKHO, exwG):\n for Q6kx in YKHO.list_empty_nodes:\n Q6kx.status = 0\n Q6kx.distance_from_start_point = exwG + 1\n Q6kx.pere = None",... | [
"0.65216297",
"0.5827182",
"0.58258694",
"0.57595444",
"0.57441336",
"0.5722497",
"0.57022184",
"0.5698555",
"0.5682786",
"0.56825805",
"0.56667554",
"0.5640081",
"0.55900246",
"0.5550005",
"0.5549612",
"0.5542487",
"0.55327433",
"0.55327433",
"0.55327433",
"0.55327433",
"0.5... | 0.5389164 | 41 |
Initialise vis to zero | def h0x4(mADQ, vGOH):
def eAhM(XmRU, eTqT):
if XmRU is not None and eTqT is not None:
assert XmRU.vis.shape == eTqT.vis.shape
yvk1 = aPyz(XmRU)
yvk1.data['vis'][...] -= eTqT.data['vis'][...]
return yvk1
else:
return None
Aofo = [wKNk.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tZV7(YKHO):\n YKHO.piDD = {'[0]': None}\n YKHO.top_node = '[0]'\n YKHO.dim = 0",
"def SiRx(YKHO):\n YKHO.vrp = oyIN.matrix([0.5, 0.5, 1])\n YKHO.vpn = oyIN.matrix([0, 0, -1])\n YKHO.vup = oyIN.matrix([0, 1, 0])\n YKHO.u = oyIN.matrix([-1, 0, 0])\n YKHO.extent = [1.0, 1.0, 1.0]\n YK... | [
"0.65430075",
"0.64423335",
"0.62854856",
"0.62633216",
"0.6253321",
"0.61240476",
"0.61044306",
"0.6034534",
"0.6009091",
"0.5985747",
"0.5944535",
"0.5922485",
"0.59104985",
"0.58969736",
"0.587928",
"0.587928",
"0.5831363",
"0.5830789",
"0.5817454",
"0.5812973",
"0.5804873... | 0.0 | -1 |
Return the indices to access the main diagonal of an array. This returns a tuple of indices that can be used to access the main diagonal of an array `a` with ``a.ndim >= 2`` dimensions and shape (n, n, ..., n). For ``a.ndim = 2`` this is the usual diagonal, for ``a.ndim > 2`` this is the set of indices to access ``a[i,... | def VlJ8(exwG, qC1Y=2):
if not U6YZ():
return rdUt(exwG, qC1Y)
return iexu(XTiz.diag_indices, exwG, qC1Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def goBz(ezWE):\n if not ezWE.ndim >= 2:\n raise ValueError('input array must be at least 2-d')\n if not oyIN.alltrue(oyIN.diff(ezWE.shape) == 0):\n raise ValueError('All dimensions of input must be of equal length')\n return VlJ8(ezWE.shape[0], ezWE.ndim)",
"def VlJ8(exwG, qC1Y=2):\n o... | [
"0.7509054",
"0.7201259",
"0.6723513",
"0.6711043",
"0.6544171",
"0.6404387",
"0.6400527",
"0.6351556",
"0.60011303",
"0.59391266",
"0.58532995",
"0.5847233",
"0.57977563",
"0.5768509",
"0.57478285",
"0.5586564",
"0.55724573",
"0.5544645",
"0.5503688",
"0.54895085",
"0.546117... | 0.72843957 | 1 |
Fill the main diagonal of the given array of any dimensionality. | def r0nM(o4D3, wEf2, GDMi=False):
L6Ml = cbQ7.get_dpnp_descriptor(o4D3, copy_when_strides=False, copy_when_nondefault_queue=False)
if L6Ml:
if not cbQ7.isscalar(wEf2):
pass
elif GDMi:
pass
else:
return L2qn(L6Ml, wEf2)
return iexu(XTiz.fill_diagona... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r0nM(jzdc, wEf2):\n if jzdc.ndim < 2:\n raise ValueError('array must be at least 2-d')\n if jzdc.ndim == 2:\n YPaw = jzdc.shape[1] + 1\n else:\n if not oyIN.alltrue(oyIN.diff(jzdc.shape) == 0):\n raise ValueError('All dimensions of input must be of equal length')\n ... | [
"0.72042817",
"0.70015347",
"0.6184623",
"0.61286557",
"0.6121873",
"0.6121106",
"0.59764576",
"0.5896961",
"0.5860227",
"0.58451974",
"0.57844436",
"0.575592",
"0.5752201",
"0.5733814",
"0.5704479",
"0.5679554",
"0.56731564",
"0.5656351",
"0.5649483",
"0.56168133",
"0.561372... | 0.6312966 | 2 |
Return the indices for the lowertriangle of an (n, m) array. | def bJLh(exwG, G1Hx=0, r8hN=None):
if not U6YZ():
if isinstance(exwG, int) and isinstance(G1Hx, int) and (isinstance(r8hN, int) or r8hN is None):
return UY4q(exwG, G1Hx, r8hN)
return iexu(XTiz.tril_indices, exwG, G1Hx, r8hN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0jc(jOFs):\n for fvDH in range(jOFs):\n for rdlD in range(fvDH, jOFs):\n yield (rdlD, fvDH)",
"def iM4o(SppC):\n SppC = MF4b(SppC)\n qnkS = []\n for DT55 in range(SppC.shape[1]):\n for RXWL in range(SppC.shape[0]):\n if DT55 < RXWL:\n qnkS.appen... | [
"0.6632413",
"0.651317",
"0.61999875",
"0.6149673",
"0.6054602",
"0.6026888",
"0.6000603",
"0.59543365",
"0.5811206",
"0.58066785",
"0.5784669",
"0.5767507",
"0.57208514",
"0.57076603",
"0.56896436",
"0.56888974",
"0.56660885",
"0.559562",
"0.55241835",
"0.54831445",
"0.54570... | 0.574315 | 12 |
Return the indices for the lowertriangle of arr. See `tril_indices` for full details. | def ESKN(o4D3, G1Hx=0):
L6Ml = cbQ7.get_dpnp_descriptor(o4D3, copy_when_nondefault_queue=False)
if L6Ml:
if isinstance(G1Hx, int):
return MCZn(L6Ml, G1Hx)
return iexu(XTiz.tril_indices_from, o4D3, G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESKN(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input array must be 2-d and square')\n return bJLh(ezWE.shape[0], G1Hx)",
"def ESKN(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input a... | [
"0.7034582",
"0.70254475",
"0.6488875",
"0.64651436",
"0.6248233",
"0.581059",
"0.5507612",
"0.5407239",
"0.53326523",
"0.52916294",
"0.52178437",
"0.52091914",
"0.51940763",
"0.51806957",
"0.5129162",
"0.5123828",
"0.5119884",
"0.5080559",
"0.5043861",
"0.50393784",
"0.50261... | 0.47562775 | 42 |
Return the indices for the lowertriangle of arr. See `tril_indices` for full details. | def GU2Y(o4D3, G1Hx=0):
L6Ml = cbQ7.get_dpnp_descriptor(o4D3, copy_when_nondefault_queue=False)
if L6Ml:
if isinstance(G1Hx, int):
return mwrW(L6Ml, G1Hx)
return iexu(XTiz.triu_indices_from, o4D3, G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESKN(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input array must be 2-d and square')\n return bJLh(ezWE.shape[0], G1Hx)",
"def ESKN(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input a... | [
"0.70347923",
"0.7025479",
"0.6488559",
"0.64649844",
"0.6248358",
"0.5810832",
"0.55061513",
"0.5406894",
"0.5333588",
"0.5292096",
"0.5217424",
"0.5210979",
"0.5193901",
"0.51796436",
"0.5128355",
"0.51235986",
"0.5119533",
"0.50797623",
"0.5043177",
"0.50401634",
"0.502484... | 0.4857674 | 32 |
Indent a piece of text >>> indent('foo', 2) ' foo' | def MnRD(FUjE, jEzb):
MnRD = ' ' * jEzb
return '\n'.join((MnRD + WKvO for WKvO in FUjE.splitlines())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnRD(l5Ny, c31X, TVTK=None, qK9g=' '):\n l5Ny = qK9g * c31X + l5Ny\n u54L = len(l5Ny)\n if TVTK is None or u54L >= TVTK:\n return l5Ny\n else:\n return l5Ny + qK9g * (TVTK - u54L)",
"def VgEc(YKHO):\n YKHO.assertEqual(MnRD('foo', 3), ' foo')",
"def MnRD(l5Ny, exwG=4):\n if... | [
"0.762066",
"0.75938344",
"0.75596863",
"0.75522655",
"0.75247884",
"0.7410682",
"0.7383349",
"0.7252793",
"0.7182894",
"0.71797156",
"0.7140565",
"0.7137154",
"0.71030474",
"0.69331497",
"0.6837189",
"0.68355626",
"0.6828428",
"0.67914003",
"0.6766136",
"0.6732986",
"0.67170... | 0.7379605 | 7 |
Map COCO label to the label as used in the network. COCO has some gaps in the order of labels. The highest label is 90, but there are 80 classes. | def X6jt(YKHO, RqhP):
return YKHO.coco_labels_inverse[RqhP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def yxv7(YKHO, UXqs: str) -> int:\n return YKHO.class_map[UXqs]",
"def YTnI(X3hi, ZDfp, WPK1=32, d7Va=32, z7Lh=8):\n... | [
"0.74940825",
"0.74790096",
"0.70399916",
"0.6625426",
"0.66040874",
"0.65989256",
"0.64932394",
"0.6396858",
"0.6386402",
"0.6285412",
"0.6259594",
"0.6254257",
"0.6246658",
"0.6232594",
"0.6180478",
"0.618007",
"0.61775374",
"0.61768925",
"0.61744547",
"0.6146207",
"0.61203... | 0.70501995 | 2 |
Map label as used by the network to labels as used by COCO. | def EUO8(YKHO, UXqs):
return YKHO.coco_labels[UXqs] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUO8(YKHO, UXqs):\n return YKHO.coco_labels[UXqs]",
"def X6jt(YKHO, RqhP):\n return YKHO.coco_labels_inverse[RqhP]",
"def xMWm(YKHO, UXqs, GOZd=False):\n ycBG = UXqs.copy()\n if GOZd:\n for Ty9i, G1Hx in YKHO.label_mapping.items():\n UXqs[ycBG == G1Hx] = Ty9i\n else:\n ... | [
"0.7353909",
"0.7132376",
"0.71051466",
"0.7097489",
"0.70172864",
"0.6749313",
"0.67024726",
"0.67011404",
"0.66478014",
"0.64697915",
"0.64385986",
"0.6426931",
"0.64177734",
"0.6409265",
"0.6329057",
"0.6329057",
"0.6329057",
"0.6329057",
"0.6329057",
"0.6329057",
"0.63290... | 0.7404801 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(mQD1, YKHO).__init__(*qIxc, **c_sp)
if YKHO.sensor_FL is None:
YKHO.sensor_FL = gXBl.msg.Range()
if YKHO.sensor_FR is None:
YKHO.sensor_FR = gXBl.msg.Range()
if YKHO.sensor_RR is None:
YKHO.sens... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77938056",
"0.77205795",
"0.77205795",
"0.76868427",
"0.7626071",
"0.75641125",
"0.74400353",
"0.7417306",
"0.73512256",
"0.7308259",
"0.7279964",
"0.7237508",
"0.7226711",
"0.7224395",
"0.7224395",
"0.721927",
"0.72118485",
"0.72118485",
"0.72118485",
"0.72118485",
"0.721... | 0.0 | -1 |
Get the application manager >>> gaudi = appMgr() | def DWmr(*QMLQ, **LwG6):
import GaudiPython.Bindings
k8re = hDr6.Bindings.AppMgr()
if not 'LoKiSvc' in k8re.ExtSvc:
bo34.debug('appMgr: add LoKiSvc into the list of services')
k8re.ExtSvc += ['LoKiSvc']
return k8re | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTdB():\n return DVUM()",
"def WTdB(YKHO):\n return m36K()",
"def WTdB(YKHO):\n P4t4 = yPQU\n return P4t4",
"def Y3Be(P4t4, NCls):\n p_z1 = atqz(P4t4)\n p_z1.add_command('runserver', NnkB())\n\n def X3El():\n return dict(app=P4t4, db=NCls)\n p_z1.add_command('shell', BrQH(m... | [
"0.7028973",
"0.69332486",
"0.6882315",
"0.6703557",
"0.66614586",
"0.664636",
"0.6642488",
"0.66126275",
"0.6611206",
"0.6591387",
"0.65472484",
"0.65364695",
"0.65059197",
"0.6473368",
"0.64588016",
"0.63930583",
"0.6366299",
"0.6326191",
"0.62882495",
"0.62799424",
"0.6262... | 0.71114546 | 0 |
Event method which fired when clicked on category button. This method change set active color to button and remove active color from last pressed. | def P1o4(YKHO, YEnM):
try:
YKHO.last_category_btn._active = False
YKHO.last_category_btn = YEnM
except AttributeError:
pass
YEnM._active = True
YKHO.last_category_btn = YEnM
EgZb.register('popup')
EgZb.append('popup', 'cat_text', YEnM.text)
bAeS = EgZb.get('main_popup... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1Yx(YKHO, Fg_i, vC9B):\n for Zohj in YKHO.row_detail_list:\n f4IJ = Zohj.frame\n oD_N = Zohj.button\n UXqs = Zohj.label\n if oD_N == Fg_i:\n if YKHO.button_off == Fg_i.cget('background'):\n YKHO.active_row = Zohj\n oD_N.config(background=... | [
"0.6826316",
"0.6171762",
"0.60939556",
"0.60360026",
"0.5866947",
"0.5815591",
"0.5683557",
"0.5679842",
"0.5603377",
"0.55978477",
"0.55851203",
"0.55566305",
"0.55518246",
"0.5510309",
"0.5502518",
"0.5496946",
"0.5493166",
"0.5476365",
"0.54399365",
"0.5432378",
"0.542118... | 0.62314457 | 1 |
Returns a list of (row, column) of the microboards that are not in progress. | def lfnJ(YKHO):
return [(YRbF, r845) for YRbF in range(YKHO.SIZE) for r845 in range(YKHO.SIZE) if YKHO.boards[YRbF][r845].state != wHLO.IN_PROGRESS] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1Ae(YKHO):\n return [(YRbF, r845) for YRbF in range(YKHO.SIZE) for r845 in range(YKHO.SIZE) if YKHO.boards[YRbF][r845].state == wHLO.IN_PROGRESS]",
"def RIPK(YKHO):\n if YKHO.state != wHLO.IN_PROGRESS:\n return []\n if YKHO.last_move is None:\n return YKHO.active_boards\n WKvO, LVA... | [
"0.6932786",
"0.689234",
"0.63788104",
"0.63622457",
"0.61861163",
"0.60671705",
"0.60419524",
"0.58892214",
"0.58532095",
"0.58500224",
"0.5846342",
"0.58343816",
"0.5833571",
"0.58002704",
"0.5796479",
"0.57695395",
"0.5763258",
"0.5677295",
"0.5672112",
"0.56553423",
"0.56... | 0.74619794 | 0 |
Converts a list of positions to a list of coordinates. | def bTP2(YKHO, FBNX):
return [YKHO.to_coords(Xlvp, nfKA) for Xlvp, nfKA in FBNX] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjIU(YKHO, jNOo):\n return [YKHO.to_position(WKvO, LVAh, YRbF, r845) for WKvO, LVAh, YRbF, r845 in jNOo]",
"def vSzX(YKHO, jNOo):\n poka = int(int(jNOo[0]) / 8)\n s7Kh = int(jNOo[1])\n JsNt = int(int(jNOo[2]) / 8)\n return list(poka, s7Kh, JsNt)",
"def DnpH(YKHO, kIY0, SZFh):\n tYmb = []\... | [
"0.78465486",
"0.7595234",
"0.7337049",
"0.69677883",
"0.694678",
"0.68619525",
"0.6828317",
"0.66921467",
"0.6684557",
"0.6652641",
"0.66280186",
"0.655122",
"0.6532961",
"0.65119773",
"0.6510043",
"0.65077305",
"0.6440565",
"0.6401034",
"0.63955045",
"0.6390808",
"0.6384458... | 0.8763649 | 0 |
Returns the positions of the empty squares in the (x, y) microboard. | def WKPz(YKHO, WKvO, LVAh):
iBIi = YKHO.boards[WKvO][LVAh]
jNOo = [(WKvO, LVAh, YRbF, r845) for YRbF, r845 in iBIi.empty_squares]
return YKHO.coords_to_positions(jNOo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWT0(YKHO):\n lsmZ = []\n for rdlD in range(YKHO._dim):\n for fvDH in range(YKHO._dim):\n if YKHO._board[rdlD][fvDH] == KAvf:\n lsmZ.append((rdlD, fvDH))\n return lsmZ",
"def VoH6(Cs6h):\n for WKvO in range(len(Cs6h.board)):\n for LVAh in range(len(Cs6h.boa... | [
"0.7675395",
"0.7427548",
"0.74162483",
"0.72706157",
"0.7230784",
"0.71896905",
"0.71839726",
"0.71546406",
"0.70307463",
"0.69531125",
"0.6914825",
"0.6908713",
"0.68680567",
"0.6814875",
"0.68070716",
"0.6798365",
"0.6760187",
"0.6730189",
"0.6724424",
"0.6709463",
"0.6635... | 0.8520883 | 0 |
A list of (row, column) of the boards that can currently be played. Note Depends on the last move that was made. Returns and empty list if the game has ended. | def RIPK(YKHO):
if YKHO.state != wHLO.IN_PROGRESS:
return []
if YKHO.last_move is None:
return YKHO.active_boards
WKvO, LVAh = YKHO.last_move[-2:]
if YKHO.boards[WKvO][LVAh].state == wHLO.IN_PROGRESS:
return [(WKvO, LVAh)]
return YKHO.active_boards | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yi8B(YKHO):\n oLdq = []\n for WKvO, LVAh in YKHO.available_boards:\n oLdq.extend([YKHO.to_position(WKvO, LVAh, YRbF, r845) for YRbF, r845 in YKHO.boards[WKvO][LVAh].empty_squares])\n return oLdq",
"def iBIi(YKHO):\n iBIi = []\n if YKHO.flop:\n iBIi.extend(YKHO.flop)\n if Y... | [
"0.774374",
"0.75606424",
"0.7554614",
"0.7425093",
"0.7422024",
"0.7325879",
"0.7240538",
"0.71517295",
"0.71286005",
"0.7125563",
"0.7078192",
"0.70760834",
"0.70557404",
"0.70445454",
"0.70286703",
"0.7012792",
"0.700108",
"0.6990339",
"0.69839114",
"0.69794774",
"0.697929... | 0.79699796 | 0 |
Piecewise constant rate decay | def araA(K0do, NArs, Vfe3):
if NArs.distributed and Vfe3 < 5000:
tspZ = NArs.ngpu * NArs.lr * (Vfe3 / 5000.0)
elif Vfe3 < 40000:
tspZ = NArs.ngpu * NArs.lr
elif Vfe3 > 80000:
tspZ = NArs.ngpu * NArs.lr / 4.0
else:
tspZ = NArs.ngpu * NArs.lr / 2.0
for Lwm5 in K0do.para... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)",
"def WMj5(vnE3, gNly, lk9W):\n gwAu = gNly - vnE3\n if gwAu < 0:\n gwAu = 0\n return 1 + gwAu * lk9W / gNly",
"def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5",
"def PjIb(OmaG, ... | [
"0.7184676",
"0.7151",
"0.6972033",
"0.6944004",
"0.6844918",
"0.6824816",
"0.6808663",
"0.6755175",
"0.6737918",
"0.6736758",
"0.67278385",
"0.65981436",
"0.65533",
"0.65466195",
"0.65313286",
"0.65204865",
"0.65078783",
"0.6507144",
"0.65016824",
"0.6433559",
"0.64312303",
... | 0.0 | -1 |
Returns the Channels Group name that sockets should subscribe to to get sent messages as they are generated. | def IXKo(YKHO):
return f'PrivateChatRoom-{YKHO.id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO):\n return 'DocumentChat-%s' % YKHO.id",
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def T_b0(YKHO):\n return cQ68('room-%s' % YKHO.id)",
"def T_b0(YKHO):\n return cQ68('r... | [
"0.670286",
"0.64731055",
"0.64731055",
"0.6465609",
"0.6432694",
"0.6427493",
"0.64241916",
"0.63124985",
"0.6228399",
"0.6200603",
"0.6188457",
"0.61687344",
"0.61072105",
"0.6095847",
"0.6086761",
"0.6079826",
"0.60528266",
"0.6047977",
"0.6019547",
"0.60041517",
"0.598001... | 0.636664 | 7 |
Set up demo sensor component. | async def setup_sensor(ajET):
with dlp2(1, Sugg):
with Po4F('coinmarketcap.Market.ticker', return_value=qQXR.loads(dMy2('coinmarketcap.json'))):
await C3TX(ajET, Sugg, MDve)
await ajET.async_block_till_done() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXM5(YKHO):\n YKHO.spectral = S8zg(oyIN.array([450, 520, 630, 770.0, 1550, 2090.0]), oyIN.array([520, 600, 690, 900.0, 1750.0, 2350.0]))",
"def QXM5(YKHO):\n YKHO.spectral = S8zg(oyIN.array([500, 610, 780, 1580.0]), oyIN.array([590, 680, 890, 1750.0]))",
"def FCbF(YKHO):\n YKHO.sensor = XTqt('127.... | [
"0.72778505",
"0.7264898",
"0.709196",
"0.7046888",
"0.68963224",
"0.6841064",
"0.6797749",
"0.6728898",
"0.6699166",
"0.66209054",
"0.65738267",
"0.6491785",
"0.6445568",
"0.6439169",
"0.6399313",
"0.6370208",
"0.633794",
"0.6321074",
"0.6306411",
"0.6281473",
"0.62295043",
... | 0.58558387 | 45 |
Subsets arrays of latitude/longitude based on bounding box bbox. | def Urp6(QnmL, FDPT, Ylbp, cviu):
if cviu is None:
TPao = 0
fVVZ = len(QnmL) - 1
Smcs = 0
qyqD = len(QnmL) - 1
else:
TPao = oyIN.where(cviu[3] <= QnmL + Ylbp / 2)[0][-1]
fVVZ = oyIN.where(cviu[1] >= QnmL - Ylbp / 2)[0][0]
Smcs = oyIN.where(cviu[0] >= FDPT ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbRP(__n6: xr.Dataset, cviu: Tuple[float, float, float, float]) -> zuVY.Dataset:\n o4D3, si3g, ajwV, skBL = cviu\n Ggxb = aizj.from_dataset(__n6)\n Ehky, PqEP = Ggxb.xy_dim_names\n return __n6.sel({Ehky: slice(o4D3, ajwV), PqEP: slice(si3g, skBL) if Ggxb.is_j_axis_up else slice(skBL, si3g)})",
"d... | [
"0.6847254",
"0.67195773",
"0.6355607",
"0.61254656",
"0.60867727",
"0.59469163",
"0.5942941",
"0.5810177",
"0.5789857",
"0.5778183",
"0.5774886",
"0.5773705",
"0.57532984",
"0.5749234",
"0.57249373",
"0.57244897",
"0.57038033",
"0.5684938",
"0.5673543",
"0.5670527",
"0.56559... | 0.67835903 | 1 |
Returns a handle to the open db | def YJJL(YKHO):
if YKHO.h5file.isopen is True:
return YKHO.h5file
else:
YKHO.h5file = V2zj.open_file(filename=YKHO.filepath, mode='a')
assert YKHO.h5file.isopen
return YKHO.h5file | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def NCls(YKHO):\n if YKHO._db is None:\n YKHO._db = YKHO._GetNewConnection()\n try:\n YKHO._db.isolation_level\n except (MFiR, _r_u, o2Bo):\n qLrr.exception('Looks like... | [
"0.83070475",
"0.7636089",
"0.7461812",
"0.7460148",
"0.7375598",
"0.73638463",
"0.73577404",
"0.73568666",
"0.73568666",
"0.73388135",
"0.7320596",
"0.73168576",
"0.7314311",
"0.73073894",
"0.73073894",
"0.73073894",
"0.73073894",
"0.73073894",
"0.73073894",
"0.73073894",
"0... | 0.70266247 | 57 |
Send a message to a Slack channel | def WdaX(YwkQ, Ol8d):
jjOm = bxbw()
jjOm.chat_postMessage(channel=YwkQ, text=Ol8d, as_user=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sczE(YKHO, Ol8d):\n YKHO.slack_client.api_call('chat.postMessage', channel=YKHO.slack_channel, text=Ol8d, username=YKHO.username, icon_emoji=YKHO.slack_icon_emoji)\n print('Slack Notification sent')",
"def WdaX(YKHO, Ol8d, YwkQ=None):\n if YwkQ is None:\n YwkQ = YKHO.default_channel\n YKHO... | [
"0.8452188",
"0.75959665",
"0.7583485",
"0.75428313",
"0.7518934",
"0.7410864",
"0.740807",
"0.73787814",
"0.733253",
"0.7301877",
"0.7292195",
"0.72433656",
"0.72247636",
"0.71636206",
"0.70723706",
"0.70295864",
"0.701135",
"0.7007289",
"0.6955343",
"0.69254154",
"0.6881214... | 0.82427996 | 1 |
Test the usage of WAGTAILIMAGES_RENDITION_STORAGE setting. | def _8wd(YKHO):
from django.conf import settings
YnVC = settings
YKHO.assertFalse(hasattr(settings, 'WAGTAILIMAGES_RENDITION_STORAGE'))
z48s = YKHO.image.get_rendition('min-120x120')
YKHO.assertIsInstance(z48s.image.file.storage, zXXF)
setattr(settings, 'WAGTAILIMAGES_RENDITION_STORAGE', 'wagtai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vuea(YKHO):\n for BFRW in YKHO.explorer_object.GetAllContainers():\n YKHO.assertIsNotNone(BFRW.storage_object)\n YKHO.assertEqual(BFRW.storage_name, YKHO.driver)\n YKHO.assertIsInstance(BFRW.storage_object, YKHO.driver_class)\n YKHO.assertEqual(YKHO.storage_version, BFRW.docker_v... | [
"0.5773004",
"0.5429259",
"0.5236815",
"0.5195423",
"0.51159537",
"0.51154757",
"0.50972825",
"0.5079197",
"0.5077654",
"0.50736624",
"0.5062422",
"0.5058318",
"0.5055173",
"0.5033905",
"0.5026569",
"0.50238085",
"0.50220966",
"0.4985398",
"0.49820104",
"0.49553493",
"0.49545... | 0.6267552 | 0 |
Do not return anything, modify head inplace instead. | def YCEJ(YKHO, sdCG: ListNode) -> None:
if not sdCG:
return None
def gxEw(sdCG):
IcmZ = None
DpUl = sdCG
while DpUl:
LzB0 = DpUl.next
DpUl.next = IcmZ
IcmZ = DpUl
DpUl = LzB0
return IcmZ
def eIpA(sdCG):
id7O, D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO, sdCG):\n YKHO._head = sdCG",
"def Tmr3(YKHO, Q6kx):\n if Q6kx is YKHO.head:\n return\n BWXx = Q6kx.value\n YKHO.delete(Q6kx)\n YKHO.add_to_head(BWXx)",
"def RHuc(YKHO, Q6kx):\n YKHO._remove_node(Q6kx)\n YKHO._add_node(Q6kx)",
"def NWbf(YKHO, ac0X: Node):\n lHJN =... | [
"0.7218526",
"0.6802109",
"0.6732775",
"0.6622557",
"0.65217346",
"0.6466963",
"0.64551795",
"0.63585746",
"0.63523316",
"0.63093",
"0.62923217",
"0.6231313",
"0.622523",
"0.62005043",
"0.62005043",
"0.62005043",
"0.62005043",
"0.6198878",
"0.6193791",
"0.61740905",
"0.614918... | 0.5889327 | 50 |
hides the twitter sidebar | def YCOX(YKHO):
YKHO.twitter_hide.config(text='twitter disabled', state='disabled')
YKHO.twitter_hide.config(command=YKHO.show_twitter)
YKHO.twitter_canvas.pack_forget()
YKHO.twitter_scrollbar.pack_forget() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZpC():\n zL3i = '\\n <style>\\n #MainMenu {visibility: hidden;}\\n footer {visibility: hidden;}\\n </style>\\n '\n aevO.markdown(zL3i, unsafe_allow_html=True)",
"def WZbW(YKHO):\n YKHO.twitter_hide.config(text='hide twitter')\n YKHO.twitter_... | [
"0.68529576",
"0.66963774",
"0.66019416",
"0.6267375",
"0.62664866",
"0.62535197",
"0.622573",
"0.6195629",
"0.618743",
"0.61666375",
"0.61114204",
"0.6073434",
"0.60277617",
"0.60094136",
"0.59928006",
"0.59812856",
"0.5971421",
"0.59464055",
"0.5944246",
"0.5917891",
"0.584... | 0.77250206 | 0 |
Formats given str to a standard capitalization where all the first letters of a word are capitalized. | def Ekzq(V22M):
_CS_ = V22M.split(' ')
_CS_ = [KCHu[0].upper() + KCHu[1:].lower() for KCHu in _CS_ if KCHu]
return ' '.join(_CS_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPcS(l5Ny):\n hlel = ''\n for YRbF, yzQ0 in enumerate(l5Ny.split(' ')):\n if YRbF > 0:\n hlel += yzQ0[0].upper() + yzQ0[1:]\n else:\n hlel += yzQ0\n return hlel",
"def NM8_(l5Ny):\n if l5Ny and len(l5Ny) > 0:\n return ' '.join([KCHu[0].upper() + KCHu[1:]... | [
"0.76766455",
"0.74730504",
"0.73742115",
"0.7327242",
"0.72558063",
"0.72036535",
"0.7159741",
"0.71288484",
"0.7050965",
"0.7030794",
"0.7025328",
"0.7011357",
"0.70083785",
"0.6992886",
"0.697988",
"0.6949886",
"0.6912652",
"0.6910061",
"0.6896121",
"0.689269",
"0.68669033... | 0.0 | -1 |
Utility function to generate a randomized 32character utf8 string. | def KpEQ():
return ''.join(QMfv(rU7A(32)).decode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))",
"def skcz():\n return hex(tuKI.randint(0, 256 * 256 * 256 * 256 - 1))[2:]",
"def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.ascii_lowercase, k=zNig))",
"def tEgU():\n retu... | [
"0.80023235",
"0.7574162",
"0.7462413",
"0.7459368",
"0.7423628",
"0.73884416",
"0.73762",
"0.73687685",
"0.73519164",
"0.7270867",
"0.7266105",
"0.7253016",
"0.7234479",
"0.7217285",
"0.71469647",
"0.71222097",
"0.7103025",
"0.7077789",
"0.7076362",
"0.70763403",
"0.7074905"... | 0.7915006 | 1 |