query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Gets a list of the rules which make up this style. | def BX8i(YKHO) -> x1iM[c4EF]:
return YKHO.__rules | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BX8i(YKHO):\n return YKHO.rules",
"def Ddaj(YKHO):\n return list(YKHO._rules)",
"def wvC8(YKHO) -> list:\n c_NS: list = []\n iXMp: dict = {'skip_comments': True, 'skip_whitespace': True}\n if YKHO._css:\n for eD8c in oHbA.parse_stylesheet(YKHO._css, **iXMp):\n c_NS.append(e... | [
"0.81865877",
"0.8162539",
"0.8028095",
"0.80020976",
"0.79842114",
"0.7965214",
"0.7961448",
"0.7961448",
"0.7961448",
"0.78985584",
"0.7808113",
"0.77958685",
"0.7795225",
"0.7660689",
"0.7614013",
"0.7537052",
"0.7479056",
"0.74677205",
"0.7351508",
"0.7289907",
"0.7265942... | 0.8304587 | 0 |
Return the class of this device, from component DEVICE_CLASSES. | def rM2U(YKHO):
return nC8P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)",
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKHO) -> str:\n return eeT9",
"def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type",
"def rM2U(YKHO) -> str:\n return YKHO._dev_... | [
"0.85304403",
"0.8427226",
"0.83756787",
"0.83750737",
"0.83277243",
"0.8324431",
"0.8292755",
"0.8292755",
"0.8292755",
"0.82483685",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754"... | 0.70376307 | 72 |
Initializes a delayed message, using data from the example form. | def hc9P(sGFq, VkFC):
ymHN = VkFC['Character']
eKph = VkFC['Delay']
vC92 = str(sGFq)
if VkFC['Anonymous'] is True:
vC92 = 'anonymous'
Ol8d = 'Message from %s: ' % vC92 + str(VkFC['Message'])
sGFq.msg('Message sent to %s!' % ymHN)
h7D2(eKph, tDJg, ymHN, Ol8d)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JfyU(YKHO):\n JHMa = '|cSend a delayed message to another player ---------------------------------------|n'\n n1Lq = \"|c--------------------------------------------------------------------------------|n|/Syntax: type |c<field> = <new value>|n to change the values of the form. Given|/player must be curre... | [
"0.720577",
"0.6131828",
"0.60339236",
"0.601981",
"0.5492409",
"0.5476807",
"0.5473805",
"0.54601675",
"0.54209036",
"0.53787",
"0.53750193",
"0.5344403",
"0.53244203",
"0.5320527",
"0.53067523",
"0.5304429",
"0.52967316",
"0.52696645",
"0.5262142",
"0.5248482",
"0.52059776"... | 0.7216041 | 0 |
Update the resources of the test in the remote db. | def wrZc(YKHO, QOe9):
YKHO.client.update_resources(QOe9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iIVU(w5ub, qFQp, kg2c):\n f2Vk = y5zu.TestRun.get_by_id(w5ub)\n if not f2Vk or f2Vk.state != y5zu.TestRunState.PENDING:\n return\n for Mkmy in f2Vk.test_resources:\n Mkmy.cache_url = qFQp[Mkmy.url]\n if kg2c:\n f2Vk.test_package_info = kg2c\n f2Vk.put()",
"def CMLf(YKHO, Q... | [
"0.68437827",
"0.6394877",
"0.63205487",
"0.62719494",
"0.6262304",
"0.6196405",
"0.6169592",
"0.6133578",
"0.6124509",
"0.6124509",
"0.60870117",
"0.6048003",
"0.6013838",
"0.5985077",
"0.5945692",
"0.5929752",
"0.5881854",
"0.5833768",
"0.5817991",
"0.5811622",
"0.57928324"... | 0.7909537 | 0 |
Method to get all categories | def LH1I(YKHO):
try:
w2B8 = yom3()
DpUl = w2B8.cursor()
DpUl.execute('SELECT * FROM categories')
LeZt = DpUl.fetchall()
ngVb(w2B8)
VJUP = []
for Ghho in LeZt:
IA_l = {'Category_id': Ghho[0], 'Category_Name': Ghho[1], 'Description': Ghho[2]}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LU07(Emd4):\n return LeZt",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW():\n return qZuN.objects.all()",
"def YwiI(YKHO):\n return YKHO._dApi.getCategoryList()",
"def N3tc(YKHO):\n geh0 = (yield YKHO._api_client.getRe... | [
"0.87657034",
"0.8645471",
"0.8645471",
"0.8423058",
"0.8418485",
"0.83884776",
"0.8369094",
"0.8354832",
"0.83162636",
"0.83158296",
"0.8298214",
"0.8297061",
"0.8292872",
"0.82203645",
"0.8203693",
"0.81254405",
"0.80471",
"0.7984822",
"0.79510015",
"0.78984004",
"0.788102"... | 0.78333694 | 21 |
Take a hexadecimal string and return a binary string | def TvxI(MKlR):
try:
Fg_i = []
for YRbF in MKlR:
if YRbF == '.':
Fg_i.append('.')
else:
Fg_i.append(Mvht[YRbF])
return ''.join([str(YRbF) for YRbF in Fg_i])
except:
return 'Input cannot contain other than 0 --> 9,A --> F' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rj1U(X9sb):\n nKIH = map(bin, X9sb)\n eBL1 = map(zsYL, nKIH)\n ebso = ''.join(eBL1)\n return ebso",
"def ukJA(X9sb):\n return ''.join(('{0:04b}'.format(int(Z9rn, 16)) for Z9rn in X9sb))",
"def wo0c(str):\n return bin(int(MRxC.hexlify(str.encode()), 16))[2:].zfill(8 * len(str))",
"def Hv... | [
"0.78412735",
"0.7831143",
"0.78036296",
"0.7655565",
"0.75322634",
"0.7530151",
"0.7491909",
"0.74840254",
"0.74334544",
"0.7361109",
"0.735333",
"0.7348619",
"0.73346674",
"0.73142326",
"0.7292069",
"0.72911096",
"0.72654134",
"0.72608155",
"0.723114",
"0.7220876",
"0.72152... | 0.0 | -1 |
Take a binary string and return an octal string | def p1E9(Fg_i):
z1Rg = []
try:
if Fg_i.find('.') == -1:
if len(Fg_i) == 1:
z1Rg.append(AdOz['00' + Fg_i[0]])
elif len(Fg_i) == 2:
z1Rg.append(AdOz['0' + Fg_i[-2:]])
else:
z1Rg.append(AdOz[Fg_i[-3:]])
for YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fAwA(hcXw):\n return '{0:o}'.format(ord(hcXw))",
"def Q_TS(vIwR: str) -> str:\n return ''.join((format(ord(YRbF), '08b') for YRbF in vIwR))",
"def kYJX(pB3N):\n return CYxg('\\x04', pB3N)",
"def ePfh(vIwR):\n hlel = ''.join(('{0:08b}'.format(ord(WKvO), 'b') for WKvO in vIwR))\n return hlel... | [
"0.7444837",
"0.73437184",
"0.71082234",
"0.70598644",
"0.7017971",
"0.7011016",
"0.70085627",
"0.69637024",
"0.694885",
"0.6881181",
"0.6855508",
"0.6851976",
"0.6797617",
"0.67342716",
"0.65493727",
"0.65473276",
"0.6532449",
"0.648131",
"0.6433077",
"0.64118886",
"0.640958... | 0.0 | -1 |
Take a decimal string and return an octal string | def vA79(Csk6):
return p1E9(lraF(Csk6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fAwA(FGW3):\n return f'{int(FGW3):o}'",
"def fAwA(hcXw):\n return '{0:o}'.format(ord(hcXw))",
"def FMA3(iSjc: int) -> int:\n iSjc = int(iSjc)\n fAwA = ''\n while iSjc > 0:\n fAwA = str(iSjc % 8) + fAwA\n iSjc //= 8\n return int(fAwA)",
"def WgcN(rTvK):\n return int(rTvK... | [
"0.806304",
"0.78079087",
"0.7299404",
"0.7041257",
"0.68586653",
"0.67257357",
"0.6706081",
"0.64393383",
"0.6105923",
"0.6090548",
"0.60212934",
"0.6020963",
"0.59710413",
"0.5958272",
"0.59493536",
"0.59210086",
"0.5887509",
"0.58407027",
"0.5838264",
"0.5804495",
"0.57452... | 0.0 | -1 |
Take an octal string and return a decimal string | def Lv5T(z1Rg):
return u2dp(qCPv(z1Rg)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WgcN(rTvK):\n return int(rTvK, 8) if rTvK else None",
"def fAwA(FGW3):\n return f'{int(FGW3):o}'",
"def X7ay(fAwA: int) -> int:\n oct = int(fAwA)\n iSjc = kLQb = 0\n while oct > 0:\n iSjc = iSjc + int(oct % 10 * 8 ** kLQb)\n oct //= 10\n kLQb += 1\n return int(iSjc)",... | [
"0.7193858",
"0.7090115",
"0.7075598",
"0.705357",
"0.69778913",
"0.66865474",
"0.6331135",
"0.62447715",
"0.6153278",
"0.6019592",
"0.59845614",
"0.5831026",
"0.57979906",
"0.57880396",
"0.5784177",
"0.5762955",
"0.5741376",
"0.5716682",
"0.56639004",
"0.5652958",
"0.5652958... | 0.0 | -1 |
Log Errors caused by Updates. | def P1dF(JyK9, QdZT):
bo34.warning('Update "%s" caused error "%s"', JyK9, QdZT.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.77220625 | 53 |
load the root homepage | def tk5Y():
return TvZl('root.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n RRlC, AQSv = EPt3()\n return TvZl('home.html', files=RRlC, dirs=AQSv)",
"def C_QL():\n return TvZl('home.html')",
"def RqgG():\n return TvZl('homepage.html')",
"def C_QL():\n ret... | [
"0.7360831",
"0.73409384",
"0.72701854",
"0.7262996",
"0.7211257",
"0.71690196",
"0.71600294",
"0.71558154",
"0.709206",
"0.709206",
"0.708747",
"0.7070996",
"0.70587546",
"0.70587546",
"0.70585257",
"0.7049895",
"0.7035887",
"0.7025469",
"0.70145065",
"0.69986504",
"0.698679... | 0.0 | -1 |
initalizes the board as a 2 dimensional list with an initial configuration of stones initliazes a dictionary of every potential piece initalizes the player turn tracker initalizes the game state loads the board state into the dictionary of piece objects | def FIMM(YKHO):
YKHO._board = [[4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [4, 0, 2, 0, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0, 4], [4, 2, 2, 2, 0, 2, 0, 2, 2, 2, 2, 0, 2, 0, 2, 0, 2, 2, 2, 4], [4, 0, 2, 0, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0, 4], [4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFV():\n iBIi = dict()\n for YRbF in range(BrEt):\n for r845 in range(BrEt):\n ZMlM = (YRbF, r845)\n iBIi[ZMlM] = S5NE\n iBIi[3, 3] = KV14\n iBIi[3, 4] = VdA6\n iBIi[4, 3] = VdA6\n iBIi[4, 4] = KV14\n return iBIi",
"def NkxL(YKHO):\n vt_q = ['a', 'b', 'c'... | [
"0.7254324",
"0.6822618",
"0.682176",
"0.67915934",
"0.67832136",
"0.6773474",
"0.67348516",
"0.67185247",
"0.67097855",
"0.6655241",
"0.66490847",
"0.6635118",
"0.663502",
"0.661584",
"0.65979964",
"0.65805924",
"0.6579441",
"0.6573534",
"0.6572174",
"0.6560758",
"0.65525055... | 0.0 | -1 |
takes the layout of stones on the board and loads the configuration of the stones into piece objects | def qiJX(YKHO):
for YRbF in range(18, 0, -1):
for r845 in range(1, 19):
rdlD = 18 - r845
fvDH = YRbF - 1
YKHO._piece[WfCS[YRbF] + usx6[r845]] = q8RS(YKHO._board[rdlD + 1][fvDH + 1], YKHO._board[rdlD + 0][fvDH + 1], YKHO._board[rdlD + 2][fvDH + 1], YKHO._board[rdlD + 1][fv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYJW(YKHO):\n SnBA = (QNcZ, d3nS, e74V, WbRz, Obsr, nRId)\n for mrj1 in SnBA:\n for Jyyj in mrj1.init_fields:\n oeNL = Jyyj['position']\n fvDH = Jyyj['color']\n YKHO.board[oeNL[0]][oeNL[1]] = mrj1(oeNL[0], oeNL[1], fvDH, YKHO)",
"def bzzp(YKHO):\n PfEN = XTiz.... | [
"0.66704035",
"0.66170377",
"0.63367367",
"0.6287222",
"0.6195603",
"0.619518",
"0.6156447",
"0.6131992",
"0.61122876",
"0.60375535",
"0.59937423",
"0.5990407",
"0.59578794",
"0.59254915",
"0.5923777",
"0.5904918",
"0.5878946",
"0.5860014",
"0.58520865",
"0.58452016",
"0.5831... | 0.5414728 | 76 |
Get a list of the valid targets for a given player and a list of target types. | def wubc(YKHO, qsJ6, dZ2k):
if j6E3[ySKe.targets]:
print('Getting valid targets.')
wVjn = []
for SHWa in dZ2k:
E6v9 = BH3N.players[0].board.getCards() + BH3N.players[1].board.getCards() + qsJ6.hand.getCards()
if 'Type' in SHWa:
if j6E3[ySKe.targets]:
print... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ni53(Emd4, BH3N: 'GameInstance', PXGI: 'BaseUnitObject') -> 'List[Hex]':\n raise NotImplementedError",
"def djms(YKHO) -> x1iM['Creature']:\n INxk = YKHO.creature.arena\n x6A0 = INxk.find(INxk.target, YKHO.creature)\n if len(x6A0) == 0:\n YKHO.log.debug(f'victory for {YKHO.creature.name}')... | [
"0.62766767",
"0.6258201",
"0.61638653",
"0.6069615",
"0.59612465",
"0.5946529",
"0.5786778",
"0.57687086",
"0.5759426",
"0.5702393",
"0.5666105",
"0.5653691",
"0.5646238",
"0.5628615",
"0.56259435",
"0.55977917",
"0.55853623",
"0.55829614",
"0.55301756",
"0.55174494",
"0.550... | 0.75610274 | 0 |
Get the opposing player to a given player. | def brxA(YKHO, oyg0):
if oyg0 == YKHO.players[0]:
return YKHO.players[1]
return YKHO.players[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9f3(YKHO, oyg0):\n if oyg0 == YKHO.get_player_a():\n return YKHO.get_player_b()\n if oyg0 == YKHO.get_player_b():\n return YKHO.get_player_a()",
"def Yx99(YKHO, oyg0):\n return (set(YKHO.players) - set([oyg0])).pop()",
"def Yx99(YKHO, oyg0):\n return YKHO.opponent_dict[oyg0]",
... | [
"0.821237",
"0.8149363",
"0.8096037",
"0.79449886",
"0.79175794",
"0.7865445",
"0.7849931",
"0.78035504",
"0.7789471",
"0.7732022",
"0.7585736",
"0.75025326",
"0.7483687",
"0.7452711",
"0.7452711",
"0.74262094",
"0.73143893",
"0.7206922",
"0.7162898",
"0.7129556",
"0.7079942"... | 0.79004407 | 5 |
Initializes the player at game start. Sets all values to their base amounts. | def uIcm(YKHO):
YKHO.maxHealth = 20
YKHO.health = 20
YKHO.deck = QHsX(YKHO.cardList, YKHO)
YKHO.hand = MsG1(YKHO)
YKHO.board = yELo(YKHO)
YKHO.energy = 0
YKHO.totalEnergy = 0
YKHO.shadows = 0
YKHO.turnsPlayed = 0
YKHO.invocationsThisTurn = []
YKHO.evolutions = 3
YKHO.tota... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3mv(YKHO):\n YKHO.player = mVZ4(YKHO)\n YKHO.player.player.setPos(-34.0, 30.0, 3.0)",
"def wLw1():\n oyg0.number_of_cities()\n oyg0.matrix()\n oyg0.number_of_managers()\n oyg0.available_days()\n oyg0.input_potential_profit()\n UDni(oyg0.potential_profit, oyg0.input_number_of_cities)\... | [
"0.71672475",
"0.681679",
"0.6712807",
"0.65619063",
"0.65552294",
"0.6519507",
"0.6453636",
"0.64515734",
"0.64499146",
"0.6399685",
"0.63561356",
"0.63504875",
"0.6347651",
"0.63417625",
"0.62724286",
"0.62253714",
"0.61809963",
"0.6165911",
"0.6160452",
"0.61533886",
"0.61... | 0.63729423 | 10 |
This player takes a given amount of damage. If they end up below or at 0, they lose. | def Yjj3(YKHO, Z5kt):
YKHO.health -= Z5kt
if YKHO.health <= 0:
YKHO.die() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a033(YKHO, Z5kt):\n YKHO.health[0] -= Z5kt\n if YKHO.health[0] < 0:\n YKHO.health[0] = 0\n return True",
"def vlw2(YKHO, Z5kt):\n YKHO._damage += Z5kt\n if YKHO._damage > 100:\n YKHO._damage = 100",
"def a033(YKHO, Z5kt: int) -> int:\n if Z5kt < 0:\n return 0\n if ... | [
"0.7954553",
"0.77516466",
"0.7749917",
"0.7704123",
"0.764721",
"0.7637013",
"0.76236176",
"0.7601741",
"0.7570982",
"0.7543836",
"0.75433606",
"0.7518271",
"0.74386895",
"0.7431863",
"0.74209756",
"0.7385846",
"0.73593175",
"0.7301304",
"0.7288062",
"0.7255106",
"0.7224614"... | 0.762276 | 7 |
Adds a card to the bottom of the deck. | def AZnT(YKHO, dxhl):
YKHO.cards.insert(0, dxhl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jrtF(YKHO, dxhl):\n dxhl.owner = YKHO.owner\n YKHO.stack = YKHO.stack + [dxhl]\n YKHO.left = len(YKHO.stack)\n YKHO.bottom = YKHO.stack[YKHO.left - 1]\n if YKHO.left == 1:\n YKHO.top = YKHO.bottom",
"def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.pop_card())",
"def wjOP(YKHO, dxhl,... | [
"0.81489015",
"0.7886032",
"0.78425545",
"0.7701071",
"0.7605487",
"0.7559714",
"0.7455579",
"0.7431815",
"0.7364882",
"0.73114324",
"0.73114324",
"0.7283587",
"0.7282395",
"0.7273948",
"0.7259939",
"0.72440124",
"0.72398674",
"0.72330606",
"0.72154695",
"0.71956086",
"0.7193... | 0.750024 | 6 |
Initializes the Card object, setting its basic values. Registers and generates a unique index for the card. | def FIMM(YKHO, mWFP, sSN_, P8oC, qsJ6, QTBn, kfQt):
YKHO.name = mWFP
YKHO.cost = sSN_
YKHO.baseFace = P8oC
YKHO.activeFace = YKHO.baseFace
YKHO.effects = [[] for YRbF in MMZd]
YKHO.owner = qsJ6
YKHO.state = QTBn
YKHO.cardObj = kfQt
YKHO.cardNum = ROek.registerCard(qsJ6, YKHO)
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.cardNumCounter = 0\n YKHO.cards = []",
"def FIMM(YKHO, d6pt=None):\n assert d6pt in range(0, 52), 'Create a card with an integer in the range (0, 52)'\n YKHO.index: int = d6pt\n YKHO.rank: int = d6pt % 13\n YKHO.suit: int = d6pt // 13\n YKHO.value: int = T6S7[YKHO.rank... | [
"0.7426356",
"0.70901656",
"0.7051693",
"0.7020501",
"0.70153373",
"0.6990605",
"0.6980404",
"0.69594026",
"0.69416386",
"0.6908905",
"0.68819964",
"0.68618035",
"0.68333393",
"0.68308634",
"0.68090063",
"0.67599815",
"0.6751703",
"0.6740169",
"0.6731576",
"0.6715239",
"0.671... | 0.0 | -1 |
Bad key JSON request. Should return 400 | def ipty(YKHO):
vpSr = {'wrong_key': 'etx'}
geh0 = YKHO.client.get(f'{zDeW}/dates', data=qQXR.dumps(vpSr), content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ms5b(YKHO):\n YKHO.request._body = qQXR.dumps({})\n Aofo = RCd1.endpoint(YKHO.request)\n YKHO.assertEqual(Aofo.status_code, 400)\n YKHO.assertEqual(Aofo.content.decode('ascii'), 'Request Missing Necessary Keys')",
"def DXTb(x0hE):\n Aofo = x0hE.post('/search-model')\n assert Aofo.status_cod... | [
"0.77189183",
"0.7677756",
"0.73468214",
"0.729996",
"0.72474444",
"0.719795",
"0.7186886",
"0.71282506",
"0.7075427",
"0.7039928",
"0.7028207",
"0.7007521",
"0.70016325",
"0.6962445",
"0.69506323",
"0.6947921",
"0.6947921",
"0.694443",
"0.692147",
"0.6894223",
"0.68823016",
... | 0.8026472 | 0 |
Bad value JSON request. Should return 400 | def L0fH(YKHO):
vpSr = {'full': 'etx'}
geh0 = YKHO.client.get(f'{zDeW}/dates', data=qQXR.dumps(vpSr), content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ef9(QePW, AJ5d, *qIxc, **B2fa):\n nPrm = {'error': 'Bad Request (400)'}\n return jnRN(nPrm, status=jGRS.HTTP_400_BAD_REQUEST)",
"def _ef9(P1dF):\n return (pz3A(dict(error='The Server did not understand' + ' the request')), 400)",
"def nF0b(tTpl):\n return (pz3A({'message': 'request sent with i... | [
"0.7635598",
"0.76014364",
"0.75700617",
"0.7565317",
"0.75365585",
"0.74584174",
"0.7451087",
"0.739113",
"0.738326",
"0.73743695",
"0.7364844",
"0.734061",
"0.7339569",
"0.72772026",
"0.72656775",
"0.72372526",
"0.7235804",
"0.72323793",
"0.72203386",
"0.7184845",
"0.718418... | 0.7802893 | 0 |
Return a reversed version of this alphabet as a string | def TaVL(YKHO):
return YKHO.elements[::-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxEw(YKHO):\n KoG3 = list(YKHO.seq)\n KoG3.reverse()\n return ''.join(KoG3)",
"def reversed(YKHO):\n return _LyC(YKHO._reversed(), uniqueify=False)",
"def hgXU(YKHO):\n KoG3 = list(YKHO.seq)\n KoG3.reverse()\n KoG3 = [YKHO.basecomplement[P8oC] for P8oC in KoG3]\n return ''.join(KoG3... | [
"0.8084466",
"0.7973496",
"0.7699353",
"0.7150389",
"0.7127066",
"0.7090539",
"0.7073513",
"0.6869738",
"0.6868727",
"0.6866477",
"0.6829184",
"0.67670375",
"0.6715416",
"0.67085725",
"0.6701695",
"0.6677438",
"0.6669814",
"0.6669527",
"0.66383696",
"0.6580616",
"0.65684915",... | 0.61805516 | 87 |
Smooth L1 loss between offsets and encoded_gt ARGS | def kdKX(gQVb, RiiS, rrBf=None):
with ZylS.variable_scope(rrBf or 'smooth_l1_loss'):
RiiS = ZylS.stop_gradient(RiiS)
yk4i = ZylS.abs(gQVb - RiiS)
x5zL = ZylS.cast(ZylS.less(yk4i, 1.0), ZylS.float32)
HHkG = 1.0 - x5zL
N8L0 = 0.5 * ZylS.square(yk4i) * x5zL + (yk4i - 0.5) * HHkG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ0o(WTkW=3.0):\n cam5 = WTkW ** 2\n\n def y_va(Y8eF, aMgO):\n \"\"\" Compute the smooth L1 loss of y_pred w.r.t. y_true.\n\n Args\n y_true: Tensor from the generator of shape (B, N, 5). The last value for each box is the state of the anchor (ignore, negative, positive).\n ... | [
"0.71365166",
"0.6892565",
"0.68752205",
"0.6858488",
"0.6790685",
"0.6624174",
"0.6614155",
"0.659512",
"0.6546327",
"0.65452546",
"0.65050286",
"0.6454308",
"0.6433954",
"0.6433954",
"0.64185476",
"0.6369525",
"0.6294458",
"0.6289202",
"0.62581027",
"0.6257107",
"0.6184194"... | 0.75776404 | 0 |
My preferred seaborn plotting style | def vTgG():
jbXL = uuEx.color_palette('muted')
jbXL[1], jbXL[2] = (jbXL[2], jbXL[1])
uuEx.set_palette(jbXL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_CN():\n uuEx.set(style='ticks', context='paper', font_scale=1.4)\n uuEx.despine(trim=True)\n I8kJ.rcParams['pdf.fonttype'] = 42\n I8kJ.rcParams['ps.fonttype'] = 42",
"def IOV9(uuEx, NArs):\n uuEx.set_context('paper', font_scale=1)\n uuEx.set(palette=tuple(getattr(NArs, 'plot_palette', ['#... | [
"0.7864695",
"0.6765969",
"0.6659158",
"0.65379256",
"0.63924235",
"0.6361686",
"0.6207789",
"0.6078729",
"0.60578674",
"0.5855449",
"0.5803437",
"0.57983965",
"0.5787077",
"0.57810324",
"0.57714653",
"0.5739594",
"0.56469506",
"0.56400895",
"0.56189543",
"0.56140184",
"0.558... | 0.0 | -1 |
Test the PaymentProcess api with invalid amount | def wFuq(YKHO, x0hE, Ms2Z, McWt):
nPrm = {'CreditCardNumber': '5555555555554444', 'CardHolder': 'syed hassan raza', 'ExpirationDate': '2020-12-12', 'Amount': -12, 'SecurityCode': 321}
geh0 = x0hE.post(Ms2Z, json=nPrm, headers=McWt)
Bv0m = geh0.json()
assert geh0.status_code == 400
assert 'ensure thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXfF(YKHO):\n Quwb = qcWV.now().strftime('%Y%m%d%H%M')\n x0hE = iU3f(merchant_id=YKHO.merchant_id, access_key=YKHO.access_key, contract_number=YKHO.contract_number, homologation=True)\n YKHO.assertRaises(Dj8J, x0hE.do_web_payment, amount=ZjSO('0.00'), currency=u'EUR', order_ref=Quwb, return_url='http:... | [
"0.8047959",
"0.76375324",
"0.75468117",
"0.7515504",
"0.72465223",
"0.71606356",
"0.6937096",
"0.69075066",
"0.68923503",
"0.68648005",
"0.6831784",
"0.6820274",
"0.681509",
"0.6812993",
"0.6724585",
"0.67056155",
"0.6662128",
"0.6649857",
"0.6648386",
"0.66146165",
"0.66030... | 0.76515126 | 1 |
Extract latent representations from a given classification dataset. | def P5o7(bo34: LatentRepresentationCollector, EvQg: bool, C3ST: Module, __n6: DataLoader, begE: str) -> None:
if bo34.pre_exists:
print('Found existing latent representations and overwrite is disabled')
return
Tuqy = 'train' if EvQg else 'eval'
gXXc, wjRY = (0, 0)
aVOc = ITS7()
with ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sZ3l(YKHO, zQKy, xQ06=False):\n YKHO.network.eval()\n ywwl = len(zQKy.dataset)\n bySB = oyIN.zeros((ywwl, YKHO.gaussian_size))\n if xQ06:\n Yptr = oyIN.zeros(ywwl, dtype=oyIN.int64)\n KssW = 0\n with ht2j.no_grad():\n for nPrm, Crrw in zQKy:\n if YKHO.cuda == 1:\n ... | [
"0.6829053",
"0.6446216",
"0.64370614",
"0.6267568",
"0.6201638",
"0.6183912",
"0.6061486",
"0.59703565",
"0.596156",
"0.59506524",
"0.5930527",
"0.5928081",
"0.5924409",
"0.59126794",
"0.59036994",
"0.5861459",
"0.585828",
"0.58471835",
"0.5837827",
"0.5820073",
"0.5817964",... | 0.0 | -1 |
Update the self_attention_model which changes the positional encoding and attention layers. | def lZSa(YKHO, E04P: str=None, YCHw: List[int]=None, YYiC: bool=True, begE: torch.device=None):
if YCHw:
YCHw = list(YCHw)
else:
YCHw = YKHO.att_context_size
if E04P is None:
E04P = YKHO.self_attention_model
if E04P == 'rel_pos_local_attn' and max(YCHw) <= 0:
raise ValueE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EkDY(YKHO):\n JAq0 = YKHO.aft_upper.getPosition()\n YKHO.aft_upper.setPosition(JAq0[0] + YKHO.pos_upper_aft_mod[0], JAq0[1] + YKHO.pos_upper_aft_mod[1], JAq0[2] + YKHO.pos_upper_aft_mod[2])\n DHQW = YKHO.aft_upper.getPosition()\n YKHO.fwd_upper.setPosition(DHQW[0] + YKHO.pos_upper_fwd_mod[0], DHQW[... | [
"0.6119682",
"0.5943888",
"0.58550954",
"0.58399355",
"0.56931543",
"0.5675845",
"0.56731874",
"0.56453645",
"0.563547",
"0.5543998",
"0.55164534",
"0.5485805",
"0.5484522",
"0.5470587",
"0.5469589",
"0.5466883",
"0.5458182",
"0.54362667",
"0.5432181",
"0.5422342",
"0.5391152... | 0.692218 | 0 |
Update the conv_chunking_factor (int) Default is 1 (auto) Set it to 1 (disabled) or to a specific value (power of 2) if you OOM in the conv subsampling layers | def Ae42(YKHO, nSiM: int):
if not hasattr(YKHO.pre_encode, 'change_subsampling_conv_chunking_factor'):
G9jH.info("Model pre_encoder doesn't have a change_subsampling_conv_chunking_factor method ")
return
YKHO.pre_encode.change_subsampling_conv_chunking_factor(subsampling_conv_chunking_factor=nSi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DYuh, tYiq, Ot1W, _0fC):\n super(zCA2, YKHO).__init__()\n YKHO.upsample = 2\n yXio = Ot1W // 2\n YKHO.reflection_pad = ht2j.nn.ReflectionPad2d(yXio)\n YKHO.conv2d = ht2j.nn.Conv2d(DYuh, tYiq, Ot1W, _0fC)",
"def yrru(YKHO, Ep8u, dMYj):\n RTy5 = 1399\n M9nc = len(YKHO.img.shape)... | [
"0.5695516",
"0.56819755",
"0.566929",
"0.564557",
"0.5611404",
"0.5611404",
"0.5611404",
"0.55991334",
"0.55741614",
"0.5550552",
"0.55477",
"0.55417913",
"0.5539639",
"0.5533903",
"0.5521529",
"0.5510591",
"0.54928195",
"0.548484",
"0.5481591",
"0.5474147",
"0.54634595",
... | 0.8234439 | 0 |
Returns a logger object that other objects can and will use to log their events. | def XIAT(YKHO):
bo34 = XgDe(YKHO.backup_model)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2():\n return bo34",
"def bo34():\n return bo34",
"def RKD7(YKHO):\n return bo34",
"def bo34(YKHO) -> G9jH.Logger:\n if YKHO._logger is None:\n bo34 = ESLr(__name__, YKHO.log_file_path, YKHO.no_log_file)\n YKHO._logger = bo34\n return YKHO._logger",
"def bo34():\n ret... | [
"0.8078823",
"0.80158037",
"0.79192644",
"0.7917216",
"0.7859863",
"0.78212434",
"0.77886087",
"0.77806723",
"0.77580214",
"0.7746708",
"0.7739691",
"0.76500636",
"0.7612252",
"0.75970876",
"0.75940686",
"0.75524765",
"0.75127465",
"0.751181",
"0.75066936",
"0.7498647",
"0.74... | 0.7140353 | 69 |
reshape from [N T D C] > [N T DC] using tf.shape(x), which generate a tensor instead of x.shape | def v4Dw(WKvO, mWFP=None):
with IPme.name_scope(mWFP, 'collapse4d') as mWFP:
ROpF = qiip(WKvO)
ywwl = ROpF[0]
Kt_s = ROpF[1]
lWPh = ROpF[2]
Nq1b = ROpF[3]
PE50 = lWPh * Nq1b
yvT9 = ZylS.reshape(WKvO, [ywwl, Kt_s, PE50])
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CPoG(YKHO, WKvO):\n WKvO = ZylS.reshape(WKvO, (ZylS.shape(WKvO)[0], ZylS.shape(WKvO)[1], YKHO.num_heads, YKHO.depth))\n return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])",
"def q3V_(WKvO, ROpF, mWFP='Reshape'):\n GhuM = WKvO.shape.as_list()\n EZd9 = []\n for YRbF in ROpF:\n if YRbF is None... | [
"0.75984037",
"0.7528581",
"0.746093",
"0.746093",
"0.7416935",
"0.7390247",
"0.7361064",
"0.73438",
"0.7328066",
"0.7231927",
"0.71995157",
"0.7192091",
"0.7188259",
"0.7177548",
"0.71352977",
"0.71345496",
"0.7111009",
"0.7102272",
"0.7085624",
"0.70728654",
"0.7067501",
... | 0.68540525 | 33 |
3x3 kernel size with padding convolutional layer in ResNet BasicBlock. | def Myly(DYuh, tYiq, _0fC=1):
return U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _o51(YKHO, lzjZ, g4y1, KUnM, zNig, _0fC, dvgN='SAME', e5sz=True, FiJ9=False, _uVk=False, QZir=True, z2bo=0.001, ivFb=-1, AcwX='kernels', z2l9='biases'):\n FQNo = YKHO.mc\n PH7U = False\n if FQNo.LOAD_PRETRAINED_MODEL:\n XOzQ = YKHO.caffemodel_weight\n if lzjZ in XOzQ:\n JH4b =... | [
"0.67192173",
"0.67133975",
"0.66760707",
"0.6674064",
"0.6648452",
"0.660039",
"0.65689254",
"0.6566598",
"0.65527105",
"0.65388286",
"0.65370613",
"0.6534566",
"0.65312296",
"0.6529751",
"0.652649",
"0.6523721",
"0.6519018",
"0.65183496",
"0.6516426",
"0.6507786",
"0.650199... | 0.0 | -1 |
Verify /contact_us/ link works on staging and production | def GLJ2(YKHO):
YKHO.assertEquals(saoO('makana.berkeley.edu', '/contact_us/'), True)
YKHO.assertEquals(saoO('makana-test.berkeley.edu', '/contact_us/'), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bULK(YKHO):\n geh0 = YKHO.client.get(gxEw('contact'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'Contact Information')",
"def URjG(YKHO):\n geh0 = YKHO.client.get(gxEw('user:contact'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'use... | [
"0.63838524",
"0.6340755",
"0.62716526",
"0.6215029",
"0.620289",
"0.6177672",
"0.60884964",
"0.6086354",
"0.6072947",
"0.60720086",
"0.6008946",
"0.60058343",
"0.60045093",
"0.5987143",
"0.5980038",
"0.5979303",
"0.59607327",
"0.59452635",
"0.5938487",
"0.58732265",
"0.58708... | 0.0 | -1 |
Make an iterator that computes the function using arguments from each of the iterables. Then put the iterables into task list. | def wAPW(YKHO, JfyU: Callable[[T], S], S7dm: Iterable[T]):
NI9V.debug('put some processed jobs into the task list')
XkiF = lambda iter: YKHO.create_task(JfyU(iter))
YKHO.extend_task(map(XkiF, S7dm))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def map(YKHO, FYKK, *ix7N):\n yield from (eHNT.result() for eHNT in YKHO.submit_batch(FYKK, *ix7N).ordered)",
"def map(YKHO, JfyU, *ix7N):\n L4cE = map(YKHO.submit, Hs6x.repeat(JfyU), *ix7N)\n return [KS9L.result() for KS9L in L4cE]",
"def P8gx(YKHO, JfyU: Callable[..., Any], *qIxc: Iterable[Any]) -> ... | [
"0.7425922",
"0.7364584",
"0.7090957",
"0.7085103",
"0.7063305",
"0.7063305",
"0.7063305",
"0.7063305",
"0.7035846",
"0.699815",
"0.69493896",
"0.6930567",
"0.69195867",
"0.6918857",
"0.6882267",
"0.6846919",
"0.68194324",
"0.68164295",
"0.68093723",
"0.6704932",
"0.6685658",... | 0.6168972 | 50 |
Get a list of ncolors colors, sampled uniformly from a continuous cmap. | def n5ny(i6Hb, em8M='gnuplot', MynD=0.0, n4wC=1.0):
iMGt = QrM1.cm.get_cmap(em8M)
return [iMGt(oyIN.interp(YRbF, [0, i6Hb - 1], [MynD, n4wC])) for YRbF in range(i6Hb)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frP3(ywwl, em8M='Dark2'):\n YDzg = QrM1.get_cmap(em8M)\n return [YDzg(Z9rn) for Z9rn in XTiz.linspace(0, 1, ywwl)]",
"def fRt4(MYQr, exwG):\n iMGt = QrM1.get_cmap(MYQr)\n JnI8 = iMGt.N\n if exwG == 1:\n return [iMGt(int(0.5 * JnI8))]\n else:\n return [iMGt(int(G1Hx * JnI8 / (e... | [
"0.78624237",
"0.7846102",
"0.75794536",
"0.73935205",
"0.73935205",
"0.7382076",
"0.7369308",
"0.72391295",
"0.7207642",
"0.7110466",
"0.7065166",
"0.6974484",
"0.6938071",
"0.6907866",
"0.6890556",
"0.68444943",
"0.6824784",
"0.6786486",
"0.67751455",
"0.67701286",
"0.67309... | 0.79307187 | 0 |
L{Headers.setRawHeaders} requires values to be of type list. | def lIPZ(YKHO):
MKlR = b34W()
YKHO.assertRaises(TypeError, MKlR.setRawHeaders, {b'Foo': b'bar'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def evPr(YKHO):\n QvlW = [b'value1', b'value2']\n MKlR = b34W()\n MKlR.setRawHeaders(b'test', QvlW)\n YKHO.assertTrue(MKlR.hasHeader(b'test'))\n YKHO.assertTrue(MKlR.hasHeader(b'Test'))\n YKHO.assertEqual(MKlR.getRawHeaders(b'test'), QvlW)",
"def evPr(YKHO):\n QvlW = ['value1', 'value2']\n ... | [
"0.76837003",
"0.7395551",
"0.6915755",
"0.67984146",
"0.6717484",
"0.6637989",
"0.65328145",
"0.6521566",
"0.65003484",
"0.64738375",
"0.64299136",
"0.6286998",
"0.62090933",
"0.6161388",
"0.60634875",
"0.5895675",
"0.5850659",
"0.58386934",
"0.58365023",
"0.57452685",
"0.57... | 0.6661715 | 5 |
A L{Headers} instance compares equal to itself and to another L{Headers} instance with the same values. | def _TUl(YKHO):
cntZ = b34W()
cntZ.setRawHeaders(b'foo', [b'panda'])
CsFy = b34W()
CsFy.setRawHeaders(b'foo', [b'panda'])
pGCm = b34W()
pGCm.setRawHeaders(b'foo', [b'lemur', b'panda'])
YKHO.assertEqual(cntZ, cntZ)
YKHO.assertEqual(cntZ, CsFy)
YKHO.assertNotEqual(cntZ, pGCm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TUl(YKHO):\n cntZ = b34W()\n cntZ.setRawHeaders('foo', ['panda'])\n CsFy = b34W()\n CsFy.setRawHeaders('foo', ['panda'])\n pGCm = b34W()\n pGCm.setRawHeaders('foo', ['lemur', 'panda'])\n YKHO.assertEqual(cntZ, cntZ)\n YKHO.assertEqual(cntZ, CsFy)\n YKHO.assertNotEqual(cntZ, pGCm)",
... | [
"0.8172441",
"0.72959566",
"0.6868123",
"0.681595",
"0.6806113",
"0.67454416",
"0.6714797",
"0.6665507",
"0.66246414",
"0.6595793",
"0.6588666",
"0.6570295",
"0.65609634",
"0.6543561",
"0.65421313",
"0.650347",
"0.6472588",
"0.64255005",
"0.64074254",
"0.63795924",
"0.6374587... | 0.8149613 | 1 |
An instance of L{Headers} does not compare equal to other unrelated objects. | def oZRF(YKHO):
MKlR = b34W()
YKHO.assertNotEqual(MKlR, ())
YKHO.assertNotEqual(MKlR, object())
YKHO.assertNotEqual(MKlR, b'foo') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TUl(YKHO):\n cntZ = b34W()\n cntZ.setRawHeaders('foo', ['panda'])\n CsFy = b34W()\n CsFy.setRawHeaders('foo', ['panda'])\n pGCm = b34W()\n pGCm.setRawHeaders('foo', ['lemur', 'panda'])\n YKHO.assertEqual(cntZ, cntZ)\n YKHO.assertEqual(cntZ, CsFy)\n YKHO.assertNotEqual(cntZ, pGCm)",
... | [
"0.84793234",
"0.84755313",
"0.7849998",
"0.7747673",
"0.76328766",
"0.72267365",
"0.71397775",
"0.71262604",
"0.7090383",
"0.7037096",
"0.70230234",
"0.701488",
"0.7011848",
"0.69256127",
"0.69124043",
"0.6849905",
"0.68354976",
"0.6814257",
"0.6785875",
"0.67755806",
"0.677... | 0.7721939 | 4 |
The L{repr} of an instance of a subclass of L{Headers} uses the name of the subclass instead of the string C{"Headers"}. | def q65v(YKHO):
L70P = b'foo'
S6Fl = b'bar'
o9O6 = b'baz'
class FunnyHeaders(b34W):
pass
YKHO.assertEqual(repr(axqJ({L70P: [S6Fl, o9O6]})), 'FunnyHeaders({%r: [%r, %r]})' % (L70P, S6Fl, o9O6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q65v(YKHO):\n\n class FunnyHeaders(b34W):\n pass\n YKHO.assertEqual(repr(axqJ({'foo': ['bar', 'baz']})), \"FunnyHeaders({'foo': ['bar', 'baz']})\")",
"def E1k5(YKHO) -> str:\n return YKHO.__class__.__name__",
"def H4zp(YKHO):\n YKHO.assertEqual(repr(b34W({'foo': ['bar', 'baz']})), \"Head... | [
"0.79149204",
"0.637895",
"0.6325924",
"0.6289379",
"0.61306477",
"0.6104453",
"0.6097056",
"0.6065338",
"0.60609275",
"0.60587263",
"0.60543853",
"0.6023291",
"0.6022483",
"0.60191613",
"0.60170543",
"0.6011139",
"0.6006254",
"0.5998528",
"0.59851205",
"0.5967388",
"0.596722... | 0.7553518 | 1 |
L{_DictHeaders.__len__} returns the number of headers present. | def bvFa(YKHO):
MOPg, h3Xc = YKHO.headers()
YKHO.assertEqual(len(h3Xc), 0)
MOPg.setRawHeaders(b'foo', [b'bar'])
YKHO.assertEqual(len(h3Xc), 1)
MOPg.setRawHeaders(b'test', [b'lemur', b'panda'])
YKHO.assertEqual(len(h3Xc), 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WAcV(YKHO) -> Swre:\n ...",
"def szAg(YKHO):\n UHFx = YKHO.db.HeadersPool.count()\n return UHFx",
"def szAg(YKHO):\n UHFx = YKHO.db.HeadersPool.count()\n return UHFx",
"def len(YKHO) -> int:\n return YKHO.header.len",
"def len(YKHO):\n return len(YKHO.keys())",
"def j636(YKHO):\n... | [
"0.754246",
"0.7516989",
"0.7516989",
"0.7358264",
"0.7308999",
"0.7273652",
"0.7266363",
"0.716305",
"0.7139195",
"0.711819",
"0.70958996",
"0.70958996",
"0.70872176",
"0.705963",
"0.7043762",
"0.7031722",
"0.70100534",
"0.70100534",
"0.69886535",
"0.6985752",
"0.69782174",
... | 0.6573921 | 34 |
An instance of L{_DictHeaders} does not compare equal to other unrelated objects. | def oZRF(YKHO):
MOPg, h3Xc = YKHO.headers()
YKHO.assertNotEqual(h3Xc, ())
YKHO.assertNotEqual(h3Xc, object())
YKHO.assertNotEqual(h3Xc, b'foo') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bRaC(YKHO):\n MOPg, h3Xc = YKHO.headers(foo=[b'lemur'], bar=[b'panda', b'marmot'])\n YKHO.assertNotEqual(h3Xc, {b'foo': b'lemur', b'bar': b'panda'})\n YKHO.assertEqual(h3Xc, {b'foo': b'lemur', b'bar': b'marmot'})",
"def bRaC(YKHO):\n MOPg, h3Xc = YKHO.headers(foo=['lemur'], bar=['panda', 'marmot'... | [
"0.77428055",
"0.7582344",
"0.73880523",
"0.73586845",
"0.7052895",
"0.70326245",
"0.69935995",
"0.6979691",
"0.6846086",
"0.677237",
"0.67440146",
"0.67167914",
"0.6704942",
"0.6698109",
"0.66920507",
"0.6606768",
"0.6574315",
"0.6544547",
"0.6521597",
"0.6497417",
"0.649659... | 0.7016461 | 6 |
Predicate that returns True if this node is the only node in the tree. | def cDE5(YKHO):
return all([YKHO.parent is None, YKHO.left is None, YKHO.right is None]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae(YKHO) -> bool:\n return not (YKHO.left or YKHO.right)",
"def loae(YKHO):\n return not YKHO.children",
"def loae(YKHO):\n return not YKHO.children",
"def vT4J(YKHO):\n if YKHO.leftTrue is not None and YKHO.rightFalse is not None:\n return False\n else:\n return True",
"... | [
"0.73316735",
"0.729135",
"0.729135",
"0.7251109",
"0.72128105",
"0.7196418",
"0.7187858",
"0.7187858",
"0.71707004",
"0.7156235",
"0.7156235",
"0.7156235",
"0.71438646",
"0.7123455",
"0.7123455",
"0.71142983",
"0.7112863",
"0.7102083",
"0.7102083",
"0.7102083",
"0.7102083",
... | 0.8056082 | 0 |
Predicate that checks if this order tree is empty. This method should only be called when (and should only return True when) this node is the root of the order tree. | def A4KR(YKHO):
FBfn = YKHO.size is None and YKHO.limit is None
if FBfn and (not YKHO.isOnlyNode()):
raise RuntimeError('OrderNode is empty but other nodes exist.')
return FBfn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n \"\"\"Takes no arguments.\n Returns True if the tree is empty and False otherwise.\"\"\"\n return YKHO.root == None",
"def j2V2(YKHO):\n return YKHO.treestore.get_iter_first() == None",
"def FBfn(YKHO: AbstractTree) -> bool:\n return YKHO._root is None",
"def FBfn(YKHO) -... | [
"0.84516335",
"0.83466166",
"0.8346588",
"0.8114783",
"0.8114783",
"0.8114783",
"0.81133366",
"0.80968916",
"0.80968916",
"0.8037476",
"0.8027239",
"0.8027239",
"0.8027239",
"0.8008799",
"0.79991186",
"0.79987454",
"0.79335356",
"0.7911392",
"0.7911392",
"0.7911392",
"0.78991... | 0.80224925 | 13 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
The description of this calendar entry. | def JBZA(YKHO) -> str:
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return YKHO._data['description']",
"def t5do(YKHO):\n A97Q = YKHO._request('event.getInfo', True)\n return aP4s(A97Q, 'description')",
"def t5do(YKHO):\n return HYW6(_z_R['description'])",
"def JBZA(YKHO):\n return YKHO._description",
"def JBZA(YKHO):\n return YKHO._desc... | [
"0.773961",
"0.7737568",
"0.76826006",
"0.764808",
"0.764808",
"0.764808",
"0.7605132",
"0.75896066",
"0.75896066",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0.7588251",
"0... | 0.0 | -1 |
The starting time of an event or meeting. | def SWox(YKHO) -> ITS7:
return YKHO._starttime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.start",
"def SWox(YKHO):\n return YKHO.time_list[0]",
"def Mo_l(YKHO) -> int:\n return YKHO.__starting_time",
"def SWox(YKHO):\n return YKHO.time_range()[0]",
"def SWo... | [
"0.82731295",
"0.8213648",
"0.8185032",
"0.81406754",
"0.8140541",
"0.813942",
"0.8136093",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0.81203455",
"0... | 0.79859984 | 38 |
The ending time of an event or meeting. | def C7pn(YKHO) -> ITS7:
return YKHO._endtime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IElX(YKHO):\n if hasattr(YKHO, '_endtime'):\n return YKHO._endtime\n else:\n return None",
"def wirM(YKHO):\n return YKHO.end_time",
"def wirM(YKHO):\n return YKHO.end_time",
"def wirM(YKHO):\n return YKHO.end",
"def NgWO(YKHO):\n return YKHO.endtime",
"def C7pn(YKHO) ... | [
"0.83692235",
"0.83130527",
"0.8289376",
"0.8275555",
"0.82724774",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8253181",
"0.8247728",
"0.8247728",
"0.8228286",
"0.82186073",
"0.8161102",
"0.8159846",
"0.8159846",
"0.8159846",... | 0.8339287 | 1 |
Initialize a new meeting. | def FIMM(YKHO, JBZA: str, _c1T: str, SWox: str=None, C7pn: str=None) -> None:
YKHO._description = JBZA
YKHO._date = YD3V(_c1T, str)
YKHO.generate_time(SWox, C7pn)
YKHO._date = qcWV.combine(YKHO._date, YKHO._starttime)
YKHO.attendees = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, lq1n=None, JSoq=None, GT6L=None, GSIc=None, pY6K=None, SWox=None, C7pn=None, WbTE=None, wjRY=None, Wdeb=None, M_r9=None, yK22=None):\n YKHO._meeting_id = None\n YKHO._phone_number = None\n YKHO._host_name = None\n YKHO._host_email = None\n YKHO._dept = None\n YKHO._start_time = Non... | [
"0.7495915",
"0.68212163",
"0.669564",
"0.66693693",
"0.64507437",
"0.6302555",
"0.6180208",
"0.61583644",
"0.61537343",
"0.60579324",
"0.60522544",
"0.60375804",
"0.60286343",
"0.5988274",
"0.59481794",
"0.5936748",
"0.5919654",
"0.59165263",
"0.591133",
"0.59010714",
"0.585... | 0.5935359 | 16 |
Yields the |path|'s ancestor paths. For example, if |path| is "a/b/c/d/e", this function will yield; a/b/c/d/e a/b/c/d a/b/c a/b a | def drIV(pmON):
assert not pmON.startswith('/'), 'Absolute path is not supported: ' + pmON
ENtY = Hy7s.path.normpath(pmON)
assert ENtY != '..' and (not ENtY.startswith('../')), 'Normalized path must not start with ../: ' + pmON
while ENtY:
yield ENtY
ENtY = Hy7s.path.dirname(ENtY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DY7f(pmON):\n while Hy7s.path.splitdrive(pmON)[1] != Hy7s.sep:\n yield pmON\n pmON = Hy7s.path.dirname(pmON)",
"def PPwA(mWFP: str, pmON: Path) -> iu5r[GkAb]:\n while True:\n Aofo = hXfw(mWFP, pmON)\n if Aofo is None:\n return\n yield Aofo\n pmON = A... | [
"0.7205171",
"0.68375313",
"0.66421425",
"0.6546125",
"0.6521449",
"0.6345078",
"0.63372946",
"0.6288107",
"0.62554854",
"0.62117463",
"0.62016416",
"0.6200851",
"0.61956704",
"0.61956704",
"0.6174428",
"0.61667013",
"0.6160331",
"0.61524844",
"0.6118931",
"0.61099666",
"0.61... | 0.81549084 | 0 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, phrK, VyCe, ND3i, as3x):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
r8br = bySB['unique_ids']
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
OIWs = bySB['input_type_ids']
C3ST = bgFP.BertModel(config=AgTV, is_training=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.67876256",
"0.67231953",
"0.6708339",
"0.6708339",
"0.6704804",
"0.6642739",
"0.66179776",
"0.6606682",
"0.64987177",
"0.64855075",
"0.64845395",
"0.64673865",
"0.6446065",
"0.6385782",
"0.63442314",
"0.6340337",
"0.63192046",
"0.62871474",
"0.6259095",
"0.6225923",
"0.622... | 0.55548835 | 65 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
r8br = bySB['unique_ids']
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
OIWs = bySB['input_type_ids']
C3ST = bgFP.BertModel(config=AgTV, is_training=False, input_ids=Pha6, input_mask=qV0r, token_type_ids=OIWs, use_one_hot_embeddings=as3x)
if Tuqy != ZylS.es... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.58087915 | 75 |
Returns `1` if the next generation of board[y][x] is alive else `0` | def rxHc(iBIi, LVAh, WKvO) -> int:
VmPb = iBIi[LVAh][WKvO]
A_IW = 0
usx6, WfCS = BKhN(iBIi)
for YRbF in range(max(0, LVAh - 1), min(usx6, LVAh + 2)):
for r845 in range(max(0, WKvO - 1), min(WfCS, WKvO + 2)):
if not (YRbF == LVAh and r845 == WKvO):
A_IW += iBIi[YRbF][r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _gdb(WKvO: int, LVAh: int, JnVq: list):\n VmPb = JnVq[WKvO][LVAh]\n bdGm = gjt8(WKvO, LVAh, dVi8, Wl2e)\n if VmPb:\n if bdGm < 2:\n return 0\n elif bdGm == 2 or bdGm == 3:\n return 1\n elif bdGm > 3:\n return 0\n elif bdGm == 3:\n return ... | [
"0.7191821",
"0.6999527",
"0.6896981",
"0.68152326",
"0.6777214",
"0.6742144",
"0.6738462",
"0.6733514",
"0.67033726",
"0.6695288",
"0.6692801",
"0.6691501",
"0.6687179",
"0.66503423",
"0.6637562",
"0.6607888",
"0.6605181",
"0.65893453",
"0.654745",
"0.653832",
"0.6509936",
... | 0.7287873 | 0 |
Updates parameters for beta posterior | def x2Fr(jzdc, Fg_i, vdIN, zeRw):
C0zD = jzdc + vdIN
uNwh = Fg_i + zeRw - vdIN
return [C0zD, uNwh] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qp7v(YKHO):\n YKHO.beta = YKHO.beta_scale * 2 * oyIN.log(YKHO.ndim * YKHO.number_design_points * oyIN.square(oyIN.pi) * oyIN.square(YKHO.iteration + 1) / (6 * YKHO.delta))",
"def vHuH(YKHO):\n if YKHO.hypothesis == 'equality':\n YKHO.beta = YKHO._beta\n YKHO.power = 1 - YKHO.beta\n eli... | [
"0.76249033",
"0.7526648",
"0.7426192",
"0.710905",
"0.70609474",
"0.7039028",
"0.7006535",
"0.69255626",
"0.68905395",
"0.68725973",
"0.68287194",
"0.6782717",
"0.67790073",
"0.677744",
"0.67755127",
"0.67569226",
"0.67365444",
"0.67151374",
"0.6671623",
"0.66580856",
"0.665... | 0.0 | -1 |
Finds the beta paremeters for the prior given the number of stars | def HRfj(NArs, YFMp):
if YFMp in NArs.index:
return NArs.loc[YFMp]
else:
return [1, 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqYS(KCHu):\n return epAf.sqrt(1 - 4 * obzC.mt ** 2 / KCHu)",
"def UqYS(YKHO, NCls=0):\n return YKHO.grating.blaze - YKHO.gamma + NCls",
"def eU7Q(gFIc: Variation, f2rf: Tuple[float, float]=(1, 1)) -> AzJI[float, float]:\n jzdc, Fg_i = f2rf\n Z9rn = gFIc.success\n exwG = gFIc.total\n retu... | [
"0.6985401",
"0.6715032",
"0.6711548",
"0.66614366",
"0.661847",
"0.6599659",
"0.6581135",
"0.65569806",
"0.6499031",
"0.64931464",
"0.64846504",
"0.6473728",
"0.64604634",
"0.6455361",
"0.64308536",
"0.6380762",
"0.63318706",
"0.63247585",
"0.6314235",
"0.6296738",
"0.628729... | 0.6338826 | 16 |
Initializes the unbalance (unbal) table and the maximum imbalance (umax), the most imbalanced criterion (cmax) and the overweighted part for the most imbalanced criterion (pmax). unbal[p][c] is the imbalance for part p for criterion c. | def DmRD(YKHO, KADD, TOmy):
YKHO.unbal = [[(yzQ0 - SUln) / SUln for yzQ0, SUln in zip(QlGa, M_V3)] for QlGa, M_V3 in zip(TOmy, KADD)]
YKHO.update_umax()
if YKHO.options['debug']:
wDTE = [[round(P6bq, 7) for P6bq in vC9B] for vC9B in wv49(YKHO.wghts, YKHO.parts)]
pK4L = [[round(P6bq, 7) for P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def otJK(YKHO):\n YKHO.global_bias = YKHO.data.global_mean\n YKHO.user_biases = oyIN.zeros(YKHO.data.num_users, dtype=float)\n YKHO.item_biases = oyIN.zeros(YKHO.data.num_items, dtype=float)",
"def DA7D(YKHO, K0d0):\n OWXg = YKHO.nbr_n\n xre1 = YKHO.nbr_c\n YNYa = YKHO.nbr_p\n HtUG = max((ma... | [
"0.5535214",
"0.5340786",
"0.528685",
"0.5271785",
"0.5268983",
"0.5267423",
"0.5260518",
"0.5241509",
"0.51744056",
"0.5125575",
"0.5125575",
"0.5125575",
"0.5114466",
"0.5107359",
"0.50963104",
"0.50758445",
"0.5071676",
"0.5071676",
"0.50411004",
"0.50295347",
"0.49686033"... | 0.68739986 | 0 |
Returns the move that leads to the minimum imbalance, given the current partitioning. | def rytR(YKHO):
xre1 = YKHO.nbr_c
YNYa = YKHO.nbr_p
VIDK = YKHO.umax
m9s4 = YKHO.cumax
OczP = YKHO.pumax
_gRY = 0
omPk = [[] for bGrB in range(YNYa)]
_TJJ = [[] for bGrB in range(YNYa)]
XEct = [[] for bGrB in range(YNYa)]
def QP5Y(OMd2, XP5J):
hsJZ = False
Zg4J =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO, QTBn):\n azXi = {}\n xASv = []\n TksD = 6\n for Csk6 in range(1, TksD):\n qieF = QTBn.actions()\n DQoW = QTBn.actions()[0]\n uc7Q = -1.0\n Cwt5 = -100\n UqYS = 100\n rb7a = 0\n for XeOP in qieF:\n AJEJ = QTBn.result(XeOP)\n ... | [
"0.6566092",
"0.6433994",
"0.6303307",
"0.6301771",
"0.62945014",
"0.62800443",
"0.6241484",
"0.6227522",
"0.6227216",
"0.62112516",
"0.6191611",
"0.6186838",
"0.6131771",
"0.61305785",
"0.6127896",
"0.61117893",
"0.6106628",
"0.6103507",
"0.60908735",
"0.6072816",
"0.6067841... | 0.0 | -1 |
Returns the list of imbalance if node [index] is moved, and if cumax changes after this move. | def vLD_(YKHO, d6pt, OczP, AI87):
xre1 = YKHO.nbr_c
ZtxP = [[None] * xre1 for bGrB in range(2)]
VIDK = 0
m9s4 = 0
WCjh = 0
yzQ0 = YKHO.wnorm[d6pt]
for Z9rn in range(xre1):
L3de = YKHO.unbal[OczP][Z9rn]
QI1m = YKHO.unbal[AI87][Z9rn]
Uf4h = yzQ0[Z9rn]
RykZ = L3d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rytR(YKHO):\n xre1 = YKHO.nbr_c\n VIDK = YKHO.umax\n m9s4 = YKHO.cumax\n OczP = YKHO.pumax\n AI87 = 1 - OczP\n _gRY = 0\n omPk = []\n _TJJ = []\n XEct = []\n\n def QP5Y(OMd2):\n hsJZ = False\n Zg4J = False\n vC9B = len(YKHO.gains[AI87][m9s4])\n FfMS = O... | [
"0.58799887",
"0.57920724",
"0.5563928",
"0.5115493",
"0.5042094",
"0.50088763",
"0.49604884",
"0.48790482",
"0.4843955",
"0.48380032",
"0.48275137",
"0.48224387",
"0.4817323",
"0.48016834",
"0.47874397",
"0.4777243",
"0.47698125",
"0.4766077",
"0.47443658",
"0.47006416",
"0.... | 0.5383582 | 3 |
Returns the move that leads to the minimum imbalance, given the current partitioning. | def rytR(YKHO):
xre1 = YKHO.nbr_c
VIDK = YKHO.umax
m9s4 = YKHO.cumax
OczP = YKHO.pumax
AI87 = 1 - OczP
_gRY = 0
omPk = []
_TJJ = []
XEct = []
def QP5Y(OMd2):
hsJZ = False
Zg4J = False
vC9B = len(YKHO.gains[AI87][m9s4])
FfMS = OMd2['inf']
q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO, QTBn):\n azXi = {}\n xASv = []\n TksD = 6\n for Csk6 in range(1, TksD):\n qieF = QTBn.actions()\n DQoW = QTBn.actions()[0]\n uc7Q = -1.0\n Cwt5 = -100\n UqYS = 100\n rb7a = 0\n for XeOP in qieF:\n AJEJ = QTBn.result(XeOP)\n ... | [
"0.6566092",
"0.6433994",
"0.6303307",
"0.6301771",
"0.62945014",
"0.62800443",
"0.6241484",
"0.6227522",
"0.6227216",
"0.62112516",
"0.6191611",
"0.6186838",
"0.6131771",
"0.61305785",
"0.6127896",
"0.61117893",
"0.6106628",
"0.6103507",
"0.60908735",
"0.6072816",
"0.6067841... | 0.0 | -1 |
Return a given relation, with an optional attribute. If attr is not set, nothing is returned. | def wvau(YKHO, koMu, hkS8=None):
if koMu in BBLt:
koMu = BBLt[koMu]
if koMu not in YKHO.link_rels:
return
wvau = YKHO.link_rels[koMu]
if hkS8 is not None:
return [WKvO[hkS8] for WKvO in wvau]
return wvau | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNbO(YKHO, koMu):\n return YKHO.__relations[koMu]",
"def fwbI(YKHO, hkS8, WmM4=None):\n try:\n return YKHO.get_attr(hkS8)\n except KeyError:\n return WmM4",
"def jNbO(YKHO, koMu):\n from .relations import Relation\n with Relation.no_constraints(True):\n xDcj = getattr(YK... | [
"0.6854538",
"0.6778602",
"0.653406",
"0.626518",
"0.6126143",
"0.6002249",
"0.5963199",
"0.592688",
"0.58887225",
"0.5843744",
"0.5839605",
"0.58056927",
"0.58011997",
"0.57996297",
"0.57994366",
"0.57758284",
"0.5741912",
"0.57377243",
"0.57342464",
"0.56905377",
"0.5685352... | 0.6899778 | 0 |
Get the explicit underlying type of a scoped enumerator. | def vhEI(N1p7):
if N1p7.kind == EO9X.ENUM_DECL and N1p7.is_scoped_enum():
if list(N1p7.get_tokens())[3].spelling == ':':
return f': {N1p7.enum_type.spelling}'
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO, YEnM):\n n0X3 = type(YEnM)\n p5ux = None\n try:\n p5ux = YKHO.type_map[n0X3]\n except KeyError:\n for sB1G, VsOr in YKHO.abstract_type_identifiers.items():\n if VsOr(YEnM):\n p5ux = sB1G\n break\n if n0X3 not in YKHO.cache_blo... | [
"0.6039942",
"0.602963",
"0.5935362",
"0.5822996",
"0.574056",
"0.56987727",
"0.5679392",
"0.5651363",
"0.5640682",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.55945814",
"0.559... | 0.6567495 | 0 |
Builds the vocabulary for the claim sources and the article sources | def MZ88(YKHO):
YKHO.claim_source_vocab = {}
YKHO.article_source_vocab = {}
for bGrB, RE3i in YKHO.news_df.iterrows():
dMFi = RE3i['Claim_Source']
DbGb = RE3i['Article_Source']
if dMFi not in YKHO.claim_source_vocab:
YKHO.claim_source_vocab[dMFi] = len(YKHO.claim_source_v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgiS(YKHO):\n for Csk6 in YKHO.documents:\n for yzQ0 in Csk6:\n YKHO.vocabulary.append(yzQ0)\n YKHO.vocabulary = list(set(YKHO.vocabulary))\n YKHO.m = len(YKHO.vocabulary)\n YKHO.vocabulary_size = YKHO.m",
"def OgiS(YKHO):\n print('Building vocabulary...')\n for zFiD in YK... | [
"0.7085397",
"0.68075997",
"0.6789043",
"0.6787122",
"0.6711866",
"0.67063785",
"0.6613516",
"0.64378864",
"0.6340034",
"0.63392913",
"0.631301",
"0.62942886",
"0.62820065",
"0.62718284",
"0.6237852",
"0.6233955",
"0.62256396",
"0.6174347",
"0.61683774",
"0.6128809",
"0.61286... | 0.79119104 | 0 |
Returns the number of times that ypred is equal to ytrue | def zAcA(WDHD, qI6z):
return (ht2j.argmax(WDHD, dim=1) == qI6z).float().sum().item() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K9NB(aMgO, Y8eF):\n assert len(aMgO) == len(Y8eF)\n return oyIN.sum(aMgO == Y8eF) / len(Y8eF)",
"def Gv3L(Y8eF, aMgO):\n UHFx = 0\n tiWT = len(Y8eF)\n for YRbF in range(0, tiWT):\n if aMgO[YRbF] != Y8eF[YRbF]:\n UHFx += 1\n return UHFx / tiWT",
"def AOzf(Y8eF, aMgO):\n ... | [
"0.7581978",
"0.7563238",
"0.75554615",
"0.75059795",
"0.7451293",
"0.74404806",
"0.7429947",
"0.73876226",
"0.7379711",
"0.73585343",
"0.73569405",
"0.7347552",
"0.7331198",
"0.7319551",
"0.7284693",
"0.7276612",
"0.7276612",
"0.7276612",
"0.7276612",
"0.7276612",
"0.7276612... | 0.8427972 | 0 |
When the bot is logged in and ready to take commands | async def on_ready():
print('logged in as: ' + JyK9.user.name)
print('bot id: ' + JyK9.user.id)
await C9KG() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def on_ready():\n print(f'{JyK9.user.name} is ready to receive commands')",
"async def on_ready():\n u_ln = ZOrr.Activity(name='your commands', type=ZOrr.ActivityType.listening)\n await x0hE.change_presence(activity=u_ln)\n print('We have logged in as {0.user}'.format(x0hE))",
"async def on_r... | [
"0.8452093",
"0.8404707",
"0.8126384",
"0.801441",
"0.788899",
"0.78711766",
"0.7824391",
"0.7821814",
"0.781393",
"0.7786328",
"0.7752546",
"0.77509534",
"0.77381927",
"0.76676714",
"0.765636",
"0.7631135",
"0.75857395",
"0.7580562",
"0.7573078",
"0.75658566",
"0.75494635",
... | 0.73940074 | 36 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6919228",
"0.6762499",
"0.65828645",
"0.6490292",
"0.645727",
"0.637779",
"0.62864256",
"0.62710816",
"0.62686974",
"0.62461996",
"0.6219076",
"0.6215725",
"0.61949486",
"0.6179929",
"0.6152384",
"0.61419386",
"0.6133499",
"0.613178",
"0.60512537",
"0.6010108",
"0.59821844... | 0.5661301 | 51 |
Returns True if task has been completed. | def cFDk(YKHO):
VKHk = YKHO.sim.data.site_xpos[YKHO.eef_site_id]
for YRbF in range(len(YKHO.ob_inits)):
oOUF = str(YKHO.item_names[YRbF])
NTTb = YKHO.sim.data.body_xpos[YKHO.obj_body_id[oOUF]]
pImw = oyIN.linalg.norm(VKHk - NTTb)
dJBF = 1 - oyIN.tanh(10.0 * pImw)
YKHO.obj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGJC(YKHO):\n return YKHO.task is not None and YKHO.task.done()",
"def ZZQq(YKHO):\n for D5gV in YKHO.tasks:\n if not D5gV.is_complete():\n return False\n return True",
"def Fd4y(YKHO):\n return YKHO.task_complete",
"def Fd4y(YKHO):\n return YKHO.task_complete",
"def Fd... | [
"0.9082066",
"0.8289884",
"0.82127357",
"0.82127357",
"0.82127357",
"0.82127357",
"0.82127357",
"0.82127357",
"0.82127357",
"0.82127357",
"0.8090454",
"0.80507135",
"0.8030229",
"0.80079406",
"0.79622495",
"0.79344404",
"0.7891651",
"0.78899574",
"0.78784895",
"0.78731674",
"... | 0.0 | -1 |
Get Lk between the selected states in x,y,z dimensions. | def sTcl(i5dR, nUh1):
qSqI = oyIN.zeros((len(i5dR), len(i5dR), 3), dtype=complex)
for G1Hx in range(0, 3):
for YRbF, xngR in enumerate(i5dR):
for r845, zFBd in enumerate(i5dR):
qSqI[YRbF][r845][G1Hx] = nUh1[xngR - 1][zFBd - 1][G1Hx]
return qSqI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUPb(YKHO):\n if YKHO._Kl is None:\n YKHO._Kl = YKHO._compute_Kl()\n return YKHO._Kl",
"def lXGC(qSqI):\n LkQy = oyIN.zeros((len(qSqI) * 2, len(i5dR) * 2, 3), dtype=complex)\n for G1Hx in range(0, 3):\n for YRbF in range(0, len(qSqI) * 2, 2):\n for r845 in range(0, len(qS... | [
"0.6464144",
"0.6406571",
"0.63909084",
"0.6225635",
"0.61178946",
"0.60530806",
"0.6000661",
"0.592069",
"0.592069",
"0.59088093",
"0.5861311",
"0.5779382",
"0.5777749",
"0.57542956",
"0.57236266",
"0.5711352",
"0.5709825",
"0.57095265",
"0.5704855",
"0.56851643",
"0.5670129... | 0.7183153 | 0 |
Get Lk between the selected states in x,y,z dimensions for doublets, i.e. in each row (column) there are state A,1/2 and A,+1/2. | def lXGC(qSqI):
LkQy = oyIN.zeros((len(qSqI) * 2, len(i5dR) * 2, 3), dtype=complex)
for G1Hx in range(0, 3):
for YRbF in range(0, len(qSqI) * 2, 2):
for r845 in range(0, len(qSqI) * 2, 2):
LkQy[YRbF, r845][G1Hx] = qSqI[YRbF // 2][r845 // 2][G1Hx]
LkQy[YRbF + 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTcl(i5dR, nUh1):\n qSqI = oyIN.zeros((len(i5dR), len(i5dR), 3), dtype=complex)\n for G1Hx in range(0, 3):\n for YRbF, xngR in enumerate(i5dR):\n for r845, zFBd in enumerate(i5dR):\n qSqI[YRbF][r845][G1Hx] = nUh1[xngR - 1][zFBd - 1][G1Hx]\n return qSqI",
"def ark7():... | [
"0.64357555",
"0.61116385",
"0.58601135",
"0.57889813",
"0.5762857",
"0.5752138",
"0.5715112",
"0.57130903",
"0.56991756",
"0.5687784",
"0.5686721",
"0.56271064",
"0.56010354",
"0.55794686",
"0.557547",
"0.556653",
"0.55461603",
"0.5545122",
"0.5518901",
"0.5516815",
"0.54830... | 0.7051566 | 0 |
Returns T/F whether lists have same items >>> same_items([1,3,4,2], [1,2,3,4]) True >>> same_items([1,3,4,2,2], [1,2,3,4]) False | def uztY(zznG, Wd5v):
return sorted(zznG) == sorted(Wd5v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqkn(DumB):\n return all((WKvO == DumB[0] for WKvO in DumB))",
"def YzKd(tJQ4):\n return len(set(tJQ4)) == 1",
"def W5zf(vC9B):\n for WKvO, LVAh in Hs6x.combinations(vC9B, 2):\n if WKvO != LVAh:\n return False\n return True",
"def qqkn(vC9B: list) -> bool:\n if len(vC9B) ... | [
"0.77742726",
"0.7322054",
"0.72236526",
"0.7014283",
"0.70010173",
"0.6991381",
"0.6880213",
"0.68050826",
"0.6670994",
"0.66496855",
"0.6639653",
"0.66388786",
"0.66225535",
"0.6582204",
"0.6558275",
"0.654159",
"0.6499641",
"0.64848465",
"0.6436116",
"0.6419541",
"0.637107... | 0.72197086 | 3 |
Resource that deletes a category by id | def PTpj(YKHO, c5ow, uJjO=None, VMw8=0, **B2fa):
Ghho = qZuN.get_by_id(VMw8)
if not Ghho:
eTsH(404)
Ghho.delete()
Aofo = {'status': 'Deleted', 'message': 'Category deleted successfully', 'id': VMw8}
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n wvEv = s9u5.RequestParser()\n wvEv.add_argument('category_id', type=int, location='args', required=True)\n qIxc = wvEv.parse_args()\n return Z9rn.delete_category(qIxc['category_id'])",
"def lPfJ(id):\n Ghho = FYrf.Category.query.get(id)\n Ghho.delete()\n return vKnz(nKyW('v... | [
"0.83870876",
"0.82860553",
"0.82624733",
"0.8182763",
"0.8017117",
"0.79858416",
"0.7947887",
"0.78010064",
"0.7778847",
"0.7759224",
"0.7728127",
"0.7697199",
"0.7645748",
"0.7631173",
"0.7610481",
"0.75904375",
"0.75767094",
"0.75767094",
"0.7558958",
"0.7497386",
"0.74928... | 0.6938235 | 38 |
Resource that gets a list of categories | def NMoC(YKHO, c5ow, uJjO=None, NtEF=None, leAC=None):
CBIr = None
if uJjO:
CBIr = mv1M.get_by_id(uJjO)
else:
CBIr = mv1M.get_by_username(NtEF)
if not CBIr:
eTsH(404, {'message': 'User does not exist'})
LeZt = qZuN.query.filter_by(user_id=CBIr.id)
qIxc = KLHe.parse_args()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)",
"def NMoC(YKHO):\n wvEv = s9u5.RequestParser()\n wvEv.add_argument('category', type=str, location='args', required=True)\n qIxc = wvEv.parse_args()\n rhXe = eorc.query.filter_by(category=qIxc['category'])... | [
"0.808014",
"0.8031442",
"0.8006188",
"0.7982703",
"0.7963909",
"0.7937629",
"0.79339516",
"0.7911936",
"0.788378",
"0.78836757",
"0.78616345",
"0.783744",
"0.7805883",
"0.77979994",
"0.7782943",
"0.77689695",
"0.7758963",
"0.77449566",
"0.77317405",
"0.7727422",
"0.77216804"... | 0.0 | -1 |
Compare performance of different models in a dataset Print metrics for each model, and a boxplot with each model performance | def bSev(scbx, Lcqa, VJv0, jbYn=10):
FYrf = ArHU(scbx)
dixj = []
ZWCE = []
for mWFP, C3ST in FYrf:
B06N = uMzy(C3ST, Lcqa, VJv0, folds=jbYn, message=False)
dixj.append(B06N)
ZWCE.append(mWFP)
tO9_ = 'Model Selection - %s: %f (%f)' % (mWFP, B06N.mean(), B06N.std())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UmEd(dixj, ZWCE):\n LZpg, aNZO = QrM1.subplots(figsize=(10, 10))\n aNZO.boxplot(dixj)\n aNZO.set_title('Comparison of algorithms', size=14)\n aNZO.set_xticklabels(ZWCE)\n aNZO.set_xlabel('Model', size=12)\n aNZO.set_ylabel('RMSE', size=12)\n QrM1.tight_layout()\n return LZpg",
"def ME... | [
"0.70242673",
"0.69866025",
"0.66814715",
"0.66339004",
"0.65641457",
"0.6555594",
"0.65258634",
"0.6495756",
"0.6456396",
"0.64553887",
"0.6424755",
"0.63998485",
"0.6395161",
"0.63809884",
"0.6372159",
"0.63372874",
"0.6295699",
"0.6241532",
"0.62370044",
"0.6233044",
"0.61... | 0.61427647 | 24 |
Create and return a RedshiftHook. | def wLZI(YKHO) -> uTk3:
return YKHO.hook | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO):\n assert YKHO.helpscout\n return YKHO.helpscout.WebHook.create(YKHO)",
"def wLZI(Emd4, rQYt: str) -> Ob7p:\n UzPC = Emd4.get_connection(rQYt)\n return UzPC.get_hook()",
"def OQzj(YKHO) -> _oss:\n return _oss(aws_conn_id=YKHO.aws_conn_id)",
"def OQzj(YKHO) -> _oss:\n return _... | [
"0.656464",
"0.61866164",
"0.6060429",
"0.6060429",
"0.6060429",
"0.5831301",
"0.57155937",
"0.5652729",
"0.56497455",
"0.55342865",
"0.55342865",
"0.5486041",
"0.54797775",
"0.5445774",
"0.53992695",
"0.53809726",
"0.5380365",
"0.5360271",
"0.5359265",
"0.52225506",
"0.52101... | 0.7289089 | 0 |
The representation of a user should include the information required to find the user instance again. | def H4zp():
CBIr = FYrf.User(name='John Smith')
aEqx = f'<account.User: id={repr(CBIr.pk)} name={repr(CBIr.name)}>'
assert repr(CBIr) == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<User: {}>'.format(YKHO.id)",
"def wHJl(YKHO):\n return '<User: {}>'.format(YKHO.id)",
"def wHJl(YKHO):\n return '<User Info: user_id=%s user_name=%s email=%s>' % (YKHO.user_id, YKHO.user_name, YKHO.email)",
"def wHJl(YKHO):\n return f'<User {YKHO.user_id} {YKHO.username... | [
"0.71929336",
"0.71929336",
"0.71162504",
"0.7107365",
"0.710262",
"0.7097295",
"0.7091169",
"0.7002367",
"0.6986106",
"0.6986106",
"0.6986106",
"0.69620144",
"0.6949478",
"0.6948434",
"0.6946348",
"0.6919637",
"0.6911549",
"0.6908326",
"0.6901296",
"0.68995523",
"0.6898562",... | 0.0 | -1 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN):\n oaOd = YKHO.ix_pnl_map[YRbF]\n V46T = min(V46T, oaOd)\n yew8... | [
"0.82544255",
"0.7908411",
"0.7896112",
"0.7790742",
"0.7759765",
"0.77335346",
"0.7551346",
"0.75230277",
"0.72202796",
"0.7071393",
"0.6983378",
"0.69200283",
"0.6777405",
"0.6743671",
"0.66006327",
"0.6587539",
"0.6571336",
"0.65619135",
"0.6457088",
"0.6435418",
"0.637404... | 0.833448 | 0 |
Update single bar data. | def woC2(YKHO, S6Fl: BarData) -> wzx0:
p6S0 = YKHO._manager.get_index(S6Fl.datetime)
VcEm = YKHO._draw_bar_picture(p6S0, S6Fl)
YKHO._bar_picutures[p6S0] = VcEm
YKHO.update() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n raise NotImplementedError('DataHandler.update_bars()')",
"def woC2(YKHO, S6Fl):\n YKHO.count += 1\n if not YKHO.inited and YKHO.count >= YKHO.size:\n YKHO.inited = True\n YKHO.open_array[:-1] = YKHO.open_array[1:]\n YKHO.high_array[:-1] = YKHO.high_array[1:]\n YKHO.low_... | [
"0.7976972",
"0.7819646",
"0.75701416",
"0.7443913",
"0.7443913",
"0.737254",
"0.7194397",
"0.71892965",
"0.71892965",
"0.7181649",
"0.70441306",
"0.70441306",
"0.6999787",
"0.69203967",
"0.6687968",
"0.6687968",
"0.6661164",
"0.66372174",
"0.66342324",
"0.66332865",
"0.66163... | 0.755878 | 3 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
_7x7, yA2c = YKHO._manager.get_price_range(aaue, AiXN)
return (_7x7, yA2c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.83343655",
"0.8255284",
"0.7908434",
"0.7896452",
"0.77913773",
"0.7760524",
"0.75513214",
"0.752293",
"0.7219185",
"0.70705575",
"0.6983521",
"0.69203615",
"0.67765427",
"0.6742285",
"0.66003335",
"0.6586197",
"0.6571247",
"0.65633476",
"0.64574707",
"0.6435366",
"0.63733... | 0.77336144 | 6 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
uTJM, Rxpp = YKHO._manager.get_volume_range(aaue, AiXN)
return (uTJM, Rxpp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.83351636",
"0.82549983",
"0.79091656",
"0.7896549",
"0.77912885",
"0.7759895",
"0.77343196",
"0.75238967",
"0.7221375",
"0.7073073",
"0.6986415",
"0.69227225",
"0.6779365",
"0.6744607",
"0.6600416",
"0.659017",
"0.65727305",
"0.6561661",
"0.64565665",
"0.64390725",
"0.6376... | 0.75523084 | 7 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
uTJM, Rxpp = YKHO._manager.get_price_range(aaue, AiXN)
return (uTJM, Rxpp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.83343655",
"0.8255284",
"0.7908434",
"0.7896452",
"0.77913773",
"0.7760524",
"0.77336144",
"0.75513214",
"0.7219185",
"0.70705575",
"0.6983521",
"0.69203615",
"0.67765427",
"0.6742285",
"0.66003335",
"0.6586197",
"0.6571247",
"0.65633476",
"0.64574707",
"0.6435366",
"0.637... | 0.752293 | 8 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
aaue = 0 if aaue is None else aaue
AiXN = YKHO.last_ix if AiXN is None else AiXN
V46T = 0
yew8 = 0
for YRbF in range(aaue, AiXN):
V46T = min(V46T, YKHO.macds['diff'].get(YRbF, V46T), YKHO.macds['dea'].get(YRbF, V46T), YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.8332858",
"0.82540435",
"0.79069465",
"0.78950286",
"0.7759207",
"0.77320343",
"0.75499773",
"0.75216824",
"0.7219008",
"0.70703554",
"0.6983395",
"0.6919165",
"0.6775626",
"0.67421436",
"0.66005427",
"0.65843385",
"0.65709",
"0.65653884",
"0.6458864",
"0.64342225",
"0.637... | 0.77898914 | 4 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
aaue = 0 if aaue is None else aaue
AiXN = YKHO.last_ix if AiXN is None else AiXN
V46T = 0
yew8 = 0
for YRbF in range(aaue, AiXN):
V46T = min(V46T, YKHO.incs['down'].get(YRbF, V46T), YKHO.incs['inc'].get(YRbF, V46T))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.83351636",
"0.82549983",
"0.79091656",
"0.77912885",
"0.7759895",
"0.77343196",
"0.75523084",
"0.75238967",
"0.7221375",
"0.7073073",
"0.6986415",
"0.69227225",
"0.6779365",
"0.6744607",
"0.6600416",
"0.659017",
"0.65727305",
"0.6561661",
"0.64565665",
"0.64390725",
"0.637... | 0.7896549 | 3 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
aaue = 0 if aaue is None else aaue
AiXN = YKHO.last_ix if AiXN is None else AiXN
V46T = oyIN.inf
yew8 = -oyIN.inf
XP5J = YKHO.RSI_PARAMS[0]
for YRbF in range(aaue, AiXN):
V46T = min(V46T, YKHO.rsis[XP5J].get(YRbF, V46T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.833448",
"0.82544255",
"0.7908411",
"0.7896112",
"0.7790742",
"0.77335346",
"0.7551346",
"0.75230277",
"0.72202796",
"0.7071393",
"0.6983378",
"0.69200283",
"0.6777405",
"0.6743671",
"0.66006327",
"0.6587539",
"0.6571336",
"0.65619135",
"0.6457088",
"0.6435418",
"0.6374041... | 0.7759765 | 5 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
aaue = 0 if aaue is None else aaue
AiXN = YKHO.last_ix if AiXN is None else AiXN
V46T = 9999
yew8 = -9999
for YRbF in range(aaue, AiXN):
oaOd = YKHO.ix_pnl_map[YRbF]
V46T = min(V46T, oaOd)
yew8 = max(yew8, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n eckU, acdK = YKHO._manager.get_price_range(aaue, AiXN)\n return (eckU, acdK)",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\... | [
"0.83343655",
"0.7908434",
"0.7896452",
"0.77913773",
"0.7760524",
"0.77336144",
"0.75513214",
"0.752293",
"0.7219185",
"0.70705575",
"0.6983521",
"0.69203615",
"0.67765427",
"0.6742285",
"0.66003335",
"0.6586197",
"0.6571247",
"0.65633476",
"0.64574707",
"0.6435366",
"0.6373... | 0.8255284 | 1 |
Get range of yaxis with given xaxis range. If min_ix and max_ix not specified, then return range with whole data set. | def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:
eckU, acdK = YKHO._manager.get_price_range(aaue, AiXN)
return (eckU, acdK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n pass",
"def Rws3(YKHO, aaue: int=None, AiXN: int=None) -> AzJI[float, float]:\n aaue = 0 if aaue is None else aaue\n AiXN = YKHO.last_ix if AiXN is None else AiXN\n V46T = 9999\n yew8 = -9999\n for YRbF in range(aaue, AiXN)... | [
"0.8332858",
"0.82540435",
"0.78950286",
"0.77898914",
"0.7759207",
"0.77320343",
"0.75499773",
"0.75216824",
"0.7219008",
"0.70703554",
"0.6983395",
"0.6919165",
"0.6775626",
"0.67421436",
"0.66005427",
"0.65843385",
"0.65709",
"0.65653884",
"0.6458864",
"0.64342225",
"0.637... | 0.79069465 | 2 |
Update single bar data. | def woC2(YKHO, S6Fl: BarData) -> None:
YKHO._manager.update_bar(S6Fl)
for ZfUD in YKHO._items.values():
ZfUD.update_bar(S6Fl)
YKHO._update_plot_limits()
if YKHO._right_ix >= YKHO._manager.get_count() - YKHO._bar_count / 2:
YKHO.move_to_right() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n raise NotImplementedError('DataHandler.update_bars()')",
"def woC2(YKHO, S6Fl):\n YKHO.count += 1\n if not YKHO.inited and YKHO.count >= YKHO.size:\n YKHO.inited = True\n YKHO.open_array[:-1] = YKHO.open_array[1:]\n YKHO.high_array[:-1] = YKHO.high_array[1:]\n YKHO.low_... | [
"0.7976972",
"0.7819646",
"0.75701416",
"0.755878",
"0.7443913",
"0.7443913",
"0.737254",
"0.7194397",
"0.71892965",
"0.71892965",
"0.70441306",
"0.70441306",
"0.6999787",
"0.69203967",
"0.6687968",
"0.6687968",
"0.6661164",
"0.66372174",
"0.66342324",
"0.66332865",
"0.661634... | 0.7181649 | 10 |
Context manager for providing a temp directory The temp dir is deleted at the end of the context manager ('with' keyword) | def ri6J():
try:
AGPF = gbPf.mkdtemp()
yield AGPF
finally:
RDuA.rmtree(AGPF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bvw3():\n AGPF = gbPf.mkdtemp()\n try:\n yield AGPF\n finally:\n RDuA.rmtree(AGPF)",
"def nzu_():\n TBXe = gbPf.mkdtemp()\n try:\n yield TBXe\n finally:\n RDuA.rmtree(TBXe)",
"def Th4I() -> N3_l[oAb3.Path]:\n z_es = oAb3.Path(gbPf.mkdtemp())\n bo34.debug(... | [
"0.8514235",
"0.83837",
"0.8331486",
"0.8312039",
"0.8302382",
"0.82955456",
"0.8259033",
"0.8143784",
"0.81388175",
"0.81192756",
"0.8097525",
"0.80804336",
"0.8062668",
"0.8050021",
"0.80206597",
"0.79851246",
"0.7959258",
"0.7897895",
"0.78845775",
"0.78152007",
"0.7792837... | 0.81968445 | 7 |
Return the label names that are used in this vectorizer. | def QXyl(YKHO):
return YKHO._label_names | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXyl(YKHO):\n raise NotImplementedError",
"def Crrw(YKHO):\n return YKHO.__labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n ... | [
"0.80956393",
"0.78152484",
"0.77063245",
"0.768977",
"0.7686466",
"0.7684429",
"0.7684429",
"0.7684429",
"0.7684429",
"0.7684429",
"0.7682849",
"0.7666182",
"0.76615494",
"0.76527816",
"0.7638194",
"0.7599667",
"0.7581375",
"0.7561453",
"0.7473037",
"0.7452791",
"0.7452791",... | 0.8501658 | 0 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"0.7417378",
"... | 0.72099227 | 64 |
Finds the overlapping area fraction between two blobs. Returns a float representing fraction of overlapped area. | def Ngy1(VT7E, pcSG):
CHTE = PZyS(2)
J1b4 = VT7E[2] * CHTE
CYjz = pcSG[2] * CHTE
Csk6 = HEbx(VT7E[0] - pcSG[0], VT7E[1] - pcSG[1])
if Csk6 > J1b4 + CYjz:
return 0
if Csk6 <= abs(J1b4 - CYjz):
return 1
BANR = (Csk6 ** 2 + J1b4 ** 2 - CYjz ** 2) / (2 * Csk6 * J1b4)
BANR = o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imB3(knvf, IkxF):\n zRv5 = zUj0(knvf, IkxF)\n jwoo = r0Ao(knvf) + r0Ao(IkxF) - zRv5\n assert jwoo >= 0\n if jwoo > 0:\n return float(zRv5) / float(jwoo)\n return 1.0",
"def RWKu(YKHO, jzdc, Fg_i):\n jzdc = [float(exwG) for exwG in jzdc]\n jzdc.sort()\n Fg_i = [float(exwG) for e... | [
"0.77111083",
"0.737891",
"0.70165414",
"0.68508863",
"0.6773294",
"0.6687534",
"0.66512376",
"0.6569378",
"0.65568215",
"0.6508038",
"0.64983475",
"0.6473493",
"0.6472792",
"0.6470317",
"0.6466576",
"0.642002",
"0.6391148",
"0.6390653",
"0.6390653",
"0.63670367",
"0.62732136... | 0.7081146 | 2 |
Initialize a new client for the Ironic v1 API. | def FIMM(YKHO, r4AP=None, *qIxc, **B2fa):
if not qIxc and (not B2fa.get('session')):
raise TypeError('A session is required for creating a client, use ironicclient.client.get_client to create it automatically')
fRBl = B2fa.pop('allow_api_version_downgrade', False)
if B2fa.get('os_ironic_api_version'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.client = t4S7.Client(vPBo.quantum_connection_host, vPBo.quantum_connection_port, format='json', logger=na1r)",
"def FIMM(YKHO, x0hE):\n YKHO.client = x0hE\n YKHO.initialize()",
"def DEoM(YKHO):\n if _Fei.CONF.ironic.auth_strategy == 'noauth':\n qIxc = {'token': 'noauth... | [
"0.71335226",
"0.70077515",
"0.69960624",
"0.69112706",
"0.68839926",
"0.68437815",
"0.67787963",
"0.6777697",
"0.676239",
"0.6759551",
"0.6735661",
"0.6670972",
"0.66518325",
"0.6650397",
"0.6650397",
"0.6650397",
"0.6643265",
"0.6643265",
"0.6643265",
"0.6643265",
"0.664326... | 0.0 | -1 |
Return the current API version in use. This returns the version of the REST API that the API client is presently set to request. This value may change as a result of API version negotiation. | def ZQ7n(YKHO):
return YKHO.http_client.os_ironic_api_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q2ji(YKHO) -> int:\n return YKHO.client.service.getApiVersion()",
"def kaPv(YKHO):\n with YKHO._shared_resources.api_client as d4y1:\n LbbW: nDsf = Cw2r.VersionApi(d4y1)\n return LbbW.get_rest_api_version()",
"def clva(YKHO):\n return YKHO._client._config.version",
"def clva(YKHO):... | [
"0.8613628",
"0.84802145",
"0.84553957",
"0.83159614",
"0.8308932",
"0.820662",
"0.820662",
"0.820662",
"0.820662",
"0.820662",
"0.820662",
"0.8107565",
"0.81065077",
"0.81065077",
"0.8074691",
"0.8074691",
"0.8074691",
"0.8045844",
"0.7963263",
"0.7959548",
"0.795326",
"0.... | 0.8428933 | 3 |
Returns tokenized answer spans that better match the annotated answer. | def tWG5(oM5K, lfHv, YAcn, b0j5, AWHy):
Ssmk = ' '.join(b0j5.tokenize(AWHy))
for rejw in range(lfHv, YAcn + 1):
for g5RM in range(YAcn, rejw - 1, -1):
DfjE = ' '.join(oM5K[rejw:g5RM + 1])
if DfjE == Ssmk:
return (rejw, g5RM)
return (lfHv, YAcn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EbZZ(l5Ny, wJDW):\n jB5X = -1.0\n FOCM = [0, len(l5Ny) - 1]\n for yKcO, gw6l in enumerate(l5Ny):\n if gw6l not in wJDW:\n continue\n for Os4s in range(len(l5Ny) - 1, yKcO - 1, -1):\n yiGU = VKB1(l5Ny[yKcO:Os4s + 1], wJDW)\n if yiGU > jB5X:\n ... | [
"0.7487715",
"0.7099843",
"0.69911575",
"0.6918217",
"0.69020367",
"0.6887375",
"0.68854153",
"0.68854153",
"0.6880317",
"0.68322253",
"0.6690234",
"0.65346205",
"0.6479434",
"0.6409766",
"0.6320964",
"0.6268931",
"0.6191757",
"0.6177912",
"0.6163893",
"0.60901326",
"0.608793... | 0.6939355 | 3 |
Compute softmax probability over raw logits. | def M49J(cCrA):
if not cCrA:
return []
jB5X = None
for p1kx in cCrA:
if jB5X is None or p1kx > jB5X:
jB5X = p1kx
KPVz = []
mq4h = 0.0
for p1kx in cCrA:
WKvO = epAf.exp(p1kx - jB5X)
KPVz.append(WKvO)
mq4h += WKvO
BFeB = []
for p1kx in KP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)",
"def N93T(KeL5):\n if not isinstance(KeL5, oyIN.ndarray):\n KeL5 = oyIN.array(KeL5)\n KeL5 = KeL5 - oyIN.max(KeL5)\n lM0O = oyIN.exp(KeL5)\n BFeB = lM0O / oyIN.sum(lM0O)\n return BFeB",
"... | [
"0.79753804",
"0.7940573",
"0.7923388",
"0.7799447",
"0.7767334",
"0.7742308",
"0.77300364",
"0.7666204",
"0.76309055",
"0.7623184",
"0.760959",
"0.75968385",
"0.75947344",
"0.7584158",
"0.7582874",
"0.75804585",
"0.7578433",
"0.7576052",
"0.757426",
"0.75718033",
"0.7570825"... | 0.0 | -1 |
Creates a client for the Google Health service. | def FIMM(YKHO, D3lj=None, jTXt=None, JZXy=None, UXtP=False, N5z6='www.google.com', E06o=None, **B2fa):
zVa7 = UXtP and 'weaver' or 'health'
HBzi.service.GDataService.__init__(YKHO, email=D3lj, password=jTXt, service=zVa7, source=JZXy, server=N5z6, additional_headers=E06o, **B2fa)
YKHO.ssl = True
YKHO.us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxbw():\n x0hE = PnzU(gCuF.GOOGLE_WEBMASTERTOOLS_LOGIN, gCuF.GOOGLE_WEBMASTERTOOLS_PASSWORD)\n x0hE.email = gCuF.GOOGLE_WEBMASTERTOOLS_LOGIN\n x0hE.password = gCuF.GOOGLE_WEBMASTERTOOLS_PASSWORD\n x0hE.ProgrammaticLogin()\n return x0hE",
"def dt6H(zVa7, DpZH, GoZD=None):\n Xqgu = OBHh.Http(... | [
"0.6366381",
"0.6357813",
"0.63112944",
"0.6302743",
"0.6278937",
"0.6044152",
"0.60399723",
"0.6024462",
"0.6021685",
"0.60205495",
"0.6013065",
"0.59595424",
"0.59500456",
"0.5947697",
"0.5924276",
"0.5921516",
"0.591188",
"0.5899668",
"0.5884876",
"0.58798844",
"0.5878322"... | 0.0 | -1 |
Constructor for Health profile feed query. | def FIMM(YKHO, zVa7='health', QUSx='feeds/profile', hPuM='default', O4Fb=None, zsLA=None, NArs=None, LeZt=None):
YKHO.service = zVa7
YKHO.profile_id = O4Fb
YKHO.projection = hPuM
HBzi.service.Query.__init__(YKHO, feed=QUSx, text_query=zsLA, params=NArs, categories=LeZt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zVa7='health', QUSx='feeds/profile/list'):\n HBzi.service.Query.__init__(YKHO, QUSx)\n YKHO.service = zVa7",
"def FIMM(YKHO, zVa7='health', QUSx='feeds/register', hPuM='default', O4Fb=None):\n HBzi.service.Query.__init__(YKHO, QUSx)\n YKHO.service = zVa7\n YKHO.projection = hPuM\n ... | [
"0.7657406",
"0.7370414",
"0.6360092",
"0.6272598",
"0.6272598",
"0.619264",
"0.6116538",
"0.60001624",
"0.5961851",
"0.58744806",
"0.5832696",
"0.5799929",
"0.57582694",
"0.5688432",
"0.56349635",
"0.5632425",
"0.5625899",
"0.5598093",
"0.55921143",
"0.55908954",
"0.55823165... | 0.76571125 | 1 |
Test that using ``qml.probs`` with an empty wire list raises an error. | def qPAw(YKHO):
with trZe.raises(ValueError, match='Cannot set an empty list of wires.'):
B2Ja.probs(wires=[]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4_7(YKHO, Mz_G):\n M4N3 = B2Ja.device('default.qubit', wires=3, shots=Mz_G)\n\n @B2Ja.qnode(M4N3)\n def DPNn():\n return B2Ja.probs()\n Ylbp = DPNn()\n assert B2Ja.math.allequal(Ylbp, [1, 0, 0, 0, 0, 0, 0, 0])",
"def vsZG(YKHO):\n M4N3 = B2Ja.device('default.qubit', wires=['a', -1, ... | [
"0.7185855",
"0.65842885",
"0.6383651",
"0.62475175",
"0.62027556",
"0.61089206",
"0.610716",
"0.6086032",
"0.60602283",
"0.60451746",
"0.6034204",
"0.6030874",
"0.59817433",
"0.5967731",
"0.5959801",
"0.58986765",
"0.58925354",
"0.5885541",
"0.5869462",
"0.5868869",
"0.58443... | 0.87101454 | 0 |
Test that Operators that do not have a diagonalizing_gates representation cannot be used in probability measurements. | def r6DT(YKHO, oPhP):
M4N3 = B2Ja.device('default.qubit', wires=2)
@B2Ja.qnode(M4N3)
def DPNn():
B2Ja.PauliX(wires=0)
B2Ja.PauliZ(wires=1)
return B2Ja.probs(op=oPhP(0.56, wires=[0, 1]))
with trZe.raises(B2Ja.QuantumFunctionError, match='does not define diagonalizing gates : cann... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_bv(YKHO):\n YKHO.obj.oper = 'BAD'\n YKHO.obj.limit = 100\n NaW5(YKHO.obj.operate(100), False)",
"def R_1J(YKHO):\n jzdc = hSNy('101')\n Fg_i = hSNy('001')\n with YKHO.assertRaises(TypeError):\n Z9rn = jzdc + Fg_i\n with YKHO.assertRaises(TypeError):\n Z9rn = jzdc - Fg_i\n... | [
"0.6364902",
"0.6350443",
"0.6302908",
"0.62697935",
"0.6226594",
"0.6197208",
"0.61844957",
"0.6157593",
"0.6139962",
"0.61069226",
"0.6104196",
"0.6073748",
"0.60622245",
"0.60621005",
"0.60150385",
"0.6005351",
"0.5982996",
"0.5969318",
"0.59651667",
"0.59449005",
"0.59244... | 0.662778 | 0 |
Checks if this cdsl is a shared cdsl | def Z4_b(YKHO):
return YKHO.type == YKHO.SHARED_TYPE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwSB(YKHO):\n return False",
"def nwSB(YKHO):\n if 'isShared' in YKHO._prop_dict:\n return YKHO._prop_dict['isShared']\n else:\n return None",
"def i2v6(YKHO):\n return YKHO._tag == 'shared_folder'",
"def E9Nz(YKHO):\n return YKHO.owned() and YKHO._bindMessage == 'shared'",
... | [
"0.77015233",
"0.7598764",
"0.7134447",
"0.71083087",
"0.68057",
"0.67870975",
"0.66333973",
"0.6512133",
"0.64911836",
"0.6451091",
"0.6434954",
"0.63006705",
"0.62395334",
"0.62251526",
"0.61324024",
"0.61134565",
"0.6092857",
"0.60590374",
"0.6004897",
"0.6004897",
"0.6004... | 0.7798536 | 0 |
Checks if this cdsl is a nested one if path given the path is taken into account. | def Ylbz(YKHO, j6_k=None):
from comoonics.cdsl import guessType
from comoonics.cdsl import CdslNotFoundException
Kr79 = YKHO.isStripped()
if not j6_k:
j6_k = YKHO.src
Kr79 = False
ex_J = Hy7s.path.dirname(j6_k)
if ex_J == '':
return False
try:
YKHO.cdslReposit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LoAw(SXRB, rb7a):\n return len(_HAN(SXRB)) == rb7a",
"def GfdN(YKHO, pmON: str):\n j6_k = pmON.split('/')\n KCHu = YKHO.subsections\n for XP5J in j6_k:\n jbXL = [bGrB for bGrB in KCHu if XP5J.upper() == bGrB.upper()]\n if jbXL:\n KCHu = KCHu[jbXL[0]].subsections\n ... | [
"0.6896283",
"0.65520996",
"0.63575727",
"0.6314082",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
"0.6284403",
... | 0.8316524 | 0 |
This method gets the parent for this cdsl. If there is no parent None is returned. | def KViK(YKHO, j6_k=None):
if not YKHO.parent:
YKHO.parent = YKHO.findParent(j6_k)
return YKHO.parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ByGo(YKHO):\n return YKHO.parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO.parent",
"def PAwq(YKHO):\n if len(YKHO.parent) ... | [
"0.82807696",
"0.8235706",
"0.8235706",
"0.8235706",
"0.8235706",
"0.8225884",
"0.81850815",
"0.8149871",
"0.8144573",
"0.8126348",
"0.8087187",
"0.80452377",
"0.8041237",
"0.8041237",
"0.8040157",
"0.803926",
"0.8014295",
"0.80073214",
"0.79850686",
"0.79682404",
"0.79682404... | 0.8279083 | 1 |
This method finds the parent for this cdsl. If there is no parent None is returned. This method should find the next parent for this cdsl. Let's suppose var => hostdep and var/lib shared findParent("var/lib") should return the "var" cdsl. This method must be implemented by the child classes. Here it will just return No... | def MRGL(YKHO, pmON):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MRGL(YKHO, pmON=None):\n import os.path\n from comoonics.ComPath import Path\n from comoonics.cdsl import stripleadingsep\n from comoonics.cdsl.ComCdslRepository import CdslNotFoundException\n Kr79 = False\n if pmON == None:\n pmON = Hy7s.path.dirname(YKHO.src)\n if not pmON or pmON... | [
"0.7985092",
"0.6817236",
"0.6790668",
"0.675413",
"0.6708186",
"0.66976905",
"0.6678552",
"0.66081274",
"0.66034824",
"0.6588036",
"0.6585255",
"0.6573969",
"0.6565412",
"0.6527281",
"0.65060467",
"0.65004057",
"0.64520174",
"0.6417987",
"0.6405126",
"0.6390534",
"0.6366604"... | 0.72281104 | 1 |