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 |
|---|---|---|---|---|---|---|
Get the edges of the hinge tree rooted at `root`. | def OXEe(tk5Y, g5tv, ez7J):
gGq6 = MUE7((tk5Y,))
DjXl = oRi_(lambda: False)
DjXl[tk5Y] = True
N9Pu = {tk5Y: set()}
while gGq6:
Ty9i = gGq6.popleft()
if Ty9i in ez7J:
continue
for P6bq in g5tv[Ty9i]:
if not DjXl[P6bq]:
gGq6.append(P6bq)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXh1(YKHO):\n return [tuple(D70y) for D70y in YKHO._tree.tree_grid[1:3, :].T]",
"def U3T6(rdoo):\n mC4V = []\n\n def IYtn(Q6kx):\n for aUGN in Q6kx.children:\n mC4V.append([Q6kx.identifier, aUGN.identifier])\n IYtn(aUGN)\n IYtn(rdoo)\n return mC4V",
"def mC4V(YKH... | [
"0.65350896",
"0.6380477",
"0.6236031",
"0.6185158",
"0.6100252",
"0.60605776",
"0.60532624",
"0.6031872",
"0.6026344",
"0.60224915",
"0.60098165",
"0.60098165",
"0.60098165",
"0.60098165",
"0.60098165",
"0.60098165",
"0.5993045",
"0.5953177",
"0.5929027",
"0.59179825",
"0.58... | 0.6439717 | 1 |
Propagate the sign of hinge_node to the closest node in the hinge tree. Returns all the node in `node_predictions` whose sign was predicted by this hinge node. | def oivD(g5tv, eOMD, n0am, KGQN, sR9N):
DjXl, PjQx = (oRi_(lambda: False), set())
NfpQ = {eOMD: 0}
DjXl[eOMD] = True
gGq6 = MUE7([eOMD])
while gGq6:
Ty9i = gGq6.popleft()
jI6L = NfpQ[Ty9i]
kl4Y = KGQN[Ty9i][2]
if kl4Y < jI6L:
continue
KGQN[Ty9i] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WzrY(g5tv, sR9N, c_mg, Eppw, Cziv=False, rZ2B=False):\n E5BI = []\n jGRS = oRi_(lambda: [False, float(wS0Z), 0, False])\n E5BI.append(Eppw)\n jGRS[Eppw] = [False, 0.0, 0, False]\n while E5BI:\n Ty9i = E5BI.pop()\n if Ty9i >= 0:\n DjXl, OCLG, f8Zg, TumP = jGRS[Ty9i]\n ... | [
"0.7134438",
"0.6737355",
"0.58424485",
"0.5277435",
"0.49557328",
"0.4929456",
"0.49170706",
"0.486149",
"0.47995198",
"0.4798005",
"0.47674358",
"0.47608614",
"0.47346276",
"0.46701452",
"0.46646553",
"0.46337318",
"0.46312234",
"0.46161234",
"0.4597922",
"0.45949376",
"0.4... | 0.8085963 | 0 |
Remove personality types words given in text from list of tokenized words | def tFlQ(YKHO):
g68O = []
for GIN8 in YKHO.words:
zmME = ZbWC.sub('\\b(istj|istp|isfj|isfp|infj|infp|intj|intp|estp|estj|esfp|esfj|enfp|enfj|entp|entj)', '', GIN8)
if zmME != '':
g68O.append(zmME)
YKHO.words = g68O
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dl9a(l5Ny):\n V22M = l5Ny.split()\n yvT9 = []\n for yzQ0 in V22M:\n yzQ0 = lCct(yzQ0)\n if yzQ0 != None:\n yvT9.append(yzQ0)\n return yvT9",
"def LM7x(wuNX, CtWL):\n FeaI = set(CtWL)\n for YRbF in range(0, len(wuNX)):\n s2mk = dFss(wuNX[YRbF])\n s2mk =... | [
"0.7609409",
"0.75687563",
"0.7470731",
"0.72247905",
"0.7206743",
"0.71561325",
"0.7130392",
"0.7122282",
"0.7087075",
"0.7075506",
"0.7055075",
"0.70487016",
"0.7048034",
"0.70478773",
"0.70322025",
"0.7027062",
"0.69901526",
"0.697843",
"0.6960401",
"0.6938746",
"0.6935899... | 0.7178716 | 5 |
Lemmatize verbs in list of tokenized words | def sAwM(YKHO):
A1xJ = []
for GIN8 in YKHO.words:
dhx_ = X1AK.lemmatize(GIN8, pos='v')
A1xJ.append(dhx_)
YKHO.words = A1xJ
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iKsa(jKE7):\n wgQP = Dhdw.stem.PorterStemmer()\n i6lF = [wgQP.stem(GIN8) for GIN8 in jKE7]\n return i6lF",
"def kzmx(s2mk):\n kdPk = Dhdw.pos_tag(s2mk)\n byvF = Dhdw.WordNetLemmatizer()\n X_gD = {'J': WnSJ.ADJ, 'N': WnSJ.NOUN, 'V': WnSJ.VERB, 'R': WnSJ.ADV}\n V22M = []\n for GIN8, TZ9... | [
"0.8030228",
"0.7929821",
"0.78893256",
"0.78252596",
"0.7756634",
"0.7741538",
"0.7741538",
"0.7741538",
"0.7741538",
"0.7741538",
"0.7741538",
"0.77332175",
"0.77103",
"0.7703726",
"0.7699928",
"0.76371783",
"0.7631672",
"0.75700194",
"0.7544735",
"0.7536392",
"0.75226045",... | 0.79704237 | 1 |
Return True if the user's account is from a priviledged domain. | def _5yV(D3lj):
if D3lj and '@' in D3lj:
bGrB, S6W2 = D3lj.split('@', 1)
return S6W2 in gCuF.priviledged_user_domains
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dY6E(D3lj):\n if UqZV.AuthConfig().get('all_users_privileged'):\n return True\n k_YL = (L_qe.get_value('privileged_users') or '').splitlines()\n return any((BfDw.emails_equal(D3lj, kkS5) for kkS5 in k_YL))",
"def Jb0V(cHyp, _Kb1):\n return _Kb1 or (cHyp and cHyp.endswith('@google.com'))",
... | [
"0.63530934",
"0.6297092",
"0.62180763",
"0.61976665",
"0.6153836",
"0.615255",
"0.58828485",
"0.5874819",
"0.5859209",
"0.5850652",
"0.5830579",
"0.5830579",
"0.5816409",
"0.5808903",
"0.5808533",
"0.5804732",
"0.57832104",
"0.5780676",
"0.57508516",
"0.57218134",
"0.5715271... | 0.76116556 | 0 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
or8S = H5ew % 1000
if not YKHO.map[or8S]:
return -1
else:
ZbOB = YKHO.map[or8S]
while ZbOB:
if ZbOB.key == H5ew:
return ZbOB.val
ZbOB = ZbOB.next
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]",
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ... | [
"0.8002072",
"0.7907979",
"0.76276183",
"0.7563081",
"0.7554108",
"0.752721",
"0.75236875",
"0.7371581",
"0.72921616",
"0.72912604",
"0.7219647",
"0.72144943",
"0.71786934",
"0.7174939",
"0.71607196",
"0.69786674",
"0.69259864",
"0.67828715",
"0.6754241",
"0.6731898",
"0.6610... | 0.74908173 | 7 |
Class constructor. Instantiates a new ``DeviceRequestException`` object with the provided parameters. | def FIMM(YKHO, tO9_: str) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tf1m):\n super(D9Ku, YKHO).__init__()\n YKHO.error_msg = tf1m",
"def FIMM(YKHO, Wxnj, lo9Y):\n super(qAKW, YKHO).__init__(Wxnj, lo9Y)",
"def FIMM(YKHO, JBvl, ahUV):\n super(Pm6o, YKHO).__init__(ahUV.error_msg)\n YKHO.status_code = JBvl\n YKHO.error_code = ahUV.error_code\n Y... | [
"0.5803186",
"0.57217526",
"0.5709015",
"0.5543319",
"0.55284464",
"0.52882785",
"0.52495176",
"0.52209544",
"0.5206861",
"0.5201629",
"0.5142849",
"0.5119837",
"0.5097363",
"0.50917476",
"0.50868946",
"0.50698847",
"0.50603795",
"0.5054095",
"0.50455505",
"0.50335705",
"0.50... | 0.0 | -1 |
Construct a node that stores the specified value. prev and next references are optional on construction and default to None if nothing else is specified | def FIMM(YKHO, BWXx, THkp=None, next=None):
YKHO.prev = THkp
YKHO.value = BWXx
YKHO.next = next | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BWXx, zAcD=None):\n YKHO.value = BWXx\n YKHO.next_node = zAcD",
"def FIMM(YKHO, BWXx, next=None):\n YKHO.value = BWXx\n YKHO.next = next",
"def FIMM(YKHO, BWXx, next=None):\n YKHO.value = BWXx\n YKHO.next = next",
"def FIMM(YKHO, BWXx, W30o=None, VnzS=None):\n YKHO.previou... | [
"0.73599726",
"0.7201069",
"0.71057945",
"0.710285",
"0.70844734",
"0.6709122",
"0.66811043",
"0.666139",
"0.6589233",
"0.6539927",
"0.65295476",
"0.6526624",
"0.64724946",
"0.6423439",
"0.63919574",
"0.63919574",
"0.6387749",
"0.63873935",
"0.63873935",
"0.637498",
"0.635869... | 0.85737437 | 0 |
Returns a string representation of this DoublyLinkedList | def wHJl(YKHO):
if YKHO.size == 0:
return 'DLL=[]'
Qlma = 'DLL=['
kMLo = YKHO.head
while kMLo is not None:
Qlma += f'{kMLo} -> '
kMLo = kMLo.next
Qlma = f'{Qlma[:-4]}]'
return Qlma | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = ''\n jvSB = YKHO.__head\n while jvSB:\n KCHu += str(jvSB.data) + '\\n'\n jvSB = jvSB.next_node\n return KCHu[:-1]",
"def zAg0(YKHO):\n vIwR = ''\n _9jN = YKHO.head\n while _9jN is not None:\n vIwR += _9jN.data.__str__()\n _9jN = _9jN.next\... | [
"0.8245704",
"0.81759214",
"0.8072831",
"0.8020273",
"0.7998722",
"0.79295236",
"0.79042274",
"0.7739197",
"0.7682769",
"0.7680147",
"0.76750654",
"0.76048154",
"0.7598787",
"0.7597622",
"0.75905746",
"0.75905746",
"0.75885516",
"0.7574767",
"0.7558033",
"0.7550062",
"0.75490... | 0.71998256 | 35 |
Wraps the given value in a ListNode and inserts it as the new head of the list. Don't forget to handle the old head node's previous pointer accordingly. | def mn5t(YKHO, BWXx):
Esd_ = Msxl(BWXx)
if YKHO.size == 0:
YKHO.head = Esd_
YKHO.tail = Esd_
else:
Esd_.next = YKHO.head
YKHO.head.prev = Esd_
Esd_.next = YKHO.head
YKHO.head = Esd_
YKHO.size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PgMl(YKHO, wEf2):\n Esd_ = Msxl(wEf2)\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n YKHO.length += 1",
"def PgMl(YKHO, wEf2):\n Q6kx = Msxl(wEf2)\n if YKHO.head == None:\n YKHO.head = Q6kx\n else:\n Q6kx.next = YKHO.head\n YKHO.head = Q6kx",
"def aZVs(vC9B: ListNode... | [
"0.7515542",
"0.74239516",
"0.7190123",
"0.7158426",
"0.7061008",
"0.70294493",
"0.6970894",
"0.68880725",
"0.68419516",
"0.67599696",
"0.67299294",
"0.67298996",
"0.6727644",
"0.66970205",
"0.66927296",
"0.6691734",
"0.66664726",
"0.66664726",
"0.66185343",
"0.66128457",
"0.... | 0.7749629 | 0 |
Wraps the given value in a ListNode and inserts it as the new tail of the list. Don't forget to handle the old tail node's next pointer accordingly. | def KYIL(YKHO, BWXx):
Esd_ = Msxl(BWXx)
if YKHO.size == 0:
YKHO.head = YKHO.tail = Esd_
else:
YKHO.tail.next = Esd_
Esd_.prev = YKHO.tail
YKHO.tail = Esd_
YKHO.size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oHxR(YKHO, wEf2):\n ZbOB = YKHO.head\n while ZbOB.next:\n ZbOB = ZbOB.next\n Esd_ = Msxl(wEf2)\n ZbOB.next = Esd_\n YKHO.length += 1",
"def oHxR(YKHO, wEf2):\n Q6kx = Msxl(wEf2)\n if YKHO.head == None:\n YKHO.head = Q6kx\n else:\n DpUl = YKHO.head\n while D... | [
"0.795366",
"0.7787602",
"0.7488099",
"0.73066425",
"0.7301531",
"0.72027487",
"0.7166401",
"0.71181184",
"0.7091644",
"0.7058869",
"0.7002252",
"0.6995476",
"0.6971394",
"0.6942306",
"0.6942306",
"0.6876243",
"0.6858508",
"0.6785757",
"0.67506313",
"0.67359084",
"0.6731195",... | 0.78356844 | 1 |
Removes the List's current tail node, making the current tail's previous node the new tail of the List. Returns the value of the removed Node. | def DfIc(YKHO):
if YKHO.size == 0:
return None
qf7_ = YKHO.tail
qf7_.prev = qf7_.next = None
if YKHO.size == 1:
YKHO.head = YKHO.tail = None
else:
YKHO.tail.prev.next = None
YKHO.tail = YKHO.tail.prev
YKHO.size -= 1
return qf7_.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeks(YKHO):\n if YKHO.tail is None:\n return None\n eSnm = YKHO.tail\n if YKHO.tail != YKHO.head:\n if YKHO.tail.skip_back is None:\n YKHO.tail = YKHO.head\n else:\n YKHO.tail = YKHO.tail.skip_back.next\n YKHO.tail.next = None\n else:\n YKHO.... | [
"0.8073003",
"0.7691993",
"0.7682898",
"0.7649329",
"0.7625997",
"0.7569338",
"0.7505117",
"0.7456315",
"0.74213463",
"0.7277503",
"0.71283627",
"0.709815",
"0.70919055",
"0.70697725",
"0.7012255",
"0.6973596",
"0.6968318",
"0.69624215",
"0.6894814",
"0.6893733",
"0.68922377"... | 0.80111617 | 1 |
Removes the input node from its current spot in the List and inserts it as the new head node of the List. | def Q1MB(YKHO, Q6kx):
if YKHO.size == 0:
return
if YKHO.head is Q6kx:
return
if YKHO.tail is Q6kx:
YKHO.tail = Q6kx.prev
else:
Q6kx.next.prev = Q6kx.prev
Q6kx.prev.next = Q6kx.next
YKHO.head.prev = Q6kx
Q6kx.next = YKHO.head
YKHO.head = Q6kx
YKHO.head.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rm5c(IqQl):\n try:\n sdCG = o7DN(IqQl.pop(0))\n while len(IqQl) > 0:\n kMLo = sdCG\n while kMLo.next:\n kMLo = kMLo.next\n kMLo.next = o7DN(IqQl.pop(0))\n except IndexError:\n sdCG = None\n return sdCG",
"def RHuc(YKHO, Q6kx):\n ... | [
"0.699391",
"0.69814193",
"0.6884986",
"0.6856627",
"0.6829033",
"0.6725257",
"0.66008973",
"0.65924186",
"0.6571658",
"0.6519314",
"0.65168566",
"0.6482488",
"0.6479803",
"0.64417773",
"0.6418317",
"0.64144427",
"0.638319",
"0.6372999",
"0.631416",
"0.6288066",
"0.62879497",... | 0.6505445 | 11 |
Removes the input node from its current spot in the List and inserts it as the new tail node of the List. | def ft4c(YKHO, Q6kx):
if YKHO.size == 0:
return
if Q6kx is YKHO.tail:
return
if Q6kx is not YKHO.head:
Q6kx.prev.next = Q6kx.next
else:
YKHO.head = Q6kx.next
Q6kx.next.prev = Q6kx.prev
YKHO.tail.next = Q6kx
Q6kx.prev = YKHO.tail
Q6kx.next = None
YKHO.t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rb2A(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n else:\n FZqh = YKHO.head\n while FZqh.next is not None:\n FZqh = FZqh.next\n FZqh.next = Esd_\n YKHO.n += 1",
"def Rb2A(YKHO, BWXx):\n if YKHO._size == 0:\n YKHO.pus... | [
"0.6751531",
"0.65330744",
"0.6455957",
"0.64297324",
"0.63831943",
"0.63621294",
"0.6360353",
"0.6302879",
"0.6256736",
"0.6143983",
"0.6120773",
"0.6098733",
"0.60908645",
"0.60882473",
"0.6087474",
"0.60345596",
"0.60271823",
"0.6011966",
"0.6008051",
"0.6007572",
"0.59813... | 0.6368737 | 5 |
Finds and returns the maximum value of all the nodes in the List. | def qfB5(YKHO):
bQ6z = YKHO.head.value
kMLo = YKHO.head
while kMLo.next is not None:
kMLo = kMLo.next
if bQ6z < kMLo.value:
bQ6z = kMLo.value
return bQ6z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(YKHO):\n return max(YKHO.nodes, key=int)",
"def ipPO(list):\n return Qpvm(list, 0)",
"def max(YKHO):\n KOdv = YKHO.root\n if KOdv:\n KOdv = YKHO.__search_node_max_esq(KOdv)\n if KOdv:\n return KOdv.valor\n return None",
"def ipPO(YKHO):\n if YKHO.right:\n ... | [
"0.8191074",
"0.76349306",
"0.74023765",
"0.7374936",
"0.7374748",
"0.7215606",
"0.71712154",
"0.7167307",
"0.7113489",
"0.70883113",
"0.7053359",
"0.7034993",
"0.7021691",
"0.69815075",
"0.69487154",
"0.6938005",
"0.69217247",
"0.6909923",
"0.6898844",
"0.6849697",
"0.682310... | 0.7679494 | 1 |
Instances of a class which mixes in L{FancyEqMixin} but which defines no comparison attributes compare by identity. | def kfVg(YKHO):
class Empty(gnPz.FancyEqMixin):
pass
YKHO.assertFalse(rWmY() == rWmY())
YKHO.assertTrue(rWmY() != rWmY())
lsmZ = rWmY()
YKHO.assertTrue(lsmZ == lsmZ)
YKHO.assertFalse(lsmZ != lsmZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def bO5w(Emd4):\n assert Emd4.__lt__ is not object.__lt__, '{0} must define < and ideally =='.format(Emd4.__name__)\n if Emd4.__eq__ is object.__eq__:\n Emd4.__eq__ = lambda YKHO, Elif: not (Emd4.__lt__(YKHO, Elif) or Emd4.__lt__(Elif, YKHO))\n ... | [
"0.68128383",
"0.6553233",
"0.6434358",
"0.63941896",
"0.63873625",
"0.63811046",
"0.63771963",
"0.63696903",
"0.63482636",
"0.63344187",
"0.6327503",
"0.6325841",
"0.6320512",
"0.6305288",
"0.6292751",
"0.6251479",
"0.6250307",
"0.62420076",
"0.6239211",
"0.6237525",
"0.6231... | 0.65408975 | 2 |
Instances of a class which mixes in L{FancyEqMixin} should compare equal if all of their attributes compare equal. They should not compare equal if any of their attributes do not compare equal. | def Wuey(YKHO):
YKHO.assertTrue(Ky4Y(1, 2) == Ky4Y(1, 2))
YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(1, 3))
YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(2, 2))
YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(3, 4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return oyIN.all([YKHO.__getattribute__(mWFP) == Elif.__getattribute__(mWFP) for mWFP in YKHO._fields])",
"def xa14(YKHO, Elif):\n return all((getattr(YKHO, hkS8, None) == getattr(Elif, hkS8, None) for hkS8 in YKHO.attrs))",
"def xa14(YKHO, Elif):\n for hkS8 in YKHO._attrs_to_sa... | [
"0.6926736",
"0.6895417",
"0.66664636",
"0.666526",
"0.66455245",
"0.662681",
"0.6613257",
"0.6603822",
"0.6558252",
"0.654533",
"0.6521178",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075606",
"0.65075... | 0.0 | -1 |
Unequality between instances of a particular L{record} should be defined as the negation of equality. | def w6nP(YKHO):
YKHO.assertFalse(Ky4Y(1, 2) != Ky4Y(1, 2))
YKHO.assertTrue(Ky4Y(1, 2) != Ky4Y(1, 3))
YKHO.assertTrue(Ky4Y(1, 2) != Ky4Y(2, 2))
YKHO.assertTrue(Ky4Y(1, 2) != Ky4Y(3, 4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wuey(YKHO):\n YKHO.assertTrue(Ky4Y(1, 2) == Ky4Y(1, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(1, 3))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(2, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(3, 4))",
"def gw9t(YKHO):\n YKHO.assertTrue(Ky4Y(1, 2) != b0QU(1, 2))",
"def dMrY(YKHO):\n lhKE = kpgd('t... | [
"0.7754087",
"0.72114074",
"0.7166497",
"0.71314144",
"0.711448",
"0.6921058",
"0.6916062",
"0.67009145",
"0.6680914",
"0.6618862",
"0.6589952",
"0.65768164",
"0.65729654",
"0.6566163",
"0.6540872",
"0.653521",
"0.65116584",
"0.648716",
"0.64791775",
"0.64765286",
"0.6430965"... | 0.8289913 | 0 |
Instances of different classes which mix in L{FancyEqMixin} should not compare equal. | def q3uP(YKHO):
YKHO.assertFalse(Ky4Y(1, 2) == b0QU(1, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return super().__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n return super().__eq__(YKHO)",
"def xa14(YKHO, Elif):\n return super().__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def xa14(YKHO, Elif):\n... | [
"0.78159",
"0.74686706",
"0.74470246",
"0.74408126",
"0.7418714",
"0.7381456",
"0.737931",
"0.73782563",
"0.7376529",
"0.73459125",
"0.7328298",
"0.7324103",
"0.7324103",
"0.7324103",
"0.7317778",
"0.73096704",
"0.72948253",
"0.7281444",
"0.72805995",
"0.72805995",
"0.7265742... | 0.0 | -1 |
Instances of different classes which mix in L{FancyEqMixin} should compare unequal. | def gw9t(YKHO):
YKHO.assertTrue(Ky4Y(1, 2) != b0QU(1, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def xa14(YKHO, Elif):\n return super().__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return super().__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n return super().__eq__(YKHO)",
"def xa14(YKHO, Elif):\n return super().__ne__(YKHO)",
"def Vdqg(YKHO, Elif... | [
"0.75969505",
"0.73383665",
"0.7300953",
"0.7280761",
"0.7273663",
"0.7237311",
"0.7227009",
"0.71945935",
"0.71929634",
"0.7170359",
"0.7166687",
"0.7166687",
"0.7166687",
"0.7159782",
"0.71538544",
"0.7138677",
"0.71302897",
"0.7128446",
"0.71237576",
"0.71180415",
"0.71180... | 0.73821676 | 1 |
An instance of a class which derives from a class which mixes in L{FancyEqMixin} should compare equal to an instance of the base class if and only if all of their attributes compare equal. | def UsUM(YKHO):
YKHO.assertTrue(Ky4Y(1, 2) == KQnH(1, 2))
YKHO.assertFalse(Ky4Y(1, 2) == KQnH(1, 3))
YKHO.assertFalse(Ky4Y(1, 2) == KQnH(2, 2))
YKHO.assertFalse(Ky4Y(1, 2) == KQnH(3, 4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d5y3(YKHO):\n YKHO.assertFalse(Ky4Y(1, 2) != KQnH(1, 2))\n YKHO.assertTrue(Ky4Y(1, 2) != KQnH(1, 3))\n YKHO.assertTrue(Ky4Y(1, 2) != KQnH(2, 2))\n YKHO.assertTrue(Ky4Y(1, 2) != KQnH(3, 4))",
"def xa14(YKHO, Elif):\n raise NotImplementedError('must be implemented by subclass')",
"def xa14(YKH... | [
"0.73055047",
"0.6815091",
"0.6725804",
"0.6710778",
"0.67021215",
"0.67021215",
"0.67021215",
"0.67021215",
"0.66213435",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
"0.65785974",
... | 0.7442145 | 0 |
An instance of a class which derives from a class which mixes in L{FancyEqMixin} should compare unequal to an instance of the base class if any of their attributes compare unequal. | def d5y3(YKHO):
YKHO.assertFalse(Ky4Y(1, 2) != KQnH(1, 2))
YKHO.assertTrue(Ky4Y(1, 2) != KQnH(1, 3))
YKHO.assertTrue(Ky4Y(1, 2) != KQnH(2, 2))
YKHO.assertTrue(Ky4Y(1, 2) != KQnH(3, 4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UsUM(YKHO):\n YKHO.assertTrue(Ky4Y(1, 2) == KQnH(1, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == KQnH(1, 3))\n YKHO.assertFalse(Ky4Y(1, 2) == KQnH(2, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == KQnH(3, 4))",
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def gw9t(YKHO):\n YKHO.assertTrue(Ky4Y(1, 2)... | [
"0.7356038",
"0.700089",
"0.67805654",
"0.6763612",
"0.6709476",
"0.6689046",
"0.66677636",
"0.66457164",
"0.6633749",
"0.6583676",
"0.6555667",
"0.6537525",
"0.6537525",
"0.6537525",
"0.6537525",
"0.6521894",
"0.6478246",
"0.6469855",
"0.6469855",
"0.6469855",
"0.6467118",
... | 0.7679615 | 0 |
Lazy get/create of SerializeableDbDictCollection. | def E6cs(YKHO, jR3D):
Xlne = 'automatic_SerializeableDbDictCollection'
if not hasattr(YKHO, Xlne):
if jR3D:
DMMI = dEVc.SerializeableDbDictCollection()
setattr(YKHO, Xlne, DMMI)
else:
return None
else:
DMMI = getattr(YKHO, Xlne)
return DMMI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.db = g760.defaultdict(dict)",
"def g8zZ(YKHO) -> ImMB:\n return YKHO.anki.Collection(YKHO.db_location, log=True)",
"def _xBs(YKHO, Xiy5):\n DMMI = YKHO.getcreate_serializedbdictcollection(True)\n rtwz = DMMI.lookup_byname(Xiy5)\n if rtwz == None:\n rtwz = dEVc.Seria... | [
"0.6319729",
"0.6121937",
"0.60835916",
"0.58804506",
"0.57958335",
"0.5757507",
"0.56434363",
"0.5593368",
"0.55382925",
"0.551713",
"0.549941",
"0.54920036",
"0.5474999",
"0.54703194",
"0.5452886",
"0.5451142",
"0.5450955",
"0.5450024",
"0.54326767",
"0.5385962",
"0.5382986... | 0.76161957 | 0 |
return the unique elements in a list | def _QxW(Zuws):
return list(dict.fromkeys(Zuws)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONhe(BDwY):\n return list(set(BDwY))",
"def vaOw(uBiB):\n return set(uBiB)",
"def kcwm(BDwY):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in BDwY if not (WKvO in PwWw or aygV(WKvO))]",
"def kcwm(qgK3):\n PwWw = set()\n U5bT = []\n for TpU3 in qgK3:\n if TpU3 no... | [
"0.85259205",
"0.8360654",
"0.8286365",
"0.81805784",
"0.81652266",
"0.7975524",
"0.79450583",
"0.7942193",
"0.7941763",
"0.7920785",
"0.791547",
"0.78999156",
"0.7831818",
"0.7779906",
"0.76344943",
"0.7613137",
"0.76124513",
"0.75830996",
"0.7580081",
"0.75387216",
"0.75211... | 0.75088805 | 23 |
Returns whether a tensor is a sparse tensor. | def qEOb(vhpA):
return isinstance(vhpA, BtZX.SparseTensor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEOb(k0lF):\n if isinstance(k0lF, ht2j.Tensor):\n return k0lF.layout == ht2j.sparse_coo\n raise TypeError('expected Tensor but got %s' % type(k0lF).__name__)",
"def qEOb(WKvO: Any, DDLl=None) -> bool:\n yR_P = JEuV(DDLl)\n return yR_P.is_sparse(WKvO)",
"def Jh2m(SRYB):\n if 'theano.sp... | [
"0.80707175",
"0.7401373",
"0.7263636",
"0.68127817",
"0.6662162",
"0.6615621",
"0.6555875",
"0.6460289",
"0.64170605",
"0.62785006",
"0.62588364",
"0.6156034",
"0.6126516",
"0.6117841",
"0.6044898",
"0.60012466",
"0.59892374",
"0.58526593",
"0.58424604",
"0.5824965",
"0.5791... | 0.9019931 | 0 |
Converts a sparse tensor into a dense tensor and returns it. | def NG8_(vhpA):
if qEOb(vhpA):
return hixH.sparse_tensor_to_dense(vhpA)
else:
return vhpA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zd4T(YKHO, vhpA: tf.Tensor, oLRV: tf.TensorShape) -> ZylS.Tensor:\n return ZylS.scatter_nd(YKHO.observations_index, vhpA, oLRV)",
"def R1eO(YKHO, vhpA: tf.Tensor) -> ZylS.Tensor:\n qiip = vhpA.shape\n wmvz = len(qiip) == 3\n vhpA = ZylS.gather_nd(ZylS.reshape(vhpA, (-1, 1)), YKHO.observations_ind... | [
"0.77537674",
"0.75783604",
"0.7495346",
"0.7187648",
"0.7165059",
"0.6454642",
"0.64454424",
"0.64441395",
"0.6280887",
"0.62771934",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671",
"0.6273671"... | 0.8281811 | 0 |
Repeats the elements of a tensor along an axis, like `np.repeat`. If `x` has shape `(s1, s2, s3)` and `axis` is `1`, the output will have shape `(s1, s2 rep, s3)`. | def qRSD(WKvO, sWfS, jDK_):
OOcW = WKvO.get_shape().as_list()
if OOcW[jDK_] is None:
raise ValueError('Axis ' + str(jDK_) + ' of input tensor should have a defined dimension, but is None. Full tensor shape: ' + str(tuple(OOcW)) + '. Typically you need to pass a fully-defined `input_shape` argument to yo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wPFE(WKvO, DVQL, jDK_=None):\n return XqZS(axis=jDK_)(WKvO, DVQL)",
"def ThRa(jzdc, DVQL, jDK_=0):\n assert len(jzdc.size()) == 1\n return o6Pz(ht2j.transpose(jzdc.repeat(DVQL, 1), 0, 1))",
"def sAWl(vhpA, G1Hx):\n if len(vhpA.size()) > 2:\n raise ValueError('Cannot repeat a non-2D tenso... | [
"0.80037993",
"0.74887466",
"0.70882505",
"0.7073389",
"0.7044031",
"0.6817529",
"0.67096704",
"0.664271",
"0.6595274",
"0.65667784",
"0.6545866",
"0.64834327",
"0.64760953",
"0.64378166",
"0.6420571",
"0.6265722",
"0.62020355",
"0.6198244",
"0.6192323",
"0.61534244",
"0.6122... | 0.83238393 | 0 |
So a check for has_max_children should go first. At this point if True there is a left and a right. Now if the item is actually a number then finding the target becomes easy. I guess it depends on how its all set up. If its set up in alphabetical order where "a" < "b" == True then we can find the target easily by going... | def sjXf(YKHO, pan_):
jvSB = YKHO
while True:
if jvSB.value == pan_:
return True
elif pan_ < jvSB.value:
if jvSB.left is not None:
jvSB = jvSB.left
else:
return False
elif pan_ > jvSB.value:
if jvSB.right is ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUgk():\n from bbst import Bst\n return Bst([1, 5, 3, 10, 8, 6, 20, 7])",
"def RSt8(YKHO, d6pt):\n LFlW = YKHO._data[d6pt * 2 + 1] if d6pt * 2 + 1 < len(YKHO) else None\n _tIi = YKHO._data[d6pt * 2 + 2] if d6pt * 2 + 2 < len(YKHO) else None\n if LFlW and _tIi:\n if LFlW < _tIi:\n ... | [
"0.6149039",
"0.58563113",
"0.5697393",
"0.56893945",
"0.56746817",
"0.5662397",
"0.56575876",
"0.55683625",
"0.5533951",
"0.5520568",
"0.54744565",
"0.54439235",
"0.540539",
"0.5360846",
"0.53508466",
"0.5346468",
"0.5343605",
"0.53415495",
"0.53324884",
"0.53134257",
"0.531... | 0.5445325 | 11 |
No input Output will be the max either a value or None if tree is empty. | def qfB5(YKHO):
jvSB = YKHO
while jvSB.hasRight():
jvSB = jvSB.right
return jvSB.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n _gRY(tk5Y.right)\n if YKHO.max_val < tk5Y.value:\n YKHO.max_val = t... | [
"0.82669544",
"0.8254846",
"0.81775665",
"0.79240143",
"0.7880571",
"0.7770813",
"0.7495327",
"0.74036235",
"0.7279871",
"0.72643125",
"0.72096175",
"0.7208831",
"0.7188424",
"0.71773493",
"0.7128972",
"0.7126618",
"0.7076047",
"0.7032376",
"0.70166457",
"0.6938572",
"0.69314... | 0.66144097 | 30 |
Obtains current remote schema URL for a particular descriptor. | def _FZN(YKHO, jXCX):
return YKHO._schemas[jXCX]['remote'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLDU(YKHO):\n return YKHO.NAME_TYPE_SCHEMAS.get(YKHO.name_type, None)",
"def hovM(YKHO, jXCX):\n return YKHO._schemas[jXCX]['local']",
"def hKhs(YKHO):\n return YKHO.db_url",
"def xNwg(j8eK=None):\n uPxI, jPno = ('http', '80')\n KcEq = Hy7s.environ.get('HTTP_HOST')\n if not KcEq:\n ... | [
"0.6633675",
"0.65734804",
"0.5889959",
"0.5738448",
"0.5717764",
"0.5690382",
"0.56323653",
"0.54965645",
"0.5472219",
"0.5432388",
"0.54311013",
"0.54270416",
"0.54258853",
"0.54123926",
"0.5403416",
"0.5391813",
"0.5358039",
"0.53416306",
"0.53086895",
"0.5308647",
"0.5302... | 0.79740465 | 0 |
Test instantiation with invalid data. | def z8Gq(YKHO):
with YKHO.assertRaises(Exception):
Xg5U(term=-1)
with YKHO.assertRaises(Exception):
Xg5U(term='aaa')
with YKHO.assertRaises(Exception):
Xg5U(nodecimals=-1)
with YKHO.assertRaises(Exception):
Xg5U(nodecimals='aaa') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WNdU():\n with trZe.raises(TypeError, match='missing 1 required positional argument'):\n EH2C()",
"def tRUq(Uc16):\n with trZe.raises(ValueError):\n Uc16()",
"def RFwu(YKHO):\n o0Dy = ['these', 'are', 'bad', 'data', 'types', 'FILE', 'STRING', 'JSON']\n for dZOz in o0Dy:\n w... | [
"0.81213725",
"0.76400506",
"0.7603412",
"0.7316727",
"0.7312854",
"0.72701615",
"0.72641975",
"0.7262138",
"0.72463465",
"0.72282493",
"0.71846575",
"0.7140925",
"0.714044",
"0.71171963",
"0.7102141",
"0.7073066",
"0.704396",
"0.7020163",
"0.7010761",
"0.69903606",
"0.698966... | 0.7582369 | 3 |
Basic test of the PyTorch conv3d Node on Glow. | def Gz2V(YKHO, bGrB, yR_P, g4y1, KUnM, oug5=None):
BfDw.compare_tracing_methods(yR_P, g4y1, KUnM, fusible_ops={'aten::_convolution'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdAD():\n FJsd = F4gc(in_channels=432, num_classes=4, fc1_bias=False)\n FJsd.init_weights()\n assert FJsd.num_classes == 4\n assert FJsd.dropout_ratio == 0.5\n assert FJsd.in_channels == 432\n assert FJsd.init_std == 0.01\n assert isinstance(FJsd.dropout, U78l.Dropout)\n assert FJsd.dro... | [
"0.6198485",
"0.6198485",
"0.6041405",
"0.6010433",
"0.5822204",
"0.5797777",
"0.576961",
"0.5693406",
"0.5691574",
"0.56747746",
"0.5674137",
"0.5637991",
"0.56330955",
"0.55875623",
"0.5530903",
"0.5518026",
"0.5505835",
"0.54151446",
"0.5405355",
"0.54030335",
"0.53872454"... | 0.0 | -1 |
Symmetrically normalize adjacency matrix. | def bTaQ(eQUr, ZGE9):
if ZGE9 == 'Cheby':
foq8 = H4yH.eye(eQUr.shape[0]) - ujN0(eQUr - H4yH.eye(eQUr.shape[0]))
QQtr, bGrB = a5CR(foq8, 1, which='LM')
h7qn = 2.0 / QQtr[0] * foq8 - H4yH.eye(eQUr.shape[0])
return h7qn
else:
return ujN0(eQUr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.7884367",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76909643",
"0.75937736",
"0.7565492",
"0.7335031",
"0.7303798",
"0.72680664",
"0.68839365",
"0.68612736",
"0.68591523",
"0.6830935",
"... | 0.0 | -1 |
returns datum as a List (QUOTE datum) | def A4UN(kLQb):
return CIOb(kLQb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHvH(YKHO, nPrm):\n ycBG = []\n for ZfUD in nPrm:\n if len(ZfUD) > 2:\n YRbF = 0\n while YRbF < len(ZfUD):\n ycBG.append(ZfUD[YRbF:min(YRbF + 2, len(ZfUD))])\n YRbF += 2\n else:\n ycBG.append(ZfUD)\n nPrm = ycBG\n ycBG = [... | [
"0.63809043",
"0.6354738",
"0.61296904",
"0.6108132",
"0.6075185",
"0.6065557",
"0.6064056",
"0.5983993",
"0.5907554",
"0.5901674",
"0.5890175",
"0.5888486",
"0.58877826",
"0.5887253",
"0.58418417",
"0.58365417",
"0.5831775",
"0.5811988",
"0.5779311",
"0.5771279",
"0.5770686"... | 0.0 | -1 |
Calculates the Gmean (Geometric mean) score between y_true and y_pred. Higher is better (Best = +1), Range = [0, +1] | def LruN(YKHO, Y8eF=None, aMgO=None, Crrw=None, S8vG='macro', SOnQ=None, **B2fa):
Y8eF, aMgO, neaT, eUiB, SOnQ = YKHO.get_processed_data(Y8eF, aMgO, SOnQ)
SppC, JaxB, n_JZ = Neoe.calculate_confusion_matrix(Y8eF, aMgO, Crrw, normalize=None)
Wbxz = Neoe.calculate_single_label_metric(SppC, JaxB, n_JZ)
juJw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LruN(LVAh, aMgO):\n Bcwd = YsYU(LVAh, aMgO)\n if Bcwd.shape != (2, 2):\n raise ValueError('The ground truth values and the predictions may contain at most 2 values (classes).')\n pWm4 = Bcwd[0, 0]\n FYKK = Bcwd[1, 0]\n HRJ_ = Bcwd[1, 1]\n ytgA = Bcwd[0, 1]\n nESp = HRJ_ / float(HRJ_... | [
"0.8117465",
"0.76316136",
"0.6909695",
"0.6909695",
"0.68969995",
"0.6861574",
"0.6855192",
"0.68412095",
"0.6814519",
"0.6799021",
"0.67640907",
"0.6755286",
"0.67446375",
"0.674057",
"0.67405224",
"0.6729725",
"0.6720606",
"0.6704577",
"0.6703467",
"0.6682835",
"0.66735095... | 0.7476104 | 2 |
Create Donor class for data and methods for individual donor. | def FIMM(YKHO, mWFP, OOWi=None):
YKHO.name = mWFP.strip()
if OOWi is None:
YKHO.donations = []
else:
YKHO.donations = list(Ops5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, geg6=None):\n if geg6 is None:\n YKHO.donor_info = {}\n else:\n for dgtG in geg6:\n YKHO.donor_info.update({dgtG.name: dgtG})",
"def FIMM(YKHO, UZsd, OOWi):\n if isinstance(UZsd, str):\n YKHO._full_name = UZsd\n else:\n raise TypeError('Donor Name... | [
"0.7083028",
"0.6853679",
"0.6548653",
"0.6510359",
"0.6508466",
"0.6329183",
"0.6275936",
"0.6271978",
"0.61312747",
"0.6004974",
"0.5982692",
"0.591139",
"0.582798",
"0.57680005",
"0.5728862",
"0.5689964",
"0.55786735",
"0.5549692",
"0.5518835",
"0.54841137",
"0.54712325",
... | 0.6021735 | 9 |
Average donation is total donations divided by the number of donations. | def cYAP(YKHO):
return YKHO.tot_donations / YKHO.num_donations | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qj9E(YKHO):\n return YKHO.total_donations() / YKHO.num_donations() if YKHO.donations else 0",
"def cYAP(YKHO):\n return YKHO._total_donation / YKHO.num_of_donations",
"def KRhG(tdrF, dgtG):\n return sum(tdrF[dgtG]) // len(tdrF[dgtG])",
"def QT2u(YKHO):\n try:\n return YKHO.getTotDonati... | [
"0.8750945",
"0.8710993",
"0.83598036",
"0.8223379",
"0.81161815",
"0.6977119",
"0.6892846",
"0.6592177",
"0.6592177",
"0.64212304",
"0.6382908",
"0.63692343",
"0.63019806",
"0.62876695",
"0.61911476",
"0.6181856",
"0.61506426",
"0.61424124",
"0.6137102",
"0.6126139",
"0.6099... | 0.87955564 | 1 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.788518",
"0.7691616",
"0.759434",
"0.7566608",
"0.7335597",
"0.730491",
"0.72684425",
"0.688461",
"0.68616927",
"0.686005",
"0.6832041",
"0.682895",
"0.6750887",
"0.6750057",
"0.67278",
"0.66282207",
"0.6616473",
"0.64879745",
"0.6486613",
"0.63610464",
"0.63610464",
"0.... | 0.7698141 | 9 |
Convert sparse matrix to tuple representation. | def nPep(On0F):
def EV8W(RsfQ):
if not H4yH.isspmatrix_coo(RsfQ):
RsfQ = RsfQ.tocoo()
jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()
hkxX = RsfQ.data
ROpF = RsfQ.shape
return (jNOo, hkxX, ROpF)
if isinstance(On0F, list):
for YRbF in range(len(On... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)",
"def nPep(On0F):\n\n def EV8W(RsfQ):\n ... | [
"0.85870504",
"0.82527",
"0.82527",
"0.8091624",
"0.7986327",
"0.602773",
"0.59843755",
"0.5971062",
"0.59706587",
"0.59447116",
"0.59443593",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.58940256",
"0.58499134",
"0.5845008",
"0.577404",
"0.5689886",
... | 0.82655305 | 6 |
Returns the head of the Q or throws a QueueEmpty | def sdCG(YKHO):
if YKHO.isquiet():
raise Dh08()
r6jn = YKHO.base + '.' + str(YKHO.curr)
assert Hy7s.path.exists(r6jn)
eA0O = open(r6jn, 'r')
nPrm = eA0O.read()
eA0O.close()
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def T7C_(YKHO):\n if YKHO.isEmpty():\n raise Exception('Queue underflow')... | [
"0.7923368",
"0.78764904",
"0.78669983",
"0.7800613",
"0.77737886",
"0.7679711",
"0.7663496",
"0.7645859",
"0.753773",
"0.7479664",
"0.7384338",
"0.7362938",
"0.7333714",
"0.7289088",
"0.7278225",
"0.72757244",
"0.7154849",
"0.7138417",
"0.71183276",
"0.70965713",
"0.70891225... | 0.71598333 | 16 |
If there is a next workitem, promotes it to the head of the Q and returns it. Throws QueueNoNext if the Q is empty before the promotion. Throws QueueEmpty if the Q is empty after the promotion. | def next(YKHO):
if YKHO.isquiet():
raise HdsG()
r6jn = YKHO.base + '.' + str(YKHO.curr)
Hy7s.unlink(r6jn)
YKHO.curr += 1
YKHO._setcurr(YKHO.curr)
return YKHO.head() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTBM(YKHO):\n if YKHO._queue_lock.acquire(False):\n raise AssertionError('Expected _queue_lock to be held here')\n aFDj = list(YKHO._queues.keys())\n if not aFDj:\n raise StopIteration()\n blyX = None\n SeT9 = None\n for EYRr in aFDj:\n Z6G1 = YKHO._queues[EYRr]\n ... | [
"0.6467348",
"0.635734",
"0.6188191",
"0.61486584",
"0.6064015",
"0.5960086",
"0.5898226",
"0.5837122",
"0.58277684",
"0.5817459",
"0.578595",
"0.5781129",
"0.5777612",
"0.5775094",
"0.5765389",
"0.5750364",
"0.5742091",
"0.5735595",
"0.57277",
"0.57258403",
"0.5724639",
"0... | 0.621936 | 2 |
Add a given variable/variables at the given indices. If any indices are omitted or Falsey, return all data for the missing dimensions. | def UlWi(YKHO, SRYB, yKcO=False, Os4s=False, _0fC=False, Q6kx=False, qUr7=False, gEmA=False, ABDL=False):
if YKHO._debug:
print('start: {}, end: {}, stride: {}, node: {}, nele: {}, layer: {}, level: {}'.format(yKcO, Os4s, _0fC, Q6kx, qUr7, gEmA, ABDL))
try:
bGrB = (tTpl for tTpl in SRYB)
exc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyHS(YKHO, *bS0K, **B2fa):\n ...",
"def BSIh(WKvO, hkxX, _0VL, jDK_=0):\n gb7z = jth9(WKvO)\n hkxX = qw7D(hkxX)\n kYmT = hasattr(_0VL, '__len__') and len(_0VL) < qC1Y(WKvO)\n if azuC(_0VL):\n gb7z[_0VL] += hkxX\n return gb7z\n bq1x = DDqk(_0VL) and DDqk(_0VL[0])\n if bq1x:\... | [
"0.588174",
"0.5748312",
"0.56887764",
"0.5541592",
"0.532477",
"0.5275708",
"0.5272247",
"0.51244736",
"0.5117789",
"0.5052568",
"0.50283647",
"0.4994558",
"0.495853",
"0.49242246",
"0.48868543",
"0.48839685",
"0.48709086",
"0.48707464",
"0.48439464",
"0.48312747",
"0.482107... | 0.0 | -1 |
Find the index of the closest node to the supplied position (x, y). Set `cartesian' to True for cartesian coordinates (defaults to spherical). | def hKGO(YKHO, qJWj, tjFQ=False, gwAu=None, CgaZ=False, GeVo=False):
if not CgaZ or not GeVo:
if tjFQ:
WKvO, LVAh = (YKHO.grid.x, YKHO.grid.y)
else:
WKvO, LVAh = (YKHO.grid.lon, YKHO.grid.lat)
pImw = oyIN.sqrt((WKvO - qJWj[0]) ** 2 + (LVAh - qJWj[1]) ** 2)
elif Cg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mp07(YKHO, WKvO, LVAh):\n if YKHO.direction == 'horizontal':\n EZUf = oyIN.array([YKHO.ax.transData.transform((XP5J, 0))[0] for XP5J in YKHO.positions])\n pImw = abs(EZUf - WKvO)\n else:\n EZUf = oyIN.array([YKHO.ax.transData.transform((0, XP5J))[1] for XP5J in YKHO.positions])\n ... | [
"0.6468099",
"0.63392854",
"0.6245035",
"0.6210202",
"0.6172821",
"0.59789723",
"0.5959503",
"0.5911771",
"0.5731957",
"0.5726857",
"0.56959206",
"0.5672177",
"0.5663832",
"0.5658853",
"0.5654847",
"0.5642785",
"0.5621622",
"0.56084514",
"0.55915296",
"0.5580149",
"0.5578685"... | 0.67675006 | 0 |
The state transition function The action is an integer from 0 to 8, converted into one of nine different actions as described in the convertActionToVelocity function. The velocity is updated first, then the new position is calculated. If the trajectory intersects a track boundary, then the car is sent back to a random ... | def CrTw(YKHO, QTBn, XeOP):
WKvO, LVAh = QTBn
Hwn9, kWbD = YKHO.convertActionToVelocity(XeOP)
Mkmy = tuKI.uniform(0, 1)
if Mkmy > YKHO.no_action_prob:
if not (YKHO.Vx + Hwn9 <= 0 and YKHO.Vy + kWbD <= 0):
YKHO.Vx = max(0, min(5, YKHO.Vx + Hwn9))
YKHO.Vy = max(0, min(5, YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, XeOP):\n aO1A = YKHO._state + XeOP\n aO1A[oyIN.where(aO1A < 0)] = 0\n for qEVv in range(YKHO.num_cars):\n By1I.vehicle.slowDown(YKHO.controllable[qEVv], aO1A[qEVv], 1)\n By1I.simulationStep()\n YKHO._state = oyIN.array([By1I.vehicle.getSpeed(LD3d) for LD3d in YKHO.controllable]... | [
"0.6848148",
"0.6483251",
"0.6460811",
"0.6439687",
"0.63673866",
"0.636132",
"0.6355704",
"0.63357455",
"0.6330187",
"0.6315936",
"0.6315936",
"0.629775",
"0.6239372",
"0.6229056",
"0.62119085",
"0.6198604",
"0.6185552",
"0.61843884",
"0.6176187",
"0.61695313",
"0.61439",
... | 0.78467125 | 0 |
Function that returns True if the line segment 'p1q1' and 'p2q2' intersect. | def QkUv(YKHO, EBgd, hbUd, HpuQ, BzON):
u7RQ = YKHO.orientation(EBgd, hbUd, HpuQ)
KQB2 = YKHO.orientation(EBgd, hbUd, BzON)
zDah = YKHO.orientation(HpuQ, BzON, EBgd)
HWQm = YKHO.orientation(HpuQ, BzON, hbUd)
if u7RQ != KQB2 and zDah != HWQm:
return True
if u7RQ == 0 and YKHO.onSegment(EB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E043(YKHO, EBgd, HpuQ):\n EBgd = P8oC.getvector(EBgd)\n if len(EBgd) == 2:\n EBgd = oyIN.r_[EBgd, 1]\n HpuQ = P8oC.getvector(HpuQ)\n if len(HpuQ) == 2:\n HpuQ = oyIN.r_[HpuQ, 1]\n Rtnc = YKHO.line * EBgd\n mPai = YKHO.line * HpuQ\n if oyIN.sign(Rtnc) != oyIN.sign(mPai):\n ... | [
"0.78153306",
"0.75366807",
"0.74173826",
"0.74093777",
"0.73372614",
"0.73336077",
"0.7283651",
"0.7081966",
"0.707857",
"0.70425403",
"0.702909",
"0.70087206",
"0.6929714",
"0.69180727",
"0.6898419",
"0.6852868",
"0.68210685",
"0.67998624",
"0.6798945",
"0.6771915",
"0.6768... | 0.7941821 | 0 |
Convert all string to lowercase letters, and replaces spaces with '_' char | def qXHQ(str):
return str.replace(' ', '_').lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z7Y2(BWXx):\n return BWXx.lower().replace(' ', '_')",
"def aSeI(vIwR):\n RI88 = vIwR.lower()\n RI88 = ZbWC.sub('[^\\\\w\\\\s]', '', RI88)\n RI88 = ZbWC.sub('\\\\s+', '_', RI88)\n return RI88",
"def QoZA(vIwR):\n vIwR = ZbWC.sub('([A-Z]+)([A-Z][a-z])', '\\\\1_\\\\2', vIwR)\n vIwR = ZbWC... | [
"0.7754718",
"0.7556234",
"0.7519772",
"0.7389597",
"0.7366774",
"0.7366774",
"0.728275",
"0.7262716",
"0.72506166",
"0.72419626",
"0.723379",
"0.7225429",
"0.72144556",
"0.7196569",
"0.71884257",
"0.7184193",
"0.71709204",
"0.71439636",
"0.7118882",
"0.70988643",
"0.709532",... | 0.79720896 | 0 |
Returns the length of the data set. | def rgZA(YKHO):
return YKHO.lc.time[-1] - YKHO.lc.time[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n if YKHO.is_superset:\n u54L = 0\n for oxOY in YKHO.data:\n u54L += len(oxOY)\n return u54L\n else:\n return len(YKHO.data)",
"def RTy5(YKHO):\n return len(YKHO.data)",
"def zNig(YKHO) -> int:\n return YKHO.da.length()",
"def u54L(YKHO):\n ... | [
"0.83938617",
"0.8206444",
"0.8204359",
"0.81794214",
"0.81794214",
"0.81794214",
"0.8163545",
"0.8163545",
"0.8163545",
"0.8163545",
"0.815379",
"0.8150156",
"0.81189954",
"0.811755",
"0.8069563",
"0.79593843",
"0.79593843",
"0.7942892",
"0.7942857",
"0.79280853",
"0.7889535... | 0.0 | -1 |
Returns a folded light curve. Signature equivalent to lightkurve.LightCurve.fold. | def YhDe(YKHO, pQ4c, lGE9=None, Ckc2=None):
return YKHO.lc.fold(pQ4c, lGE9, Ckc2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_EB(YKHO):\n return yTJd(YKHO['corotid'])",
"def ktpS(YKHO):\n return dc96(profiles=YKHO.chamfered_curve, mesh_deflection=0.0001)",
"def LpLe(oqNA, MlAf):\n twRc = oqNA[0][0]\n for YRbF in range(0, oqNA.shape[0]):\n oqNA[YRbF, 0] = (oqNA[YRbF, 0] - twRc) / MlAf % 1\n return oqNA",
... | [
"0.6475792",
"0.5845715",
"0.5207177",
"0.5197757",
"0.50833356",
"0.50737745",
"0.50251245",
"0.49671057",
"0.49563763",
"0.4930438",
"0.49248856",
"0.4881326",
"0.4871287",
"0.48676234",
"0.4861727",
"0.48406097",
"0.4822176",
"0.48220855",
"0.48162645",
"0.4804254",
"0.479... | 0.49613076 | 8 |
Plots the light curve. If a result is already computed, it also plots the resulting model | def bQj5(YKHO, nUHY=False, Aofo=None, **B2fa):
for YRbF in ['color', 'ylabel', 'normalize']:
try:
del B2fa[YRbF]
except KeyError:
pass
aNZO: MlUv = YKHO.lc.scatter()
C3ST = Aofo if Aofo is not None and len(Aofo) > 0 else YKHO.result
if len(C3ST) > 0:
NArs ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GioZ(YKHO):\n oHrn = YKHO.exp_start_times\n LZpg = QrM1.figure()\n if YKHO.transmission_spectroscopy:\n ECR2 = YKHO.generate_lightcurves(oHrn, YKHO.planet.calcTransitDepth())\n QrM1.ylabel('Transit Depth')\n else:\n ECR2 = oyIN.ones_like(oHrn)\n QrM1.ylabel('Unit Flux')\... | [
"0.7002171",
"0.6955156",
"0.6937426",
"0.6801317",
"0.6467292",
"0.64019245",
"0.6398893",
"0.63595045",
"0.6289188",
"0.62866306",
"0.6282411",
"0.62724376",
"0.6262875",
"0.6261419",
"0.6221988",
"0.6221639",
"0.620612",
"0.6200242",
"0.6186521",
"0.6186521",
"0.6186521",
... | 0.6161957 | 23 |
Turn off email notifications for replies to this comment. | def f_4S(YKHO, D3lj, id):
YKHO.db.commit(['UPDATE comments SET', ' notification=0', 'WHERE email=%s AND (id=%s OR parent=%s);'], (D3lj, id, id)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qlod(YKHO):\n YKHO.__mail = False",
"def PMUY(YKHO, Npgh=None):\n YKHO.send_control_change(C70D, 0, ch=Npgh)",
"def iT5f(YKHO) -> bDy6[None]:\n gv2B = YKHO.set_notifications_enabled(False)\n yield\n YKHO.set_notifications_enabled(gv2B)",
"def iJCx(YKHO):\n YKHO.__mail = True",
"def oc... | [
"0.6442021",
"0.5933037",
"0.5742021",
"0.55164504",
"0.55039537",
"0.54175514",
"0.53476405",
"0.52276963",
"0.52276963",
"0.522494",
"0.51838",
"0.5175598",
"0.5170775",
"0.5162136",
"0.5052024",
"0.50397307",
"0.49801522",
"0.49743384",
"0.4917473",
"0.4896619",
"0.4879046... | 0.5785742 | 2 |
Loads the raw resource file and yields chunks of the specified size in bytes. | def LPQX(YKHO, Ux0P):
with open(Ux0P, 'rb') as Eorv:
XP5J = 0
yHH9 = ''
while XP5J <= YKHO.file_size:
try:
if YKHO.file_size - XP5J < YKHO.chunk_size:
NRcB = yHH9 + Eorv.read(YKHO.file_size - XP5J).decode('UTF-8')
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ct1_(Ux0P, ztRo):\n try:\n nUeQ = open(Ux0P, 'rb')\n while True:\n yOAJ = nUeQ.read(ztRo)\n if not yOAJ:\n return\n yield yOAJ\n except IOError as e:\n bo34.error('IOError: %s' % str(tTpl), exc_info=True)\n return",
"def OBJS(Y... | [
"0.7236397",
"0.6883338",
"0.6774075",
"0.6741574",
"0.67284155",
"0.6721304",
"0.6670949",
"0.66698337",
"0.65777737",
"0.6555259",
"0.6555259",
"0.65491897",
"0.6548192",
"0.65204406",
"0.65183353",
"0.6517779",
"0.6504328",
"0.65040284",
"0.65040284",
"0.65040284",
"0.6504... | 0.5872825 | 47 |
Initialize a data node with data. | def FIMM(YKHO, nPrm):
super(ZQHP, YKHO).__init__()
YKHO._data = nPrm
YKHO._children = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm, Q6kx):\n YKHO.data = nPrm\n YKHO.node = Q6kx",
"def FIMM(YKHO, nPrm, Q6kx):\n YKHO.data = nPrm\n YKHO.node = Q6kx",
"def FIMM(YKHO, nPrm, zAcD=None):\n YKHO.data = nPrm\n YKHO.next_node = zAcD",
"def FIMM(YKHO, nPrm, zAcD=None):\n YKHO.data = nPrm\n YKHO.next_node... | [
"0.8172431",
"0.7910768",
"0.76385134",
"0.76385134",
"0.7619343",
"0.74057317",
"0.7325825",
"0.7239916",
"0.7229517",
"0.7216096",
"0.72139573",
"0.7137145",
"0.7105465",
"0.70861906",
"0.70344925",
"0.7012536",
"0.7000159",
"0.7000159",
"0.69925267",
"0.69907486",
"0.69907... | 0.75863 | 5 |
Get a copy of the children set. | def RbaF(YKHO):
return YKHO._children.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uK4P(YKHO):\n return set()",
"def afYC(YKHO):\n if YKHO._children is None:\n return set()\n else:\n return YKHO._children",
"def OElv(YKHO):\n Ys9o = set()\n for _AKB in YKHO.children:\n Ys9o.add(_AKB.id)\n Ys9o |= _AKB.get_all_children()\n return Ys9o",
"def... | [
"0.7837752",
"0.7660914",
"0.6962233",
"0.6889824",
"0.6842986",
"0.68395025",
"0.68395025",
"0.68395025",
"0.68264645",
"0.6775751",
"0.6772774",
"0.67698216",
"0.67658794",
"0.6764111",
"0.6722807",
"0.6679414",
"0.6668333",
"0.65882194",
"0.6569122",
"0.6550819",
"0.651726... | 0.78740597 | 0 |
Calculates distance between 2 coordinates using haversine formula | def GeVo(GgQG, igSk, tk0B, TGuP):
AvTO = {'North': [0, 90], 'East': [90, 180], 'South': [180, 270], 'West': [270, 360]}
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(pOzQ, n09O):\n return GeVo(pOzQ.lng, pOzQ.lat, n09O.lng, n09O.lat)",
"def UVU1(mAYH, pks6):\n igSk, GgQG = mAYH\n TGuP, tk0B = pks6\n A3Vt = 6373.0\n igSk = Y_1E(igSk)\n GgQG = Y_1E(GgQG)\n TGuP = Y_1E(TGuP)\n tk0B = Y_1E(tk0B)\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n ... | [
"0.8378517",
"0.81214994",
"0.8091685",
"0.7832897",
"0.78270817",
"0.7822563",
"0.7816787",
"0.7789298",
"0.7769136",
"0.7758472",
"0.77521557",
"0.77416694",
"0.77401596",
"0.7726485",
"0.7725695",
"0.77216035",
"0.7705671",
"0.7702377",
"0.7682817",
"0.76774013",
"0.766427... | 0.76960224 | 18 |
A variant of the linear learning rate schedule | def Oxf1(qtWj):
def ygYX(qtWj):
a1PO = qtWj / qIxc.epochs
w6NZ = 0.01
if a1PO <= 0.5:
aM8h = 1.0
elif a1PO <= 0.9:
aM8h = 1.0 - (1.0 - w6NZ) * (a1PO - 0.5) / 0.4
else:
aM8h = w6NZ
return qIxc.lr_init * aM8h
gAEg = ygYX(qtWj)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZT_s(qtWj, tspZ):\n b0Ix = tspZ\n if qtWj > 10:\n b0Ix *= 0.1\n if qtWj > 20:\n b0Ix *= 0.1\n if qtWj > 50:\n b0Ix *= 0.01\n return b0Ix",
"def FvGu(uH9w):\n b0Ix = Seb7.cosine_decay_with_warmup(global_step=ZylS.train.get_or_create_global_step(), learning_rate_base=0.04... | [
"0.77933246",
"0.7463568",
"0.743309",
"0.742269",
"0.7411571",
"0.7410122",
"0.7399396",
"0.73932403",
"0.73774207",
"0.7370963",
"0.73501396",
"0.73501396",
"0.73482597",
"0.73482597",
"0.73482597",
"0.73482597",
"0.7342712",
"0.7336268",
"0.73338616",
"0.73021954",
"0.7282... | 0.6717915 | 49 |
Method that returns all comments of post ordered by date(ascending) | def zEnA(YKHO):
try:
return YKHO.comments.order_by('commented_date')
except (ValueError, yXsM, MFiR):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tj1O(YKHO):\n return YKHO.get_queryset().filter(content_type__model='comment').order_by('-comments__createdAt')",
"def C5sy(m8z6):\n Tj1O = jY1u.objects.all().filter(post=m8z6).order_by('-published')\n wrdL = FAtY.objects.all().filter(post=m8z6).order_by('published')\n aN3A = list()\n if Tj1O:... | [
"0.75819373",
"0.7529279",
"0.7259563",
"0.6936415",
"0.69288814",
"0.6881793",
"0.6785298",
"0.6731985",
"0.67015445",
"0.6519404",
"0.6426429",
"0.6373082",
"0.63627994",
"0.63614",
"0.6352466",
"0.63089436",
"0.63089436",
"0.62961787",
"0.62914735",
"0.62545377",
"0.622920... | 0.8264858 | 0 |
Add a point which adds or subtracts traffic | def ZqMf(WIxR):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LZd_(YKHO, *qIxc, **B2fa):\n ...",
"def LZd_(YKHO, AU8u):\n YKHO.points.append(AU8u)",
"def H2v5(YKHO, AU8u):\n YKHO.points.append(AU8u)",
"def CaoY(YKHO, AU8u):\n YKHO.points.append(AU8u)\n return YKHO",
"def JLpQ(YKHO, Xf84):\n YKHO.points.append(Xf84)",
"def H2v5(YKHO, AU8u):\n ... | [
"0.7178056",
"0.6981729",
"0.697757",
"0.6947909",
"0.6945716",
"0.68888795",
"0.68846154",
"0.6837304",
"0.67697453",
"0.67691517",
"0.67691517",
"0.67691517",
"0.67621046",
"0.6743948",
"0.6725008",
"0.6719686",
"0.6664964",
"0.6621888",
"0.6538063",
"0.65311104",
"0.652155... | 0.0 | -1 |
Return a list of available models. | def ArHU():
from lmfit.models import lmfit_models
FYrf = lmfit_models
if 'Expression' in FYrf:
del FYrf['Expression']
if 'Gaussian-2D' in FYrf:
del FYrf['Gaussian-2D']
iumf = set()
FnC_ = RkCj.resource_filename('nexpy.api.frills', 'models')
HwRy.path.append(FnC_)
for jQJk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eqaJ(YKHO):\n return YKHO.__models.keys()",
"def zsGb():\n kcCy = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'train', 'model')\n FYrf = sorted((ZfUD.name.replace('.py', '').replace('_', '-') for ZfUD in Hy7s.scandir(kcCy) if not ZfUD.name.startswith('_') and ZfUD.name.endswith('.py')))\n return FYrf... | [
"0.83207375",
"0.80826354",
"0.79793006",
"0.7913763",
"0.78320515",
"0.78320515",
"0.78320515",
"0.78320515",
"0.7767933",
"0.7588042",
"0.758471",
"0.75452733",
"0.754326",
"0.752727",
"0.74392354",
"0.7436941",
"0.74053097",
"0.73848546",
"0.7353479",
"0.7337276",
"0.72614... | 0.69892395 | 31 |
Initalize name and age attibutes. | def FIMM(YKHO, mWFP, ZJe_):
YKHO.name = mWFP
YKHO.age = ZJe_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.age = ZJe_",
"def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.age = ZJe_",
"def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = z... | [
"0.74732316",
"0.74732316",
"0.74732316",
"0.74732316",
"0.74732316",
"0.74732316",
"0.74732316",
"0.74732316",
"0.7472384",
"0.736729",
"0.7351724",
"0.7351724",
"0.7351724",
"0.7351724",
"0.72921795",
"0.7189177",
"0.7124933",
"0.711583",
"0.6997387",
"0.6881059",
"0.686831... | 0.75609356 | 2 |
Adds .rewards dictionary to ._cumulative_rewards dictionary. Typically called near the end of a step() method | def uCre(YKHO) -> None:
for YWSi, vOGg in YKHO.rewards.items():
YKHO._cumulative_rewards[YWSi] += vOGg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rA42(vwlo, KMvS=0.99):\n RHnR = []\n THkp = 0\n for Mkmy in reversed(vwlo):\n THkp = Mkmy + KMvS * THkp\n RHnR.append(THkp)\n RHnR.reverse()\n return RHnR",
"def qXhY(YKHO):\n if YKHO.discount:\n YKHO.cumreward += naF9(YKHO.discount, YKHO.samples) * YKHO.getReward()\n ... | [
"0.66877925",
"0.65150195",
"0.63543874",
"0.6171038",
"0.6131765",
"0.59833705",
"0.59729856",
"0.59728116",
"0.5945876",
"0.5941239",
"0.5938777",
"0.5859438",
"0.5845564",
"0.5828542",
"0.58256334",
"0.5801388",
"0.57860106",
"0.5721941",
"0.5721941",
"0.57204807",
"0.5710... | 0.8241642 | 0 |
Returns observation, cumulative reward, terminated, truncated, info for the current agent (specified by self.agent_selection). | def XVAW(YKHO, atX8: bool=True) -> tuple[dgWP | None, float, bool, bool, dict[jjvi, dict[str, ImMB]]]:
YWSi = YKHO.agent_selection
assert YWSi
rNYq = YKHO.observe(YWSi) if atX8 else None
return (rNYq, YKHO._cumulative_rewards[YWSi], YKHO.terminations[YWSi], YKHO.truncations[YWSi], YKHO.infos[YWSi]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMZ6(YKHO, vOGg=False):\n MPxr = F0sV.count_magnetic_ends(graph=YKHO._state._graph)\n jtld, q4aw = YKHO._state.get_state_counters()\n PMKd = abs(q4aw - YKHO._state._seq_length_threshold)\n if vOGg:\n return (MPxr, PMKd)\n else:\n return [MPxr] + [PMKd] + YKHO.get_action_history()",... | [
"0.6066342",
"0.58572423",
"0.572674",
"0.5680924",
"0.55653965",
"0.55462927",
"0.54915404",
"0.5479996",
"0.5470984",
"0.5380226",
"0.5377741",
"0.5377066",
"0.5372383",
"0.5367619",
"0.53314126",
"0.531771",
"0.5287568",
"0.52366143",
"0.52277625",
"0.52272576",
"0.5227257... | 0.5366415 | 14 |
Moves the left Snatch3r track forward at maximum speed | def KQSY(YKHO):
YKHO.left_motor.run_forever(speed_sp=YKHO.MAX_SPEED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnTb(YKHO):\n YKHO.left_motor.run_forever(speed_sp=-YKHO.MAX_SPEED)",
"def i4Mm(YKHO, iBLD):\n YKHO.pwm_backward.ChangeDutyCycle(0)\n YKHO.pwm_forward.ChangeDutyCycle(iBLD)\n YKHO.pwm_right.ChangeDutyCycle(0)\n YKHO.pwm_left.ChangeDutyCycle(100)",
"def eMmi(YKHO):\n YKHO.right_motor.run_f... | [
"0.68804145",
"0.6766968",
"0.66029763",
"0.65382004",
"0.6491949",
"0.64916617",
"0.6335264",
"0.6314397",
"0.61941",
"0.6185014",
"0.61789197",
"0.61776155",
"0.616607",
"0.61524516",
"0.6108518",
"0.6107015",
"0.60679215",
"0.60029584",
"0.60027933",
"0.5989831",
"0.598815... | 0.714059 | 0 |
Moves the left Snatch3r track backward at maximum speed | def xnTb(YKHO):
YKHO.left_motor.run_forever(speed_sp=-YKHO.MAX_SPEED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z86H(YKHO):\n YKHO.right_motor.run_forever(speed_sp=-YKHO.MAX_SPEED)",
"def ZD5u(YKHO, iBLD):\n YKHO.controller.reverse(iBLD)",
"def vDEh(YKHO):\n for WKvO in range(6):\n YKHO.right(primary=-70, counter=-30)\n ITS7.sleep(0.5)\n YKHO.left(primary=-70, counter=-30)\n ITS7... | [
"0.6670325",
"0.6528774",
"0.650342",
"0.650342",
"0.63978446",
"0.6393472",
"0.63802224",
"0.6353847",
"0.628464",
"0.62747014",
"0.6223883",
"0.6183431",
"0.61284715",
"0.6123169",
"0.6106527",
"0.6077826",
"0.60769135",
"0.6069814",
"0.6033206",
"0.6030349",
"0.59552073",
... | 0.7142505 | 0 |
>>> queue = ResizingArrayQueue() >>> queue.enqueue('a') >>> queue.enqueue('b') >>> queue.enqueue('c') >>> queue ResizingArrayQueue(['a', 'b', 'c']) >>> queue.capacity 4 | def jvNa(YKHO, YRbF):
if len(YKHO) == YKHO.capacity:
YKHO._resize(YKHO.capacity * 2)
if YKHO.tail == YKHO.capacity:
YKHO.tail = 0
YKHO.lst[YKHO.tail] = YRbF
YKHO.tail += 1
YKHO.n += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zNig):\n YKHO.queue = g760.deque(maxlen=zNig)",
"def FIMM(YKHO, zNig):\n YKHO.queue = g760.deque(maxlen=zNig)",
"def jvNa(YKHO, nPrm):\n while YKHO._size >= YKHO._capacity:\n YKHO.doubleCapacity()\n if YKHO._size != 0:\n YKHO._end = (YKHO._end + 1) % YKHO._capacity\n ... | [
"0.6993432",
"0.69741297",
"0.68684125",
"0.6865613",
"0.6690907",
"0.66519046",
"0.6591576",
"0.65801233",
"0.6565369",
"0.65564317",
"0.64656544",
"0.6449031",
"0.6421977",
"0.6414539",
"0.63977325",
"0.6349502",
"0.63473773",
"0.6325623",
"0.6325235",
"0.6290447",
"0.62844... | 0.6319796 | 19 |
Using the permutation stored in the GroupBy instance, group another array of values and return the location of the first minimum of each group's values. | def WHwV(YKHO, hkxX):
return YKHO.aggregate(hkxX, 'argmin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHwV(YKHO, hkxX: pdarray) -> AzJI[JMxE, mmG0]:\n G1Hx, Ty9i = YKHO.aggregate(hkxX, 'argmin')\n return (G1Hx, YWvJ(mmG0, Ty9i))",
"def min(YKHO, hkxX: pdarray, nLK1: bool=True) -> AzJI[JMxE, mmG0]:\n if hkxX.dtype == bool:\n raise TypeError('min is only supported for pdarrays of dtype float64,... | [
"0.69315547",
"0.6436416",
"0.63460773",
"0.61645544",
"0.61508465",
"0.61457413",
"0.60260195",
"0.5903984",
"0.5899858",
"0.5884481",
"0.5870008",
"0.58537614",
"0.5794234",
"0.57433397",
"0.5726778",
"0.5689788",
"0.5640447",
"0.56350976",
"0.562677",
"0.5610112",
"0.56016... | 0.6260668 | 3 |
Using the permutation stored in the GroupBy instance, group another array of values and return the number of unique values in each group. | def HZ_h(YKHO, hkxX):
return YKHO.aggregate(hkxX, 'nunique') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e89n(ezWE):\n wjRY = 0\n for uOe2 in ezWE:\n ga5z = []\n for a70H in uOe2:\n ga5z = ga5z + a70H\n sgpc = mBkc(''.join(ga5z))\n for G1Hx, Ty9i in sgpc.items():\n if Ty9i == len(uOe2):\n wjRY += 1\n return wjRY",
"def HZ_h(YKHO, hkxX: gr... | [
"0.6694003",
"0.6544423",
"0.6516038",
"0.6278004",
"0.6042778",
"0.5976222",
"0.5925271",
"0.5839887",
"0.57857645",
"0.5726247",
"0.571959",
"0.5712345",
"0.5705003",
"0.57005554",
"0.5654896",
"0.55948234",
"0.55775046",
"0.55225563",
"0.5428361",
"0.54021335",
"0.5364717"... | 0.6030383 | 5 |
Initialize the node, appending a new entry to aux_data in the process. | def FIMM(YKHO, hDmL: WillumpGraphNode, dvBq: str, BsZT: WeldType, xYGm: str, ZCGJ: List[str], pAMl, TNa9: List[Tuple[int, WeldType]]) -> None:
YKHO.left_input_name = dvBq
YKHO._output_name = xYGm
YKHO._right_dataframe = pAMl
YKHO._right_dataframe_name = 'AUX_DATA_{0}'.format(len(TNa9))
YKHO.join_col... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm: str):\n YKHO.root = o7DN(nPrm)\n YKHO.node_count = 1\n YKHO.node_of_last_computed_hash = 0",
"def FIMM(YKHO, lTaB, mI4b):\n super(B2xX, YKHO).__init__(lTaB, 'auxiliary', mI4b)\n YKHO._action = YKHO._info.get('default_action', '')",
"def FIMM(YKHO):\n YKHO.node = None\n ... | [
"0.58001876",
"0.5470469",
"0.5460675",
"0.540868",
"0.53352857",
"0.5288485",
"0.52832615",
"0.5265755",
"0.5261563",
"0.5260573",
"0.524959",
"0.5246685",
"0.5234178",
"0.522711",
"0.5222874",
"0.52164316",
"0.5214334",
"0.52069956",
"0.519198",
"0.5179701",
"0.51718295",
... | 0.0 | -1 |
With a suffix of "min" or "minutes", the interval is parsed in minutes. | def hjpe(YKHO):
YKHO.assert_interval_to_seconds(0, '0min', '0mins', '0minute', '0minutes')
YKHO.assert_interval_to_seconds(60, '1min', '1mins', '1minute', '1minutes')
YKHO.assert_interval_to_seconds(3600, '60min', '60mins', '60minute', '60minutes')
YKHO.assert_interval_to_seconds(1234567 * 60, '1234567m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O66n(input=None):\n return NMoC(input).minutes",
"def acZm(wEf2):\n goUd = ZbWC.compile('(?P<count>\\\\d+)(?P<unit>\\\\w+)')\n kUBT = goUd.match(wEf2.strip())\n if not kUBT:\n raise ValueError(\"invalid interval string '%s'\" % wEf2)\n PXGI = kUBT.group('unit')\n UHFx = float(kUBT.gr... | [
"0.7037409",
"0.6139116",
"0.6095989",
"0.59477216",
"0.5934872",
"0.59174246",
"0.58973724",
"0.58434886",
"0.5838393",
"0.5781589",
"0.57582396",
"0.57582396",
"0.57582396",
"0.57582396",
"0.57443696",
"0.5738154",
"0.5738138",
"0.5733011",
"0.569452",
"0.56922257",
"0.5683... | 0.6742453 | 1 |
With a suffix of "h" or "hours", the interval is parsed in hours. | def QqC5(YKHO):
YKHO.assert_interval_to_seconds(0, '0h', '0hour', '0hours')
YKHO.assert_interval_to_seconds(3600, '1h', '1hour', '1hours')
YKHO.assert_interval_to_seconds(24 * 3600, '24h', '24hour', '24hours')
YKHO.assert_interval_to_seconds(1234 * 3600, '1234h', '1234hour', '1234hours')
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wave(input=None):\n return NMoC(input).hours",
"def Eoh9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'interval_hours')",
"def G8lt(KCHu):\n KCHu = KCHu.strip()\n zqxI = KCHu.endswith('H')\n KCHu = KCHu.strip('H ')\n return (int(KCHu) * 60 if KCHu else 0) + (30 if zqxI else 0)"... | [
"0.67400813",
"0.65030235",
"0.62962854",
"0.6283059",
"0.6155723",
"0.6124772",
"0.59965205",
"0.59143645",
"0.58422655",
"0.5831927",
"0.57765394",
"0.57683414",
"0.5746319",
"0.5652727",
"0.5626688",
"0.5626274",
"0.5617149",
"0.55800486",
"0.55553263",
"0.5552738",
"0.554... | 0.69077224 | 0 |
With a suffix of "mon" or "months", the interval is parsed in months. | def v_wI(YKHO):
YKHO.assert_interval_to_seconds(0, '0mon', '0month', '0months')
YKHO.assert_interval_to_seconds(2592000, '1mon', '1month', '1months')
YKHO.assert_interval_to_seconds(12 * 2592000, '12mon', '12month', '12months')
YKHO.assert_interval_to_seconds(123 * 2592000, '123mon', '123month', '123mon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cdrF(UnQb):\n X_bn = int(UnQb)\n if X_bn <= 0:\n raise ValueError('Interval value must be a positive number: %d' % X_bn)\n return enlf.relativedelta(months=X_bn)",
"def N8IV(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'interval_months')",
"def N8IV(YKHO) -> qe4Y.Input[int]:\n re... | [
"0.69794005",
"0.6895282",
"0.6895282",
"0.6126728",
"0.60785025",
"0.5940183",
"0.5924424",
"0.5883604",
"0.58820176",
"0.58488023",
"0.58415383",
"0.58355105",
"0.58215415",
"0.58067286",
"0.5777452",
"0.5748033",
"0.5748033",
"0.57467586",
"0.57263714",
"0.5710368",
"0.568... | 0.650883 | 3 |
Unix timestamps are accepted as absolute time specifications. | def yh4K(YKHO):
YKHO.assertEqual(LrXp('1422748800', None), qcWV(2015, 2, 1, 0, 0, 0))
YKHO.assertEqual(LrXp('0', None), qcWV(1970, 1, 1, 0, 0, 0))
YKHO.assertEqual(LrXp('19000101', None), qcWV(1970, 8, 8, 21, 48, 21))
YKHO.assertEqual(LrXp('20150132', None), qcWV(1970, 8, 22, 5, 15, 32))
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I0AZ():\n zEDT = E3oo('December 15, 2015')\n assert zEDT == {'unix': 1450137600, 'natural': 'December 15, 2015'}\n Ei1M = E3oo('1450137600')\n assert Ei1M == {'unix': 1450137600, 'natural': 'December 15, 2015'}",
"def azw4():\n return int(ITS7.time())",
"def Ynye(M_Ra):\n WyrD = PFlq(M_Ra... | [
"0.6568363",
"0.64676094",
"0.63964117",
"0.62789583",
"0.6265217",
"0.62544745",
"0.6240911",
"0.622704",
"0.6160825",
"0.6132929",
"0.6123738",
"0.6114812",
"0.60862285",
"0.6079087",
"0.60577965",
"0.6041476",
"0.600395",
"0.5978107",
"0.5952521",
"0.5917838",
"0.59091675"... | 0.69407755 | 0 |
Run func every interval seconds. If func has not finished before interval, will run again immediately when the previous iteration finished. | async def _async_repeat(YKHO, JfyU):
while True:
yKcO = ITS7.monotonic()
await JfyU()
vYBr = YKHO.period / 1000.0 - (ITS7.monotonic() - yKcO)
if vYBr > 0:
await V7ok.sleep(vYBr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7GL(YKHO, JfyU, kRsb):\n\n def wWk4():\n YKHO.__set_interval(JfyU, kRsb)\n JfyU()\n a1PO = T6FA.Timer(kRsb, wWk4)\n a1PO.start()\n return a1PO",
"def ZJyq(C6wh, FYKK):\n\n def h3Xc(IesV):\n try:\n FYKK()\n IesV.enter(C6wh, 1, h3Xc, (IesV,))\n ... | [
"0.7132605",
"0.7132258",
"0.69771606",
"0.6975447",
"0.6652803",
"0.65566665",
"0.6453951",
"0.64293045",
"0.637259",
"0.63594073",
"0.6359165",
"0.6342055",
"0.62945026",
"0.6166782",
"0.61098635",
"0.60973805",
"0.60892016",
"0.6034639",
"0.5943972",
"0.5919979",
"0.590021... | 0.6998775 | 2 |
Add the hxladd filter to the end of the chain. | def lr_B(JZXy, qIxc, d6pt):
rUVr = c87L(qIxc.get('add-tag%02d' % d6pt))
WBPg = qIxc.get('add-header%02d' % d6pt)
BWXx = qIxc.get('add-value%02d' % d6pt, '')
h3Aq = qIxc.get('add-before%02d' % d6pt) == 'on'
hkxX = [(Dlwd.Column.parse(rUVr, header=WBPg), BWXx)]
return JZXy.add_columns(specs=hkxX, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nzcB(YKHO, filter):\n if filter not in YKHO.filters:\n YKHO.filters = YKHO.filters + [filter]",
"def TQ9n(qIxc, LFdf=Lzwy, zJsh=HwRy.stdout, wIbz=HwRy.stderr):\n wvEv = HGIJ('Add new columns with constant or computed values to a HXL dataset.')\n wvEv.add_argument('-s', '--spec', help='Constan... | [
"0.5674146",
"0.5450161",
"0.54161954",
"0.53882647",
"0.5341923",
"0.52777165",
"0.5194737",
"0.50652635",
"0.50270283",
"0.49021298",
"0.48996133",
"0.4852402",
"0.48199126",
"0.47835308",
"0.47515863",
"0.4725746",
"0.46435115",
"0.46328098",
"0.4622889",
"0.45699045",
"0.... | 0.4847868 | 12 |
Filter previously recognized words from this window's recognized words this are the same words positionwise. | def q3Yw(Uc3V, qEAo):
g68O = []
if Uc3V:
for Jut_ in qEAo:
IdWP = False
for cSg2 in Uc3V:
if X0P6._do_words_intersect(Jut_, cSg2):
IdWP = True
break
if not IdWP:
g68O.append(Jut_)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CN0r(YKHO):\n nKof = []\n for YRbF in range(len(YKHO.currentBoard)):\n if YKHO.currentBoard[YRbF] != '_':\n nKof.append((YRbF, YKHO.currentBoard[YRbF]))\n YKHO.wordList = list(filter(lambda GIN8: YKHO.viableWord(GIN8, nKof), YKHO.wordList))",
"def mEsC(YKHO):\n if max([len(WKvO)... | [
"0.70234567",
"0.6673409",
"0.65990704",
"0.6575512",
"0.64956737",
"0.6322365",
"0.6290354",
"0.6218696",
"0.61996484",
"0.6176571",
"0.61601317",
"0.6129641",
"0.61224663",
"0.6096503",
"0.60807073",
"0.6073102",
"0.5955998",
"0.58935803",
"0.5877056",
"0.58638126",
"0.5843... | 0.6491436 | 5 |
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL. | def k66M(YKHO, *qIxc, **B2fa):
upih = yYpS.objects.all()
xDcj = YKHO.request.GET.get('q')
if xDcj:
upih = upih.OrderingFilter(T8ck(db_area__icontains=xDcj) | T8ck(status__icontains=xDcj)).distinct()
return upih | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)",
"def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:... | [
"0.59682834",
"0.59662503",
"0.59339905",
"0.59121907",
"0.59062797",
"0.56636876",
"0.5653978",
"0.5544974",
"0.5541318",
"0.55099636",
"0.5504582",
"0.5494414",
"0.5487761",
"0.5483002",
"0.5471986",
"0.5471543",
"0.5451524",
"0.54157865",
"0.54070425",
"0.53802735",
"0.537... | 0.0 | -1 |
This is the main page for the EBP application | def d6pt(QePW):
if QePW.method == 'POST':
L03z = WKiL(QePW.POST)
if L03z.is_valid():
L03z.save()
jGRS = HjBM.dumps({'status': 'success'})
return igJ6(jGRS, mimetype='application/json')
L03z = WKiL(auto_id='%s')
return SGJU('index.html', {'form': L03z}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n return TvZl('index.html', title='Home', heading='Dublin Bus')",
"def Ozko():\n return TvZl('main_page.html')",
"def b8V_():\n aevO.sidebar.title('MỤC LỤC')\n SuM2 = aevO.sidebar.radio('Go to', list(Wmpq.keys()))\n B2Dn = Wmpq[SuM2]\n with aevO.spinner(f'Loading {SuM2} ...'):\n ... | [
"0.7146576",
"0.6992902",
"0.69471747",
"0.69064087",
"0.68774116",
"0.6837949",
"0.6729991",
"0.6710734",
"0.6679546",
"0.66456115",
"0.6631698",
"0.662635",
"0.662635",
"0.6622045",
"0.6620401",
"0.66095394",
"0.6584981",
"0.657668",
"0.65752214",
"0.6548664",
"0.65399516",... | 0.0 | -1 |
This view exports all patient records in the database to a csv file. | def uGLB(QePW, P4t4, C3ST):
yQed = [Mkmy.reason_id for Mkmy in MXtx.objects.order_by('reason_id')]
CQ4l = ['Patient ID', 'Vesicant/Irritant?', 'IV Attempts']
CQ4l += yQed
geh0 = igJ6(mimetype='text/csv')
geh0['Content-Disposition'] = 'attachment; filename=ebp.csv'
WJI9 = m6_J.writer(geh0)
WJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g75F(QePW):\n if not QePW.user.is_authenticated():\n return Yd7Q('/login/?next=%s' % QePW.path)\n Ux0P = 'export-inscrits%s.csv' % _c1T.today().strftime('%y-%m-%d')\n azSe = nj3W.objects.all()\n tyNF = VsvW(azSe)\n tyNF.order_by = QePW.GET.get('sort', 'last_name')\n geh0 = igJ6(mimetyp... | [
"0.7210922",
"0.700289",
"0.6851801",
"0.6830999",
"0.6803495",
"0.67603964",
"0.67317826",
"0.6704199",
"0.6671088",
"0.6668821",
"0.66361064",
"0.6625432",
"0.6604797",
"0.65415525",
"0.64768344",
"0.6475871",
"0.6445369",
"0.6443853",
"0.6398936",
"0.63887995",
"0.6348947"... | 0.8058624 | 0 |
Generate random string of length=n. | def e7Tf(YKHO, exwG, QmjV=False, IuUc=False):
y0cW = tuKI.choice(vIwR.ascii_lowercase)
Lcgb = vIwR.ascii_lowercase + vIwR.digits
if QmjV:
Lcgb += vIwR.ascii_uppercase
if IuUc:
Lcgb += vIwR.punctuation
ZI14 = ''.join((tuKI.choice(Lcgb) for bGrB in range(exwG - 1)))
return y0cW + Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(exwG)))",
"def j9F_(exwG):\n k6Di = vIwR.digits + vIwR.letters\n return ''.join((tuKI.choice(k6Di) for YRbF in Ni9Y(exwG)))",
"def e7Tf(ywwl):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bG... | [
"0.86483145",
"0.8581468",
"0.8542844",
"0.8257327",
"0.8098701",
"0.807988",
"0.79065007",
"0.7890792",
"0.785203",
"0.7787804",
"0.77100617",
"0.7689637",
"0.7676379",
"0.7668683",
"0.76608086",
"0.7650799",
"0.7645829",
"0.76343864",
"0.7628813",
"0.761638",
"0.75866395",
... | 0.75803596 | 22 |
Generate list filled in with random strings. | def nl9B(YKHO):
if YKHO.iteration_deep < YKHO.max_iteration_deep:
YKHO.iteration_deep += 1
BWXx = YKHO.generate_random_list(5)
YKHO.iteration_deep -= 1
else:
BWXx = YKHO.generate_random_value(str)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZ5Y(YKHO, exwG):\n bkSI = 'string_'\n kcsq = [bkSI + str(YRbF) for YRbF in range(exwG)]\n return kcsq",
"def Z0qV(mdUW, gZgb, u54L):\n _CS_ = []\n for bGrB in range(0, mdUW):\n _CS_.append(ZAh2(gZgb, ajWY(0, u54L)))\n return _CS_",
"def cZ5Y(vOPP, u54L):\n return [tTpl for tTpl... | [
"0.7400639",
"0.73694855",
"0.7185587",
"0.7178502",
"0.69999796",
"0.69939125",
"0.6979388",
"0.69400686",
"0.69090295",
"0.69053996",
"0.6869956",
"0.6869956",
"0.6869956",
"0.68513846",
"0.6832759",
"0.6790268",
"0.67359257",
"0.6718414",
"0.6687385",
"0.66872764",
"0.6669... | 0.6558872 | 27 |
Generate random payload with possibly restricted data types. | def C29w(YKHO, UC7f=None):
if UC7f:
SnBA = UC7f
else:
SnBA = (str, int, float, list, dict, bool)
KEf_ = tuKI.choice(SnBA)
return YKHO.generate_random_value(KEf_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pIB0(u54L=XbsV):\n pB3N = ''\n for YRbF in range(u54L):\n pB3N += tuKI.choice(sA85)\n return pB3N",
"def B5fA(zNig=32, SRYB=0):\n if SRYB:\n zNig = tuKI.randint(zNig - SRYB, zNig + SRYB)\n return ''.join((tuKI.choice(vIwR.ascii_uppercase) for bGrB in range(zNig)))",
"def ym2E(Y... | [
"0.69498396",
"0.6536909",
"0.63344264",
"0.6207788",
"0.6170156",
"0.6010075",
"0.58474576",
"0.58460206",
"0.58064884",
"0.5804888",
"0.568156",
"0.56779945",
"0.55997795",
"0.5552533",
"0.5523869",
"0.5519157",
"0.55029804",
"0.5494486",
"0.5483897",
"0.5471045",
"0.546747... | 0.8258906 | 0 |
Sets the gateway_id of this ApiDownlinkTXInfo. | def iczE(YKHO, iczE):
YKHO._gateway_id = iczE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ddln(YKHO, kdXA):\n YKHO._validator.validate_one('gateway', iyhn['gateway'], kdXA)\n YKHO._ifAttributes['gateway'] = kdXA",
"def Ddln(YKHO):\n YKHO.gatewayip = YKHO.settings.getKeyValue('gatewayip')\n YKHO.socket.send('setenv gatewayip ' + YKHO.gatewayip + '\\r', 1)\n return None",
"def AqGw... | [
"0.6919861",
"0.60536194",
"0.604395",
"0.60017335",
"0.59344053",
"0.5926787",
"0.55722654",
"0.5332749",
"0.5325832",
"0.5280625",
"0.5279205",
"0.52737546",
"0.521756",
"0.5206157",
"0.51509136",
"0.5148105",
"0.5134872",
"0.5122857",
"0.50948477",
"0.50948477",
"0.5079517... | 0.7931258 | 0 |
Sets the gps_epoch_timing_info of this ApiDownlinkTXInfo. | def w9eg(YKHO, w9eg):
YKHO._gps_epoch_timing_info = w9eg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sSDF(YKHO, BWXx):\n return UiY4.coordsys_setepoch(YKHO, BWXx)",
"def GpFb(YKHO, qtWj):\n YKHO.epoch = qtWj",
"def GpFb(YKHO, qtWj):\n pass",
"def bc9I(YKHO, bc9I):\n YKHO._upgrade_time_epoch = bc9I",
"def pCwI(YKHO, pCwI):\n YKHO._delay_timing_info = pCwI",
"def GpFb(YKHO, qtWj=None):\... | [
"0.5732914",
"0.57127017",
"0.55906236",
"0.5399973",
"0.53581995",
"0.5354772",
"0.5219372",
"0.50478864",
"0.49914047",
"0.49295107",
"0.48875806",
"0.48127365",
"0.4804546",
"0.4775048",
"0.47504318",
"0.4739642",
"0.47354516",
"0.47085053",
"0.469108",
"0.46769345",
"0.46... | 0.8469009 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, mmbD):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Piecewise approximate sigmoid as in | def nbiY(WKvO, exwG=3):
if exwG == 5:
L4UL = [-5, -2.5, 2.5, 5]
LJE9 = [0] + [WKvO <= o7uO for o7uO in L4UL] + [1]
EfUA = [LJE9[YRbF + 1] - LJE9[YRbF] for YRbF in range(5)]
o4Jx = [O_8r(10 ** (-4)), 0.02776 * WKvO + 0.145, 0.17 * WKvO + 0.5, 0.02776 * WKvO + 0.85498, O_8r(1 - 10 ** (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 - naF9(tTpl, -WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))",
"def m1Hg(epBp):\n retur... | [
"0.8297419",
"0.8297419",
"0.8279786",
"0.82694346",
"0.8248122",
"0.82446915",
"0.82367516",
"0.82317275",
"0.82155514",
"0.82155514",
"0.82155514",
"0.82155514",
"0.82155514",
"0.82155514",
"0.8200153",
"0.81978446",
"0.81973517",
"0.817581",
"0.817581",
"0.816984",
"0.8169... | 0.75954014 | 95 |
ReLU function (maximum of input and zero). | def QZir(WKvO):
return (0 < WKvO).if_else(WKvO, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQIR(YKHO, WKvO):\n YKHO.x = WKvO\n hlel = oyIN.maximum(0, WKvO)\n return hlel",
"def QQIR(YKHO, WKvO):\n YKHO.x = WKvO\n return oyIN.maximum(WKvO, 0)",
"def ItoN(YKHO):\n YKHO.value = max(0, YKHO.value)",
"def QZir(EcVT):\n return oyIN.maximum(0, EcVT)",
"def QZir(WKvO):\n retu... | [
"0.87718457",
"0.85021996",
"0.8275824",
"0.82347953",
"0.82326967",
"0.80922556",
"0.8020506",
"0.78752035",
"0.7717848",
"0.77176964",
"0.7681261",
"0.7585562",
"0.7579859",
"0.7560288",
"0.7509278",
"0.7448967",
"0.74142826",
"0.7400012",
"0.72916",
"0.7225491",
"0.7213747... | 0.6501869 | 54 |
Compute index of maximum element. | def q1NN(WKvO):
def khtY(jzdc, Fg_i):
yCnv = jzdc[1] > Fg_i[1]
return (yCnv.if_else(jzdc[0], Fg_i[0]), yCnv.if_else(jzdc[1], Fg_i[1]))
return WHjw(khtY, enumerate(WKvO))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYEG(jzdc):\n return jzdc.argmax()",
"def BYEG(jzdc):\n return jzdc.argmax()",
"def BYEG(jzdc):\n return jzdc.argmax()",
"def KO11(YKHO):\n return YKHO.elem.index(max(YKHO))",
"def max(YKHO):\n max = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] !... | [
"0.8322118",
"0.8322118",
"0.8322118",
"0.8297905",
"0.78759944",
"0.7831312",
"0.7605612",
"0.7584218",
"0.7570792",
"0.7559726",
"0.7512239",
"0.72421354",
"0.7216627",
"0.72009104",
"0.7186902",
"0.7091226",
"0.706059",
"0.7038191",
"0.703262",
"0.703001",
"0.7014685",
"... | 0.6547924 | 74 |
Construct linear graph from list of layers. | def fhcK(YKHO, fhcK):
YKHO._layers = fhcK
THkp = None
for gEmA in fhcK:
if not gEmA.inputs and THkp is not None:
gEmA.inputs = [THkp]
THkp = gEmA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dUho(WKvO, ywwl, o4Jx=1):\n with Nq1b.layers.default_options(initial_state=0.1):\n return NQCf(WKvO, o4Jx)",
"def FIMM(YKHO, _mSQ=[], ppkj=[]):\n YKHO._layers = [FNYZ(yzQ0, jzdc) for yzQ0, jzdc in zip(_mSQ, ppkj)]",
"def TCIu(fhcK):\n return CDet(fhcK)",
"def DZve(g4y1, eVVj):\n if not... | [
"0.60474527",
"0.60157764",
"0.59577614",
"0.5922712",
"0.5888689",
"0.5882378",
"0.57670313",
"0.57468146",
"0.5709293",
"0.5690243",
"0.5664038",
"0.5629808",
"0.56187624",
"0.5610542",
"0.55311537",
"0.54778516",
"0.5452981",
"0.5437914",
"0.5407891",
"0.5407834",
"0.53705... | 0.49630457 | 95 |
Takes in an action and does it in the environment Returns next state, reward, and if the env is done | def YPaw(YKHO, XeOP):
if XeOP[1] > 0:
WWw8 = XeOP[1]
bxdA = 0.0
gxEw = False
elif XeOP[1] < 0:
WWw8 = -XeOP[1]
bxdA = 0.0
gxEw = True
else:
WWw8 = 0.0
gxEw = False
bxdA = 1.0
for YRbF in range(5):
try:
YKHO.vehic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, XeOP):\n Ylbp = YKHO.reward_table.get(YKHO.curr_state, XeOP)\n YKHO.curr_state = Ylbp['result']\n return Ylbp",
"def YPaw(YKHO, XeOP):\n W061 = YKHO.gym.get_observations()\n xlpn = YKHO.gym.act(W061)\n xlpn.insert(YKHO.gym.training_agent, XeOP)\n QTBn, vOGg, f9TP, U34r = YKHO.... | [
"0.79443616",
"0.7808671",
"0.7780876",
"0.77469635",
"0.77188915",
"0.7704215",
"0.7677617",
"0.76512796",
"0.7646551",
"0.76038456",
"0.7579655",
"0.7555507",
"0.75514054",
"0.7544992",
"0.751271",
"0.7510762",
"0.7497757",
"0.7493163",
"0.74923223",
"0.74861497",
"0.741180... | 0.0 | -1 |
Calculate reward for step (assuming no collision) | def xMMl(YKHO):
vOGg = 0.0
if YKHO.calc_lane_invasion:
Xl9d = YKHO.world.get_map().get_waypoint(YKHO.vehicle.get_location(), project_to_road=True, lane_type=CRxp.LaneType.Driving | CRxp.LaneType.Shoulder | CRxp.LaneType.Sidewalk)
BNfY = Xl9d.lane_change
v0Zn = Xl9d.left_lane_marking
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jc_J(YKHO):\n if YKHO.status():\n return YKHO.current_step / YKHO.ep_length\n else:\n return 0",
"def _KvT(YKHO):\n vOGg = -1\n return vOGg",
"def Xaq_(YKHO):\n return 1 - YKHO.step_count / YKHO.max_steps",
"def _KvT(YKHO):\n vOGg = 0.0\n return vOGg",
"def xyVK(YKHO,... | [
"0.81952924",
"0.7955531",
"0.78529656",
"0.77384895",
"0.77119255",
"0.77065194",
"0.7576939",
"0.7566296",
"0.75598776",
"0.755324",
"0.75351113",
"0.7491073",
"0.74761295",
"0.74704194",
"0.7437812",
"0.7437812",
"0.7437812",
"0.7437812",
"0.7437812",
"0.7437812",
"0.74135... | 0.7511983 | 11 |
List of Transitions of batches to tensors batch states, actions, rewards. | def PPcH(YKHO, Wc9F, tKoM=None):
Wc9F = j7A7(*zip(*Wc9F))
Pqjz = ht2j.cat(Wc9F.state, 0).float()
fh_V = [WKvO for WKvO in Wc9F.state_ if WKvO is not None]
fh_V = ht2j.cat(fh_V, 0).float()
mP_b = ht2j.cat(Wc9F.action, 0)
GfYY = ht2j.cat(Wc9F.reward, 0).float()
ZHfW = ht2j.cat(Wc9F.done, 0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xNMX(YKHO):\n UlCL = []\n for rdlD in YKHO.states:\n qDYx = []\n for iVRZ in YKHO.states:\n qDYx.append([rdlD, iVRZ])\n UlCL.append(qDYx)\n return sorted(UlCL)",
"def tCjd(YKHO):\n return YKHO.actor(ZylS.numpy_function(YKHO.get_states, [], YKHO.states[0].dtype))",
... | [
"0.60373837",
"0.6035876",
"0.59591216",
"0.5832653",
"0.5773047",
"0.5750845",
"0.56785667",
"0.56773865",
"0.56744826",
"0.5582856",
"0.5561903",
"0.54386777",
"0.536652",
"0.535158",
"0.53441596",
"0.53282326",
"0.53147984",
"0.52974415",
"0.528768",
"0.5279493",
"0.527387... | 0.6422988 | 0 |
Return Tru if this has access else False. | def b25E(YKHO, bseI: EveCharacter) -> h8nf[bool]:
XziQ = YKHO.structure.owner.corporation
if bseI.corporation_id == XziQ.corporation_id:
return True
if XziQ.alliance and XziQ.alliance.alliance_id == bseI.alliance_id:
return YKHO.allow_alliance_access
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJMH(YKHO, CBIr, keBP=True):\n return CBIr.is_superuser and keBP or len(YKHO.tas.filter(id=CBIr.id)) > 0",
"def Iw6c(YKHO):\n LFqd = YKHO.get_object()\n Ljye = YKHO.request.user.rfid == LFqd.rfid\n JC1z = YKHO.request.user.has_permission('core.view_member')\n return JC1z or Ljye",
"def nCBc(... | [
"0.70299596",
"0.62975913",
"0.62940633",
"0.6240272",
"0.61777246",
"0.61737764",
"0.6110906",
"0.6104301",
"0.6022093",
"0.5994377",
"0.5994087",
"0.5974726",
"0.5968357",
"0.5957992",
"0.5931469",
"0.59304935",
"0.5925713",
"0.58847827",
"0.58722425",
"0.58722425",
"0.5871... | 0.0 | -1 |
Returns the version of an installed pip package. | def eLfo(hxGQ):
try:
NhaB = Yn3K.check_output(['pip', 'show', hxGQ])
except Yn3K.CalledProcessError:
print('ERROR: Package %s has not been installed with pip.' % hxGQ, file=HwRy.stderr)
exit(1)
for zFiD in NhaB.split('\n'):
r8hN = ZbWC.match('Version: (.+)', zFiD)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO):\n return YKHO.pip_requirement.installed_version",
"def YXIC():\n try:\n import pkg_resources\n IexU = pkg_resources.get_distribution('imagesplit').version\n if xR_t(IexU):\n return IexU\n return None\n except:\n return None",
"def kaPv():\n... | [
"0.8061723",
"0.7590231",
"0.75444794",
"0.7524287",
"0.7412558",
"0.7151705",
"0.70828795",
"0.70327353",
"0.702366",
"0.70179385",
"0.69494975",
"0.69481903",
"0.6897285",
"0.68888116",
"0.68674886",
"0.6855834",
"0.6849615",
"0.6849615",
"0.6849615",
"0.6849615",
"0.684961... | 0.84659505 | 0 |
Returns the version of the Cloud SDK that is installed. | def fM6w():
H8cT = Yn3K.check_output(['gcloud', 'version'])
for zFiD in H8cT.split('\n'):
r8hN = ZbWC.match('Google Cloud SDK (.+)', zFiD)
if r8hN:
return r8hN.group(1)
print('ERROR: Unable to parse "gcloud version" output: %s' % H8cT, file=HwRy.stderr)
exit(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1EZ() -> str:\n return xHrl.get_sdk_version()",
"def DpZH(YKHO) -> str:\n return BfDw._auxiliary.get_current_sdk_version()",
"def DpZH(YKHO):\n if YKHO.running() is True:\n return uk1U.get('/version').content\n else:\n return None",
"def WKwY(YKHO) -> str:\n return qe4Y.get(... | [
"0.7747168",
"0.7563308",
"0.6964963",
"0.6947981",
"0.69341844",
"0.6909471",
"0.6896979",
"0.6867608",
"0.6844083",
"0.6833969",
"0.6831793",
"0.6807727",
"0.67498183",
"0.67498183",
"0.67498183",
"0.6741479",
"0.67219037",
"0.6704942",
"0.66849583",
"0.66758305",
"0.666183... | 0.81744576 | 0 |
Resistance of the TES shunt resistors. Gets or sets the resistance of the TES shunt resistors. Assumes the same shunt resistance for every channel. Units are Ohms. Specified in the pysmurf configuration file as `R_sh`. Returns float Resistance of the TES shunt resistors in Ohms. See Also | def WfE0(YKHO):
return YKHO._R_sh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QtCO(YKHO):\n YKHO.read(':RES?')",
"def tWB3(YKHO, lRF5, Rci7, j9Ir, hlBx):\n UViF = j9Ir['FWI'] * lRF5.get_surface_fuel(Rci7)\n AmW_ = lRF5.acres_per_cell * 4046.85642\n CFO5 = epAf.sqrt(AmW_)\n AwDM = 1.0 / CFO5\n Cnmv = UViF * AwDM\n qaFe = YKHO.hours_burn_time_per_day * (60.0 * Cnmv)... | [
"0.6318244",
"0.57304883",
"0.57296634",
"0.56824136",
"0.5564344",
"0.55062854",
"0.5492521",
"0.5440512",
"0.5427438",
"0.5385388",
"0.5375415",
"0.5342348",
"0.53245705",
"0.53000706",
"0.52947384",
"0.52810884",
"0.52737665",
"0.5268083",
"0.5267711",
"0.5254399",
"0.5243... | 0.0 | -1 |
Current ratio between low to highcurrent modes. Gets or sets the ratio of currents sourced by the cryostat card for the same applied TES bias voltage (from the RTM, at the input to the cryostat card) in high versus lowcurrent cryostat card TES bias relay modes. In typical applications, this ratio is >1, since otherwise... | def PGGk(YKHO):
return YKHO._high_low_current_ratio | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aU0C(YKHO):\n return YKHO.current_assets / YKHO.current_liabilities",
"def tb8V(YKHO):\n pass",
"def jvSB(YKHO) -> float:\n return YKHO._electric_current",
"def pbzR(YKHO):\n jGRS = YKHO.get_status_response()\n jvSB = jGRS[16] + jGRS[17] * 256 + jGRS[18] * 65536 + jGRS[19] * 16777216\n ... | [
"0.6195197",
"0.5773408",
"0.5766061",
"0.5761815",
"0.56209284",
"0.5580696",
"0.55429494",
"0.5540704",
"0.5535772",
"0.5533446",
"0.5510715",
"0.5496082",
"0.54872197",
"0.54376376",
"0.5406497",
"0.5401106",
"0.5356859",
"0.5277265",
"0.5263593",
"0.5250575",
"0.5244719",... | 0.7305861 | 0 |
Set the object's owner, based on the incoming request. | def UJGz(YKHO, YEnM):
YEnM.owner = YKHO.request.user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6",
"def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6",
"def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6",
"def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6",
"def KVVd(YKHO, qsJ6):\n YKHO.__owner = qsJ6",
"def qsJ6(YKHO, qsJ6: str):\n YKHO._owner = qsJ6",
"def... | [
"0.77522546",
"0.77522546",
"0.77522546",
"0.77522546",
"0.77259594",
"0.76241726",
"0.7585329",
"0.7585329",
"0.7585329",
"0.7585329",
"0.74665624",
"0.7376495",
"0.7239318",
"0.70856524",
"0.70856524",
"0.70856524",
"0.693037",
"0.6917968",
"0.68637943",
"0.6718803",
"0.669... | 0.76030654 | 6 |
Checks whether a provided number of days has passed since the user has registered. | def N4Ev(YKHO, Sm0u):
return rIAI.now() >= YKHO.user.date_joined + fCoM(days=Sm0u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Udvj(YKHO, DpUl, NtEF, kepv, KhBf):\n DpUl.execute('SELECT days_free FROM users WHERE username = ?', (NtEF,))\n rGw_ = DpUl.fetchone()[0]\n qfAF = abs(YKHO.days_difference(kepv, KhBf))\n return rGw_ >= qfAF",
"def CT0b():\n pass",
"def emYg(YKHO):\n emYg = (qcWV.utcnow() - YKHO.date_joine... | [
"0.7525601",
"0.7008091",
"0.62901556",
"0.62691236",
"0.60377187",
"0.60054314",
"0.6001344",
"0.5909698",
"0.5859116",
"0.58524185",
"0.5815721",
"0.5808451",
"0.5802401",
"0.5789253",
"0.57835424",
"0.57718194",
"0.5751567",
"0.57273835",
"0.572618",
"0.57025343",
"0.56655... | 0.733879 | 1 |
Plot the classification graph This function plots the classification graph showing the ground truth labels and the predicted ones. It also points out oo the missclassifications, and displays several classification metrics to show the model's performance. | def Tuj8(EcVT, LVAh, Y8eF, aMgO, Wbxz=('acc', 'sen', 'spe'), Z6Cv=(12, 5), dlpY=True, eJct='figure.pdf', dCji='x', cHAw='y', **kVJe):
if not isinstance(EcVT, rLdf.Series):
EcVT = rLdf.Series(EcVT.reshape((len(EcVT),)))
if not isinstance(LVAh, rLdf.Series):
LVAh = rLdf.Series(LVAh.reshape((len(LV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO):\n QrM1.imshow(YKHO.cm, interpolation='nearest', cmap=YKHO.cmap)\n QrM1.title(YKHO.title)\n QrM1.colorbar()\n wIWT = oyIN.arange(len(YKHO.classes))\n QrM1.xticks(wIWT, YKHO.classes, rotation=45)\n QrM1.yticks(wIWT, YKHO.classes)\n if YKHO.normalize:\n YKHO.cm = YKHO.cm.as... | [
"0.7271683",
"0.6842304",
"0.6806655",
"0.67334706",
"0.66736966",
"0.6663137",
"0.66581595",
"0.6592424",
"0.6562138",
"0.6552475",
"0.6524335",
"0.6505397",
"0.6451862",
"0.64473957",
"0.6429136",
"0.6376398",
"0.6337301",
"0.6322782",
"0.63144886",
"0.62976277",
"0.6272034... | 0.6984989 | 1 |
Computes the product of the dimensions of a given shape tensor | def Qn2i(ROpF):
Aofo = 1
for zNig in ROpF:
Aofo *= zNig
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QRFO(vhpA, jDK_=None):\n raise NotImplementedError",
"def b29P(J9oU, QCf9):\n Odaz = J9oU.shape\n MxS4 = QCf9.shape\n j93S = len(Odaz)\n Nqp_ = len(MxS4)\n Odaz = Odaz + (1,) * Nqp_\n MxS4 = (1,) * j93S + MxS4\n return oyIN.reshape(J9oU, Odaz) * oyIN.reshape(QCf9, MxS4)",
"def Uj7J(... | [
"0.65110505",
"0.6196526",
"0.6171097",
"0.61670285",
"0.61670285",
"0.6159431",
"0.6142523",
"0.6121647",
"0.60397756",
"0.60302424",
"0.6011385",
"0.5927092",
"0.590197",
"0.5897427",
"0.5882737",
"0.5847271",
"0.5830619",
"0.5792986",
"0.5783287",
"0.5706623",
"0.57045895"... | 0.7404119 | 0 |