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 |
|---|---|---|---|---|---|---|
Gets the user_version from the db and checks to see if it matches the current schema number | def vSHi(YKHO):
DpUl = YKHO.conn.cursor()
ZlgM = 'PRAGMA user_version'
U34r = DpUl.execute(ZlgM)
return MxjM == U34r.fetchone()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jumC(YKHO):\n N1p7 = YKHO.dbconn.execute('PRAGMA user_version')\n return N1p7.fetchone()[0]",
"def kaPv(YKHO):\n DpUl = YKHO.conn.cursor()\n ZlgM = 'PRAGMA user_version'\n U34r = DpUl.execute(ZlgM)\n return U34r.fetchone()[0]",
"def QSFo(N5CR):\n from banana.models import Version\n ... | [
"0.7893351",
"0.750246",
"0.70538443",
"0.70294785",
"0.69240427",
"0.6876734",
"0.68264973",
"0.66966707",
"0.6595091",
"0.657601",
"0.65642613",
"0.65343344",
"0.6522326",
"0.65207523",
"0.6512968",
"0.6457431",
"0.64339197",
"0.63961726",
"0.6384187",
"0.63740647",
"0.6368... | 0.74770373 | 2 |
Return receive sequence number | def U01D(YKHO, z_0e):
lSfG = 224
lTPL = z_0e & lSfG
return lTPL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Px4Q(Emd4):\n Emd4.msg_seq += 1\n return Emd4.msg_seq",
"def aWuw(YKHO):\n return YKHO._message.get('seq', None)",
"def zIFP(YKHO):\n with YKHO.sequencer_lock:\n YKHO.sequencer += 1\n if YKHO.sequencer == WjY0.MAX_SEQUENCE_NUMBER:\n YKHO.time_of_boot = int(ITS7.time())\... | [
"0.76212823",
"0.7381568",
"0.72199607",
"0.7206235",
"0.7206235",
"0.7160334",
"0.71032894",
"0.7044367",
"0.68751556",
"0.6847529",
"0.6825783",
"0.6776758",
"0.6776758",
"0.6705128",
"0.669821",
"0.6672267",
"0.66388565",
"0.6628189",
"0.6579701",
"0.6553806",
"0.6545264",... | 0.0 | -1 |
| Object containing the billing address details of the customer | def h7Bq(YKHO):
return YKHO.__billing_address | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h7Bq(YKHO):\n return YKHO._billing_address",
"def h7Bq(YKHO):\n return YKHO._billing_address",
"def cBXZ(YKHO):\n return YKHO._billing_address1",
"def EiV0(YKHO, ajs2):\n h7Bq = ajs2\n h7Bq.firstName = ' '.join(YKHO.payment_info.data.get('full_name', '').split(' ')[:-1])[:50]\n h7Bq.las... | [
"0.7852321",
"0.7852321",
"0.76029253",
"0.7355645",
"0.7290043",
"0.7284428",
"0.7215873",
"0.72106034",
"0.7147568",
"0.7115343",
"0.71146834",
"0.71032",
"0.71032",
"0.6991864",
"0.67935175",
"0.67912406",
"0.67286617",
"0.65567666",
"0.6519938",
"0.65047127",
"0.64986324"... | 0.7944141 | 0 |
| Object containing the account details | def abpc(YKHO):
return YKHO.__customer_account | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGGk(YKHO):\n geh0 = YKHO.request.get('/accounts')\n return geh0.json()",
"def VRAt() -> ILYK:\n return rKML()",
"def ZrNc():\n return tHSi",
"def AmjW(YKHO) -> dict:\n bD7m = TDhU(YKHO.API_URL, 'v2/account')\n geh0 = YKHO.session.get(bD7m)\n return YKHO._handle_response(geh0)",
"d... | [
"0.8134664",
"0.7565741",
"0.75394094",
"0.7531824",
"0.7506139",
"0.7462632",
"0.7462632",
"0.74368685",
"0.73901635",
"0.7354909",
"0.7353268",
"0.73394847",
"0.73262316",
"0.73124754",
"0.7310799",
"0.72852194",
"0.7279897",
"0.72549057",
"0.7240912",
"0.7225181",
"0.71955... | 0.0 | -1 |
A Symbol is just an Expr with no args. | def wZLS(mWFP):
return EWKA(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o61b() -> wZLS:\n return wZLS()",
"def SqXi(YKHO):\n pass",
"def FIMM(YKHO, o61b):\n tPEx.__init__(YKHO, None)\n YKHO.symbol = o61b\n YKHO.basetype = o61b.basetype",
"def gsGt(Emd4, o61b, vI3f=0):\n\n def PcO0(YKHO):\n return YKHO\n return Emd4.register(o61b, label='operator',... | [
"0.7064122",
"0.6942977",
"0.68939066",
"0.6663481",
"0.65787613",
"0.6515753",
"0.65091634",
"0.64146274",
"0.6372903",
"0.6352399",
"0.6269265",
"0.61625373",
"0.6146608",
"0.6016662",
"0.6008572",
"0.60039496",
"0.5914145",
"0.58950883",
"0.5894647",
"0.58931303",
"0.58781... | 0.78644115 | 0 |
Return a tuple of Symbols; names is a comma/whitespace delimited str. | def rmc3(ZWCE):
return tuple((wZLS(mWFP) for mWFP in ZWCE.replace(',', ' ').split())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rmc3(*ZWCE, **B2fa):\n ROpF = B2fa.pop('shape', ())\n KCHu = ZWCE[0]\n if not isinstance(KCHu, list):\n import re\n KCHu = re.split('\\\\s|,', KCHu)\n Ylbp = []\n for a1PO in KCHu:\n if not a1PO:\n continue\n aDi_ = wZLS(a1PO, ROpF, **B2fa)\n Ylbp.ap... | [
"0.7310302",
"0.7266267",
"0.62656426",
"0.6182687",
"0.6077786",
"0.6047932",
"0.596457",
"0.58881027",
"0.586006",
"0.58275974",
"0.5741845",
"0.5723827",
"0.56461644",
"0.56434447",
"0.56376725",
"0.5636544",
"0.56333",
"0.5620161",
"0.56124175",
"0.56021816",
"0.5596036",... | 0.8758763 | 0 |
Returns an appropriate Docker image URI for a project based on the git hash of the specified working directory. | def dsbo(mWFP: Optional[str], BuX_: str, r8m5: str) -> str:
mWFP = mWFP.replace(' ', '-') if mWFP else 'wandb-launch'
QtSq = KjAC(BuX_).last_commit
IexU = ':' + str(QtSq[:7]) + r8m5 if QtSq else ':' + r8m5
return mWFP + IexU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IhLb(YKHO):\n if YKHO.is_type('gitlab'):\n aPyy = list(KVWQ(X8Rg.gitlab_base_url))\n aPyy[1] = 'oauth2:{token_key}@%s' % aPyy[1]\n aPyy[2] = '%s.git' % YKHO.gitlab_repo_id\n return Hfci(aPyy)\n elif YKHO.is_type('github'):\n return 'https://oauth2:{token_key}@github.com... | [
"0.6091899",
"0.606604",
"0.6022273",
"0.5961784",
"0.5829099",
"0.57402223",
"0.5739858",
"0.56979495",
"0.56780326",
"0.5639629",
"0.5616709",
"0.5613865",
"0.55914396",
"0.5588229",
"0.5574375",
"0.5570955",
"0.55626255",
"0.5554121",
"0.55517566",
"0.55332136",
"0.5533213... | 0.7560409 | 0 |
Return a shellescaped string from split_command. | def gzes(c6Rs: List[str]) -> str:
return ' '.join((URgV.quote(d7pR) for d7pR in c6Rs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uI27(YKHO):\n return ' '.join(map(jKi7.moves.shlex_quote, YKHO.command))",
"def c6Rs(YKHO, zFiD):\n s2mk = URgV.split(zFiD)\n return (s2mk[0], [] if len(s2mk) == 1 else s2mk[1:])",
"def uI27(YKHO):\n return ' '.join(YKHO.command)",
"def lwXI(oUZx: str) -> laHg.List[str]:\n return URgV.spli... | [
"0.63196146",
"0.6276725",
"0.6243063",
"0.60909176",
"0.6011814",
"0.5994306",
"0.5963669",
"0.5954644",
"0.59431565",
"0.58123696",
"0.5757313",
"0.57566476",
"0.5749343",
"0.5714792",
"0.571438",
"0.57102734",
"0.56510353",
"0.56410813",
"0.5625006",
"0.5606882",
"0.560522... | 0.6211971 | 3 |
Add randomness (jitter) to a models parameters. Randomness is drawn from a normal distribution with mean `mean` and standard deviation `sd`. This method works inplace on the model which is passed. | def RKHg(C3ST: gpflow.models.Model, JBMS: float=0, ifkm: float=0.1) -> None:
for LZi0, vRBi in C3ST.read_values().items():
C3ST.assign({LZi0: vRBi + oyIN.random.normal(loc=JBMS, scale=ifkm)}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dLbY(YKHO, ee6l=0.5):\n es3T = YKHO.get_random_trainable_parameters(ee6l)\n YKHO.set_model_parameters(es3T)",
"def d0w9(YKHO, ARTs):\n with ht2j.no_grad():\n for xqoZ in YKHO.actor_local.parameters():\n xqoZ.add_(ht2j.randn(xqoZ.size()).to(begE) * ARTs)\n for xqoZ in YKHO.cr... | [
"0.65703183",
"0.65697485",
"0.64946103",
"0.63640964",
"0.6130461",
"0.6092749",
"0.6084975",
"0.5962365",
"0.59225416",
"0.5915038",
"0.5895087",
"0.5834113",
"0.5832288",
"0.5818924",
"0.5798218",
"0.57853985",
"0.5780208",
"0.5771692",
"0.5771692",
"0.5771692",
"0.5760289... | 0.8009819 | 0 |
Convert Arrow extension type to corresponding Pandas dtype. | def WXmu(YKHO):
from ray.air.util.tensor_extensions.pandas import TensorDtype
return TensorDtype(YKHO._shape, YKHO.storage_type.value_type.to_pandas_dtype()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WXmu(YKHO):\n from ray.air.util.tensor_extensions.pandas import TensorDtype\n return TensorDtype((None,) * YKHO.ndim, YKHO.storage_type['data'].type.value_type.to_pandas_dtype())",
"def BUGY(yDqo: Type[Any]) -> 'pa.lib.DataType':\n try:\n return TYhK[yDqo]\n except KeyError:\n raise... | [
"0.69996166",
"0.6913272",
"0.66379297",
"0.65744275",
"0.642164",
"0.63634837",
"0.6334366",
"0.6307267",
"0.6224309",
"0.6218998",
"0.61501765",
"0.61036944",
"0.6089255",
"0.60891825",
"0.6067098",
"0.6064232",
"0.60246134",
"0.60149556",
"0.5964458",
"0.59283894",
"0.5914... | 0.7105989 | 0 |
Convert an ndarray or an iterable of ndarrays to an array of homogeneoustyped tensors. If given fixedshape tensor elements, this will return an ``ArrowTensorArray``; if given variableshape tensor elements, this will return an ``ArrowVariableShapedTensorArray``. | def dTl1(Emd4, ezWE: Union[np.ndarray, Iterable[np.ndarray]]) -> uLKX['ArrowTensorArray', 'ArrowVariableShapedTensorArray']:
if isinstance(ezWE, (list, tuple)) and ezWE and isinstance(ezWE[0], oyIN.ndarray):
try:
ezWE = oyIN.stack(ezWE, axis=0)
except ValueError:
ezWE = oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dTl1(Emd4, ezWE: Union[np.ndarray, List[np.ndarray], Tuple[np.ndarray]]) -> 'ArrowVariableShapedTensorArray':\n if not isinstance(ezWE, (list, tuple, oyIN.ndarray)):\n raise ValueError(f'ArrowVariableShapedTensorArray can only be constructed from an ndarray or a list/tuple of ndarrays, but got: {type... | [
"0.66466063",
"0.6419684",
"0.60632485",
"0.5717954",
"0.56786776",
"0.5667798",
"0.5660897",
"0.56443816",
"0.56065995",
"0.5572897",
"0.5568844",
"0.552789",
"0.55095315",
"0.5509511",
"0.54888046",
"0.54750496",
"0.5472236",
"0.545937",
"0.54100436",
"0.54083365",
"0.54038... | 0.6507438 | 1 |
Helper for getting either an element of the array of tensors as an ndarray, or the entire array of tensors as a single ndarray. | def vuQn(YKHO, d6pt: Optional[int]=None, YOP5: bool=False):
RX56 = YKHO.buffers()
aJHp = RX56[3]
pplY = YKHO.storage.type
fX1C = pplY.value_type
Ctj0 = fX1C.to_pandas_dtype()
ROpF = YKHO.type.shape
if Xugt.types.is_boolean(fX1C):
lC0v = fX1C.bit_width
else:
lC0v = fX1C.bi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHwO(WKvO: Union[np.ndarray, to.Tensor]) -> uLKX[oyIN.ndarray, Br5Q.Tensor]:\n if not isinstance(WKvO, (oyIN.ndarray, Br5Q.Tensor)):\n raise pWOL.TypeErr(given=WKvO, expected_type=(oyIN.ndarray, Br5Q.Tensor))\n return WKvO.T if WKvO.shape[0] == 1 else WKvO",
"def pMsC(WKvO):\n return WKvO.num... | [
"0.6869202",
"0.66154474",
"0.6487597",
"0.6316952",
"0.6285501",
"0.61827034",
"0.61671627",
"0.6080584",
"0.60774153",
"0.6023255",
"0.60185635",
"0.59781396",
"0.5972813",
"0.5963845",
"0.5954679",
"0.5930501",
"0.59097326",
"0.5908176",
"0.5894491",
"0.5881285",
"0.586983... | 0.0 | -1 |
Convert the entire array of tensors into a single ndarray. | def WTDd(YKHO, YOP5: bool=True):
return YKHO._to_numpy(zero_copy_only=YOP5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMsC(WKvO):\n return WKvO.numpy()",
"def MD8Z(gyIm):\n return ht2j.Tensor(oyIN.transpose(gyIm, (2, 0, 1)))",
"def HXuo(cRc2):\n return [YRbF.numpy() if isinstance(YRbF, (ZylS.Variable, ZylS.Tensor)) else YRbF for YRbF in cRc2]",
"def WTDd(ezWE: Union[ndarray, Tensor], m_uq=oyIN.float32) -> gyIm:... | [
"0.7101317",
"0.6897887",
"0.678155",
"0.67003787",
"0.6680519",
"0.66464055",
"0.6636245",
"0.65682685",
"0.6568106",
"0.65661496",
"0.6561921",
"0.6552524",
"0.6549244",
"0.65403223",
"0.65398115",
"0.6538442",
"0.65176165",
"0.64753354",
"0.64619106",
"0.6457261",
"0.64381... | 0.0 | -1 |
Convert Arrow extension type to corresponding Pandas dtype. | def WXmu(YKHO):
from ray.air.util.tensor_extensions.pandas import TensorDtype
return TensorDtype((None,) * YKHO.ndim, YKHO.storage_type['data'].type.value_type.to_pandas_dtype()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WXmu(YKHO):\n from ray.air.util.tensor_extensions.pandas import TensorDtype\n return TensorDtype(YKHO._shape, YKHO.storage_type.value_type.to_pandas_dtype())",
"def BUGY(yDqo: Type[Any]) -> 'pa.lib.DataType':\n try:\n return TYhK[yDqo]\n except KeyError:\n raise ValueError(f'Cannot ... | [
"0.7105989",
"0.6913272",
"0.66379297",
"0.65744275",
"0.642164",
"0.63634837",
"0.6334366",
"0.6307267",
"0.6224309",
"0.6218998",
"0.61501765",
"0.61036944",
"0.6089255",
"0.60891825",
"0.6067098",
"0.6064232",
"0.60246134",
"0.60149556",
"0.5964458",
"0.59283894",
"0.59146... | 0.69996166 | 1 |
Helper for getting either an element of the array of tensors as an ndarray, or the entire array of tensors as a single ndarray. | def vuQn(YKHO, d6pt: Optional[int]=None, YOP5: bool=False):
if d6pt is None:
XoB7 = [YKHO._to_numpy(YRbF, YOP5) for YRbF in range(len(YKHO))]
return iRD8(XoB7)
nPrm = YKHO.storage.field('data')
N8OZ = YKHO.storage.field('shape')
ROpF = N8OZ[d6pt].as_py()
fX1C = nPrm.type.value_type
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHwO(WKvO: Union[np.ndarray, to.Tensor]) -> uLKX[oyIN.ndarray, Br5Q.Tensor]:\n if not isinstance(WKvO, (oyIN.ndarray, Br5Q.Tensor)):\n raise pWOL.TypeErr(given=WKvO, expected_type=(oyIN.ndarray, Br5Q.Tensor))\n return WKvO.T if WKvO.shape[0] == 1 else WKvO",
"def pMsC(WKvO):\n return WKvO.num... | [
"0.6869668",
"0.66162187",
"0.6487455",
"0.6317534",
"0.62847805",
"0.61838794",
"0.6165505",
"0.60794085",
"0.60759825",
"0.60243964",
"0.60187614",
"0.597717",
"0.5973151",
"0.59615266",
"0.5953996",
"0.5930429",
"0.5909156",
"0.5907508",
"0.58943963",
"0.5879735",
"0.58698... | 0.0 | -1 |
Convert the entire array of tensors into a single ndarray. | def WTDd(YKHO, YOP5: bool=True):
return YKHO._to_numpy(zero_copy_only=YOP5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMsC(WKvO):\n return WKvO.numpy()",
"def MD8Z(gyIm):\n return ht2j.Tensor(oyIN.transpose(gyIm, (2, 0, 1)))",
"def HXuo(cRc2):\n return [YRbF.numpy() if isinstance(YRbF, (ZylS.Variable, ZylS.Tensor)) else YRbF for YRbF in cRc2]",
"def WTDd(ezWE: Union[ndarray, Tensor], m_uq=oyIN.float32) -> gyIm:... | [
"0.7103488",
"0.689788",
"0.6784635",
"0.6701074",
"0.66770345",
"0.66481227",
"0.66358966",
"0.65671986",
"0.65667456",
"0.65664554",
"0.65610635",
"0.655247",
"0.65497226",
"0.6540826",
"0.65390337",
"0.653717",
"0.6518689",
"0.6474484",
"0.6462101",
"0.64558905",
"0.644134... | 0.0 | -1 |
Check if the provided tensor element is contiguous with the previous tensor element. | def p179(ZbOB: np.ndarray, THkp: Optional[np.ndarray]) -> bool:
if ZbOB.base is None or not ZbOB.data.c_contiguous or (THkp is not None and ZbOB.base is not THkp.base):
return False
elif THkp is not None and LJK3(ZbOB) - LJK3(THkp) != THkp.base.dtype.itemsize * THkp.size:
return False
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKvG(YKHO):\n return YKHO._array.strides[1] // YKHO._array.itemsize == 1",
"def QOYL(YKHO):\n return False",
"def xtKo(YKHO):\n return not PsOK.is_c_contiguous(YKHO.ai_)",
"def Ow43(YKHO, input):\n zNig = input.size(-1)\n VUxu = oyIN.triu(oyIN.ones((1, zNig, zNig)), k=1).astype('uint8')\n ... | [
"0.6632258",
"0.662608",
"0.63114727",
"0.62501997",
"0.61273134",
"0.60700893",
"0.60439",
"0.5975496",
"0.59734464",
"0.5841753",
"0.58332455",
"0.5810703",
"0.5735754",
"0.56788826",
"0.5672166",
"0.5662502",
"0.56443876",
"0.5592574",
"0.5587365",
"0.5584756",
"0.5568524"... | 0.6991341 | 0 |
Return an error object for use in the errors key of the response. | def Zhto(JZXy, aeup, Wxnj):
qwha = {}
qwha['source'] = JZXy
qwha['detail'] = aeup
if Wxnj:
qwha['code'] = Wxnj
return qwha | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CtsV(tTpl):\n return {'errors': [{'code': tTpl.code, 'title': tTpl.title, 'details': tTpl.details, 'href': tTpl.href}], 'message': 'Some errors were found during the execution of this request'}",
"def g_5n(YKHO, geh0):\n if 'Error' in geh0:\n return geh0['Error']['Message'] if 'Message' in geh0[... | [
"0.7674832",
"0.7620131",
"0.74935097",
"0.73361737",
"0.73087853",
"0.7269304",
"0.7237814",
"0.72315377",
"0.72076267",
"0.72016466",
"0.7193367",
"0.71875817",
"0.7163004",
"0.71300197",
"0.7118011",
"0.71098775",
"0.71026164",
"0.70843786",
"0.70800203",
"0.70663834",
"0.... | 0.67574495 | 57 |
Custom API error response format. { | def s1zX(geh0):
V2h5 = {}
V2h5['code'] = geh0.status_code
V2h5['status'] = VLTN(geh0.status_code)
V2h5['errors'] = WJIV(geh0.data)
geh0.data = V2h5
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def isYT(Ol8d, VrDF='ValidationError', Wxnj=cwhV['ERROR']):\n XObx = {}\n XObx['data'] = {}\n XObx['errors'] = [{'message': Ol8d, 'name': VrDF}]\n return gJfj(XObx, Wxnj)",
"def Xvu9(JBZA):\n return {'status': 'error', 'error': JBZA}",
"def HbrT(YKHO, Ol8d, Wxnj, **dDGN):\n geh0 = dict(**dDGN... | [
"0.80276203",
"0.7708406",
"0.7684256",
"0.7644314",
"0.7579204",
"0.75708556",
"0.7442907",
"0.7429534",
"0.73645794",
"0.73212373",
"0.73212373",
"0.72946733",
"0.7263185",
"0.7213519",
"0.7208701",
"0.71886957",
"0.71452135",
"0.7136133",
"0.7134158",
"0.7126448",
"0.71227... | 0.74265075 | 8 |
Compare two iterables, returning true if all elements are the same and false otherwise. Nesting is supported. | def i031(jzdc, Fg_i):
from functools import reduce
aA2e = lambda WKvO, LVAh: WKvO & LVAh
if isinstance(jzdc, tuple) or isinstance(jzdc, list):
return reduce(aA2e, map(i031, jzdc, Fg_i))
elif isinstance(jzdc, str):
return jzdc == Fg_i
else:
return oyIN.all(oyIN.isclose(jzdc, F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OFYF(jzdc, Fg_i) -> bool:\n if len(jzdc) != len(Fg_i):\n return False\n return all((WKvO == LVAh for WKvO, LVAh in zip(jzdc, Fg_i)))",
"def xa14(YKHO, Elif):\n return all((jzdc == Fg_i for jzdc, Fg_i in DMWo(YKHO, Elif)))",
"def ac8g(jzdc, Fg_i) -> bool:\n if len(jzdc) != len(Fg_i):\n ... | [
"0.81970364",
"0.7394052",
"0.7369745",
"0.7355652",
"0.7320522",
"0.7101573",
"0.7072335",
"0.7064253",
"0.70346195",
"0.70282304",
"0.7001166",
"0.7001166",
"0.698903",
"0.6984212",
"0.6959976",
"0.69033766",
"0.69001716",
"0.68802524",
"0.6825938",
"0.68075776",
"0.6785652... | 0.0 | -1 |
Initializes optimizers for training. This function should be called within `strategy.scope()` if using | def RH1P(YKHO, CJym: int, n0LK: int, nopK: int, _dbz: int, Pv40: Optional[int]=0, F1pw: Optional[float]=1.0) -> cuzp[I2jr, ZylS.keras.optimizers.Optimizer]:
if YKHO.optimizers_initialized:
return YKHO.get_optimizers()
Ku7a = xBlr.partial(vRNf.get_learning_rate_schedule, lr_init=ZylS.constant(F1pw * YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KMq1(YKHO):\n pass",
"def z9qU(YKHO):\n B2fa = _qLf(YKHO.model_config['optimizer']['params'])\n tzWY = list(YKHO.main_net.parameters()) + list(YKHO.ssl_net.head.parameters())\n B2fa.update({'params': tzWY})\n YKHO.optimizer = CNOZ.create(YKHO.model_config['optimizer']['name'], **B2fa)\n if ... | [
"0.78126717",
"0.77406526",
"0.74849385",
"0.74155927",
"0.74155927",
"0.74155927",
"0.72287405",
"0.71347284",
"0.7097425",
"0.7013244",
"0.701235",
"0.7001638",
"0.69933677",
"0.69933677",
"0.695851",
"0.69480896",
"0.6911234",
"0.68963677",
"0.68916273",
"0.68067324",
"0.6... | 0.0 | -1 |
Returns a dictionary with all networks and submodules of the model. | def ZFw6(YKHO) -> cuzp[I2jr, uLKX[ZylS.keras.Model, ZylS.keras.layers.Layer]]:
khPn = {'layout_generator': YKHO._layout_generator, 'generator': YKHO._generator, 'encoder': YKHO._encoder}
if YKHO.config.separate_layout_encoder:
khPn['layout_encoder'] = YKHO._layout_encoder
if YKHO._discriminator is n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixap(YKHO, ETfU=None):\n C3ST = YKHO._flow(ETfU)\n U5bT = U8Lr()\n for XC8X, AaVJ in C3ST.items():\n if len(AaVJ) == 1:\n U5bT[XC8X] = AaVJ[next(iter(AaVJ))]\n else:\n U5bT[XC8X] = U78l.Sequential(AaVJ)\n return U78l.ModuleDict(U5bT)",
"def hati(YKHO):\n kZ0... | [
"0.67730165",
"0.67179316",
"0.6411246",
"0.6369151",
"0.6285311",
"0.6278604",
"0.62698483",
"0.6153716",
"0.61444086",
"0.61325693",
"0.61002517",
"0.6082818",
"0.60658187",
"0.6019333",
"0.60105324",
"0.5970263",
"0.5968687",
"0.59518653",
"0.5951773",
"0.5943559",
"0.5935... | 0.6623632 | 2 |
Returns a dictionary with all the otpimizers of the model training. | def LE8N(YKHO) -> cuzp[I2jr, ZylS.keras.optimizers.Optimizer]:
Tqsw = {'g_optimizer': YKHO._g_optimizer}
if YKHO._discriminator is not None:
Tqsw['d_optimizer'] = YKHO._d_optimizer
if YKHO._g_layout_optimizer is not None:
Tqsw['g_layout_optimizer'] = YKHO._g_layout_optimizer
return Tqsw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id7O(YKHO):\n return YKHO._get_featurizers(YKHO._slow_featurizers)",
"def id7O(YKHO):\n return YKHO._get_featurizers(YKHO._slow_featurizers)",
"def DkUh(YKHO):\n return YKHO._get_featurizers(YKHO._fast_featurizers)",
"def DkUh(YKHO):\n return YKHO._get_featurizers(YKHO._fast_featurizers)",
... | [
"0.62745154",
"0.62745154",
"0.6233891",
"0.6233891",
"0.606409",
"0.5960839",
"0.5956837",
"0.5944962",
"0.5908291",
"0.58518505",
"0.58433616",
"0.5822958",
"0.56063205",
"0.55885595",
"0.5567468",
"0.555612",
"0.5550732",
"0.55430484",
"0.5541738",
"0.5541018",
"0.55334574... | 0.64986646 | 0 |
Prepends or appends edge to current route. | def NuH9(yvY1, PsCT):
V3IK = PsCT[0][0]
pFG5 = PsCT[-1][1]
Uxpa = list(yvY1.edges(V3IK))
kmrW = list(yvY1.edges(pFG5))
try:
Uxpa.remove(PsCT[0])
except:
Uxpa.remove(PsCT[0][::-1])
try:
kmrW.remove(PsCT[-1])
except:
kmrW.remove(PsCT[-1][::-1])
QCVe = cJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJj_(YKHO, D70y):\n YKHO.edges.append(D70y[1])",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = (tTpl[0], tTpl[1])\n YKHO.data[Ty9i][yzQ0] = tTpl\n YKHO.data[yzQ0][Ty9i] = tTpl",
"def rz7z(YKHO, tTpl):\n pass",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n YKHO[Ty9i][yzQ0] = tTpl\n YKHO[yzQ... | [
"0.66484565",
"0.6613514",
"0.65640867",
"0.65403485",
"0.6362477",
"0.6269553",
"0.62684536",
"0.6253083",
"0.62379247",
"0.6197622",
"0.6189812",
"0.6189233",
"0.61852825",
"0.6177557",
"0.61753446",
"0.6155956",
"0.6155956",
"0.6132077",
"0.612212",
"0.6108497",
"0.6091763... | 0.6019783 | 29 |
Swaps a random node from a route to modify it. | def _I2R(yvY1, PsCT):
g_yl = []
KhFN = []
kbQj = cJGT(PsCT)
for YRbF in range(len(PsCT) - 1):
hLRM = PsCT[YRbF][0]
yFgu = PsCT[YRbF + 1][1]
fSUD = list(set(yvY1.nodes()) - set(kbQj))
for pmdJ in fSUD:
if yvY1.has_edge(hLRM, pmdJ) and yvY1.has_edge(pmdJ, yFgu):... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3Zb(YKHO, PsCT: list):\n if tuKI.random() < lhuD:\n Vjxn = tuKI.randrange(0, len(PsCT))\n cc65 = tuKI.randrange(0, len(PsCT))\n if Vjxn == cc65:\n return PsCT\n PsCT[Vjxn], PsCT[cc65] = (PsCT[cc65], PsCT[Vjxn])\n return PsCT",
"def zNns(YKHO):\n YKHO.node = tu... | [
"0.7174306",
"0.6848775",
"0.68007284",
"0.62469935",
"0.62272584",
"0.61747366",
"0.6108894",
"0.60705423",
"0.60073376",
"0.5979499",
"0.59732425",
"0.5947103",
"0.59241277",
"0.59174395",
"0.58660555",
"0.58610094",
"0.58419764",
"0.5722",
"0.5722",
"0.569227",
"0.5691634"... | 0.71036583 | 1 |
Sets the k_pa of this Pressure. | def yo0P(YKHO, yo0P):
YKHO._k_pa = yo0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ISif(YKHO, lF4w):\n YKHO.Kp = lF4w",
"def PQlY(YKHO, BMxC):\n if BMxC < 0:\n BMxC = 0\n YKHO._Kp = BMxC",
"def ISif(YKHO, lF4w):\n YKHO.Kp = lF4w",
"def ISif(YKHO, lF4w):\n YKHO.Kp = lF4w",
"def ISif(YKHO, lF4w):\n YKHO.Kp = lF4w",
"def ISif(YKHO, lF4w):\n YKHO.Kp = lF4w",... | [
"0.6810838",
"0.67986673",
"0.67626435",
"0.67626435",
"0.67626435",
"0.67626435",
"0.67626435",
"0.65606415",
"0.62059724",
"0.6181286",
"0.59065133",
"0.58672804",
"0.58672804",
"0.5610708",
"0.5578351",
"0.5571293",
"0.55146426",
"0.5503901",
"0.5503901",
"0.54950154",
"0.... | 0.89497954 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83931077",
"0.83551943",
"0.8295509",
"0.8132744",
"0.8115034",
"0.8100248",
"0.8099668",
"0.80982566",
"0.80982566",
"0.809302",
"0.809302",
"0.809302",
"0.809302",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80673736",
"0.80593926",
"0.80581796",
"0.... | 0.0 | -1 |
Get the fraction of the variance explained by the first frequency of a fitted LombScargle model. | def SUND(Qdxg):
return Qdxg['varrat'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eyk1(YKHO):\n try:\n return YKHO.sum_of_squares / YKHO.count - YKHO.mean ** 2\n except:\n return 0",
"def I8JS(YKHO):\n return YKHO.m2 / (YKHO.count - 1) if YKHO.count > 1 else epAf.inf * YKHO.m2",
"def ogdP(YKHO) -> float:\n return YKHO._call_java('explainedVariance')",
"def SX... | [
"0.6475297",
"0.6472755",
"0.6462124",
"0.6421435",
"0.64038396",
"0.6399363",
"0.63945854",
"0.63393074",
"0.6276343",
"0.62211055",
"0.6218588",
"0.6174911",
"0.6140635",
"0.61200124",
"0.60740805",
"0.60702103",
"0.6055103",
"0.60520124",
"0.6048609",
"0.6048609",
"0.60486... | 0.0 | -1 |
Get the yintercept of a fitted LombScargle model. | def Gnwv(Qdxg):
return Qdxg['freq_fits'][0]['y_offset'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqnJ(YKHO):\n if not YKHO.fit_cate_intercept:\n raise AttributeError('No intercept was fitted!')\n return fK_O(YKHO.model_final.coef_, YKHO.model_final.intercept_, YKHO._d_y, YKHO._d_t, YKHO._d_t_in, YKHO.bias_part_of_coef, YKHO.fit_cate_intercept)[1]",
"def BBTF(YKHO, WKvO):\n return YKHO.sl... | [
"0.66185457",
"0.66026783",
"0.6543899",
"0.64484113",
"0.642011",
"0.6417487",
"0.63832843",
"0.63824296",
"0.63689214",
"0.6311286",
"0.62817013",
"0.62049675",
"0.6193686",
"0.61634547",
"0.6139884",
"0.61270976",
"0.6087204",
"0.6059591",
"0.6046797",
"0.60212123",
"0.601... | 0.6349956 | 9 |
Excludes any questions that aren't published yet. | def k66M(YKHO):
return Y4Gy.objects.filter(pub_date__lte=rIAI.now()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1Z_(YKHO):\n return YKHO.questions.filter(answers__isnull=True).exclude(T8ck(is_intent=True) | T8ck(mark_answered=True))",
"def wd1M(YKHO):\n cqqy = rIAI.now() + qcWV.timedelta(days=1)\n Os4s = rIAI.now() + qcWV.timedelta(days=5)\n yKGp = Y4Gy(pub_date=cqqy, end_date=Os4s)\n YKHO.assertIs(yKG... | [
"0.71426696",
"0.70040345",
"0.66904926",
"0.65708315",
"0.623806",
"0.6228437",
"0.6228437",
"0.62282354",
"0.62187594",
"0.6203802",
"0.6191151",
"0.61732846",
"0.61732846",
"0.6150956",
"0.61367816",
"0.610215",
"0.610215",
"0.6093253",
"0.60932094",
"0.6084454",
"0.607670... | 0.62104744 | 11 |
Write the Pandas dataframe to a CSV file. | def eL6F(jQ3Z, vf4n, bo34):
try:
jQ3Z.to_csv(vf4n, header=True, encoding='utf-8', index=False)
except PermissionError as e:
bo34.error(f'Permission Error: Write dataframe to CSV file: {vf4n}')
bo34.error(f'Permission Error({tTpl.errno}): {tTpl.strerror}.')
print('Do you have the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGzM(YKHO, *qIxc, **B2fa):\n YKHO.df.to_csv(*qIxc, **B2fa)",
"def MGzM(YKHO, *qIxc, **B2fa):\n YKHO.df.to_csv(*qIxc, **B2fa)",
"def RZtn(jQ3Z, pmON):\n jQ3Z.toPandas.to_csv(pmON)",
"def vJYf(YKHO, jQ3Z):\n jQ3Z.to_csv(YKHO.output_file, sep=YKHO.sep, mode=YKHO.mode, header=None, index=False)",... | [
"0.85601234",
"0.85601234",
"0.84211296",
"0.83329046",
"0.8313259",
"0.8290915",
"0.8269197",
"0.8262234",
"0.81964964",
"0.8194922",
"0.81891215",
"0.8176582",
"0.81722075",
"0.8145551",
"0.8119348",
"0.8077936",
"0.80202645",
"0.7956004",
"0.7869876",
"0.78682804",
"0.7822... | 0.0 | -1 |
Creates and returns a Flask application | def LUif(kvcN=None, UpIo=None, GPtr=None):
if kvcN is None:
kvcN = lYSt.PROJECT
if UpIo is None:
UpIo = NUnC
if GPtr is None:
GPtr = lYSt
P4t4 = L2w0(kvcN, template_folder=GPtr.TEMPLATE_FOLDER, static_folder=GPtr.STATIC_FOLDER)
P4t4.config.from_object(GPtr)
zqKm(P4t4)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n sSY8(P4t4)\n return P4t4",
"def LUif():\n kvcN = 'scaffolding'\n R5in = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'web/static')\n P4t4 = L2w0(kvcN, static_folder=R5in)\n yhTH(P4t4)\n zqKm(P4t4)\n YEWp(P4t4)\n hetx(P4t4)\n ret... | [
"0.8660153",
"0.86044216",
"0.85662675",
"0.84153336",
"0.84140813",
"0.84083277",
"0.8399483",
"0.8383908",
"0.8360753",
"0.83301264",
"0.8321222",
"0.831763",
"0.83160657",
"0.83050984",
"0.8299954",
"0.82790506",
"0.8274695",
"0.8258971",
"0.82518226",
"0.8239627",
"0.8239... | 0.0 | -1 |
Transforms sentence into a list of indices. Pad with zeroes. | def wTS3(_dZy, Kbej, G1Hx):
WKvO = []
V22M = _dZy.split()
for GIN8 in V22M:
if GIN8 in Kbej:
WKvO.append(Kbej[GIN8])
else:
WKvO.append(Kbej[t7Re])
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xG4(YKHO, yAmx):\n D5k_ = [YKHO.word2index[GIN8] for GIN8 in yAmx.split()]\n vkh5 = D5k_ + [YKHO.pad_word_index] * (YKHO.text_maxlen - len(D5k_))\n if len(vkh5) != YKHO.text_maxlen:\n raise ValueError('For sentence: %s\\n, the length of sentence: %d exceeds the text_maxlen: %d. Consider ... | [
"0.6961833",
"0.65880436",
"0.6573744",
"0.65709776",
"0.65281075",
"0.6527493",
"0.65088725",
"0.64845884",
"0.64536846",
"0.64243096",
"0.6422668",
"0.63971174",
"0.62952816",
"0.6256628",
"0.6249807",
"0.6249354",
"0.62426955",
"0.62350196",
"0.6209834",
"0.61745405",
"0.6... | 0.5478039 | 97 |
Save the given dictionary to the given pickle (.pkl) file. The pickle module can save almost any python object (dicts, lists, dicts of lists, lists of dicts, tuples, sets, custom classes, etc.) to a file so it can be loaded back into python later. It's usually much easier to pickle data than to write your own code to r... | def OqrO(nPrm, ugjU):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJ4d(dict, pmON):\n ESvo = Hy7s.path.dirname(pmON)\n if not Hy7s.path.exists(ESvo):\n Hy7s.makedirs(ESvo)\n t2lc.dump(dict, open(pmON, 'wb'))",
"def IuO3(YEnM, gIsw):\n with open(gIsw, 'wb') as eHNT:\n t2lc.dump(YEnM, eHNT)",
"def ELSh(YKHO, Ux0P, Op6c):\n with open('Data/' + U... | [
"0.77340513",
"0.75848484",
"0.75796396",
"0.7435671",
"0.7351339",
"0.73427165",
"0.73415595",
"0.73335993",
"0.73083264",
"0.72976613",
"0.72837955",
"0.7236196",
"0.7210123",
"0.71914726",
"0.71568394",
"0.7141448",
"0.7134885",
"0.7096868",
"0.70670944",
"0.7052766",
"0.7... | 0.0 | -1 |
Convert time `t` to an integer timestamp at microsecond precision. Returns the number of microseconds after Jan 1, 1970. | def naOj(a1PO):
return int((a1PO - QXXU).total_seconds() * 1000000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fD_V(a1PO):\n return epAf.floor(round(a1PO * uwaB.SECONDS_TO_MICRO))",
"def oeyZ() -> int:\n return int(ITS7.time() * 1000000)",
"def geSH(YKHO, a1PO: float) -> float:\n return YKHO.to_time_unit('microseconds', a1PO)",
"def kYTw(a1PO):\n qtWj = qcWV.datetime.utcfromtimestamp(0)\n RA_F = a1... | [
"0.779972",
"0.7629782",
"0.7468053",
"0.73309773",
"0.7197977",
"0.71649545",
"0.7023543",
"0.6982369",
"0.69578964",
"0.68686277",
"0.678621",
"0.6774546",
"0.6726075",
"0.6709331",
"0.6683023",
"0.66276354",
"0.66249335",
"0.66218084",
"0.65982074",
"0.65974176",
"0.657037... | 0.84161824 | 0 |
Adds ANSI escape codes to color a string printed to the terminal. | def LnjK(KCHu, qfpW):
return qfpW + KCHu + xpCn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gnoM(zFiD):\n import re\n GOFG = re.compile('(\\\\x9B|\\\\x1B\\\\[)[0-?]*[ -\\\\/]*[@-~]')\n return GOFG.sub('', zFiD)",
"def D3K3(hcXw, oUjA=None, JSvE=None, _Cnz=None):\n jzdc, Fg_i, Z9rn = [getattr(Fg_i, jzdc.upper()) if isinstance(jzdc, str) else '' for jzdc, Fg_i in zip([oUjA, JSvE, _Cnz], [... | [
"0.7173665",
"0.7038811",
"0.69691616",
"0.69427204",
"0.68500274",
"0.68497944",
"0.68393785",
"0.68124914",
"0.675796",
"0.67467785",
"0.668867",
"0.6681376",
"0.66794354",
"0.6672934",
"0.6671398",
"0.66343904",
"0.6630245",
"0.66281873",
"0.6625881",
"0.6598193",
"0.65954... | 0.6002611 | 70 |
finds the k amount closest neighbours and returns the indeces and distances of the closest neigbours | def qIRx(Lcqa, Z5wO, G1Hx):
TaUL = oyIN.zeros(len(Lcqa))
for YRbF in range(len(Lcqa)):
TaUL[YRbF] = usGr(Z5wO, Lcqa[YRbF])
d6pt = oyIN.argsort(TaUL)
TaUL = oyIN.sort(TaUL)
return (d6pt[:G1Hx], TaUL[:G1Hx]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alIi(XP5J, LTIa, G1Hx=3):\n TaUL = oyIN.zeros(LTIa.shape[0])\n for YRbF in range(len(TaUL)):\n TaUL[YRbF] = Ayfi(XP5J, LTIa[YRbF])\n QyVM = oyIN.argsort(TaUL)\n return QyVM[:G1Hx]",
"def z1UU(nPrm, G1Hx):\n dUr3 = IyN9(nPrm)\n CLQW = oyIN.argpartition(dUr3, G1Hx, axis=1)[:, :G1Hx]\n ... | [
"0.7998182",
"0.7909661",
"0.7778215",
"0.7692322",
"0.76371604",
"0.75902486",
"0.7582701",
"0.7529108",
"0.7524425",
"0.7523172",
"0.7520794",
"0.7508387",
"0.74933136",
"0.74263036",
"0.74206513",
"0.74156994",
"0.7402748",
"0.738879",
"0.7359751",
"0.7299281",
"0.7248058"... | 0.7668534 | 4 |
Check if DependencyInjector throws proper exception when trying to inject dependency into field that doesnt exist in target class | def uoFn(YKHO):
try:
@KJAY('non_existing_field_to_inject_into')
class Target:
pass
YKHO.fail('DependencyInjector should have thrown DependencyInjectionException when given field not found in target class')
except XjqS:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mkmz(YKHO):\n try:\n\n @KJAY('field_not_marked_for_injecting')\n class Target:\n OjE5 = 'Not for injecting!'\n YKHO.fail('DependencyInjector should have thrown DependencyInjectionException when given field not marked for injection')\n except XjqS:\n pass",
"def fn... | [
"0.8246239",
"0.70098424",
"0.68720603",
"0.6552227",
"0.64567894",
"0.6362929",
"0.6331778",
"0.6224291",
"0.61154777",
"0.60967386",
"0.6071064",
"0.6026799",
"0.59507686",
"0.593421",
"0.59283555",
"0.5913257",
"0.5912089",
"0.59012216",
"0.58783585",
"0.5810485",
"0.57878... | 0.83709425 | 0 |
This is use to approximate Q(c|x) | def T8ck(YKHO, WKvO):
with ZylS.variable_scope('Q'):
_kx1 = ZylS.layers.dense(ZylS.layers.flatten(WKvO), 128)
oFqZ = ZylS.layers.dense(_kx1, YKHO.latent1_dim, activation=None)
cevb = ZylS.layers.dense(_kx1, YKHO.latent2_dim, activation=None)
return (oFqZ, cevb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skor(jzdc, Fg_i, Z9rn, Csk6):\n n2Q1 = 4 * jzdc * Fg_i\n SpII = 4 * Z9rn * Csk6\n r8hN = n2Q1 + SpII - (jzdc + Fg_i - Z9rn - Csk6) ** 2\n XP5J = r8hN * r8hN - 4 * n2Q1 * SpII\n return (r8hN, XP5J)",
"def Nq1b(vexM):\n L70P = 0\n for YRbF in range(exwG):\n L70P += kLQb(vexM[YRbF] /... | [
"0.731603",
"0.7114208",
"0.7077199",
"0.6898649",
"0.6881997",
"0.6854876",
"0.6843953",
"0.67832154",
"0.67801857",
"0.67597055",
"0.6756193",
"0.673187",
"0.67187065",
"0.6716735",
"0.6666858",
"0.6666858",
"0.6666858",
"0.66481",
"0.6646636",
"0.6646613",
"0.66324764",
... | 0.6212837 | 80 |
Load neural network weights from model folder. | def SUd8(YKHO, mWFP='weights_best.h5'):
YKHO.keras_model.load_weights(str(YKHO.logdir / mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO):\n gmRx = YKHO.model_dir_path + YKHO.model_name + '.h5'\n C_Py = YKHO.model_dir_path + YKHO.model_d_name + '.h5'\n fq0h = YKHO.model_dir_path + YKHO.model_ae_name + '.h5'\n YKHO.autoencoder.load_weights(fq0h)\n YKHO.discriminator.load_weights(C_Py)\n YKHO.combined.load_weights(gmRx... | [
"0.79026",
"0.79026",
"0.79026",
"0.7847781",
"0.78353167",
"0.77587897",
"0.7746103",
"0.7707371",
"0.76867294",
"0.7677497",
"0.7677497",
"0.7677497",
"0.76285464",
"0.75619084",
"0.7528469",
"0.75177693",
"0.75176334",
"0.74284375",
"0.7408044",
"0.7402055",
"0.7402055",
... | 0.70370966 | 43 |
Return an int representing number of odd numbers in x. | def BRRY(WKvO: Union[int, List]) -> int:
if isinstance(WKvO, int) and WKvO % 2 == 0:
return 1
elif isinstance(WKvO, int) and WKvO % 2 != 0:
return 0
return sum([BRRY(ZfUD) for ZfUD in WKvO]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eDnj(WKvO):\n return sum([G1Hx for G1Hx in range(1, WKvO) if G1Hx % 2 == 1])",
"def O7cO(WKvO):\n return int(WKvO + 1 - WKvO % 2)",
"def kYZq(WKvO):\n return WKvO % 2",
"def Xy15(WKvO):\n _fOv = epAf.floor(WKvO)\n if _fOv % 2 == 0:\n return _fOv + 1\n return _fOv",
"def C_CQ(WK... | [
"0.74632454",
"0.73202646",
"0.72465014",
"0.71409553",
"0.7119131",
"0.6978496",
"0.69375277",
"0.6845465",
"0.68028516",
"0.67751503",
"0.6727768",
"0.67166513",
"0.6698246",
"0.6691457",
"0.66127735",
"0.6612599",
"0.6606617",
"0.64907837",
"0.6479507",
"0.6460511",
"0.645... | 0.8014601 | 0 |
The ID of the resource. | def PcW4(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"... | [
"0.92022413",
"0.91389847",
"0.8652155",
"0.8652155",
"0.8652155",
"0.8598405",
"0.8540496",
"0.85403514",
"0.84969217",
"0.8316472",
"0.82420367",
"0.8184797",
"0.81668425",
"0.8159377",
"0.8159377",
"0.8159377",
"0.8159377",
"0.8159377",
"0.807934",
"0.807934",
"0.807934",
... | 0.8085464 | 19 |
The ID of the resource group. | def vFpg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8665584",
"0.8591528",
"0.8591528",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.8206654",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
... | 0.79498553 | 28 |
The ID of the resource group. | def vFpg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8665584",
"0.8591528",
"0.8591528",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.82759076",
"0.8206654",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
"0.82028645",
... | 0.79498553 | 25 |
The ID of the resource. | def PcW4(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"... | [
"0.92022413",
"0.91389847",
"0.8652155",
"0.8652155",
"0.8652155",
"0.8598405",
"0.8540496",
"0.85403514",
"0.84969217",
"0.8316472",
"0.82420367",
"0.8184797",
"0.81668425",
"0.8159377",
"0.8159377",
"0.8159377",
"0.8159377",
"0.8159377",
"0.8085464",
"0.8085464",
"0.8085464... | 0.0 | -1 |
The ID of the resource group. | def vFpg(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8664712",
"0.85919976",
"0.85919976",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82062095",
"0.81637913",
"0.8071228",
"0.8071228",
"0.80592835",
"0.80592835",
"0.79490334",
"0.79490334",
"0.79490334",
"0.79490334",
"0.79490334",
... | 0.8202333 | 11 |
The ID of the resource. | def PcW4(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"... | [
"0.9202054",
"0.91389",
"0.8653154",
"0.8653154",
"0.8653154",
"0.8599199",
"0.8541351",
"0.8538945",
"0.8497511",
"0.831681",
"0.8242051",
"0.81854016",
"0.8167882",
"0.8086477",
"0.8086477",
"0.8086477",
"0.8086477",
"0.8086477",
"0.80812234",
"0.80812234",
"0.80812234",
... | 0.8160251 | 13 |
Returns the argument parser. | def z0ba():
from argparse import ArgumentParser, FileType
from probequest.config import Config, Mode
from probequest.version import VERSION
ioG2 = ArgumentParser(description='Toolkit for Playing with Wi-Fi Probe Requests')
ioG2.add_argument('--debug', action='store_true', dest='debug', help='debug m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0ba(YKHO):\n return ugSn.ArgParser(add_help=False)",
"def xuJu(YKHO):\n return YKHO.__argparser",
"def z0ba(YKHO):\n return YKHO.get_base_arg_parser()",
"def xuJu():\n return j1Jz.ArgumentParser()",
"def EpPs():\n wvEv = B4X0.ArgumentParser(description=__doc__)\n return wvEv",
"def... | [
"0.8502058",
"0.8473725",
"0.84120166",
"0.8388799",
"0.83112174",
"0.82037735",
"0.8134726",
"0.81115746",
"0.81032753",
"0.8098536",
"0.8065771",
"0.8048321",
"0.80153084",
"0.80151427",
"0.7982962",
"0.79802084",
"0.7977486",
"0.7965962",
"0.7949043",
"0.7937737",
"0.79301... | 0.0 | -1 |
This is a handy function to create a Sequential model architecture depending on keras_model_type option given. It also can reuse a model_body (without input and output layers) given by the user as input for model_body. It returns a model_body as well as a tuple containing a number of parameters used on defining the mod... | def LQs7(jGJ2, OtGR, yEvG, Qyth, _gN_, LhVh, MbPE, N5Vd, Ef34, b860):
Zgof = Ef34['DS_LEN']
jTqs = Ef34['num_classes']
svPB = Ef34['num_labels']
G5j4 = Ef34['modeltype']
x6A0 = b860['target_variables']
QCuz = F4pM(LhVh, 'patience', 10)
mKyu = len([ZfUD for XuXy in list(MbPE.values()) for ZfU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(DMw4, _mSQ=None):\n if DMw4 in yTUF.VGG16.all:\n C3ST = HxRh(include_top=False, input_shape=cHjE)\n elif DMw4 in yTUF.InceptionResNetV2.all:\n C3ST = OgnE(include_top=False, input_shape=cHjE, weights='imagenet' if _mSQ is None else None)\n elif DMw4 in yTUF.InceptionV3.all:\n ... | [
"0.7460185",
"0.6983387",
"0.6934775",
"0.68231285",
"0.68013054",
"0.67864096",
"0.67758524",
"0.67215073",
"0.6693511",
"0.6670823",
"0.6651549",
"0.66465735",
"0.6583923",
"0.6555318",
"0.6545255",
"0.65425",
"0.6533974",
"0.65320426",
"0.6510065",
"0.6503348",
"0.64893615... | 0.0 | -1 |
Return a response to a GET request. | def NMoC(YKHO, QePW, *qIxc, **B2fa):
SR0I = YKHO.filter_queryset(YKHO.get_queryset())
B2Dn = YKHO.paginate_queryset(SR0I)
if B2Dn is not None:
ZMzz = YKHO.get_serializer(B2Dn, many=True)
return YKHO.get_paginated_response(ZMzz.data)
ZMzz = YKHO.get_serializer(SR0I, many=True)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, *qIxc, **B2fa) -> ODPQ.Response:\n return YKHO._make_request(YKHO.client.get, *qIxc, **B2fa)",
"def jxrn(YKHO, *qIxc, **B2fa) -> oGir:\n return YKHO._send_request(YKHO._requests_lib.get, *qIxc, **B2fa)",
"def f2Ot(YKHO) -> 'outputs.HTTPGetActionResponse':\n return qe4Y.get(YKHO, 'http_g... | [
"0.8128274",
"0.8047113",
"0.79861265",
"0.795929",
"0.7818069",
"0.7779858",
"0.7766515",
"0.77556694",
"0.7617625",
"0.7555233",
"0.7508683",
"0.75059646",
"0.7502828",
"0.7495807",
"0.7486284",
"0.74484277",
"0.74296457",
"0.74138206",
"0.74074405",
"0.739411",
"0.73900884... | 0.0 | -1 |
Return a response to a GET request. | def NMoC(YKHO, QePW, *qIxc, **B2fa):
assert YKHO.AGG_FIELD is not None, "'%s' should set the `AGG_FIELD` attribute." % YKHO.__class__.__name__
assert YKHO.AGG_NAME is not None, "'%s' should set the `AGG_NAME` attribute." % YKHO.__class__.__name__
Cce9 = YKHO.filter_queryset(YKHO.get_queryset())
TgwQ = C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, *qIxc, **B2fa) -> ODPQ.Response:\n return YKHO._make_request(YKHO.client.get, *qIxc, **B2fa)",
"def jxrn(YKHO, *qIxc, **B2fa) -> oGir:\n return YKHO._send_request(YKHO._requests_lib.get, *qIxc, **B2fa)",
"def f2Ot(YKHO) -> 'outputs.HTTPGetActionResponse':\n return qe4Y.get(YKHO, 'http_g... | [
"0.8128515",
"0.8047411",
"0.7987012",
"0.7960091",
"0.78175324",
"0.7780626",
"0.7767641",
"0.7755934",
"0.7618586",
"0.75558686",
"0.7509335",
"0.7505718",
"0.7503937",
"0.7497126",
"0.74870574",
"0.74493587",
"0.74298364",
"0.74143916",
"0.7406902",
"0.7395202",
"0.7390711... | 0.0 | -1 |
List of available input sources. | def oOdw(YKHO):
return YKHO._source_list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def w1o0(YKHO):... | [
"0.765328",
"0.76203656",
"0.76203656",
"0.7598599",
"0.745293",
"0.745293",
"0.74438626",
"0.74329925",
"0.73871773",
"0.7371998",
"0.7325716",
"0.7312083",
"0.7304809",
"0.7294203",
"0.7252239",
"0.7170494",
"0.71214986",
"0.70619494",
"0.70545626",
"0.70545626",
"0.7051095... | 0.68896466 | 33 |
Initializes the KahanSum object. | def FIMM(YKHO):
YKHO.sum = 0.0
YKHO.c = 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n yvY1 = 0\n Oa1e = oyIN.zeros(YKHO.K)\n for G1Hx in range(YKHO.K):\n Oa1e[G1Hx] = YKHO.beta * YKHO.alpha / (YKHO.nkt_sum[G1Hx] + YKHO.beta * YKHO.V)\n yvY1 = sum(Oa1e)\n return (Oa1e, yvY1)",
"def FIMM(YKHO, G1Hx):\n YKHO.k = G1Hx\n YKHO.K = 2 * G1Hx + 1\n YKHO.dq ... | [
"0.58842206",
"0.5876648",
"0.56744456",
"0.56722033",
"0.5577574",
"0.55685717",
"0.55592835",
"0.54654396",
"0.5392475",
"0.5368886",
"0.5337604",
"0.53227556",
"0.531952",
"0.5308907",
"0.5302706",
"0.530145",
"0.5301231",
"0.529204",
"0.5267497",
"0.5257455",
"0.52512753"... | 0.5959441 | 0 |
Logs into an account, GETs a page, and tests that the page is returned correctly with its template. | def aPSp(YKHO):
YKHO.user_login(YKHO.credentials1)
geh0 = YKHO.client.get(gxEw(YKHO.viewname), follow=True)
YKHO.assertEqual(geh0.status_code, 200)
YKHO.check_templates_are_included(geh0, YKHO.templateURL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khDc(YKHO):\n YKHO.client.force_login(YKHO.user)\n geh0 = YKHO.client.get(gxEw('account'))\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'account.html')",
"def DZ_c(YKHO):\n YKHO.client.login(username=YKHO.username, password=YKHO.password)\n geh0 = YKHO.client.g... | [
"0.73049784",
"0.72893864",
"0.70867634",
"0.68630934",
"0.6846351",
"0.68029463",
"0.6722942",
"0.67017376",
"0.6697705",
"0.66650987",
"0.6632125",
"0.6612678",
"0.65708756",
"0.6545289",
"0.6527517",
"0.6500306",
"0.646894",
"0.64592564",
"0.6451231",
"0.64265424",
"0.6424... | 0.6466705 | 17 |
Tests trying to delete a nonexisting comment. | def ov18(YKHO):
oZW6 = {'commentID': 999}
YKHO.user_login(YKHO.credentials1)
geh0 = YKHO.client.post(gxEw(YKHO.viewname), oZW6, follow=True)
YKHO.assertEqual(geh0.status_code, 200)
YKHO.response_contains_status_code(geh0, OIVN.ERROR.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WYkw(YKHO):\n rXjI = YKHO.client.delete(gxEw('comments:details', kwargs={'slug': YKHO.article.slug, 'pk': YKHO.comment_id}), format='json')\n Ylbp = YKHO.client.get(gxEw('comments:details', kwargs={'slug': YKHO.article.slug, 'pk': YKHO.comment_id}), format='json')\n YKHO.assertEqual(YKHO.comment.statu... | [
"0.82646024",
"0.81704247",
"0.78762335",
"0.7816105",
"0.77728707",
"0.7714291",
"0.74980664",
"0.74715537",
"0.7362293",
"0.7352345",
"0.7341191",
"0.7312689",
"0.72705686",
"0.7261729",
"0.7256636",
"0.72506475",
"0.7211072",
"0.72027445",
"0.71918523",
"0.7170634",
"0.714... | 0.6671743 | 38 |
Tests that a comment cannot be deleted by a user who did not post it or the post that was commented upon . | def NuJD(YKHO):
YKHO.createComment('valid delete post', 'test comment')
aM_I = tCm0.objects.latest('commentID')
GbVn = aM_I.commentID
q4J8 = {'commentID': GbVn}
YKHO.user_login(YKHO.credentials3)
geh0 = YKHO.client.post(gxEw(YKHO.viewname), q4J8, follow=True)
oLFW = tCm0.objects.filter(pk=Gb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZJC7(YKHO):\n Tj1O = YKHO.createSomeComments()\n _sei = Tj1O[0].pk\n ggbs('normaluser')\n YKHO.client.force_login(YKHO.user)\n geh0 = YKHO.client.post('/delete/%d/' % _sei)\n YKHO.assertRedirects(geh0, '/deleted/?c=%d' % _sei)\n Z9rn = jY1u.objects.get(pk=_sei)\n YKHO.assertTrue(Z9rn.is... | [
"0.7431542",
"0.7352942",
"0.71707326",
"0.70975834",
"0.70961404",
"0.70532703",
"0.7044494",
"0.70262545",
"0.6992639",
"0.6980713",
"0.69803953",
"0.69566965",
"0.6887075",
"0.6824487",
"0.6805614",
"0.6802162",
"0.67940336",
"0.6763793",
"0.67624116",
"0.67493504",
"0.673... | 0.75983757 | 0 |
Get the HDInsight cluster object | def XSLZ(YKHO):
tUvT = YKHO.hdinsight_client.clusters.list()
for pnEV in tUvT:
if pnEV.name == YKHO.params['CLUSTER_DNS_NAME']:
return pnEV
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSLZ(YKHO):\n return YKHO.cluster",
"def iBC6(YKHO, hKn5):\n yj7c = YKHO._get_obj([ty0B.ClusterComputeResource], hKn5)\n return yj7c",
"def iBC6(YKHO, hKn5):\n return YKHO._get(Wa1Y.ClusterDetail, hKn5)",
"def tYC2(YKHO, QePW):\n return WJYt.Cluster()",
"def hKn5(YKHO) -> lTJ4.aws_ecs.IC... | [
"0.76761943",
"0.7380728",
"0.72242975",
"0.7223457",
"0.7158704",
"0.7158704",
"0.7158704",
"0.7158704",
"0.71028656",
"0.70988107",
"0.70937747",
"0.70768774",
"0.6978323",
"0.6905472",
"0.6900305",
"0.6889603",
"0.6883021",
"0.6881108",
"0.68213886",
"0.6813273",
"0.681113... | 0.8541463 | 0 |
For internal use only. Is used to initialize the actual quantity. | def tahs(YKHO, cTRz: Quantity, BWXx: Optional[float]=None, eaEB: Optional[UnitDatabase]=None) -> None:
if BWXx is None:
YKHO._value = YKHO._GetDefaultValue(cTRz.GetCategoryInfo())
else:
YKHO._value = float(BWXx)
YKHO._unit_database = eaEB or NZKT.GetSingleton()
YKHO._quantity = cTRz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, cTRz, PXGI=L0bE):\n UOVU = cTRz * PXGI\n if isinstance(UOVU, float):\n UOVU = int(epAf.ceil(UOVU))\n YKHO.bits = UOVU",
"def hlKg():\n Sgcx = H7KE.Quantity(pxQZ, QcCg)\n SjMt(Sgcx.n_grid, pxQZ)\n SjMt(Sgcx.prev.shape, (pxQZ,))\n SjMt(Sgcx.now.shape, (pxQZ,))\n SjMt(S... | [
"0.7549993",
"0.72143906",
"0.70538116",
"0.6930554",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.67301625",
"0.66371393",
"0.6605393",
"0.6578338",
"0.6572138",
"... | 0.68257034 | 4 |
Should return a userfriendly representation of this object. | def zAg0(YKHO) -> str:
return YKHO.GetFormatted() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO._get_compact_representation()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def zAg0(YKHO):\n return YKHO.pretty()",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.d... | [
"0.82433546",
"0.81773806",
"0.81484944",
"0.81267095",
"0.81172115",
"0.8057162",
"0.80377185",
"0.80377185",
"0.8036565",
"0.8011692",
"0.8011692",
"0.8011692",
"0.80105495",
"0.796908",
"0.79685795",
"0.79685795",
"0.7959251",
"0.79556155",
"0.79476446",
"0.79476446",
"0.7... | 0.0 | -1 |
Tests whether DFT diagonalizes X to `d` digits of precision | def DGcM(EcVT, Csk6=8):
vuvg = oyIN.asmatrix(oyIN.fft.fft(EcVT))
mfH1 = pEuX.inv(vuvg)
Kt_s = mfH1.dot(EcVT).dot(vuvg)
Kt_s = oyIN.round_(Kt_s, Csk6)
if Kt_s.trace() - oyIN.sum(Kt_s) < 10 ** (-Csk6):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GN36(zgsA, kc5I):\n return oyIN.abs(oyIN.fft.fft(zgsA, kc5I))",
"def GN36(WKvO):\n WKvO = WKvO.astype(oyIN.complex128)\n ywwl = len(WKvO)\n GK1N = nHo8(ywwl, ywwl) / ywwl\n return oyIN.dot(GK1N, WKvO)",
"def NRqt():\n ywwl = 16\n SG6Y = zuVY.DataArray(oyIN.random.rand(ywwl, ywwl, ywwl,... | [
"0.65279293",
"0.6356217",
"0.6062416",
"0.6060617",
"0.6001463",
"0.59464514",
"0.58746445",
"0.58532923",
"0.58340037",
"0.57964444",
"0.57924765",
"0.5725714",
"0.572568",
"0.57096255",
"0.5694879",
"0.56400335",
"0.5629892",
"0.560907",
"0.5598592",
"0.5585134",
"0.558006... | 0.84390116 | 0 |
Returns user's status in AWS Cognito, if applicable. | def lZvg(YKHO):
if gCuF.COGNITO_USE:
NG81 = iVGz.client('cognito-idp', aws_access_key_id=gCuF.COGNITO_ACCESS_KEY, aws_secret_access_key=gCuF.COGNITO_SECRET_KEY, region_name=gCuF.COGNITO_REGION)
CBIr = NG81.admin_get_user(UserPoolId=gCuF.COGNITO_USER_POOL, Username=YKHO.username)
return CBIr[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LDCg(YKHO, NG81):\n try:\n zYHX = NG81.admin_get_user(UserPoolId=gCuF.COGNITO_USER_POOL, Username=YKHO.username)\n if zYHX['Enabled'] != YKHO.is_active:\n NG81.admin_enable_user(UserPoolId=gCuF.COGNITO_USER_POOL, Username=YKHO.username) if YKHO.is_active else NG81.admin_disable_user... | [
"0.68152475",
"0.6804836",
"0.67934763",
"0.67478466",
"0.67116916",
"0.6617669",
"0.65339243",
"0.6497877",
"0.6472772",
"0.643244",
"0.64222324",
"0.6412208",
"0.6316165",
"0.6159023",
"0.6132961",
"0.6128671",
"0.60175365",
"0.6009543",
"0.60012007",
"0.59542507",
"0.58739... | 0.88450557 | 0 |
Returns a title string for the bag. Useful if you don't know whether or not the bag is valid. | def YhI4(YKHO):
if YKHO.bag_it_valid:
Nm03 = YKHO.bag_data
return '{} ({})'.format(Nm03.get('title'), Nm03.get('external_identifier')) if Nm03.get('external_identifier') else Nm03.get('title')
return YKHO.machine_file_path.split('/')[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n return ''",
"def leAC(YKHO):\n YKHO.ensure_data()\n return YKHO.data['safe_title']",
"def leAC(YKHO):\n return YKHO._title or ''",
"def Upwb(YKHO) -> str:\n pass",
"def leAC(YKHO):\n Ylbp = super().title()\n return pmys(Ylbp, YKHO._taint, YKHO)",
"def leAC(YKHO):\n ... | [
"0.7156156",
"0.6982242",
"0.6943911",
"0.69366807",
"0.69093543",
"0.6881951",
"0.6872825",
"0.68663067",
"0.6851666",
"0.68394893",
"0.68104994",
"0.6800654",
"0.6799383",
"0.67886543",
"0.67584383",
"0.67553747",
"0.6747242",
"0.6747242",
"0.6739822",
"0.67327607",
"0.6704... | 0.68964696 | 5 |
Test for post list views by tag view | def QfGT(YKHO):
m8z6 = HX7R.create()
TZ9E = m8z6.tags.first()
geh0 = YKHO.client.get(gxEw(H8Kj, kwargs={'tag_slug': TZ9E}))
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertContains(geh0, m8z6.title)
YKHO.assertTemplateUsed(geh0, 'blog/post-list.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return T97t.objects.visible().with_tag(Jc8s(YKHO.kwargs['tag']))",
"def t9eQ(YKHO):\n AroK = yvY1(SnvL, is_superuser=False, is_staff=False)\n uDCI = yvY1(SnvL, is_superuser=False, is_staff=False)\n a62s = yvY1(T97t, tags=['tag1'], author=AroK, published=True)\n i59_ = yvY1(T97t, ... | [
"0.64202297",
"0.6131258",
"0.61306155",
"0.6105739",
"0.60500383",
"0.60339564",
"0.5960979",
"0.59414905",
"0.5898667",
"0.58718747",
"0.5855709",
"0.5816298",
"0.57582504",
"0.573635",
"0.57009137",
"0.5635704",
"0.56273425",
"0.5622282",
"0.5585514",
"0.5559672",
"0.55583... | 0.756838 | 0 |
Get the number of postsynaptic targets for a list of connector ids. | def d04E(YKHO, nahZ):
WLfv = dict()
if len(nahZ) > 0:
bD7m = '/{}/connector/skeletons'.format(YKHO.CatmaidClient.project_id)
VKhi = {}
for QyVM, id in enumerate(nahZ):
VKhi['connector_ids[{}]'.format(QyVM)] = id
Csk6 = YKHO.CatmaidClient.post(bD7m, data=VKhi)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w50H(YKHO):\n return J8uC.SBDebugger_GetNumTargets(YKHO)",
"async def count_targets(nPrm):\n YKHO.received_targets += 1",
"def T2mS(YKHO):\n g8EV = len(YKHO.build_graph)\n YKHO.run_tracker.pantsd_stats.set_affected_targets_size(g8EV)\n return g8EV",
"def s3N0(YKHO, jDFA: list[str]) -> dict... | [
"0.5988557",
"0.5694789",
"0.5614629",
"0.5447355",
"0.5378192",
"0.5375589",
"0.5359472",
"0.5359472",
"0.5340358",
"0.53389686",
"0.5314512",
"0.53091407",
"0.52734554",
"0.524864",
"0.52459836",
"0.5200604",
"0.5110819",
"0.51105756",
"0.50513357",
"0.50311553",
"0.5009054... | 0.73460543 | 0 |
Computes the linear part of single forward propagation step, namely multiplication of weights and result from previous layer | def L3sd(YKHO, eGwT, yzQ0, Fg_i):
epBp = oyIN.dot(yzQ0, eGwT) + Fg_i
wyyA = (eGwT, yzQ0, Fg_i)
return (epBp, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n Ti9P, cBI6 = YKHO.get_weight_()\n return vuvg.linear(WKvO, Ti9P, cBI6)",
"def EdBA(YKHO, jSw3, S4Wy, nYlf, SVcA):\n jSw3 = jSw3[1:]\n f_0d = XTiz.matmul(S4Wy, jSw3)\n f_0d *= YKHO.psi(SVcA)\n return f_0d",
"def KVH6(YKHO, WKvO):\n YKHO.input_linear = oyIN.copy(WKvO)... | [
"0.74915415",
"0.73186034",
"0.7229693",
"0.72261846",
"0.71780765",
"0.7090271",
"0.6995531",
"0.699484",
"0.69929326",
"0.6986023",
"0.69635445",
"0.69507325",
"0.6926761",
"0.6904259",
"0.68954253",
"0.68928146",
"0.68870866",
"0.687809",
"0.6871938",
"0.68692404",
"0.6869... | 0.7269076 | 2 |
TODO regularize batch norm params? biases? | def DLhn(YKHO, VUI3, mWFP, NJRn, HabP=None, u_ln=ZylS.nn.relu, FEri=[1, 1, 1, 1]):
yIp6 = ZylS.nn.conv2d(VUI3, NJRn, strides=FEri, padding=YKHO.padding, data_format=YKHO.data_format, name=mWFP)
if YKHO.use_batch_norm:
return u_ln(ZylS.contrib.layers.batch_norm(ZylS.nn.bias_add(yIp6, HabP, data_format=YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tO_r(YKHO, _0VL, L2Za, mWFP):\n if 'layer' in mWFP:\n if 'downsample' in mWFP:\n oBmh = [wEf2 for H5ew, wEf2 in YKHO.model.named_modules() if H5ew == mWFP.split('.weight')[0][:-1] + str(int(mWFP.split('.weight')[0][-1]) + 1)][0]\n else:\n oBmh = [wEf2 for H5ew, wEf2 in YK... | [
"0.7211001",
"0.7028484",
"0.7012671",
"0.6992365",
"0.6973984",
"0.69087267",
"0.6879936",
"0.6838723",
"0.6831445",
"0.6804697",
"0.679761",
"0.6781056",
"0.678034",
"0.6757952",
"0.67396516",
"0.6712718",
"0.6708052",
"0.66993964",
"0.6671318",
"0.6671032",
"0.6669866",
... | 0.0 | -1 |
Reads from fp until line ending header. | def veq4(ytgA):
for zFiD in ytgA:
if zFiD.startswith('*** START OF THIS'):
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwmx(ytgA, dsE5=False):\n RtES = ZbWC.compile('-----+')\n Nqlg = []\n for zFiD in ytgA:\n if RtES.match(zFiD.strip()):\n break\n Nqlg.append(zFiD.strip())\n return Nqlg",
"def c0y5(ytgA):\n return ytgA.readlines()",
"def mVjj(YKHO, eHNT):\n for zFiD in eHNT:\n ... | [
"0.6690917",
"0.6493397",
"0.6237499",
"0.6178706",
"0.61391956",
"0.60799766",
"0.6064881",
"0.6010977",
"0.6005847",
"0.5997087",
"0.5996988",
"0.59818614",
"0.59656155",
"0.5958723",
"0.5957899",
"0.59540474",
"0.59288955",
"0.59283173",
"0.59273034",
"0.59242606",
"0.5923... | 0.66516 | 1 |
get code for authorization | def zM6d(H5ew, bWtk):
rBtx = bWtk.id_rent
s5eM = G4JS.get(f'https://sms-activate.ru/stubs/handler_api.php?api_key={H5ew}&action=getRentStatus&id={rBtx}').json()
qcdd = s5eM.get('values').get('0').get('text')
Wxnj = qcdd.split('Kod podtverzhdeniya vhoda v LK ')[1].split('.')[0]
return Wxnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWMI():\n pass",
"def t3GZ(YKHO):\n return YKHO._auth_code",
"def t3GZ(YKHO, QePW):\n raise NotImplementedError()",
"def dZ03(YKHO) -> str:\n return YKHO._authorization_code",
"def zM6d(YKHO):\n N5z6 = GGmw.socket(GGmw.AF_INET, GGmw.SOCK_STREAM)\n N5z6.setsockopt(GGmw.SOL_SOCKET, GGmw... | [
"0.8509689",
"0.8331112",
"0.8281423",
"0.8092423",
"0.79731774",
"0.7649724",
"0.7641066",
"0.7316246",
"0.72971624",
"0.72603035",
"0.72603035",
"0.72526634",
"0.72467744",
"0.7230797",
"0.71988577",
"0.7137343",
"0.7137343",
"0.7128966",
"0.7128966",
"0.7078552",
"0.698992... | 0.0 | -1 |
The negotiated session ID. | def ul12(YKHO):
return YKHO._get_attribute('discoveredRemoteSessionIds') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZq3(YKHO):\n return YKHO.get_u32(YKHO.variable_names['k_session_id'])",
"def cZq3(YKHO):\n return cZq3()",
"def JkXK(YKHO) -> str:\n return YKHO._session_id",
"def JkXK(YKHO):\n return YKHO._session_id",
"def JkXK(YKHO):\n return YKHO._session.session_id if YKHO._session else None",
"... | [
"0.8309906",
"0.816314",
"0.8078111",
"0.80343115",
"0.798384",
"0.7978542",
"0.7680723",
"0.7680723",
"0.7669596",
"0.7665612",
"0.76457506",
"0.7634085",
"0.7626027",
"0.76039183",
"0.7587028",
"0.7569262",
"0.75300926",
"0.7504435",
"0.74818087",
"0.74818087",
"0.74818087"... | 0.0 | -1 |
The negotiated session ID. | def LZWb(YKHO):
return YKHO._get_attribute('discoveredSessionIds') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZq3(YKHO):\n return YKHO.get_u32(YKHO.variable_names['k_session_id'])",
"def cZq3(YKHO):\n return cZq3()",
"def JkXK(YKHO) -> str:\n return YKHO._session_id",
"def JkXK(YKHO):\n return YKHO._session_id",
"def JkXK(YKHO):\n return YKHO._session.session_id if YKHO._session else None",
"... | [
"0.8312833",
"0.81652725",
"0.80806357",
"0.80371106",
"0.7986046",
"0.79805464",
"0.7684529",
"0.7684529",
"0.76716685",
"0.766817",
"0.7648178",
"0.76363933",
"0.7628031",
"0.7606779",
"0.7589735",
"0.75715095",
"0.7532767",
"0.75067645",
"0.7483298",
"0.7483298",
"0.748329... | 0.0 | -1 |
The list ``sizes`` contains the number of neurons in the respective layers of the network. For example, if the list was [2, 3, 1] then it would be a threelayer network, with the first layer containing 2 neurons, the second layer 3 neurons, and the third layer 1 neuron. The biases and weights for the network are initial... | def FIMM(YKHO, maxY):
YKHO.num_layers = len(maxY)
YKHO.sizes = maxY
YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in maxY[1:]]
YKHO.weights = [oyIN.random.randn(LVAh, WKvO) for WKvO, LVAh in zip(maxY[:-1], maxY[1:])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, maxY: List[int]) -> None:\n YKHO.sizes = maxY\n YKHO.num_layers = len(maxY)\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) for LVAh, WKvO in zip(maxY[:-1], maxY[1:])]\n YKHO.biases = [oyIN.random.randn(1, LVAh) for LVAh in maxY[1:]]",
"def FIMM(YKHO, maxY):\n YKHO.sizes = maxY\n ... | [
"0.8030077",
"0.7990909",
"0.79158527",
"0.78476286",
"0.78085166",
"0.78085166",
"0.78040934",
"0.7637596",
"0.75984305",
"0.7567331",
"0.75362116",
"0.7486646",
"0.7433494",
"0.7320231",
"0.7214991",
"0.712553",
"0.7112007",
"0.7112007",
"0.7068395",
"0.70232344",
"0.690872... | 0.7796881 | 7 |
The set of arguments for constructing a TransitRouterMulticastDomainMember resource. | def FIMM(Ro_8, *, T5CG: pulumi.Input[str], vG87: pulumi.Input[str], qjDg: pulumi.Input[str], TJ_E: Optional[pulumi.Input[bool]]=None, xOeT: Optional[pulumi.Input[str]]=None):
qe4Y.set(Ro_8, 'group_ip_address', T5CG)
qe4Y.set(Ro_8, 'network_interface_id', vG87)
qe4Y.set(Ro_8, 'transit_router_multicast_domain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: TransitRouterMulticastDomainMemberArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: MulticastDomainAssociationArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def C1UD(YKHO, *qIxc, **B2fa):\n l633 = B2fa.pop('querie... | [
"0.8052814",
"0.6826608",
"0.5606856",
"0.5555816",
"0.5243542",
"0.52088773",
"0.52016497",
"0.51538056",
"0.5111909",
"0.5107029",
"0.5066155",
"0.5042043",
"0.5029267",
"0.49945292",
"0.49763247",
"0.490129",
"0.4864",
"0.4856375",
"0.4852445",
"0.48240876",
"0.48210445",
... | 0.46191368 | 51 |
The ID of the ENI. | def vG87(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'network_interface_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFRz(YKHO) -> str:\n return YKHO.__oe_id",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC FC': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC PB': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def unpH(YKHO):\n YKHO.ser.flushInput()\n ... | [
"0.78051496",
"0.7540809",
"0.7515222",
"0.7412719",
"0.73889655",
"0.73595434",
"0.7358426",
"0.7358426",
"0.7314898",
"0.7291777",
"0.7291777",
"0.72748244",
"0.72686",
"0.7256835",
"0.72497076",
"0.72497076",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",... | 0.0 | -1 |
The ID of the multicast domain to which the multicast member belongs. | def qjDg(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'transit_router_multicast_domain_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjDg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_id')",
"def HyI9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'transit_gateway_multicast_domain_id')",
"def qjDg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_i... | [
"0.8136621",
"0.80514485",
"0.8047096",
"0.80268073",
"0.7931167",
"0.7052142",
"0.69728523",
"0.69728523",
"0.6820789",
"0.673454",
"0.66763854",
"0.663018",
"0.6587956",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.6460407",
"0.64065534",
"0.6330... | 0.8170992 | 0 |
The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts. | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7qk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def ouUl():\n return oUlR()['network']['interfaces']['macs'].values()[0]['vpc-id']",
"def v7qk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def v7qk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.g... | [
"0.6386087",
"0.63793904",
"0.63557464",
"0.6341364",
"0.63043",
"0.6300659",
"0.6300659",
"0.616777",
"0.5944783",
"0.59182686",
"0.59182686",
"0.59181386",
"0.59181386",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.591... | 0.58830893 | 26 |
The ID of the ENI. | def vG87(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'network_interface_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFRz(YKHO) -> str:\n return YKHO.__oe_id",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC FC': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC PB': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def unpH(YKHO):\n YKHO.ser.flushInput()\n ... | [
"0.78051496",
"0.7540809",
"0.7515222",
"0.7412719",
"0.73889655",
"0.73595434",
"0.7358426",
"0.7358426",
"0.7314898",
"0.7291777",
"0.7291777",
"0.72748244",
"0.72686",
"0.7256835",
"0.72497076",
"0.72497076",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",... | 0.0 | -1 |
The ID of the multicast domain to which the multicast member belongs. | def qjDg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'transit_router_multicast_domain_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjDg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_id')",
"def qjDg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_id')",
"def HyI9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'transit_gateway_multicast_domain_id')",
... | [
"0.8170992",
"0.8136621",
"0.80514485",
"0.80268073",
"0.7931167",
"0.7052142",
"0.69728523",
"0.69728523",
"0.6820789",
"0.673454",
"0.66763854",
"0.663018",
"0.6587956",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.6460407",
"0.64065534",
"0.6330... | 0.8047096 | 3 |
The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts. | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7qk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def ouUl():\n return oUlR()['network']['interfaces']['macs'].values()[0]['vpc-id']",
"def v7qk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def v7qk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.g... | [
"0.6384325",
"0.63773924",
"0.6354199",
"0.6339228",
"0.63034606",
"0.62984663",
"0.62984663",
"0.61645246",
"0.5942187",
"0.59162587",
"0.59162587",
"0.5916116",
"0.5916116",
"0.59109575",
"0.59109575",
"0.59109575",
"0.59109575",
"0.59109575",
"0.59109575",
"0.59109575",
"0... | 0.5881338 | 28 |
The ID of the ENI. | def vG87(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'network_interface_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFRz(YKHO) -> str:\n return YKHO.__oe_id",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC FC': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def fIQ3(YKHO):\n jf3w = {'EIS NAC PB': 'EUROPAM_EIS_NAC'}\n return jf3w[super().instrument_id]",
"def unpH(YKHO):\n YKHO.ser.flushInput()\n ... | [
"0.78051496",
"0.7540809",
"0.7515222",
"0.7412719",
"0.73889655",
"0.73595434",
"0.7358426",
"0.7358426",
"0.7314898",
"0.7291777",
"0.7291777",
"0.72748244",
"0.72686",
"0.7256835",
"0.72497076",
"0.72497076",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",
"0.7248499",... | 0.0 | -1 |
The ID of the multicast domain to which the multicast member belongs. | def qjDg(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'transit_router_multicast_domain_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjDg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_id')",
"def HyI9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'transit_gateway_multicast_domain_id')",
"def qjDg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'transit_router_multicast_domain_id... | [
"0.8170992",
"0.80514485",
"0.8047096",
"0.80268073",
"0.7931167",
"0.7052142",
"0.69728523",
"0.69728523",
"0.6820789",
"0.673454",
"0.66763854",
"0.663018",
"0.6587956",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.65078217",
"0.6460407",
"0.64065534",
"0.6330... | 0.8136621 | 1 |
The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts. | def xOeT(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7qk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def ouUl():\n return oUlR()['network']['interfaces']['macs'].values()[0]['vpc-id']",
"def v7qk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_vpc_id')",
"def v7qk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.g... | [
"0.6386087",
"0.63793904",
"0.63557464",
"0.6341364",
"0.63043",
"0.6300659",
"0.6300659",
"0.616777",
"0.5944783",
"0.59182686",
"0.59182686",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.59133303",
"0.591... | 0.59181386 | 11 |
Defines a convolution block with a normalization layer, an activation layer, and an optional dropout layer. | def s9cf(F7cg, T9qp, Ot1W=3, _0fC=1, dvgN=None, oug5=False, eFZt='reflect', ykhl=U78l.BatchNorm2d, CTu7=U78l.ReLU(True), OC7S=False):
mQG_ = []
XP5J = 0
if eFZt is not None:
if eFZt == 'reflect':
mQG_ += [U78l.ReflectionPad2d(Ot1W // 2 if dvgN is None else dvgN)]
elif eFZt == 're... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(NArs):\n\n def mBtZ(g4y1, LT6S=True, PJWX=False):\n \"\"\"Convolution Block Builder\"\"\"\n if PJWX:\n print(' {}: Creating convolution{} block w/ kernel size {}, stride {}, and {} filters. Norm={}'.format(NArs['name'], ' (Transpose)' if NArs['is_transpose'] else '', NArs['ker... | [
"0.74104583",
"0.7406759",
"0.7298464",
"0.7259587",
"0.7249727",
"0.72192854",
"0.72192854",
"0.72192854",
"0.71784973",
"0.71784973",
"0.71784973",
"0.71784973",
"0.71784973",
"0.71784973",
"0.71616375",
"0.7146518",
"0.71407396",
"0.71400887",
"0.71379185",
"0.71377945",
"... | 0.6687496 | 79 |
For GPart operand types, return a register with the same type as g's | def onoA(YKHO, Oa1e):
raise kfpj('X86Decoder::visit_GPart') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Lrs(lQ3t, *WpwY, **F1OP):\n return _Lrs(GD_A.current.address(), lQ3t, *WpwY, **F1OP)",
"def lQ3t(YKHO):\n if YKHO.type.is_displ or YKHO.type.is_phrase:\n zNig = aM69.get_native_size()\n return P8oC.get_register_name(YKHO.reg_id, zNig)\n if YKHO.type.is_reg:\n return P8oC.get_re... | [
"0.6116114",
"0.5932171",
"0.58127683",
"0.5787645",
"0.57521427",
"0.5717574",
"0.5609078",
"0.55514205",
"0.5542257",
"0.546803",
"0.54638696",
"0.54160404",
"0.54101664",
"0.5407009",
"0.5400482",
"0.5373807",
"0.53567666",
"0.5351173",
"0.5334094",
"0.52892995",
"0.528830... | 0.54181755 | 11 |
Build the connection URL and set the project environment variable when needed | def rs4r(UzPC: BigQueryConnection) -> str:
if isinstance(UzPC.credentials.gcsConfig, PxyB):
if isinstance(UzPC.credentials.gcsConfig.projectId, uP3L):
if not UzPC.credentials.gcsConfig.projectId.__root__:
return f'{UzPC.scheme.value}://{UzPC.credentials.gcsConfig.projectId or ''}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AxvI(YKHO):\n CBIr = Hy7s.environ['MONGO_USER']\n jTXt = Hy7s.environ['MONGO_PASSWORD']\n N5CR = Hy7s.environ['MONGO_INSTANCE']\n reFr = Hy7s.environ['MONGO_URL']\n return 'mongodb://{}:{}@{}/{}'.format(CBIr, jTXt, reFr, N5CR)",
"def gEJM():\n return '%s%s' % (GPtr['BASE_URL'], GPtr['REPO_S... | [
"0.7072639",
"0.6884629",
"0.6860858",
"0.6855843",
"0.6671423",
"0.63843304",
"0.6351728",
"0.63497233",
"0.6341211",
"0.6321154",
"0.630326",
"0.628557",
"0.6280977",
"0.62771714",
"0.6254214",
"0.62439907",
"0.62270606",
"0.62257135",
"0.6217383",
"0.62072337",
"0.61610985... | 0.6266973 | 14 |
Extracts an ending integer from a string if there is one. | def keRt(Vh5O):
y0cW = Vh5O
mLGw = None
for or8S in range(len(Vh5O)):
try:
bGrB = int(y0cW[-1])
if mLGw is None:
mLGw = y0cW[-1]
else:
mLGw = y0cW[-1] + mLGw
y0cW = y0cW[:-1]
except:
break
if mLGw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JzGu(KCHu, YRbF):\n d6pt = YRbF\n while d6pt < len(KCHu) and KCHu[d6pt].isdigit():\n d6pt += 1\n return d6pt",
"def K4Ei(KCHu):\n return int(KCHu.split()[-1])",
"def otpI(KCHu):\n r8hN = ZbWC.search('\\\\d+.csv$', KCHu)\n return int(Hy7s.path.splitext(r8hN.group())[0]) if r8hN else... | [
"0.7251173",
"0.71707594",
"0.7080132",
"0.6936712",
"0.6753455",
"0.6566972",
"0.65583736",
"0.64913255",
"0.6479304",
"0.6452397",
"0.6451668",
"0.6405511",
"0.63557076",
"0.62407106",
"0.62112564",
"0.61574227",
"0.61111295",
"0.6098749",
"0.60269743",
"0.5986453",
"0.5966... | 0.0 | -1 |
A test client for the app. | def x0hE(P4t4):
return P4t4.test_client() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0hE(P4t4):\n return NxUR(P4t4)",
"def x0hE(P4t4):\n return kO5c.TestClient(P4t4)",
"def x0hE(P4t4):\n return kO5c.TestClient(P4t4)",
"def x0hE(P4t4):\n udfG = NxUR(P4t4)\n return udfG",
"def x0hE():\n return P4t4.test_client()",
"def x0hE(P4t4):\n P4t4.testing = True\n return... | [
"0.90076566",
"0.8997619",
"0.8997619",
"0.8908316",
"0.88243234",
"0.8793984",
"0.8687299",
"0.8667235",
"0.85770994",
"0.839081",
"0.83215183",
"0.8218056",
"0.8217344",
"0.808164",
"0.80507046",
"0.80494833",
"0.8005477",
"0.7992801",
"0.7976464",
"0.79619145",
"0.7892558"... | 0.8809057 | 5 |
Given k, return k_th smallest number ever appeared | def f82K(YKHO, G1Hx):
if G1Hx < 1 or G1Hx > YKHO.n:
raise ValueError('k should be an int and between [1, n]!')
VOqT = 0
YRbF = 0
while VOqT < G1Hx:
VOqT += YKHO.C[YRbF]
YRbF += 1
return YKHO.a[YRbF - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qcvs(jzdc, G1Hx):\n GKiz = G1Hx - 1\n gqRb, ODP9 = (0, len(jzdc) - 1)\n while gqRb < ODP9:\n DDJl = Qrt_(jzdc, gqRb, ODP9)\n if DDJl == GKiz:\n return jzdc[DDJl]\n elif DDJl > GKiz:\n ODP9 = DDJl - 1\n else:\n gqRb = DDJl + 1\n return jzd... | [
"0.8278977",
"0.79754895",
"0.7739554",
"0.7612078",
"0.745986",
"0.738413",
"0.73782784",
"0.7348446",
"0.7330816",
"0.7316186",
"0.7278842",
"0.7258117",
"0.72371435",
"0.7204571",
"0.71827567",
"0.707861",
"0.70577776",
"0.7047983",
"0.699625",
"0.6993872",
"0.6982574",
... | 0.0 | -1 |
Update an inventory item This endpoint will update an inventory item based the body that is posted | def yBGf(IDut):
P4t4.logger.info('Request to update Inventory item with id: %s', IDut)
T9Qk('application/json')
B_re = JssE.find(IDut)
if not B_re:
raise oEgM("Inventory item with id '{}' was not found.".format(IDut))
B_re.deserialize(QePW.get_json())
B_re.inventory_id = IDut
B_re.sa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6hJ():\n bo34.info('Modify Item...')\n NArs = QePW.get_json()\n bo34.debug(NArs)\n if not NArs:\n raise UAju.ApiError(70001, 'Missing required key params')\n eLoB = {'item_uuid'}\n if not eLoB.issubset(NArs.keys()):\n raise UAju.ApiError(70001, 'Missing required key params')\n ... | [
"0.7482866",
"0.7406072",
"0.7388249",
"0.7333336",
"0.7272481",
"0.72494626",
"0.7091834",
"0.70563585",
"0.70050013",
"0.6957227",
"0.6871184",
"0.68588525",
"0.68119717",
"0.6784535",
"0.67803377",
"0.678029",
"0.6777077",
"0.6738324",
"0.6720671",
"0.6702851",
"0.6639783"... | 0.7231678 | 6 |
Initializes the SQLAlchemy app | def JawI():
global app
JssE.init_db(P4t4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(Emd4):\n bo34.info('Initializing database')\n pths.init_app(P4t4)\n P4t4.app_context().push()\n pths.create_all()",
"def JawI(Emd4, P4t4):\n bo34.info('Initializing database')\n Emd4.app = P4t4\n NCls.init_app(P4t4)\n P4t4.app_context().push()\n NCls.create_all()",
"def JawI... | [
"0.8382347",
"0.8085405",
"0.8085405",
"0.8085405",
"0.8085405",
"0.7913077",
"0.7823071",
"0.77671593",
"0.77452236",
"0.77283925",
"0.77227545",
"0.76791316",
"0.76088816",
"0.7560867",
"0.7506793",
"0.74504524",
"0.7443606",
"0.74311596",
"0.74311596",
"0.74311596",
"0.743... | 0.0 | -1 |
Handles bad requests with 400_BAD_REQUEST | def _ef9(P1dF):
Ol8d = str(P1dF)
P4t4.logger.warning(Ol8d)
return (pz3A(status=jGRS.HTTP_400_BAD_REQUEST, error='Bad Request', message=Ol8d), jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ef9():\n UAju = {'_request': ['bad request']}\n return P1dF(400, UAju)",
"def _ef9(QePW, AJ5d, *qIxc, **B2fa):\n nPrm = {'error': 'Bad Request (400)'}\n return jnRN(nPrm, status=jGRS.HTTP_400_BAD_REQUEST)",
"def b0c3():\n eTsH(qed_.BAD_REQUEST)",
"def Y1ZN(tTpl):\n return geh0('failed'... | [
"0.84988916",
"0.8481998",
"0.8314936",
"0.8294951",
"0.82412285",
"0.82265395",
"0.80633205",
"0.80573064",
"0.80573064",
"0.80573064",
"0.80573064",
"0.80573064",
"0.80573064",
"0.800096",
"0.7995796",
"0.78891253",
"0.7883919",
"0.7883919",
"0.7882099",
"0.7880959",
"0.786... | 0.7708482 | 27 |
Handles unexpected server error with 500_SERVER_ERROR | def r1yd(P1dF):
Ol8d = str(P1dF)
P4t4.logger.error(Ol8d)
return (pz3A(status=jGRS.HTTP_500_INTERNAL_SERVER_ERROR, error='Internal Server Error', message=Ol8d), jGRS.HTTP_500_INTERNAL_SERVER_ERROR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_XA(fWKK):\n RKD7.exception(wVCK.format_exc())\n if QePW.is_xhr:\n return oGir(status=500)\n else:\n return (N2Mn('500.html'), 500)",
"def D8YB(Wehb):\n return Yxsy(pz3A({'error': 'Server error'}), 500)",
"def eVBK(YKHO, QePW, _n4O=None, ICJ3=False):\n if not ICJ3:\n RK... | [
"0.8389705",
"0.83048093",
"0.83016497",
"0.8282621",
"0.81807256",
"0.8151604",
"0.8117752",
"0.8114206",
"0.8077019",
"0.80634403",
"0.8050843",
"0.8049716",
"0.80332714",
"0.8014705",
"0.79989296",
"0.7995657",
"0.79924005",
"0.79848427",
"0.7983808",
"0.79772526",
"0.7975... | 0.77032995 | 43 |
Generate a random data set of subgrids. | def Qhpk(uiqu, J61y, AWpB, ylXO, RfEu, zNig, yokr=None):
tuKI.seed(yokr)
return (uga7(uiqu, J61y, AWpB, ylXO, RfEu) for YRbF in range(zNig)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEM4(Cs6h):\n ZvVb = wHo_(Cs6h)\n for YRbF in range(len(ZvVb)):\n x9HF = ZvVb[YRbF]\n O7Bd = list(range(0, 16))\n MZG0 = [WKvO for WKvO in x9HF if WKvO >= 0]\n O7Bd = [FGW3 for FGW3 in O7Bd if not FGW3 in MZG0]\n tuKI.shuffle(O7Bd)\n [BAMb, uznx] = divmod(YRbF, 4... | [
"0.69878703",
"0.6750732",
"0.6623169",
"0.6616464",
"0.6602631",
"0.65985394",
"0.6476106",
"0.6474",
"0.63974416",
"0.62808365",
"0.62714875",
"0.6218492",
"0.6218134",
"0.6214662",
"0.6192626",
"0.6189315",
"0.61819476",
"0.6165144",
"0.61107993",
"0.60971683",
"0.60829514... | 0.7705655 | 0 |
Function that performs matrix multiplication | def eXXy(at2S, CKPS):
if len(at2S[0]) != len(CKPS):
return
at2S = [[YRbF for YRbF in r845] for r845 in at2S]
CKPS = [[YRbF for YRbF in r845] for r845 in CKPS]
eXXy = [[0 for YRbF in range(len(CKPS[0]))] for r845 in range(len(at2S))]
for YRbF in range(len(eXXy)):
for r845 in range(len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBCE(at2S, CKPS):\n return at2S * CKPS",
"def ywqt(YrCa, vAne):\n return XTiz.matmul(YrCa, vAne)",
"def hxFl(jzdc, Fg_i):\n pass",
"def dqm3(k0lF, tjUW):\n k0lF = oyIN.array(k0lF)\n tjUW = oyIN.array(tjUW)\n return k0lF @ tjUW",
"def hxFl(o4D3, ajwV):\n return",
"def yvXQ(KvUk, V... | [
"0.84542114",
"0.81954443",
"0.8149713",
"0.8052225",
"0.8014574",
"0.7920264",
"0.78262144",
"0.7819211",
"0.78088754",
"0.7807334",
"0.77839863",
"0.7749599",
"0.77495056",
"0.77389765",
"0.77370423",
"0.77023214",
"0.77018005",
"0.7661593",
"0.76557267",
"0.76523983",
"0.7... | 0.7189388 | 82 |
Mangle a word and gets rid of contractions so "John's" shows up as "john" | def NBjn(GIN8):
GIN8 = GIN8.lower()
if "'" in GIN8 and GIN8 not in ["don't", "haven't"]:
GIN8 = GIN8.split("'")[0]
return GIN8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJjR(GIN8):\n return ''.join([hcXw.lower() for hcXw in GIN8 if hcXw.isalpha() or hcXw in ['-', ',']])",
"def eC1R(GIN8):\n return GIN8.lower().replace('_+_', '_').replace(' ', '_')",
"def NkkI(GIN8):\n GIN8 = GIN8.lower().strip()\n if GIN8 in KXwX:\n return GIN8\n else:\n retur... | [
"0.6893076",
"0.6874526",
"0.6838278",
"0.67385274",
"0.6733717",
"0.6710633",
"0.6668539",
"0.66362864",
"0.6603643",
"0.6580818",
"0.6576247",
"0.6561054",
"0.656061",
"0.65582937",
"0.65344983",
"0.65213925",
"0.652027",
"0.6510205",
"0.65025634",
"0.6494487",
"0.64854026"... | 0.65212953 | 16 |
Make unique list while preserving order. | def I_Nq(OxJJ):
kcwm = []
for bTKY in OxJJ:
if bTKY not in kcwm:
kcwm.append(bTKY)
return kcwm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aLTp(vC9B):\n return sorted(set(vC9B))",
"def kcwm(vC9B):\n return list(set(vC9B))",
"def kcwm(vC9B):\n return list(set(vC9B))",
"def kcwm(YKHO):\n S06t = []\n for mAB6 in YKHO._list:\n if mAB6 not in S06t:\n S06t.append(mAB6)\n YKHO._list = S06t\n return YKHO",
"... | [
"0.84847814",
"0.76263654",
"0.76263654",
"0.76220506",
"0.75947475",
"0.7554433",
"0.7547219",
"0.7529658",
"0.7460902",
"0.74548715",
"0.74473655",
"0.7442481",
"0.7416558",
"0.74152327",
"0.74048084",
"0.7395064",
"0.73884505",
"0.738061",
"0.737383",
"0.7360272",
"0.73544... | 0.68167746 | 74 |
break list into num_chunks chunks. Ugly. Stolen from the web somewhere. | def yOAJ(OxJJ, vilq, WJBW=(None, None)):
mLGw = float(len(OxJJ)) / vilq
eHxA = [OxJJ[YRbF:YRbF + int(mLGw)] for YRbF in range(0, (vilq - 1) * int(mLGw), int(mLGw))]
eHxA.append(OxJJ[(vilq - 1) * int(mLGw):])
return eHxA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))",
"def eHxA(list, CX9b):\n for YRbF in range(0, len(list), CX9b):\n yield list[YRbF:YRbF + CX9b]",
"def AyNP(YKHO, list, ztRo=20):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def eHxA(bCES, mTYt):\n ... | [
"0.8380156",
"0.8269102",
"0.8195375",
"0.817927",
"0.8177787",
"0.8102833",
"0.8092361",
"0.8075034",
"0.80677307",
"0.80391383",
"0.80326724",
"0.80244535",
"0.8004004",
"0.8003266",
"0.7992669",
"0.7976311",
"0.79237306",
"0.7903491",
"0.78913295",
"0.7873587",
"0.7870634"... | 0.76690865 | 55 |
Review testing teardown. Restore original file.json. Delete the FileStorage, DBStorage and Review test instances. | def PkTX(Emd4):
try:
Hy7s.remove('file.json')
except IOError:
pass
try:
Hy7s.rename('tmp', 'file.json')
except IOError:
pass
del Emd4.state
del Emd4.city
del Emd4.user
del Emd4.place
del Emd4.review
del Emd4.filestorage
if type(FYrf.storage) ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n del YKHO.storage\n if Hy7s.path.exists('file.json'):\n Hy7s.remove('file.json')",
"def tBIc(YKHO):\n BS3y._FileStorage__objects = {}\n if Hy7s.path.exists('file.json'):\n Hy7s.remove('file.json')",
"def tBIc(YKHO):\n EOaO.helpers.File(YKHO.storage_file).delete()",... | [
"0.79804957",
"0.76925933",
"0.7629841",
"0.76034534",
"0.75952023",
"0.755439",
"0.75460637",
"0.7537061",
"0.7507841",
"0.7496657",
"0.7438331",
"0.7419988",
"0.74019045",
"0.7401389",
"0.7396073",
"0.7396073",
"0.7396073",
"0.7396073",
"0.73783755",
"0.7345901",
"0.7345901... | 0.7929373 | 1 |
Test that email attribute is nonnullable. | def Qb5y(YKHO):
with YKHO.assertRaises(MFiR):
YKHO.dbstorage._DBStorage__session.add(E1cg(place_id=YKHO.place.id, user_id=YKHO.user.id))
YKHO.dbstorage._DBStorage__session.commit()
YKHO.dbstorage._DBStorage__session.rollback()
with YKHO.assertRaises(MFiR):
YKHO.dbstorage._DBStorage__... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQ5A(YKHO):\n L03z = YKHO.make_validated_form(email='')\n YKHO.assertFalse(L03z.errors)",
"def wRGq(YKHO):\n CBIr = mv1M()\n YKHO.assertIsNone(CBIr.email_secure)",
"def l9Wu(YKHO):\n pass",
"def A0_3(YKHO) -> None:\n assert 'email' in YKHO.model._fields",
"def t91y(YKHO):\n assert ... | [
"0.7307313",
"0.70543396",
"0.6919889",
"0.69144076",
"0.6814133",
"0.67821366",
"0.6767842",
"0.67357975",
"0.67285293",
"0.6689976",
"0.6618206",
"0.6613404",
"0.6562906",
"0.6496891",
"0.6470541",
"0.64417326",
"0.6438417",
"0.64320517",
"0.63888115",
"0.6367213",
"0.63602... | 0.0 | -1 |
Check that Review is a subclass of BaseModel. | def I_4h(YKHO):
YKHO.assertTrue(issubclass(E1cg, KcDH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EeqD(YKHO):\n YKHO.assertTrue(issubclass(YKHO.rev.__class__, KcDH), True)\n YKHO.assertIsInstance(YKHO.rev, E1cg)",
"def EeqD(YKHO):\n YKHO.assertTrue(issubclass(YKHO.rev.__class__, KcDH), True)",
"def EeqD(YKHO):\n YKHO.assertTrue(issubclass(YKHO.rev.__class__, KcDH), True)",
"def IyqI(YKHO)... | [
"0.8767224",
"0.86791617",
"0.86791617",
"0.8548632",
"0.84478253",
"0.83200645",
"0.8246973",
"0.81588113",
"0.815782",
"0.7799632",
"0.778563",
"0.7544839",
"0.7167829",
"0.7125218",
"0.6916615",
"0.6910233",
"0.68863785",
"0.6807252",
"0.67603624",
"0.6753017",
"0.67308617... | 0.85990757 | 3 |