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 |
|---|---|---|---|---|---|---|
Unpack a 64 bit integer. | def WhIS(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:
return MZ6z(BWXx, 64, dmhX, Zihr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nSR0(nPrm):\n BWXx = MZ6z(vqOS.INT64_BYTE_FORMAT, nPrm[:8])[0]\n return (BWXx, 8)",
"def eQcc(YKHO, dmhX='<'):\n return YKHO.unpack('%sq' % dmhX, 8)",
"def yvRj(nPrm):\n return BlNT.unpack('<Q', nPrm)[0]",
"def c6Im(D92J: typing.List[int]) -> int:\n return sqoO(D92J, True)",
"def xFuX(D9... | [
"0.77930623",
"0.7212262",
"0.6988175",
"0.68668485",
"0.67630064",
"0.65976274",
"0.65869117",
"0.6542752",
"0.6467777",
"0.6450494",
"0.631488",
"0.62452245",
"0.6222874",
"0.6221238",
"0.61923754",
"0.61922246",
"0.6127858",
"0.6076253",
"0.60701835",
"0.60701835",
"0.6040... | 0.7342726 | 1 |
Returns whether or not the group is currently muted | async def get_mute(YKHO, hE03: int) -> bool:
dixj = await YKHO._api.call('group', 'get_mute', gid=hE03)
return dixj.header.vars.get('state') == 'on' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UGFg(YKHO) -> bool:\n return YKHO._muted",
"def lYZP(YKHO):\n return YKHO.muting_handler.is_muted()",
"def lYZP(YKHO):\n return YKHO._is_muted",
"def wkiy(YKHO):\n return YKHO._isMuted",
"def qHHI(YKHO):\n return YKHO._isMuted",
"def qHHI(YKHO):\n return YKHO._state.get('mute', None... | [
"0.82060486",
"0.7902248",
"0.7778891",
"0.77541435",
"0.77435714",
"0.77433336",
"0.7736492",
"0.7736492",
"0.7736492",
"0.76979184",
"0.7504682",
"0.7495899",
"0.7357085",
"0.6853823",
"0.6839233",
"0.6755185",
"0.670104",
"0.6700856",
"0.64677656",
"0.62433064",
"0.6210645... | 0.70657253 | 13 |
Sets the volume level on the group | async def set_volume(YKHO, hE03: int, ABDL: int) -> None:
if not YKHO.VOLUME_MIN <= ABDL <= YKHO.VOLUME_MAX:
raise ValueError(f'Level must be between {YKHO.VOLUME_MIN} and {YKHO.VOLUME_MAX}')
await YKHO._api.call('group', 'set_volume', gid=hE03, level=ABDL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agNO(YKHO, ABDL):\n YKHO._remote.volume(int(ABDL * 60))",
"async def async_set_volume_level(YKHO, akib: float) -> None:\n await YKHO._group.set_volume(round(akib * 100))\n YKHO.async_write_ha_state()",
"def agNO(YKHO, akib):\n YKHO._volume = akib",
"def agNO(YKHO, akib):\n YKHO._volume = a... | [
"0.7835308",
"0.7779876",
"0.76944256",
"0.76944256",
"0.76304144",
"0.7603562",
"0.7572225",
"0.75515115",
"0.75143075",
"0.74580747",
"0.7423177",
"0.7382089",
"0.7375795",
"0.7352901",
"0.7254881",
"0.72219044",
"0.71914285",
"0.7054412",
"0.7046454",
"0.70393115",
"0.6960... | 0.8247164 | 0 |
If user is going to /profile anyway, don't redirect them | def uu_I(YKHO):
YKHO.create_user_and_login(agreed_to_terms_of_service=True, filled_out=False)
_hkX = YKHO.client.get(j9N8)
assert _hkX.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ymx3(QePW):\n if not hasattr(QePW.user, 'profile'):\n return vKnz('index')\n else:\n return vKnz('registration_process')",
"def RuJL():\n if Oa1e.USER:\n return vKnz(nKyW('profile', username=Oa1e.USER.username))\n return vKnz(nKyW('home'))",
"def NMoC(YKHO, QePW, *qIxc, **B... | [
"0.7255817",
"0.72039914",
"0.6965785",
"0.6909972",
"0.6901148",
"0.6867212",
"0.6866252",
"0.68644387",
"0.6722343",
"0.65752923",
"0.65680116",
"0.65494317",
"0.6506799",
"0.65036356",
"0.6487468",
"0.6420049",
"0.6398205",
"0.6394704",
"0.63742226",
"0.63365525",
"0.63306... | 0.6748943 | 8 |
Test if num is a power of 2. (int > bool) | def pW_H(mLGw):
mLGw = int(mLGw)
return mLGw != 0 and mLGw & mLGw - 1 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmvc(mLGw: int) -> bool:\n return mLGw & mLGw - 1 == 0 and mLGw > 0",
"def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0",
"def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0",
"def z0fB(exwG):\n if exwG < 0:\n return False\n else:\n return exwG & exwG - 1 ==... | [
"0.8742579",
"0.8739187",
"0.8739187",
"0.8265603",
"0.82158875",
"0.79109615",
"0.79091007",
"0.78798586",
"0.78774834",
"0.78754234",
"0.76183957",
"0.6965005",
"0.6939847",
"0.68730646",
"0.68239594",
"0.67543066",
"0.6735248",
"0.67183286",
"0.66449463",
"0.6576456",
"0.6... | 0.8712512 | 3 |
Compute the smallest power of 2 >= to num.(float > int) | def HJcJ(mLGw):
return 2 ** int(oyIN.ceil(oyIN.log2(mLGw))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh",
"def UoNd(WKvO):\n return 1 << (WKvO - 1).bit_length()",
"def Dmvc(WKvO):\n return WKvO == fnCj(WKvO)",
"def hKtM(YKHO, exwG):\n if exwG == 0:\n return 1\n return int(2 ** epAf.ceil(epAf... | [
"0.7385786",
"0.73798734",
"0.73216134",
"0.7192021",
"0.7186426",
"0.70581555",
"0.7045594",
"0.7013145",
"0.69955385",
"0.68677104",
"0.68614525",
"0.67954695",
"0.6760385",
"0.6760385",
"0.67593217",
"0.67382836",
"0.67181736",
"0.67164856",
"0.663026",
"0.658525",
"0.6568... | 0.7663828 | 0 |
Return a filepath to a cute picture of an animal. If a message is provided, will try to parse the message for an animal we have registered and try to find a picture of the animal. If the message does not contain an animal we have registered, or is not provided, will return a picture for a random animal from our choices... | def uBcb(YKHO, Ol8d=None):
io6K = None
if Ol8d:
io6K = YKHO._get_animal_from_message(Ol8d)
if io6K is None:
io6K = tuKI.choice(YKHO.animals)
Riih = '{}/{}'.format(gCuF.IMAGE_DIRECTORY, io6K)
iI7L = tuKI.choice(Hy7s.listdir(Riih))
return '{}/{}'.format(Riih, iI7L) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETpV(YKHO, Ol8d):\n io6K = None\n u_se = '({animals})'.format(animals='|'.join(YKHO.animals))\n U5bT = ZbWC.findall(u_se, Ol8d)\n if U5bT:\n io6K = tuKI.choice(U5bT)\n return io6K",
"def XZhn():\n VXjJ = tuKI.choice(xkjI)\n LV1A = tuKI.choice(PenU)\n NCC9 = tuKI.choice(LV1A)\n ... | [
"0.65964687",
"0.6558159",
"0.62370455",
"0.62126964",
"0.59554297",
"0.59009993",
"0.5867215",
"0.58375984",
"0.56845075",
"0.5646861",
"0.5548076",
"0.5523026",
"0.55105233",
"0.54953235",
"0.5467597",
"0.5414916",
"0.53987855",
"0.53573287",
"0.5356251",
"0.53278863",
"0.5... | 0.87228394 | 0 |
Given a message parse the string to find if the message contains an animal in our choices list. If we can't find an animal from our choices in the text, return None. | def ETpV(YKHO, Ol8d):
io6K = None
u_se = '({animals})'.format(animals='|'.join(YKHO.animals))
U5bT = ZbWC.findall(u_se, Ol8d)
if U5bT:
io6K = tuKI.choice(U5bT)
return io6K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwd0(mrPm: list, Acvy: str):\n if Acvy == '1':\n return 0\n if Acvy == '2':\n return 1\n mrPm = list(map(str.lower, mrPm))\n V22M = list(map(str.split, mrPm))\n for GIN8 in Acvy.lower().split():\n if GIN8 in V22M[0] and GIN8 not in V22M[1]:\n return 0\n eli... | [
"0.606461",
"0.5299773",
"0.52959967",
"0.51993984",
"0.50815886",
"0.5071449",
"0.5029537",
"0.50161564",
"0.49730578",
"0.49722525",
"0.4935244",
"0.49352235",
"0.49296334",
"0.49292344",
"0.4914024",
"0.48905495",
"0.48655167",
"0.4861523",
"0.48423055",
"0.4836423",
"0.48... | 0.7347285 | 0 |
Returns the amount of money we get in case of a coupon payment | def MevX(VQa0, K1nB):
return sum((bLdI for mWFP, bLdI in VQa0['underlyings'].items())) * K1nB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MbJ3(YKHO):\n return int(round(YKHO.payment * 100, 0))",
"def ZW42(YKHO):\n m3Nh = YKHO.records.find_customers(str(YKHO.__customer).strip())\n GPz8 = YKHO.order_value\n FMQW = m3Nh.get_discount(GPz8)\n return FMQW",
"def Hpfe(YKHO):\n if YKHO.currency.code in ('BIF', 'XAF', 'XPF', 'CLP', ... | [
"0.7044716",
"0.6959202",
"0.67286813",
"0.6720781",
"0.66810477",
"0.6679439",
"0.65815043",
"0.65780234",
"0.6560561",
"0.65283465",
"0.6497476",
"0.64899194",
"0.64650804",
"0.64188606",
"0.6411846",
"0.64080226",
"0.63927466",
"0.63927466",
"0.6348151",
"0.6330993",
"0.63... | 0.60244745 | 49 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
def JCoA(YWSi, rb7a, YimI, Cwt5, UqYS):
Ty9i = float('-inf')
for KCXm in YimI.getLegalActions(YWSi):
BWXx = LGoQ(1, rb7a, YimI.generateSuccessor(YWSi, KCXm), Cwt5, UqYS)
Ty9i = max(Ty9i, BWXx)
if Ty9i > UqYS:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.0 | -1 |
Normalizes values of array x in the range 0...1 for each entry along axis. | def yBlh(WKvO, jDK_, yDqo=float):
WKvO = WKvO.astype(yDqo)
IUFG = [slice(None) for YRbF in range(WKvO.ndim)]
try:
for YRbF in range(WKvO.shape[jDK_]):
IUFG[jDK_] = YRbF
QyVM = tuple(IUFG)
UdxA = WKvO[QyVM].min()
zt1J = WKvO[QyVM].max()
WKvO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwsU(WKvO):\n return (WKvO - oLG2.min(WKvO)) / (oLG2.max(WKvO) - oLG2.min(WKvO))",
"def kwsU(WKvO):\n WKvO = oyIN.copy(WKvO)\n OfOG = WKvO.shape[1]\n for TMa9 in range(OfOG):\n fvDH = WKvO[:, TMa9]\n aM8h = oyIN.max(fvDH)\n WKvO[:, TMa9] = fvDH / aM8h\n return WKvO",
"de... | [
"0.8137932",
"0.8125129",
"0.80050844",
"0.79591656",
"0.7941651",
"0.79366153",
"0.7924594",
"0.78650326",
"0.7789366",
"0.7735067",
"0.7685656",
"0.7579968",
"0.7575515",
"0.7575515",
"0.7495279",
"0.7493347",
"0.74757946",
"0.74170405",
"0.74170405",
"0.74170405",
"0.73780... | 0.73843914 | 20 |
initialize a UnannotatedDataset instance | def FIMM(YKHO, tk5Y, QwhQ, yMhW, Ebrp='s', sVVD='t', SZFh=None, VYzn=None):
super().__init__(tk5Y, transform=SZFh, target_transform=VYzn)
YKHO.spect_paths = QwhQ
YKHO.spect_key = Ebrp
YKHO.timebins_key = sVVD
YKHO.window_size = yMhW
klT0 = 0
z6My, bGrB = YKHO.__getitem__(klT0)
YKHO.shape... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, W9nI):\n YKHO._unencoded_dataset = W9nI\n YKHO._plain_train = YKHO._get_plain_train()\n YKHO._plain_test = YKHO._get_plain_test()... | [
"0.7326177",
"0.7300945",
"0.7279701",
"0.6786179",
"0.664395",
"0.663583",
"0.65546256",
"0.6495789",
"0.64646125",
"0.640933",
"0.638711",
"0.63490206",
"0.62937415",
"0.6206585",
"0.62022907",
"0.61671495",
"0.6136067",
"0.6134071",
"0.61328566",
"0.6124787",
"0.6114436",
... | 0.0 | -1 |
Return True if the queen at column c clashes with any queen to its left. | def nERh(lHmx, Z9rn):
for YRbF in range(Z9rn):
if C7r_(Z9rn, lHmx[Z9rn], YRbF, lHmx[YRbF]):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True",
"def SGVO(OHLN):\n exwG = len(OHLN)\n WfCS = range(exwG)\n return exwG == len(set((OHLN[YRbF]... | [
"0.77055407",
"0.72922397",
"0.7145801",
"0.70153964",
"0.6985228",
"0.6902115",
"0.66958386",
"0.65576535",
"0.6551649",
"0.6548673",
"0.6523149",
"0.6523149",
"0.6522317",
"0.6519715",
"0.65155363",
"0.6512403",
"0.6512403",
"0.65036315",
"0.6501785",
"0.64987516",
"0.64938... | 0.6355316 | 34 |
Iterator, chunks repeated values | def k245(yv6U):
for r845, TLv5 in enumerate(yv6U):
if r845 == 0:
a0GJ, YRbF = (TLv5, 0)
if a0GJ != TLv5:
yield (r845 - YRbF, a0GJ)
YRbF = r845
a0GJ = TLv5
yield (r845 - YRbF + 1, TLv5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBT0(YKHO):\n for exwG in range(0, len(YKHO.data) + 1, len(YKHO.data) // YKHO.num_of_chunks):\n yield YKHO.data[0 + exwG:len(YKHO.data) // YKHO.num_of_chunks + exwG]",
"def yOAJ(WhY1, zNig):\n WhY1 = iter(WhY1)\n return iter(lambda: tuple(uOgj(WhY1, zNig)), ())",
"def dlVb(T6S7, zNig):\n ... | [
"0.7251167",
"0.7177626",
"0.7130785",
"0.71232283",
"0.70711863",
"0.7048549",
"0.7034991",
"0.70266014",
"0.69485027",
"0.68571484",
"0.6856559",
"0.68546176",
"0.68392646",
"0.6785348",
"0.6776854",
"0.6776614",
"0.67567474",
"0.6746808",
"0.6745287",
"0.6741101",
"0.67285... | 0.0 | -1 |
function returns string on welcome page | def kZiy():
return 'Alive!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uthR():\n return f\"Welcome to the 'Surf's Up' Climate App! <br/>Available Routes:<br/>For Precipiations Data from the Last 12 Months: /api/v1.0/precipitation <br/>For A Complete List of Stations: /api/v1.0/stations <br/>For Temperature Observations from the Busiest Station* from the Last 12 Months: /api/v1... | [
"0.78411657",
"0.7768572",
"0.7749537",
"0.7742824",
"0.77248496",
"0.77228695",
"0.7714821",
"0.7713833",
"0.7683574",
"0.7633418",
"0.7607578",
"0.7597735",
"0.75628895",
"0.7538602",
"0.7535203",
"0.7534152",
"0.7504829",
"0.7495256",
"0.74878114",
"0.74811184",
"0.7469224... | 0.70254123 | 87 |
returns the result of x^y mod n | def CTEF(WKvO, LVAh, exwG):
if LVAh == 0:
return 1
YLnl = CTEF(WKvO, LVAh / 2, exwG)
if LVAh % 2 == 0:
return YLnl ** 2 % exwG
else:
return WKvO * YLnl ** 2 % exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UgkH(WKvO, LVAh, exwG):\n Aofo = 1\n while LVAh > 0:\n if LVAh & 1 == 1:\n Aofo = Aofo * WKvO % exwG\n LVAh = LVAh >> 1\n WKvO = WKvO * WKvO % exwG\n return Aofo",
"def WQiS(jzdc, exwG, XP5J):\n Ylbp = 1\n jzdc = jzdc % XP5J\n while exwG > 0:\n if exwG... | [
"0.8080248",
"0.7587051",
"0.7483047",
"0.74777716",
"0.7475592",
"0.74505883",
"0.7444581",
"0.7435717",
"0.7407008",
"0.7386572",
"0.73720056",
"0.7300809",
"0.7291958",
"0.7258364",
"0.7253965",
"0.72051156",
"0.72027093",
"0.71822876",
"0.71670157",
"0.7127054",
"0.709578... | 0.7542747 | 2 |
Compute the softmax of each element along an axis of X. | def N93T(EcVT, jDK_):
LVAh = oyIN.atleast_2d(EcVT)
LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_)
LVAh = oyIN.exp(LVAh)
GM4D = oyIN.expand_dims(oyIN.sum(LVAh, axis=jDK_), jDK_)
XP5J = LVAh / GM4D
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9",
"def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi... | [
"0.8648168",
"0.8523443",
"0.8501356",
"0.845101",
"0.8424965",
"0.8401308",
"0.83822155",
"0.83788544",
"0.8372522",
"0.83631027",
"0.835532",
"0.8344603",
"0.8326291",
"0.8309666",
"0.82737535",
"0.8272703",
"0.82659155",
"0.824838",
"0.824838",
"0.8244414",
"0.82432497",
... | 0.8110068 | 61 |
Test that the copy name is based on the data model if the original subject doesn't have a name. | def XH2a(YKHO):
YKHO.subject['name'] = ''
EK5z = St99(YKHO.subject, YKHO.DATA_MODEL)
YKHO.assertEqual('Software (copy)', EK5z['name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SaMl(YKHO):\n EK5z = St99(YKHO.subject, YKHO.DATA_MODEL, change_name=False)\n YKHO.assertEqual('Subject', EK5z['name'])",
"def ERJg(YKHO):\n EK5z = St99(YKHO.subject, YKHO.DATA_MODEL)\n YKHO.assertEqual('Subject (copy)', EK5z['name'])",
"def ERJg(YKHO):\n I6oN = qmcJ(YKHO.source, YKHO.DATA_M... | [
"0.88873017",
"0.8691286",
"0.7811251",
"0.77832234",
"0.7486555",
"0.7380365",
"0.7351881",
"0.7196302",
"0.70959884",
"0.6792372",
"0.6631461",
"0.65845174",
"0.62648475",
"0.5981978",
"0.59408563",
"0.59408563",
"0.5894436",
"0.58697796",
"0.586741",
"0.5839228",
"0.581219... | 0.8606052 | 2 |
Generate data by sampling from latent space. If z_mu is not None, data for this point in latent space is generated. Otherwise, z_mu is drawn from prior in latent space. | def C6M2(YKHO, LVAh, g5a_=None):
if g5a_ is None:
g5a_ = oyIN.random.normal(size=YKHO.network_architecture['n_z'])
return YKHO.sess.run(YKHO.x_reconstr_mean, feed_dict={YKHO.z: g5a_, YKHO.y: LVAh.reshape([-1, 1])}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))",
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))",
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))",
"def... | [
"0.660405",
"0.660405",
"0.660405",
"0.660405",
"0.660405",
"0.6534334",
"0.6397323",
"0.61442673",
"0.6121328",
"0.6086617",
"0.6054408",
"0.6054192",
"0.5983142",
"0.59812415",
"0.5959901",
"0.59052175",
"0.5867946",
"0.5866582",
"0.5866582",
"0.5866582",
"0.5866582",
"0.... | 0.6008274 | 12 |
Produces a linearised probability plot for the lognormal distribution. | def mvZc(a1PO, Mkmy, uVWk=None, vxWx=None, aNZO=None, _5yy='o', qfpW='blue', UXqs=None):
if aNZO is None:
aNZO = QrM1.gca()
LVAh = CkYf.ppf(1 - Mkmy)
WKvO = oyIN.log(a1PO)
aNZO.scatter(WKvO, LVAh, color=qfpW, label=UXqs, marker=_5yy)
if uVWk is not None:
dbEo = CkYf.ppf(1 - uVWk)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JtD_(YKHO, aNZO, ZHfW=None, **B2fa):\n fhU0 = YKHO.rec_smooth_pos\n HNjq = oyIN.where(oyIN.isfinite(fhU0.noise))[0]\n WTkW = oyIN.std(fhU0.noise[HNjq])\n yGTL = oyIN.average(fhU0.noise[HNjq])\n B2fa['linestyle'] = '-'\n B2fa['linewidth'] = 1.0\n if len(HNjq) > 10:\n try:\n ... | [
"0.6935847",
"0.66377306",
"0.64029247",
"0.63893706",
"0.6319592",
"0.62403464",
"0.62243557",
"0.62080157",
"0.6206531",
"0.6151104",
"0.6115379",
"0.60753834",
"0.60631967",
"0.60576105",
"0.6037297",
"0.6018699",
"0.60162073",
"0.60037184",
"0.5957338",
"0.5952947",
"0.59... | 0.65246713 | 2 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
j5sA = ' '
x0eS = ' '
CjKC = ' '
print("Hello! Let's explore some US bikeshare data!\n")
while True:
j5sA = input('Would you like to see data for Chicago, New York, or Washington?\n')
gysO = ['chicago', 'new york', 'washington']
if j5sA.lower() in gysO:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.0 | -1 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day'] = jQ3Z['Start Time'].dt.weekday_name
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
jQ3Z['And'] = ' & '
jQ3Z['StartEnd'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7335328 | 100 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
print('Most common month: ')
print(jQ3Z['month'].mode()[0])
print('Most common day: ')
print(jQ3Z['day'].mode()[0])
print('Most common start hour: ')
print(jQ3Z['hour'].mode()[0])
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.8023676",
"0.8022362",
"0.79149705",
"0.78213924",
"0.7813664",
"0.7765152",
"0.77395964",
"0.7735777",
"0.7733763",
"0.76860064",
"0.7668081",
"0.7651128",
"0.7644099",
"0.7639373",
"0.7636164",
"0.7624668",
"0.7622597",
"0.76122236",
"0.7599646",
"0.75829977",
"0.7579222... | 0.7825905 | 3 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('Most common start station: ')
print(jQ3Z['Start Station'].mode()[0])
print('Most common end station: ')
print(jQ3Z['End Station'].mode()[0])
print('Most frequent combination of start and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.72815245 | 32 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('Total travel time: ')
print(jQ3Z['Trip Duration'].sum())
print('Average travel time: ')
print(jQ3Z['Trip Duration'].mean())
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664047",
"0.7863... | 0.7937415 | 4 |
Return slope of repolarization period between trough and baseline After reaching it's maxumum polarization, the neuron potential will recover. The repolarization slope is defined as the dV/dT of the action potential between trough and baseline. Optionally the function returns also the indices per waveform where the pot... | def NGjr(kReO, e2Vh, Lzt7=False):
VwIq, ryLa = dU0I(kReO)
PPfQ = oyIN.empty(kReO.shape[0])
PPfQ[:] = oyIN.nan
n4f1 = oyIN.empty(kReO.shape[0], dtype=oyIN.int)
n4f1[:] = 0
ITS7 = oyIN.arange(0, kReO.shape[1]) * (1 / e2Vh)
for YRbF in range(kReO.shape[0]):
if VwIq[YRbF] == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPfQ(WKvO, LVAh, KnxT):\n import numpy as oyIN\n if len(WKvO) != len(LVAh):\n print('Error: x and y must be the same length')\n return 0\n ywwl = len(WKvO)\n D9G2 = oyIN.ones(ywwl)\n HJbc = oyIN.empty(2 * KnxT + ywwl)\n HJbc[0:KnxT] = 0\n HJbc[KnxT:ywwl + KnxT] = WKvO\n HJ... | [
"0.58379334",
"0.5803326",
"0.5730749",
"0.5638403",
"0.5474698",
"0.54089415",
"0.5407718",
"0.5350361",
"0.5348057",
"0.53432703",
"0.5302389",
"0.5261501",
"0.525283",
"0.5250733",
"0.5244446",
"0.5223535",
"0.5220072",
"0.5212352",
"0.51912844",
"0.5188852",
"0.51677907",... | 0.6774447 | 0 |
Return the toplevel data directory. | def lCFC():
return Hy7s.path.join(Hy7s.getenv('HOME'), 'stellar-mass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_xa(YKHO):\n return YKHO._data_dir",
"def h_xa(YKHO):\n return YKHO._data_dir",
"def h_xa(YKHO):\n return YKHO._data_dir",
"def xe5l(YKHO):\n return YKHO.data_dir",
"def h_xa():\n return viqz.datadir",
"def uRIH(YKHO):\n return YKHO.get_raw('data_directory')",
"def h_xa(YKHO) -> ... | [
"0.7853355",
"0.78523815",
"0.78523815",
"0.784796",
"0.7825752",
"0.7784888",
"0.7779173",
"0.7733864",
"0.77277327",
"0.76710695",
"0.76486516",
"0.764862",
"0.76370835",
"0.7620126",
"0.7602108",
"0.7601692",
"0.74984044",
"0.74838716",
"0.74833477",
"0.74635625",
"0.74427... | 0.6655436 | 61 |
Get the list of keras metrics to be used with the RelevanceModel | def lonc(aMxf: List[str]) -> x1iM[uLKX[d_mb, str]]:
return [Rb1O.get_metric(metric_key=BatK) for BatK in aMxf] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lonc(C3ST, EcVT, LVAh, Tqcf={'accuracy': wMYI(aFTQ)}):\n Wbxz = {}\n for AcYW in Tqcf:\n p1kx = Tqcf[AcYW](C3ST, EcVT, LVAh)\n Wbxz[AcYW] = p1kx\n print('%s\\t%s' % (AcYW, p1kx))\n return Wbxz",
"def OVYK(YKHO):\n Wbxz = ['loss']\n try:\n r8hN = KkY2.metrics_from_mo... | [
"0.6830628",
"0.6561114",
"0.6407309",
"0.6385046",
"0.63840514",
"0.638032",
"0.6377268",
"0.6365058",
"0.63254255",
"0.63193583",
"0.6248947",
"0.6243238",
"0.6231267",
"0.62287164",
"0.62192327",
"0.6179102",
"0.6172044",
"0.61600727",
"0.6131287",
"0.6122013",
"0.6076984"... | 0.0 | -1 |
Returns config for tf.session | def tgzD():
GPtr = ZylS.ConfigProto(allow_soft_placement=True)
GPtr.gpu_options.allow_growth = True
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEiz(YKHO):\n GPtr = ZylS.ConfigProto()\n GPtr.gpu_options.allow_growth = True\n GPtr.gpu_options.visible_device_list = str(YKHO.device_num)\n return ZylS.Session(config=GPtr)",
"def tgzD():\n GPtr = ZylS.ConfigProto(allow_soft_placement=True)\n GPtr.gpu_options.allow_growth = True\n ret... | [
"0.7999958",
"0.75894344",
"0.72901034",
"0.7119736",
"0.6969369",
"0.6781894",
"0.65969217",
"0.64716965",
"0.6348045",
"0.6322737",
"0.631881",
"0.62444156",
"0.6241746",
"0.6201172",
"0.61908853",
"0.61729336",
"0.6153548",
"0.6133191",
"0.6101502",
"0.6080999",
"0.6076644... | 0.7535755 | 2 |
Transforms a text sequence to dictionary with index representation of word. Index from alphabetical ordering | def eQ9o(*, l5Ny: str) -> cuzp:
V22M = ZbWC.findall('\\w+', l5Ny.lower())
V22M = sorted(list(set(V22M)))
return {yzQ0: V22M.index(yzQ0) for yzQ0 in V22M} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOI3(l5Ny: Iterable) -> cuzp[str, x1iM[AzJI[int, int]]]:\n d6pt = oRi_(list)\n for Q82t, zFiD in enumerate(l5Ny, 1):\n for kUBT in uZsy.finditer(zFiD):\n GIN8 = kUBT.group()\n hodm = kUBT.start() + 1\n Rci7 = (Q82t, hodm)\n d6pt[GIN8].append(Rci7)\n r... | [
"0.75115854",
"0.7007506",
"0.6914698",
"0.69092387",
"0.6765797",
"0.67446685",
"0.66158366",
"0.656521",
"0.65445685",
"0.65431255",
"0.6542468",
"0.6520293",
"0.64818096",
"0.6481161",
"0.6471223",
"0.64695764",
"0.64690566",
"0.64555514",
"0.64185774",
"0.634428",
"0.6295... | 0.7997426 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
qsgz = cmPJ.get('TotalOffers')
gurM = cmPJ.get('TotalOfferPages')
B2mP = cmPJ.get('MoreOffersUrl')
Ltg2 = None
if cmPJ.get('Offer') != None:
Ltg2 = list()
for g8x2 in cmPJ.get('Offer'):
Ltg2.append(jT7V.models... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.0 | -1 |
Get the toplevel model folder names underneath the appDeployments section. | def _U5p(YKHO):
return list(YKHO.__app_deployments_top_level_folders) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0BQ(YKHO):\n Emaa, RJsz = YKHO._FindKeyFiles()\n if Emaa is None:\n return None\n TLI7 = Hy7s.path.dirname(Emaa)\n RRlC = Hy7s.listdir(TLI7)\n JHf2 = []\n for FYKK in RRlC:\n CCrh = Hy7s.path.join(TLI7, FYKK)\n if Hy7s.path.isdir(CCrh) and Hy7s.path.isfile(Hy7s.path.join... | [
"0.67357963",
"0.6707481",
"0.6629796",
"0.62143904",
"0.62103814",
"0.6176339",
"0.61655825",
"0.6100475",
"0.6096638",
"0.6034409",
"0.59899044",
"0.5891733",
"0.5855422",
"0.5828501",
"0.582037",
"0.5709121",
"0.56600755",
"0.5631647",
"0.562626",
"0.55994487",
"0.55653644... | 0.816869 | 0 |
Get the WLST MBean name for the specified location. | def oDa_(YKHO, Rci7):
tAJG = 'get_wlst_mbean_name_for_location'
I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)
MbAb = YKHO.__get_dictionary_for_location(Rci7, False)
HrMF = None
if MbAb is not None:
if Kw9t in MbAb:
HrMF = MbAb[Kw9t]
elif VIk3 in M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LY_f(YKHO, Rci7):\n tAJG = 'get_online_bean_name_for_location'\n I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)\n nbpz = ''\n MbAb = YKHO.__get_dictionary_for_location(Rci7, False)\n if w7Q7 in MbAb:\n nbpz = MbAb[w7Q7]\n I45O.exiting(class_name=EkF8, method_nam... | [
"0.65598637",
"0.6440005",
"0.60279965",
"0.5829499",
"0.5740292",
"0.56658196",
"0.5626133",
"0.56203943",
"0.5591339",
"0.5507877",
"0.54946566",
"0.54946566",
"0.5474041",
"0.54487234",
"0.54377",
"0.54059875",
"0.5382291",
"0.5382291",
"0.53609353",
"0.53508145",
"0.53307... | 0.78426397 | 0 |
Get the WLST MBean type for the specified location. | def gJuF(YKHO, Rci7):
tAJG = 'get_wlst_mbean_type_for_location'
I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)
if not YKHO.is_model_location_valid(Rci7):
return None
MbAb = YKHO.__get_dictionary_for_location(Rci7, False)
if MbAb is None:
VCAu = None
elif U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oDa_(YKHO, Rci7):\n tAJG = 'get_wlst_mbean_name_for_location'\n I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)\n MbAb = YKHO.__get_dictionary_for_location(Rci7, False)\n HrMF = None\n if MbAb is not None:\n if Kw9t in MbAb:\n HrMF = MbAb[Kw9t]\n e... | [
"0.6363691",
"0.5564492",
"0.5480641",
"0.5480641",
"0.5460233",
"0.5363872",
"0.5349335",
"0.5346862",
"0.52896726",
"0.52832425",
"0.5256891",
"0.52351975",
"0.51944554",
"0.51760113",
"0.51674753",
"0.5165391",
"0.51571786",
"0.5142682",
"0.5112325",
"0.5109181",
"0.510709... | 0.8366184 | 0 |
Get the online bean class name for the specified location. | def LY_f(YKHO, Rci7):
tAJG = 'get_online_bean_name_for_location'
I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)
nbpz = ''
MbAb = YKHO.__get_dictionary_for_location(Rci7, False)
if w7Q7 in MbAb:
nbpz = MbAb[w7Q7]
I45O.exiting(class_name=EkF8, method_name=tAJG, resu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oDa_(YKHO, Rci7):\n tAJG = 'get_wlst_mbean_name_for_location'\n I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)\n MbAb = YKHO.__get_dictionary_for_location(Rci7, False)\n HrMF = None\n if MbAb is not None:\n if Kw9t in MbAb:\n HrMF = MbAb[Kw9t]\n e... | [
"0.6643693",
"0.5841632",
"0.57243204",
"0.566328",
"0.56352216",
"0.5585703",
"0.5507082",
"0.5489415",
"0.5487095",
"0.5468062",
"0.5446967",
"0.5446967",
"0.5388775",
"0.5361446",
"0.5271288",
"0.526342",
"0.5251421",
"0.5251421",
"0.5246386",
"0.5221342",
"0.5206687",
"... | 0.8220318 | 0 |
Determine if the specified location is valid, including version/mode checks. Returns a boolean answer instead of the (ValidationCode, message) tuple used elsewhere. | def OdEY(YKHO, Rci7):
if len(Rci7.get_model_folders()) > 0:
ovrF = NQQD(Rci7)
xtX7 = ovrF.pop_location()
Wxnj, Ol8d = YKHO.is_valid_model_folder_name_for_location(ovrF, xtX7)
if Wxnj != jLQu.VALID:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYAh(YKHO, Rci7):\n tAJG = 'is_version_valid_location'\n I45O.entering(kV5a.to_string(Rci7), class_name=EkF8, method_name=tAJG)\n Wxnj = jLQu.VALID\n Ol8d = ''\n if YKHO.get_wlst_mbean_type_for_location(Rci7) is None:\n uup9 = YKHO.get_model_folder_path_for_location(Rci7)\n Ol8d = ... | [
"0.79280347",
"0.65032697",
"0.6418528",
"0.632665",
"0.63242877",
"0.6170731",
"0.606353",
"0.60096663",
"0.60090554",
"0.60068333",
"0.5853153",
"0.5831007",
"0.5824646",
"0.576646",
"0.5703268",
"0.5694241",
"0.5692312",
"0.56704646",
"0.5555044",
"0.55413055",
"0.5522839"... | 0.6621528 | 1 |
Remove any curly braces and return the value for the current WLST mode. | def lJ3N(YKHO, BWXx):
Myez = kV5a.to_string(BWXx)
if '${' in Myez:
SQ3m = DjIV.parse_curly_braces(Myez)
return SQ3m[YKHO._wlst_mode]
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NSJ6(YKHO, wEf2):\n bo34.debug('Strip braces')\n wEf2 = wEf2.strip()\n if wEf2.startswith('{') and wEf2.endswith('}') and YKHO._full_span(wEf2):\n return wEf2[1:-1]\n return wEf2",
"def JWuJ(zFiD):\n kUBT = gN7b.match(zFiD)\n if not kUBT:\n return zFiD\n return kUBT.groups(... | [
"0.66221845",
"0.54903525",
"0.5448728",
"0.5322757",
"0.5257414",
"0.5247903",
"0.5113087",
"0.51008976",
"0.5050025",
"0.49775994",
"0.49364486",
"0.49298143",
"0.4845963",
"0.48194852",
"0.47890183",
"0.4737286",
"0.47093135",
"0.4708715",
"0.46691692",
"0.46600592",
"0.46... | 0.63641816 | 1 |
Assumes outputs contains hidden states. Then transforms into tensors. | def jn2h(o4Jx):
h3vC = o4Jx[2]
zMl4 = ht2j.stack(h3vC, dim=0)
zMl4 = ht2j.squeeze(zMl4, dim=1)
zMl4 = zMl4.permute(1, 0, 2)
return zMl4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jvkf():\n Tfyd = M6_7()\n hiSN = ZylS.map_fn(BR3M, Tfyd)\n G2Zv = ZylS.nn.softmax(hiSN, axis=0)\n aNps = ZylS.einsum('ijk,ijl->jkl', G2Zv, Tfyd)\n hlel = ZylS.nn.sigmoid(ZylS.matmul(aNps[:, 0, :], A_1m) + b60H, name='outputs')\n return (hlel, G2Zv)",
"def xMxc(YKHO, o4Jx):\n qC1Y = o4Jx.... | [
"0.74198467",
"0.6768379",
"0.6718283",
"0.6639429",
"0.659661",
"0.65247947",
"0.6485352",
"0.64744866",
"0.64435065",
"0.6438602",
"0.6414681",
"0.63864845",
"0.6369009",
"0.6355192",
"0.6355192",
"0.6355192",
"0.6349493",
"0.6345034",
"0.63009334",
"0.6299708",
"0.6293006"... | 0.6680177 | 3 |
return the index of a letter in teh alphabet | def etjM(sZqf):
gZgb = 'abcdefghijklmnopqrstuvwxyz'
yPrR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if sZqf.isupper() == True:
for WKvO in yPrR:
if sZqf == WKvO:
dQgj = yPrR.index(WKvO)
return dQgj
else:
for WKvO in gZgb:
if sZqf == WKvO:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def oQ6S(bseI: str) -> int:\n if bseI.islower():\n return ord(bseI) - ord('a')\n else:\n return ord(bseI) - ord('A')",
"def etjM(sZqf):\n gZgb = 'abcdefghijklmnopqrstuvwxyz'\... | [
"0.90463245",
"0.90463245",
"0.86501026",
"0.84535825",
"0.83994454",
"0.82488245",
"0.8200395",
"0.77724713",
"0.77706635",
"0.7490004",
"0.74095434",
"0.74095434",
"0.74095434",
"0.7364318",
"0.72719175",
"0.7270736",
"0.7264149",
"0.72520393",
"0.7176083",
"0.71111566",
"0... | 0.81873924 | 7 |
make a dataframe from an sqlalchemy query | def EICy(p6W4, NKcn):
jQ3Z = hxoQ.from_records(list(p6W4), columns=NKcn)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTk2(xDcj):\n jQ3Z = rLdf.DataFrame(xDcj.all())\n jQ3Z.columns = [WKvO['name'] for WKvO in xDcj.column_descriptions]\n return jQ3Z",
"def vXOu(vexM):\n IVkI = y2U9(ango)\n xDcj = vexM\n return rLdf.read_sql_query(xDcj, IVkI)",
"def oj61(xDcj):\n w2B8 = DWkG.database._connection\n re... | [
"0.7916001",
"0.7789747",
"0.7705248",
"0.7676981",
"0.7579248",
"0.7515109",
"0.74399406",
"0.7430691",
"0.7425391",
"0.7266823",
"0.7158268",
"0.71004856",
"0.70083815",
"0.69484764",
"0.69144934",
"0.6760844",
"0.6737484",
"0.6715473",
"0.66688776",
"0.6620345",
"0.6600132... | 0.68969995 | 15 |
Get Hausdorff distance between nonzero pixels in two images | def Rd9y(_z_f, tgYj):
Jika = _z_f.clone('unsigned int')
o1F2 = tgYj.clone('unsigned int')
vHIm = BfDw.get_lib_fn('hausdorffDistance%iD' % Jika.dimension)
Csk6 = vHIm(Jika.pointer, o1F2.pointer)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_DB(jzdc, Fg_i):\n return oyIN.count_nonzero(jzdc != Fg_i)",
"def E_DB(o4D3: np.ndarray, ajwV: np.ndarray) -> int:\n assert isinstance(o4D3, oyIN.ndarray) and isinstance(ajwV, oyIN.ndarray)\n return (o4D3 != ajwV).sum()",
"def E_L6(CZ14, _z_f):\n return 0",
"def E_DB(zhMh, WL4f):\n kYGz =... | [
"0.71314627",
"0.6906451",
"0.6764861",
"0.6728653",
"0.66946054",
"0.6659211",
"0.6650996",
"0.6646588",
"0.65291774",
"0.64861846",
"0.64787304",
"0.6456695",
"0.6438853",
"0.6422956",
"0.6371332",
"0.63624674",
"0.62960315",
"0.62827206",
"0.628124",
"0.6217335",
"0.620040... | 0.79843724 | 0 |
A humanreadable representation of the group specification, in constructor form. | def wHJl(YKHO):
return '{cls}(name={x.name!r}, capabilities={x.capabilities!r}, description={x.description!r}, datasets={x.datasets!r})'.format(cls=YKHO.__class__.__name__, x=YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return u'group_list={self.group_list} bits={self.bits}'",
"def wHJl(YKHO):\n return str(YKHO.group)",
"def wHJl(YKHO) -> str:\n return f'{YKHO.group}({YKHO._value})'",
"def format(YKHO):\n moMn = [Oa1e + '.' for Oa1e in YKHO.groups]\n NArs = [';' + XP5J.format() for XP5J in Y... | [
"0.6835909",
"0.6771201",
"0.65263474",
"0.6514753",
"0.6330489",
"0.63223976",
"0.62261033",
"0.6142467",
"0.60900754",
"0.60861987",
"0.6081848",
"0.6069926",
"0.6044486",
"0.6038937",
"0.6013985",
"0.60016763",
"0.5999276",
"0.5991199",
"0.59825927",
"0.5978334",
"0.597556... | 0.0 | -1 |
Return heuristic used to compute hScore for this node | def M1aw(YKHO):
return YKHO._heuristic | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dbpf(YKHO):\n if YKHO._h_score is None:\n YKHO._h_score = YKHO._heuristic.compute(YKHO)\n return YKHO._h_score",
"def y_oG(YKHO):\n pU8J = (YKHO.get_game_score(), 0.85)\n mFOs = (YKHO.get_longest_road_score(), 0.05)\n rGUu = (YKHO.get_steps_available_score(), 0.05)\n VLzf = (YKHO.get... | [
"0.8254411",
"0.80370325",
"0.7303243",
"0.67431265",
"0.6729288",
"0.6714751",
"0.6700875",
"0.6571597",
"0.64842117",
"0.6476321",
"0.64723706",
"0.6453293",
"0.64385825",
"0.64172584",
"0.64172584",
"0.64172584",
"0.6372317",
"0.63685703",
"0.6367823",
"0.63638484",
"0.635... | 0.7704478 | 2 |
Return true if the priority queue does not contain any node | def FBfn(YKHO):
return len(YKHO._pool) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.priority_queue) == 0",
"def any(YKHO) -> bool:\n return len(YKHO.queue) > 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def lsmZ(YKHO):\n return YKHO.queue == []",
"def _OiT(gGq6):\n return gGq6.front is None",
"def A4KR(YKHO):\n if len(YKHO.queue) ... | [
"0.7861887",
"0.7247188",
"0.72284824",
"0.7219885",
"0.7177321",
"0.71573395",
"0.7142883",
"0.7136697",
"0.7136697",
"0.7133701",
"0.7115788",
"0.7115271",
"0.7108555",
"0.7107866",
"0.7100729",
"0.70957524",
"0.7091723",
"0.70898557",
"0.7075301",
"0.7073402",
"0.7071536",... | 0.0 | -1 |
return the rows that are being displayed and the total rows in the dataTable | def qyoc(GfdN=(), LpOW=True):
GPtr = jvSB.test_config
SYsl = GPtr.browser
LihS = SYsl.find_element_by_id('list_info')
iQG7 = LihS.text
if not LpOW:
Hunp(iQG7)
V22M = iQG7.split()
yKcO = int(V22M[1])
Os4s = int(V22M[3])
u54L = int(V22M[5])
iku2 = None
if len(V22M) > 10... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cR8f(YKHO) -> int:\n ...",
"def Y8vL(YKHO):\n print('Total number of rows: ' + str(YKHO.tot_rows))\n dixj.append('Total number of rows: ' + str(YKHO.tot_rows))",
"def SWGE(YKHO) -> int:\n ...",
"def snHQ(YKHO):\n YKHO._fetch_if_needed()\n if YKHO._total_rows is None:\n return YKH... | [
"0.7137301",
"0.6977899",
"0.67960125",
"0.67778",
"0.65845525",
"0.64856106",
"0.64248115",
"0.6405334",
"0.63706803",
"0.6364493",
"0.63236254",
"0.63155305",
"0.6294024",
"0.6242874",
"0.6212886",
"0.6159824",
"0.6151935",
"0.61395794",
"0.6123093",
"0.6107035",
"0.6103315... | 0.5675716 | 58 |
Platformspecific location of sitepackages folder in bundles. | def X0o1() -> h8nf[str]:
JpTJ = Hy7s.path.dirname(HwRy.executable)
if Hy7s.name == 'nt':
return Hy7s.path.join(JpTJ, 'Lib', 'site-packages')
if HwRy.platform.startswith('darwin'):
rj1q = f'python{HwRy.version_info.major}.{HwRy.version_info.minor}'
return Hy7s.path.join(Hy7s.path.dirn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n yQ5z = qpDA.getsitepackages()[0]\n return f'{yQ5z}/{MS8o}'",
"def MKe6() -> str:\n if Hy7s.name == 'nt':\n return Hy7s.path.join(jMCG(), 'Lib', 'site-packages')\n rj1q = f'python{HwRy.version_info.major}.{HwRy.version_info.minor}'\n return Hy7s.path.join(jMCG(), 'lib', rj1... | [
"0.73990774",
"0.7004395",
"0.6767867",
"0.6635699",
"0.654256",
"0.6498899",
"0.6495638",
"0.6361758",
"0.6330214",
"0.61963844",
"0.6179695",
"0.6168915",
"0.61511856",
"0.6097586",
"0.6078866",
"0.602589",
"0.60094786",
"0.5999121",
"0.5974214",
"0.5970506",
"0.5915921",
... | 0.74634486 | 0 |
Returns a printable representation of object we call it on. | def wHJl(YKHO):
return '{}'.format(YKHO.val) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAm3(Iup5):\n return repr(Iup5)",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"de... | [
"0.8289505",
"0.8102019",
"0.77527064",
"0.77527064",
"0.77527064",
"0.77527064",
"0.77527064",
"0.77262497",
"0.77150035",
"0.7624847",
"0.7620398",
"0.7609563",
"0.7552161",
"0.75011474",
"0.7486976",
"0.7486976",
"0.7486976",
"0.74720895",
"0.7466644",
"0.7466644",
"0.7466... | 0.0 | -1 |
Set the current alpha value for the Surface. When blitting this Surface onto a destination, the pixels will be drawn slightly transparent. The alpha value is an integer from ``0`` to ``255``, ``0`` is fully transparent and ``255`` is fully opaque. If None is passed for the alpha value, then alpha blending will be disab... | def _9aG(YKHO, BWXx: Optional[int], JbyC: int=0) -> 'BaseImage':
if BWXx is None:
YKHO._surface.set_alpha(None)
return YKHO
assert isinstance(BWXx, int)
assert 0 <= BWXx <= 255, 'alpha value must be an integer between 0 and 255'
YKHO._surface.set_alpha(BWXx, JbyC)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9aG(YKHO, Cwt5):\n if Cwt5 < 0 or Cwt5 > 255:\n raise ValueError('alpha must be betweeen 0 and 255')\n YKHO.alpha = Cwt5\n YKHO.draw_alpha()",
"def uS28(YKHO, *qIxc):\n return Ywzx.itkRGBAPixelUS_SetAlpha(YKHO, *qIxc)",
"def dWdu(YKHO):\n if YKHO.alpha == 255:\n YKHO.current_s... | [
"0.7351839",
"0.6980368",
"0.6964286",
"0.69274616",
"0.6848601",
"0.6770376",
"0.6581452",
"0.65453243",
"0.6366386",
"0.6355929",
"0.6315802",
"0.6231872",
"0.61802965",
"0.6177129",
"0.6092933",
"0.6072144",
"0.6033012",
"0.59878683",
"0.59170294",
"0.58857006",
"0.5828823... | 0.7538483 | 0 |
Return the surface object of the image. | def HV9K(YKHO, BdN0: bool=True) -> 'pygame.Surface':
if BdN0:
return YKHO.get_crop_rect(YKHO.get_rect())
return YKHO._surface | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J20S(YKHO):\n return YKHO._surface",
"def J20S(YKHO):\n return yPLI(YKHO.topods_shape())",
"def HV9K(YKHO, mWFP):\n for J20S in YKHO._surfaces:\n if J20S.name == mWFP:\n return J20S\n return None",
"def BglY(YKHO, *qIxc):\n return nvSv.Adaptor3d_HSurface_Surface(YKHO, *qI... | [
"0.78905296",
"0.7373414",
"0.687337",
"0.6708551",
"0.66705686",
"0.6598057",
"0.6572758",
"0.65572315",
"0.6499511",
"0.64380336",
"0.62919366",
"0.62666744",
"0.62176377",
"0.6204652",
"0.61614186",
"0.609381",
"0.60734326",
"0.6071488",
"0.6071488",
"0.60078555",
"0.60051... | 0.67910814 | 3 |
Return the name of the image file. | def yFjF(YKHO) -> str:
return YKHO._filename | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7_O(YKHO) -> str:\n return YKHO._image_name",
"def mWFP(YKHO, JViI=False):\n return t7xG.image_name(YKHO, JViI)",
"def C7_O(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'image_name')",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def XKel(YKHO):\n return Hy7s.path.join(... | [
"0.81359076",
"0.80070156",
"0.79464424",
"0.7929313",
"0.79043955",
"0.7870586",
"0.7852736",
"0.776733",
"0.77643526",
"0.7739092",
"0.7702486",
"0.76989967",
"0.76985604",
"0.76909155",
"0.7686735",
"0.7627973",
"0.7622364",
"0.7574487",
"0.7546045",
"0.7546045",
"0.749859... | 0.7201016 | 50 |
Return ``True`` if the image is the same as the object. | def aPi6(YKHO, LNo8: 'BaseImage') -> bool:
assert isinstance(LNo8, K8L2)
Hyro = a9eO.image.tostring(YKHO._surface, 'RGBA')
Yjcv = a9eO.image.tostring(LNo8._surface, 'RGBA')
return Hyro == Yjcv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mYeQ):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, d8Wy):\n return False\n return YKHO.__dic... | [
"0.75574994",
"0.69859844",
"0.69413126",
"0.6880145",
"0.6816951",
"0.67958325",
"0.6792008",
"0.6712118",
"0.6704978",
"0.6692546",
"0.66896534",
"0.66890275",
"0.66832995",
"0.66340494",
"0.6632897",
"0.6587442",
"0.6579872",
"0.6559901",
"0.6557837",
"0.6551167",
"0.65437... | 0.7666818 | 0 |
Draw the image in a given surface. | def JmFt(YKHO, J20S: 'pygame.Surface', f0tD: Optional['pygame.Rect']=None, dQgj: Tuple2IntType=(0, 0)) -> 'BaseImage':
assert isinstance(J20S, a9eO.Surface)
assert isinstance(f0tD, (a9eO.Rect, type(None)))
ocsp(dQgj, 2, int)
if f0tD is None:
f0tD = J20S.get_rect()
Xlvp, nfKA = YKHO._get_posi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, J20S):\n J20S.blit(YKHO.image, YKHO.rect)",
"def JmFt(YKHO, J20S):\n J20S.blit(YKHO.image, YKHO.rect)",
"def JmFt(YKHO, J20S):\n J20S.blit(YKHO.image, YKHO.rect)",
"def JmFt(YKHO, J20S):\n J20S.blit(YKHO.image, YKHO.rect.topleft)",
"def JmFt(YKHO, J20S):\n if YKHO.visible:\n ... | [
"0.8680978",
"0.8680978",
"0.86610556",
"0.85166633",
"0.8186879",
"0.7789847",
"0.77565336",
"0.75712264",
"0.75001985",
"0.73758835",
"0.725146",
"0.7168916",
"0.71532476",
"0.71518713",
"0.70755273",
"0.7035059",
"0.7029318",
"0.70260674",
"0.6978322",
"0.69364816",
"0.687... | 0.70487696 | 15 |
get user home path | def aREU(YKHO):
return pmON.join(sEAN.user_home, YKHO._user_home_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy",
"def aG1h():\n return Hy7s.path.expanduser('~')",
"def ItBp():\n return Hy7s.path.expanduser('~')",
"def GwqS(YKHO) -> str:\n U5bT = Hy7s.path.expanduser('~')\n if not Hy7s.path.exists(U5bT):\n r... | [
"0.8800848",
"0.865227",
"0.85414934",
"0.8490601",
"0.8490246",
"0.84059525",
"0.835542",
"0.835542",
"0.82909644",
"0.8112106",
"0.7972705",
"0.7958267",
"0.79442",
"0.7831784",
"0.7730921",
"0.7730355",
"0.77286303",
"0.7690875",
"0.7635592",
"0.7608767",
"0.749288",
"0.... | 0.8773884 | 1 |
String for representing the MyModelName object (in Admin site etc.). | def zAg0(YKHO):
return '%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s ' % (YKHO.Month, YKHO.Production, YKHO.Hygienist_Production, YKHO.Collections_Percentage, YKHO.Overthe_Counter, YKHO.AR_31_60, YKHO.AR_61_90, YKHO.AR_Over_90, YKHO.AR_Ins_31_60, YKHO.AR_Ins_61_90, YKHO.AR_Ins_Over_90, YKHO.New_Patients, YKHO.To... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(... | [
"0.7781468",
"0.7781468",
"0.77076906",
"0.7524018",
"0.7449824",
"0.7227405",
"0.71806455",
"0.7147519",
"0.71067315",
"0.7104305",
"0.7104305",
"0.7104305",
"0.7090013",
"0.70863175",
"0.70797986",
"0.70797986",
"0.70797986",
"0.70797986",
"0.70797986",
"0.705124",
"0.70307... | 0.0 | -1 |
Construct a ne deque. | def FIMM(YKHO, OxJJ=None):
YKHO._values = WhVw(OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x_Tf():\n from deque import Deque\n yDQN = Deque()\n return yDQN",
"def FIMM(YKHO):\n YKHO.deque = MUE7()",
"def FIMM(YKHO):\n YKHO.q = MUE7()",
"def FIMM(YKHO):\n YKHO.elements = MUE7()",
"def FIMM(YKHO):\n YKHO.q = MUE7()",
"def FIMM(YKHO):\n YKHO.deque = []",
"def FIMM(YK... | [
"0.7170411",
"0.6520084",
"0.64937186",
"0.648073",
"0.6462904",
"0.64487356",
"0.6402062",
"0.63626605",
"0.6360955",
"0.6288091",
"0.6270055",
"0.6221395",
"0.61992276",
"0.61814535",
"0.6125442",
"0.6125442",
"0.6125442",
"0.6125442",
"0.61142796",
"0.6098398",
"0.6089704"... | 0.0 | -1 |
Get the node at front of the deque. | def VnzS(YKHO):
return YKHO._values.tail | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def oDrJ(YKHO):\n return YKHO.sentinel.next if YKHO.N != 0 else None",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.is_empty() or YKHO.data_[YKHO.front_] == None:\n ... | [
"0.81181645",
"0.79774064",
"0.7880995",
"0.78587675",
"0.78194445",
"0.7774033",
"0.7685147",
"0.7665018",
"0.76151335",
"0.7564011",
"0.7540196",
"0.74546",
"0.7440685",
"0.7379193",
"0.73582995",
"0.73537236",
"0.7331829",
"0.7331829",
"0.7282541",
"0.7270891",
"0.7268208"... | 0.0 | -1 |
Add a value to the end of the deque. | def SStx(YKHO, wEf2):
YKHO._values.push(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, BWXx):\n YKHO[YKHO._end] = BWXx\n YKHO._end = (YKHO._end + 1) % YKHO._capacity\n if YKHO.full:\n YKHO._begin = (YKHO._begin + 1) % YKHO._capacity\n else:\n YKHO._size += 1",
"def _jXH(YKHO, wEf2):\n return YKHO.deque.append(wEf2)",
"def _jXH(YKHO, BWXx):\n YKHO.ap... | [
"0.7777364",
"0.7540302",
"0.7485117",
"0.74535406",
"0.7450489",
"0.74204665",
"0.73268807",
"0.7299541",
"0.72779363",
"0.7268163",
"0.72432536",
"0.7233518",
"0.72203344",
"0.72135884",
"0.72121245",
"0.7167945",
"0.7148727",
"0.714037",
"0.7133984",
"0.7083267",
"0.708326... | 0.73055166 | 7 |
Add a value to the front of the deque. | def rwLV(YKHO, wEf2):
YKHO._values.append(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byB9(YKHO, BWXx):\n Esd_ = YKHO.Node(BWXx)\n if YKHO._size == 0:\n YKHO._tail = Esd_\n YKHO._head = Esd_\n YKHO._size += 1\n return\n Esd_.next = YKHO._head\n YKHO._head.prev = Esd_\n YKHO._head = Esd_\n YKHO._size += 1",
"def byB9(YKHO, wEf2):\n Esd_ = o7DN(w... | [
"0.77105063",
"0.7573097",
"0.7570266",
"0.7531734",
"0.75082994",
"0.72768545",
"0.7263074",
"0.7258478",
"0.7249984",
"0.72343963",
"0.72226423",
"0.7198484",
"0.7193163",
"0.7109683",
"0.7036448",
"0.7033341",
"0.7019342",
"0.7012546",
"0.7002079",
"0.69705063",
"0.6970506... | 0.0 | -1 |
Get the value from the end of the deque without removing it. | def T7C_(YKHO):
if YKHO.end:
return YKHO.end.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n try:\n return YKHO._values.pop()\n except IndexError:\n raise IndexError('Cannot pop from empty deque.')",
"def BEuN(YKHO):\n BWXx = YKHO.buffer[YKHO.end - 1]\n YKHO.buffer[YKHO.end - 1] = None\n YKHO.end = (YKHO.end - 1) % len(YKHO.buffer)\n return BWXx",
"def... | [
"0.74612045",
"0.73744774",
"0.732348",
"0.7251731",
"0.7235065",
"0.7232359",
"0.7228888",
"0.7227422",
"0.7227422",
"0.72052187",
"0.7178993",
"0.7161674",
"0.7156923",
"0.7143276",
"0.7131488",
"0.712937",
"0.71218807",
"0.711889",
"0.7115477",
"0.71009356",
"0.7089555",
... | 0.72798043 | 3 |
Get the value from the front of the deque without removing it. | def J1pb(YKHO):
if YKHO.front:
return YKHO.front.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vYJ5(YKHO):\n if YKHO.is_empty() or YKHO.data_[YKHO.front_] == None:\n raise IndexError\n return YKHO.data_[YKHO.front_]",
"def vYJ5(YKHO):\n if YKHO._size == 0:\n return None\n return YKHO._head.value",
"def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n re... | [
"0.80046177",
"0.79004306",
"0.7847813",
"0.7761827",
"0.7723682",
"0.7688387",
"0.7681973",
"0.7645673",
"0.7625478",
"0.76252276",
"0.7606364",
"0.7582759",
"0.7469969",
"0.74399006",
"0.742082",
"0.74193853",
"0.7414419",
"0.7385722",
"0.7379656",
"0.7372658",
"0.7369993",... | 0.6875316 | 71 |
Get the size of the deque. | def zNig(YKHO):
return len(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO.deque)",
"def szAg(YKHO):\n return len(YKHO.deque)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n ... | [
"0.8046172",
"0.7975563",
"0.74108714",
"0.74108714",
"0.74108714",
"0.74108714",
"0.7398047",
"0.7398047",
"0.7368494",
"0.7358193",
"0.7357428",
"0.734755",
"0.734755",
"0.7162433",
"0.71270686",
"0.71143854",
"0.71020526",
"0.700914",
"0.7005447",
"0.7004008",
"0.6987788",... | 0.66903883 | 76 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8222958",
"0.82221323",
"0.82221323",
"0.82221323",
"0.82221323",
"0.81953573",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883",
"0.8162883"... | 0.71278924 | 58 |
The Amazon Resource Name (ARN) of the agents associated with the selfmanaged object storage server location. | def RLkP(YKHO) -> h8nf[bdIy[str]]:
return qe4Y.get(YKHO, 'agent_arns') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.... | [
"0.6722578",
"0.6326199",
"0.6326199",
"0.6326199",
"0.6326199",
"0.6326199",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0.624962",
"0... | 0.63512903 | 1 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.776624",
"0.7754693",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.771945",
"0.7667712",
"0.7664151",
"0.76493174",
"0.76140213",
"0.76131... | 0.7810746 | 22 |
Reduce the cells according to the time dimensions. | def X1YF(YKHO):
def iH7r(Aofo, VmPb):
for Qemi in YKHO.aggregate_names:
Aofo[Qemi] = Aofo.get(Qemi, 0) + VmPb.get(Qemi, 0)
return Aofo
njSM = oRi_(list)
Fj4I = len(YKHO.time_levels)
for H5ew, VmPb in YKHO.time_cells.items():
OEsn = H5ew[0]
X8xb = OEsn[0:Fj4I]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0bZ(YKHO, TVTK):\n cD4Q = YKHO.time - YKHO.midtime\n DNs0 = oyIN.abs(cD4Q) < 0.5 * TVTK * YKHO.duration\n YKHO.time = YKHO.time[DNs0]\n YKHO.flux = YKHO.flux[DNs0]",
"def cOzj(oxOY):\n return oxOY.assign_coords(Time=rLdf.to_datetime(oxOY.XTIME.values))",
"def mSbW(YKHO):\n Acvy = ADdS.ch... | [
"0.6026995",
"0.589354",
"0.56654084",
"0.55536246",
"0.55470103",
"0.5516815",
"0.5506113",
"0.5377757",
"0.5361846",
"0.521967",
"0.5210406",
"0.5201377",
"0.5193547",
"0.51714456",
"0.5139673",
"0.51254725",
"0.51046675",
"0.5087949",
"0.50877255",
"0.508634",
"0.5082353",... | 0.6872891 | 0 |
Removing stop words Lemmatization the process of grouping together the inflected forms of a word so they can be analysed as a single item, Stemmer an algorithm to bring words to its root word. | def usA8(l5Ny, Nqlg):
V22M = dFss(l5Ny)
print('\n')
hnFq = qXkR()
HD_u = GFnk()
yIWr = set(di0c.words('english'))
print('\n')
dMxd = mqnM(V22M, hnFq, HD_u, yIWr, l5Ny)
'\n We already have a sentence tokenizer, so we just need \n to run the sent_tokenize() method to create the array... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(l5Ny):\n Esii = GFnk()\n mkhU = wgQP.PorterStemmer()\n JCyR = di0c.words('english')\n JCyR += ['.', ',', ':', '...', '!\"', '?\"', \"'\", '\"', ' - ', ' — ', ',\"', '.\"', '!', ';', '♫♫', '♫', '.\\'\"', '[', ']', '—', \".'\", 'ok', 'okay', 'yeah', 'ya', 'stuff', ' 000 ', ' em ', ' oh ', 'thank... | [
"0.7672317",
"0.74295396",
"0.727268",
"0.72468156",
"0.7139328",
"0.7114286",
"0.7080774",
"0.6981716",
"0.6962026",
"0.6922665",
"0.69125235",
"0.69055253",
"0.68968296",
"0.68756044",
"0.68723214",
"0.6865177",
"0.6847625",
"0.6842435",
"0.6823994",
"0.680942",
"0.6791481"... | 0.0 | -1 |
delete records with dateTime older than ts | def zCFx(YKHO, i8WE):
Pe9W = 'delete from %s where dateTime < %d' % (YKHO.dbm.table_name, i8WE)
YKHO.dbm.getSql(Pe9W)
try:
YKHO.dbm.getSql('vacuum')
except Exception as e:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ay5O():\n p9NO = mRnW.objects.filter(timestamp__lte=qcWV.now() - fCoM(days=35))\n p9NO.delete()",
"def Wr4C(YKHO):\n PObu = kxTZ()\n jbXL = If0P.create(id=PObu, count=1)\n If0P.get(id=PObu).should.be.ok\n Q05A = qcWV.now() + fCoM(seconds=5)\n If0P.objects(id=PObu).timestamp(Q05A).delete(... | [
"0.6707435",
"0.6189551",
"0.60988617",
"0.6051222",
"0.60038644",
"0.5996559",
"0.5989116",
"0.5934917",
"0.5930973",
"0.58878756",
"0.586799",
"0.58655924",
"0.5839218",
"0.5776258",
"0.57601184",
"0.57538813",
"0.57396704",
"0.57230777",
"0.56961006",
"0.56705767",
"0.5649... | 0.7225892 | 0 |
Assert that the given response was an error for the access_token field with the given error message. | def t8zN(YKHO, geh0, VyGb, APFA):
assert geh0.status_code == 400
zs78 = qQXR.loads(geh0.content.decode('utf-8'))
YKHO.assertDictEqual(zs78, {'access_token': [{'user_message': VyGb}], 'error_code': APFA}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sozj(YKHO, QePW, Aofo, U8S0, tO9_):\n if Aofo == TbBQ:\n Aofo = QePW.getResponse()\n if tO9_.endswith('.'):\n tO9_ = tO9_[:-1]\n YKHO.assertEqual('application/json;charset=UTF-8', QePW.getResponseHeader('Content-Type'), msg='Expected the token resource to return an error in the json form... | [
"0.77887464",
"0.76525337",
"0.7369657",
"0.7207198",
"0.7200718",
"0.6831742",
"0.66395813",
"0.6636375",
"0.6623991",
"0.6609984",
"0.6596322",
"0.65894777",
"0.6524559",
"0.65080005",
"0.65042335",
"0.6446866",
"0.6444835",
"0.6432882",
"0.64215994",
"0.6366899",
"0.633619... | 0.8771187 | 0 |
Test if username '{0}' and email '{1}' have conflicts with username 'user' and email 'user.com'. | def ouHz(YKHO, NtEF, D3lj, e4ZH):
CBIr = NqOl.create(username='user', email='user@email.com')
YKHO.assertValidationDecision({'username': NtEF, 'email': D3lj}, {'username': MjC1.format(username=CBIr.username) if NtEF == CBIr.username else '', 'email': Qnws.format(email_address=CBIr.email) if D3lj == CBIr.email e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v6qc(JyK9):\n baE4(gr_i, DQrD, 'a', 'abcdef', 'a', 'a', JyK9.email)",
"def _wWC(JyK9):\n baE4(gr_i, DQrD, JyK9.username, 'abcdef', 'a', 'a', 'a')",
"def BNAB(YKHO):\n YKHO.signup_a_user(YKHO.user_data)\n L2K3 = YKHO.signup_a_user(YKHO.user_data_duplicate_email)\n YKHO.assertEqual(L2K3.status... | [
"0.66741556",
"0.66731715",
"0.65498346",
"0.6486595",
"0.6410053",
"0.6409277",
"0.6408444",
"0.63949543",
"0.638658",
"0.6381248",
"0.6373655",
"0.6368763",
"0.6302717",
"0.6299862",
"0.6284223",
"0.62572354",
"0.6238511",
"0.6210236",
"0.620532",
"0.6197751",
"0.6195634",
... | 0.74244946 | 0 |
Construct the the terms loss optimizer `reconstruction` and `latent` losses. | def fr0V(YKHO):
if YKHO.cost_function == 'abs':
jXHf = ZylS.reduce_sum(ZylS.abs(YKHO.x_decoded - YKHO.x_in), 1)
elif YKHO.cost_function in ('mse', 'l2', 'square'):
jXHf = ZylS.reduce_sum(ZylS.squared_difference(YKHO.x_in, YKHO.x_decoded), 1)
elif YKHO.cost_function in ('xentropy', 'log'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fKIH(YKHO):\n import tensorflow as ZylS\n gLCx = [ZylS.reduce_sum(ZylS.multiply(YKHO.variables['y'][YRbF], YKHO.variables['y_action'][YRbF]), axis=1) for YRbF in range(len(YKHO.variables['y']))]\n N77f = oyIN.sum([ZylS.nn.l2_loss(gLCx[YRbF] - YKHO.variables['y_true']) for YRbF in range(len(gLCx))])\n ... | [
"0.70604014",
"0.6739587",
"0.6399894",
"0.63691413",
"0.62196726",
"0.61939603",
"0.61482894",
"0.6097922",
"0.6071232",
"0.60199046",
"0.6015574",
"0.60058206",
"0.5987177",
"0.59870607",
"0.59616125",
"0.59403795",
"0.59061944",
"0.58969194",
"0.58829916",
"0.58415216",
"0... | 0.6656896 | 2 |
Ensure that numerator is divisible by the denominator. | def qUME(M6pt, UUZ1):
assert M6pt % UUZ1 == 0, '{} is not divisible by {}'.format(M6pt, UUZ1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVmr(M6pt, UUZ1):\n if not isinstance(M6pt, int):\n raise TypeError('`numerator` is not an instance of `int`.')\n if not isinstance(UUZ1, int):\n raise TypeError('`denominator` is not an instance of `int`.')\n if M6pt % UUZ1 != 0:\n raise ValueError('`numerator` is not divisible b... | [
"0.80189806",
"0.79450506",
"0.7656433",
"0.7321621",
"0.73083454",
"0.6930531",
"0.6927685",
"0.6643818",
"0.66237444",
"0.65489805",
"0.6548519",
"0.6480361",
"0.6450601",
"0.6308908",
"0.63015735",
"0.6266947",
"0.62265795",
"0.62150854",
"0.618245",
"0.6116295",
"0.611579... | 0.8829848 | 0 |
Ensure that numerator is divisible by the denominator and return the division value. | def dShr(M6pt, UUZ1):
qUME(M6pt, UUZ1)
return M6pt // UUZ1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dShr(YKHO, M6pt, UUZ1):\n if UUZ1 == 0:\n if not YKHO.has_error:\n YKHO.has_error = True\n YKHO.error += VGaG\n return 1\n else:\n return M6pt / UUZ1",
"def Cmwc(M6pt, UUZ1):\n try:\n return M6pt / UUZ1\n except ZeroDivisionError:\n G9jH.ge... | [
"0.8466519",
"0.8147906",
"0.8017677",
"0.7677957",
"0.7466672",
"0.7403014",
"0.73982346",
"0.732799",
"0.7150066",
"0.713532",
"0.713532",
"0.70842254",
"0.70722574",
"0.706894",
"0.70327723",
"0.6994885",
"0.6992866",
"0.6982372",
"0.6956742",
"0.6944867",
"0.6935785",
"... | 0.8783131 | 0 |
Init method based on N(0, sigma). | def dqtM(WTkW):
def JdrY(vhpA):
return ht2j.nn.init.normal_(vhpA, mean=0.0, std=WTkW)
return JdrY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, WTkW=0.0001):\n YKHO.sigma = WTkW",
"def FIMM(YKHO, WTkW):\n YKHO.sigma = float(WTkW)\n super().__init__(domain=MWA5.domain, range=MWA5.domain, linear=False)\n YKHO.const = 1 / (MWA5.epsilon * WTkW)",
"def FIMM(YKHO, WTkW, pSDG=0.1):\n super().__init__(multiplier=pSDG)\n YKHO.s... | [
"0.75872624",
"0.7376511",
"0.70341724",
"0.6977439",
"0.6934908",
"0.6788185",
"0.6788185",
"0.66477704",
"0.6600612",
"0.6528712",
"0.65230536",
"0.651248",
"0.65082043",
"0.6487978",
"0.6459183",
"0.6443816",
"0.64392465",
"0.642364",
"0.6417713",
"0.637748",
"0.63402086",... | 0.67498875 | 7 |
Helper for instantiating a ShardedTensor where the `tp_axis` dimension is sharded across TP group. | def k2r4(vhpA, H5ew, NNe8=0, w5u3=None, **B2fa):
return kfd4.from_rank_offsets(H5ew, vhpA, (NNe8, kmz0.get_tensor_model_parallel_rank(), kmz0.get_tensor_model_parallel_world_size()), replica_id=kmz0.get_data_parallel_rank() if w5u3 is None else w5u3, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWDM(vhpA, H5ew, **B2fa):\n return kfd4.from_rank_offsets(H5ew, vhpA, replica_id=kmz0.get_data_parallel_rank() * kmz0.get_data_parallel_world_size() + kmz0.get_tensor_model_parallel_rank(), **B2fa)",
"def X1fs(BWXx, jDK_=0, yokr=None, mWFP=None):\n IuXB = list(range(len(nMvt.int_shape(BWXx))))\n IuX... | [
"0.62167466",
"0.5897788",
"0.5701166",
"0.5607006",
"0.5557774",
"0.55356824",
"0.5321004",
"0.53100383",
"0.51067233",
"0.5093603",
"0.50926715",
"0.50296974",
"0.5026927",
"0.4990751",
"0.49722522",
"0.49509093",
"0.49495432",
"0.49429172",
"0.49210116",
"0.48878738",
"0.4... | 0.75323325 | 0 |
Helper for instantiating a nonsharded ShardedTensor (replicated across TP and DP group). | def VWDM(vhpA, H5ew, **B2fa):
return kfd4.from_rank_offsets(H5ew, vhpA, replica_id=kmz0.get_data_parallel_rank() * kmz0.get_data_parallel_world_size() + kmz0.get_tensor_model_parallel_rank(), **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k2r4(vhpA, H5ew, NNe8=0, w5u3=None, **B2fa):\n return kfd4.from_rank_offsets(H5ew, vhpA, (NNe8, kmz0.get_tensor_model_parallel_rank(), kmz0.get_tensor_model_parallel_world_size()), replica_id=kmz0.get_data_parallel_rank() if w5u3 is None else w5u3, **B2fa)",
"def fwuD(Emd4, AVR8: torch.Tensor, FxtY: Devic... | [
"0.65599984",
"0.5717177",
"0.5703217",
"0.56154853",
"0.5568129",
"0.5568129",
"0.54848343",
"0.54728",
"0.5453427",
"0.54405004",
"0.54305416",
"0.54225713",
"0.541727",
"0.5382867",
"0.53583944",
"0.53495646",
"0.52744365",
"0.52639186",
"0.5233921",
"0.5233617",
"0.523055... | 0.6421122 | 1 |
Creates a MLP with configurable activation functions and dimensions for each layer | def K38T(I7Ab, YDYE, idFg=False, hr1G=0.0):
fhcK = []
for yXjA, uwTF in zip(I7Ab[:-1], I7Ab[1:]):
fhcK.append(U78l.Linear(yXjA, uwTF))
if idFg:
fhcK.append(U78l.BatchNorm1d(uwTF))
if YDYE == 'relu':
fhcK.append(U78l.ReLU())
elif YDYE == 'tanh':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(vO0m, IzLc, dZTX, hd4n=None):\n I07O = max(1, IzLc)\n Sqw_ = vO0m\n hd4n = sYYm(hd4n)\n ZHfW = Mgsp(None)\n if IzLc > 0:\n hPOC = pvrR(num_vars=vO0m, num_categs=IzLc, hidden_dim=dZTX[0], input_mask=ZHfW, sparse_embeds=vO0m >= 50)\n Sqw_ = hPOC.hidden_dim\n hPOC = [hPOC,... | [
"0.7377406",
"0.7333905",
"0.70421517",
"0.6955417",
"0.6821501",
"0.68130195",
"0.6802523",
"0.67283475",
"0.66690606",
"0.6622575",
"0.661229",
"0.65686977",
"0.6548823",
"0.65108293",
"0.64653003",
"0.6382096",
"0.63816655",
"0.6364846",
"0.63583595",
"0.6326049",
"0.63255... | 0.6816784 | 5 |
opens a Qt stylesheet with a path relative to the project | def k_gV(pmON):
with open(pmON) as eHNT:
lGat = eHNT.read()
mXDZ = 'url\\((.*?)\\);'
for bD7m in sorted(set(ZbWC.findall(mXDZ, lGat)), key=len, reverse=True):
AGPF, aPr_ = Hy7s.path.split(pmON)
IBRk = Hy7s.path.join(AGPF, *bD7m.split('/'))
IBRk = Hy7s.path... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def In6N(mWFP):\n with htTT(FileNotFoundError):\n with open(lABK / mWFP, 'rt') as OWwr:\n _Cnz = OWwr.read().replace('@Path', (d0De / gCuF.value(pe5E.Theme)).as_posix())\n return _Cnz\n return ''",
"def MAUo(YKHO, ucpp=None):\n nUeQ = wDYU.QFile('resources/styles/default.css')\n... | [
"0.6207485",
"0.6139326",
"0.61135066",
"0.59641707",
"0.57913464",
"0.56551206",
"0.56247807",
"0.55175304",
"0.55074334",
"0.54528993",
"0.5383155",
"0.5347583",
"0.53475785",
"0.5320229",
"0.52764684",
"0.52764684",
"0.5231521",
"0.5227985",
"0.5218482",
"0.52152383",
"0.5... | 0.0 | -1 |
Returns whether or not the rate limit has been exceeded for this interval. | def onjh(YKHO):
if YKHO.stopwatch.check_time() > YKHO.duration:
YKHO.stopwatch.start()
YKHO.num_processed_this_interval = 0
return False
return YKHO.num_processed_this_interval >= YKHO.max_per_interval | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3wX(YKHO):\n if YKHO.rate_limit_sleep:\n tO9_ = f'请求过于频繁,已被BitMEX限制,请等待{YKHO.rate_limit_sleep}秒后再试'\n YKHO.gateway.write_log(tO9_)\n return False\n elif not YKHO.rate_limit_remaining:\n tO9_ = '请求频率太高,有触发BitMEX流控的风险,请稍候再试'\n YKHO.gateway.write_log(tO9_)\n return... | [
"0.81886196",
"0.7860412",
"0.7287615",
"0.7259392",
"0.70181286",
"0.6880373",
"0.68399876",
"0.6807785",
"0.68047625",
"0.67791414",
"0.6691183",
"0.6668844",
"0.66030705",
"0.65513533",
"0.6510626",
"0.65095764",
"0.64973634",
"0.6490561",
"0.6468434",
"0.6420972",
"0.6397... | 0.7323208 | 2 |
Ensure that nxt and prv items are discarded when testing the equality of two trees. | def xa14(YKHO, Elif):
YKHO = h_wP(YKHO, sSgN)
return super(o7DN, YKHO).__eq__(h_wP(Elif, sSgN)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(LFlW, _tIi):\n return not LFlW == _tIi",
"def bKm7(YKHO):\n SGPK = [(1, 'a', False), (1, None, False), (1, 2, False), (1, 1, True)]\n for q2Xo in SGPK:\n with YKHO.subTest(pair=q2Xo):\n YKHO.getLogger().info('Next pair %s... | [
"0.6063511",
"0.60523754",
"0.60055393",
"0.59527284",
"0.5903955",
"0.58971107",
"0.58808404",
"0.58345664",
"0.5833671",
"0.58172846",
"0.5803773",
"0.5792091",
"0.57811755",
"0.5777969",
"0.5768776",
"0.5739272",
"0.5739272",
"0.5736872",
"0.5736872",
"0.5723223",
"0.57164... | 0.0 | -1 |
distort a specific point | def VJTP(AU8u):
AOlJ, stDt = (h0AT[0][0], h0AT[1][1])
UV8M, vHO5 = (h0AT[0][2], h0AT[1][2])
WKvO, LVAh = ((AU8u.x - UV8M) / AOlJ, (AU8u.y - vHO5) / stDt)
LEev, Xyq7, EBgd, HpuQ, PDUN = AHcf[0]
CYjz = WKvO ** 2 + LVAh ** 2
nE4S = CYjz * CYjz
xFUg = CYjz * nE4S
WKvO = WKvO * (1 + LEev * CY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCYh(LTIa, nMvt, pImw):\n return XC5k.undistortPoints(LTIa, nMvt, pImw)",
"def IJfS(YKHO, M_DK: np.ndarray) -> oyIN.ndarray:\n if not any(YKHO.k) and (not any(YKHO.p)):\n return M_DK\n L4Z_ = M_DK.copy()\n CYjz = oyIN.sum(M_DK ** 2, axis=1)\n if any(YKHO.k):\n L4Z_ *= YKHO._radia... | [
"0.7185404",
"0.71529627",
"0.7112815",
"0.6317618",
"0.62505597",
"0.6112292",
"0.6106113",
"0.60904396",
"0.6041913",
"0.60095",
"0.5903378",
"0.5900208",
"0.58998436",
"0.5894413",
"0.5854621",
"0.5817317",
"0.58132195",
"0.57800376",
"0.5763803",
"0.57206905",
"0.5696379"... | 0.67700994 | 3 |
Given a NumPy / OpenCV 2 image, center crops it to the given size. | def HK1Q(LNo8: np.ndarray, zNig: Union[tuple, list, np.ndarray]) -> oyIN.ndarray:
if type(zNig) is int and isinstance(zNig, str) and (len(zNig) < 2):
raise ValueError('size has to be a list or tuple or array with at least two int elements')
LNo8 = TMaV(LNo8)
JOX7 = zNig[0] / LNo8.shape[0]
PlWA =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4TF(VXjJ, zNig=100):\n if VXjJ.shape[0] < zNig or VXjJ.shape[1] < zNig:\n return\n JPqE, fXzF = (VXjJ.shape[1] // 2, VXjJ.shape[0] // 2)\n vNTb = zNig // 2\n try:\n return VXjJ[fXzF - vNTb:fXzF + vNTb, JPqE - vNTb:JPqE + vNTb]\n except:\n return VXjJ[:zNig, :zNig]",
"def ... | [
"0.797611",
"0.7485786",
"0.74626565",
"0.7442388",
"0.7380599",
"0.7341405",
"0.71853316",
"0.71751124",
"0.7135351",
"0.7097567",
"0.70561105",
"0.6989287",
"0.69795585",
"0.6942761",
"0.6928651",
"0.6913199",
"0.690994",
"0.69037414",
"0.68939775",
"0.6870195",
"0.68136394... | 0.8053452 | 0 |
Given a NumPy / OpenCV 2 image, crops it to the given size, around it's centre point | def yAvS(LNo8: np.ndarray, zNig: Union[tuple, list, np.ndarray]) -> oyIN.ndarray:
if type(zNig) is int and isinstance(zNig, str) and (len(zNig) < 2):
raise ValueError('size has to be a list or tuple or array with at least two int elements')
LNo8 = TMaV(LNo8)
H2v2 = zNig[0]
TVTK = zNig[1]
N0k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvwT(VXjJ, oeNL, zNig):\n xvJ_, QYSp = VXjJ.size\n o4D3, si3g = oeNL\n q53Q = idx7 = zNig\n if xvJ_ > q53Q or QYSp > idx7:\n return VXjJ.crop((o4D3, si3g, o4D3 + q53Q, si3g + idx7))\n return VXjJ",
"def HK1Q(VXjJ: np.array, a6Jb: List[int]) -> oyIN.array:\n if isinstance(a6Jb, mSrU.N... | [
"0.7458042",
"0.7452528",
"0.74039954",
"0.7366078",
"0.73545456",
"0.73128617",
"0.7251075",
"0.7201152",
"0.71689117",
"0.71518946",
"0.7148854",
"0.7126921",
"0.71200424",
"0.7095002",
"0.7084206",
"0.7066387",
"0.701856",
"0.6991854",
"0.6980322",
"0.69573003",
"0.6948773... | 0.7536772 | 0 |
Returns True if the contact is tilted. | def npJv(YKHO, YwkQ=None):
return YKHO.get_state(YwkQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGZx(YKHO) -> bool:\n return YKHO._qtilde",
"def XcgK(YKHO):\n return YKHO._.r if YKHO._.antipodal else False",
"def ksCR(YKHO) -> bool:\n return YKHO.x == 0 and YKHO.y == 0",
"def QKZV(YKHO):\n return False",
"def nrqQ(YKHO):\n return YKHO.radius == 0.0",
"def a6KQ(YKHO):\n if YKHO... | [
"0.603381",
"0.5886912",
"0.5860704",
"0.55790263",
"0.5549671",
"0.54859716",
"0.5478402",
"0.54456013",
"0.54310817",
"0.542535",
"0.5411188",
"0.53881085",
"0.53693324",
"0.53692335",
"0.5355262",
"0.5348771",
"0.53339815",
"0.5315877",
"0.5314212",
"0.5293286",
"0.5289911... | 0.0 | -1 |
Returns True if the handle is set to tilted. | def npJv(YKHO, YwkQ=None):
return YKHO.get_state(YwkQ) == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGZx(YKHO) -> bool:\n return YKHO._qtilde",
"def JNQt(YKHO):\n return YKHO.mode == fgjV.NORMAL",
"def XcgK(YKHO):\n return YKHO._.r if YKHO._.antipodal else False",
"def CxxJ():\n return False if TlDD.about(batch=True) else TlDD.getModifiers() & 8 > 0",
"def VGiB(YKHO):\n return YKHO.pos... | [
"0.6534187",
"0.60057116",
"0.5721048",
"0.55515295",
"0.5521086",
"0.5406051",
"0.5385722",
"0.5361601",
"0.53505135",
"0.5343395",
"0.5275451",
"0.52672917",
"0.523906",
"0.52026904",
"0.5196759",
"0.51876616",
"0.51870817",
"0.5177884",
"0.51737446",
"0.5158726",
"0.515033... | 0.49288893 | 47 |
Returns True if CO2 state is normal. | def BpYe(YKHO, YwkQ=None):
return YKHO.get_state(YwkQ) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rrWv(YKHO):\n return InF8((KCHu.color for KCHu in YKHO.iter_states()))",
"def Debg(YKHO):\n return YKHO._state != YKHO._invert_logic",
"def DbRH(YKHO) -> bool:\n return YKHO._optimistic",
"def DbRH(YKHO):\n return YKHO._command_state is False",
"def Debg(YKHO) -> bool:\n wEf2 = bool(YKHO... | [
"0.63989973",
"0.629935",
"0.6015038",
"0.5811539",
"0.57207966",
"0.5706454",
"0.5631948",
"0.56137234",
"0.559398",
"0.5584031",
"0.55800146",
"0.55799305",
"0.55704635",
"0.5545672",
"0.5543839",
"0.5508212",
"0.54747784",
"0.5468475",
"0.5466188",
"0.5466156",
"0.54649544... | 0.6375818 | 1 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
exwG = YKHO.root
for vC9B in GIN8[0:-1]:
M98S = exwG.get_child_with_val(vC9B)
if M98S == None or M98S.eow:
return False
exwG = M98S
pFG5 = exwG.get_eow_child_with_val(GIN8[-1])
if pFG5 == None:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.83863926",
"0.81505",
"0.81232995",
"0.7856138",
"0.78298444",
"0.7793162",
"0.77923244",
"0.77637726",
"0.7752571",
"0.774713",
"0.77109605",
"0.7680232",
"0.7676067",
"0.76640654",
"0.7650189",
"0.7633662",
"0.7627638",
"0.7610382",
"0.7576994",
"0.75686866",
"0.756092",... | 0.7478827 | 29 |
NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy. | def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:
return qe4Y.get(YKHO, 'namespace_selector') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.get(YKHO, 'namespace_selector')",
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.get(YKHO, 'namespace_selector')",
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.g... | [
"0.5621592",
"0.5621592",
"0.5621592",
"0.50892055",
"0.50335526",
"0.50335526",
"0.50335526",
"0.49598947",
"0.49413362",
"0.49188876",
"0.48614702",
"0.4821528",
"0.4821528",
"0.4821528",
"0.47646743",
"0.47337058",
"0.47246644",
"0.47229904",
"0.47105864",
"0.46107516",
"0... | 0.5740632 | 2 |
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | def KZQJ(YKHO) -> h8nf[bdIy['outputs.NamedRuleWithOperations']]:
return qe4Y.get(YKHO, 'resource_rules') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZQJ(YKHO) -> h8nf[bdIy['outputs.NamedRuleWithOperationsPatch']]:\n return qe4Y.get(YKHO, 'resource_rules')",
"def c_NS(YKHO) -> h8nf[bdIy['outputs.RuleWithOperations']]:\n return qe4Y.get(YKHO, 'rules')",
"def c_NS(YKHO) -> h8nf[bdIy['outputs.RuleWithOperations']]:\n return qe4Y.get(YKHO, 'rules'... | [
"0.7212852",
"0.626723",
"0.626723",
"0.6233313",
"0.6233313",
"0.58287555",
"0.57398957",
"0.5652218",
"0.5584852",
"0.5422545",
"0.5402217",
"0.5372105",
"0.5312721",
"0.53091645",
"0.5299365",
"0.5285576",
"0.52767664",
"0.52494067",
"0.5245626",
"0.52377105",
"0.522741",
... | 0.72779727 | 0 |
NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy. | def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:
return qe4Y.get(YKHO, 'namespace_selector') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'namespace_selector')",
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'namespace_selector')",
"def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'names... | [
"0.574091",
"0.574091",
"0.574091",
"0.5089836",
"0.50320995",
"0.50320995",
"0.50320995",
"0.4962092",
"0.4941465",
"0.49183708",
"0.48608595",
"0.48197553",
"0.48197553",
"0.48197553",
"0.47646925",
"0.47335988",
"0.4727508",
"0.4725472",
"0.47133085",
"0.461183",
"0.449169... | 0.5621526 | 5 |
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | def KZQJ(YKHO) -> h8nf[bdIy['outputs.NamedRuleWithOperationsPatch']]:
return qe4Y.get(YKHO, 'resource_rules') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZQJ(YKHO) -> h8nf[bdIy['outputs.NamedRuleWithOperations']]:\n return qe4Y.get(YKHO, 'resource_rules')",
"def c_NS(YKHO) -> h8nf[bdIy['outputs.RuleWithOperations']]:\n return qe4Y.get(YKHO, 'rules')",
"def c_NS(YKHO) -> h8nf[bdIy['outputs.RuleWithOperations']]:\n return qe4Y.get(YKHO, 'rules')",
... | [
"0.7278144",
"0.6268627",
"0.6268627",
"0.6234785",
"0.6234785",
"0.58311135",
"0.57414705",
"0.56523573",
"0.5585149",
"0.54238856",
"0.54033464",
"0.53733134",
"0.53141737",
"0.53107816",
"0.5299748",
"0.5283886",
"0.52786136",
"0.5250844",
"0.52464885",
"0.52390134",
"0.52... | 0.7213293 | 1 |
Kind is the API kind the resources belong to. Required. | def eJTR(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO, eJTR):\n if eJTR is None:\n raise ValueError('Invalid value for `kind`, must not be `None`')\n BbPm = ['require_tasks_to_be_completed', 'require_passing_builds_to_merge', 'force', 'require_all_dependencies_merged', 'push', 'require_approvals_to_merge', 'enforce_merge_checks', 'restrict_... | [
"0.6209708",
"0.6069023",
"0.6020148",
"0.6008778",
"0.5950071",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"0.59305537",
"... | 0.6000945 | 5 |
Kind is the API kind the resources belong to. Required. | def eJTR(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO, eJTR):\n if eJTR is None:\n raise ValueError('Invalid value for `kind`, must not be `None`')\n BbPm = ['require_tasks_to_be_completed', 'require_passing_builds_to_merge', 'force', 'require_all_dependencies_merged', 'push', 'require_approvals_to_merge', 'enforce_merge_checks', 'restrict_... | [
"0.62095636",
"0.60710657",
"0.60212165",
"0.6009538",
"0.5950414",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
"0.5932811",
... | 0.6002357 | 6 |
`name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, g3yn: Optional[pulumi.Input[Sequence[pulumi.Input['SelectorArgs']]]]=None):\n if mWFP is not None:\n qe4Y.set(Ro_8, 'name', mWFP)\n if g3yn is not None:\n qe4Y.set(Ro_8, 'selectors', g3yn)",
"def aC0l(YKHO, mWFP):\n pass",
"def mX... | [
"0.6022603",
"0.5493131",
"0.54854655",
"0.54564255",
"0.53101546",
"0.513093",
"0.50835437",
"0.506374",
"0.50337493",
"0.50075436",
"0.50075436",
"0.50075436",
"0.50075436",
"0.5006786",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.... | 0.0 | -1 |
namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A pernamespace parameter may be used by specifying a namespacescoped `paramKind` in the policy and leaving this field empty. If `paramKind` is clusterscoped... | def _63S(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWg2(YKHO, mWFP, **B2fa):\n HhGF = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n HhGF.append('callback')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got an unexpec... | [
"0.5365855",
"0.5311109",
"0.5285467",
"0.5237485",
"0.5237441",
"0.5228274",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5122965",
"0.5062839",
"0.5062839",
"0.5062839",
"0.5062839",
"... | 0.4442695 | 79 |
`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matche... | def ftGe(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'parameter_not_found_action') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWf4(YKHO, eOtH, _N6A):\n raise TypeError('Abstract method HandleMissingParameterDoc not implemented')",
"def B3Ku():\n with trZe.raises(yIIn):\n bGrB = nHSz(ssm_parameter_key='/oops/not/valid')",
"def iVGR(YKHO) -> None:\n Ylbp = YKHO.app.get('/model-parameters')\n YKHO.assertEqual(400,... | [
"0.5484264",
"0.54707",
"0.5435296",
"0.52834576",
"0.5257851",
"0.5239528",
"0.5228244",
"0.5224172",
"0.521562",
"0.5195242",
"0.5019285",
"0.4970587",
"0.49247026",
"0.48941028",
"0.48703346",
"0.48554608",
"0.48435742",
"0.48361632",
"0.48011",
"0.47820675",
"0.4781566",
... | 0.67835265 | 0 |
`name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, g3yn: Optional[pulumi.Input[Sequence[pulumi.Input['SelectorArgs']]]]=None):\n if mWFP is not None:\n qe4Y.set(Ro_8, 'name', mWFP)\n if g3yn is not None:\n qe4Y.set(Ro_8, 'selectors', g3yn)",
"def aC0l(YKHO, mWFP):\n pass",
"def mX... | [
"0.6022603",
"0.5493131",
"0.54854655",
"0.54564255",
"0.53101546",
"0.513093",
"0.50835437",
"0.506374",
"0.50337493",
"0.50075436",
"0.50075436",
"0.50075436",
"0.50075436",
"0.5006786",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.49921054",
"0.... | 0.0 | -1 |
namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A pernamespace parameter may be used by specifying a namespacescoped `paramKind` in the policy and leaving this field empty. If `paramKind` is clusterscoped... | def _63S(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWg2(YKHO, mWFP, **B2fa):\n HhGF = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n HhGF.append('callback')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got an unexpec... | [
"0.5365855",
"0.5311109",
"0.5285467",
"0.5237485",
"0.5237441",
"0.5228274",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5124307",
"0.5122965",
"0.5062839",
"0.5062839",
"0.5062839",
"0.5062839",
"... | 0.4442695 | 78 |
`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matche... | def ftGe(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'parameter_not_found_action') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWf4(YKHO, eOtH, _N6A):\n raise TypeError('Abstract method HandleMissingParameterDoc not implemented')",
"def B3Ku():\n with trZe.raises(yIIn):\n bGrB = nHSz(ssm_parameter_key='/oops/not/valid')",
"def iVGR(YKHO) -> None:\n Ylbp = YKHO.app.get('/model-parameters')\n YKHO.assertEqual(400,... | [
"0.5484264",
"0.54707",
"0.5435296",
"0.52834576",
"0.5257851",
"0.5239528",
"0.5228244",
"0.5224172",
"0.521562",
"0.5195242",
"0.5019285",
"0.4970587",
"0.49247026",
"0.48941028",
"0.48703346",
"0.48554608",
"0.48435742",
"0.48361632",
"0.48011",
"0.47820675",
"0.4781566",
... | 0.67835265 | 1 |
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. | def FIMM(Ro_8, *, p16M: Optional['outputs.MatchResources']=None, wbga: Optional['outputs.ParamRef']=None, CX3n: Optional[str]=None, UXZT: Optional[Sequence[str]]=None):
if p16M is not None:
qe4Y.set(Ro_8, 'match_resources', p16M)
if wbga is not None:
qe4Y.set(Ro_8, 'param_ref', wbga)
if CX3n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cqok(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyBindingSpec']:\n return qe4Y.get(YKHO, 'spec')",
"def FIMM(Ro_8, *, clva: Optional[str]=None, eJTR: Optional[str]=None, yIVm: Optional['_meta.v1.outputs.ObjectMeta']=None, Cqok: Optional['outputs.ValidatingAdmissionPolicyBindingSpec']=None):\n if clv... | [
"0.7041987",
"0.5891312",
"0.5756616",
"0.4778619",
"0.46263778",
"0.45471433",
"0.4417923",
"0.43508485",
"0.43091828",
"0.42596906",
"0.42212072",
"0.41586104",
"0.41075704",
"0.41067326",
"0.4078584",
"0.40658724",
"0.40642",
"0.40527445",
"0.40447128",
"0.40333524",
"0.40... | 0.0 | -1 |
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | def CX3n(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'policy_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CX3n(YKHO, CX3n):\n YKHO._policy_name = CX3n",
"def CX3n(YKHO, CX3n):\n YKHO._policy_name = CX3n",
"def CX3n(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_name')",
"def CX3n(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_name')",
"def CX3n(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.5633985",
"0.5633985",
"0.5570308",
"0.5570308",
"0.5570308",
"0.5570308",
"0.5570308",
"0.5570308",
"0.5570308",
"0.5490895",
"0.5324416",
"0.5102402",
"0.502673",
"0.49200144",
"0.4904921",
"0.48910597",
"0.48780617",
"0.48602393",
"0.4856884",
"0.47738758",
"0.47476506"... | 0.5550509 | 9 |