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 |
|---|---|---|---|---|---|---|
Sets the missions of this OneShip. | def eMqB(YKHO, eMqB):
YKHO._missions = eMqB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OMfO(YKHO, Bv4a):\n YKHO.pilot.add_mission(Bv4a)",
"def Bv4a(YKHO, Bv4a: RobotMission) -> None:\n if YKHO._mission.target_name:\n Bv4a.target_name = YKHO._mission.target_name\n YKHO._mission = Bv4a",
"def cWOf(YKHO, oUZx):\n YKHO.limb.move_to_joint_positions(oUZx)",
"def dnm1(YKHO, ytH... | [
"0.6117841",
"0.542664",
"0.5391531",
"0.5336746",
"0.5266666",
"0.51743484",
"0.5129706",
"0.5057857",
"0.50530386",
"0.50526613",
"0.50466585",
"0.50049955",
"0.5004",
"0.49993315",
"0.49993315",
"0.49993315",
"0.4975133",
"0.49531257",
"0.49458888",
"0.49453354",
"0.491599... | 0.78826755 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, jsJ4):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Generate random string of desired length. | def e7Tf(u54L: int=14, jkLJ: str=U2NK) -> str:
if not tmSG:
mbix = ''.join((tuKI.choice(U2NK) for bGrB in range(u54L)))
r0W8 = '{0}{1}{2}'.format(tuKI.getstate(), ITS7.time(), mbix).encode()
tuKI.seed(HBct.sha256(r0W8).digest())
return ''.join((tuKI.choice(jkLJ) for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.... | [
"0.8760589",
"0.87551016",
"0.87176234",
"0.8712707",
"0.8665411",
"0.86284304",
"0.8561044",
"0.85470325",
"0.8536481",
"0.8524415",
"0.8508037",
"0.8497756",
"0.84976083",
"0.84964114",
"0.8458624",
"0.8454828",
"0.843313",
"0.8423151",
"0.8423151",
"0.8394793",
"0.8390424"... | 0.0 | -1 |
general Boolean test for for a floating point value | def BAi_(VN2L):
try:
float(VN2L)
return True
except ValueError:
return False
except TypeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HeHH(WKvO: Any) -> bool:\n try:\n float(WKvO)\n return True\n except ValueError:\n return False",
"def wqOm(BWXx: Any) -> bool:\n return gBe3(BWXx) == 0",
"def SH_w(BWXx):\n try:\n float(BWXx)\n return True\n except Exception:\n return False",
"def... | [
"0.7769432",
"0.74074066",
"0.73462874",
"0.73139405",
"0.7303316",
"0.7289522",
"0.7287122",
"0.72836876",
"0.7260473",
"0.7252138",
"0.7246141",
"0.72303647",
"0.72299945",
"0.72299945",
"0.72299945",
"0.72299945",
"0.7223809",
"0.7205321",
"0.7203465",
"0.7183674",
"0.7156... | 0.0 | -1 |
converts a duration into seconds allows concatenated times (e.g. 1h 30mn) | def C6wh(VN2L):
if type(VN2L) != str:
return None
YEnM = VN2L.replace(mxSo, '')
if not YEnM:
return None
for PXGI in D6B1:
p_9N = YEnM.find(PXGI)
if p_9N > -1 and p_9N < len(YEnM) - len(PXGI):
n2Q1 = YEnM[:p_9N + len(PXGI)]
SpII = YEnM[len(n2Q1):]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nGs9(WbTE):\n z0YJ = WbTE / 1000\n r8hN, KCHu = divmod(z0YJ, 60)\n MKlR, r8hN = divmod(r8hN, 60)\n if MKlR:\n return '%02d:%02d:%02d' % (MKlR, r8hN, KCHu)\n return '%02d:%02d' % (r8hN, KCHu)",
"def DhpL(WbTE):\n kRsb = WbTE % 60\n FIL5 = int(WbTE) // 60\n Ylbp = str(kRsb) + 's'... | [
"0.76998335",
"0.7651666",
"0.7477816",
"0.7410544",
"0.73600143",
"0.7347661",
"0.734018",
"0.7332041",
"0.7243466",
"0.7213524",
"0.7148712",
"0.7134922",
"0.7115858",
"0.7114757",
"0.7108911",
"0.7083207",
"0.7044733",
"0.7019762",
"0.6997224",
"0.6990913",
"0.69203943",
... | 0.0 | -1 |
check if an expression is a list, detecting comma outside brackets or quotes | def knYN(t6m2):
if type(t6m2) != str:
return False
VN2L = I8hg(t6m2)
vo0u = 0
U47b = 0
EmMj = False
for Z9rn in VN2L:
if Z9rn == LX6y:
U47b = 1 - U47b
if U47b == 1:
continue
if Z9rn == naYc and vo0u == 0:
EmMj = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qYr0(YKHO):\n pass",
"def ZTfE(lsX7):\n return type(lsX7) != list",
"def Lm1b(input):\n return type(input) == jbQU",
"def Lm1b(XkN1):\n if ZbWC.match(c_NS['list'], XkN1):\n return True\n else:\n return False",
"def Lm1b(WKvO):\n return isinstance(WKvO, list) and (not isi... | [
"0.7065483",
"0.7023328",
"0.69967157",
"0.6823934",
"0.6776722",
"0.6753951",
"0.6745162",
"0.6741711",
"0.6703485",
"0.6688383",
"0.66344404",
"0.65835553",
"0.65835553",
"0.65798026",
"0.6579564",
"0.6579564",
"0.65332115",
"0.6499116",
"0.64082485",
"0.64074093",
"0.63575... | 0.7978144 | 0 |
splits an expression into a list, using comma separator but ignoring commas inside brackets or quotes ignore quotes inside brackets and brackets inside quotes detect close brackets that do not correspond to open brackets | def JHcA(VN2L):
if type(VN2L) != str:
return None
if not VN2L:
return []
if not sEK_ in VN2L and (not LX6y in VN2L):
BDwY = [WKvO.strip(mxSo) for WKvO in VN2L.split(naYc)]
if BDwY[-1] == '':
BDwY = BDwY[:-1]
return BDwY
IMwm = False
U47b = 0
vo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cUhJ(Emd4, lFz1):\n xP1J = 0\n UWa9 = []\n YC_T = ''\n for hcXw in lFz1:\n if hcXw == ',':\n if xP1J == 0:\n UWa9.append(YC_T)\n YC_T = ''\n else:\n YC_T += hcXw\n else:\n YC_T += hcXw\n if hcXw =... | [
"0.77486914",
"0.69894046",
"0.6973156",
"0.6532396",
"0.6350256",
"0.63303864",
"0.6287128",
"0.628215",
"0.6281731",
"0.62587565",
"0.62343913",
"0.6228427",
"0.6227833",
"0.61968076",
"0.61296564",
"0.61119515",
"0.6099",
"0.60961163",
"0.6090497",
"0.6088846",
"0.6065145"... | 0.7663216 | 1 |
setUp method for tests. | def FCbF(YKHO):
YKHO.image_width = 120
YKHO.image_height = 32
YKHO.dataset = x3i3('../../data/text_recognition/annotation.txt', YKHO.image_width, YKHO.image_height, repeat=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n DuvM.TestCase.setUp(YKHO)",
"def FCbF(YKHO):\n return",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().se... | [
"0.892865",
"0.892588",
"0.88824844",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88345844",
"0.8822966",
"0.8822966",
"0.8822966",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.... | 0.0 | -1 |
setUp method for tests. | def FCbF(YKHO):
YKHO.seq_length = 30
YKHO.batch_size = 64
YKHO.image_width = 120
YKHO.image_height = 32
YKHO.dataset = x3i3('../../data/text_recognition/annotation.txt', YKHO.image_width, YKHO.image_height, repeat=None, batch_size=YKHO.batch_size) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n DuvM.TestCase.setUp(YKHO)",
"def FCbF(YKHO):\n return",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().setUp()",
"def FCbF(YKHO):\n super().se... | [
"0.892865",
"0.892588",
"0.88824844",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88418263",
"0.88345844",
"0.8822966",
"0.8822966",
"0.8822966",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.88157314",
"0.... | 0.0 | -1 |
Returns the JSON string representation of list_dictionaries. | def IZ3T(F986):
if F986 is None or len(F986) < 1:
return '[]'
else:
return qQXR.dumps(F986) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if not F986:\n ... | [
"0.85389435",
"0.8519157",
"0.8519157",
"0.8502179",
"0.8500688",
"0.84679306",
"0.8344619",
"0.8335705",
"0.8335705",
"0.8307396",
"0.8301731",
"0.8298922",
"0.82957375",
"0.829023",
"0.8280563",
"0.828027",
"0.8260276",
"0.8260276",
"0.8260276",
"0.8260276",
"0.82528067",
... | 0.81809735 | 37 |
Returns an instance with all attributes already set. | def eLpg(Emd4, **cmPJ):
if Emd4.__name__ == 'Rectangle':
BdN0 = Emd4(1, 1)
BdN0.update(**cmPJ)
return BdN0
elif Emd4.__name__ == 'Square':
BdN0 = Emd4(1)
BdN0.update(**cmPJ)
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__class__(YKHO.attributes)",
"def jth9(YKHO):\n Z9rn = type(YKHO)()\n Z9rn._attrs = YKHO._attrs.copy()\n return Z9rn",
"def jth9(YKHO, **c_sp):\n Aofo = YKHO.new(YKHO.__class__, __name__=YKHO.classname(), offset=YKHO.getoffset())\n c_sp.setdefault('value', YKHO.v... | [
"0.6902921",
"0.66885126",
"0.6569166",
"0.65201783",
"0.64397776",
"0.64023554",
"0.6357634",
"0.6350123",
"0.6336408",
"0.6322078",
"0.62790334",
"0.62755287",
"0.62576747",
"0.6257494",
"0.6229053",
"0.62082225",
"0.61947477",
"0.61783874",
"0.6135265",
"0.6108055",
"0.608... | 0.0 | -1 |
Returns a list of instances. | def J2u4(Emd4):
Ux0P = '{}.json'.format(Emd4.__name__)
try:
with open(Ux0P, mode='r', encoding='utf-8') as nUeQ:
LTYm = Emd4.from_json_string(nUeQ.read())
except Exception:
return []
return [Emd4.create(**YRbF) for YRbF in LTYm] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbzt(YKHO) -> x1iM[ec6H]:\n pass",
"def y5NJ(YKHO):\n raise NotImplementedError()",
"def y5NJ(YKHO):\n return []",
"def bUWH(YKHO) -> x1iM[Kt_s]:\n return YKHO._instances",
"def list(YKHO, **YSA3):\n return YKHO.get_instances(YSA3)",
"def lbzt(YKHO):\n return YKHO.instances",
"def... | [
"0.9090541",
"0.88311285",
"0.8801837",
"0.848732",
"0.843132",
"0.84200704",
"0.83854324",
"0.8357952",
"0.8275728",
"0.82279754",
"0.8164767",
"0.8093292",
"0.80715257",
"0.8051574",
"0.80346715",
"0.80154127",
"0.79753184",
"0.7917529",
"0.79032606",
"0.78845567",
"0.78661... | 0.0 | -1 |
Returns a list of instances. | def kqux(Emd4):
Ux0P = '{}.csv'.format(Emd4.__name__)
try:
with open(Ux0P, mode='r', encoding='utf-8') as nUeQ:
N5Pj = list(m6_J.reader(nUeQ, delimiter=','))
if Emd4.__name__ == 'Rectangle':
lxkz = ['id', 'width', 'height', 'x', 'y']
eKbg = []
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbzt(YKHO) -> x1iM[ec6H]:\n pass",
"def y5NJ(YKHO):\n raise NotImplementedError()",
"def y5NJ(YKHO):\n return []",
"def bUWH(YKHO) -> x1iM[Kt_s]:\n return YKHO._instances",
"def list(YKHO, **YSA3):\n return YKHO.get_instances(YSA3)",
"def lbzt(YKHO):\n return YKHO.instances",
"def... | [
"0.9090541",
"0.88311285",
"0.8801837",
"0.848732",
"0.843132",
"0.84200704",
"0.83854324",
"0.8357952",
"0.8275728",
"0.82279754",
"0.8164767",
"0.8093292",
"0.80715257",
"0.8051574",
"0.80346715",
"0.80154127",
"0.79753184",
"0.7917529",
"0.79032606",
"0.78845567",
"0.78661... | 0.0 | -1 |
Checks if CUDA is available. When CUDA is correctly set up, nothing happens. Otherwise it raises ``RuntimeError``. | def l967():
if not yWbd:
tO9_ = 'CUDA environment is not correctly set up\n(see https://github.com/chainer/chainer#installation).'
tO9_ += str(i_pc)
raise RuntimeError(tO9_)
if not qjff and (not R4yc) and (not getattr(l967, '_already_warned', False)):
qmLP.warn('cuDNN is not enab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4qi():\n import torch\n return torch.cuda.is_available()",
"def GfdN():\n print(ht2j.__version__)\n print(ht2j.cuda.is_available())",
"def QyIZ():\n yGCl = Hy7s.getenv('CUDA_VISIBLE_DEVICES', default=None)\n if yGCl:\n return True\n else:\n return False",
"def yErN():\... | [
"0.8321879",
"0.761545",
"0.7614608",
"0.7506202",
"0.71930474",
"0.7050763",
"0.7048743",
"0.6995331",
"0.69272846",
"0.68831295",
"0.68831295",
"0.68831295",
"0.68831295",
"0.68831295",
"0.68831295",
"0.6868076",
"0.6717809",
"0.66875595",
"0.668446",
"0.65927845",
"0.65535... | 0.82177466 | 1 |
Determines if we should use cuDNN. This function checks ``chainer.config.use_cudnn``, ``chainer.backends.cuda.cudnn_enabled``, and the cuDNN version. Note that | def hgRO(ABDL, w4F0=0):
if yWcE < w4F0:
return False
if ABDL not in EoGI:
raise ValueError('invalid cuDNN use level: %s (must be either of "==always" or ">=auto")' % repr(ABDL))
JbyC = EoGI[ABDL]
x98M = GPtr.use_cudnn
if x98M not in JbyC:
raise ValueError('invalid use_cudnn c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l967():\n if not yWbd:\n tO9_ = 'CUDA environment is not correctly set up\\n(see https://github.com/chainer/chainer#installation).'\n tO9_ += str(i_pc)\n raise RuntimeError(tO9_)\n if not qjff and (not R4yc) and (not getattr(l967, '_already_warned', False)):\n qmLP.warn('cuDNN... | [
"0.73513037",
"0.69408023",
"0.6939874",
"0.69246054",
"0.66797215",
"0.6511612",
"0.6511612",
"0.6511612",
"0.6511612",
"0.6511612",
"0.6511612",
"0.6486017",
"0.6465872",
"0.6427823",
"0.6405582",
"0.64009845",
"0.6329601",
"0.63012373",
"0.62652135",
"0.62526476",
"0.62424... | 0.7353381 | 0 |
Create a new session for the current user. | def GukQ(YKHO):
Wswm, _EYN = Oa1e.db.new_session()
cuiw['id'] = Wswm
cuiw['date'] = int(_EYN.replace(tzinfo=rIAI.utc).timestamp())
YKHO._debug('Allocated session id=%d', Wswm)
Oa1e._session_check = True
Oa1e._session_expired = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BtkK(YKHO, NtEF):\n return YKHO.session_mgr.create_new_session(NtEF)",
"def gte4():\n OaeV = DaDb.Context('UserPass')\n OaeV.user_id = Edpv\n OaeV.user_pass = bky0\n cuiw = DaDb.Session()\n cuiw.add_context(OaeV)\n return cuiw",
"def MT0P(YKHO, QePW):\n return YKHO._createSessionObj... | [
"0.7736532",
"0.76780933",
"0.74264735",
"0.74264735",
"0.7419356",
"0.7411334",
"0.74004847",
"0.73790073",
"0.73783815",
"0.73759633",
"0.73690903",
"0.73324275",
"0.7290155",
"0.7146281",
"0.71175617",
"0.709146",
"0.7081193",
"0.70767635",
"0.69489795",
"0.69412655",
"0.6... | 0.7012528 | 18 |
Return whether the user has permission to access this site. We confirm that they have a valid, nonexpired session that is associated with a character that is permitted to be here. EVEAPIError or AccessDeniedError may be raised. | def rts1(YKHO):
iIih = YKHO.get_character_id()
if not iIih:
return False
YKHO._debug('Checking auth for session id=%d', cuiw['id'])
eOtH = YKHO._get_token(iIih)
if not eOtH:
YKHO._debug('No valid token for char id=%d session id=%d', iIih, cuiw['id'])
YKHO._invalidate_session(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False",
"def PVSl():\n return CmGq.User().IsAllowed('Rerun Operations STP', 'Application')",
"def PVSl():\n return CmGq.User().IsAllowed('Regenerate Confirmation', 'Operation')",
"... | [
"0.7119083",
"0.6844539",
"0.6752625",
"0.6552937",
"0.6552937",
"0.6552937",
"0.6552937",
"0.649186",
"0.6478008",
"0.6478008",
"0.64743847",
"0.6412111",
"0.63809085",
"0.63436043",
"0.63427573",
"0.63427573",
"0.63427573",
"0.63427573",
"0.63427573",
"0.63209873",
"0.63159... | 0.63324 | 19 |
Returns all the monitoring targets from Prometheus server. | def AeN8():
_hkX = G4JS.get(sEAN.monitor_api + '/prometheus/targets', timeout=sEAN.timeout, headers=sEAN.header)
if _hkX.status_code != 200:
na1r.debug('Request returned with ' + str(_hkX.text))
P1dF = 'Request returned with ' + str(_hkX.status_code)
return (False, P1dF)
DqlU = qQXR.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH8N(YKHO):\n nNXP = '/api/targets'\n return YKHO.get(nNXP)",
"def RH8N(YKHO):\n tO9_ = YKHO.c.execute('info', 'targets')\n Ylbp = jZ4I.literal_eval(tO9_)\n return Ylbp",
"def a0XR(RKD7):\n return qLNr.keys()",
"def a0XR(RKD7):\n return qLNr.keys()",
"def x6A0(YKHO):\n return YK... | [
"0.7098993",
"0.70267797",
"0.6538258",
"0.6521259",
"0.65185267",
"0.6425919",
"0.6329155",
"0.6307054",
"0.6277664",
"0.6273552",
"0.62386465",
"0.6232187",
"0.6232187",
"0.6230519",
"0.6230519",
"0.62055045",
"0.61760676",
"0.6167333",
"0.6139849",
"0.61261714",
"0.6080787... | 0.7989975 | 0 |
Returns the number of activate policy monitoring rules. | def ZN7_(TUKt):
bD7m = sEAN.monitoring_manager_api + '/policies/monitoring-rules/service/' + TUKt
_hkX = G4JS.get(bD7m, timeout=sEAN.timeout)
if _hkX.status_code != 200:
na1r.debug('Request for monitoring policy rule returned with ' + str(_hkX.status_code))
return (False, qQXR.loads(_hkX.tex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Beum(YKHO):\n return sum([len(YKHO.rules[K4sN]) for K4sN in list(YKHO.rules.keys())])",
"def mw44():\n VrLd = Lzgs(count=True)\n hmR2 = VrLd['count']\n return hmR2",
"def V4kk(YKHO) -> int:\n ...",
"def tmXF(YKHO):\n for zFiD in YKHO.data.splitlines():\n r8hN = ZNky.match(zFiD)\n... | [
"0.638328",
"0.6277832",
"0.60340506",
"0.59682953",
"0.58789295",
"0.5835498",
"0.5819872",
"0.58115447",
"0.580278",
"0.58004475",
"0.5731869",
"0.5725891",
"0.5725891",
"0.56933856",
"0.5688292",
"0.56669813",
"0.561874",
"0.55899143",
"0.55795205",
"0.55625445",
"0.556190... | 0.61255884 | 2 |
Make a move in a random cardinal direction (unless it is impossible to do so without running out of bounds or stepping on another player). | def BZN_(YKHO, BH3N):
hToD = [XP5J.position for XP5J in BH3N.players + [BH3N.it]]
U2Ur = [Z9rn for Z9rn in YKHO.position.neighbors(BH3N.bounds, tuKI.randint(1, YKHO.speed)) if Z9rn not in hToD]
if U2Ur:
YKHO.position = Acvy(U2Ur) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKSy(YKHO):\n XSoh = oyIN.random.choice(YKHO.game.legal_moves)\n YKHO.game.move_board(XSoh)",
"def ysMt(QTBn):\n return tuKI.choice([jcit, qB1i, pV4Y, OkcI, ydxr, FxEq, ZSQN])",
"def x6E3(YKHO):\n YKHO.move_x = tuKI.randint(-YKHO.max_speed, YKHO.max_speed)\n YKHO.move_y = tuKI.randint(-YKHO.... | [
"0.8255005",
"0.7908416",
"0.7744189",
"0.77404463",
"0.7671202",
"0.75316596",
"0.75238866",
"0.7508347",
"0.7436599",
"0.7310644",
"0.7288696",
"0.7279794",
"0.7269108",
"0.72512364",
"0.7220534",
"0.71866345",
"0.71853364",
"0.711777",
"0.7068104",
"0.7041741",
"0.7036095"... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.6334155 | 75 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.6334155 | 73 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 8 |
converts a float/None to a localeformatted string, so basically ``str(value)`` | def D24W(BWXx: Optional[float]) -> str:
if BWXx is None:
return ''
return LVs3(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVs3(BWXx: float) -> str:\n if isinstance(BWXx, str):\n return BWXx\n try:\n l5Ny = NCqB.format_string('%g', BWXx)\n except:\n print('value = %r' % BWXx)\n raise\n return l5Ny",
"def o7KR(BWXx: float) -> str:\n if BWXx == 0.0:\n return '0.0'\n return '{0:.... | [
"0.75583935",
"0.73419267",
"0.7065925",
"0.6994996",
"0.6824042",
"0.6753676",
"0.6737947",
"0.673505",
"0.6698699",
"0.6684118",
"0.66337806",
"0.656943",
"0.65488017",
"0.65336883",
"0.6519721",
"0.6513882",
"0.65127236",
"0.6480847",
"0.64781815",
"0.6466685",
"0.6432398"... | 0.7893488 | 0 |
converts a float to a localeformatted string, so basically ``str(value)`` | def LVs3(BWXx: float) -> str:
if isinstance(BWXx, str):
return BWXx
try:
l5Ny = NCqB.format_string('%g', BWXx)
except:
print('value = %r' % BWXx)
raise
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7KR(BWXx: float) -> str:\n if BWXx == 0.0:\n return '0.0'\n return '{0:.5f}'.format(BWXx)",
"def pCp0(eHNT):\n AjzU = OaeV.create_decimal(repr(eHNT))\n return format(AjzU, 'f')",
"def pCp0(eHNT):\n AjzU = OaeV.create_decimal(repr(eHNT))\n return format(AjzU, 'f')",
"def j3Kj(xDp... | [
"0.79829496",
"0.7617156",
"0.7617156",
"0.7298373",
"0.71735615",
"0.7172244",
"0.71115774",
"0.7028527",
"0.69451165",
"0.6918114",
"0.69165987",
"0.6884769",
"0.68474895",
"0.68279964",
"0.6826194",
"0.6822853",
"0.67577744",
"0.6727288",
"0.66777563",
"0.66672456",
"0.666... | 0.7994272 | 0 |
Provide a RestClient fixture. | def N6hW(AZgw: MockerFixture, Ehsq: MonkeyPatch) -> zrRO:
Ehsq.setenv('LTA_REST_URL', 'foo')
Ehsq.setenv('LTA_REST_TOKEN', 'bar')
RBVb = AZgw.patch('lta.monitoring.RestClient')
RBVb.return_value.request = zrRO()
return RBVb.return_value.request | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ss8o(P4t4: Flask) -> a1PO.Generator[QRbk, None, None]:\n with P4t4.test_client() as x0hE:\n yield x0hE",
"def FCbF(YKHO):\n YKHO.client = SKUD.create()",
"def udfG(YKHO, uJjO=None):\n return AkDg(YKHO, uJjO)",
"def FCbF(YKHO):\n YKHO.client = i9zE()",
"def FCbF(YKHO):\n YKHO.clien... | [
"0.67250746",
"0.6714593",
"0.66591287",
"0.64565265",
"0.64565265",
"0.64565265",
"0.6414062",
"0.6393798",
"0.6393798",
"0.63349706",
"0.62919486",
"0.6274693",
"0.6264872",
"0.6253167",
"0.6226879",
"0.6219405",
"0.620389",
"0.6185658",
"0.6176177",
"0.6143268",
"0.613165"... | 0.0 | -1 |
Check the run() method of the base class. | async def test_base_run(N6hW: AsyncMock) -> None:
r8hN = m4Gu.monitoring.Monitor('foo', 'bar')
r8hN.do = zrRO(side_effect=r8hN.stop)
r8hN.interval = 0.1
await r8hN.run()
assert r8hN.running is False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n raise Exception('You called run on the base class')",
"def iXC1(YKHO):\n YKHO.logger.error('run called in base class')",
"def iXC1(YKHO):\n raise NotImplementedError('Cannot call .run() on abstract class.')",
"def sarO(YKHO):\n raise NotImplementedError()",
"def zizW(YKHO):\n ... | [
"0.83944374",
"0.7891402",
"0.7755137",
"0.7571329",
"0.75539446",
"0.749193",
"0.7490124",
"0.7469941",
"0.7469941",
"0.7460478",
"0.7451517",
"0.74401766",
"0.7410392",
"0.73947394",
"0.73947394",
"0.73692715",
"0.73692715",
"0.7356061",
"0.73557925",
"0.7337398",
"0.727917... | 0.0 | -1 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', {'title': 'Главная', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the registration page. | def l6D9(QePW):
if QePW.method == 'POST':
j9Wu = Wwnj(QePW.POST)
if j9Wu.is_valid():
hBhc = j9Wu.save(commit=False)
hBhc.is_staff = False
hBhc.is_active = True
hBhc.is_superuser = False
hBhc.date_joined = qcWV.now()
hBhc.last_lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6D9():\n return TvZl('register.html')",
"def p_Ie():\n return TvZl('registration.html')",
"def l6D9():\n return TvZl('register.html')",
"def gr_i():\n return TvZl('registration.php', title='Register')",
"def gr_i():\n return TvZl('register.html', title='Register')",
"def kwoF():\n ... | [
"0.8706346",
"0.8676763",
"0.8635238",
"0.8468603",
"0.8301751",
"0.8289217",
"0.8245877",
"0.82205",
"0.8175505",
"0.8152921",
"0.81290823",
"0.811938",
"0.8108226",
"0.8097915",
"0.8087301",
"0.8085415",
"0.79835445",
"0.79835445",
"0.7976888",
"0.79242826",
"0.7888828",
... | 0.0 | -1 |
Renders the contact page. | def Mxk0(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contact.html', {'title': 'Контакты со мной', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.7063158 | 100 |
Return a FormSet for the given form class. | def jqzJ(L03z, dBAz=vpbj, dDGN=1, WEjk=False, pl9F=False, QI1n=None, fziO=False, fFAy=None, jEPC=False, tKwY=None, KMeg=True):
if fFAy is None:
fFAy = QtwJ
if QI1n is None:
QI1n = w_Lx
if tKwY is None:
tKwY = QI1n + w_Lx
if QI1n > tKwY:
raise ValueError("'absolute_max' mu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyR2(YKHO):\n return VuaF(YKHO.get_form_class(), **YKHO.get_factory_kwargs())",
"def iyR2(YKHO):\n return jvU8(YKHO.model, **YKHO.get_factory_kwargs())",
"def VP2c(YKHO):\n return YKHO.formset_class",
"def MCV_(YKHO):\n if YKHO.form_class or YKHO.change_fields:\n NArs = {'formfield_cal... | [
"0.8437513",
"0.7701677",
"0.761325",
"0.735634",
"0.7289022",
"0.72730905",
"0.72228503",
"0.70740545",
"0.68997335",
"0.684824",
"0.6847377",
"0.67623407",
"0.67539954",
"0.67255807",
"0.6640283",
"0.6638386",
"0.6638386",
"0.6638386",
"0.6599123",
"0.65864056",
"0.64980644... | 0.57874954 | 66 |
Our front page for our Flask app. | def d6pt():
return 'Hello world!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KIjS():\n return TvZl('index.html')",
"def vja_():\n return WsL5.render_template('index.html')",
"def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')",
"def kZiy():\n return WsL5.render_template('home.html', title=Mfgp)",
"def d6pt():\n return WsL5.render_template... | [
"0.839162",
"0.8086499",
"0.79651713",
"0.7924027",
"0.77890813",
"0.76260126",
"0.76129085",
"0.7608066",
"0.76044464",
"0.7563312",
"0.75495994",
"0.7532602",
"0.7531139",
"0.7529873",
"0.7511642",
"0.75110346",
"0.7502854",
"0.746197",
"0.7457956",
"0.745095",
"0.7446928",... | 0.0 | -1 |
Freezes all policies within policy_per_player. | def GtLs(yYQo):
for som_ in yYQo:
for E1Oi in som_:
E1Oi.freeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZIS(YKHO):\n for W061 in YKHO.Q.keys():\n YKHO.proba_step(W061)",
"def NAO5(YKHO, som_: List[AbstractModel]):\n for oyg0, Qabx in zip(YKHO.players, som_):\n oyg0.policy = Qabx",
"def PqWG(YKHO) -> None:\n I45O.info('[Trajectory %4d] Updating policy...', YKHO._trajectory_count)\n ... | [
"0.6500199",
"0.6244299",
"0.6167971",
"0.5883495",
"0.576418",
"0.5732775",
"0.5688417",
"0.5687782",
"0.5650358",
"0.54627454",
"0.54383177",
"0.5397593",
"0.5385815",
"0.53830445",
"0.5362755",
"0.5353851",
"0.5331953",
"0.5330502",
"0.52572894",
"0.52456445",
"0.5224472",... | 0.85241795 | 0 |
Randomly samples a set of policies to run during the next episode. | def DnFw(YKHO, r54p, edhW, Hxg4, r5wW):
cdJN = len(edhW)
HKq_ = [sum(KULu) for KULu in Hxg4]
BDdp = AEbl(HKq_)
r8Aw = oyIN.random.randint(0, len(edhW[BDdp]))
iJnC = edhW[BDdp][r8Aw]
iRgv = r54p[BDdp][r8Aw]
g6XZ = iJnC['total_policies']
pUeD = iJnC['probabilities_of_playing_policies']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Imy3(YKHO, som_):\n if YKHO.verbose:\n print('random select')\n return tuKI.choice(som_)",
"def Canq(YKHO, Qabx):\n xgXB = list()\n vOGg, f9TP = (0, False)\n QTBn = tuKI.choice(list(set(range(0, YKHO.size)).difference(set(YKHO.terminals))))\n XeOP = Qabx(QTBn)\n xgXB.append((QTBn,... | [
"0.6938967",
"0.65798146",
"0.6298413",
"0.62347746",
"0.6228101",
"0.6196708",
"0.61429936",
"0.61051404",
"0.6099997",
"0.60155356",
"0.59973645",
"0.59963095",
"0.59947896",
"0.59913945",
"0.598844",
"0.59554845",
"0.59281707",
"0.5925053",
"0.59064764",
"0.5899535",
"0.58... | 0.7148495 | 0 |
Takes in a unicode encoded string, and converts it into ASCII. Converts accented characters into normal form | def OZFm(n_L_):
return zVCt.normalize('NFKD', n_L_).encode('ascii', 'ignore') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GXoZ(OGsW):\n KpAY = Hb5c()\n return OGsW.translate(KpAY).encode('ascii', 'ignore')",
"def hlms(l5Ny):\n return XKrx(l5Ny)",
"def QWVy(QMSQ):\n return QMSQ.encode('ascii', 'xmlcharrefreplace').decode('ascii')",
"def p5sX(l5Ny):\n return zVCt.normalize('NFKD', l5Ny).encode('ascii', 'ignore'... | [
"0.7949311",
"0.7777078",
"0.768446",
"0.760985",
"0.75722337",
"0.7508128",
"0.74678606",
"0.7446632",
"0.74265987",
"0.74182296",
"0.73387676",
"0.73347515",
"0.73220164",
"0.7308722",
"0.7301808",
"0.7278613",
"0.72592056",
"0.7225039",
"0.7213374",
"0.7210267",
"0.7194009... | 0.76104337 | 3 |
Get places using Google Maps Places API Requires you to have a Google Cloud account with API key. | def HGNu(W0jx: str, _UuI: float, fopC: float, _X5o: int, sAKW: Path) -> CwDs.DataFrame:
sAKW = GkAb(sAKW).expanduser()
H5ew = sAKW.read_text()
CppO = rOmR + f'location={_UuI},{fopC}'
CppO += f'&radius={_X5o * 1000}'
CppO += f'&types={W0jx}'
CppO += f'&key={H5ew}'
Mkmy = G4JS.get(CppO)
Mk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lh6Z(NArs):\n Xl9N = '**********************************************'\n NArs['key'] = H5ew\n _hkX = G4JS.get(Xl9N, params=NArs)\n return _hkX.json()",
"def cK63(OaeV, xDcj=None):\n nNXP = RpLn(OaeV.obj['KEY'], OaeV.obj['country'], OaeV.obj['currency'], OaeV.obj['locale'])\n geh0 = nNXP.con(... | [
"0.7520947",
"0.7400918",
"0.7160271",
"0.7030936",
"0.700064",
"0.6961977",
"0.6952138",
"0.68682504",
"0.6809796",
"0.67341846",
"0.6647053",
"0.6547009",
"0.65028083",
"0.64920884",
"0.64653224",
"0.63720345",
"0.63664114",
"0.6354661",
"0.632849",
"0.6264618",
"0.6254778"... | 0.58730125 | 46 |
Creates relationships for the given indicator | def BUCr(N6J4: dict, nPfq: str, MkWg: str, ZlT9: str, y69_: str, JkcQ: str, mWFP: str, VIh0: str) -> x1iM[dict]:
_yOJ = N6J4.get(nPfq, [])
KQdn = []
if _yOJ != 'redacted':
KQdn = [aYQa(entity_a=N6J4.get(MkWg, ''), entity_a_type=ZlT9, name=mWFP, entity_b=LEXu.get(y69_, ''), entity_b_type=JkcQ, revers... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lstr(YKHO, CzRG):\n YKHO.related_indicators.append(CzRG)",
"def EEq6(YKHO) -> bDy6[IdZE]:\n koMu = IdZE(start_key=YKHO.get_watermark_model_key(), start_label=Yu5i.LABEL, end_key=YKHO.get_metadata_model_key(), end_label='Table', type=Yu5i.WATERMARK_TABLE_RELATION_TYPE, reverse_type=Yu5i.TABLE_WATERMARK_... | [
"0.6042612",
"0.58642936",
"0.58255976",
"0.57997245",
"0.57937264",
"0.5776079",
"0.5774269",
"0.56724817",
"0.5662774",
"0.56600064",
"0.56353337",
"0.5610438",
"0.5600756",
"0.5586246",
"0.55831385",
"0.55625796",
"0.5538212",
"0.55106384",
"0.54960227",
"0.5487109",
"0.54... | 0.62911916 | 0 |
Flatten the input iterable. >>> list(flatten([[0, 1], [2, 3]])) [0, 1, 2, 3] >>> list(flatten([[0, 1], [2, 3, 4, 5]])) [0, 1, 2, 3, 4, 5] | def PWgb(OxJJ):
return Hs6x.chain.from_iterable(OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(OxJJ):\n return [ZfUD for XuXy in OxJJ for ZfUD in XuXy]",
"def PWgb(OxJJ):\n Aofo = []\n for YRbF in OxJJ:\n if isinstance(YRbF, list):\n Aofo.extend(PWgb(YRbF))\n else:\n Aofo.append(YRbF)\n return Aofo",
"def PWgb(OxJJ):\n return zhES.chain(*OxJJ)"... | [
"0.8625432",
"0.8403996",
"0.80672294",
"0.8023077",
"0.7956093",
"0.7642934",
"0.7617506",
"0.74814",
"0.7467764",
"0.7388932",
"0.7347572",
"0.7347572",
"0.7346296",
"0.7333479",
"0.7310066",
"0.7265266",
"0.724274",
"0.72370964",
"0.7201388",
"0.719027",
"0.718721",
"0.7... | 0.8021278 | 4 |
Return a commandline arguments parser. | def Ktbn():
e2h5 = 'Usage: %prog [-t TILES] [-z ZOOM] [-o OUTPUT] IMAGE1 ...'
wvEv = PDen(usage=e2h5)
GPtr = SgrN(wvEv, 'Configuration Options')
GPtr.add_option('-t', '--tiles', dest='tiles', default='32', help='Number of tiles per side.', metavar='TILES')
GPtr.add_option('-z', '--zoom', dest='zoom'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl6v():\n wvEv = WDqQ(prog=Hy7s.path.basename(HwRy.argv[0]), description='CLI for Amiga C Engine')\n wvEv.add_argument('-v', '--version', action='version', version=wx3I)\n wvEv.set_defaults()\n return wvEv",
"def SQzL():\n wvEv = j1Jz.ArgumentParser(description='Solve word paths problem')\n ... | [
"0.7902669",
"0.7673958",
"0.7614817",
"0.7602942",
"0.7582286",
"0.7566264",
"0.75613713",
"0.7529626",
"0.7525679",
"0.7493133",
"0.74773186",
"0.74547195",
"0.745195",
"0.74442846",
"0.74258304",
"0.74181324",
"0.74115944",
"0.7403603",
"0.7395203",
"0.73923385",
"0.738612... | 0.0 | -1 |
Remove html tags from a string | def JZhs(HDFI):
x0SS = ZbWC.compile('<.*?>')
return ZbWC.sub(x0SS, '', HDFI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb... | [
"0.86815035",
"0.85845494",
"0.8547164",
"0.8528413",
"0.84839606",
"0.84403396",
"0.84221727",
"0.84221727",
"0.84218365",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.83305824",
"0.83305824",
"0.83305824",
"0.8295757",
"0.82903194",
"0.82... | 0.77765447 | 42 |
Loads an input image and performs preliminary preprocessing. | def DZ0a(pmON: ImageOrPath, qWz7: bool=False) -> oyIN.ndarray:
if isinstance(pmON, oyIN.ndarray):
d6hw = pmON
else:
if not Hy7s.path.exists(pmON):
raise FileNotFoundError(f'The provided image path {pmON} does not exist.')
d6hw = XC5k.imread(pmON)
if qWz7:
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, QMAG):\n LNo8 = JghP(QMAG, target_size=YKHO.dims)\n LNo8 = mCo1(LNo8)\n LNo8 = oyIN.expand_dims(LNo8, axis=0)\n LNo8 = fjyB(LNo8)\n return LNo8",
"def biH0(YKHO, LNo8):\n raise NotImplementedError",
"def hM8o(pmON):\n oO50 = N_vL.load_image(pmON)\n return N_vL.preprocess(... | [
"0.7643559",
"0.75625956",
"0.74323",
"0.72891426",
"0.7258558",
"0.7238252",
"0.7191023",
"0.71363616",
"0.70948905",
"0.7088524",
"0.7053217",
"0.70412886",
"0.6995303",
"0.69785166",
"0.6968507",
"0.6965262",
"0.6953137",
"0.6908967",
"0.68966484",
"0.67951113",
"0.6759837... | 0.0 | -1 |
Compute the Global Cost Matrix; the cost matrix that does not know the goals of either agent | def j2cR(a1PO, iMN3, kc5l, xyGX, qIhA, HpC4):
CQnk = [[0 for bGrB in qIhA] for bGrB in kc5l]
MJyK = [[0 for bGrB in kc5l] for bGrB in qIhA]
for YRbF, tncx in enumerate(kc5l):
for r845, QFkg in enumerate(qIhA):
CQnk[YRbF][r845], MJyK[r845][YRbF] = opWW(a1PO, iMN3.copy(), tncx, xyGX.copy()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SRP_(YKHO, WKvO, LVAh, MtNH='L2'):\n if MtNH == 'L2':\n ZrzX = WKvO.unsqueeze(-2)\n O4gB = LVAh.unsqueeze(-3)\n Nq1b = ht2j.sum((ZrzX - O4gB) ** 2, dim=-1)\n else:\n raise NotImplementedError('The cost type %s is not implemented!' % MtNH)\n return Nq1b",
"def DNPF(YKHO):\... | [
"0.6374958",
"0.63575375",
"0.6269209",
"0.6245011",
"0.62049705",
"0.6171227",
"0.6171227",
"0.6153009",
"0.6151271",
"0.61323625",
"0.61235106",
"0.6104289",
"0.61031926",
"0.6102602",
"0.609617",
"0.60857797",
"0.60766715",
"0.604971",
"0.60479313",
"0.60374326",
"0.599585... | 0.7388162 | 0 |
Split input file path into the path, the file name without extension, and the extension, and return as a tuple. | def vSto(qaEx):
rKZV, Ux0P = Hy7s.path.split(qaEx)
dvAn, Va2z = Hy7s.path.splitext(Ux0P)
return (rKZV, dvAn, Va2z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdT2(pmON):\n Ux0P = yFjF(pmON)\n aPr_, Fst3 = Hy7s.path.splitext(Ux0P)\n Fst3 = Fst3.replace('.', '').strip()\n return (aPr_, Fst3)",
"def Tf3x(qaEx):\n sL3H, Fst3 = Hy7s.path.splitext(qaEx)\n ITPC = Hy7s.path.split(sL3H)\n SxML = ''\n gIsw = sL3H\n if len(ITPC) > 1:\n SxML... | [
"0.84461296",
"0.82363844",
"0.82066",
"0.8119612",
"0.8064083",
"0.79496026",
"0.787616",
"0.75798464",
"0.75793576",
"0.7541056",
"0.7413194",
"0.7408241",
"0.73963815",
"0.7395191",
"0.73858476",
"0.7376298",
"0.7337176",
"0.73230755",
"0.7277382",
"0.7277382",
"0.7263566"... | 0.74841934 | 10 |
returns the correct q/a plus 3 other random choices as a dict() | def EjEr(bAls, ANfV):
""" because of the way dict() works all 4 choices will be unique """
mrPm = dict()
mrPm[bAls] = ANfV
for Acvy in tuKI.sample(uzQQ, 10):
mrPm[Acvy[0]] = Acvy[1]
if len(mrPm.keys()) > 3:
break
return mrPm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dk0b(mrPm):\n SuM2 = {}\n for H5ew, BWXx in mrPm.items():\n SuM2[H5ew] = tuKI.choice(BWXx)\n return SuM2",
"def rvr1(YKHO, input, FVvl, QIfy=1, vTdo=4):\n input = YKHO.formatter(input)\n mrPm = YKHO.sample_if(input, FVvl, 'True', QIfy) + YKHO.sample_if(input, FVvl, 'False', vTdo - QIfy)... | [
"0.6784909",
"0.6673642",
"0.66363347",
"0.6507167",
"0.6420107",
"0.62595934",
"0.62574625",
"0.6234767",
"0.6205897",
"0.62032557",
"0.6177313",
"0.6174499",
"0.6167145",
"0.6146267",
"0.61430854",
"0.6139544",
"0.6128768",
"0.6115628",
"0.61087877",
"0.6090651",
"0.6089299... | 0.77177584 | 0 |
Tests navigating to the Population page. Should not be run first, because the site loads this page as the default. | def J959(YKHO):
YKHO.bp.go_to_population()
assert YKHO.bp.population_displayed()
ITS7.sleep(3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKWs(YKHO):\n YKHO.browser.get('http://localhost:8000/index.html')",
"def effl(YKHO):\n bD7m = 'https://www.google.com/'\n YKHO.browser.url = bD7m\n YKHO.assertEqual(bD7m, YKHO.browser.url)",
"def siEj(SYsl):\n B2Dn = W3q7(SYsl)\n B2Dn.load()\n B2Dn.test_shop()\n assert SYsl.current... | [
"0.6745828",
"0.66932863",
"0.6634944",
"0.65923053",
"0.6458889",
"0.6437976",
"0.64177656",
"0.6405017",
"0.63699657",
"0.6369787",
"0.63652307",
"0.6361813",
"0.6360454",
"0.6353098",
"0.6343648",
"0.6275339",
"0.62714636",
"0.6263997",
"0.62509525",
"0.6233049",
"0.623093... | 0.737907 | 0 |
Finds the best move for the AI. | def TOA2(YKHO):
if sum(YKHO.board) == 0:
return 1
uc7Q = -FfMS
DQoW = -1
for YRbF in range(YKHO.n * YKHO.n):
q9ES = YKHO.board.copy()
if YKHO.board[YRbF] == 0 and YKHO.board_map[YRbF] == 1:
q9ES[YRbF] = 10
Qj8D = YKHO.minmax(q9ES, YKHO.n, -FfMS, FfMS, Fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mmx3(YKHO, Cs6h):\n MlWX = -oyIN.inf\n vLKJ = None\n for jzdc in IBKe(Cs6h):\n zVFr, UHFx = YKHO.Q.get((tuple(Cs6h), jzdc), (0, 1))\n if zVFr / UHFx > MlWX:\n MlWX = zVFr / UHFx\n vLKJ = jzdc\n return vLKJ",
"def Jwcz(YKHO, iBIi):\n if iBIi.get_number_of_mov... | [
"0.81825465",
"0.8144925",
"0.80953336",
"0.80896574",
"0.80144644",
"0.8014035",
"0.7985046",
"0.79528564",
"0.7932341",
"0.7875592",
"0.78636885",
"0.78636885",
"0.7850221",
"0.77906483",
"0.77745295",
"0.77397203",
"0.7696938",
"0.76659334",
"0.76425874",
"0.7640797",
"0.7... | 0.84225255 | 0 |
Execute the forward pass for the input data through all different layers. | def KVH6(YKHO):
FRUf, YKHO.label_tensor = YKHO.data_layer.next()
for gEmA in YKHO.layers:
FRUf = gEmA.forward(FRUf)
N77f = YKHO.loss_layer.forward(FRUf, YKHO.label_tensor)
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, g4y1):\n pass",
"def KVH6(YKHO, g4y1):\n pass",
"def kOkt(YKHO, EcVT):\n for gEmA in YKHO.__layers:\n EcVT = gEmA.compute_act(EcVT)\n return EcVT",
"def KVH6(YKHO, WbAn):\n YKHO.eval()\n WKvO = YKHO.batch_norm1(WbAn)\n WKvO = ht2j.sigmoid(YKHO.layer_1(WKvO))\n WK... | [
"0.75482804",
"0.75482804",
"0.7424904",
"0.73765033",
"0.73446554",
"0.7339959",
"0.7330301",
"0.73080003",
"0.7306232",
"0.7299385",
"0.727105",
"0.7265604",
"0.7264762",
"0.72575957",
"0.72276914",
"0.7223783",
"0.7222091",
"0.7215706",
"0.72096854",
"0.72074443",
"0.71844... | 0.67340153 | 70 |
Returns a list of model classes with a foreign key to the visit model for the given app, excluding audit models. | def YF9Q(YKHO, tKz9):
P4t4 = WTdB(tKz9)
AIV6 = []
for M24A in ArHU(P4t4):
vXX7, ftfq = YKHO.get_visit_model_cls(tKz9, M24A)
if ftfq:
if getattr(M24A, vXX7, None):
if not M24A._meta.object_name.endswith('Audit'):
AIV6.append(M24A)
return AIV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1GT(YKHO, tKz9, OWw8):\n P4t4 = WTdB(tKz9)\n FYrf = []\n for M24A in ArHU(P4t4):\n if not M24A._meta.object_name.endswith('Audit'):\n if issubclass(M24A, OWw8):\n FYrf.append(M24A)\n return FYrf",
"def DLGb():\n from django.apps import apps\n FYrf = []\n ... | [
"0.6410267",
"0.62417686",
"0.6068974",
"0.60452425",
"0.59407055",
"0.59005815",
"0.58651704",
"0.5826558",
"0.5826558",
"0.5756856",
"0.5742201",
"0.5626545",
"0.5601428",
"0.5588343",
"0.55634487",
"0.54989326",
"0.5494204",
"0.5487191",
"0.5483942",
"0.5446479",
"0.544031... | 0.6520045 | 0 |
Confirm this controller can still be used to dispatch has not returned it's items. | def IJ7Q(YKHO):
if not YKHO.get_container_register_instance().is_ready():
raise jWog("This controller has already returned it's items. To dispatch new items, create a new instance.")
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def peHJ(YKHO):\n geh0 = YKHO.client.get(gxEw('index'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'No items are available.')\n YKHO.assertQuerysetEqual(geh0.context['item_list'], [])",
"def bGrB():\n YKHO.fail('This view should not have been called')",
"def bGrB():\n ... | [
"0.60985875",
"0.5980892",
"0.5980892",
"0.5967512",
"0.58909726",
"0.5770511",
"0.5765801",
"0.5759396",
"0.5738654",
"0.5680959",
"0.56492674",
"0.56259763",
"0.5610829",
"0.5599271",
"0.55972666",
"0.55867827",
"0.55836487",
"0.5579693",
"0.55759317",
"0.5555543",
"0.55255... | 0.597084 | 3 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 7 |
Returns the STS shortterm credentials for a given role name that is assigned to the user. | def dIe5(MfOt=None, lGQ2=None, LyfJ=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNQQ(YKHO, LmAn):\n try:\n return YKHO.credentials[LmAn]\n except KeyError:\n return ''",
"def sEk7(BaHi: str):\n VUF1 = P39m()\n return VUF1.get_user_credentials(BaHi)",
"def l8Fs(Emd4, BaHi):\n I3rs = []\n for mwuo in Emd4.credentials_list:\n if mwuo.user_name == Ba... | [
"0.66836756",
"0.5787562",
"0.5755158",
"0.5680063",
"0.562914",
"0.55699277",
"0.55446655",
"0.55430907",
"0.5519502",
"0.55094254",
"0.5497633",
"0.5462291",
"0.5455888",
"0.5430571",
"0.5428087",
"0.5425142",
"0.5389307",
"0.5387541",
"0.5386819",
"0.53770417",
"0.5372651"... | 0.66669357 | 1 |
Returns the average used persecond budget for a given project during the configured sliding time window. | def Jqlv(YKHO, ekCf: int) -> float:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P86G(YKHO):\n return round(YKHO.amount_spent * 100 / YKHO.budget_amount, 2)",
"def aTMz():\n return U9jV() / Kl5M()",
"def L6zN(YKHO):\n k245 = tEVx()\n for mE7y in YKHO._wggr:\n k245.extend(mE7y.runs)\n return k245.average()",
"def xBpj(YKHO) -> 'float':\n return ta2M.pll_2nd_or... | [
"0.6463709",
"0.6266803",
"0.60818094",
"0.5983923",
"0.5952302",
"0.5910881",
"0.5843469",
"0.5838944",
"0.5838866",
"0.5822314",
"0.58166254",
"0.58156395",
"0.58023554",
"0.5788703",
"0.5758173",
"0.5711385",
"0.5703696",
"0.56633866",
"0.5657102",
"0.5650793",
"0.56440204... | 0.61896074 | 2 |
Return a string representation of a Tag or TagSet. Tag or TagSet are from pyasn1.type.tag. | def ddrW(NUoE):
from pyasn1.type.tag import Tag, TagSet
if isinstance(NUoE, Tag):
return '[{0}:{1}:{2}]'.format(NUoE.tagClass, NUoE.tagFormat, NUoE.tagId)
elif isinstance(NUoE, TagSet):
return '+'.join((ddrW(TZ9E) for TZ9E in NUoE))
raise TypeError('{0} is not an instance of Tag or TagSe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbAo(TZ9E):\n return TZ9E.string",
"def zAg0(YKHO):\n return str(YKHO.tagpack)",
"def rZM5(YKHO):\n return YKHO.a_string()",
"def ea90(YKHO):\n return ', '.join([TZ9E.name for TZ9E in YKHO.tags.all()])",
"def Napc(YKHO):\n if YKHO._tags:\n sUiV = [TZ9E.serialize() for TZ9E in YKHO... | [
"0.6923007",
"0.64538443",
"0.64196527",
"0.6392013",
"0.6351026",
"0.62675714",
"0.62675714",
"0.61915976",
"0.61838794",
"0.599532",
"0.59693265",
"0.59366095",
"0.590817",
"0.5891642",
"0.58794945",
"0.58673793",
"0.586563",
"0.58617324",
"0.5850594",
"0.58294076",
"0.5822... | 0.8191707 | 0 |
Checks whether both real and imaginary part are zero within machine precision. | def Witr(YKHO):
return YKHO.real == 0.0 and YKHO.imag == 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkRs(YKHO) -> bool:\n return YKHO < 0",
"def Witr(YKHO, rU28=1e-10):\n return oyIN.isclose(0.0, YKHO.value, 1e-14, rU28) and all((oyIN.allclose(0.0, RA_F, 1e-14, rU28) for RA_F in YKHO.deltas.values())) and all((oyIN.allclose(0.0, RA_F.errsq(), 1e-14, rU28) for RA_F in YKHO.covobs.values()))",
"def W... | [
"0.68762845",
"0.6849478",
"0.6844521",
"0.67620856",
"0.6749724",
"0.6742411",
"0.6700446",
"0.66775644",
"0.66507226",
"0.66498953",
"0.6644716",
"0.6597968",
"0.6574928",
"0.6562398",
"0.6547714",
"0.64513993",
"0.64399725",
"0.6417323",
"0.6316101",
"0.63011557",
"0.63011... | 0.79861146 | 0 |
Combine all observables in list_of_obs into one new observable | def a3eM(zB8T):
Tt2G = [ZfUD for W061 in zB8T for ZfUD in W061.names]
if (len(Tt2G) == len(set(Tt2G))) is False:
raise Exception('list_of_obs contains duplicate replica: %s' % str(Tt2G))
if any([len(z1Rg.cov_names) for z1Rg in zB8T]):
raise Exception('Not possible to merge data that contains... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPW4(YKHO):\n fPW4 = []\n for tfI3 in YKHO.observations:\n try:\n RmfS = tfI3.refs\n except:\n RmfS = []\n for uYWe in tfI3.objects.values():\n if uYWe.type == 'file':\n for RX8a, BWXx in uYWe.hashes.items():\n fPW4.a... | [
"0.6427138",
"0.6227329",
"0.617862",
"0.61106426",
"0.5959392",
"0.5874738",
"0.5851912",
"0.5680282",
"0.56419456",
"0.55551654",
"0.55228096",
"0.551113",
"0.5458578",
"0.5433885",
"0.5407273",
"0.5361936",
"0.53605735",
"0.5335565",
"0.5307713",
"0.5304491",
"0.5301534",
... | 0.64063436 | 1 |
Create an Obs based on mean(s) and a covariance matrix | def W1yk(B9EC, PFC2, mWFP, Ro40=None):
def amTW(SCpB):
"""Make an Obs out of a Covobs
Parameters
----------
co : Covobs
Covobs to be embedded into the Obs
"""
z1Rg = yXg9([], [], means=[])
z1Rg._value = SCpB.value
z1Rg.names.append(SCpB.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN9d(YKHO, EcVT):\n Csk6 = EcVT.shape[0]\n exwG = EcVT.shape[1]\n YKHO.mean = oyIN.mean(EcVT, axis=1).reshape(Csk6, 1)\n EcVT = EcVT - YKHO.mean\n YKHO.cov = oyIN.dot(EcVT, EcVT.T) / (exwG - 1)",
"def SORU(EcVT, yzQ0, yGTL):\n yzQ0 = yzQ0 / oyIN.sum(yzQ0)\n vexM = oyIN.zeros((len(yGTL), ... | [
"0.7321292",
"0.7275555",
"0.6922098",
"0.6903246",
"0.6884225",
"0.68252295",
"0.68102586",
"0.67984635",
"0.67935055",
"0.677549",
"0.67584723",
"0.6694168",
"0.66293067",
"0.6570496",
"0.65538377",
"0.6523082",
"0.6494232",
"0.64732873",
"0.6458757",
"0.64527184",
"0.64386... | 0.6320457 | 29 |
Adds a new employee to this school. | def cf8O(YKHO, mWFP: str, GCyX: List[str]) -> None:
if not GCyX:
YKHO._employees[mWFP] = TjLA(mWFP, GCyX)
return
yDOB = GCyX[0]
yDOB.add_subordinate(mWFP, GCyX, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cf8O(YKHO, YvUd):\n YKHO.employees.append(YvUd)\n YKHO.save()",
"def VdWS():\n mVxG = cjEZ.new_employee()\n cjEZ.insert_emp(mVxG)",
"def cf8O(YKHO, YvUd):\n if type(YvUd) == PlVI.Employee:\n xDcj = NCls.insert(YKHO.employees).values(name=YvUd.get_name(), permission=YvUd.get_permission... | [
"0.8079314",
"0.80114967",
"0.750379",
"0.7481021",
"0.7389178",
"0.7247775",
"0.717134",
"0.7077429",
"0.6953978",
"0.69479245",
"0.69441366",
"0.6847043",
"0.68051374",
"0.6793653",
"0.6766779",
"0.6700158",
"0.66008204",
"0.654886",
"0.64554924",
"0.64015293",
"0.6390013",... | 0.68373585 | 12 |
Check that ratings of different explorations are independent. | def MhHk(YKHO) -> None:
udzd: wY1h = 'exp_id_A'
KhJI: wY1h = 'exp_id_B'
tK6G.save_new_exploration(udzd, k1lM.Exploration.create_default_exploration(udzd))
tK6G.save_new_exploration(KhJI, k1lM.Exploration.create_default_exploration(KhJI))
oAdj.assign_rating_to_exploration(YKHO.USER_ID_1, udzd, 1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMr9(YKHO) -> None:\n tK6G.save_new_exploration(YKHO.EXP_ID, k1lM.Exploration.create_default_exploration(YKHO.EXP_ID))\n YKHO.assertEqual(oAdj.get_overall_ratings_for_exploration(YKHO.EXP_ID), {'1': 0, '2': 0, '3': 0, '4': 0, '5': 0})\n QIKY = Jnm7.get_exploration_summary_by_id(YKHO.EXP_ID)\n YKHO.... | [
"0.6573862",
"0.6424561",
"0.6416199",
"0.6018216",
"0.6011341",
"0.5973794",
"0.59627134",
"0.5899049",
"0.58595055",
"0.583577",
"0.58311546",
"0.581645",
"0.5814564",
"0.5805054",
"0.57991284",
"0.56900597",
"0.5682859",
"0.5678459",
"0.56639415",
"0.5655046",
"0.56470543"... | 0.72189415 | 0 |
Initialize an PrioritizedExperienceBuffer object. Params ====== | def FIMM(YKHO, nGuL, Ep8u, G1DZ=0.6):
YKHO.prob_alpha = G1DZ
YKHO.replay_size = nGuL
YKHO.batch_size = Ep8u
YKHO.buffer = []
YKHO.pos = 0
YKHO.beta = 0.4
YKHO.beta_inc = (1 - YKHO.beta) / tFWb
YKHO.priorities = oyIN.zeros((nGuL,), dtype=oyIN.float32)
YKHO.max_priority = 1.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _4ws, lnz_, G1DZ=0.6):\n YKHO.exp_source_iter = iter(_4ws)\n YKHO.prob_alpha = G1DZ\n YKHO.capacity = lnz_\n YKHO.pos = 0\n YKHO.buffer = []\n YKHO.priorities = oyIN.zeros((lnz_,), dtype=oyIN.float32)",
"def FIMM(YKHO, DBcx, lHmx, yokr, vs_Q):\n super(eqYO, YKHO).__init__(DBcx... | [
"0.70735997",
"0.7054294",
"0.6821678",
"0.67432475",
"0.64106154",
"0.64052206",
"0.63506275",
"0.632298",
"0.62878114",
"0.6284724",
"0.6278938",
"0.624659",
"0.6210186",
"0.61831355",
"0.61635107",
"0.61635107",
"0.61543757",
"0.6154175",
"0.6135562",
"0.6124383",
"0.61114... | 0.72706246 | 0 |
Returns a batch of experiences, indices of the experiences and the weights of the experiences | def mvm2(YKHO):
if len(YKHO.buffer) == YKHO.replay_size:
MQRi = YKHO.priorities
else:
MQRi = YKHO.priorities[:YKHO.pos]
WErR = MQRi ** YKHO.prob_alpha
WErR /= WErR.sum()
_0VL = oyIN.random.choice(len(YKHO.buffer), YKHO.batch_size, p=WErR)
gGnb = [YKHO.buffer[or8S] for or8S in _0V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO):\n rpxG = YKHO.dist.sample(YKHO.batch_size) % YKHO.__len__()\n wfZK = YKHO.memory[rpxG]\n fniA = (YKHO.min_p * YKHO.__len__() / YKHO.dist.tree[0]) ** (-YKHO.beta)\n _mSQ = YKHO.__len__() / YKHO.dist.tree[0] * YKHO.probs[rpxG].to(begE, non_blocking=True)\n _mSQ.pow_(-YKHO.beta).div_(fn... | [
"0.6726615",
"0.6300437",
"0.6202953",
"0.61832243",
"0.617093",
"0.61638826",
"0.6137708",
"0.61201614",
"0.6091276",
"0.6062479",
"0.6054064",
"0.6026317",
"0.5994295",
"0.5990118",
"0.59594536",
"0.5927174",
"0.5926559",
"0.5914013",
"0.58754224",
"0.58730835",
"0.5872346"... | 0.6598694 | 1 |
Return the appropriate CBLAS subroutine and ctype data type based on the calling function and dtypes of args. | def FtY5(ctXt, m1c7):
if all((yDqo == 'float64' for yDqo in m1c7)):
return (wi4_[ctXt][0], FqeB)
elif all((yDqo == 'float32' for yDqo in m1c7)):
return (wi4_[ctXt][1], PgP1)
else:
lugS(('float64', 'float32')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l9D6(*qIxc):\n for d7pR in qIxc:\n if oyIN.iscomplexobj(d7pR):\n return oyIN.cdouble\n return oyIN.double",
"def _nSV(*qIxc):\n for d7pR in qIxc:\n if isinstance(d7pR, hT1Q.Complex):\n return GPal.complex128\n elif isinstance(d7pR, ybH7.Array):\n ... | [
"0.6343286",
"0.6273901",
"0.59454393",
"0.5839659",
"0.58336955",
"0.5718946",
"0.5663241",
"0.5637106",
"0.5624957",
"0.56058973",
"0.56056774",
"0.5569653",
"0.5543163",
"0.5535139",
"0.5505781",
"0.5488091",
"0.54777217",
"0.5476488",
"0.5443023",
"0.543723",
"0.5419402",... | 0.7626016 | 0 |
The client_id must be provided and present in our backend. | def sZKq(YKHO):
geh0 = YKHO._flowstep_request_authorization(redirect_uri=YKHO.DEFAULT_REDIRECT_URIS[0], scope=YKHO.DEFAULT_SCOPES, client_id=qxeD.uuid4().hex, expected_status=404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zb3C(YKHO):\n pass",
"def u7Xh(YKHO, zb3C):\n raise NotImplementedError",
"def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C",
"def u7Xh(YKHO, zb3C):\n raise NotImplementedError",
"def zb3C(YKHO, zb3C: str):\n YKHO._client_id = zb3C",
"def ZZmI(YKHO):\n return YKHO.__client_id",
"def... | [
"0.74652714",
"0.7296484",
"0.7199681",
"0.7161085",
"0.7137876",
"0.7128032",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6984638",
"0.6870388",
"0.6864577",
"0.67720944",
"0.66938776",
"0.6692648",
"0.6655512",
"0.6655512",
... | 0.0 | -1 |
Ensure that the scope we are going to give to the authorization code (and therefore to the access token) is the one submited by the user and not the one requested by the client. | def SQw0(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HGn8(J2mD, U34r):\n try:\n assert J2mD['scope'] in U34r['scope']\n except AssertionError:\n bo34.error('Not the same scope as for the AuthzRequest')\n XObx = vbuo(error='invalid_scope')\n return oGir(XObx.to_json(), content='application/json')\n try:\n assert J2mD['s... | [
"0.7509221",
"0.7187402",
"0.7102377",
"0.7089893",
"0.70099306",
"0.6983873",
"0.6850429",
"0.6841064",
"0.68174213",
"0.67602617",
"0.67119247",
"0.6699355",
"0.66814303",
"0.6644465",
"0.6643906",
"0.6628965",
"0.6577596",
"0.6576071",
"0.65645945",
"0.65611064",
"0.651902... | 0.67161083 | 10 |
Creates and returns an sqlalchemy engine to a mysql database when passed in the appropriate connection string settings. | def OCuJ(YKHO, ajKk, m_j0, yOdF, dWgE):
hybs = 'mysql+mysqldb://%s:%s@%s/%s' % (ajKk, m_j0, yOdF, dWgE)
try:
eHpk = y2U9(hybs)
except eHJZ:
raise
return eHpk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8iZ():\n eHpk = RyuO.create_engine('mysql+pymysql://bn:basket05@127.0.0.1/trading', echo=True)\n return eHpk",
"def SrfA():\n k3Zu = 'mysql+mysqlconnector'\n CBIr = 'root'\n jTXt = 'root'\n KcEq = 'localhost'\n p9bx = 'casestudy'\n vIwR = '{0}://{1}:{2}@{3}/{4}'.format(k3Zu, CBIr, jT... | [
"0.8147355",
"0.8138997",
"0.78900176",
"0.78655297",
"0.7793828",
"0.7756075",
"0.7751253",
"0.77125573",
"0.7674317",
"0.76035887",
"0.75746155",
"0.75105125",
"0.7484273",
"0.7393526",
"0.7393526",
"0.7393526",
"0.73845667",
"0.73845667",
"0.73845667",
"0.73407745",
"0.734... | 0.6828263 | 81 |
This method returns a configured session scoped as a target database | def Jz62(YKHO):
tVt7 = YKHO.TgtSession()
return tVt7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouvA():\n return cuiw",
"def GGod():\n global engine\n return oCsa(FJ3D(bind=eHpk))",
"def NCls(Emd4):\n assert STFk is not None\n return STFk",
"def Nchc(YKHO):\n return wFnc(YKHO)",
"def Dbxd(YKHO):\n cuiw = i48E.orm.sessionmaker(bind=YKHO.db_engine)\n faRV = cuiw()\n retur... | [
"0.7830281",
"0.77716255",
"0.7719024",
"0.7634192",
"0.757534",
"0.75405145",
"0.7498634",
"0.73781115",
"0.7295477",
"0.72630286",
"0.7194532",
"0.7194532",
"0.71333843",
"0.71333843",
"0.71186966",
"0.7068954",
"0.70400584",
"0.7020177",
"0.6987001",
"0.6983535",
"0.697041... | 0.0 | -1 |
Add colorbar for the RGB image plotted by plt.imshow() | def cChr(aNZO, f7an, FSkZ, D3zC=0, KVzD=360, C3ap='h'):
cAlv, C7Ls = oyIN.mgrid[0:1:50j, 0:1:180j]
if C3ap == 'v':
cAlv = cAlv.T
C7Ls = C7Ls.T
FlUN = [f7an, FSkZ, D3zC, KVzD]
else:
FlUN = [D3zC, KVzD, f7an, FSkZ]
o4sw = oyIN.ones_like(cAlv)
nmTU = oyIN.dstack((C7Ls, o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def obRh(pdhd, iMGt=QrM1.cm.Greys_r, leAC=''):\n LZpg = QrM1.figure(figsize=(8, 7))\n aNZO = QrM1.subplot(1, 1, 1)\n QrM1.subplots_adjust(left=0.01, right=0.99, top=0.9, bottom=0)\n pEuC = QrM1.imshow(pdhd, iMGt)\n aNZO.get_xaxis().set_visible(False)\n aNZO.get_yaxis().set_visible(False)\n QrM... | [
"0.76515156",
"0.74380267",
"0.73706275",
"0.7347231",
"0.72154236",
"0.72154236",
"0.71503633",
"0.7149301",
"0.71247154",
"0.705639",
"0.70495653",
"0.697954",
"0.69696575",
"0.69510585",
"0.69127214",
"0.6899178",
"0.688932",
"0.6868675",
"0.6856747",
"0.68007326",
"0.6791... | 0.6584989 | 30 |
Create a paginator for an operation. | def oL8A(YKHO, hTqE: str=None) -> NIbP:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n p... | [
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"... | 0.76366186 | 39 |
Clears the cache without notifying listeners or cache writers. | async def clear(YKHO, sjXb: Optional[list]=None):
w2B8 = await YKHO._get_best_node()
if sjXb:
return await o9fF(w2B8, YKHO.cache_info, sjXb)
else:
return await uzQ5(w2B8, YKHO.cache_info) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sCEQ():\n with EgZb() as Z9rn:\n Z9rn.clear()",
"def sCEQ():\n with EgZb() as Z9rn:\n Z9rn.clear()",
"def Y7Bk(YKHO) -> None:\n YKHO.cache.clear()",
"def dSBO(YKHO):\n wyyA.clear()\n hAVj = V5Lg('persistent')\n hAVj.flushall()",
"def dSBO(YKHO):\n YKHO.__caches.clear(... | [
"0.8401126",
"0.8401126",
"0.82956535",
"0.82842135",
"0.82798654",
"0.8198495",
"0.81671816",
"0.81547403",
"0.80352426",
"0.80352426",
"0.7997003",
"0.79397404",
"0.79111475",
"0.790666",
"0.79030627",
"0.78943706",
"0.7802949",
"0.7790228",
"0.7766466",
"0.77217627",
"0.76... | 0.0 | -1 |
Clears the cache key without notifying listeners or cache writers. | async def clear_key(YKHO, H5ew, lF7T: object=None):
if lF7T is None:
lF7T = bCFk.map_python_type(H5ew)
w2B8 = await YKHO._get_best_node(H5ew, lF7T)
return await iAGV(w2B8, YKHO.cache_info, H5ew, key_hint=lF7T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIoH(H5ew):\n if H5ew in PFnd:\n del PFnd[H5ew]",
"def Y7Bk(YKHO, H5ew):\n raise NotImplementedError",
"def fuAN(YKHO, H5ew, lF7T: object=None):\n return OIRs(YKHO._client, YKHO._cache_id, H5ew, key_hint=lF7T)",
"def C6wG(YKHO, H5ew):\n with YKHO._lock:\n if H5ew in YKHO._pool:\... | [
"0.7966092",
"0.7569731",
"0.744822",
"0.73593307",
"0.73593307",
"0.72586983",
"0.7165921",
"0.71175086",
"0.71175086",
"0.7060361",
"0.7030221",
"0.69959944",
"0.69799733",
"0.69702226",
"0.69702226",
"0.6969948",
"0.6942714",
"0.6932875",
"0.6912658",
"0.68692946",
"0.6862... | 0.7375592 | 3 |
Clears the cache key without notifying listeners or cache writers. | async def clear_keys(YKHO, sjXb: Iterable):
w2B8 = await YKHO._get_best_node()
return await o9fF(w2B8, YKHO.cache_info, sjXb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIoH(H5ew):\n if H5ew in PFnd:\n del PFnd[H5ew]",
"def Y7Bk(YKHO, H5ew):\n raise NotImplementedError",
"def fuAN(YKHO, H5ew, lF7T: object=None):\n return OIRs(YKHO._client, YKHO._cache_id, H5ew, key_hint=lF7T)",
"async def clear_key(YKHO, H5ew, lF7T: object=None):\n if lF7T is None:\n ... | [
"0.7966919",
"0.7570508",
"0.74474347",
"0.7375206",
"0.73602915",
"0.73602915",
"0.72586524",
"0.71665496",
"0.7117941",
"0.7117941",
"0.70603323",
"0.7032288",
"0.69987077",
"0.69811577",
"0.6973019",
"0.6971674",
"0.6971674",
"0.69430536",
"0.69351465",
"0.6914259",
"0.687... | 0.0 | -1 |
Puts a value with a given key to cache, and returns the previous value for that key, or null value if there was not such key. | async def get_and_put(YKHO, H5ew, BWXx, lF7T=None, uj3z=None) -> ImMB:
if lF7T is None:
lF7T = bCFk.map_python_type(H5ew)
w2B8 = await YKHO._get_best_node(H5ew, lF7T)
Aofo = await zEjI(w2B8, YKHO.cache_info, H5ew, BWXx, lF7T, uj3z)
Aofo.value = await YKHO.client.unwrap_binary(Aofo.value)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew):\n try:\n YKHO.cache.move_to_end(H5ew)\n return YKHO.cache[H5ew]\n except KeyError:\n return None",
"def NMoC(YKHO, H5ew):\n try:\n YKHO.cache.move_to_end(H5ew)\n return YKHO.cache[H5ew]\n except KeyError:\n return None",
"def set(YKHO,... | [
"0.72029746",
"0.72029746",
"0.707967",
"0.7062416",
"0.70617604",
"0.70533943",
"0.7053283",
"0.70363206",
"0.6997612",
"0.69343024",
"0.6931091",
"0.6864251",
"0.68479854",
"0.6846828",
"0.6809285",
"0.6784695",
"0.67614603",
"0.6746475",
"0.6742598",
"0.67120343",
"0.67022... | 0.6518893 | 31 |
Puts a value with a given key to cache, returning previous value for that key, if and only if there is a value currently mapped for that key. | async def get_and_replace(YKHO, H5ew, BWXx, lF7T=None, uj3z=None) -> ImMB:
if lF7T is None:
lF7T = bCFk.map_python_type(H5ew)
w2B8 = await YKHO._get_best_node(H5ew, lF7T)
Aofo = await kSHe(w2B8, YKHO.cache_info, H5ew, BWXx, lF7T, uj3z)
Aofo.value = await YKHO.client.unwrap_binary(Aofo.value)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, H5ew, BWXx):\n RI88 = None\n dQgj = YKHO.__search(H5ew)\n if dQgj is not None:\n YKHO.__pop(H5ew, dQgj)\n YKHO.__insert(H5ew, BWXx, dirty=True)\n RI88 = BWXx\n return RI88",
"def set(YKHO, H5ew, BWXx):\n with YKHO._cachelock:\n YKHO._cache[H5ew] = BWXx\n ... | [
"0.72325987",
"0.7176552",
"0.7101545",
"0.70477957",
"0.70261824",
"0.7016334",
"0.7011571",
"0.7011571",
"0.6970179",
"0.6925204",
"0.68747747",
"0.6811548",
"0.6804782",
"0.67768085",
"0.6740664",
"0.6740664",
"0.67067075",
"0.66951936",
"0.6693315",
"0.66888463",
"0.66289... | 0.63877416 | 44 |
Clears the cache key without notifying listeners or cache writers. | async def remove_key(YKHO, H5ew, lF7T=None):
if lF7T is None:
lF7T = bCFk.map_python_type(H5ew)
w2B8 = await YKHO._get_best_node(H5ew, lF7T)
return await VA2y(w2B8, YKHO.cache_info, H5ew, lF7T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIoH(H5ew):\n if H5ew in PFnd:\n del PFnd[H5ew]",
"def Y7Bk(YKHO, H5ew):\n raise NotImplementedError",
"def fuAN(YKHO, H5ew, lF7T: object=None):\n return OIRs(YKHO._client, YKHO._cache_id, H5ew, key_hint=lF7T)",
"async def clear_key(YKHO, H5ew, lF7T: object=None):\n if lF7T is None:\n ... | [
"0.7966919",
"0.7570508",
"0.74474347",
"0.7375206",
"0.73602915",
"0.73602915",
"0.72586524",
"0.71665496",
"0.7117941",
"0.7117941",
"0.70603323",
"0.7032288",
"0.69987077",
"0.69811577",
"0.6973019",
"0.6971674",
"0.6971674",
"0.69430536",
"0.69351465",
"0.6914259",
"0.687... | 0.0 | -1 |
Take n things from the given enumerable. | def _iMd(exwG, JkXH):
for WKvO in JkXH:
if exwG <= 0:
break
exwG -= 1
yield WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))",
... | [
"0.80572647",
"0.7958893",
"0.7958185",
"0.7958185",
"0.7958185",
"0.7892835",
"0.78726614",
"0.7817333",
"0.78004885",
"0.7788066",
"0.77308583",
"0.7715323",
"0.73645496",
"0.73457897",
"0.72476685",
"0.7234542",
"0.72140974",
"0.7169458",
"0.7042173",
"0.7024425",
"0.69963... | 0.6943471 | 22 |
Change the topic of a single token. | def IoXe(YKHO, oFUB, d6pt, OXAZ, dzgO):
assert oFUB in YKHO.doc_ids
assert dzgO < YKHO._num_topics
dRmn = YKHO._current_topic[oFUB, d6pt]
if dRmn == dzgO:
return
Huo2 = YKHO.get_term_id(OXAZ)
if dRmn != -1:
YKHO._T[oFUB, dRmn] -= 1
YKHO._V[dRmn, Huo2] -= 1
YKHO._curre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rlUa(YKHO, rlUa):\n YKHO._topic = rlUa",
"def ubMc(YKHO, rlUa):\n if not rlUa:\n rlUa = ''\n Aofo = YKHO._connection.put('room/%s' % YKHO.id, {'room': {'topic': rlUa}})\n if Aofo['success']:\n YKHO._load()\n return Aofo['success']",
"def dm_b(YKHO, rlUa):\n YKHO.protocol.top... | [
"0.73092806",
"0.73070586",
"0.72099805",
"0.7192144",
"0.7041244",
"0.6843232",
"0.67679715",
"0.66895527",
"0.6667411",
"0.6596803",
"0.6361389",
"0.6284642",
"0.62109214",
"0.6186463",
"0.61322045",
"0.60417795",
"0.60411423",
"0.598605",
"0.59681576",
"0.59539425",
"0.595... | 0.72386557 | 2 |
A list of Instance Member IDs. | def A07C(YKHO) -> bdIy[str]:
return qe4Y.get(YKHO, 'ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nO3s(YKHO) -> list[str]:\n return YKHO.family.members_ids",
"def Gp6O(YKHO):\n xibX = ''\n cntZ = True\n for r8hN in YKHO.members.all():\n if cntZ:\n xibX += str(r8hN.id)\n cntZ = False\n else:\n xibX += ',' + str(r8hN.id)\n return xibX",
"def G... | [
"0.837455",
"0.77611375",
"0.74993825",
"0.7164003",
"0.71363425",
"0.7081853",
"0.70633566",
"0.70369756",
"0.6996502",
"0.69912535",
"0.6960645",
"0.6937112",
"0.69328207",
"0.6900469",
"0.6889063",
"0.6889063",
"0.68099815",
"0.6801533",
"0.6672154",
"0.6629234",
"0.660393... | 0.6201338 | 53 |
Initializes the PointProcess class | def FIMM(YKHO, VmPb, or8S, dDPi=False, M2fE=False, **B2fa):
for H5ew in ['color', 'marker']:
if H5ew in B2fa.keys():
raise DeprecationWarning('Parameter {} has been deprecated'.format(H5ew))
YKHO.idx = or8S
YKHO.record_current = dDPi
YKHO.record_potential = M2fE
YKHO.kwargs = B2f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nT1x, nPrm, J927, EZRN, *qIxc, **c_sp):\n ASOO.__init__(YKHO, *qIxc, **c_sp)\n YKHO.offset = nT1x\n YKHO.data = nPrm\n YKHO.row_flags = J927\n YKHO.x_coords = EZRN",
"def O3k3(YKHO):\n if YKHO._running:\n raise RuntimeError('Already initialised.')\n YKHO._current = None... | [
"0.6893793",
"0.67050534",
"0.6686557",
"0.6635206",
"0.6611377",
"0.6540357",
"0.6523027",
"0.65037596",
"0.6490083",
"0.6486652",
"0.6439275",
"0.6384418",
"0.63819593",
"0.63570046",
"0.6355524",
"0.634993",
"0.6343733",
"0.63433725",
"0.6329274",
"0.6328471",
"0.63108015"... | 0.0 | -1 |
Verify sample data passed through the got data method produces the correct data particles | def PBfh(YKHO):
E_qD = SOUK(YKHO._got_data_event_callback)
YKHO.assert_initialize_driver(E_qD)
YKHO.assert_raw_particle_published(E_qD, True)
YKHO.assert_particle_published(E_qD, YKHO.VALID_CTDBP_NO_SAMPLE, YKHO.assert_ctdbp_no_particle_sample, True)
YKHO.assert_particle_published(E_qD, YKHO.VALID_C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PBfh(YKHO):\n E_qD = SOUK(YKHO._got_data_event_callback)\n YKHO.assert_initialize_driver(E_qD)\n YKHO.assert_raw_particle_published(E_qD, True)\n YKHO.assert_particle_published(E_qD, YKHO.VALID_STATUS_MESSAGE, YKHO.assert_particle_regular_status, True)\n YKHO.assert_particle_published(E_qD, YKHO... | [
"0.7803223",
"0.7228277",
"0.7060504",
"0.68444073",
"0.6827303",
"0.67957723",
"0.67789876",
"0.6701734",
"0.6662444",
"0.661205",
"0.6560224",
"0.6523239",
"0.6505309",
"0.6414309",
"0.6406745",
"0.63833743",
"0.63499886",
"0.63490707",
"0.63471043",
"0.6328223",
"0.6319487... | 0.7905842 | 0 |
add the object to the current database | def BdN0(YKHO, YEnM):
YKHO.__session.add(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def cnPh(Emd4, YEnM):\n pths.session.add(YEnM)\n pths.session.commit()",
"def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)",
"def H2v5(YKHO, YEnM:... | [
"0.83555627",
"0.8354104",
"0.82584596",
"0.79867357",
"0.7958741",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78911483",
"0.78881913",
"0.78881913",
"0.78881913",
"0.78779936",
"0.784468",
"0.784088",
"0.784088",
"0.7... | 0.0 | -1 |
Escape all invalid json characters like " to produce a valid json value | def bdYK(JF3C):
EtF8 = JF3C
EtF8 = EtF8.replace('\\', '\\\\')
EtF8 = EtF8.replace('"', '\\"')
EtF8 = EtF8.replace("'", "\\'")
return EtF8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mf1Z(BWXx):\n if isinstance(BWXx, str):\n return qQXR.dumps(BWXx)[1:-1]\n return BWXx",
"def npHv(KCHu):\n return qQXR.dumps(KCHu)",
"def IguF(BWXx):\n return qQXR.dumps(BWXx, separators=',:')",
"def kjT2(BWXx):\n return BY_x(Qsf5(BWXx).translate(nLIe))",
"def eYyy(l5Ny: str) -> s... | [
"0.78377",
"0.77662915",
"0.7433945",
"0.74137765",
"0.7094196",
"0.70294076",
"0.6948874",
"0.69288486",
"0.6900986",
"0.6768148",
"0.6736059",
"0.67315197",
"0.6728549",
"0.6726475",
"0.6663991",
"0.6643382",
"0.66113776",
"0.65949386",
"0.65913653",
"0.65798575",
"0.650495... | 0.77621263 | 2 |
Get the config file being used from JobManager.scala. | def o3JW():
H5ew = ' val reader = new FileReader("src/configs/'
with open(Hy7s.path.join(GcJh, '../src/main/scala/jobmanager/JobManager.scala'), 'r') as eHNT:
Nqlg = eHNT.readlines()
for zFiD in Nqlg:
if H5ew in zFiD:
yKcO = len(H5ew)
Os4s = zFiD.find('.json")')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tYL(YKHO):\n return YKHO.configfile",
"def mmls(YKHO):\n return YKHO._configfile",
"def Nug2():\n return j0Yt",
"def tgzD(YKHO):\n j8eK = YKHO.config_path\n Fv2L = ''\n try:\n if EFYe(j8eK):\n Fv2L = str(open(j8eK).read()) + '\\n'\n except IOError:\n pass\n ... | [
"0.79978865",
"0.7719364",
"0.7628973",
"0.7454621",
"0.7377263",
"0.73563695",
"0.7342855",
"0.7342286",
"0.7290358",
"0.72715",
"0.72676706",
"0.7249877",
"0.72489667",
"0.7246907",
"0.7239829",
"0.72102207",
"0.7176604",
"0.7130049",
"0.71162426",
"0.70967925",
"0.7064328"... | 0.67574 | 52 |
Takes a number. Returns boolean. | def ZMXj(FGW3):
FGW3 = str(FGW3)
fwLj = FGW3[::-1]
if FGW3 == fwLj:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(exwG):\n try:\n float(exwG)\n return True\n except:\n return False",
"def ye72(exwG):\n try:\n float(exwG)\n return True\n except ValueError:\n return False",
"def BAi_(exwG):\n try:\n float(exwG)\n except ValueError:\n return F... | [
"0.7768285",
"0.770652",
"0.75779784",
"0.75738084",
"0.75542283",
"0.74071383",
"0.7396998",
"0.739699",
"0.73931766",
"0.73874277",
"0.7375549",
"0.7373014",
"0.73441863",
"0.73318505",
"0.73297584",
"0.7322477",
"0.73101914",
"0.7294632",
"0.7281844",
"0.7265016",
"0.72523... | 0.0 | -1 |
Plots a boxplot, that shows evaluation scores for single images sorted by preprocessing methods. | def LKMM(cCrA, dCji=['No preprocessing', 'Median filter', 'Gaussian filter', 'Histogram stretching', 'Median filter and\nhistogram stretching', 'Gauss filter and\nhistogram stretching'], cHAw='Dice Score', kj9G=True, t79w=0):
bOBl = rLdf.DataFrame(data=oyIN.transpose(cCrA), columns=dCji)
LZpg, aNZO = QrM1.subpl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UmEd(dixj, ZWCE):\n LZpg, aNZO = QrM1.subplots(figsize=(10, 10))\n aNZO.boxplot(dixj)\n aNZO.set_title('Comparison of algorithms', size=14)\n aNZO.set_xticklabels(ZWCE)\n aNZO.set_xlabel('Model', size=12)\n aNZO.set_ylabel('RMSE', size=12)\n QrM1.tight_layout()\n return LZpg",
"def Ju... | [
"0.6771343",
"0.6740562",
"0.6666528",
"0.6645055",
"0.65000826",
"0.6489304",
"0.64850855",
"0.6417407",
"0.6410882",
"0.6369801",
"0.6341887",
"0.6310998",
"0.63087046",
"0.6291225",
"0.6282317",
"0.6276402",
"0.62640387",
"0.6255096",
"0.6248878",
"0.62269664",
"0.62235224... | 0.71612066 | 0 |
Neat plot of four images + title | def oPhn(_z_f, tgYj, DhlF, IByh, WmtP, Rul3, HyDA, Mdxj, xZ43):
LZpg, aNZO = QrM1.subplots(2, 2)
LZpg.suptitle(xZ43)
aNZO[0][0].imshow(_z_f, 'gray')
aNZO[0][0].set_title(WmtP)
aNZO[0][1].imshow(tgYj, 'gray')
aNZO[0][1].set_title(Rul3)
aNZO[1][0].imshow(DhlF, 'gray')
aNZO[1][0].set_title(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBC8(**Yw_3):\n exwG = len(Yw_3)\n QrM1.figure(figsize=(16, 5))\n for YRbF, (mWFP, LNo8) in enumerate(Yw_3.items()):\n QrM1.subplot(1, exwG, YRbF + 1)\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.title(' '.join(mWFP.split('_')).title())\n if len(LNo8.shape) == 3:\n ... | [
"0.79980516",
"0.79656535",
"0.79629415",
"0.79091376",
"0.79091376",
"0.79091376",
"0.79091376",
"0.7898718",
"0.7883931",
"0.75052685",
"0.7485095",
"0.74681085",
"0.74618614",
"0.7413222",
"0.7406001",
"0.73821145",
"0.7357197",
"0.7335918",
"0.7330103",
"0.7326374",
"0.73... | 0.7626686 | 9 |
Return a 5x5 hydraulic acutator transfer matrix with input u. | def nT_U(P6bq):
KkY2 = MUmk(5)
KkY2[1, 4] = P6bq
return KkY2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AnF3(P6bq):\n craq = oyIN.array([[1, 0], [0, 0]])\n xiJn = oyIN.array([[0, 0], [1, 0]])\n yLf1 = oyIN.array([[0, 1], [0, 0]])\n jqPp = oyIN.array([[0, 0], [0, 1]])\n TSON = K2h8(P6bq, craq)\n XJEr = K2h8(P6bq, xiJn)\n m2JY = K2h8(P6bq, yLf1)\n DGOT = K2h8(P6bq, jqPp)\n QTwH = [[TSON[... | [
"0.76987606",
"0.6517364",
"0.62847626",
"0.62475234",
"0.6138072",
"0.60954773",
"0.6011567",
"0.5982686",
"0.5942049",
"0.58875656",
"0.5876913",
"0.5867349",
"0.58639205",
"0.58573616",
"0.581818",
"0.57774115",
"0.57542014",
"0.5745676",
"0.57126975",
"0.5708682",
"0.5697... | 0.63138014 | 2 |
useraufsmount to can be a tuple, a list or a string. | def XZBf(GZiu, pmON):
if VYob(pmON):
return False
if not isinstance(GZiu, (list, tuple)):
GZiu = [GZiu]
oUZx('useraufs-mount', '--udba=reval', pmON, *GZiu)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vai0(d7pR):\n if isinstance(d7pR, tuple) or isinstance(d7pR, list):\n return d7pR\n return tuple((KCHu.strip() for KCHu in d7pR.replace(',', ' ').split()))",
"def c1gu(Ty9i):\n if isinstance(Ty9i, (list, tuple)):\n return Ty9i\n return [Ty9i]",
"def JFjS(WKvO):\n return isinsta... | [
"0.72439724",
"0.69642097",
"0.68156517",
"0.67172223",
"0.67092186",
"0.67090905",
"0.66932404",
"0.6639139",
"0.658111",
"0.65124553",
"0.6496999",
"0.6451293",
"0.6448388",
"0.64406747",
"0.6429974",
"0.64158213",
"0.6389311",
"0.63888025",
"0.63654435",
"0.634531",
"0.634... | 0.0 | -1 |
Function to find longest word from a list. | def JUi7(rw6h):
J34a = rw6h
wEf2 = [len(J34a[YRbF]) for YRbF in range(len(J34a))]
tmh_ = ' '
oeNL = 0
for YRbF in wEf2:
if YRbF == max(wEf2):
tmh_ = str(J34a[oeNL])
break
else:
oeNL += 1
print('\nThe longest word in the list is:\n')
print(t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f39K(cfuW):\n F8W1 = max((len(yzQ0) for yzQ0 in cfuW))\n for YRbF in cfuW:\n if len(YRbF) == F8W1:\n return YRbF",
"def E66W(vwCE: List[str]) -> str:\n M0CA = ''\n for GIN8 in vwCE:\n if len(GIN8) > len(M0CA):\n M0CA = GIN8\n return M0CA",
"def E66W(V22M):... | [
"0.87915677",
"0.8766955",
"0.8409785",
"0.83888143",
"0.8331047",
"0.8123018",
"0.8116926",
"0.81075543",
"0.80103683",
"0.79364395",
"0.7815929",
"0.7795693",
"0.7784603",
"0.7700202",
"0.765717",
"0.76461697",
"0.7593707",
"0.7558097",
"0.7514647",
"0.7479139",
"0.745575",... | 0.7860363 | 10 |
Zone is an output area. Each zone has a set of speakers that are driven by an A/V device. | def umkX(Vl8E):
GGDH = ['Name', 'Type', 'Host']
NFXS = {}
for pCld, Y0yw in Vl8E.items():
setattr(NFXS, pCld, Y0yw)
return NFXS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YKHO) -> 'Zone *':\n return Is4a.ZoneArray_cast(YKHO)",
"def FXz1(YKHO):\n aqWV = len(YKHO.a_zone_soco)\n if YKHO.b_evsub4_addturn is True:\n YKHO.get_groups()\n if YKHO.a_groups != YKHO.a_groups_chk:\n YKHO.b_groups_diff = True\n YKHO.get_cmd_info(' # CurGro... | [
"0.5899034",
"0.5832245",
"0.5744064",
"0.57299095",
"0.5704293",
"0.5663825",
"0.5645661",
"0.552181",
"0.5467919",
"0.5446151",
"0.5398945",
"0.5352279",
"0.53453195",
"0.5334066",
"0.5319786",
"0.5309379",
"0.5309021",
"0.5284704",
"0.5276107",
"0.5246494",
"0.52234167",
... | 0.0 | -1 |
Generate a random string used for salts and secret keys. | def Vost():
return WR89.b64encode(Hy7s.urandom(32)).decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def Ggp8() -> str:\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(10)))",
"def BWvy():\n import os\n import base64\n return '.'.join((str(os.getpid()), base64.urlsafe_b64encode(os.urandom(3)).decod... | [
"0.82241666",
"0.81630474",
"0.79735744",
"0.7965125",
"0.786478",
"0.7840191",
"0.7834726",
"0.78253967",
"0.7765503",
"0.7757542",
"0.77242255",
"0.77173793",
"0.7704329",
"0.7673711",
"0.7664112",
"0.7660343",
"0.7647682",
"0.762148",
"0.762148",
"0.7600147",
"0.75992495",... | 0.73098207 | 48 |
Constructor of the TreeBuilder class | def FIMM(YKHO, hm3W=None, JmmR=list()):
YKHO.root = hm3W
YKHO.ends = JmmR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, J_Es):\n pass",
"def FIMM(YKHO, J_Es):\n pass",
"def FIMM(YKHO, J_Es):\n YKHO.tree = J_Es",
"def FIMM(YKHO):\n YKHO._names = {}\n YKHO._names['root'] = '0'\n YKHO._tree = {}\n tk5Y = YKHO.TreeNode('0', 'root', '0')\n YKHO._tree = {'0': tk5Y}",
"def FIMM(YKHO, BWXx, af... | [
"0.7969502",
"0.7969502",
"0.7869118",
"0.761383",
"0.7569621",
"0.7492286",
"0.7392009",
"0.7340718",
"0.72755235",
"0.7250487",
"0.7204808",
"0.7180268",
"0.7172493",
"0.71596026",
"0.71338814",
"0.71338814",
"0.71338814",
"0.71338814",
"0.7133837",
"0.71186346",
"0.7107786... | 0.0 | -1 |
Creates an Experience Replay of certain capacity. Acts like a circular buffer. | def FIMM(YKHO, vVLY, TcwO, b7hB):
YKHO.state_size = vVLY
YKHO.action_size = TcwO
YKHO.length = 0
YKHO.capacity = b7hB
YKHO.actions = oyIN.empty((YKHO.capacity, YKHO.action_size), dtype=oyIN.float16)
YKHO.states = oyIN.empty((YKHO.capacity, YKHO.state_size), dtype=oyIN.float16)
YKHO.rewards =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HC6P(YKHO):\n if YKHO._replay is not None:\n del YKHO._replay\n YKHO._replay = uvFo(writer=YKHO.writer, capacity=YKHO._teacher_params['replay_size'], init_cap=0, frame_stack=YKHO._env_params['frame_stack'], gamma=YKHO._train_params['gamma'], tag='teacher_{0}'.format(YKHO.teacher_num), debug_dir=No... | [
"0.66484225",
"0.60337615",
"0.5998488",
"0.5805909",
"0.5802173",
"0.57577854",
"0.57361525",
"0.5716586",
"0.5708249",
"0.57076466",
"0.56717503",
"0.55355024",
"0.5513832",
"0.55128694",
"0.5499036",
"0.54535604",
"0.5405975",
"0.537853",
"0.536433",
"0.53608155",
"0.53510... | 0.0 | -1 |
Sample a batch of experiences from the replay. | def dXkR(YKHO, Ep8u):
if Ep8u > YKHO.length - 3:
raise IOError('batch_size out of range')
DNs0 = []
while len(DNs0) < Ep8u:
while True:
or8S = tuKI.randint(1, YKHO.length - 1)
if not (or8S == YKHO.current_index and or8S == YKHO.current_index - 1):
DNs0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XO44(YKHO):\n pass",
"def OQV5(YKHO, Ep8u):\n return tuKI.sample(YKHO.experience_replay, Ep8u)",
"def UVgs(YKHO):\n Ep8u = min(128, len(YKHO.gameplay_experiences))\n UDif = tuKI.sample(YKHO.gameplay_experiences, Ep8u)\n Pqjz = []\n fh_V = []\n mP_b = []\n GfYY = []\n fu1M = []\n ... | [
"0.75387967",
"0.7464094",
"0.737267",
"0.73626274",
"0.7337626",
"0.7102047",
"0.7002437",
"0.6966841",
"0.6964366",
"0.6942286",
"0.6932813",
"0.6929156",
"0.6916634",
"0.6909742",
"0.6887014",
"0.68740815",
"0.68597007",
"0.68565494",
"0.6855594",
"0.6787085",
"0.67593384"... | 0.0 | -1 |
Checa si dos valores reales son iguales. | def hrk3(jzdc, Fg_i, VcCi=1e-09, csqQ=0.0):
return abs(jzdc - Fg_i) <= max(VcCi * max(abs(jzdc), abs(Fg_i)), csqQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6lY(YKHO):\n if not YKHO.value:\n YKHO.possible_values = YKHO.row & YKHO.column & YKHO.box & DRnx\n return",
"def QZSK(YKHO, CDIE, KKaZ):\n return YKHO.initial[CDIE] != KKaZ",
"def ytGh(hLRM):\n return hLRM == u'MALABO'",
"def Qj60(eKbg):\n ZYEE = set(eKbg)\n if '1' in ZYEE and ... | [
"0.64078116",
"0.58334404",
"0.5815425",
"0.5685102",
"0.56829834",
"0.56588876",
"0.5625835",
"0.5505203",
"0.5494165",
"0.54220253",
"0.5399503",
"0.53987366",
"0.53856874",
"0.5365652",
"0.5364589",
"0.53569627",
"0.5355481",
"0.5348781",
"0.5344035",
"0.53291416",
"0.5328... | 0.0 | -1 |
Remove html tags from the document. | def aAsi(l5Ny: str) -> str:
Z9JV = rKuS(l5Ny, 'html.parser')
return Z9JV.get_text(separator=' ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)",
"def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)",
"def JZhs(l5Ny):\n import re\n x0SS = re.compi... | [
"0.77784157",
"0.77650386",
"0.7583168",
"0.75283754",
"0.75283754",
"0.7522114",
"0.7484816",
"0.7484816",
"0.7484816",
"0.7484816",
"0.7484816",
"0.7484816",
"0.7460128",
"0.7443291",
"0.74424356",
"0.74424356",
"0.74424356",
"0.7409774",
"0.73848283",
"0.73838115",
"0.7353... | 0.69708914 | 45 |
Set the street portion of the Location. | def dZsp(YKHO, wEf2):
YKHO.street = wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UGle(YKHO, UGle):\n YKHO._street = UGle",
"def UGle(YKHO, UGle):\n YKHO._street = UGle",
"def UGle(YKHO, UGle):\n YKHO._street = UGle",
"def PJM9(YKHO, PJM9):\n YKHO._street_address = PJM9",
"def Ce3W(YKHO):\n if YKHO.has_non_empty_attribute('address'):\n UTX6 = BfDw.remove_markup... | [
"0.8144288",
"0.8144288",
"0.8144288",
"0.7616589",
"0.73252505",
"0.72769773",
"0.72460383",
"0.71723586",
"0.69020516",
"0.6713929",
"0.65002567",
"0.6492603",
"0.6465784",
"0.6465784",
"0.6465784",
"0.637113",
"0.6343782",
"0.6161037",
"0.61573315",
"0.61405516",
"0.610420... | 0.82205063 | 0 |
Set the locality portion of the Location. | def rogy(YKHO, wEf2):
YKHO.locality = wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDqo(YKHO, Rci7):\n YKHO.loc = Rci7",
"def OG_1(YKHO, OG_1):\n YKHO._taxed_locality = OG_1",
"def x1Lx(YKHO, Ty9i):\n YKHO['location'] = Ty9i",
"def YK7p(YKHO, Rci7):\n YKHO._location = Rci7",
"def YK7p(YKHO, Rci7):\n if Rci7 is not None:\n YKHO.location = getattr(_JMH, Rci7)",
... | [
"0.65251845",
"0.6481608",
"0.6475882",
"0.6388893",
"0.63681203",
"0.6256559",
"0.6204929",
"0.610603",
"0.59914136",
"0.5963966",
"0.5943531",
"0.5896896",
"0.5885202",
"0.5846753",
"0.5840818",
"0.58300084",
"0.58300084",
"0.58300084",
"0.58300084",
"0.58300084",
"0.582963... | 0.7688664 | 0 |
Return the locality portion of the Location. | def ovtB(YKHO):
return YKHO.locality | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GhjE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'locality')",
"def GhjE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'locality')",
"def AHfj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sublocality')",
"def Rci7(YKHO):\n if YKHO._location_present:\n ... | [
"0.80667996",
"0.80667996",
"0.6666858",
"0.6542444",
"0.653269",
"0.653269",
"0.6488297",
"0.6488297",
"0.648312",
"0.64763826",
"0.64763826",
"0.64763826",
"0.64729244",
"0.6402887",
"0.6386176",
"0.63800406",
"0.63780504",
"0.6376395",
"0.6376395",
"0.6376395",
"0.6376395"... | 0.78218764 | 2 |
Return the state name of the LocationBase object. | def ja6o(YKHO):
return YKHO.state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cOz4(YKHO):\n return getattr(YKHO.state, 'name', YKHO.state)",
"def bAAu(YKHO):\n return str(YKHO.current_state or BfDw.get_state(YKHO))",
"def rlcK(YKHO) -> Rk9v:\n pass",
"def WuUm(YKHO):\n return YKHO._location_name",
"def rlcK():\n return QTBn()[1]",
"def QTBn(YKHO, mWFP):\n ret... | [
"0.7557155",
"0.733194",
"0.7226254",
"0.7200104",
"0.70875657",
"0.70193106",
"0.7007564",
"0.69924235",
"0.6957284",
"0.6945374",
"0.6809847",
"0.680757",
"0.6804879",
"0.67789984",
"0.6761979",
"0.67386514",
"0.6623575",
"0.65672606",
"0.6565369",
"0.65592074",
"0.65472925... | 0.0 | -1 |
Return the description for `enumee`. `enumee` can be either the value or name of the desired attribute. If no description is available, None is returned. If the enumeration isn't unique, then using an integer value isn't recommended since previous descriptions, if given, will be clobbered if multiple identical values a... | def JBZA(YKHO, Xwjw):
if Xwjw in YKHO._values or Xwjw in YKHO.__dict__:
return YKHO._descriptions.get(Xwjw)
raise KeyError(Xwjw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO, H5ew=None, BWXx=None):\n if BWXx == None and H5ew == None:\n raise LookupError('Must provide either a key or a value')\n if BWXx != None and H5ew != None:\n raise LookupError('Must provide either a key or a value')\n if BWXx != None:\n H5ew = YKHO.key(BWXx)\n if H5ew... | [
"0.6242236",
"0.62364835",
"0.59586126",
"0.59586126",
"0.59586126",
"0.59586126",
"0.58084196",
"0.57969517",
"0.5792094",
"0.5756992",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5736067",
"0.5711348",
"0.5691742",
"0.569036... | 0.7874979 | 0 |