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 |
|---|---|---|---|---|---|---|
Returns the BeautifulSoup object Allows you to select the parser library. | def Z9JV(YKHO, bD7m):
try:
if YKHO.is_connected():
_R2e = YKHO.get_html(bD7m)
Z9JV = rKuS(_R2e, YKHO.lib_bs)
return Z9JV
except iUKr as e:
print(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kqu4(YKHO, _R2e):\n if _R2e is not None:\n Z9JV = rKuS(_R2e, 'html.parser')\n return Z9JV\n else:\n return",
"def kqu4(YKHO, hGN5, wvEv='lxml'):\n return A0Fa.BeautifulSoup(hGN5, wvEv)",
"def tQuv(Eu42, wvEv='html.parser'):\n return rKuS(Eu42, wvEv)",
"def kqu4(_R2e):\n ... | [
"0.75007015",
"0.7248399",
"0.7167461",
"0.7135741",
"0.71253496",
"0.69940996",
"0.69707876",
"0.6927591",
"0.69231623",
"0.69151646",
"0.69099486",
"0.69078016",
"0.6816899",
"0.68127006",
"0.6796744",
"0.6794878",
"0.6746331",
"0.6746331",
"0.6716902",
"0.6715006",
"0.6708... | 0.6319263 | 58 |
String for representing the Model object. | def zAg0(YKHO):
mWFP = YKHO.first_name + ' ' + YKHO.last_name
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81892824",
"0.80928355",
"0.7958657",
"0.7849373",
"0.78411466",
"0.7667056",
"0.7577242",
"0.7566466",
"0.7561851",
"0.7548706",
"0.7483726",
"0.7465762",
"0.74535877",
"0.74535877",
"0.7448269",
"0.74476784",
"0.74476784",
"0.74476784",
"0.74132323",
"0.7407112",
"0.7399... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
if YKHO.role == 'Dentist':
mWFP = 'Dr ' + YKHO.user.last_name
elif YKHO.role == 'Assistant':
mWFP = 'Assistant ' + YKHO.user.first_name + ' ' + YKHO.user.last_name
else:
mWFP = YKHO.user.first_name + YKHO.user.last_name
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Setter method for spf6_interval_level, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/spf6_interval/spf6_interval_level (enumeration) | def mj0H(YKHO, Ty9i, tyeH=False):
_AKB = getattr(YKHO, '_parent', None)
if _AKB is not None and tyeH is False:
raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0f2(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('spf6_interval_level', oBsU.spf6_interval, yang_name='spf6-interval', rest_name='spf-interval', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO.... | [
"0.7506517",
"0.7073012",
"0.60942376",
"0.59495664",
"0.5933061",
"0.5687566",
"0.5172329",
"0.51676166",
"0.4965473",
"0.49175382",
"0.47632957",
"0.45411566",
"0.44978672",
"0.44358015",
"0.44229835",
"0.44219267",
"0.4414027",
"0.43944994",
"0.4365677",
"0.4301329",
"0.42... | 0.8114732 | 0 |
Getter method for spf6_interval_max_hold_time, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/spf6_interval/spf6_interval_max_hold_time (uint32) | def Hnho(YKHO):
return YKHO.__spf6_interval_max_hold_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXZA(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..120']}), is_leaf=True, yang_name='spf6-int... | [
"0.8301482",
"0.71750414",
"0.6412694",
"0.53608525",
"0.52971846",
"0.51496077",
"0.51190853",
"0.49991888",
"0.4981803",
"0.49741897",
"0.49627572",
"0.49598822",
"0.49407753",
"0.49298722",
"0.49030977",
"0.48653874",
"0.48648733",
"0.48539776",
"0.48382226",
"0.48257557",
... | 0.7890906 | 1 |
Setter method for spf6_interval_max_hold_time, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/spf6_interval/spf6_interval_max_hold_time (uint32) | def nXZA(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..120']}), is_leaf=True, yang_name='spf6-interval-max... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hnho(YKHO):\n return YKHO.__spf6_interval_max_hold_time",
"def w78k(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restric... | [
"0.76328814",
"0.7380364",
"0.60686326",
"0.5442684",
"0.5434132",
"0.54177916",
"0.5323735",
"0.5240505",
"0.5238556",
"0.52345425",
"0.52161825",
"0.51944584",
"0.5134229",
"0.5084957",
"0.50585204",
"0.50173014",
"0.49933648",
"0.49876773",
"0.49703398",
"0.49132648",
"0.4... | 0.84816414 | 0 |
Getter method for spf6_interval_initial_delay, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/spf6_interval/spf6_interval_initial_delay (uint32) | def l5r_(YKHO):
return YKHO.__spf6_interval_initial_delay | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jN6O(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..120000']}), is_leaf=True, yang_name='spf6-... | [
"0.83156776",
"0.5867109",
"0.5765202",
"0.5624582",
"0.55600774",
"0.5450491",
"0.5356361",
"0.5121814",
"0.5107946",
"0.4933085",
"0.48752153",
"0.48357582",
"0.4747367",
"0.4715759",
"0.46817887",
"0.46774045",
"0.4520107",
"0.4492549",
"0.4437895",
"0.4435648",
"0.4428292... | 0.7726723 | 1 |
Getter method for spf6_interval_hold_time, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/spf6_interval/spf6_interval_hold_time (uint32) | def Q7BY(YKHO):
return YKHO.__spf6_interval_hold_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w78k(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..120000']}), is_leaf=True, yang_name='spf6-... | [
"0.8187914",
"0.75560516",
"0.7060806",
"0.56686217",
"0.55061674",
"0.535181",
"0.5265697",
"0.5158637",
"0.507114",
"0.49959928",
"0.49959928",
"0.4960135",
"0.49521226",
"0.4950563",
"0.48853397",
"0.48853397",
"0.4853327",
"0.48442146",
"0.48127943",
"0.47926113",
"0.4664... | 0.722244 | 2 |
Compare a new string against self.Lastwithstring. Uses one of the "similarity hashing" modules if availble. Returns a ratio describing the similarity level of new vs self.Lastwithstring where a ratio of 1.0 means full equality and 0.0 means no similarity. | def w5Q3(YKHO, BdN0, HeD_=0.8):
if YKHO.Lastswithstring is None:
YKHO.Lastswithstring = ''
gv2B = YKHO.Lastswithstring
if fQz4:
dMYj = QQr7.ratio(BdN0, gv2B)
elif yQdG:
dMYj = ExGB.jaro_distance(BdN0, gv2B)
elif S2yR:
IDKs.fuzz.ratio(BdN0, gv2B)
elif vFFB:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tAcF(YKHO, qoGC, VyPo):\n return luid(None, qoGC, VyPo).ratio()",
"def UN08(YKHO, CZxs, AhJh):\n from difflib import SequenceMatcher\n return SequenceMatcher(None, CZxs, AhJh).ratio()",
"def IEl0(zxIH, GR10):\n return luid(None, zxIH, GR10).ratio()",
"def IYn5(jzdc: str, Fg_i: str) -> float:\... | [
"0.6840279",
"0.6520821",
"0.6507533",
"0.6472643",
"0.6414215",
"0.639628",
"0.63760585",
"0.62230563",
"0.6066748",
"0.6062943",
"0.60442847",
"0.6040997",
"0.6037115",
"0.6009272",
"0.5986022",
"0.593454",
"0.59328485",
"0.5897749",
"0.5855489",
"0.58373195",
"0.5814903",
... | 0.8131686 | 0 |
Updates vectors related to the wheel's drive forces | def s92L(YKHO):
D1Qv = ['frwheel', 'brwheel', 'flwheel', 'blwheel']
N2LP = ['frswerve', 'brswerve', 'flswerve', 'blswerve']
for QyVM, InXf in enumerate(D1Qv):
if YKHO.motor_velocities[InXf] <= 0.05:
YKHO.vectors[InXf].setMagnitude(0)
YKHO.vectors[InXf].setDirection(0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iPck(YKHO):\n vqVR = NArs['rolling_friction']\n for UksD in YKHO.vectors:\n YKHO.resistance_vectors[UksD].setMagnitude(NArs['robot_weight'] / 4 * vqVR)\n YKHO.resistance_vectors[UksD].setDirection(YKHO.vectors[UksD].direction + mM0K)",
"def Rb1B(YKHO):\n D1Qv = ['frwheel', 'brwheel', '... | [
"0.7781727",
"0.77183145",
"0.73871124",
"0.7020525",
"0.69933456",
"0.6759351",
"0.6593495",
"0.6579238",
"0.6566489",
"0.6403748",
"0.63649553",
"0.636218",
"0.6330716",
"0.62301725",
"0.6218452",
"0.6192611",
"0.6181342",
"0.6164108",
"0.61299324",
"0.6100958",
"0.6099797"... | 0.8005027 | 0 |
Finds the total force being applied to the frame, sans friction | def Rb1B(YKHO):
D1Qv = ['frwheel', 'brwheel', 'flwheel', 'blwheel']
m12b = lNLu(0, 0)
YKHO.z_acceleration = 0
for InXf in D1Qv:
jAEU = YKHO.vectors[InXf]
xDH_ = jAEU.magnitude * YUNn(jAEU.direction - bLm4[InXf]) * bszf[InXf]
YKHO.delta_z_accel[InXf] = xDH_
YKHO.z_accelera... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cf2v(YKHO):\n return 0.0",
"def zGzh(YKHO):\n yvY1 = YKHO.G\n BZ33 = YKHO.particles\n QTBn = YKHO.state\n LtyS = [[0, 0]] * len(BZ33)\n for YRbF in range(len(BZ33)):\n for r845 in range(len(BZ33)):\n if r845 == YRbF:\n continue\n LtyS[YRbF] += YKH... | [
"0.7744983",
"0.7650909",
"0.6906451",
"0.68539345",
"0.68509036",
"0.68187624",
"0.6813073",
"0.6813073",
"0.68030137",
"0.6798887",
"0.67775005",
"0.6742185",
"0.669261",
"0.66888887",
"0.6668416",
"0.66658056",
"0.66387427",
"0.66374445",
"0.66062206",
"0.65883344",
"0.658... | 0.0 | -1 |
Criteria for determining if the 2 docs should be looked at for good examples of agreements/disagreements | def DXVt(H9Xa, obrR, IbCb):
return H9Xa > 0.3 and H9Xa < 1 and (obrR > 3) and (IbCb > 3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZep(YKHO, C13M):\n return True",
"def DZep(A97Q, p24E):\n return 1 if A97Q in p24E else 0",
"def bLsR(YKHO):\n ybN4 = []\n for jzdc in ['fred', 'joe']:\n XP5J = YKHO.o.build('shared.doc_reference')\n XP5J.name = jzdc\n XP5J.type = 'shared.party'\n ybN4.append(XP5J)\... | [
"0.624851",
"0.61146647",
"0.5779928",
"0.5748501",
"0.57304126",
"0.57278",
"0.57163894",
"0.5550788",
"0.5535103",
"0.5533085",
"0.5504229",
"0.5502795",
"0.5456968",
"0.5454331",
"0.54476905",
"0.5436332",
"0.54330933",
"0.54299027",
"0.5424542",
"0.54190207",
"0.54177225"... | 0.0 | -1 |
Add question to db and monitoring list | def wWM5(JyK9, QdZT, qIxc):
JVBp = uxcW(qIxc[0])
AhBs = qnbQ.get_answer_quantity(hB5e(JVBp), True)
if AhBs is None:
QdZT.message.reply_text('Link is bad')
return
DVsZ = QdZT.message.chat_id
GPtr.monitoring_list[DVsZ].add(JVBp)
jKvQ.add_question(JVBp)
jKvQ.insert_into_user_que... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wWM5(YKHO, Gmzq):\n if YKHO.validator.validate_qtn(Gmzq):\n bAls = Y4Gy(Gmzq[0], Gmzq[1], Gmzq[2], Gmzq[3], Gmzq[4], Gmzq[5], Gmzq[6])\n YKHO.__repo.store_question(bAls)\n print('question added to master list')",
"def WbG9(YKHO):\n HMjB.append(YKHO)",
"def wWM5(YKHO, bAls, ANfV):... | [
"0.666293",
"0.6468056",
"0.6390111",
"0.62873584",
"0.62818",
"0.62793076",
"0.62641287",
"0.6222832",
"0.6190709",
"0.61848843",
"0.6145848",
"0.61451715",
"0.613291",
"0.6123196",
"0.6099743",
"0.6034955",
"0.6005833",
"0.6005764",
"0.5991323",
"0.5961729",
"0.59596384",
... | 0.68838453 | 0 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr, type='sym'):
if type == 'sym':
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 hEeC.dot(eQUr).dot(hEeC).tocoo()
elif type == 'rw':
... | {
"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 = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()",
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatte... | [
"0.79748905",
"0.78841347",
"0.78669816",
"0.78669816",
"0.78590506",
"0.7824809",
"0.7818386",
"0.7787256",
"0.77343863",
"0.77217567",
"0.77149534",
"0.77057743",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697... | 0.6576296 | 59 |
Dump underlying `self.model_evaluator` instance to json. | def nN8w(YKHO) -> str:
return YKHO.model_evaluator.dump_json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pt6R(YKHO):\n BJY9 = YKHO.to_dict\n return qQXR.dumps(BJY9)",
"def PjZe(YKHO):\n return YKHO.local_model.dumps()",
"def mkDC(YKHO):\n raise NotImplementedError()",
"def PjZe(YKHO):\n return YKHO.__repr__()",
"def PjZe(YKHO):\n return YKHO.__repr__()",
"def wHJl(YKHO):\n return qQ... | [
"0.65924513",
"0.65572274",
"0.64892507",
"0.64167386",
"0.64167386",
"0.639838",
"0.639838",
"0.639838",
"0.639838",
"0.6334833",
"0.63271916",
"0.629181",
"0.629181",
"0.6291147",
"0.6291014",
"0.6256099",
"0.62305796",
"0.6226674",
"0.6204393",
"0.61954266",
"0.6194005",
... | 0.8456265 | 0 |
keep fovy and orthoy as they are and recalculate fovx and orthox according to window size and pixel aspect ratio. w_h window width divided by window height (in pixels) | def mP8T(YKHO, W7R9):
o3rG = W7R9 * YKHO.pixel_aspect_w_h
YKHO.tanfovx_2 = YKHO.tanfovy_2 * o3rG
YKHO.fovx = epAf.degrees(2.0 * epAf.atan(YKHO.tanfovx_2))
YKHO.orthox = YKHO.orthoy * o3rG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBMO(YKHO, osQH, eWKx, BuVc, WKvO, LVAh):\n if osQH == YKHO.ORTHOGONAL:\n CAzz = YKHO.orthox * (float(WKvO) / eWKx - 0.5)\n Jd40 = YKHO.orthoy * (float(LVAh) / BuVc - 0.5)\n Ud7_ = 1.0\n return (iArr.Vector((CAzz, -Jd40, 0.0)), iArr.Vector((0.0, 0.0, Ud7_)))\n elif osQH == YKH... | [
"0.5981519",
"0.592458",
"0.59177005",
"0.5900757",
"0.5717413",
"0.5674382",
"0.5609551",
"0.55963045",
"0.55918276",
"0.5568485",
"0.55386174",
"0.55121833",
"0.55073225",
"0.5489415",
"0.5463993",
"0.5430502",
"0.5425322",
"0.5418863",
"0.5399432",
"0.53978896",
"0.5391401... | 0.66757697 | 0 |
return a ray that goes through the given pixelcoordinate, in cameraspace. NOT normalized. | def MBMO(YKHO, osQH, eWKx, BuVc, WKvO, LVAh):
if osQH == YKHO.ORTHOGONAL:
CAzz = YKHO.orthox * (float(WKvO) / eWKx - 0.5)
Jd40 = YKHO.orthoy * (float(LVAh) / BuVc - 0.5)
Ud7_ = 1.0
return (iArr.Vector((CAzz, -Jd40, 0.0)), iArr.Vector((0.0, 0.0, Ud7_)))
elif osQH == YKHO.PERSPECTI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APf7(YKHO, WKvO: float, LVAh: float, spHt: Ray) -> None:\n ...",
"def DbUC(PbK2):\n kDNl, geyT, uC11 = PbK2\n nMvt, YZxf = WRjJ(kDNl, geyT, uC11, img_w=do44, img_h=Jarx)\n Ya4o = Yy5B(mQnM, Q8UC, kVEQ, raR_, fQ6j)\n DMXs = YZxf[:, :3].transpose()\n D4K3 = -oyIN.matrix(DMXs) * oyIN.matrix(YZ... | [
"0.7134364",
"0.6991869",
"0.645892",
"0.628716",
"0.62578017",
"0.6242003",
"0.6194897",
"0.6153097",
"0.6120125",
"0.59573853",
"0.5886178",
"0.58444995",
"0.5836511",
"0.5832431",
"0.5812584",
"0.5763567",
"0.5745461",
"0.57376635",
"0.57220525",
"0.5692618",
"0.5598226",
... | 0.0 | -1 |
Pass coordinator to CoordinatorEntity. | def FIMM(YKHO, S3vU, Hxoc, gxEw, kfcu):
super().__init__(S3vU)
YKHO._relay = Hxoc
YKHO._config_entry_id = kfcu
YKHO._reverse = gxEw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, S3vU: DataUpdateCoordinator):\n super().__init__(S3vU)",
"def S3vU(YKHO):\n return YKHO._coordinator",
"def Uk9_(YKHO) -> None:\n super()._handle_coordinator_update()",
"def Uk9_(YKHO):\n YKHO._create_device()\n super()._handle_coordinator_update()",
"def FIMM(YKHO, S3vU, begE... | [
"0.65741354",
"0.6480856",
"0.6220483",
"0.60951984",
"0.5868729",
"0.5868729",
"0.58412933",
"0.5784879",
"0.56861967",
"0.56861967",
"0.56861967",
"0.56861967",
"0.5685991",
"0.5669252",
"0.5646633",
"0.5595969",
"0.5580374",
"0.5549257",
"0.5530739",
"0.5484488",
"0.547218... | 0.4596049 | 73 |
Return the unique ID of the entity. | def ShR8(YKHO) -> str:
return f'{YKHO._config_entry_id}_relay{YKHO._relay.id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def g2g3(YKHO) -> int:\n return qe4Y.get(YKHO, 'entity_id')",
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
... | [
"0.8951693",
"0.8461176",
"0.82503587",
"0.81678724",
"0.803804",
"0.803804",
"0.803804",
"0.8008701",
"0.8008701",
"0.79024035",
"0.78994805",
"0.78994805",
"0.78994805",
"0.78994805",
"0.78994805",
"0.7802192",
"0.77846414",
"0.7760201",
"0.7739086",
"0.7739086",
"0.7739086... | 0.0 | -1 |
Gets whether the stack is empty. | def lsmZ(YKHO):
return len(YKHO._contents) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4K... | [
"0.9027814",
"0.9027814",
"0.9027814",
"0.9020596",
"0.9020596",
"0.9010207",
"0.8907769",
"0.8907769",
"0.8907643",
"0.88737065",
"0.8860564",
"0.8860564",
"0.881502",
"0.88025576",
"0.8791467",
"0.87835926",
"0.8776268",
"0.8743584",
"0.8681419",
"0.862186",
"0.8596079",
... | 0.0 | -1 |
Checks if the implicit node is the root of the DFS tree. | def kFcs(YKHO):
return YKHO._parent_id is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO):\n return not YKHO.get_directed_branch_to_parent()",
"def kFcs(YKHO):\n return YKHO.root is True",
"def kFcs(YKHO):\n return False",
"def Swep(YKHO):\n return YKHO.parent_node is None",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def kFcs(YKHO, Q6kx: str) -> b... | [
"0.7450768",
"0.72872907",
"0.71977687",
"0.7107839",
"0.70730245",
"0.70019585",
"0.6994657",
"0.69482946",
"0.6947293",
"0.68859136",
"0.6884035",
"0.68483436",
"0.6833415",
"0.68251985",
"0.6785628",
"0.6785628",
"0.6705404",
"0.67051715",
"0.66802347",
"0.6671001",
"0.666... | 0.6966211 | 7 |
Checks whether the specified piece identification number corresponds with this node last child identification number. This is used in the iterative version of the depth first search for articulation pieces. | def AXdf(YKHO, OpV3):
return YKHO._last_child_id == OpV3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgwt(YKHO, PpXF):\n YrZj = YKHO.last_child\n if YrZj is None:\n return False\n return YrZj == PpXF",
"def swlo(YKHO):\n return YKHO._last_child_id is not None",
"def CbAS(YKHO, XQaZ):\n YKHO._last_child_id = XQaZ",
"def kgXq(YKHO, OpV3):\n if YKHO._parent_id is None:\n ret... | [
"0.62734824",
"0.60667616",
"0.5904516",
"0.58908665",
"0.5622459",
"0.55491704",
"0.5491346",
"0.53940684",
"0.53923243",
"0.5308098",
"0.52986807",
"0.5270691",
"0.5159932",
"0.5145992",
"0.5131978",
"0.51255196",
"0.5100016",
"0.5099687",
"0.50977385",
"0.5094868",
"0.5081... | 0.79515713 | 0 |
Gets the location of this grid cell in the segment's grid. This is used when determining which piece to use for the neighbor solver. | def aOz7(YKHO):
return YKHO._grid_location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVlW(YKHO):\n if EhbL._PERFORM_ASSERT_CHECKS:\n assert YKHO._stitching_grid_cell_loc is not None\n return YKHO._stitching_grid_cell_loc",
"def lNIy(YKHO):\n return PvyL(YKHO.x, YKHO.y)",
"def lL3B(YKHO):\n return YKHO._gridPosition",
"def viky(YKHO):\n return YKHO.grid_pt",
"def h... | [
"0.8224341",
"0.79237515",
"0.7519096",
"0.735278",
"0.73269635",
"0.71535605",
"0.7142622",
"0.7120607",
"0.70700556",
"0.7069364",
"0.7017523",
"0.7011675",
"0.7011603",
"0.69750035",
"0.69738173",
"0.69738173",
"0.69738173",
"0.6951872",
"0.6949344",
"0.6949344",
"0.692605... | 0.8055622 | 1 |
Stores whether the grid cell has a puzzle piece next to a blank space | def zlZh(YKHO):
return YKHO._has_cell_next_to_open | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHT8(YKHO, rdlD, fvDH):\n return not YKHO.puzzle[rdlD][fvDH]",
"def SVyD(YKHO, mrj1):\n for rdlD, au3n in enumerate(YKHO.board):\n for fvDH, r5_a in enumerate(au3n):\n if YKHO.__is_placement_legal(rdlD, fvDH, mrj1):\n return True\n return False",
"def QpM_(YKHO):\n... | [
"0.7625644",
"0.7486166",
"0.74251246",
"0.7335253",
"0.72965",
"0.7285944",
"0.7274977",
"0.7243097",
"0.7149943",
"0.7140842",
"0.7127801",
"0.7127801",
"0.7055413",
"0.703234",
"0.69518244",
"0.6933409",
"0.6932441",
"0.6924928",
"0.69128215",
"0.688506",
"0.6881963",
"0... | 0.0 | -1 |
Updates whether the grid cell has a puzzle piece next to a blank space | def zlZh(YKHO, BWXx):
if not isinstance(BWXx, bool):
raise ValueError('Value passed must be a boolean')
YKHO._has_cell_next_to_open = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHT8(YKHO, rdlD, fvDH):\n return not YKHO.puzzle[rdlD][fvDH]",
"def SVyD(YKHO, mrj1):\n for rdlD, au3n in enumerate(YKHO.board):\n for fvDH, r5_a in enumerate(au3n):\n if YKHO.__is_placement_legal(rdlD, fvDH, mrj1):\n return True\n return False",
"def QpM_(YKHO):\n... | [
"0.72090536",
"0.7139654",
"0.70747674",
"0.7062021",
"0.7030667",
"0.70156145",
"0.69511855",
"0.69511855",
"0.6923138",
"0.6825272",
"0.6795522",
"0.67880684",
"0.67655253",
"0.67610097",
"0.67355233",
"0.67275137",
"0.6723661",
"0.6703468",
"0.670237",
"0.666908",
"0.66620... | 0.0 | -1 |
Updates the grid cell location for this puzzle piece. | def kVlW(YKHO, nuOB):
YKHO._stitching_grid_cell_loc = nuOB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dC_P(YKHO, mrj1, rdlD, fvDH):\n YKHO.board[mrj1.row][mrj1.col], YKHO.board[rdlD][fvDH] = (YKHO.board[rdlD][fvDH], YKHO.board[mrj1.row][mrj1.col])\n mrj1.move_piece(rdlD, fvDH)\n if rdlD == yXc0 - 1 or rdlD == 0:\n if mrj1.king is False:\n mrj1.make_king()\n if mrj1.color =... | [
"0.73002875",
"0.70794904",
"0.68409264",
"0.6817511",
"0.6788421",
"0.6641114",
"0.658569",
"0.65466404",
"0.65466404",
"0.65347296",
"0.6510998",
"0.6510331",
"0.6497444",
"0.64868736",
"0.6474533",
"0.64645416",
"0.6450599",
"0.64470464",
"0.6442958",
"0.6436205",
"0.64334... | 0.6980614 | 2 |
Reinitializes all data structures associated with the neighbor segments. | def bmzy(YKHO):
YKHO._neighbor_segment_ids = {}
YKHO._neighbor_colors = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yccF():\n MKlR.define_shape()\n FPWN._purge_cptrs()\n for JvR2 in oMqC._get_all_species().values():\n KCHu = JvR2()\n if KCHu is not None:\n KCHu._register_cptrs()\n fsRV()\n for JvR2 in oMqC._get_all_species().values():\n KCHu = JvR2()\n if KCHu is not Non... | [
"0.69645524",
"0.6458264",
"0.6391896",
"0.63716906",
"0.6365908",
"0.6252199",
"0.6250937",
"0.6225422",
"0.62173164",
"0.6185763",
"0.61148536",
"0.6111988",
"0.6110789",
"0.60935754",
"0.60868937",
"0.6062561",
"0.60443556",
"0.6043981",
"0.6007536",
"0.600438",
"0.5990379... | 0.71351206 | 0 |
Gets all of the puzzle pieces at locations adjacent to the specified location. | def m0ov(YKHO, rGSO):
gAJz = []
for g2tC in rGSO.get_adjacent_locations():
if YKHO._does_location_have_piece(g2tC):
gAJz.append(YKHO._get_piece_at_segment_location(g2tC))
return gAJz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thAB(YKHO):\n JRr4 = []\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[YRbF])):\n if not YKHO.isSquareEmpty((YRbF, r845)):\n JRr4.append((YRbF, r845))\n return JRr4",
"def BTfj(YKHO, hksT, O66n):\n O5wv = YKHO.blizzards_for_minute(O66n + 1)\n fK8P... | [
"0.6638092",
"0.6421028",
"0.6411985",
"0.6389141",
"0.63864315",
"0.6325234",
"0.6260334",
"0.6137465",
"0.6129276",
"0.6031897",
"0.60291165",
"0.5963391",
"0.5959002",
"0.593733",
"0.5935981",
"0.5872466",
"0.58446634",
"0.58294386",
"0.582548",
"0.5822619",
"0.5822543",
... | 0.6679991 | 0 |
Property for getting the number of segments that are adjacent to this puzzle. | def SZxC(YKHO):
XulS = len(YKHO._neighbor_segment_ids)
if tIUs._PERFORM_ASSERT_CHECKS:
assert XulS >= 0
return XulS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5CC(YKHO):\n return len(YKHO.segments)",
"def q2Wx(YKHO):\n return len(YKHO) - 1",
"def kx2e(YKHO) -> int:\n ...",
"def lT_z(YKHO):\n try:\n return int(YKHO.query('LeCroy.XStreamDSO.Acquisition.Horizontal.NumSegments.Value'))\n except (ValueError, TypeError):\n return 0",
... | [
"0.7440464",
"0.7368039",
"0.72164285",
"0.7150269",
"0.713047",
"0.713047",
"0.6935751",
"0.68816113",
"0.68783313",
"0.6851855",
"0.6837435",
"0.67938524",
"0.67938524",
"0.6787585",
"0.6653643",
"0.66161054",
"0.66003317",
"0.65489733",
"0.64682806",
"0.6411738",
"0.639826... | 0.6338951 | 27 |
This function scans the mapping of puzzle pieces in the segment to their relative location and returns a list of those puzzle locations that have no piece in them but do have a piece directly adjacent to them. | def NooS(YqwU):
Yh0j = xBlr.partial(tIUs._is_piece_map_location_empty, YqwU)
KmKr, yKOz = YqwU.shape
wxfY = []
for rdlD in Ni9Y(0, KmKr):
for fvDH in Ni9Y(0, yKOz):
if not Yh0j(rdlD, fvDH):
continue
if not Yh0j(rdlD - 1, fvDH) or not Yh0j(rdlD + 1, fvDH) o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thAB(YKHO):\n JRr4 = []\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[YRbF])):\n if not YKHO.isSquareEmpty((YRbF, r845)):\n JRr4.append((YRbF, r845))\n return JRr4",
"def ZdAv(YKHO) -> {tuple}:\n NzfJ = YKHO._list_of_color_pieces(YKHO._opposite_turn... | [
"0.6978722",
"0.6564467",
"0.6234515",
"0.6218459",
"0.61966306",
"0.6178185",
"0.6154908",
"0.615317",
"0.6138984",
"0.6131686",
"0.61191195",
"0.61109436",
"0.6106474",
"0.60938483",
"0.60833466",
"0.6062852",
"0.60612047",
"0.6048385",
"0.60297024",
"0.6006458",
"0.6000498... | 0.7165133 | 0 |
Gets the color assigned to this segment. | def qfpW(YKHO):
return YKHO._color | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def mvpM(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO.__color",
... | [
"0.83690184",
"0.83690184",
"0.83690184",
"0.83690184",
"0.8353607",
"0.8344857",
"0.8336198",
"0.8310857",
"0.8307385",
"0.8307385",
"0.82641447",
"0.82563317",
"0.8224614",
"0.8224614",
"0.8224614",
"0.81885844",
"0.8161291",
"0.8161291",
"0.8147702",
"0.8126355",
"0.812635... | 0.8004536 | 24 |
Reassign stdout temporarily in order to test printed statements | def UpnD():
wCnE, DKg6 = (kJm3(), kJm3())
rUf0, z10o = (HwRy.stdout, HwRy.stderr)
try:
HwRy.stdout, HwRy.stderr = (wCnE, DKg6)
yield (HwRy.stdout, HwRy.stderr)
finally:
HwRy.stdout, HwRy.stderr = (rUf0, z10o) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n HwRy.stdout = HwRy.__stdout__",
"def tBIc(YKHO):\n HwRy.stdout = HwRy.__stdout__",
"def FCbF(YKHO):\n YKHO.held, HwRy.stdout = (HwRy.stdout, kJm3())",
"def _wqv():\n J2wD = HwRy.stdout\n HwRy.stdout = xDSY.BytesIO()\n yield\n HwRy.stdout = J2wD",
"def jFyO(YKHO):\n ... | [
"0.76452786",
"0.76452786",
"0.75913703",
"0.74215466",
"0.7276535",
"0.72222465",
"0.7201888",
"0.71311355",
"0.71245027",
"0.71106386",
"0.70464444",
"0.703108",
"0.7023002",
"0.7021769",
"0.7021769",
"0.6991969",
"0.695532",
"0.694719",
"0.694719",
"0.6940534",
"0.684458",... | 0.64324623 | 52 |
Calculates average number recorded per day, for each activity. | def ZS2H(nPrm, xq7f, MOPg):
hgH1 = jth9.deepcopy(nPrm)
hgH1.replace({' ': rLdf.NaT}, inplace=True)
SQK6 = [fvDH for fvDH in hgH1.columns if fvDH not in MOPg]
hgH1.drop(SQK6, axis=1, inplace=True)
Sm0u = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
for iVRZ in xq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sq91(YKHO):\n if len(YKHO.vals) < 1:\n return YKHO.curr_val\n return Dz7Y.mean(YKHO.vals)",
"def BBfX(YKHO):\n return sum(YKHO.dtime_log) / len(YKHO.dtime_log)",
"def O5mg(Sm0u):\n S8vG = 0\n for YRbF in range(Sm0u):\n S8vG = S8vG + rz8o[-1 - YRbF]\n S8vG = S8vG / Sm0u\n ... | [
"0.65562904",
"0.6455552",
"0.64507294",
"0.63576037",
"0.63295615",
"0.63260424",
"0.6313159",
"0.6308503",
"0.6307432",
"0.6255178",
"0.62417793",
"0.62147295",
"0.6208838",
"0.61165863",
"0.6103989",
"0.6085245",
"0.6081363",
"0.60539997",
"0.60129744",
"0.60111356",
"0.59... | 0.0 | -1 |
Loads a workspace from a JSON file. | def tyeH(YKHO, o8ao):
Ux0P = yFjF(o8ao)
with open(Ux0P, 'r') as eHNT:
nPrm = qQXR.load(eHNT)
YKHO.engine = nPrm['engine']
YKHO.iwad = nPrm['iwad']
YKHO.pwads = nPrm['pwads']
YKHO.windows = nPrm['windows'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETLz(wO5G):\n wM3v = open(wO5G, 'r')\n Bg8V = qQXR.loads(wM3v.read())\n wM3v.close()\n return Bg8V",
"def PzP9(Emd4):\n with open('project.json', mode='r') as eHNT:\n Z33s.project_data = qQXR.load(eHNT)",
"def KrsJ(YKHO):\n with open(YKHO.file) as zgjV:\n YKHO.fileContent = ... | [
"0.68083483",
"0.6654621",
"0.6600265",
"0.6592742",
"0.6587331",
"0.6528674",
"0.65240407",
"0.65166605",
"0.65009874",
"0.6493889",
"0.6492772",
"0.6473577",
"0.646745",
"0.6451581",
"0.6450552",
"0.6449842",
"0.6443346",
"0.64250976",
"0.641341",
"0.64044315",
"0.64032006"... | 0.0 | -1 |
Writes a workspace to a JSON file. | def xkzz(YKHO, o8ao):
nPrm = {'engine': YKHO.engine, 'iwad': YKHO.iwad, 'pwads': YKHO.pwads, 'windows': YKHO.windows}
Ux0P = yFjF(o8ao)
with open(Ux0P, 'w') as eHNT:
qQXR.dump(nPrm, eHNT, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SCq6(YKHO, nUeQ):\n gehm = {'width': YKHO.optimiser.width, 'height': YKHO.optimiser.height, 'holes': YKHO.optimiser.getHoles(), 'h_offset': YKHO.optimiser.hole_offset, 'e_offset': YKHO.optimiser.edge_offset}\n with open(nUeQ, 'w') as _RR0:\n qQXR.dump(gehm, _RR0)",
"def bFLq(YKHO, Ux0P, kGys):\n... | [
"0.7019583",
"0.6965147",
"0.6829083",
"0.6727429",
"0.6718787",
"0.67152554",
"0.6699439",
"0.6636711",
"0.66352457",
"0.66207963",
"0.661683",
"0.6613802",
"0.6611639",
"0.66050977",
"0.6601269",
"0.6579478",
"0.65778726",
"0.65762675",
"0.65743506",
"0.65741175",
"0.657350... | 0.0 | -1 |
Returns the matrix for the annihilation operator (a^{\dagger}), truncated to dlevels. | def RTfI(Csk6):
hkxX = oyIN.sqrt(oyIN.arange(1, Csk6))
return oyIN.diag(hkxX, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJPM(Csk6):\n return RTfI(Csk6).T",
"def TIj9(YKHO):\n return YKHO._matrix.H",
"def K0Kz(YKHO, Csk6):\n return YKHO.__compute_operator_matrix(lambda eHNT: YKHO.__apply_atkin_lehner(Csk6, eHNT))",
"def G5bL(YKHO):\n return aM69.dndm(YKHO.mmin, YKHO.logHsd, YKHO.alphad, YKHO.betad, norm=YKHO.Ad... | [
"0.6708125",
"0.64778787",
"0.5743629",
"0.5449787",
"0.5395545",
"0.52866954",
"0.5253243",
"0.52494925",
"0.5213862",
"0.520254",
"0.5186716",
"0.5184031",
"0.5172903",
"0.5112137",
"0.5100799",
"0.50998735",
"0.50998735",
"0.5076362",
"0.50670445",
"0.5062754",
"0.50496835... | 0.5475341 | 3 |
Return human readable state | def zAg0(YKHO) -> str:
return f'\nSIMULATION STATE\nCurrent Sessions: {YKHO.get_len_sessions()}\nCurrent duration: {YKHO.get_duration_str()}\nCurrent user rate: {YKHO.rate}\nQuantity of events: {YKHO.qty_events}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.state)",
"def TKay(YKHO):\n return YKHO.state_t",
"def zAg0(YKHO):\n return YKHO.state()",
"def bo2O(YKHO):\n return YKHO.STATES[YKHO.state]",
"def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in Y... | [
"0.81176835",
"0.8031357",
"0.8016581",
"0.79708076",
"0.78711575",
"0.7838888",
"0.78302425",
"0.7821361",
"0.7797723",
"0.7698908",
"0.7675653",
"0.7625312",
"0.758877",
"0.7542698",
"0.75221026",
"0.75218153",
"0.74984586",
"0.746073",
"0.74509376",
"0.74506253",
"0.743963... | 0.0 | -1 |
creates new KeyValueToDict where dictionaries returned by to_dict will use the elements in keys to index each element in the key and the elements in values to index each element in the value | def FIMM(YKHO, sjXb, hkxX):
YKHO.keys = sjXb
YKHO.values = hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zT8f(sjXb, hkxX):\n Op6c = {}\n for YRbF, r845 in zip(sjXb, hkxX):\n Op6c[YRbF] = r845\n return Op6c",
"def rXLW(EXD7, xzK9):\n PiPd = dict()\n PiPd.fromkeys(EXD7)\n assert len(EXD7) == len(xzK9)\n for YRbF in range(len(EXD7)):\n PiPd[EXD7[YRbF]] = xzK9[YRbF]\n return Pi... | [
"0.6751219",
"0.6555516",
"0.63773644",
"0.6270688",
"0.6250302",
"0.6194467",
"0.61702746",
"0.6167455",
"0.6156097",
"0.6153165",
"0.61386096",
"0.6102765",
"0.6063584",
"0.60293657",
"0.6014408",
"0.5967056",
"0.5951089",
"0.59004873",
"0.58429366",
"0.5784365",
"0.5758174... | 0.0 | -1 |
returns the next element in this stream without advancing to the next element. | def T7C_(YKHO):
if YKHO.next_element is None:
YKHO.next_element = YKHO.source_function()
return YKHO.next_element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x4Di(YKHO):\n if YKHO.has_next():\n return YKHO[0]\n else:\n return None",
"def next(YKHO):\n NlZ_ = YKHO.readentry()\n if NlZ_ is None:\n raise StopIteration\n return NlZ_",
"def next(YKHO):\n return YKHO.flat.pop(0)",
"def next(YKHO):\n if YKHO.curr is None:\n ... | [
"0.76247185",
"0.75729907",
"0.75578064",
"0.7513723",
"0.74449134",
"0.74449134",
"0.743823",
"0.74263793",
"0.7424872",
"0.7422337",
"0.74008715",
"0.73998976",
"0.7399613",
"0.7384668",
"0.7384668",
"0.7384668",
"0.7379211",
"0.7379211",
"0.7374391",
"0.7309212",
"0.729909... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
CuMH = jQ3Z['Start Station'].mode()[0]
print('\nMost Common Used Start Station \n', CuMH)
tbR9 = jQ3Z['End Station'].mode()[0]
print('\nMost Common Used End Station \n', tbR9)
us8d = jQ3Z.groupb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
print('Total Travel Time:', bJiw)
RB_u = jQ3Z['Trip Duration'].mean()
print('Average Travel Time:', RB_u)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82523155",
"0.81467134",
"0.80971843",
"0.801319",
"0.7987811",
"0.79839957",
"0.7978554",
"0.79702306",
"0.796612",
"0.796377",
"0.7962206",
"0.7962002",
"0.7952612",
"0.79493576",
"0.7944679",
"0.79379576",
"0.7923885",
"0.7920719",
"0.7920234",
"0.7919051",
"0.79179525"... | 0.78895044 | 38 |
Unicode subscript all digits in a string. | def UYM8(vIwR):
if isinstance(vIwR, float):
return vIwR
assert isinstance(vIwR, str), 'The input string must be of type str, not {0}'.format(type(vIwR))
BdN0 = ''.join([UUkd[KCHu] if KCHu.isdigit() else KCHu for KCHu in list(vIwR)])
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ALB3(oPTj):\n Hvvh = []\n u54L = len(oPTj)\n UHFx = 0\n for hcXw in oPTj:\n if (48 <= ord(hcXw) <= 57) == False:\n Hvvh += hcXw\n elif 48 <= ord(hcXw) <= 57:\n if 97 <= ord(oPTj[UHFx - 1]) <= 122 or 65 <= ord(oPTj[UHFx - 1]) <= 90 or 8230 <= ord(Hvvh[UHFx - 1]) <... | [
"0.71267736",
"0.63490844",
"0.63146985",
"0.6214985",
"0.6148389",
"0.5977458",
"0.58617836",
"0.5772467",
"0.5771153",
"0.57324135",
"0.57264763",
"0.5665332",
"0.5634662",
"0.5617582",
"0.55953664",
"0.5591358",
"0.5580817",
"0.556949",
"0.556287",
"0.556287",
"0.556287",
... | 0.7129596 | 0 |
Return the Genomic Substitution classification type. | def tAhV(YKHO) -> eaDd:
return eaDd.GENOMIC_SUBSTITUTION | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EYDd(YKHO) -> str:\n return qe4Y.get(YKHO, 'classification')",
"def EYDd(YKHO) -> str:\n return YKHO._classification",
"def zAg0(YKHO):\n EYDd = YKHO.classification\n for Zaep, LhL_ in YKHO.CODES:\n if EYDd == Zaep:\n EYDd = LhL_\n return EYDd",
"def oRSG(YKHO) -> int:\n ... | [
"0.704616",
"0.6582067",
"0.6370945",
"0.6268352",
"0.625779",
"0.6153772",
"0.6153772",
"0.6067137",
"0.6067137",
"0.60544616",
"0.60356647",
"0.601806",
"0.6016248",
"0.59941185",
"0.59786886",
"0.59745085",
"0.5970832",
"0.5934525",
"0.59330654",
"0.5864066",
"0.58595574",... | 0.7924062 | 0 |
returns the db object | def lxP0(YKHO):
return YKHO.db_connection | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pWsU(YKHO):\n return YKHO.db",
"def VmlM(YKHO):\n return YKHO.db",
"def NCls():\n return xyue",
"def NCls():\n return xyue",
"def NCls(YKHO):\n return YKHO.__db",
"def NCls(YKHO) -> object:\n return YKHO._db",
"def p9bx(YKHO):\n return YKHO.__db",
"def adlP(YKHO):\n return... | [
"0.86516994",
"0.8568708",
"0.8564698",
"0.85378295",
"0.8463976",
"0.8453854",
"0.82761884",
"0.82589823",
"0.8177754",
"0.81629163",
"0.80581045",
"0.80581045",
"0.805489",
"0.80284053",
"0.79316103",
"0.7901578",
"0.7895444",
"0.7872946",
"0.78456324",
"0.78130287",
"0.777... | 0.0 | -1 |
Creates an array containing lambdas values | def QPBJ(mghH):
AjzU = [10 ** (-(YRbF + 1)) for YRbF in range(mghH)]
return oyIN.array(AjzU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cRh6(FYKK, qIxc=[], B2fa={}):\n return lambda WKvO: FYKK(WKvO, *qIxc, **B2fa)",
"def kfBf(SGPK, TBsA):\n return ['lambda', SGPK] + TBsA",
"def EDhd(QJpj, P7C4):\n Aofo = oyIN.full(QJpj.shape, None, object)\n for YRbF in range(QJpj.shape[0]):\n Aofo[YRbF, 0] = dzTB(QJpj[YRbF, 0], P7C4[YRb... | [
"0.66003245",
"0.6139569",
"0.60804284",
"0.5833224",
"0.5825082",
"0.582307",
"0.5805217",
"0.57456976",
"0.5729853",
"0.5710522",
"0.56764215",
"0.5675666",
"0.56476486",
"0.5644429",
"0.5624248",
"0.5620143",
"0.5609725",
"0.5585223",
"0.55555105",
"0.5552724",
"0.5551991"... | 0.5596674 | 17 |
Return the rendered graph as SVG string. | def Em5w(YKHO) -> str:
return YKHO.pipe(format='svg', encoding=H2_h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtLK(YKHO):\n return YKHO.graph.create_svg().decode('UTF-8')",
"def XtLK(YKHO):\n if not YKHO.has_layout:\n YKHO.layout(prog='dot')\n return YKHO.draw(format='svg').decode(YKHO.encoding)",
"def rpzl():\n eHNT = aKaX()\n nF8l.mpl.savefig(eHNT, format='svg')\n return eHNT.getvalue()"... | [
"0.8452813",
"0.78455055",
"0.7606334",
"0.75810826",
"0.75181663",
"0.7461995",
"0.74433553",
"0.74226767",
"0.741706",
"0.74135935",
"0.7390711",
"0.7158808",
"0.71495354",
"0.70388865",
"0.7022456",
"0.70070875",
"0.6955032",
"0.6920462",
"0.68961674",
"0.68620265",
"0.684... | 0.7407377 | 10 |
Return length of longest suffix of 'a'. function matches a prefix of 'b' that is at least 'min_length' characters long. If no such overlap exists, return 0. | def yHH9(jzdc, Fg_i, Lx0h=3):
yKcO = 0
while True:
yKcO = jzdc.find(Fg_i[:Lx0h], yKcO)
if yKcO == -1:
return 0
if Fg_i.startswith(jzdc[yKcO:]):
return len(jzdc) - yKcO
yKcO += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHH9(jzdc, Fg_i, Lx0h):\n yKcO = 0\n while True:\n yKcO = jzdc.find(Fg_i[:Lx0h], yKcO)\n if yKcO == -1:\n return 0\n if Fg_i.startswith(jzdc[yKcO:]):\n return len(jzdc) - yKcO\n yKcO += 1",
"def yHH9(jzdc, Fg_i, Lx0h=3):\n yKcO = 0\n while True:\n... | [
"0.78893256",
"0.7777207",
"0.75328773",
"0.69497615",
"0.6695243",
"0.6675718",
"0.6600214",
"0.65608114",
"0.6535657",
"0.6521239",
"0.6422229",
"0.6386274",
"0.632638",
"0.6313818",
"0.62962043",
"0.6246227",
"0.6174551",
"0.6173915",
"0.6172319",
"0.61632806",
"0.61520225... | 0.77786773 | 1 |
A sequence of all children that are Nodes | def afYC(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO.traverse(lambda WKvO: WKvO.node)",
"def Ziit(YKHO):\n yield YKHO\n for aUGN in YKHO.children:\n for V48j in aUGN.nodes:\n yield V48j",
"def afYC(YKHO):\n return (YKHO.nodes,)",
"def afYC(YKHO) -> iu5r:\n for aUGN in wNRb(YKHO.astNode):\n y... | [
"0.8230931",
"0.8018415",
"0.7747497",
"0.7738054",
"0.7584211",
"0.75133747",
"0.7474744",
"0.74297607",
"0.7360996",
"0.7297372",
"0.72765464",
"0.7242443",
"0.72230905",
"0.717371",
"0.71631324",
"0.7160439",
"0.7152815",
"0.7151156",
"0.7133575",
"0.7113015",
"0.7111849",... | 0.6703587 | 89 |
Returns a list of primes <= n | def rPed(exwG, Yn7t=[]):
if len(Yn7t) > 0:
if Yn7t[-1] >= exwG:
return [XP5J for XP5J in Yn7t if XP5J <= exwG]
else:
return uIgF(exwG + 1, Yn7t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]",
"def ehqz(exwG):\n return [WKvO for WKvO in DghZ().primerange(2, ffYW(exwG))]",
"def rPed(exwG):\n YRbF = 3\n rPed = [2]\n while len(rPed) < exwG:\n if T1qg(YRbF):\n rPed.append(YRbF)\n YRbF += 2\n return rPed",... | [
"0.8714398",
"0.86948615",
"0.8596255",
"0.8580128",
"0.85426587",
"0.8532774",
"0.8531982",
"0.84135896",
"0.83636653",
"0.8340545",
"0.83395684",
"0.83342516",
"0.8302238",
"0.8300439",
"0.8298951",
"0.8258818",
"0.82573605",
"0.8228383",
"0.8204373",
"0.81911534",
"0.81881... | 0.85496813 | 4 |
Returns list of prime factors of a integer | def aM8h(exwG, Yn7t=[]):
Llmz = []
if not isinstance(exwG, int):
return Llmz
exwG = abs(exwG)
if exwG == 0 or exwG == 1:
Llmz.append(exwG)
else:
qoqK = u406(exwG)
if len(Yn7t) == 0 or Yn7t[-1] < qoqK:
Yn7t = uIgF(qoqK + 1, Yn7t)
for XP5J in Yn7t:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uBVK(exwG: int) -> list:\n ZgWQ = []\n while exwG % 2 == 0:\n ZgWQ.append(2)\n exwG = int(exwG / 2)\n for YRbF in range(3, int(epAf.sqrt(exwG)) + 1, 2):\n while exwG % YRbF == 0:\n ZgWQ.append(YRbF)\n exwG = int(exwG / YRbF)\n if exwG > 2:\n ZgWQ.ap... | [
"0.85513484",
"0.8379492",
"0.8345581",
"0.83277124",
"0.8300458",
"0.8270151",
"0.8255715",
"0.82441294",
"0.823143",
"0.82296956",
"0.82198143",
"0.82119864",
"0.82049876",
"0.8181069",
"0.81802034",
"0.8175654",
"0.8154641",
"0.81543463",
"0.8140245",
"0.8140245",
"0.81373... | 0.7844832 | 63 |
Reset all the environments and return an array of observations, or a dict of observation arrays. If step_async is still doing work, that work will be cancelled and step_wait() should not be called until step_async() is invoked again. | def SiRx(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n uX8I, OMAa = YKHO._env.reset()\n SB8x = {}\n for YRbF, W061 in enumerate(uX8I):\n SB8x[YRbF] = {'action_mask': oyIN.array(YKHO._env.get_avail_agent_actions(YRbF)), 'obs': W061}\n YKHO._ready_agents = list(range(len(uX8I)))\n return SB8x",
"def td0I(YKHO, _ins):\n assert... | [
"0.647484",
"0.6468763",
"0.6458702",
"0.6432843",
"0.64155304",
"0.6396709",
"0.6364097",
"0.63630944",
"0.6308817",
"0.62466365",
"0.6129211",
"0.61284006",
"0.61284006",
"0.6085621",
"0.60828376",
"0.60609436",
"0.60571563",
"0.60485697",
"0.60008734",
"0.5923152",
"0.5919... | 0.0 | -1 |
split a list into two different lists by the even and odd entries | def RnhE(WKvO):
exwG, Z9rn, MKlR, yzQ0 = WKvO.size()
WKvO = WKvO.view(exwG * Z9rn, -1)
return [WKvO[0:exwG * Z9rn - exwG * Z9rn % 2, :].t().view(MKlR * yzQ0, -1, 2)[:, :, 1], WKvO[0:exwG * Z9rn - exwG * Z9rn % 2, :].t().view(MKlR * yzQ0, -1, 2)[:, :, 0]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPeL(ezWE):\n if None == ezWE or len(ezWE) < 2:\n return None\n assert isinstance(ezWE, list)\n YRbF, r845 = (0, len(ezWE) - 1)\n while YRbF < r845:\n while YRbF < r845 and 1 == ezWE[YRbF] % 2:\n YRbF += 1\n while YRbF < r845 and 0 == ezWE[r845] % 2:\n r84... | [
"0.7814079",
"0.7380926",
"0.72961533",
"0.71838903",
"0.71405494",
"0.7073834",
"0.70474315",
"0.7039211",
"0.6889758",
"0.6856064",
"0.68467677",
"0.68214405",
"0.67769647",
"0.67640495",
"0.67244565",
"0.6719787",
"0.6716585",
"0.67098325",
"0.6677135",
"0.66497356",
"0.66... | 0.7555775 | 1 |
Get the status for an order. | def Bdbb(zJ7I, pz3A=None):
bD7m = _udP.order_status()
pB3N = {'request': _udP.get_endpoint(bD7m), 'order_id': zJ7I}
wd6g(pB3N)
nPrm, XObx = Bf8M(bD7m, pB3N, pz3A)
return (nPrm, XObx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO, KAOR):\n return KAOR.order.status",
"def f7Ys(YKHO, U9Li):\n return YKHO.brokerService.get_order(U9Li).status",
"def f7Ys(YKHO, U9Li):\n return YKHO._brokerService.get_order(U9Li).status",
"def Bdbb(YKHO, zJ7I, **NArs):\n w2IS = 'order/status'\n NArs['order_id'] = zJ7I\n retu... | [
"0.8133953",
"0.81085706",
"0.8065184",
"0.78205776",
"0.77874315",
"0.75570995",
"0.7494969",
"0.741011",
"0.72528934",
"0.71439004",
"0.71036243",
"0.6938448",
"0.68923557",
"0.6840019",
"0.67946476",
"0.67100453",
"0.6691105",
"0.65817827",
"0.65444404",
"0.65444404",
"0.6... | 0.7250366 | 9 |
Get a list of all active orders. | def YvWe(pz3A=None):
bD7m = _udP.active_orders()
pB3N = {'request': _udP.get_endpoint(bD7m)}
wd6g(pB3N)
nPrm, XObx = Bf8M(bD7m, pB3N, pz3A)
return (nPrm, XObx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awPf():\n return L9Jq().get_orders()",
"def YvWe(YKHO, **NArs):\n w2IS = 'orders'\n return YKHO.request(w2IS, method='POST', payload_params=NArs)",
"def all(Emd4):\n bo34.info('Processing all orders')\n return Emd4.query.all()",
"def KekM(YKHO) -> x1iM[loeh]:\n return list(YKHO.orders.v... | [
"0.79419684",
"0.78159666",
"0.7699834",
"0.76822716",
"0.76468474",
"0.7637177",
"0.7532458",
"0.7468184",
"0.74056405",
"0.7366718",
"0.72776353",
"0.7258535",
"0.72453445",
"0.71523225",
"0.71227264",
"0.7107148",
"0.70625895",
"0.70419085",
"0.70209265",
"0.7012736",
"0.6... | 0.66456497 | 43 |
Gemini does not directly support market orders. This function will try to immediately place an order or it will cancel it. | def gnPm(SYlA, cTRz, HEZd, pz3A=None):
if HEZd == 'buy':
chzx = float(N_Zi(SYlA, HEZd)) * 10
else:
chzx = float(N_Zi(SYlA, HEZd)) / 10
hI0L = str(round(chzx, 2))
return T4Wy(SYlA, cTRz, HEZd, hI0L, None, None, ['immediate-or-cancel'], jsonify=pz3A) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JG4m(QePW, HEZd, o61b, Sgcx, y7DO, rSvV):\n print('/////////////// placing Market order ///////////')\n nNXP = IC86(QePW)\n try:\n nNXP.submit_order(symbol=o61b, qty=Sgcx, side=HEZd, type=y7DO.lower(), time_in_force=rSvV.lower())\n except Exception as e:\n print(tTpl)",
"def pH8m(YK... | [
"0.74321824",
"0.6862348",
"0.68123364",
"0.67670965",
"0.67614394",
"0.6714592",
"0.66939086",
"0.6678761",
"0.667253",
"0.6652298",
"0.6650773",
"0.6627103",
"0.66025716",
"0.6579284",
"0.6579031",
"0.6555979",
"0.6540438",
"0.6539657",
"0.6520688",
"0.64153296",
"0.63696",... | 0.6534443 | 18 |
Query for the dates and temperature observations from the last year. Convert the query results to a Dictionary using date as the key and tobs as the value. Return the JSON representation of your dictionary. | def cBYs():
AVsp = uLsy()
PM_n = AVsp[1]
ngDJ = AVsp[0]
dixj = cuiw.query(Ny6I.date, Ny6I.station, Ny6I.prcp).filter(Ny6I.date <= PM_n).filter(Ny6I.date >= ngDJ).all()
list = []
for Aofo in dixj:
dict = {'Date': Aofo[0], 'Station': Aofo[1], 'Precipitation': Aofo[2]}
list.append(d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YdD0():\n dixj = cuiw.query(Ny6I.date, Ny6I.tobs).filter(Ny6I.date.between('2017-01-01', '2017-12-31')).all()\n ol2v = []\n for ycBG in dixj:\n cdiC = {}\n cdiC['date'] = ycBG.date\n cdiC['tobs'] = ycBG.tobs\n ol2v.append(cdiC)\n return pz3A(ol2v)",
"def E5G1():\n t... | [
"0.7701044",
"0.7689462",
"0.75313073",
"0.74062574",
"0.7362162",
"0.72551566",
"0.71695143",
"0.7161154",
"0.7102273",
"0.710034",
"0.70879555",
"0.7054238",
"0.7035397",
"0.7025856",
"0.7014253",
"0.70082015",
"0.7001387",
"0.6971916",
"0.6963491",
"0.69562685",
"0.6930158... | 0.6539665 | 42 |
When given the start only, calculate `TMIN`, `TAVG`, and `TMAX` for all dates greater than and equal to the start date. | def MNMC(yKcO):
dixj = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= yKcO).order_by(Ny6I.date.desc()).all()
print(f'Temperature Analysis for the dates greater than or equal to the start date')
for H3EF in dixj:
dict = {'Minimum Temp': dixj[0][0], 'Aver... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LD2L(kepv):\n return cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= kepv).all()",
"def efrp(yKcO, Os4s):\n dixj = cuiw.query(g2W_.tobs).filter(JfyU.strftime(g2W_.date) < Os4s).filter(JfyU.striftime(g2W_.date) > yKcO).all()\n qqgr = oyIN.mean(dixj)\n ... | [
"0.7259916",
"0.72405505",
"0.7061175",
"0.7039257",
"0.7039257",
"0.703367",
"0.70329475",
"0.70329475",
"0.70270306",
"0.69840175",
"0.69840175",
"0.69840175",
"0.69840175",
"0.69840175",
"0.69840175",
"0.69840175",
"0.69747615",
"0.6970692",
"0.6961563",
"0.69505465",
"0.6... | 0.65845704 | 31 |
Calculate the Intersection over Union (IoU) of two bounding boxes. | def plrc(HIlM, c8bw):
sA0R = max(HIlM['x1'], c8bw['x1'])
YijY = max(HIlM['y1'], c8bw['y1'])
Kphd = min(HIlM['x2'], c8bw['x2'])
sIW6 = min(HIlM['y2'], c8bw['y2'])
if Kphd < sA0R or sIW6 < YijY:
return 0.0
zRv5 = (Kphd - sA0R) * (sIW6 - YijY)
bV1m = (HIlM['x2'] - HIlM['x1']) * (HIlM['y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8gd(MErA, ZnGJ):\n ZFgS = max(0, min(MErA.right, ZnGJ.right) - max(MErA.left, ZnGJ.left))\n rfRS = max(0, min(MErA.bottom, ZnGJ.bottom) - max(MErA.top, ZnGJ.top))\n iQin = ZFgS * rfRS\n bzU2 = (MErA.right - MErA.left) * (MErA.bottom - MErA.top)\n Eq1k = (ZnGJ.right - ZnGJ.left) * (ZnGJ.bottom -... | [
"0.8569351",
"0.84471434",
"0.84375596",
"0.8374254",
"0.83440286",
"0.82564366",
"0.8208769",
"0.81646657",
"0.8153082",
"0.8138004",
"0.8129145",
"0.8126854",
"0.81214756",
"0.81214756",
"0.8084248",
"0.8045267",
"0.80375254",
"0.80264443",
"0.8010838",
"0.8008684",
"0.7995... | 0.8108424 | 14 |
Returns the url to access a particular tour instance. | def hlzF(YKHO):
return '/profile/%s' % YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def hlzF(YKHO):\n return gxEw('tour-detail', args=[str(YKHO.id)])",
"def XOlV(YKHO, bD7m, _1IC):\n return bD7m",
"def K61m(Emd4):\n return Emd4.cached().instance_url",
"def LvtP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'instance_ur... | [
"0.7206186",
"0.69982123",
"0.68250054",
"0.66621214",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6622281",
"0.6544132",
"0.65207654",
"0.65207654",
"0.65110594",
"0.64856213",
"0.64797896",
"0.64419395",
"0.6441... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Returns the url to access a particular tour instance. | def hlzF(YKHO):
return gxEw('tour-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def XOlV(YKHO, bD7m, _1IC):\n return bD7m",
"def K61m(Emd4):\n return Emd4.cached().instance_url",
"def LvtP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'instance_url')",
"def LvtP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'in... | [
"0.7206186",
"0.68250054",
"0.66621214",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6622281",
"0.6544132",
"0.65207654",
"0.65207654",
"0.65110594",
"0.64856213",
"0.64797896",
"0.64419395",
"0.64419395",
"0.6441... | 0.69982123 | 1 |
String for representing the Model object. | def zAg0(YKHO):
return str(YKHO.user) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81892824",
"0.80928355",
"0.7958657",
"0.7849373",
"0.78411466",
"0.7667056",
"0.7577242",
"0.7566466",
"0.7561851",
"0.7548706",
"0.7483726",
"0.7465762",
"0.74535877",
"0.74535877",
"0.7448269",
"0.74476784",
"0.74476784",
"0.74476784",
"0.74132323",
"0.7407112",
"0.7399... | 0.0 | -1 |
Returns the url to access a particular tour instance. | def hlzF(YKHO):
return '/booking/%s/detail' % YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def hlzF(YKHO):\n return gxEw('tour-detail', args=[str(YKHO.id)])",
"def XOlV(YKHO, bD7m, _1IC):\n return bD7m",
"def K61m(Emd4):\n return Emd4.cached().instance_url",
"def LvtP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'instance_ur... | [
"0.7206186",
"0.69982123",
"0.68250054",
"0.66621214",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6622281",
"0.6544132",
"0.65207654",
"0.65207654",
"0.65110594",
"0.64856213",
"0.64797896",
"0.64419395",
"0.6441... | 0.0 | -1 |
Returns the url to access a particular review instance. | def hlzF(YKHO):
return gxEw('tour-review', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n X99A = YKHO.beer.get_absolute_url()\n return '%s#review-%s' % (X99A, str(YKHO.id))",
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def K61m(Emd4):\n return Emd4.cached().instance_url",
"def hZu3(YKHO):\n return YKHO._pull_info[0]['_links']['comments']['href']",
"def ... | [
"0.660856",
"0.65754974",
"0.6283439",
"0.62473756",
"0.62418306",
"0.62418306",
"0.62418306",
"0.62418306",
"0.62418306",
"0.62418306",
"0.62418306",
"0.62418306",
"0.6214397",
"0.6214397",
"0.6176276",
"0.6157784",
"0.6070912",
"0.6028199",
"0.60093427",
"0.5981109",
"0.594... | 0.64941114 | 2 |
String for representing the Model object. | def zAg0(YKHO):
return str(YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Returns the url to access a particular comment instance. | def hlzF(YKHO):
return gxEw('', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n return u8Et(YKHO._params, url_domain=YKHO.url_domain)",
"def aopr(pQGt):\n return gxEw('post:comment-detail', args=[pQGt])",
"def Trwf(YKHO):\n return fDGo.reverse('comments-url-redirect', args=(YKHO.content_type_id, YKHO.object_pk))",
"def aopr(YKHO, Fi3q, pQGt, m8HW=None):\n i... | [
"0.73308766",
"0.7122977",
"0.68403524",
"0.6734368",
"0.6562674",
"0.6432063",
"0.63288796",
"0.63231564",
"0.62951136",
"0.6253099",
"0.61887497",
"0.61708903",
"0.6125736",
"0.60757554",
"0.60757554",
"0.60440034",
"0.6031453",
"0.60194236",
"0.60185695",
"0.59771395",
"0.... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.acti | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Returns the url to access a particular tour instance. | def hlzF(YKHO):
return gxEw('', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def hlzF(YKHO):\n return gxEw('tour-detail', args=[str(YKHO.id)])",
"def XOlV(YKHO, bD7m, _1IC):\n return bD7m",
"def K61m(Emd4):\n return Emd4.cached().instance_url",
"def LvtP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'instance_ur... | [
"0.7206186",
"0.69982123",
"0.68250054",
"0.66621214",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6659424",
"0.6622281",
"0.6544132",
"0.65207654",
"0.65207654",
"0.65110594",
"0.64856213",
"0.64797896",
"0.64419395",
"0.6441... | 0.0 | -1 |
Transform the supplied array into a string representation of a Perl array | def HcXc(IqQl):
F6AI = []
for Ty9i in IqQl:
a1PO = type(Ty9i).__name__
if a1PO == 'str':
F6AI.append('"%s"' % Vcee(Ty9i))
elif a1PO == 'unicode':
F6AI.append('"%s"' % Vcee(str(Ty9i)))
elif a1PO == 'int' or a1PO == 'long':
F6AI.append('%d' % Ty9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CRCz(qw7D):\n vIwR = ''\n for LihS in qw7D:\n vIwR += str(LihS)\n return vIwR",
"def _e6A(qw7D):\n return ' '.join(['{}'.format(WKvO) for WKvO in qw7D])",
"def _e6A(qw7D):\n return ' '.join(['{}'.format(WKvO) for WKvO in qw7D])",
"def gTzM(ezWE):\n return ' '.join(map(str, ezWE.f... | [
"0.8513667",
"0.84285146",
"0.84285146",
"0.8187515",
"0.8038107",
"0.80210567",
"0.79696345",
"0.78922564",
"0.7884713",
"0.784657",
"0.7820353",
"0.77950585",
"0.7766488",
"0.7728683",
"0.7670978",
"0.75023794",
"0.74862766",
"0.7461219",
"0.7440454",
"0.7348195",
"0.733979... | 0.0 | -1 |
Create an instance of TwentyFortyEight for each test | def FCbF(YKHO):
YKHO.game = KSi4(5, 4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g0e1(YKHO):\n if tuKI() < YKHO.settings.tie_fighter_frequency:\n cH_t = dKVL(YKHO)\n YKHO.tie_fighters.add(cH_t)\n print(len(YKHO.tie_fighters))",
"def ub1Q(YKHO):\n YKHO.ekran.generate_tie_fighters()\n YKHO.assertTrue(isinstance(YKHO.ekran.tie_fighters[0], dKVL))",
"def pRoW(... | [
"0.60694915",
"0.5874076",
"0.5689222",
"0.55723923",
"0.5498301",
"0.54894614",
"0.5460211",
"0.54444426",
"0.54428744",
"0.5429236",
"0.5425835",
"0.54063857",
"0.5401624",
"0.53950775",
"0.53718096",
"0.5365851",
"0.53604245",
"0.5354976",
"0.53296435",
"0.52674806",
"0.52... | 0.6903719 | 0 |
read_csv_dateindex takes in an absolute path containing csv file then, takes the date variable as an index and transform the csv into a DataFrame | def zohx(pmON):
jQ3Z = rLdf.read_csv(pmON)
_c1T = rLdf.to_datetime(jQ3Z.Date)
jQ3Z = jQ3Z.set_index(_c1T)
del jQ3Z['Date']
jQ3Z = jQ3Z.dropna()
jQ3Z.sort_index()
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENrd():\n DujO = rLdf.read_csv(o5b1).set_index('date')\n print('Loaded daily data from historical CSV.')\n return DujO",
"def FF6L(pmON: str, Zhxh: str=None) -> 'DataFrame':\n jQ3Z = rLdf.read_csv(pmON, index_col=Zhxh, parse_dates=True)\n if 'Unnamed: 0' in jQ3Z.columns.values:\n jQ3Z.d... | [
"0.73764294",
"0.7339382",
"0.73210526",
"0.7222683",
"0.7166245",
"0.7107717",
"0.6995158",
"0.6982036",
"0.69390553",
"0.69379073",
"0.6845204",
"0.6796914",
"0.6771732",
"0.67690045",
"0.67335963",
"0.6717945",
"0.6705424",
"0.670079",
"0.6601849",
"0.66018313",
"0.6585042... | 0.89376545 | 0 |
Get CLIP image normalization values. | def eHaI():
return {'offset': (0.48145466, 0.4578275, 0.40821073), 'scale': (0.26862954, 0.26130258, 0.27577711)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(LNo8):\n dgIT = LNo8.min()\n bQ6z = LNo8.max()\n if dgIT == bQ6z:\n return LNo8 - dgIT\n return (LNo8 - dgIT) / (bQ6z - dgIT)",
"def NkkI(VXjJ):\n import numpy as oyIN\n min, max = (oyIN.min(VXjJ), oyIN.max(VXjJ))\n if max == min:\n return VXjJ\n return (VXjJ - oyIN... | [
"0.71533334",
"0.7120315",
"0.70588225",
"0.70558214",
"0.7029826",
"0.69970274",
"0.69970274",
"0.6960021",
"0.6949155",
"0.69482213",
"0.6945908",
"0.6921518",
"0.69055486",
"0.69050825",
"0.69005895",
"0.6868824",
"0.6864303",
"0.68276846",
"0.68248546",
"0.6810309",
"0.67... | 0.7174926 | 0 |
Normalizes the image to zero mean and unit variance. | def Ekx3(LNo8, vgXP=(0.485, 0.456, 0.406), NXpY=(0.229, 0.224, 0.225)):
with ZylS.name_scope('normalize_image'):
LNo8 = ZylS.image.convert_image_dtype(LNo8, dtype=ZylS.float32)
vgXP = ZylS.constant(vgXP)
vgXP = ZylS.expand_dims(vgXP, axis=0)
vgXP = ZylS.expand_dims(vgXP, axis=0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)",
"def NkkI(YKHO, VXjJ):\n return (VXjJ - YKHO.mean) / YKHO.std",
"def BtVk(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)",
"def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img - YKHO.img.mean(), -1, 1)",
"de... | [
"0.79241866",
"0.78312707",
"0.77966857",
"0.77428603",
"0.76941216",
"0.76920056",
"0.7687678",
"0.76473325",
"0.7597008",
"0.7529197",
"0.7493193",
"0.7433784",
"0.7424805",
"0.73926747",
"0.73708504",
"0.7357302",
"0.73433805",
"0.7295751",
"0.7261894",
"0.7244927",
"0.723... | 0.0 | -1 |
Issues HTTP DELETE requests. For each input tuple a DELETE request is issued and the response is on the returned stream. You can specifiy the URL either dynamic (part of input stream) or static (as parameter). | def Le2Q(wOb_, bD7m=None, wVNV=None, W5Sm=None, fPXJ=False, mWFP=None):
if wVNV is None and bD7m is None:
if wOb_.oport.schema == jqDp.String:
wVNV = 'string'
else:
raise ValueError('Either url_attribute or url parameter must be set.')
Bchp = l__w(wOb_, schema=gVkL, name=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RoLj(YKHO, **B2fa):\n return YKHO._send_recv(B2fa['yang'], 'DELETE', YKHO._make_data_url(B2fa['url']))",
"def PTpj(bD7m, **B2fa):\n return QePW('DELETE', url=bD7m, **B2fa)",
"def MpcP(YKHO, bD7m, IatV, o2VW, TBsA):\n raise NotImplementedError",
"def Gkm0(YKHO, bD7m):\n YKHO.client.delete(bD7m... | [
"0.69728935",
"0.68902797",
"0.68662757",
"0.6818852",
"0.6798942",
"0.66984326",
"0.66629696",
"0.6659972",
"0.66239816",
"0.660372",
"0.65831983",
"0.65723747",
"0.6539744",
"0.65395266",
"0.64779806",
"0.6434353",
"0.6425416",
"0.64037",
"0.6381218",
"0.6369092",
"0.636339... | 0.71620864 | 0 |
Constructor for the Servo class | def FIMM(YKHO, yQ5t):
eSlX = aJiH(0, frequency=50)
YKHO.servo_control = eSlX.channel(eqWc.next_channel, pin=yQ5t, duty_cycle=1)
eqWc.next_channel += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, xA4w, e5KR):\n YKHO.Name = xA4w.get('name')\n YKHO.HeadBow = eqWc(xA4w.get('id_head_bow'), xA4w.get('pos_HeadBow'), e5KR)\n YKHO.HeadTwst = eqWc(xA4w.get('id_head_twst'), xA4w.get('pos_HeadTwst'), e5KR)\n YKHO.HeadSideMov = eqWc(xA4w.get('id_head_sideMov'), xA4w.get('pos_HeadSideMov'), e... | [
"0.7118321",
"0.70977616",
"0.69349957",
"0.6824602",
"0.68232924",
"0.6624632",
"0.6610376",
"0.6589029",
"0.6588733",
"0.6583363",
"0.6583363",
"0.65510756",
"0.6543911",
"0.6543911",
"0.652654",
"0.65218097",
"0.647835",
"0.647835",
"0.64774024",
"0.64387107",
"0.6431255",... | 0.0 | -1 |
Get the address for a classical register. | def gczd(Z9rn: MemoryReferenceDesignator) -> 'MemoryReference':
if isinstance(Z9rn, list) or isinstance(Z9rn, tuple):
if len(Z9rn) > 2 or len(Z9rn) == 0:
raise ValueError('if c is a list/tuple, it should be of length <= 2')
if len(Z9rn) == 1:
Z9rn = (Z9rn[0], 0)
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceuN(YKHO) -> RnTg.program.model.address.Address:\n ...",
"def ceuN(YKHO) -> RnTg.program.model.address.Address:\n ...",
"def ceuN(YKHO) -> RnTg.program.model.address.Address:\n ...",
"def vAkW(YKHO):\n raise NotImplementedError",
"def lQ3t(YKHO, rRzo):\n return YKHO.regs[rRzo]",
"def ... | [
"0.70522237",
"0.70522237",
"0.70522237",
"0.6990167",
"0.69528663",
"0.69111884",
"0.69034463",
"0.68521357",
"0.6827523",
"0.6795793",
"0.67881554",
"0.67881554",
"0.67881554",
"0.67825985",
"0.67825985",
"0.675583",
"0.6748038",
"0.67229635",
"0.6697024",
"0.66644776",
"0.... | 0.0 | -1 |
Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable. | def NMoC(YKHO, PDC4, pd8u='tranquility', **B2fa):
yfbB = {'character_id': PDC4, 'datasource': pd8u}
yfbB.update(B2fa)
return oYNE(YKHO.base_url, YKHO.get_responses).get(**yfbB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p4tO(YKHO):\n return YKHO._ir.query_metadata_table.get_location_info(YKHO._current_location)",
"def kwGG(YKHO):\n return YKHO.galaxy.systems[YKHO.ship.planetnum]",
"def V3h_():\n return kbpH.nas_get_cell_location_info()",
"def Y45c():\n geh0 = G4JS.get(dD_q)\n if geh0.status_code != 200:\n... | [
"0.65299255",
"0.62200344",
"0.6126392",
"0.60284907",
"0.5965508",
"0.59378177",
"0.59321445",
"0.5845194",
"0.58375317",
"0.5829603",
"0.5824497",
"0.58116865",
"0.57924885",
"0.57901734",
"0.57842577",
"0.57842577",
"0.57795453",
"0.57763284",
"0.5774358",
"0.5774358",
"0.... | 0.0 | -1 |
Update gradients to reflect weight decay. | def krxR(YKHO, vtNT):
return [Oa1e + YKHO.config.weight_decay * Ty9i if Ty9i.name.endswith('kernel:0') else Oa1e for Oa1e, Ty9i in zip(vtNT, YKHO.trainable_variables)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n for Zxma in Ni9Y(len(YKHO.weights)):\n for YRbF in Ni9Y(len(YKHO.weights[Zxma])):\n for r845 in Ni9Y(len(YKHO.weights[Zxma][YRbF])):\n YKHO.weights[Zxma][YRbF][r845] -= YKHO.learn_rate * YKHO.weight_gradients[Zxma][YRbF][r845]",
"def FUu9(YKHO):\n YKHO.wei... | [
"0.80618554",
"0.80407333",
"0.8029945",
"0.7933826",
"0.77966547",
"0.77432215",
"0.77068996",
"0.7682309",
"0.7613973",
"0.75453174",
"0.74427843",
"0.74314946",
"0.7413742",
"0.74005526",
"0.7378332",
"0.7337631",
"0.73202753",
"0.72937965",
"0.72806895",
"0.727871",
"0.72... | 0.69787425 | 38 |
Get moving averages of batch normalization. | def sLGF(YKHO):
begE = '/gpu:0' if ZylS.test.is_gpu_available() else '/cpu:0'
with ZylS.device(begE):
return [Ty9i.read_value() for Ty9i in YKHO.moving_average_variables] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(YKHO, EcVT, LT6S, WMj5=0.999):\n NXpY = ZylS.Variable(ZylS.ones([EcVT.get_shape()[-1]]))\n UqYS = ZylS.Variable(ZylS.zeros([EcVT.get_shape()[-1]]))\n _hZ2 = 1e-06\n _ni1, It1b = ZylS.nn.moments(EcVT, [0, 1, 2])\n FwwX = ZylS.train.ExponentialMovingAverage(WMj5)\n\n def e8a1():\n D... | [
"0.707385",
"0.68692744",
"0.683175",
"0.67558795",
"0.67530364",
"0.67530364",
"0.67480725",
"0.67411923",
"0.6736015",
"0.66887033",
"0.66751844",
"0.6647581",
"0.66030484",
"0.6581381",
"0.6570501",
"0.653188",
"0.6530882",
"0.65268886",
"0.6506973",
"0.64937973",
"0.64886... | 0.0 | -1 |
Restore moving averages of batch normalization. | def jQ61(YKHO, hkxX):
begE = '/gpu:0' if ZylS.test.is_gpu_available() else '/cpu:0'
with ZylS.device(begE):
for cVHD, wEf2 in zip(YKHO.moving_average_variables, hkxX):
cVHD.assign(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZbW(YKHO):\n YKHO.moving_average_array = oyIN.array([])",
"def ylvV(YKHO):\n YKHO.numpy_array_all_data -= XTiz.mean(YKHO.numpy_array_all_data, axis=0)\n YKHO._load_numpy_back_into_linearData()",
"def gAl9(YKHO):\n if not YKHO.mean_normalised:\n if YKHO.gts.ndim == 2:\n YKHO.g... | [
"0.69172025",
"0.65765756",
"0.65498054",
"0.631855",
"0.6310041",
"0.62821156",
"0.62596923",
"0.6234106",
"0.6196917",
"0.6141217",
"0.60722303",
"0.6051475",
"0.6020186",
"0.60145193",
"0.5988479",
"0.5950555",
"0.59125614",
"0.5906798",
"0.59026396",
"0.5874456",
"0.58682... | 0.61096144 | 10 |
Get all variables that are batch norm moving averages. | def wy91(YKHO):
def j4mt(Ty9i):
exwG = Ty9i.name
return exwG.endswith('moving_mean:0') or exwG.endswith('moving_variance:0')
if not YKHO._moving_average_variables:
YKHO._moving_average_variables = filter(j4mt, YKHO.variables)
return YKHO._moving_average_variables | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HU_8():\n _IuS = ZylS.trainable_variables() + ZylS.get_collection('moving_vars')\n for Ty9i in ZylS.global_variables():\n if 'moving_mean' in Ty9i.name or 'moving_variance' in Ty9i.name:\n _IuS.append(Ty9i)\n _IuS = list(set(_IuS))\n return _IuS",
"def Sq25():\n JBMS, I8JS = ... | [
"0.6619632",
"0.64785755",
"0.64070815",
"0.6248854",
"0.6221613",
"0.6181564",
"0.61604697",
"0.61585903",
"0.614507",
"0.6089565",
"0.6089565",
"0.60692817",
"0.60301715",
"0.602787",
"0.59968024",
"0.59748685",
"0.5961616",
"0.59527516",
"0.59468776",
"0.5923365",
"0.59134... | 0.67606413 | 0 |
Return a list of `size` datetime objects evenly spaced between `start_date` and `end_date`. | def XGpJ(kepv, KhBf, zNig):
if not isinstance(kepv, qcWV.datetime):
kepv = Zdn3(kepv)
if not isinstance(KhBf, qcWV.datetime):
KhBf = Zdn3(KhBf)
if KhBf < kepv:
raise ValueError('end_date is before start_date')
p6Zb = (KhBf - kepv) / (zNig - 1)
return [kepv + YRbF * p6Zb for Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHQN(YKHO, kepv, KhBf):\n RA_F = KhBf - kepv\n YKHO.get_datelist_days(kepv, RA_F.days)",
"def Pfix(kepv, KhBf):\n return [kepv + fCoM(WKvO) for WKvO in range((KhBf - kepv).days + 1)]",
"def Pfix(kepv, KhBf):\n vywY = []\n for exwG in range((KhBf + fCoM(1) - kepv).days):\n GOKc = kepv ... | [
"0.6758669",
"0.6699966",
"0.6624808",
"0.6609835",
"0.6607752",
"0.6607752",
"0.6536705",
"0.6507606",
"0.64853525",
"0.6457727",
"0.642126",
"0.6418645",
"0.6401927",
"0.6382907",
"0.6370767",
"0.63582355",
"0.6343264",
"0.6343264",
"0.6343264",
"0.63388103",
"0.6332081",
... | 0.79069364 | 0 |
Returns the area of this rectangle. The implementation invokes the side_lengths() method from the superclass, and computes the product of this rectangle's length and width. | def f0tD(YKHO) -> float:
Fbjb = YKHO.side_lengths()
return Fbjb[0] * Fbjb[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO.__side_1_length * YKHO.__side_2_length",
"def GagE(YKHO):\n return YKHO.length * YKHO.width",
"def f0tD(YKHO):\n return epAf.sqrt(3) / 4 * YKHO.side_len ** 2",
"def f0tD(YKHO):\n return YKHO.width * YKHO.length",
"def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__h... | [
"0.82328695",
"0.81871426",
"0.81435454",
"0.81310856",
"0.811983",
"0.8100057",
"0.80753815",
"0.8045754",
"0.8013511",
"0.79905975",
"0.7961104",
"0.7934137",
"0.7890035",
"0.7890035",
"0.7890035",
"0.78729886",
"0.78729886",
"0.78725797",
"0.7870393",
"0.78697723",
"0.7866... | 0.83634573 | 0 |
Return an iterator over catalog entries. | def Vs4Q(YKHO):
return iter(YKHO._get_entries()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for bTKY in YKHO._entries:\n yield bTKY.text",
"def YjpE(YKHO):\n for YRbF in range(len(YKHO)):\n yield YKHO._unpack_entry(YRbF)",
"def Vs4Q(YKHO) -> bDy6[x1iM[cuzp[str, ImMB]]]:\n for YRbF in range(YKHO.page_count):\n yield YKHO.get_internship_list(YRbF)",
"de... | [
"0.64775753",
"0.64560676",
"0.6199138",
"0.6196748",
"0.61455774",
"0.6113665",
"0.6113665",
"0.6113665",
"0.610391",
"0.6100864",
"0.6093209",
"0.6067208",
"0.60295427",
"0.59985924",
"0.5981008",
"0.59774834",
"0.596215",
"0.5933084",
"0.5921145",
"0.58759654",
"0.5863282"... | 0.67460614 | 0 |
Load model on a specific device (can be different from the one used during training). If set_trained is true than the model flag "trained" is set to true first and the model is saved again. If set_trained is not set and the model flag "trained" is not true a ClassifierNotTrainedError is raised | def tyeH(YKHO, begE, XpfB=False, mWFP=None) -> None:
if mWFP is None:
mWFP = YKHO.name
try:
vauY = ht2j.load(mWFP, map_location=ht2j.device(begE))
if 'model_dict' in vauY:
xA7f = vauY['model_dict']
YKHO.explanations = vauY['explanations']
YKHO.time = v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdJ() -> None:\n print('Loading trained model')\n return uyMl('/cs/scratch/agj6/saved_models/dataset-{}_mammogramtype-{}_model-{}_lr-{}_b-{}_e1-{}_e2-{}_roi-{}_{}_saved-model.h5'.format(GPtr.dataset, GPtr.mammogram_type, GPtr.model, GPtr.learning_rate, GPtr.batch_size, GPtr.max_epoch_frozen, GPtr.max_ep... | [
"0.7225944",
"0.70165634",
"0.6772685",
"0.66481644",
"0.664707",
"0.6620664",
"0.6598263",
"0.6595966",
"0.65709454",
"0.6560938",
"0.6527778",
"0.65257066",
"0.6474713",
"0.642925",
"0.6419744",
"0.6418179",
"0.6398913",
"0.6384772",
"0.6374053",
"0.6374053",
"0.6374053",
... | 0.8041883 | 0 |
Test the build_url method of the `AcapelaGroup` class. | def HHvS():
mCCc = RSFN(base_url='http://www.alwayslookon.com')
assert mCCc.build_url() == 'http://www.alwayslookon.com/'
assert mCCc.build_url('the/bright?side=of+life') == 'http://www.alwayslookon.com/the/bright?side=of+life' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0JN(bGrB):\n QePW = TMAJ.Mock()\n QePW.route_url.return_value = TMAJ.sentinel.group_url\n bD7m = ROek.url_for_group(QePW, TMAJ.Mock())\n assert bD7m == TMAJ.sentinel.group_url",
"def U1H6():\n mCCc = RSFN()\n assert mCCc.base_url == 'http://www.acapela-group.com'\n mCCc = RSFN(base_url=... | [
"0.7047912",
"0.6821157",
"0.65362287",
"0.6448727",
"0.6329291",
"0.63190955",
"0.6296935",
"0.62699383",
"0.6195287",
"0.60976076",
"0.6086642",
"0.60421455",
"0.5930883",
"0.58567864",
"0.58549386",
"0.5844033",
"0.58305013",
"0.5777933",
"0.57637537",
"0.5755149",
"0.5750... | 0.79054195 | 0 |
Generically clean HTML text from an object column, lower the case, remove unnecessary whitespaces, stopwords and punctuation | def uvFh(fvDH: pandas.Series, Gdo6=True, wozM='', **B2fa):
if fvDH.dtype != 'object':
raise Exception('tolower works only with object dtype')
if Gdo6:
fvDH = fvDH.fillna(wozM)
fvDH = fvDH.apply(XTiz.vectorize(lambda WKvO: EtiY(WKvO, **B2fa)))
return fvDH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(YKHO, l5Ny):\n l5Ny = YKHO.convert_html(l5Ny)\n l5Ny = YKHO.clean_spaces(l5Ny)\n l5Ny = YKHO.separate_words(l5Ny)\n if YKHO.settings['convert_quotes']:\n l5Ny = YKHO.convert_quotes(l5Ny)\n l5Ny = YKHO.clean_other(l5Ny)\n return l5Ny",
"def Y3k_(l5Ny):\n dGzQ = ZbWC.compile('[... | [
"0.69949436",
"0.6991311",
"0.69912094",
"0.69887733",
"0.69417787",
"0.67796344",
"0.6745273",
"0.6742628",
"0.6735685",
"0.66982484",
"0.6687415",
"0.6671688",
"0.66702235",
"0.6656761",
"0.6650449",
"0.6645772",
"0.6642486",
"0.6626236",
"0.6619165",
"0.6581588",
"0.657589... | 0.0 | -1 |
Normalize Continuous Columns Usage train = create_dummies(train,"Age") | def NkkI(jQ3Z, z0q4, Tuqy):
if Tuqy == 'n':
iVRZ = jQ3Z[z0q4]
BdN0 = '{}_norm'.format(z0q4)
jQ3Z[BdN0] = (iVRZ - iVRZ.min()) / (iVRZ.max() - iVRZ.min())
jQ3Z[z0q4] = jQ3Z[BdN0]
jQ3Z = jQ3Z.drop([BdN0], axis=1)
if Tuqy == 'z':
iVRZ = jQ3Z[z0q4]
BdN0 = '{}_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WCTm(WPdU):\n nPrm = WPdU\n for fvDH in ZH6t:\n ZrDu = rLdf.get_dummies(nPrm[fvDH], prefix=fvDH)\n nPrm = rLdf.concat([nPrm, ZrDu], axis=1)\n nPrm = nPrm.drop([fvDH], axis=1)\n return nPrm",
"def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.colum... | [
"0.69294065",
"0.6850255",
"0.68103725",
"0.6594323",
"0.6527511",
"0.6512916",
"0.6486742",
"0.646466",
"0.6402004",
"0.63222015",
"0.6255058",
"0.6246473",
"0.6229459",
"0.6213599",
"0.6202282",
"0.61858165",
"0.61631095",
"0.6145603",
"0.61270136",
"0.61221576",
"0.6121852... | 0.0 | -1 |
normalize data to have zero mean and unit variance | def ZCnw(EcVT):
JBMS, M1Jx = (EcVT.mean(axis=0), EcVT.std(axis=0))
return ((EcVT - JBMS) / M1Jx, (JBMS, M1Jx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(nPrm):\n return (nPrm - oyIN.nanmean(nPrm)) / oyIN.nanstd(nPrm)",
"def NkkI(YKHO):\n YKHO.data_mean = oyIN.mean(YKHO.data, axis=0, dtype=oyIN.float32)\n YKHO.data_std = oyIN.std(YKHO.data, axis=0, dtype=oyIN.float32)\n YKHO.data_std[YKHO.data_std == 0] = 1\n YKHO.data = (YKHO.data - YKHO.... | [
"0.8163269",
"0.8111568",
"0.8096884",
"0.79661536",
"0.79022914",
"0.78036034",
"0.7801967",
"0.77458507",
"0.7728418",
"0.7726221",
"0.77108985",
"0.7676028",
"0.7606857",
"0.7596363",
"0.75799364",
"0.7537592",
"0.75302964",
"0.7529183",
"0.7515536",
"0.7484646",
"0.748045... | 0.0 | -1 |
normalize test data based on mean and variance of training data | def Z4HT(YKHO, CAhe):
return (CAhe - YKHO.trn_mean) / YKHO.trn_std | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(EvQg, QOe9):\n JBMS = EvQg.mean(axis=0)\n M1Jx = EvQg.std(axis=0)\n EvQg = (EvQg - JBMS) / M1Jx\n QOe9 = (EvQg - JBMS) / M1Jx\n return [EvQg, QOe9]",
"def NkkI(Lcqa, Z5wO):\n JBMS = oyIN.mean(Lcqa, axis=(0, 1, 2, 3))\n M1Jx = oyIN.std(Lcqa, axis=(0, 1, 2, 3))\n Lcqa = (Lcqa - JBM... | [
"0.83665234",
"0.81952876",
"0.80046934",
"0.7946175",
"0.78260106",
"0.7815557",
"0.776384",
"0.77628386",
"0.7623794",
"0.7614083",
"0.75790894",
"0.7443554",
"0.7416636",
"0.74056625",
"0.7389763",
"0.7374616",
"0.7365656",
"0.7347967",
"0.7345475",
"0.7288901",
"0.7283236... | 0.0 | -1 |
when publish_date is in the future the survey should be hidden | def YqnV(YKHO):
geh0 = YKHO.client.get(gxEw('survey-detail', args=(7,)))
YKHO.assertEqual(geh0.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAZC(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def yz11(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-detail', args=(10,)))\n YKHO.assertEqual(geh0.status_code, 200)",
"def Zode(YKHO):\n yo7_ = rIAI.now().date()\n return... | [
"0.7297349",
"0.6660816",
"0.65862924",
"0.6514464",
"0.64798963",
"0.6458874",
"0.6420255",
"0.6396259",
"0.63634634",
"0.63422734",
"0.6333199",
"0.63101393",
"0.6211312",
"0.62043333",
"0.62038034",
"0.620109",
"0.6183611",
"0.61001116",
"0.6096863",
"0.6069655",
"0.603656... | 0.7348576 | 0 |
when publish_date is in the future the survey should be hidden for post requests | def eAZC(YKHO):
geh0 = YKHO.client.post(gxEw('survey-detail', args=(7,)))
YKHO.assertEqual(geh0.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqnV(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def eJH2(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-detail', args=(6,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def yz11(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-d... | [
"0.7388913",
"0.6945619",
"0.6758067",
"0.6614336",
"0.6529019",
"0.6505785",
"0.64692587",
"0.6383701",
"0.63791376",
"0.637712",
"0.6377081",
"0.6340702",
"0.6313147",
"0.6264957",
"0.6250867",
"0.6226801",
"0.6204084",
"0.61825514",
"0.61634606",
"0.61573446",
"0.60797626"... | 0.76304775 | 0 |
when publish_date is in the past and no expiration date is set the survey should be visible | def ZIyb(YKHO):
geh0 = YKHO.client.get(gxEw('survey-detail', args=(9,)))
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAZC(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def YqnV(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def eJH2(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-... | [
"0.72421587",
"0.72303116",
"0.70417583",
"0.69429725",
"0.69324166",
"0.6532229",
"0.65142226",
"0.6506122",
"0.6466386",
"0.64350563",
"0.64301413",
"0.6418851",
"0.6415251",
"0.6388135",
"0.6351799",
"0.6326645",
"0.6274816",
"0.6225848",
"0.61928624",
"0.6155968",
"0.6108... | 0.62209857 | 18 |
when expiration_date is in the future and no publication_date is set the survey should be visible | def yz11(YKHO):
geh0 = YKHO.client.get(gxEw('survey-detail', args=(10,)))
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqnV(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def eAZC(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def eJH2(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-... | [
"0.7258254",
"0.71627146",
"0.71238506",
"0.7120311",
"0.64381266",
"0.6207476",
"0.6198774",
"0.61765677",
"0.61711526",
"0.6132669",
"0.5972864",
"0.59477806",
"0.5937071",
"0.590881",
"0.58884203",
"0.5880308",
"0.58740735",
"0.58650964",
"0.5857661",
"0.58570534",
"0.5851... | 0.70027846 | 4 |
Check if start time and end time define a valid time range of the given scenario. | def d2y2(UXO9, yKcO, Os4s):
BoCW(UXO9)
nSCA(yKcO)
nSCA(Os4s)
lAuU = rLdf.Timestamp(UXO9.info['start_date'])
JWxK = rLdf.Timestamp(UXO9.info['end_date'])
if not lAuU <= yKcO <= Os4s <= JWxK:
raise ValueError('Must have scenario_start <= start <= end <= scenario_end') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MuMC(YKHO, GTy1, SWox, C7pn):\n if all((ITS7 >= 0 and ITS7 <= 23 for ITS7 in (GTy1, SWox, C7pn))):\n if SWox < C7pn:\n return GTy1 >= SWox and GTy1 < C7pn\n elif SWox == C7pn:\n return GTy1 == SWox\n else:\n return GTy1 >= SWox or GTy1 < C7pn\n else:\... | [
"0.76501113",
"0.7551768",
"0.75297505",
"0.74138594",
"0.7396285",
"0.7345366",
"0.73059875",
"0.7272241",
"0.725627",
"0.7219986",
"0.7217927",
"0.7131165",
"0.7052929",
"0.70397705",
"0.6994314",
"0.69585615",
"0.6933343",
"0.688204",
"0.6856834",
"0.6826956",
"0.6813302",... | 0.782009 | 0 |
Check if start time and end time define a valid time range of the time series. | def pu1J(i8WE, yKcO, Os4s):
Vpj5(i8WE, 'time series')
nSCA(yKcO)
nSCA(Os4s)
if not i8WE.index[0] <= yKcO <= Os4s <= i8WE.index[-1]:
raise ValueError('Must have time_series_start <= start <= end <= time_series_end') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrCH(YKHO, SWox, C7pn, ITS7):\n TuyM = 2764800\n return SWox <= ITS7 <= C7pn or ITS7 <= SWox <= ITS7 + TuyM or ITS7 <= C7pn <= ITS7 + TuyM",
"def c_17(YKHO, SWox, C7pn):\n if not isinstance(SWox, int):\n raise TypeError('Start time of siumlation must be integer.')\n if SWox <= 0:\n ... | [
"0.82146364",
"0.8037606",
"0.7746296",
"0.75969857",
"0.75572586",
"0.74787974",
"0.73920906",
"0.7373374",
"0.736",
"0.73492885",
"0.73379093",
"0.73252225",
"0.7283609",
"0.7227672",
"0.71838194",
"0.7171952",
"0.71371967",
"0.7104106",
"0.71005887",
"0.71005887",
"0.70661... | 0.8105356 | 1 |
Ensure epsilon is valid. | def zNcZ(_hZ2):
if not isinstance(_hZ2, (float, int)):
raise TypeError('epsilon must be numeric')
if _hZ2 < 0:
raise ValueError('epsilon must be non-negative') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNcZ(_hZ2):\n if not (isinstance(_hZ2, float) and 1e-05 <= _hZ2 <= 0.3):\n print('> ERROR: epsilon must be a float between 0.3 and 10^-5')\n return False\n return True",
"def _hZ2():\n return ntp8",
"def _hZ2():\n return ntp8",
"def _hZ2(YKHO) -> float:\n pass",
"def ZINM(B... | [
"0.8056095",
"0.78117067",
"0.76818234",
"0.76276684",
"0.7575491",
"0.7117444",
"0.70483834",
"0.7009264",
"0.69954634",
"0.6934476",
"0.6865425",
"0.6863289",
"0.6816977",
"0.6618652",
"0.66034675",
"0.659832",
"0.65916955",
"0.65398055",
"0.6449264",
"0.6444656",
"0.644155... | 0.82458735 | 0 |
Return backend instance specific for this region. | def Tq5c(YKHO) -> CmwO:
return koAT[YKHO.current_account][YKHO.region] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IoRl(Emd4, CfBk):\n try:\n uiPG = CfBk()\n except Exception as err:\n raise Gqi2('Backend %s could not be instantiated: %s' % (Emd4, XObx))\n try:\n bGrB = uiPG.configuration()['name']\n except (LookupError, TypeError):\n raise Gqi2('Backend %s has an invalid configurati... | [
"0.7583919",
"0.7398918",
"0.73806053",
"0.73713285",
"0.72767407",
"0.71186185",
"0.710946",
"0.7026652",
"0.70245117",
"0.7000891",
"0.6997692",
"0.6997692",
"0.69836634",
"0.6974395",
"0.69264156",
"0.69071645",
"0.6906695",
"0.6890563",
"0.6883606",
"0.6881767",
"0.686830... | 0.60728204 | 94 |
Returns list of all Resolver endpoints, filtered if specified. | def AhOv(YKHO) -> str:
KUnM = YKHO._get_param('Filters')
vDzF = YKHO._get_param('NextToken')
zD4t = YKHO._get_param('MaxResults', 10)
rUrJ([('maxResults', zD4t)])
wnQ_, vDzF = YKHO.route53resolver_backend.list_resolver_endpoints(KUnM, next_token=vDzF, max_results=zD4t)
geh0 = {'ResolverEndpoints... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59l(YKHO):\n return sorted([bGHp(YKHO.app, eD8c, YKHO.prefix) for eD8c in YKHO.app.url_map.iter_rules() if str(eD8c).startswith(YKHO.prefix)], key=lambda WKvO: WKvO.rule.rule)",
"def wnQ_(YKHO) -> x1iM['Endpoint']:\n return YKHO.__endpoints",
"def q3sb(YKHO):\n return YKHO._get_endpoint(YKHO.ENDP... | [
"0.6898857",
"0.66815203",
"0.6597969",
"0.6496879",
"0.64153516",
"0.63895",
"0.63543624",
"0.6327968",
"0.6301441",
"0.6283559",
"0.62667143",
"0.6218559",
"0.61953676",
"0.6144031",
"0.61118025",
"0.6100152",
"0.6091307",
"0.6065623",
"0.6017921",
"0.6017022",
"0.60058093"... | 0.71021694 | 0 |
Returns list of all Resolver rules, filtered if specified. | def IZxH(YKHO) -> str:
KUnM = YKHO._get_param('Filters')
vDzF = YKHO._get_param('NextToken')
zD4t = YKHO._get_param('MaxResults', 10)
rUrJ([('maxResults', zD4t)])
try:
c_NS, vDzF = YKHO.route53resolver_backend.list_resolver_rules(KUnM, next_token=vDzF, max_results=zD4t)
except ArtZ as ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c_NS(YKHO):\n return list(YKHO._rules)",
"def Ddaj(YKHO):\n return list(YKHO._rules)",
"def c_NS(YKHO) -> h8nf[bdIy['outputs.RouteFilterRuleResponse']]:\n return qe4Y.get(YKHO, 'rules')",
"def BX8i(YKHO):\n return YKHO.rules",
"def mpYi():\n fmsr = BKVf()\n return [wEf2 for wEf2 in fm... | [
"0.7076495",
"0.6824558",
"0.6812496",
"0.67728055",
"0.6740071",
"0.67289793",
"0.67077297",
"0.6677286",
"0.6652086",
"0.6624335",
"0.66065514",
"0.6602228",
"0.6543432",
"0.6543432",
"0.6543432",
"0.6515581",
"0.6428437",
"0.6399092",
"0.6374635",
"0.63695675",
"0.636276",... | 0.6400912 | 17 |