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 |
|---|---|---|---|---|---|---|
Finds unique clones among a paired sequence dataset. | def POz8(wuU8, YBSb=20, LJAN=[], mBcJ=9.6):
GiEB = wKUP(wuU8, min_quality_for_singletons=YBSb, average_clone_scores=LJAN, none_score_for_averaging=mBcJ)
return GiEB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFUr(YKHO, SqIz):\n Fg_i, G1Hx, vC9B, Mkmy = SqIz.size()\n rPed = YKHO.primes[:Mkmy]\n rPed = rPed[None, None, None, :].expand(Fg_i, G1Hx, vC9B, Mkmy)\n kcwm = ((SqIz + 1) ** rPed).prod(dim=3)\n sorted, trpe = ht2j.sort(kcwm, dim=2)\n bGrB, rMiC = ht2j.sort(trpe, dim=2)\n ZHfW = sorted[:, ... | [
"0.60576683",
"0.59921503",
"0.59548444",
"0.59344554",
"0.5900003",
"0.58835095",
"0.5868912",
"0.58574486",
"0.5827164",
"0.57431567",
"0.57222706",
"0.56882215",
"0.5662213",
"0.5647122",
"0.5627986",
"0.5599876",
"0.5553651",
"0.55454904",
"0.55207324",
"0.55196273",
"0.5... | 0.61568564 | 0 |
Create a dataset from a list of local Python objects. | def Zb6j(DumB: List[Any], *, QMHl: int=-1) -> x3i3[ImMB]:
EJl2, bGrB = W89x(QMHl, spHt.util.get_current_placement_group(), TU7A.get_current())
Z1S6 = max(1, len(DumB) // EJl2)
rmyT: x1iM[aY0z[n3Kt]] = []
yIVm: x1iM[UswG] = []
YRbF = 0
while YRbF < len(DumB):
eQSh = YZIx.builder()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def FHs4(AwNh):\n EvQg, deVW, Q... | [
"0.6823545",
"0.65861756",
"0.630273",
"0.6279511",
"0.62467515",
"0.6150686",
"0.6108871",
"0.60931253",
"0.60836685",
"0.6019058",
"0.5947708",
"0.5923547",
"0.5883531",
"0.58340114",
"0.58072895",
"0.57906723",
"0.5789662",
"0.57549566",
"0.57401013",
"0.5725386",
"0.56912... | 0.5622586 | 27 |
Read a dataset from a custom data source. | def Nqpy(pd8u: Datasource[T], *, QMHl: int=-1, rl1L: Dict[str, Any]=None, **Awrq) -> x3i3[Kt_s]:
OaeV = TU7A.get_current()
if rl1L is None:
rl1L = {}
rRYb = False
ckRy = Awrq.get('paths', None)
if ckRy and k_Bx(ckRy):
if spHt.util.client.ray.is_connected():
raise ValueErr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyYN(j3aw):\n bD7m = _GSv[j3aw]['url']\n eHNT = Kf9k(bD7m)\n nPrm = H8e9(eHNT)\n eHNT.close()\n return nPrm",
"def qRim(mWFP, m5Tx=None, yKcO=None, Os4s=None, T0bq=3, zXYK=0.001, cuiw=None, MYjm=None):\n if m5Tx == 'yahoo':\n return k2Bd(symbols=mWFP, start=yKcO, end=Os4s, adjust_pri... | [
"0.6465696",
"0.63246596",
"0.63223606",
"0.6222079",
"0.61951244",
"0.6180791",
"0.6180791",
"0.6180791",
"0.6165846",
"0.6140465",
"0.6131076",
"0.61154026",
"0.60848093",
"0.6043491",
"0.600465",
"0.60002077",
"0.5996348",
"0.5958436",
"0.5943675",
"0.5933759",
"0.59263337... | 0.7017197 | 0 |
Create an Arrow dataset from parquet files. | def YUHd(ckRy: Union[str, List[str]], *, gTBr: Optional['pyarrow.fs.FileSystem']=None, ZLJ_: Optional[List[str]]=None, QMHl: int=-1, rl1L: Dict[str, Any]=None, wBHs: Optional[Dict[str, Tuple[np.dtype, Tuple[int, ...]]]]=None, Kuch: ParquetMetadataProvider=MgNG(), **XhaM) -> x3i3[EFyM]:
XhaM = Rfju(wBHs, **XhaM)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OC8r():\n RRlC = SC2F.glob('temp/*.parquet')\n jQ3Z = rLdf.concat([rLdf.read_parquet(ytgA) for ytgA in RRlC])\n return jQ3Z",
"def BZz9(Emd4, NSJ_, dA2t, tjLu, ZLJ_=None, d93I='hive', KUnM=None, gTBr=None):\n nPrm = xDSY.from_parquet(NSJ_, dA2t, tjLu, ZLJ_, d93I, KUnM, gTBr)\n return Emd4(nPrm... | [
"0.707575",
"0.621947",
"0.6133608",
"0.6098686",
"0.6045842",
"0.5963872",
"0.59372586",
"0.59082085",
"0.58851445",
"0.58792883",
"0.5864182",
"0.58536094",
"0.58383495",
"0.58167803",
"0.58096987",
"0.5762728",
"0.57181257",
"0.57097375",
"0.56646276",
"0.56598854",
"0.564... | 0.5951726 | 6 |
Create an Arrow dataset from json files. | def PSj2(ckRy: Union[str, List[str]], *, gTBr: Optional['pyarrow.fs.FileSystem']=None, QMHl: int=-1, rl1L: Dict[str, Any]=None, w3TA: Optional[Dict[str, Any]]=None, Kuch: BaseFileMetadataProvider=t5dn(), BcE6: Optional[PathPartitionFilter]=F5Tz.file_extension_filter(), d93I: Partitioning=r_02('hive'), **NyVQ) -> x3i3[E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMrX(Ux0P):\n with open(Ux0P, 'rt') as eHNT:\n Csk6 = qQXR.load(eHNT)\n return rLdf.DataFrame.from_records(Csk6['dataset'])",
"def jj_D(xSCy, ahiv):\n if not Hy7s.path.isfile(xSCy):\n raise FileNotFoundError('Dataset not found: {}'.format(xSCy))\n with open(xSCy, 'rb') as eHNT:\n ... | [
"0.65280765",
"0.6421036",
"0.64177555",
"0.6270845",
"0.62420803",
"0.6194555",
"0.61443186",
"0.60581344",
"0.6022597",
"0.5960402",
"0.59316725",
"0.59130794",
"0.5886452",
"0.5866082",
"0.5836983",
"0.58264613",
"0.5819487",
"0.58127254",
"0.5808198",
"0.5808038",
"0.5804... | 0.54929 | 64 |
Create a dataset from a Dask DataFrame. | def hGrU(jQ3Z: 'dask.DataFrame') -> x3i3[EFyM]:
import dask
from ray.util.dask import ray_dask_get
XOh9 = jQ3Z.to_delayed()
uNLJ = dask.persist(*XOh9, scheduler=ray_dask_get)
import pandas
def fR9e(jQ3Z):
if isinstance(jQ3Z, pandas.DataFrame):
return spHt.put(jQ3Z)
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PK3w(YKHO, jQ3Z, **B2fa):\n return jQ3Z",
"def uvTY(jQ3Z, Ep8u=5):\n jQ3Z = jQ3Z.copy()\n Crrw = jQ3Z.pop('Relevant')\n oxOY = ZylS.data.Dataset.from_tensor_slices((dict(jQ3Z), Crrw))\n oxOY = oxOY.batch(Ep8u)\n return oxOY",
"def hGrU(Emd4, YfoH):\n return Emd4.from_pandas(YfoH)",
"... | [
"0.7358074",
"0.71884704",
"0.7148657",
"0.7032926",
"0.67411435",
"0.6609532",
"0.6466937",
"0.6466937",
"0.6390665",
"0.63478494",
"0.6343732",
"0.6320492",
"0.6295609",
"0.6224059",
"0.62093985",
"0.61777514",
"0.6176935",
"0.61739504",
"0.61604214",
"0.615397",
"0.6104097... | 0.738469 | 0 |
Create a dataset from a list of NumPy ndarrays. | def dTl1(gLHJ: Union[np.ndarray, List[np.ndarray]]) -> x3i3[EFyM]:
if isinstance(gLHJ, oyIN.ndarray):
gLHJ = [gLHJ]
return o2Ka([spHt.put(gyIm) for gyIm in gLHJ]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def o2Ka(gLHJ: Union[ObjectRef[np.... | [
"0.73530215",
"0.6588379",
"0.6378847",
"0.6375847",
"0.6340084",
"0.63386816",
"0.63354266",
"0.6312542",
"0.62362945",
"0.6206093",
"0.6190065",
"0.61899257",
"0.61268455",
"0.61268455",
"0.60350126",
"0.59286946",
"0.5926574",
"0.58916944",
"0.5879859",
"0.5868182",
"0.586... | 0.7541424 | 0 |
Create a dataset from a Hugging Face Datasets Dataset. This function is not parallelized, and is intended to be used with Hugging Face Datasets that are loaded into memory (as opposed to memorymapped). | def eumP(__n6: Union['datasets.Dataset', 'datasets.DatasetDict']) -> uLKX[x3i3[EFyM], cuzp[str, x3i3[EFyM]]]:
import datasets
def a8Pe(oxOY: 'datasets.Dataset') -> x3i3[EFyM]:
return PX3O(oxOY.data.table)
if isinstance(__n6, datasets.DatasetDict):
return {G1Hx: a8Pe(oxOY) for G1Hx, oxOY in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QoXI(Emd4, IVX2, mWFP=None, qIxc=None):\n assert isinstance(IVX2, g5R2.Dataset)\n YEnM = Emd4()\n [YEnM.append(BPsS(bGrB, u'utf-8')) for bGrB in IVX2]\n return YEnM",
"def QoXI(Emd4, IVX2, mWFP=None, qIxc=None):\n assert isinstance(IVX2, g5R2.Dataset)\n YEnM = Emd4()\n [YEnM.append(BPsS(... | [
"0.60441357",
"0.60441357",
"0.60296017",
"0.60139734",
"0.5984552",
"0.59628016",
"0.5959609",
"0.5957469",
"0.5929263",
"0.59155",
"0.5904758",
"0.589037",
"0.5848701",
"0.58384186",
"0.582297",
"0.5816806",
"0.5760641",
"0.5759153",
"0.5756531",
"0.5735877",
"0.5719885",
... | 0.6471192 | 0 |
Instantiates the EfficientNet architecture using given scaling coefficients. | def OTAZ(DAru, Reel, YA0A, lo24=0.2, PoXS=0.2, lcK0=8, YDYE='swish', SIjs='default', ZGE9='efficientnet', ao6X=True, _mSQ='imagenet', FRUf=None, GhuM=None, wDQ7=None, KndY=1000, KCrI='softmax'):
if SIjs == 'default':
SIjs = wN_n
if not (_mSQ in {'imagenet', None} or axZ9.file_exists_v2(_mSQ)):
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KXHp(jTqs: int) -> U78l.Module:\n return OTAZ.from_pretrained('efficientnet-b1', num_classes=jTqs)",
"def FIMM(YKHO, A7Zt, rDAo, YoQM, ktWS, oug5=True, X6rE=None):\n super(UXq_, YKHO).__init__()\n N_7k = len(rDAo)\n if N_7k == 0:\n YKHO.net = ht2j.nn.Linear(A7Zt, ktWS, bias=oug5)\n else... | [
"0.66589063",
"0.65698916",
"0.60615736",
"0.59958917",
"0.59809524",
"0.59148216",
"0.59029317",
"0.5887401",
"0.58383644",
"0.57837945",
"0.5755983",
"0.5754037",
"0.57467085",
"0.57235754",
"0.5709849",
"0.56962144",
"0.5676469",
"0.56738925",
"0.5663758",
"0.5657895",
"0.... | 0.5724099 | 13 |
Round number of repeats based on depth multiplier. | def Lh9z(DVQL):
return int(epAf.ceil(Reel * DVQL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _6yG(YKHO, DVQL):\n return int(epAf.ceil(YKHO.depth_coefficient * DVQL))",
"def _6yG(YKHO, DVQL, Reel):\n if not Reel:\n return DVQL\n return int(epAf.ceil(Reel * DVQL))",
"def Lh9z(DVQL, Reel):\n return int(epAf.ceil(Reel * DVQL))",
"def Lh9z(DVQL, YOQM):\n pSDG = YOQM\n if not ... | [
"0.8876546",
"0.86348873",
"0.8589512",
"0.85847086",
"0.8439529",
"0.83897537",
"0.83897537",
"0.83897537",
"0.8308418",
"0.77939695",
"0.6887175",
"0.6887175",
"0.6861657",
"0.6199542",
"0.6199542",
"0.6029677",
"0.5980465",
"0.59490407",
"0.59474444",
"0.5848384",
"0.58335... | 0.87485105 | 1 |
Randomly generates a username, similar to stackoverflow. This provides a sample space of 89,999,999 possible outcomes. | def RKZW():
while True:
PQCy = 'user-' + str(tuKI.randrange(10000000, 99999999))
try:
CBIr = QcR6.objects.get(username=PQCy)
except QcR6.DoesNotExist:
return PQCy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKZW():\n return ''.join((Acvy(C1SZ + BHGE) for bGrB in range(15)))",
"def djI1():\n return str(qxeD.uuid4().hex.upper())",
"def CcJs():\n qzC2 = ['bella_123', '$lade(99)', 'BADOO_0!', 'V1rus**', 'Gh0stO_O', '1ce_man', 'MoneyBa9$', '1ucy=_=', 'F1ash~_~', '<an9el>', '-NeGaT1Ve-', '__M4dCat__', '|Re... | [
"0.81882167",
"0.74550086",
"0.74139214",
"0.7412845",
"0.72204286",
"0.71873033",
"0.71788776",
"0.7160787",
"0.70311683",
"0.7024956",
"0.6956349",
"0.68754274",
"0.68572825",
"0.68242186",
"0.6793649",
"0.67547566",
"0.67403233",
"0.67166245",
"0.67153794",
"0.670786",
"0.... | 0.6637569 | 24 |
Determines whether an admin can view the settings for an app | def spO2(YKHO, tKz9):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(QpfX):\n QePW = QpfX['request']\n bD7m = xBs1(QePW.path)\n QpfX['is_admin'] = False\n return bD7m.app_name == 'admin'",
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n return YKHO.admin",
"def x8Nc(YKHO, F2U7: PermissionView) -> bool:\n if F2U7.view_menu.name in YKHO.R... | [
"0.7197825",
"0.71421736",
"0.7014749",
"0.6962591",
"0.69085276",
"0.6825112",
"0.6808583",
"0.6753598",
"0.6745955",
"0.67347515",
"0.671795",
"0.6715743",
"0.6714295",
"0.6672859",
"0.66663957",
"0.66574913",
"0.66574913",
"0.6647589",
"0.66296035",
"0.661449",
"0.65853405... | 0.5887702 | 99 |
This is helper function for minimax Max_value (self, game, depth) | def bQ6z(YKHO, BH3N, rb7a):
if YKHO.time_left() < YKHO.TIMER_THRESHOLD:
raise Z7bg()
IayW = BH3N.get_legal_moves()
uc7Q = float('-inf')
if rb7a == 0 or not IayW:
return YKHO.score(BH3N, YKHO)
for BZN_ in IayW:
uc7Q = max(uc7Q, dgIT(YKHO, BH3N.forecast_move(BZN_), rb7a - 1))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ztzb(YKHO, QTBn: TwoPlayerGameState, rb7a: int) -> float:\n if QTBn.end_of_game or rb7a == 0:\n E2VJ = YKHO.heuristic.evaluate(QTBn)\n else:\n E2VJ = -oyIN.inf\n bzfn = YKHO.generate_successors(QTBn)\n for U08W in bzfn:\n if YKHO.verbose > 1:\n print(... | [
"0.8227087",
"0.7967682",
"0.79274863",
"0.79223716",
"0.78081375",
"0.780729",
"0.77446705",
"0.768548",
"0.7676947",
"0.7627913",
"0.7621513",
"0.761593",
"0.7600196",
"0.748576",
"0.7467021",
"0.7453619",
"0.74163014",
"0.7396493",
"0.73643297",
"0.73597264",
"0.73415375",... | 0.7500422 | 13 |
Add a MessageChain to the internal list for the given request ID. | def rNbe(YKHO, gTi_, V69B):
bo34.debug('request_id = %s' % gTi_)
with YKHO._message_chains_lock:
YKHO._message_chains[gTi_] = V69B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvRZ(YKHO, Ol8d):\n if Ol8d['message_id'] in YKHO.message_ids:\n return\n YKHO.message_ids.append(Ol8d['message_id'])\n YKHO.messages.append(Ol8d)",
"def gUOX(YKHO, Ol8d):\n YKHO.message_list.append(Ol8d)",
"def JzZL(YKHO, gTi_):\n bo34.debug('request_id = %s' % gTi_)\n with YKHO._... | [
"0.5982852",
"0.5875561",
"0.56743115",
"0.55958617",
"0.55825657",
"0.5526259",
"0.55260205",
"0.5498304",
"0.54431385",
"0.5434903",
"0.5410539",
"0.5391618",
"0.5315123",
"0.5288119",
"0.5248552",
"0.5224282",
"0.52231395",
"0.52214056",
"0.52062374",
"0.5164818",
"0.51402... | 0.8448856 | 0 |
User can create comment | def i71m(YKHO):
nKcD = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, nKcD)
geh0 = YKHO.create_comment(token=nKcD, parentId=0, slug=geh0.data['article']['slug'])
YKHO.assertEqual(geh0.data['comment']['body'], gEB3['body'])
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X9Fw(YKHO):\n return True",
"def M66F(CBIr, aM_I: DocumentComment):\n dogc = aM_I.document.status.id\n if CBIr.id == aM_I.create_user_id and dogc == _rT0.objects.get_by_natural_key('Draft').id:\n return True\n return False",
"def Ogf6(YKHO):\n nKcD = YKHO.create_user(UtNi)\n geh0 =... | [
"0.73534185",
"0.71073604",
"0.6907783",
"0.69026345",
"0.67875063",
"0.67704207",
"0.6717905",
"0.6711686",
"0.6630874",
"0.6620413",
"0.66140383",
"0.66135705",
"0.658712",
"0.65367806",
"0.6512923",
"0.6489898",
"0.6424495",
"0.6360928",
"0.6359878",
"0.6357088",
"0.633078... | 0.6637901 | 8 |
user can get comments for an article | def KQ6q(YKHO):
nKcD = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, nKcD)
geh0 = YKHO.create_comment(token=nKcD, parentId=0, slug=geh0.data['article']['slug'])
rNHK = gxEw('comments', kwargs={'slug': geh0.data['comment']['article']['slug'], 'id': 0})
geh0 = YKHO.client.get(rNHK)
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMX5(YKHO, lo4R):\n try:\n Tj1O = jY1u.objects.all()\n Tj1O = list(filter(lambda WKvO: WKvO.article_id == lo4R, Tj1O))\n return Tj1O\n except jY1u.DoesNotExist:\n raise uhgT",
"def Ogf6(YKHO):\n nKcD = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, nKcD)\n ... | [
"0.7051459",
"0.7011194",
"0.6828945",
"0.67730135",
"0.67639273",
"0.647759",
"0.6316718",
"0.6151316",
"0.6119812",
"0.6088404",
"0.60635614",
"0.5980794",
"0.59584194",
"0.5949022",
"0.5934125",
"0.5932308",
"0.5923707",
"0.5905992",
"0.5903777",
"0.58925235",
"0.58722794"... | 0.78564686 | 0 |
user can delete comments for an article | def arIS(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})
geh0 = YKHO.client.delete(rNHK, HTTP_AUTHORIZATION=eOtH)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SuEa(YKHO, _sei):\n try:\n Tj1O = jY1u.objects.all()\n Tj1O = list(filter(lambda WKvO: WKvO.article_id == _sei, Tj1O))\n for aM_I in Tj1O:\n aM_I.delete()\n except jY1u.DoesNotExist:\n pass",
"def b7Lr(YKHO):\n eOtH = YKHO.create_user(UtNi)\n geh0 = YKHO.cre... | [
"0.724776",
"0.71893334",
"0.7097344",
"0.69964445",
"0.6952778",
"0.6936803",
"0.68999505",
"0.6801651",
"0.67899805",
"0.6717094",
"0.6655033",
"0.6592393",
"0.6590674",
"0.65445375",
"0.6513937",
"0.64832425",
"0.64586824",
"0.6398616",
"0.63897127",
"0.638828",
"0.6374779... | 0.7676523 | 0 |
user can delete comments for an article | def b7Lr(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
eOtH = YKHO.create_user(OOvw)
rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})
geh0 = YKHO.client.delet... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def arIS(YKHO):\n eOtH = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, eOtH)\n geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])\n rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})\n geh0 = YKHO.client.delete(rNHK, HTTP_AUTHORIZATI... | [
"0.7676523",
"0.724776",
"0.7097344",
"0.69964445",
"0.6952778",
"0.6936803",
"0.68999505",
"0.6801651",
"0.67899805",
"0.6717094",
"0.6655033",
"0.6592393",
"0.6590674",
"0.65445375",
"0.6513937",
"0.64832425",
"0.64586824",
"0.6398616",
"0.63897127",
"0.638828",
"0.63747793... | 0.71893334 | 2 |
user can update their comments for an article | def ZzBj(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})
geh0 = YKHO.client.put(rNHK, HTTP_AUTHORIZATION=eOtH, data... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A8I3(YKHO):\n return True",
"def WMCn(YKHO):\n eOtH = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, eOtH)\n geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])\n rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})\n geh0 = YKH... | [
"0.6694878",
"0.6580968",
"0.6578074",
"0.65608335",
"0.65161645",
"0.642181",
"0.638465",
"0.6338328",
"0.6323572",
"0.6308092",
"0.62434256",
"0.6221932",
"0.6188669",
"0.6147377",
"0.6136802",
"0.60883176",
"0.6087288",
"0.6085069",
"0.6055377",
"0.6050128",
"0.60483855",
... | 0.70312065 | 0 |
user can update their comments for an article | def WMCn(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})
geh0 = YKHO.client.put(rNHK, HTTP_AUTHORIZATION=eOtH, data... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzBj(YKHO):\n eOtH = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, eOtH)\n geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])\n rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})\n geh0 = YKHO.client.put(rNHK, HTTP_AUTHORIZATION=... | [
"0.70308316",
"0.6695347",
"0.6577459",
"0.6561423",
"0.65155995",
"0.6422868",
"0.63844866",
"0.63376933",
"0.63247895",
"0.63083524",
"0.6243982",
"0.62212867",
"0.61888796",
"0.6146989",
"0.6136901",
"0.6086613",
"0.6086242",
"0.6083473",
"0.60561824",
"0.6050084",
"0.6046... | 0.6580498 | 2 |
invalid user can delete comments for an article | def a1_c(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
eOtH = YKHO.create_user(OOvw)
rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})
geh0 = YKHO.client.put(r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7Lr(YKHO):\n eOtH = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, eOtH)\n geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])\n eOtH = YKHO.create_user(OOvw)\n rNHK = gxEw('crud-comment', kwargs={'id': geh0.data['comment']['id']})\n geh0 = YKHO.c... | [
"0.7825106",
"0.7348943",
"0.6889742",
"0.6884852",
"0.6843844",
"0.6756067",
"0.66402996",
"0.6625607",
"0.649844",
"0.6450402",
"0.6436491",
"0.64173794",
"0.6414768",
"0.64118475",
"0.63921046",
"0.6387599",
"0.6379932",
"0.63682514",
"0.63521945",
"0.6339108",
"0.63061464... | 0.6526321 | 8 |
User can retrieve comments of invalid article | def Bxnd(YKHO):
eOtH = YKHO.create_user(UtNi)
geh0 = YKHO.create_article(C34k, eOtH)
geh0 = YKHO.create_comment(token=eOtH, parentId=0, slug=geh0.data['article']['slug'])
eOtH = YKHO.create_user(OOvw)
rNHK = gxEw('comments', kwargs={'slug': 'random-non-existent-article-0x3', 'id': 0})
geh0 = YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KQ6q(YKHO):\n nKcD = YKHO.create_user(UtNi)\n geh0 = YKHO.create_article(C34k, nKcD)\n geh0 = YKHO.create_comment(token=nKcD, parentId=0, slug=geh0.data['article']['slug'])\n rNHK = gxEw('comments', kwargs={'slug': geh0.data['comment']['article']['slug'], 'id': 0})\n geh0 = YKHO.client.get(rNHK)... | [
"0.72780085",
"0.6803199",
"0.67557496",
"0.65182453",
"0.64307",
"0.64246607",
"0.6372403",
"0.6340008",
"0.6311736",
"0.62324345",
"0.6209545",
"0.61896634",
"0.61834466",
"0.6164329",
"0.6134414",
"0.60954946",
"0.60302156",
"0.6023688",
"0.5990243",
"0.5972506",
"0.594815... | 0.8203984 | 0 |
Gets all the model instances. | def _KCp(YKHO) -> bDy6['panda_core_data.model.Model']:
for XOSE in YKHO.all_models:
for OERl in XOSE.all_instances:
yield OERl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _MOd(YKHO) -> x1iM[y7L0]:\n return YKHO.model.query.all()",
"def pi1E(Emd4):\n return sYeH.get_all_instance(Emd4)",
"def NTxX(YKHO):\n return iter(YKHO.model_list)",
"def ArHU(YKHO):\n YKHO.load()\n return YKHO._models",
"def rFRb(Emd4):\n return Emd4.dbm().modelclass_find_all(Emd4)",... | [
"0.7698019",
"0.7503729",
"0.7334518",
"0.7277576",
"0.7223713",
"0.72139347",
"0.7193906",
"0.7129815",
"0.7070198",
"0.7070198",
"0.7070198",
"0.7070198",
"0.7070198",
"0.7070198",
"0.70472",
"0.7039465",
"0.7001101",
"0.6997673",
"0.6991649",
"0.68915975",
"0.6820305",
"... | 0.801359 | 0 |
return the firewall Rules as a string | def yLCI(YKHO):
return str(vars(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\\t'\n xkpB = []\n for eD8c in c_NS:\n xkpB.append(' + '.join([Mkmy.__str__() for Mkmy in eD8c]))\n SlvR += '\\n\\t'.join(xkpB) + '\\n]'\n SlvR += '\\... | [
"0.7167848",
"0.6925633",
"0.6825531",
"0.675393",
"0.6491027",
"0.6374184",
"0.6251518",
"0.6129292",
"0.60597414",
"0.6010541",
"0.5944472",
"0.59331536",
"0.58631897",
"0.5845111",
"0.5735386",
"0.57257587",
"0.57157934",
"0.56913376",
"0.5680103",
"0.564046",
"0.5638087",... | 0.0 | -1 |
Return the name of the Rules instance. | def W0tD(YKHO):
return YKHO.tagnode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')",
"def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')",
"def bKqw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'rule_name')",
"def bKqw(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule_name')",
"def uLFj(YKHO):\n ... | [
"0.78265125",
"0.78265125",
"0.7665208",
"0.73805165",
"0.72213143",
"0.70199686",
"0.70150244",
"0.6955745",
"0.6919932",
"0.690874",
"0.6895472",
"0.6895472",
"0.6895472",
"0.6895472",
"0.6895472",
"0.6868361",
"0.6867869",
"0.68349814",
"0.68336403",
"0.6814947",
"0.681494... | 0.0 | -1 |
Add source address to Rule. If the packet matches this then the action is taken. | def cjWZ(YKHO, x7dK):
YKHO.source.address = x7dK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Plnz(YKHO, JZXy: _Source) -> None:\n YKHO._sources.append(JZXy)",
"def uGFh(YKHO, BnGX, xGvx):\n for eD8c in BnGX:\n if 'source' in eD8c.keys():\n if 'nets' in eD8c['source'].keys():\n eD8c['source']['nets'].append(xGvx)\n else:\n eD8c['source'... | [
"0.6147156",
"0.6041207",
"0.600631",
"0.59983796",
"0.59466434",
"0.5875135",
"0.582798",
"0.5818522",
"0.5730725",
"0.57222754",
"0.5713313",
"0.57097584",
"0.569038",
"0.5674645",
"0.5668545",
"0.56297374",
"0.55851746",
"0.5569822",
"0.5554489",
"0.5545913",
"0.5456151",
... | 0.7249079 | 1 |
Flatten the given event by preassociating format fields with specific objects and callable results in a L{dict} put into the C{"log_flattened"} key in the event. | def dG8V(tvqc: LogEvent) -> None:
if tvqc.get('log_format', None) is None:
return
if 'log_flattened' in tvqc:
V_D6 = tvqc['log_flattened']
else:
V_D6 = {}
UTiI = oTqs()
for nVmh, L5mN, ssZU, ya19 in PQ3k.parse(tvqc['log_format']):
if L5mN is None:
continue... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zq2k(tvqc: LogEvent) -> str:\n FF0g = tvqc['log_flattened']\n UTiI = oTqs()\n KCHu = []\n for nVmh, L5mN, ssZU, ya19 in PQ3k.parse(tvqc['log_format']):\n KCHu.append(nVmh)\n if L5mN is not None:\n H5ew = UTiI.flatKey(L5mN, ssZU, ya19 or 's')\n KCHu.append(str(FF0... | [
"0.6760659",
"0.65010715",
"0.5891237",
"0.58312917",
"0.57149434",
"0.5618122",
"0.55652946",
"0.5552419",
"0.55145985",
"0.5493505",
"0.54799795",
"0.52787995",
"0.5243208",
"0.5241175",
"0.51138145",
"0.5099614",
"0.5053237",
"0.49583116",
"0.4888975",
"0.48837164",
"0.483... | 0.7920332 | 0 |
Prune entries in the given dict with falsey values. Boto3 may not like None and instead wants no key. | def X4io(vG57: dict) -> dict:
VeyD = dict()
for H5ew in vG57:
if vG57[H5ew]:
VeyD[H5ew] = vG57[H5ew]
return VeyD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOHT(Csk6: dict) -> dict:\n uZq5 = {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if Ty9i is not None}\n return uZq5",
"def e5iB(fGC9):\n Ylbp = {}\n Ylbp.update(((H5ew, BWXx) for H5ew, BWXx in fGC9.iteritems() if BWXx is not None))\n return Ylbp",
"def xnx3(tbx9):\n return {G1Hx: Ty9i for G1... | [
"0.7174196",
"0.70920944",
"0.69523466",
"0.68528444",
"0.68021727",
"0.67931503",
"0.6781738",
"0.6750018",
"0.6738934",
"0.66986066",
"0.66560835",
"0.6597756",
"0.6579644",
"0.65269256",
"0.6515384",
"0.64823204",
"0.6460439",
"0.6446995",
"0.6401885",
"0.63992894",
"0.638... | 0.64683336 | 16 |
Function convert sentences into tokens, normalizes case,, strip trailing and preceding whitespaces and removes puntuations and stop words | def wr3U(l5Ny):
b0j5 = Dhdw.RegexpTokenizer('\\w+')
s2mk = b0j5.tokenize(l5Ny)
LkXt = GFnk()
zKDd = []
for w2fL in s2mk:
if w2fL.lower() not in di0c.words('english'):
NM_J = LkXt.lemmatize(w2fL).lower().strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXeG(m6Me):\n m6Me = Y4PC.sub(' ', m6Me)\n m6Me = m6Me.strip()\n m6Me = m6Me.lower()\n V22M = Dhdw.word_tokenize(m6Me)\n V22M = [gryw(yzQ0) for yzQ0 in V22M if not yzQ0 in di0c and len(yzQ0) > 1]\n return ' '.join(V22M)",
"def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lo... | [
"0.73411524",
"0.73175305",
"0.71133167",
"0.70377165",
"0.7036197",
"0.7021909",
"0.6999944",
"0.69758457",
"0.69756293",
"0.69736433",
"0.6956072",
"0.69387716",
"0.690078",
"0.688363",
"0.68614256",
"0.6858483",
"0.68561226",
"0.6843117",
"0.68379456",
"0.68379456",
"0.683... | 0.66710526 | 50 |
Convert vector to one hot form. | def kj8B(Ty9i):
exwG = len(Ty9i)
r8hN = max(Ty9i) + 1
yvT9 = oyIN.zeros((exwG, r8hN))
yvT9[oyIN.arange(exwG), Ty9i] = 1
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YQH4(iArr, jTqs=None):\n assert isinstance(iArr, oyIN.ndarray)\n assert len(iArr) > 0\n if jTqs is None:\n jTqs = oyIN.max(iArr) + 1\n else:\n assert jTqs > 0\n assert jTqs >= oyIN.max(iArr)\n Aofo = oyIN.zeros(shape=(len(iArr), jTqs))\n Aofo[oyIN.arange(len(iArr)), iArr]... | [
"0.8490456",
"0.8103757",
"0.79804724",
"0.7954823",
"0.78555137",
"0.7808817",
"0.7680536",
"0.7607491",
"0.75317764",
"0.7527006",
"0.75106126",
"0.75083894",
"0.74944246",
"0.74725986",
"0.7460844",
"0.7426176",
"0.741461",
"0.7379436",
"0.7379436",
"0.7379436",
"0.7368112... | 0.86740214 | 0 |
Function used to get the DOI of a dataset | def q5rv(__n6):
eOtH = VgoY()
c55i = hq8C(eOtH, __n6)
try:
jgFF = G4JS.get(f'{C0Tk}/datasets/{c55i}/doi', headers=KUaS(eOtH))
if jgFF.status_code == 404:
return {'doi': 'No DOI found for this dataset'}
jgFF.raise_for_status()
return {'doi': jgFF.json()['doi']}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHKR(YKHO):\n return S5_C(YKHO.record).doi",
"def aJGT(YKHO):\n return YKHO._dois",
"def U00b(__n6):\n eOtH = VgoY()\n c55i = hq8C(eOtH, __n6)\n try:\n jgFF = G4JS.post(f'{C0Tk}/datasets/{c55i}/doi', headers=KUaS(eOtH))\n jgFF.raise_for_status()\n return {'doi': jgFF.jso... | [
"0.73552567",
"0.69396996",
"0.6604417",
"0.6594884",
"0.65387887",
"0.6488872",
"0.61606026",
"0.6082726",
"0.6056956",
"0.60264283",
"0.6021914",
"0.5995704",
"0.59292525",
"0.58887255",
"0.5885538",
"0.588378",
"0.58447045",
"0.5810868",
"0.5791774",
"0.5773025",
"0.574856... | 0.7856116 | 0 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['Authorization'] = geh0
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82238686",
"0.8223043",
"0.8223043",
"0.8223043",
"0.8223043",
"0.81963",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.... | 0.0 | -1 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def C_QL():\n ... | [
"0.8724249",
"0.85791856",
"0.850329",
"0.84860355",
"0.84612614",
"0.84362435",
"0.8429879",
"0.8419578",
"0.8396612",
"0.8396612",
"0.8374868",
"0.8356488",
"0.8350785",
"0.8340763",
"0.8340763",
"0.8336323",
"0.8330013",
"0.8329599",
"0.8325031",
"0.8317146",
"0.8293699",
... | 0.83374727 | 30 |
Render website's contact page. | def Mxk0():
if QePW.method == 'POST':
pC5n()
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year='2020', message='Your contact page.')",
"def Mxk0():\n return TvZl('contac... | [
"0.8486234",
"0.8427357",
"0.8355819",
"0.83289754",
"0.83289754",
"0.8325889",
"0.8320788",
"0.8303996",
"0.8303996",
"0.8303996",
"0.8303996",
"0.8303996",
"0.8303996",
"0.8303996",
"0.8303996",
"0.82898635",
"0.8285032",
"0.8090465",
"0.8085386",
"0.7988422",
"0.79631776",... | 0.0 | -1 |
Sets the velocity at infinity. The flow is assumed to be parallel to the axis (Ox) | def FIMM(YKHO, ZqJl):
YKHO.Vinf = ZqJl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p8Jz(YKHO, EcVT, fuBA):\n YKHO.u = YKHO.Vinf * oyIN.ones_like(EcVT)\n YKHO.v = oyIN.zeros_like(EcVT)",
"def Q1Vt(YKHO):\n YKHO.__dx *= -1",
"def Gzib(YKHO):\n if YKHO.direction == 'left':\n YKHO.x_vel = -2\n else:\n YKHO.x_vel = 2\n YKHO.y_vel = 0",
"def Sc35(YKHO):\n i... | [
"0.69070625",
"0.68373597",
"0.6734147",
"0.6416528",
"0.62942535",
"0.6291796",
"0.6244044",
"0.60851115",
"0.60759264",
"0.60389876",
"0.6026524",
"0.60061055",
"0.5964982",
"0.59556305",
"0.59333664",
"0.590238",
"0.5832856",
"0.58325326",
"0.5805494",
"0.5773547",
"0.5760... | 0.0 | -1 |
Test that the repr. of the class is a string. | def MFUS(YKHO):
OWw8 = KcDH()
M98S = OWw8.__class__.__name__
QGFp = OWw8.id
o8Kj = OWw8.__dict__
YKHO.assertTrue(type(M98S), str)
YKHO.assertTrue(type(id), str)
YKHO.assertDictEqual(o8Kj, OWw8.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ka6R(YKHO):\n YKHO.assertIsInstance(ietf.Card(10, 1).__str__(), str)",
"def Dt2g():\n WKvO = tl3z(1.0)\n try:\n assert str(WKvO) == 'Reverse-mode Rnode Object ( Values: 1.0 )'\n except AssertionError as e:\n print(tTpl)\n raise AssertionError",
"def fuqq(YKHO):\n kYGz = ... | [
"0.77971935",
"0.74566096",
"0.7306285",
"0.7226716",
"0.720409",
"0.7159156",
"0.7136195",
"0.7135593",
"0.71326333",
"0.70972145",
"0.70740294",
"0.7060653",
"0.704373",
"0.7034206",
"0.70334554",
"0.7017586",
"0.6989546",
"0.6987686",
"0.6961579",
"0.6935551",
"0.6865491",... | 0.0 | -1 |
Return tensors positive and negative samples. | def nrOS(YKHO, zZcM, zr3f, _x49, *BwPG):
LbEn = ZylS.repeat(zZcM, YKHO.num_neg_per_pos)
gMLD = ZylS.random.uniform(minval=1, maxval=YKHO.num_nodes, shape=ZylS.shape(LbEn), dtype=LbEn.dtype)
J38G = ZylS.math.floormod(ZylS.math.add(LbEn, gMLD), YKHO.num_nodes)
zZcM = ZylS.concat([zZcM, LbEn], axis=0, name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la4d(YKHO):\n return vMaF(-YKHO._tensor, YKHO._con + '_' + YKHO._cov)",
"def abs(vhpA):\n raise NotImplementedError",
"def Zihr(vhpA):\n raise NotImplementedError",
"def iInW(zwEB, zAWt, NXpY=1):\n d6pt = oyIN.arange(zAWt.shape[0])\n d6pt = oyIN.random.RandomState().permutation(d6pt)\n ... | [
"0.6593329",
"0.5845341",
"0.58382833",
"0.5803817",
"0.5795344",
"0.5792174",
"0.571915",
"0.5717788",
"0.5684675",
"0.558966",
"0.55621064",
"0.5552129",
"0.55348456",
"0.5528148",
"0.55232227",
"0.55214113",
"0.55039316",
"0.54935735",
"0.5493006",
"0.5491893",
"0.5476643"... | 0.5405545 | 31 |
Test case for perturb_nodefail_post | def ojfS(YKHO):
Jczo = MNkF()
geh0 = YKHO.client.open('/perturb/nodefail', method='POST', data=qQXR.dumps(Jczo), content_type='application/json')
YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWhd(YKHO):\n pass",
"def MI0d(YKHO):\n pass",
"def SuIf(YKHO):\n pass",
"def q5AG(YKHO):\n pass",
"def G5YW(YKHO):\n pass",
"def lnoC(YKHO):\n pass",
"def wH5T(x0hE):\n Oa1e.test_authorized_for = []\n Ylbp = x0hE.post('/v0/falsepositive', json=dV8n)\n O0Fa = '{\"msg\":\"... | [
"0.6223876",
"0.6194101",
"0.60459375",
"0.5875066",
"0.580688",
"0.5789453",
"0.5782498",
"0.5747264",
"0.57107925",
"0.5676912",
"0.5651326",
"0.5645974",
"0.5628373",
"0.56243896",
"0.56034243",
"0.55947196",
"0.5586521",
"0.5579983",
"0.5533444",
"0.5519166",
"0.5505662",... | 0.72945184 | 0 |
Get the state of the base environment underlying this simulation. | def ja6o(YKHO):
return YKHO._env.get_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.env.sim.get_state()",
"def ja6o(YKHO) -> XTiz.ndarray:\n if YKHO.clone_seeds:\n return YKHO.gym_env.unwrapped.clone_full_state()\n else:\n return YKHO.gym_env.unwrapped.clone_state()",
"def ja6o(YKHO) -> ImMB:\n raise NotImplementedError('This environment... | [
"0.7271932",
"0.72443354",
"0.7074449",
"0.66396475",
"0.6635302",
"0.6635302",
"0.6628831",
"0.6600063",
"0.65326726",
"0.65020907",
"0.64947283",
"0.64620066",
"0.63979954",
"0.6350296",
"0.6342641",
"0.6318393",
"0.62794405",
"0.62611693",
"0.6250845",
"0.61970866",
"0.618... | 0.72386056 | 2 |
Tags exist as a string on the object until this property is accessed when the tags will be parsed. This will return a dictionary of tags for the message. | def dJ1p(YKHO):
if not hasattr(YKHO, '_tags'):
YKHO._parse_tags()
return YKHO._tags | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> dict:\n return YKHO._tags",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> dict:\n return YKHO._tags or None",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.ge... | [
"0.7356398",
"0.71904343",
"0.71904343",
"0.71528774",
"0.7147752",
"0.7147752",
"0.7147752",
"0.7147752",
"0.7120455",
"0.7036617",
"0.70240813",
"0.69059235",
"0.68624216",
"0.68556404",
"0.6804458",
"0.6757412",
"0.6723951",
"0.6672897",
"0.6646525",
"0.6638321",
"0.663832... | 0.6741678 | 16 |
Set the name of the variable. | def oSgC(YKHO, mWFP: str, /) -> ImMB:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGmI(YKHO, tbkh):\n YKHO._name = tbkh\n return YKHO",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt",
"def S55X(YKHO, mWFP):\n YKHO.__name = mWFP",
"def mWFP(YKHO, BWXx):\n YKHO._name = BWXx",
"def mWFP(YKHO, BWXx):\n YKHO._name = BWXx",
... | [
"0.8356473",
"0.80492806",
"0.7998566",
"0.7962415",
"0.79574096",
"0.79574096",
"0.7898638",
"0.78857785",
"0.78857785",
"0.7876669",
"0.7837697",
"0.7837697",
"0.78333163",
"0.7801124",
"0.7801124",
"0.779277",
"0.7758073",
"0.7758073",
"0.7758073",
"0.7758073",
"0.7758073"... | 0.0 | -1 |
Get the current value of the variable. | def BWXx(YKHO) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkD2(YKHO):\n assert YKHO.is_started()\n return YKHO.currValue",
"def izFS(YKHO):\n return YKHO.current_counter.value",
"def JkD2(YKHO, WmM4=None):\n try:\n return YKHO._currentvalue\n except AttributeError:\n return WmM4",
"def umPh(YKHO):\n return YKHO.__value",
"def e... | [
"0.81701285",
"0.76752824",
"0.7570123",
"0.75647223",
"0.7508799",
"0.7467934",
"0.7435013",
"0.7381678",
"0.7361344",
"0.7300062",
"0.7281784",
"0.7281784",
"0.72461796",
"0.72461796",
"0.72461796",
"0.72327286",
"0.7200071",
"0.7200071",
"0.7200071",
"0.7188606",
"0.718860... | 0.0 | -1 |
Get the coefficient for the term. | def zZRI(YKHO) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lk9W(YKHO):\n return YKHO._coeff",
"def Qp4K(YKHO):\n return _VfD.FluxObjective_getCoefficient(YKHO)",
"def VXdL(YKHO):\n return uV6J(YKHO.degree + 1) / TFEx(YKHO.degree + 1)",
"def vqVR(YKHO):\n return YKHO._coef",
"def Zwet(YKHO, SRYB):\n if not isinstance(SRYB, VC2D.MPVariable):\n ... | [
"0.79082656",
"0.76750433",
"0.74407554",
"0.7419539",
"0.734748",
"0.72059673",
"0.7161257",
"0.6889246",
"0.67865443",
"0.67605644",
"0.6709972",
"0.6633344",
"0.66265845",
"0.6617359",
"0.6615395",
"0.65079224",
"0.6445369",
"0.64248616",
"0.6421431",
"0.6421431",
"0.64148... | 0.73563826 | 4 |
Get the value for the term. | def BWXx(YKHO) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(YKHO):\n return YKHO.text()",
"def xdKy(YKHO):\n return YKHO.value",
"def umPh(YKHO):\n return YKHO._value",
"def eXSS(YKHO):\n return YKHO.value",
"def GVFA(YKHO, or8S):\n try:\n return YKHO.id2term[or8S]\n except KeyError:\n return YKHO.unk_term",
"def UnfG(YKHO... | [
"0.7189744",
"0.71571136",
"0.7130746",
"0.7104902",
"0.70862734",
"0.7073664",
"0.70671505",
"0.70603544",
"0.7055651",
"0.7009664",
"0.70096123",
"0.70096123",
"0.70096123",
"0.6972301",
"0.6940659",
"0.69361347",
"0.69193274",
"0.6911277",
"0.6911277",
"0.6904737",
"0.6904... | 0.0 | -1 |
Get the strength for the constraint. | def yrqc(YKHO) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrqc(YKHO) -> int:\n return YKHO._strength",
"def _ZXj(YKHO):\n return 10 - YKHO.get_agility()",
"def jPne(YKHO):\n return YKHO.st",
"def yrqc(YKHO):\n return YKHO._characterStrength",
"def kE4Q(YKHO) -> int:\n return YKHO.data[URbA.WIRELESS_SIGNAL_STRENGTH]",
"def FWlB(YKHO):\n yrq... | [
"0.82051545",
"0.7667124",
"0.7541932",
"0.7447134",
"0.7258923",
"0.71684384",
"0.691986",
"0.6821158",
"0.6821158",
"0.6741986",
"0.6716075",
"0.6702248",
"0.66739076",
"0.66509944",
"0.6636615",
"0.66351014",
"0.6630416",
"0.6595347",
"0.6595347",
"0.6559752",
"0.6553531",... | 0.7714425 | 1 |
Indicate if the constraint is violated in teh current state of the solver. | def jBMN(YKHO) -> bool:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BIAE(YKHO):\n return YKHO._solution['status'] == 'optimal'",
"def tFeO(YKHO, sEAN):\n I1mm = any([hAVj.is_violated(sEAN) for hAVj in YKHO.constraints])\n return I1mm",
"def BIAE(YKHO) -> bool:\n return YKHO._solution.info.status == 'solved'",
"def tFeO(YKHO, sEAN):\n cnPl = YKHO.get_value(... | [
"0.6838856",
"0.67668086",
"0.6675701",
"0.6579404",
"0.6507886",
"0.6476085",
"0.64347845",
"0.64196366",
"0.6398619",
"0.6398219",
"0.6360409",
"0.63215375",
"0.62700886",
"0.62589514",
"0.6256994",
"0.6239568",
"0.6239568",
"0.6239568",
"0.6204424",
"0.6169917",
"0.6128140... | 0.6972864 | 0 |
Plot a grid of timecourses of C, N, and S for each culture. Uses AxesGrid from mpl_loolkits.axes_grid1. | def bGgn(usx6, WfCS, u4Ys, WXkz, leAC='CNS Growth', Ux0P=None):
Z3uP = oyIN.amax(u4Ys)
Z3uP = oyIN.ceil(Z3uP * 10) / 10
LZpg = QrM1.figure()
LZpg.suptitle(leAC, fontsize=20)
LZpg.add_subplot(111, frameon=False)
QrM1.tick_params(labelcolor='none', top='off', bottom='off', left='off', right='off')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCqy(YKHO, JI1i, YRbF, exwG):\n CAzz, Jd40 = oyIN.meshgrid(range(YKHO.L), range(YKHO.L))\n aNZO = JI1i.add_subplot(2, 2, exwG)\n QrM1.setp(aNZO.get_yticklabels(), visible=False)\n QrM1.setp(aNZO.get_xticklabels(), visible=False)\n QrM1.pcolormesh(CAzz, Jd40, YKHO.config, cmap=QrM1.cm.RdBu)\n ... | [
"0.65577185",
"0.63081837",
"0.6219827",
"0.6205473",
"0.61784697",
"0.59268755",
"0.5866878",
"0.581599",
"0.5782144",
"0.5766683",
"0.57617265",
"0.5721031",
"0.5690334",
"0.5675751",
"0.55794007",
"0.55756044",
"0.5561598",
"0.5550681",
"0.55281276",
"0.54582804",
"0.54424... | 0.5755873 | 11 |
Returns the response data for both the login and refresh views. Override to return a custom response such as including the serialized representation of the User. | def H_As(eOtH, CBIr=None, QePW=None):
return {'token': jOLa.get('JWT_AUTH_HEADER_PREFIX') + ' ' + eOtH, 'expires_in': qcWV.utcnow() + widx.JWT_EXPIRATION_DELTA, 'user_info': e1OT(CBIr, context={'request': QePW}).data} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW):\n CBIr = QePW.user\n ZMzz = YKHO.serializer_class(CBIr)\n return geh0.Response({'user': ZMzz.data})",
"def NMoC(YKHO, QePW):\n ZMzz = hq_r(QePW.user)\n return oGir(ZMzz.data, status=jGRS.HTTP_200_OK)",
"def NMoC():\n return NNa8(AmPw())",
"def dmaw(YKHO):\n return (... | [
"0.71465147",
"0.70411843",
"0.70158863",
"0.6920199",
"0.680122",
"0.67467433",
"0.67200357",
"0.6637355",
"0.6610629",
"0.6545728",
"0.6451369",
"0.64485973",
"0.64340764",
"0.64081866",
"0.6401857",
"0.63850576",
"0.6379709",
"0.6339779",
"0.6318268",
"0.63139457",
"0.6295... | 0.0 | -1 |
Find letter index from all_letters, e.g. "a" = 1 0 will be the OOV index | def VjSd(sZqf):
if sZqf not in RMfx:
sZqf = Ldo_(sZqf)
return RMfx.find(sZqf) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def JT76(V22M, sZqf):\n return []",
"def etjM(sZqf):\n gZgb = 'abcdefghijklmnopqrstuvwxyz'\n yPrR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n if sZqf.isupper() == True:\n for WKvO in yPrR:\... | [
"0.77561086",
"0.77561086",
"0.7537599",
"0.72580856",
"0.72493124",
"0.7140853",
"0.69707936",
"0.6923047",
"0.6878614",
"0.6808082",
"0.67288494",
"0.672008",
"0.66960436",
"0.6606948",
"0.6564629",
"0.649849",
"0.6429685",
"0.6383099",
"0.6369814",
"0.6365768",
"0.6317695"... | 0.76111495 | 2 |
returns the argmax as a python int | def q1NN(he6J):
bGrB, or8S = ht2j.max(he6J, -1)
return Y2tV(or8S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1NN(aWuw):\n import operator\n d6pt, BWXx = max(enumerate(aWuw), key=operator.itemgetter(1))\n return d6pt",
"def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')",
"def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')",
"def BYEG(jzdc):\n return jzdc.argmax()",... | [
"0.76696974",
"0.74289167",
"0.74289167",
"0.7322274",
"0.7322274",
"0.7322274",
"0.729767",
"0.7297426",
"0.7132999",
"0.7132999",
"0.7089301",
"0.70691156",
"0.7039756",
"0.7020751",
"0.69803226",
"0.69358915",
"0.69336575",
"0.69336575",
"0.6917138",
"0.6864105",
"0.686303... | 0.72347665 | 8 |
1hot encodes a tensor | def fKLU(LVAh, jTqs):
ezWE = oyIN.eye(jTqs)[LVAh]
vhpA = ht2j.LongTensor(ezWE)
return IoiV.Variable(vhpA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel",
"def zGX0(YKHO, ezWE, OR2u):\n KLLm = oyIN.zeros((oyIN.multiply(*ezWE.shape), OR2u), dtype=oyIN.float32)\n KLLm[oyIN.arange(KLLm.shape[0]), ezWE.flatten()] = 1.0\... | [
"0.825683",
"0.80612594",
"0.80134225",
"0.79169524",
"0.79141015",
"0.78817654",
"0.78415674",
"0.7808129",
"0.7765629",
"0.77381057",
"0.77381057",
"0.7733656",
"0.77271235",
"0.7712934",
"0.7685474",
"0.76791126",
"0.7582691",
"0.75598603",
"0.75565237",
"0.7535483",
"0.75... | 0.0 | -1 |
Small modification to NLTK wordpunct_tokenize Because NLTK's won't split on '_' or numbers | def gqHg(_dZy):
return hlkS.tokenize(_dZy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n H5Ad = l5Ny.lower()\n uPnQ = {ord(Z9rn): None for Z9rn in vIwR.punctuation}\n Tj9d = H5Ad.translate(uPnQ)\n F5N0 = {ord(Z9rn): None for Z9rn in vIwR.digits}\n QBSW = Tj9d.translate(F5N0)\n s2mk = Dhdw.word_tokenize(QBSW)\n return s2mk",
"def x1CH(l5Ny):\n l5Ny = ZbWC.sub... | [
"0.7712767",
"0.72001827",
"0.7181687",
"0.7161656",
"0.7132496",
"0.70764285",
"0.70704037",
"0.7032159",
"0.69968474",
"0.69790226",
"0.6895941",
"0.6881979",
"0.6864515",
"0.6852213",
"0.6835276",
"0.6835098",
"0.68190706",
"0.68102664",
"0.68017775",
"0.67969924",
"0.6770... | 0.79126287 | 0 |
Pads sequences to the same length. This function transforms a list of `num_samples` sequences (lists of integers) into a 2D Numpy array of shape `(num_samples, num_timesteps)`. `num_timesteps` is either the `maxlen` argument if provided, or the length of the longest sequence otherwise. Sequences that are shorter than `... | def S5Za(jWe2, KLk8=None, yDqo='int32', dvgN='pre', qG1m='pre', BWXx=0.0):
if not hasattr(jWe2, '__len__'):
raise ValueError('`sequences` must be iterable.')
Fbjb = []
for WKvO in jWe2:
if not hasattr(WKvO, '__len__'):
raise ValueError('`sequences` must be a list of iterables. Fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5Za(jWe2, KLk8, Cbls, yDqo='int32', BWXx=-1):\n WKvO = (XTiz.ones((Cbls, KLk8)) * BWXx).astype(yDqo)\n for or8S, KCHu in enumerate(jWe2):\n JNU5 = KCHu[:KLk8]\n WKvO[or8S, :len(JNU5)] = JNU5\n return WKvO",
"def S5Za(jWe2, j45X, KLk8=None):\n U5bT = []\n bQ6z = max(map(len, jWe2... | [
"0.7471271",
"0.67566997",
"0.67072976",
"0.66779023",
"0.66278654",
"0.65295887",
"0.650013",
"0.64562035",
"0.6307838",
"0.6280524",
"0.6270285",
"0.62512267",
"0.6229984",
"0.6229984",
"0.6159027",
"0.61498684",
"0.6144117",
"0.61333627",
"0.612565",
"0.6052647",
"0.604610... | 0.73416483 | 1 |
Approaches 0 for x> inf as 1/(1x), with f(0)=1 and f'(0)=1. Cont differentiable. | def x2Pk(WKvO, SGf8=None):
if SGf8 is None:
SGf8 = 0.0
EL14 = ZylS.where(WKvO < 0, 1.0 / (1.0 - WKvO), ZylS.ones_like(WKvO))
u_ln = lambda WKvO: ZylS.where(WKvO < 0, EL14, WKvO + 1) + SGf8
return u_ln(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zd5H(WKvO):\n return 0.0",
"def dOlk(eHNT, Oa1e, P9SZ=None):\n from numpy import product\n if P9SZ is None:\n P9SZ = P6wZ()\n exwG = product(eHNT.shape)\n LVAh = Dsu3(eHNT, Oa1e, P9SZ, exwG)\n return LVAh",
"def FYKK(WKvO):\n if WKvO == 0:\n return 0\n if WKvO < 0:\n ... | [
"0.65662795",
"0.64100665",
"0.63619375",
"0.62685996",
"0.6260722",
"0.6216693",
"0.61923504",
"0.61800134",
"0.61712873",
"0.61514115",
"0.612418",
"0.60906863",
"0.6080326",
"0.60748667",
"0.6056136",
"0.595767",
"0.5950477",
"0.5943625",
"0.5929249",
"0.5898662",
"0.58977... | 0.5628194 | 67 |
Build the meancentered point matrix W. points should be an array with shape (num_frames, num_points, 2). | def SLNk(LTIa):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNJD(LTIa):\n if len(LTIa) == 1:\n JDGy = oyIN.mean(LTIa)\n else:\n JDGy = [oyIN.mean([WKvO[LVAh] for WKvO in LTIa]) for LVAh in range(len(LTIa[0]))]\n return JDGy",
"def Rgf5(LTIa):\n XP5J = float(len(LTIa))\n WKvO, LVAh, epBp = zip(*LTIa)\n return (sum(WKvO) / XP5J, sum(LVAh... | [
"0.6723999",
"0.63278323",
"0.63190204",
"0.616089",
"0.6126593",
"0.608245",
"0.597002",
"0.58241475",
"0.57955587",
"0.57952666",
"0.57897234",
"0.57701397",
"0.5757842",
"0.5742731",
"0.57414883",
"0.5709802",
"0.56775075",
"0.5632468",
"0.55561256",
"0.55491716",
"0.55024... | 0.5469493 | 22 |
Remove comments from the string column of FTL Translations and Entities, and source & target columns of FTL TranslationMemoryEntries. See bug 1501168 for more details. | def ciXq(XLL2, uPxI):
wvEv = hZRt()
ZMzz = n0ly()
Tmku = XLL2.get_model('base', 'Translation')
I2Vp = Tmku.objects.filter(entity__resource__format='ftl')
jvKY = []
for a1PO in I2Vp:
jvSB = a1PO.string
jZ4I = wvEv.parse_entry(jvSB)
jZ4I.comment = None
a1PO.string =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ol9s(YKHO: Self, tvqc: Event=None) -> None:\n Z9rn, XP5J, P6bq, yzQ0 = (YKHO, YKHO.p, YKHO.undoer, YKHO.frame.body.wrapper)\n MiKf = P6bq.beforeChangeBody(XP5J)\n sdCG, Nqlg, J3uN, xcXv, Qp1b = YKHO.getBodyLines()\n if not Nqlg:\n Oa1e.warning('no text selected')\n return\n rQow = ... | [
"0.63007027",
"0.60225815",
"0.5909399",
"0.5684708",
"0.559779",
"0.5582361",
"0.5547229",
"0.55372834",
"0.54712635",
"0.54712635",
"0.538484",
"0.5373036",
"0.5370515",
"0.53657305",
"0.5343653",
"0.5320726",
"0.5320122",
"0.5293025",
"0.5290128",
"0.5279373",
"0.52651274"... | 0.6996354 | 0 |
Return the kwargs to create a copy of the instance. | def foPr(YKHO, **B2fa):
PCpl = YKHO.__dict__
for hkS8, YSA3 in {'_engine': 'engine', '_format': 'format'}.items():
assert YSA3 not in B2fa
if hkS8 in PCpl:
B2fa[YSA3] = PCpl[hkS8]
return super()._copy_kwargs(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2fa(YKHO):\n return jth9.deepcopy(YKHO._kwargs)",
"def jth9(YKHO, **B2fa):\n yvT9 = jth9.deepcopy(YKHO)\n yvT9.update(**B2fa)\n return yvT9",
"def i3ak(YKHO, *qIxc, **B2fa):\n QGkr = jth9.copy(YKHO)\n B2fa = YKHO.get_arguments(qIxc, B2fa, onlykeys=True, onlyused=True)\n Krno = getattr... | [
"0.8453996",
"0.7878556",
"0.7481045",
"0.74726564",
"0.727558",
"0.7109563",
"0.70013624",
"0.6950249",
"0.6941109",
"0.69344217",
"0.6892155",
"0.68705976",
"0.68048954",
"0.674366",
"0.6728962",
"0.67002124",
"0.6697491",
"0.66730416",
"0.6665938",
"0.6601157",
"0.6559238"... | 0.7646782 | 2 |
Delete the Provisioning Service Certificate. Deletes the specified certificate assosciated with the Provisioning Service. | def PTpj(YKHO, TRLE, duxJ, WoDg, MN3X, sNRf=None, E7Di=None, Hn3_=None, qtG8=None, CkAj=None, e9PM=None, UjvM=None, Y1k4=None, xSC3=None, m6Me=False, **PK7a):
bD7m = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certifi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PNOc(YKHO, QePW):\n try:\n NArs = QePW._serialize()\n MOPg = QePW.headers\n TBsA = YKHO.call('DeleteCertificate', NArs, headers=MOPg)\n geh0 = qQXR.loads(TBsA)\n C3ST = FYrf.DeleteCertificateResponse()\n C3ST._deserialize(geh0['Response'])\n return C3ST\n ... | [
"0.6608225",
"0.6579277",
"0.65694404",
"0.6417117",
"0.6317654",
"0.62543005",
"0.59181637",
"0.58554876",
"0.58198816",
"0.5803979",
"0.575492",
"0.566286",
"0.5641114",
"0.5534113",
"0.5532895",
"0.5443055",
"0.54262745",
"0.5398958",
"0.5362816",
"0.5357683",
"0.534798",
... | 0.6278682 | 5 |
Plot image of given depth | def r2sP(YKHO, rb7a):
gEmA = YKHO.cube[rb7a]
VXjJ = []
for YRbF in range(YKHO.height):
VXjJ.append([gEmA[YRbF][r845].value for r845 in range(YKHO.width)])
QrM1.imshow(VXjJ, cmap='gray')
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXo3(fz7m, HHlp):\n import numpy\n from . import plotutils\n LZpg, aNZO = QrM1.subplots()\n aNZO = plotutils.plot_noncontiguous(aNZO, fz7m, numpy.where(HHlp)[0])\n aNZO.invert_yaxis()\n QrM1.show()\n return None",
"def wy3H(YKHO):\n LZpg, aNZO = QrM1.subplots()\n eumP = aNZO.imshow... | [
"0.65465724",
"0.6293776",
"0.62561876",
"0.62431103",
"0.62291616",
"0.6226079",
"0.62257254",
"0.6224469",
"0.6208157",
"0.6181805",
"0.6156093",
"0.61438584",
"0.6133444",
"0.6118609",
"0.6116789",
"0.6116789",
"0.6116789",
"0.61166316",
"0.6115073",
"0.6078475",
"0.605519... | 0.7406107 | 0 |
Compute the empirical CDF of the sample 'x' and evaluate it at datapoints 'xi'. This function is called internally in RSA_thres.compute_indices and RSA_groups.compute_indices to calculate the input CDFs. | def ThkB(WKvO, Y7fn):
if not isinstance(WKvO, oyIN.ndarray):
raise ValueError('"x" must be a numpy.array.')
if WKvO.dtype.kind != 'f' and WKvO.dtype.kind != 'i' and (WKvO.dtype.kind != 'u'):
raise RuntimeError('"x" must contain floats or integers.')
if not isinstance(Y7fn, oyIN.ndarray):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, WKvO):\n mM0K = 3.1415926536\n JBMS = YKHO.mean\n z2bo = YKHO.stddev\n o4D3 = (WKvO - JBMS) / (z2bo * 2 ** 0.5)\n Hx7O = 2 / mM0K ** 0.5\n ugFX = o4D3 - o4D3 ** 3 / 3 + o4D3 ** 5 / 10 - o4D3 ** 7 / 42 + o4D3 ** 9 / 216\n tVah = Hx7O * ugFX\n YzER = 1 / 2 * (1 + tVah)\n ret... | [
"0.69266355",
"0.69214094",
"0.69214094",
"0.6914141",
"0.68764466",
"0.6758876",
"0.66747475",
"0.66608214",
"0.65801144",
"0.6571776",
"0.6469703",
"0.6457943",
"0.6447456",
"0.63774574",
"0.6353632",
"0.62779135",
"0.6256293",
"0.6246077",
"0.6245759",
"0.61944",
"0.619059... | 0.75315416 | 0 |
Runs at the end of the test case; drops the db | def tBIc(YKHO):
with YKHO.app.app_context():
NCls.session.remove()
NCls.drop_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mTtn():\n GTYX()",
"def tBIc(YKHO):\n NCls.session.commit()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.db.drop_all()\n pass",
"def tBIc(YKHO):\n with P4t4.app_context():\n NCls = P4t4.db.get_db()\n DpUl = NCls.cursor()\n with P4t4.open_resource('sql/drop_tests.sql'... | [
"0.8768811",
"0.86619884",
"0.86346585",
"0.8592597",
"0.85831314",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
"0.8579971",
... | 0.82741755 | 68 |
Return the Z value along a gaussian distribution given x,y coordinates | def KA5F(k0lF, WTkW, WKvO, LVAh):
return k0lF * epAf.exp(-(pow(WKvO - 16.0, 2.0) / (2 * pow(WTkW, 2)) + pow(LVAh - 16.0, 2.0) / (2 * pow(WTkW, 2)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRI_(WKvO, LVAh, k0lF, WTkW, nJ9F):\n Nk6w = k0lF * oyIN.exp(-((WKvO - nJ9F[0]) ** 2 / (2 * WTkW[0] ** 2) + (LVAh - nJ9F[1]) ** 2 / (2 * WTkW[1] ** 2)))\n return Nk6w",
"def PLbd(YKHO, WKvO, yGTL, SRYB):\n wEf2 = 1 / epAf.sqrt(2 * epAf.pi * SRYB) * epAf.exp(-1 * (WKvO - yGTL) ** 2 / (2 * SRYB))\n ... | [
"0.74720216",
"0.72551596",
"0.70616275",
"0.68615365",
"0.6848797",
"0.6848797",
"0.6848797",
"0.6834914",
"0.6812858",
"0.68081975",
"0.6802726",
"0.6748739",
"0.66895986",
"0.6650105",
"0.6646899",
"0.66359663",
"0.6631888",
"0.6610955",
"0.6594517",
"0.6594422",
"0.656803... | 0.0 | -1 |
Get Astris Probe ID for expect auto run. | def fKaz(fsEL, p2Yq):
BuV5 = fsEL
if ZbWC.search('-', BuV5):
BuV5 = BuV5.split('-')[1]
Ylbp, o5Dc = RTEV([VZuY + '/runAstrisID.exp'], True, p2Yq)
for ZfUD in o5Dc:
if ZbWC.search(BuV5, ZfUD):
jAwg = ZbWC.search('[0-9]{1}', ZfUD).group()
PMwo('getAstrisProbeID: sn=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fKaz(fsEL):\n BuV5 = fsEL\n if ZbWC.search('-', BuV5):\n BuV5 = BuV5.split('-')[1]\n Ylbp, o5Dc = RTEV([VZuY + '/auto_reset.rep', '-1'], False)\n for ZfUD in o5Dc:\n if ZbWC.search(BuV5, ZfUD):\n return ZbWC.search('[0-9]?', ZfUD).group()\n return '-1'",
"def uyp5(YKHO... | [
"0.63445914",
"0.6018172",
"0.5957744",
"0.57805705",
"0.54946333",
"0.5481445",
"0.5373998",
"0.5343673",
"0.53005284",
"0.52937484",
"0.5198197",
"0.51904076",
"0.51841384",
"0.5179261",
"0.5168335",
"0.5163309",
"0.5162205",
"0.5153474",
"0.51299876",
"0.50734675",
"0.5055... | 0.625481 | 1 |
Wrapper for turning tensorflow metrics into keras metrics | def h3Xc(YKHO, qIxc, **B2fa):
BWXx, qp5T = NKcE(YKHO, qIxc, **B2fa)
nMvt.get_session().run(ZylS.local_variables_initializer())
with ZylS.control_dependencies([qp5T]):
BWXx = ZylS.identity(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IwJV(kwRu, mWFP, zGxY=None, OUpf=None, **B2fa):\n\n def AcYW(Y8eF, aMgO):\n \"\"\" Wrap a TF metric, instantiating hidden variables + updating hidden states\"\"\"\n BWXx, qp5T = kwRu(Y8eF, aMgO, **B2fa)\n mNs1()\n with ZylS.control_dependencies([qp5T]):\n BWXx = ZylS.i... | [
"0.69506645",
"0.64114",
"0.6383206",
"0.6362886",
"0.6128875",
"0.5947736",
"0.59401995",
"0.5889047",
"0.58636826",
"0.5822293",
"0.58184654",
"0.57995015",
"0.57968014",
"0.57885736",
"0.5779893",
"0.577134",
"0.57695305",
"0.576313",
"0.57178736",
"0.57167006",
"0.5708086... | 0.0 | -1 |
Create a new trial from a dictionary | def jG8h(Emd4, SItH: PurePath, nPrm: Dict[str, any]):
NArs = dict(experiment_path=SItH)
NArs.update(nPrm)
return Emd4(**NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y310(tZuJ, XkN1):\n sj_i = ''\n if tZuJ.visual_file:\n cia1 = tZuJ.visual_file.url\n PQd8 = tZuJ.visual_file.filetype\n if 'video' in PQd8.lower():\n sj_i = 'video'\n else:\n sj_i = 'image'\n else:\n cia1 = ''\n if tZuJ.audio_file:\n s... | [
"0.66553545",
"0.61669606",
"0.61273277",
"0.61273277",
"0.61085725",
"0.5869679",
"0.58316576",
"0.5790569",
"0.576438",
"0.5739658",
"0.56255096",
"0.562108",
"0.55747175",
"0.55338913",
"0.55199856",
"0.54687315",
"0.5462591",
"0.5455903",
"0.5454162",
"0.5448245",
"0.5446... | 0.5040146 | 55 |
Get the TDP limit of package | def mDJC(VGCm):
m8ii = Hy7s.path.join(gIzY, 'intel-rapl:{}'.format(VGCm.node_id))
try:
pmON = Hy7s.path.join(m8ii, 'constraint_0_max_power_uw')
eSEY = int(msEP(pmON))
eSEY /= xJtO
except (IOError, OSError) as err:
raise IOError('{}\nCould not read TDP'.format(XObx))
excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ziTB(*qIxc):\n return qIxc[0].Limit.PTLimit.pt_limit",
"def mOch(*qIxc):\n return qIxc[0].Limit.TCLimit.tc_limit",
"def K3hO(YKHO):\n return YKHO.limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def reg7(YKHO) -> int:\n return qe4Y.get(YKHO, '... | [
"0.71630466",
"0.68155926",
"0.6674689",
"0.6524719",
"0.6524719",
"0.64629984",
"0.63484544",
"0.6336108",
"0.6330175",
"0.63039666",
"0.6264373",
"0.6250275",
"0.6246874",
"0.6193732",
"0.6155589",
"0.6107442",
"0.6107442",
"0.60531497",
"0.6049967",
"0.60425955",
"0.599371... | 0.0 | -1 |
Get release version of the associated helper program. | def DpZH(YKHO):
if YKHO.installed and (not YKHO._version):
hlel = YKHO.call(YKHO._version_args, require_success=False)
kUBT = ZbWC.search(YKHO._version_regexp, hlel)
if not kUBT:
raise RuntimeError("Unable to find version number for '{0}' in output from '{0} {1}':\n{2}".format(YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YPqY):\n return '%s from mrtools %s' % (YPqY, dxKy)",
"def kaPv():\n k8wH.echo(ur3a())",
"def kaPv():\n return '%d.%d.%d' % bFMd",
"def kaPv():\n return vsuQ.get_version()",
"def kaPv():\n return '0.0.1 (prerelease prototype)'",
"def jwTA(YKHO):\n return YKHO.get_property(_lH2.... | [
"0.721053",
"0.7203356",
"0.6982114",
"0.69554484",
"0.6876617",
"0.6751368",
"0.67318827",
"0.67314565",
"0.67307734",
"0.6728926",
"0.66976273",
"0.6693327",
"0.6691756",
"0.6652412",
"0.66384023",
"0.6632351",
"0.66222453",
"0.66222453",
"0.66222453",
"0.6603525",
"0.65842... | 0.0 | -1 |
Test Tensor.max for arbitrary data, axis, and keepdim | def d3Fz(jzdc, S96Q, JsoO):
if S96Q == 0:
MPlV = None
else:
MPlV = oyIN.random.choice(range(0, jzdc.ndim), size=min(S96Q, jzdc.ndim), replace=False)
MPlV = tuple(sorted(MPlV))
if MPlV is None or MPlV == tuple(range(jzdc.ndim)):
d6pt = tuple((oyIN.random.choice(YRbF.flat) for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max(vhpA, jDK_=None):\n raise NotImplementedError",
"def bpdJ(WKvO: Tensor) -> llWB:\n return ht2j.max(WKvO, dim=0).values",
"def NfWQ(nPrm, ZHfW, tpio=1):\n TitX = ZylS.reduce_min(nPrm, tpio, keepdims=True)\n TG2O = ZylS.reduce_max(ZylS.math.multiply(nPrm - TitX, ZHfW), tpio, keepdims=True) + ... | [
"0.72939914",
"0.7249118",
"0.7159474",
"0.69270927",
"0.6816063",
"0.6693305",
"0.6689232",
"0.66115314",
"0.6510889",
"0.64802194",
"0.6467747",
"0.6454342",
"0.64498174",
"0.6414373",
"0.6373469",
"0.6357863",
"0.6347594",
"0.62862027",
"0.62368566",
"0.6203899",
"0.618134... | 0.7470672 | 0 |
Return the top k documents for based on similarity matrix | def u6pE(qIr8, Zbp4, NAFu, G1Hx):
JiHU = qIr8.shape[0]
DNs0 = [oyIN.argsort(qIr8[rdlD, :])[-G1Hx:][::-1] for rdlD in range(JiHU)]
yvT9 = {Zbp4[YRbF]: oyIN.array(NAFu)[DNs0[YRbF]] for YRbF in range(JiHU)}
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6pE(GmeM, BY0N, G1Hx):\n TLFp = 0\n vBQU = {}\n with open(MLWI) as eHNT:\n nHoq = BY0N.keys()\n for YRbF, zFiD in enumerate(eHNT):\n TLFp += int(zFiD.strip())\n if YRbF in nHoq:\n vBQU[YRbF] = int(zFiD.strip())\n for oFUB, oXaw in vBQU.items():\n ... | [
"0.7680669",
"0.7294009",
"0.7196522",
"0.7136391",
"0.70358086",
"0.6973126",
"0.6921261",
"0.69210124",
"0.67498153",
"0.67347515",
"0.66906315",
"0.6635711",
"0.65827006",
"0.65751845",
"0.64510256",
"0.64483607",
"0.64027584",
"0.6386131",
"0.6363579",
"0.63007945",
"0.62... | 0.72779816 | 2 |
Returns accuracy. top_k is a dict as returned by get_top_k(). | def bFBL(H42b):
smhU = [bAls in pZ8o for bAls, pZ8o in H42b.items()]
vjyh = sum(smhU) / len(H42b) * 100
return vjyh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.7790706",
"0.76820815",
"0.7681787",
"0.7681787",
"0.76809895",
"0.76707727",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
"0.76609564",
... | 0.78114355 | 0 |
Draw a line combined of segments between points. | def _nHy(YKHO, LTIa: Iterable[Tuple[float, float, float, float, Text]], SGf8: float=1e-08):
for YRbF, XP5J in enumerate(LTIa[1:-1]):
DTEf = LTIa[YRbF]
Pldv = LTIa[YRbF + 2]
yzQ0 = sum([DTEf[2], XP5J[2], Pldv[2]]) / 3.0
YKHO.output.write(f'<polyline points="{round(DTEf[0])},{round(DTE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UaY5(o4D3: float, si3g: float, ajwV: float, skBL: float, qfpW: C3F) -> None:\n _y2g.graphics.draw(2, _y2g.gl.GL_LINE_STRIP, (bqJo._VERTEX_MODE, [o4D3, si3g, ajwV, skBL]), (bqJo._COLOR_MODE, qfpW * 2))",
"def FUY5(XQzp, LTIa, BOkw):\n WKvO, LVAh = ([], [])\n for o4D3, si3g in LTIa:\n WKvO.appe... | [
"0.7507227",
"0.73089755",
"0.72862893",
"0.7004558",
"0.6982856",
"0.69033986",
"0.689957",
"0.68861043",
"0.68716484",
"0.6870187",
"0.68533516",
"0.68329954",
"0.6800887",
"0.6787765",
"0.67820156",
"0.67660624",
"0.6733264",
"0.67092776",
"0.6698449",
"0.6695999",
"0.6669... | 0.6293133 | 51 |
Wraps a given Keras layer baseclass, adding Runtime Weight Scaling in the `build()` method using the constant from the He initializer. | def XjYf(xtxp: Type[tf.keras.layers.Layer], FBcI: str='kernel', VZNB: str='kernel_initializer'):
class WeightScaledVariant(xtxp):
def FIMM(YKHO, mb4J: float=2.0, IddF: int=None, *qIxc, **B2fa):
YKHO.gain = mb4J
YKHO.fan_in = IddF
B2fa.update({VZNB: ZylS.keras.initialize... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO, GhuM):\n if YKHO.use_scale:\n YKHO.scale = YKHO.add_weight(name='scale', shape=(), initializer='ones', dtype=YKHO.dtype, trainable=True)\n else:\n YKHO.scale = None\n super(tYJw, YKHO).build(GhuM)",
"def NGqR(YKHO, gEmA):\n HBP1 = RIrr(1.0)\n try:\n oKST = 'W' i... | [
"0.68051386",
"0.66374505",
"0.64986295",
"0.63973767",
"0.61030334",
"0.6087606",
"0.60452276",
"0.6027698",
"0.6001209",
"0.5969962",
"0.5932495",
"0.58896536",
"0.5828722",
"0.58136284",
"0.58035344",
"0.57821167",
"0.5771482",
"0.5746343",
"0.57364935",
"0.5716917",
"0.57... | 0.796408 | 0 |
Representation string for the instance of the SchedulePolicies class. | def wHJl(YKHO):
return "SchedulePolicies class instance for Commcell: '{0}'".format(YKHO._commcell_object.commserv_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n dbZk = '{:^5}\\t{:^20}\\n\\n'.format('S. No.', 'Schedule Policy')\n for d6pt, Qabx in enumerate(YKHO._policies):\n AgAX = '{:^5}\\t{:20}\\n'.format(d6pt + 1, Qabx)\n dbZk += AgAX\n return dbZk.strip()",
"def zAg0(YKHO):\n yvT9 = '%s\\n\\n' % qQXR.dumps(YKHO.policies, i... | [
"0.8189865",
"0.7509505",
"0.7041365",
"0.7004347",
"0.6509042",
"0.6368328",
"0.6282538",
"0.6258271",
"0.62529427",
"0.6248392",
"0.6229856",
"0.61369675",
"0.6134077",
"0.60378045",
"0.60378045",
"0.60378045",
"0.60101146",
"0.60036325",
"0.60036325",
"0.60036325",
"0.6003... | 0.74356383 | 2 |
Returns a schedule policy object of the specified schedule policy name. | def NMoC(YKHO, X2Ut, LqiM=None):
if X2Ut and (not isinstance(X2Ut, exCv)):
raise pDrJ('Schedules', '102')
if LqiM and (not isinstance(LqiM, int)):
raise pDrJ('Schedules', '102')
X2Ut = X2Ut.lower()
LqiM = YKHO.all_schedule_policies.get(X2Ut)
if YKHO.has_policy(X2Ut):
return Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXBk(YKHO, mWFP):\n return YKHO.__schedules.get(mWFP, None)",
"def CYao(YKHO):\n return YKHO.__scheduler_policy",
"def CYao(YKHO):\n return YKHO.__scheduler_policy",
"def CYao(YKHO):\n return YKHO.__scheduler_policy",
"def CYao(YKHO):\n return YKHO.__scheduler_policy",
"def CYao(YKHO):... | [
"0.6700762",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.62134594",
"0.6182103",
"0.6173136",
"0.60809577",
"0.60009354",
"0.5817689",
"0.578083",
"0.5760546",
"0.5760257",
"0.5720774",
"0.56081015",
"0.56... | 0.77740514 | 0 |
Gets a schedule ID of the schedule policy Returns (int) schedule policy ID | def s3pm(YKHO):
fJ7k = odAu(YKHO._commcell_object)
return fJ7k.get(YKHO.schedule_policy_name).schedule_policy_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W5nB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'schedule_id')",
"def ulWc(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'policy_id')",
"def lDVs(YKHO) -> str:\n return qe4Y.get(YKHO, 'security_policy... | [
"0.7265618",
"0.6918219",
"0.69093806",
"0.68377894",
"0.68377894",
"0.68124413",
"0.6732101",
"0.67213774",
"0.6460177",
"0.6395417",
"0.6364246",
"0.6310633",
"0.6231959",
"0.62063766",
"0.62063766",
"0.62063766",
"0.62063766",
"0.62063766",
"0.62063766",
"0.62063766",
"0.6... | 0.8840227 | 0 |
Get the policy Type of the schedule policy | def gnKP(YKHO):
return list(odAu.policy_types.keys())[list(odAu.policy_types.values()).index(YKHO._task_json['policyType'])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gnKP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_type')",
"def gnKP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_type')",
"def gnKP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'policy_type')",
"def type(YKHO) -> h8nf[qe4Y.Input['PlacementPolicyType']]:\n ... | [
"0.7936323",
"0.78493845",
"0.78021806",
"0.71529824",
"0.6958368",
"0.68767196",
"0.68596804",
"0.66903925",
"0.66903925",
"0.66903925",
"0.6630274",
"0.6630274",
"0.6550651",
"0.6438638",
"0.6438638",
"0.6438638",
"0.6326373",
"0.6326373",
"0.6326373",
"0.6326373",
"0.63263... | 0.8559941 | 0 |
Add engineered features to features dict. | def ugZo(bySB):
bySB['londiff'] = bySB['dropofflon'] - bySB['pickuplon']
bySB['latdiff'] = bySB['dropofflat'] - bySB['pickuplat']
bySB['euclidean'] = ZylS.math.sqrt(bySB['londiff'] ** 2 + bySB['latdiff'] ** 2)
return bySB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bySB(YKHO, bySB):\n YKHO._features = bySB",
"def nrOS(YKHO, *qIxc, **B2fa):\n YKHO.features = dict(((G1Hx, Ty9i()) for G1Hx, Ty9i in YKHO.features.items()))\n return YKHO.features",
"def uA4Y(YKHO, bySB):\n pass",
"def M90w(YKHO):\n for bX3L, Wyuj in YKHO.feature_creators.items():\n ... | [
"0.64477503",
"0.6440563",
"0.64119697",
"0.61569864",
"0.6112001",
"0.6101296",
"0.60949934",
"0.6077937",
"0.6022143",
"0.5984989",
"0.59786856",
"0.5972495",
"0.59672904",
"0.5910809",
"0.59081984",
"0.5877332",
"0.58647245",
"0.5860706",
"0.58225346",
"0.58163923",
"0.581... | 0.6726443 | 0 |
unrolls text into a list of strings which correspond to a full tweet. | def RDRe(nPrm, bD7m):
print('here,', bD7m)
oSs6 = zcN6(nPrm['content'])
l5Ny = la1r(nPrm['content'])
'Where applicable, the images are associated with the text. This means, that to make an appropriate thread the\n conversion from a post to tweets should take into account how words relate to images in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hn4t(aWDa):\n Aofo = []\n for a1PO in aWDa:\n l5Ny = a1PO.text\n Aofo.append(wr3U(l5Ny))\n return Aofo",
"def JyHs(GmKk):\n Sl4g = ''\n for l5Ny in GmKk:\n Sl4g += ' ' + l5Ny['text']\n return Sl4g",
"def pWxl(YKHO, l5Ny: List[str]) -> x1iM[str]:\n if YKHO.case_fold... | [
"0.6838854",
"0.67346495",
"0.67160296",
"0.6444018",
"0.6378417",
"0.6356997",
"0.6327894",
"0.6310874",
"0.630833",
"0.62594146",
"0.611233",
"0.6088244",
"0.6070952",
"0.6053253",
"0.603181",
"0.60185105",
"0.60040486",
"0.5988074",
"0.5961798",
"0.59525454",
"0.5917379",
... | 0.0 | -1 |
Turn off the robot. | def Z_rv(YKHO):
YKHO.robot.stop_simulation() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.robot.pause_cleaning()\n ITS7.sleep(1)\n YKHO.robot.send_to_base()",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n with YKHO._wemo_call_wrapper('turn off'):\n YKHO.wemo.off()",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_... | [
"0.8336145",
"0.8030745",
"0.79974264",
"0.78690785",
"0.7825072",
"0.7775521",
"0.77530354",
"0.7712926",
"0.770361",
"0.76866096",
"0.767366",
"0.76457965",
"0.7621102",
"0.7618385",
"0.7584204",
"0.7565604",
"0.7558122",
"0.75331867",
"0.7519106",
"0.75005126",
"0.74990374... | 0.87365395 | 0 |
Creates a cache HTTP adapter that is based on an HAR file. | def FIMM(YKHO, gLDJ: Union[str, os.PathLike], Tuqy: str='r', ksfB: bool=True, uodt: bool=False, vlQi: bool=True, mLw2: bool=False, sROD: bool=True, byvg: bool=False, SHww: bool=True):
super(uZyS, YKHO).__init__(cache_path=gLDJ, is_active=ksfB, is_offline=uodt, is_passive=vlQi, delete_after_hit=mLw2, match_headers=s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(Emd4, KcEq):\n return Emd4(KcEq)",
"def FIMM(YKHO, KcEq=None, bIwZ=None):\n YKHO._mh = e89o.get_head()\n _Fei = YKHO._mh.cfg['Extensions']['Security']['zap']\n YKHO._path = _Fei['path']\n YKHO._host = _Fei['host'] if KcEq == None else KcEq\n YKHO._port = _Fei['port'] if bIwZ == None el... | [
"0.52153873",
"0.5195794",
"0.511849",
"0.511273",
"0.49947166",
"0.48670897",
"0.4835957",
"0.4829714",
"0.48049283",
"0.4769282",
"0.47304696",
"0.47250324",
"0.47057673",
"0.4686407",
"0.46752235",
"0.46411264",
"0.46192932",
"0.46022767",
"0.46016216",
"0.4598756",
"0.457... | 0.58262473 | 0 |
Creates a basic temporary Dataframe. | def YHUw(l5Ny):
NRu9 = rLdf.DataFrame({'Text': l5Ny})
NRu9['Textblob'] = NRu9.Text.apply(lambda WKvO: gmS1(WKvO).words)
NRu9['Textblob letters'] = NRu9.Text.apply(lambda WKvO: gmS1(WKvO))
GUN4(NRu9)
return NRu9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAVE(YKHO):\n return rLdf.DataFrame()",
"def fIqG():\n jQ3Z = rLdf.read_csv('data/data.csv', header=0)\n return jQ3Z",
"def yRdj() -> rLdf.DataFrame:\n jQ3Z = rLdf.DataFrame(oyIN.random.randint(0, 1000, size=(1000, 6)), columns=list('ABCDEF'))\n return jQ3Z",
"def u0uv(nPrm, d6pt, ZLJ_):\n... | [
"0.788363",
"0.76603526",
"0.75073683",
"0.7406752",
"0.73869634",
"0.7158786",
"0.71124107",
"0.6949863",
"0.69242924",
"0.69124305",
"0.6900226",
"0.68561316",
"0.68437433",
"0.6797788",
"0.6744064",
"0.67161137",
"0.67070526",
"0.66951007",
"0.6638634",
"0.66300553",
"0.65... | 0.0 | -1 |
Initializes the model for inference | def uIcm(YKHO, g4y1, x6A0, Aak1=None, LT6S=False, jYCJ=False):
if g4y1 is None:
raise ValueError('no mel inputs were provided')
if x6A0 is None:
raise ValueError('no targets were provided')
if LT6S and jYCJ:
raise RuntimeError('Model can not be in training and evaluation modes at the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstraps is not None:\n na1r.info('Bootstrapping Data.')\n YKHO.bootstrap_data()",
"def BHRt(YKHO):\n YKHO.model = VUcl(YKHO.opt.src_vocab_size, YKHO.opt.tgt_vocab_size, YKHO.... | [
"0.77388865",
"0.7733035",
"0.77288723",
"0.7709415",
"0.7434866",
"0.74056685",
"0.7299107",
"0.72774976",
"0.72072476",
"0.7196222",
"0.71950203",
"0.7193359",
"0.71804464",
"0.71759915",
"0.7116742",
"0.71065223",
"0.7087477",
"0.7058084",
"0.7048983",
"0.70424134",
"0.702... | 0.6619806 | 59 |
This viewset should return active retreats except if the currently authenticated user is an admin (is_staff). | def k66M(YKHO):
if YKHO.request.user.is_staff:
SR0I = kH0B.objects.all()
else:
SR0I = kH0B.objects.filter(is_active=True, hidden=False)
SR0I = SR0I.filter(hide_from_client_admin_panel=False)
SR0I = SR0I.annotate(max_end_date=VYxc('retreat_dates__end_time'), min_start_date=XgIN('retreat_d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n umWR = super(zIgr, YKHO).get_queryset()\n CBIr = eAW2.target_user(YKHO.request)\n return umWR.filter_by_user(CBIr)",
"def k66M(YKHO):\n umWR = super(dJEO, YKHO).get_queryset()\n CBIr = eAW2.target_user(YKHO.request)\n return umWR.filter_by_user(CBIr)",
"def k66M(YKHO):\n ... | [
"0.7074667",
"0.70013356",
"0.6933086",
"0.6914541",
"0.6852013",
"0.66941756",
"0.66618705",
"0.6619982",
"0.65279347",
"0.65081805",
"0.64499897",
"0.64499897",
"0.6402607",
"0.63944495",
"0.6348768",
"0.634558",
"0.6330448",
"0.6316748",
"0.6316748",
"0.63040715",
"0.63037... | 0.5871193 | 47 |
Set the person's first and last name. | def FIMM(YKHO, c9ua: str, zp3f: str):
YKHO.first_name = c9ua
YKHO.last_name = zp3f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McTO(YKHO, QBRK):\n YKHO.firstName = QBRK",
"def WZrJ(YKHO):\n if YKHO.first_name and YKHO.last_name:\n BwJC = '%s' % YKHO.first_name\n BwJC += ' %s' % YKHO.last_name\n YKHO.name = BwJC\n if YKHO.name:\n if not YKHO.first_name and (not YKHO.last_name):\n exwG =... | [
"0.78833973",
"0.7838523",
"0.7745429",
"0.7692473",
"0.72249186",
"0.7191226",
"0.7191226",
"0.7108807",
"0.7077369",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.68862206",
"0.67758846",
"0.676845",
"0.67... | 0.6311231 | 40 |
Check if a value is iterable (list), but not a string. | def OezP(BWXx):
try:
iter(BWXx)
if not isinstance(BWXx, jKi7.string_types):
return True
else:
return False
except Exception as e:
pass
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKQ6(BWXx):\n if isinstance(BWXx, str):\n return False\n if hasattr(BWXx, '__iter__'):\n return True\n if isinstance(BWXx, g760.abc.Sequence):\n return True\n return False",
"def a0Kp(d7pR):\n return (hasattr(d7pR, '__iter__') or hasattr(d7pR, '__getattr__')) and (not isin... | [
"0.8629848",
"0.8246705",
"0.8232006",
"0.79706347",
"0.78823954",
"0.77507603",
"0.77311957",
"0.7725309",
"0.769776",
"0.76054233",
"0.7603221",
"0.75419855",
"0.7442928",
"0.74428666",
"0.7396554",
"0.7388348",
"0.73615086",
"0.7309994",
"0.72906005",
"0.7242019",
"0.72372... | 0.82447064 | 2 |
Fixture for mocking requests.get. | def QmTQ(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'daily': {'1595808000000': 100, '1595721600000': 120, '1595635200000': 110}, 'average': {'1595808000000': 100, '1595721600000': 110, '1595635200000': 104}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.68... | 0.6773327 | 24 |
Fixture for mocking requests.get. | def U1F7(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'daily': {'not_an_epoch': 100, '1595721600000': 120, '1595635200000': 110}, 'average': {'1595808000000': 100, '1595721600000': 110, '1595635200000': 104}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.68... | 0.61365664 | 95 |
Fixture for mocking requests.get. | def QmTQ(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'types': [], 'alpha': [{'letter': '#', 'items': 0}, {'letter': 'a', 'items': 4}, {'letter': 'j', 'items': 2}]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.6855003",
"0.682... | 0.70216346 | 13 |
Fixture for mocking requests.get. | def QmTQ(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'total': 97, 'items': [{'icon': '', 'icon_large': '', 'id': 1, 'type': 'Familiars', 'typeIcon': '', 'name': 'Thing', 'description': 'A thing', 'current': {'trend': 'neutral', 'price': 100}, 'tod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.68... | 0.65270334 | 47 |
Fixture for mocking requests.get. | def U1F7(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'total': 97, 'items': [{'icon': '', 'icon_large': '', 'id': 1, 'type': 'Familiars', 'typeIcon': '', 'name': 'Thing', 'description': 'A thing', 'current': {'trend': 'neutral', 'price': '4.2t'}, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.68... | 0.64119196 | 59 |
Fixture for mocking requests.get. | def QmTQ(YKHO, AZgw):
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.json.return_value = {'item': {'icon': '', 'icon_large': '', 'id': 21787, 'type': 'Miscellaneous', 'typeIcon': '', 'name': 'Steadfast boots', 'description': 'A pair of powerful-looking boots.', 'current': {'trend': '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68768066",
"0.6855003",
"0.682... | 0.68866414 | 18 |
Fixture for mocking requests.get. | def L4w5(YKHO, AZgw):
def bqDz():
raise G4JS.HTTPError
TMAJ = AZgw.patch('requests.get')
TMAJ.return_value.__enter__.return_value.raise_for_status.side_effect = bqDz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy.status_code == 200\n assert Mkmy... | [
"0.7568971",
"0.75343007",
"0.7494889",
"0.74829966",
"0.74620914",
"0.73680013",
"0.7335334",
"0.7243414",
"0.7223257",
"0.7158435",
"0.7128194",
"0.71134096",
"0.70378447",
"0.70216346",
"0.6986232",
"0.68972003",
"0.68916553",
"0.6891631",
"0.68866414",
"0.68768066",
"0.68... | 0.0 | -1 |
Test renaming columns in a data frame with duplicate column names. | def ad_U(Zh5O):
AjzU = TNuv(Zh5O, columns='Name', names='Person')
assert AjzU.columns[0] == 'Person'
assert Zh5O.columns[0] == 'Name'
assert AjzU.columns[1] == 'A'
assert AjzU.columns[2] == 'A'
for fvDH in AjzU.columns:
assert isinstance(fvDH, OciN)
assert AjzU.shape == (7, 3)
Aj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iapY(ZI14: str) -> None:\n pmON = BnYY / wyoM\n jQ3Z = qXKm(pmON.with_suffix(ZI14), 1)\n assert isinstance(jQ3Z, rLdf.DataFrame)\n assert len(jQ3Z.columns) == 4\n assert 'website.1' in jQ3Z.columns",
"def iXYl(Zh5O):\n with trZe.raises(ValueError):\n TNuv(Zh5O, columns='Name', names=... | [
"0.7377957",
"0.72185993",
"0.713909",
"0.6914577",
"0.6852343",
"0.67460626",
"0.6673696",
"0.665487",
"0.6567712",
"0.6522969",
"0.647519",
"0.645901",
"0.6456079",
"0.64481306",
"0.64196503",
"0.63319165",
"0.6326535",
"0.632065",
"0.6305097",
"0.62651145",
"0.6187215",
... | 0.7988582 | 0 |
Finds the first iterated number greater than cap | def WBO3(Fd1k):
for WKvO in pTnf():
if WKvO > Fd1k:
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IDsK(LpID):\n ewCu = 0\n for YRbF in kU2h(LpID):\n if YRbF <= TW6e(LpID):\n ewCu += 1\n return ewCu",
"def LJE9(BWXx, qoqK):\n return BWXx <= qoqK",
"def fn_k(BWXx, eKbg):\n for YRbF in eKbg:\n if YRbF < BWXx:\n return YRbF\n raise NameError('No value')... | [
"0.6351483",
"0.6168543",
"0.61084723",
"0.6101938",
"0.6082835",
"0.6043279",
"0.6039842",
"0.5966022",
"0.59469485",
"0.59140044",
"0.5901743",
"0.5868859",
"0.58653957",
"0.5860607",
"0.5852442",
"0.58481956",
"0.58087164",
"0.57851624",
"0.5770347",
"0.576802",
"0.5763773... | 0.7898799 | 0 |
Returns the transport used by the client instance. | def PdI0(YKHO) -> z0gP:
return YKHO._client.transport | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdI0(YKHO):\n return YKHO._transport",
"def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport",
"def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport",
"def PdI0(Y... | [
"0.82946277",
"0.7887542",
"0.773594",
"0.773068",
"0.76806635",
"0.7674273",
"0.76357967",
"0.7558095",
"0.7551682",
"0.75303864",
"0.74958986",
"0.7488142",
"0.7436853",
"0.7423566",
"0.73340607",
"0.721926",
"0.7109823",
"0.7102308",
"0.68808985",
"0.68144",
"0.6671675",
... | 0.7368433 | 14 |
Gets the signature of this CancelClaimRequest. | def aadv(YKHO) -> object:
return YKHO._signature | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def vRH4(YKHO):\n return YKHO._sign_request",
"def QnqB(YKHO) -> str:\n return YKHO._claim_req_... | [
"0.63963515",
"0.6279561",
"0.6279561",
"0.6279561",
"0.5834911",
"0.5796269",
"0.57405317",
"0.5718661",
"0.565192",
"0.54762757",
"0.5463392",
"0.5448076",
"0.5425684",
"0.53981686",
"0.53524137",
"0.5338279",
"0.529154",
"0.52789414",
"0.52677083",
"0.52677083",
"0.5263368... | 0.6135696 | 5 |
Sets the signature of this CancelClaimRequest. | def aadv(YKHO, aadv: object):
YKHO._signature = aadv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def FIMM(YKHO, aadv: object=None, BvDG: str=None, zAlC: AllOfCancelClaimRequestParticipant=None, lo9Y: ConfirmClaimRequestpropertiesReason=None):\n YKHO.swagger_types = {'signature': object, 'claim_id':... | [
"0.6114562",
"0.6114562",
"0.60749125",
"0.55958617",
"0.546195",
"0.5417356",
"0.528371",
"0.5159854",
"0.5159685",
"0.5132778",
"0.5073395",
"0.50044507",
"0.497432",
"0.4832487",
"0.4832487",
"0.47977144",
"0.4747129",
"0.47315794",
"0.47188556",
"0.4714105",
"0.46284205",... | 0.61430365 | 1 |
Gets the claim_id of this CancelClaimRequest. | def BvDG(YKHO) -> str:
return YKHO._claim_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAlC(YKHO) -> taV9:\n return YKHO._participant",
"def BvDG(YKHO, BvDG: str):\n if BvDG is None:\n raise ValueError('Invalid value for `claim_id`, must not be `None`')\n YKHO._claim_id = BvDG",
"def BvDG(YKHO, BvDG: str):\n if BvDG is None:\n raise ValueError('Invalid value for `cl... | [
"0.65584064",
"0.53480613",
"0.53480613",
"0.5325822",
"0.52917284",
"0.51542556",
"0.51258606",
"0.5120093",
"0.5110072",
"0.50802976",
"0.5056338",
"0.5052991",
"0.49733397",
"0.49415457",
"0.49334362",
"0.49256182",
"0.49254164",
"0.49254164",
"0.49254164",
"0.49244657",
"... | 0.7223548 | 1 |
Gets the participant of this CancelClaimRequest. | def zAlC(YKHO) -> taV9:
return YKHO._participant | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAlC(YKHO) -> dUAa:\n return YKHO._participant",
"def zAlC(YKHO, zAlC: AllOfCancelClaimRequestParticipant):\n if zAlC is None:\n raise ValueError('Invalid value for `participant`, must not be `None`')\n YKHO._participant = zAlC",
"def JYl0(YKHO):\n return YKHO.data['id']",
"def BvDG(YK... | [
"0.67635447",
"0.608266",
"0.5839472",
"0.5598538",
"0.5598538",
"0.5555457",
"0.5507715",
"0.5454061",
"0.51445997",
"0.5135461",
"0.5093453",
"0.4875301",
"0.48209915",
"0.48058555",
"0.4664206",
"0.4650998",
"0.46476087",
"0.4646766",
"0.46417183",
"0.46295804",
"0.4615743... | 0.8644753 | 0 |
returns all of the fun holidays that are today | def yo7_():
ZZBU = QePW.date
yo7_ = qcWV.date.today()
print(QePW.headers, QePW.url)
print(ZZBU)
print(yo7_)
CjKC = yo7_.day
x0eS = yo7_.month
rhBO = Kdwf(x0eS, CjKC)
return pz3A({'day': CjKC, 'month': x0eS, 'holidays': [MKlR.holiday for MKlR in rhBO]}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTNY(YKHO, lO87=qcWV.date.today().year):\n rhBO = {}\n for x0eS in KjD4:\n rhBO[x0eS] = []\n for CjKC in KjD4[x0eS]:\n rhBO[x0eS].append(CjKC)\n o4qF = d5IO.easter.easter(lO87)\n RBrg = o4qF + qcWV.timedelta(days=1)\n rhBO[o4qF.month].append(o4qF.day)\n rhBO[RBrg.mont... | [
"0.71569973",
"0.69837356",
"0.68727076",
"0.6681503",
"0.66613513",
"0.6647291",
"0.65118",
"0.6421551",
"0.64042956",
"0.6357339",
"0.63536423",
"0.63488454",
"0.62705237",
"0.6259649",
"0.62439466",
"0.62315094",
"0.6136877",
"0.6122545",
"0.611975",
"0.61050385",
"0.60878... | 0.66918874 | 3 |