query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Get the next item from the image iterator. | def OPHn(YKHO):
for nPrm in YKHO.glance_read_iter:
yield nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0mE(YKHO):\n if YKHO.idx <= 0:\n YKHO.addImage()\n YKHO.idx = max(0, YKHO.idx - 1)\n ZfUD = YKHO.getCurrentImage()\n return ZfUD",
"def next(YKHO):\n eHNT, VXjJ = YKHO.read()\n if eHNT is True:\n return VXjJ\n else:\n raise StopIteration()",
"def next(YKHO):\n ... | [
"0.82814986",
"0.7892955",
"0.7704718",
"0.7597233",
"0.7562951",
"0.7514273",
"0.7449446",
"0.74472183",
"0.7432558",
"0.7393262",
"0.72316366",
"0.72316366",
"0.72269297",
"0.71491784",
"0.712212",
"0.7106928",
"0.70936674",
"0.70855427",
"0.7077935",
"0.70735776",
"0.70503... | 0.0 | -1 |
Close the file handle. | def DDI8(YKHO):
try:
YKHO.file_handle.close()
except Exception as exc:
na1r.exception(BQDi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lynq(YKHO):\n YKHO._handle.close()",
"def qsZa(YKHO):\n YKHO.f.close()",
"def DDI8(YKHO):\n if YKHO.__fileHandle is not None:\n YKHO.__fileHandle.close()\n YKHO.__fileHandle = None",
"def DDI8(YKHO):\n YKHO.file_handle.close()\n return",
"def DDI8(YKHO):\n YKHO._fh.close... | [
"0.8540691",
"0.8188742",
"0.81703466",
"0.81112766",
"0.8091486",
"0.80315334",
"0.7951429",
"0.7906591",
"0.7899396",
"0.7877143",
"0.7877143",
"0.7877143",
"0.78463376",
"0.78441554",
"0.7812288",
"0.7804462",
"0.7792584",
"0.7775255",
"0.774501",
"0.774501",
"0.774501",
... | 0.82768935 | 1 |
Get storage profile associated with the given volume's volume_type. | def hgjt(YKHO, akib):
EhYO = akib['volume_type_id']
if EhYO is None:
return None
return DOqP(EhYO, 'storage_profile') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELSN(YKHO, akib):\n if akib['volume_type_id'] and akib.get('volume_type'):\n return akib['volume_type']['name']\n else:\n return akib['volume_type_id']",
"def cRVG(YKHO, akib, Ux0P=None):\n Mzww = YKHO._get_volumetype_extraspecs(akib)\n if not Mzww:\n Mzww = YKHO._get_storage... | [
"0.6490478",
"0.61671287",
"0.60445297",
"0.5904357",
"0.57814246",
"0.5740651",
"0.5694676",
"0.56790143",
"0.5635805",
"0.5631522",
"0.55704826",
"0.5569647",
"0.5569647",
"0.5546067",
"0.551853",
"0.5516061",
"0.5516061",
"0.5516061",
"0.5516061",
"0.5516061",
"0.5490804",... | 0.8055005 | 0 |
Filter out datastores that do not match given storage profile. | def bB0L(YKHO, xZgc, LNpz):
na1r.debug(bGrB('Filter datastores matching storage profile %(profile)s: %(dss)s.'), {'profile': LNpz, 'dss': xZgc})
lq8A = YKHO.volumeops.retrieve_profile_id(LNpz)
if not lq8A:
tO9_ = bGrB("No such storage profile '%s; is defined in vCenter.")
na1r.error(tO9_, LN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMmq(YKHO):\n YKHO.test_runner.run_backup_list_filter_datastore_not_found()",
"def md39(YKHO):\n YKHO.test_runner.run_backup_list_filter_different_datastore()",
"def zpDB(YKHO, QhXp):\n return YKHO.filter(remotestorage__profile__in=QhXp).distinct()",
"def i5V3(Nh2q, h9cG):\n uwGV = dict()\n ... | [
"0.5948125",
"0.5887553",
"0.57674706",
"0.5466823",
"0.5232041",
"0.5204909",
"0.5096817",
"0.5073697",
"0.50684744",
"0.50291675",
"0.5026268",
"0.5024353",
"0.5017796",
"0.50072175",
"0.50037974",
"0.49998215",
"0.490587",
"0.4898171",
"0.48951638",
"0.48920605",
"0.486035... | 0.7970052 | 0 |
Creates backing under any suitable host. The method tries to pick datastore that can fit the volume under any host in the inventory. | def HD9c(YKHO, akib):
AnHM = YKHO.volumeops.get_hosts()
while AnHM:
Of0F = AnHM.objects
if not Of0F:
break
WLVH = None
for KcEq in Of0F:
try:
WLVH = YKHO._create_backing(akib, KcEq.obj)
if WLVH:
break
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3Pi(YKHO, akib, KcEq):\n xZgc, ZGn0 = YKHO.volumeops.get_dss_rp(KcEq)\n xtX7, QxIo = YKHO._get_folder_ds_summary(akib, ZGn0, xZgc)\n lD3m = c_CD._get_disk_type(akib)\n mNo4 = akib['size'] * rYO3.MiB\n LNpz = YKHO._get_storage_profile(akib)\n lq8A = None\n if YKHO._storage_policy_enabled a... | [
"0.7202385",
"0.66999626",
"0.61942005",
"0.60918194",
"0.60330474",
"0.5870825",
"0.5855278",
"0.58447427",
"0.58076495",
"0.57872254",
"0.5773291",
"0.5760155",
"0.57564265",
"0.56937283",
"0.56838685",
"0.5682157",
"0.56646174",
"0.5647596",
"0.56473786",
"0.563536",
"0.56... | 0.7584157 | 0 |
Return PBM WSDL file location corresponding to VC version. | def Zc7Z(YKHO, Y9HL):
if not Y9HL:
return
fUpG = str(Y9HL).split('.')
GYug = fUpG[0]
if len(fUpG) >= 2:
GYug = GYug + '.' + fUpG[1]
U1Qf = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))
eB6K = Hy7s.path.join(U1Qf, 'wsdl', GYug, 'pbmService.wsdl')
if not Hy7s.path.exists(eB6K):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xg7g(iquo, GT6L):\n return A1Qu.get_soap_url(iquo, GT6L) + '/vimService.wsdl'",
"def RURv():\n pass",
"def G03M(YKHO):\n return iOba(YKHO.bin_path, 'vc')",
"def OyQC(YKHO):\n return YKHO.vcf_path",
"def jRZq():\n return dHat.libfile",
"def zzcs(DpZH: str) -> str:\n return Hy7s.path.... | [
"0.62898576",
"0.5776017",
"0.5752444",
"0.57090205",
"0.5653174",
"0.5543519",
"0.5540969",
"0.5523297",
"0.54863745",
"0.5340777",
"0.53222424",
"0.52653885",
"0.5262203",
"0.5212651",
"0.51959646",
"0.5155866",
"0.51488537",
"0.51422554",
"0.5139226",
"0.51361334",
"0.5113... | 0.831028 | 0 |
Split the datastore path to components. return the datastore name, relative folder path and the file name E.g. datastore_path = [datastore1] my_volume/my_volume.vmdk, returns (datastore1, my_volume/, my_volume.vmdk) | def Xya1(oZvp):
RYsB = oZvp.split('[', 1)[1].split(']', 1)
Nfjf = None
ESvo = None
gIsw = None
if len(RYsB) == 1:
Nfjf = RYsB[0]
else:
Nfjf, pmON = RYsB
RYsB = pmON.split('/')
gIsw = RYsB[len(RYsB) - 1]
ESvo = pmON[:-len(gIsw)]
return (Nfjf.strip(), ES... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCKq(YKHO, VqRE):\n i2ID = None\n zKYP = None\n AeXe = None\n FJDa = Hy7s.path.dirname(VqRE).split('/')\n if len(FJDa) > 1:\n if FJDa[0] == 'GRANULE':\n i2ID = FJDa[1]\n elif FJDa[0] == 'DATASTRIP':\n zKYP = FJDa[1]\n if len(FJDa) > 2:\n AeXe... | [
"0.66882",
"0.6582021",
"0.657753",
"0.657753",
"0.64912844",
"0.6448338",
"0.6381942",
"0.63724476",
"0.6253293",
"0.6234929",
"0.62272584",
"0.6223082",
"0.6179501",
"0.61595774",
"0.61595774",
"0.6158799",
"0.6143651",
"0.6128478",
"0.6120223",
"0.6116906",
"0.61048687",
... | 0.9096373 | 0 |
Get all the hosts to which the datastore is connected and usable. The datastore is considered to be usable for a host only if it is writable, mounted and accessible. | def y9Xo(YKHO, EVcG):
m8TA = YKHO._session.invoke_api(A1Qu, 'get_object_property', YKHO._session.vim, EVcG, 'host')
RPjX = []
for IbMU in m8TA.DatastoreHostMount:
if YKHO._is_usable(EVcG, IbMU.mountInfo):
RPjX.append(IbMU.key.value)
return RPjX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y9Xo(YKHO, cuiw):\n Of0F = []\n QxIo = YKHO.get_summary(cuiw)\n if not QxIo.accessible:\n return Of0F\n m8TA = cuiw.invoke_api(A1Qu, 'get_object_property', cuiw.vim, YKHO.ref, 'host')\n if not hasattr(m8TA, 'DatastoreHostMount'):\n return Of0F\n for IbMU in m8TA.DatastoreHostMou... | [
"0.78625524",
"0.76228166",
"0.7366699",
"0.72635084",
"0.7166788",
"0.7138509",
"0.7096363",
"0.7096363",
"0.70880216",
"0.70853776",
"0.7075893",
"0.7075893",
"0.70356077",
"0.70117015",
"0.6975122",
"0.6874566",
"0.68611485",
"0.68426436",
"0.6831709",
"0.68276775",
"0.682... | 0.80703133 | 0 |
Get immediate parent of given type via 'parent' property. | def ByGo(YKHO, aUGN, SH9l):
if not aUGN:
return None
if aUGN._type == SH9l:
return aUGN
_AKB = YKHO._session.invoke_api(A1Qu, 'get_object_property', YKHO._session.vim, aUGN, 'parent')
return YKHO._get_parent(_AKB, SH9l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tImL(YKHO, _AKB):\n SH9l = _AKB\n if not isinstance(SH9l, type):\n SH9l = type(SH9l)\n return SH9l",
"def iZD2(mbHt):\n _AKB = w6j3._current_frame\n while _AKB is not None and (not isinstance(_AKB, mbHt)):\n _AKB = _AKB._parent\n return _AKB",
"def PAwq():\n return Z3mN",... | [
"0.79734457",
"0.7776274",
"0.77539766",
"0.7668338",
"0.7496522",
"0.74787337",
"0.7469177",
"0.74334246",
"0.732579",
"0.7312442",
"0.72937113",
"0.7275584",
"0.7234105",
"0.71851385",
"0.71418047",
"0.71418047",
"0.71418047",
"0.71418047",
"0.7125873",
"0.7099663",
"0.7070... | 0.79709893 | 1 |
Get datastore where the backing resides. | def Dy_N(YKHO, WLVH):
return YKHO._session.invoke_api(A1Qu, 'get_object_property', YKHO._session.vim, WLVH, 'datastore').ManagedObjectReference[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVcG(YKHO):\n return YKHO._datastore",
"def uwi0(YKHO):\n return YKHO._dstore",
"def EVcG(YKHO):\n if YKHO._datastore is None:\n YKHO._datastore = EVcG.Client()\n return YKHO._datastore",
"def EVcG(YKHO) -> h8nf[qe4Y.Input['InstanceDatastoreArgs']]:\n return qe4Y.get(YKHO, 'datastor... | [
"0.81438935",
"0.8125729",
"0.7724564",
"0.7624812",
"0.7551608",
"0.75242007",
"0.7428777",
"0.7428777",
"0.7414407",
"0.6973173",
"0.67559856",
"0.6652397",
"0.66500974",
"0.6629066",
"0.6581657",
"0.655542",
"0.65252227",
"0.65199125",
"0.6512251",
"0.6478499",
"0.6465774"... | 0.77695376 | 2 |
Get parent folder of the backing. | def r95M(YKHO, WLVH):
return YKHO._get_parent(WLVH, 'Folder') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAwq(YKHO):\n return Hy7s.path.split(YKHO.get_absolute())[0]",
"def slOJ(YKHO):\n return GkAb(Hy7s.path.split(YKHO.get_absolute())[0])",
"def Xn8b(YKHO):\n return YKHO.__path_to_parent_dir",
"def _AKB(YKHO):\n return GkAb(Hy7s.path.dirname(YKHO))",
"def _AKB(YKHO, pmON):\n return Hy7s.pa... | [
"0.8485634",
"0.8342793",
"0.8290938",
"0.80670875",
"0.8055222",
"0.80089724",
"0.7921538",
"0.7842416",
"0.7799782",
"0.7647549",
"0.7638594",
"0.76168793",
"0.759999",
"0.759999",
"0.7579766",
"0.75776404",
"0.7489536",
"0.7467845",
"0.7458484",
"0.7442633",
"0.7412485",
... | 0.77289075 | 9 |
Get the clone spec. | def CYIt(YKHO, EVcG, VS03, Rwel):
EyYb = YKHO._get_relocate_spec(EVcG, None, None, VS03)
EzjL = YKHO._session.vim.client.factory
Rg4c = EzjL.create('ns0:VirtualMachineCloneSpec')
Rg4c.location = EyYb
Rg4c.powerOn = False
Rg4c.template = False
Rg4c.snapshot = Rwel
na1r.debug(bGrB('Spec fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYyG(YKHO, Nfjf=None, hjKc=None):\n if Nfjf:\n EVcG = CdUm(YKHO.content, [ty0B.Datastore], Nfjf)\n else:\n EVcG = YKHO.datastore\n a0BN = ty0B.vm.RelocateSpec()\n IwdE = ty0B.vm.CloneSpec()\n if hjKc:\n dBuj = CdUm(YKHO.content, [ty0B.ResourcePool], hjKc)\n a0BN.pool ... | [
"0.67648244",
"0.63806653",
"0.6219442",
"0.6103767",
"0.60062134",
"0.58225596",
"0.5765906",
"0.57637113",
"0.5763278",
"0.5724952",
"0.5724393",
"0.5724393",
"0.57129663",
"0.5705694",
"0.5661664",
"0.5642034",
"0.56314534",
"0.559789",
"0.556843",
"0.55609816",
"0.5546159... | 0.7543298 | 0 |
Driver entry point to remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
XNHl = '%s%s' % (YKHO.configuration.iscsi_target_prefix, akib['name'])
YKHO.utils.remove_iscsi_target(XNHl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO,... | [
"0.8612046",
"0.8595156",
"0.8554994",
"0.852235",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.851516",
"0.8502408",
"0.8502408",
"0.8480852",
"0.8480852",
"0.8480852",
"0.8480852",
"0.8480852",
"0.8480852",
"0.8480852"... | 0.7500277 | 41 |
Retrieve access key for VPSA connection. | def EJeF(YKHO, HCmI=None):
if YKHO.access_key or HCmI == 'login':
return
HCmI = 'login'
Wpud = YKHO.send_cmd(HCmI)
CBIr = Wpud.find('user')
if CBIr is None:
raise AJ5d.MalformedResponse(cmd=HCmI, reason='no "user" field')
MYjm = CBIr.findtext('access-key')
if MYjm is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NBJ2(H5ew):\n XAJG()\n return QtIL.get_access_key(H5ew)",
"def MYjm(YKHO) -> str:\n return qe4Y.get(YKHO, 'access_key')",
"def MYjm(YKHO) -> str:\n return qe4Y.get(YKHO, 'access_key')",
"def MYjm(YKHO) -> str:\n return qe4Y.get(YKHO, 'access_key')",
"def MYjm(YKHO) -> str:\n return qe... | [
"0.7190006",
"0.6999483",
"0.6999483",
"0.6999483",
"0.6999483",
"0.68178016",
"0.68071365",
"0.6786938",
"0.6780824",
"0.6587268",
"0.6531209",
"0.6517154",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
"0.6471625",
... | 0.0 | -1 |
Return name of the consistency group for the volume. | def PCbG(YKHO, mWFP):
Wpud = YKHO.vpsa.send_cmd('list_volumes')
akib = YKHO._xml_parse_helper(Wpud, 'volumes', ('display-name', mWFP))
if akib is not None:
return akib.findtext('cg-name')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO):\n return YKHO._get_group_name_by_num(YKHO.group_num)",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def xQ5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'consistency_group_policy')",
"def XZ_F(YKHO):\n return ''",
"def O2mS(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.6943084",
"0.69026625",
"0.6800431",
"0.6659522",
"0.66423714",
"0.6629924",
"0.662935",
"0.6595541",
"0.6562508",
"0.65507954",
"0.64290243",
"0.64244866",
"0.6416055",
"0.6412834",
"0.64081115",
"0.6384141",
"0.6379047",
"0.6352586",
"0.62880224",
"0.62464666",
"0.623442... | 0.0 | -1 |
Return snapshot ID for particular volume. | def tbOn(YKHO, Dte6, XQz8):
Wpud = YKHO.vpsa.send_cmd('list_vol_snapshots', cg_name=Dte6)
vZa6 = YKHO._xml_parse_helper(Wpud, 'snapshots', ('display-name', XQz8))
if vZa6 is not None:
return vZa6.findtext('name')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5cL(YKHO) -> str:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[in... | [
"0.75708187",
"0.74463695",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7370277",
"0.7348238",
"0.72870433",
"0.7260609",
... | 0.6393884 | 54 |
Return VPSA's name for server object with given IQN. | def kvCy(YKHO, ALmv):
Wpud = YKHO.vpsa.send_cmd('list_servers')
N5z6 = YKHO._xml_parse_helper(Wpud, 'servers', ('iqn', ALmv))
if N5z6 is not None:
return N5z6.findtext('name')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNnH(YKHO):\n try:\n return YKHO._vservername\n except Exception as e:\n raise tTpl",
"def jNnH(YKHO):\n try:\n return YKHO._vservername\n except Exception as e:\n raise tTpl",
"def NzQY(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_name')",
"def Nz... | [
"0.67035645",
"0.65853965",
"0.6402286",
"0.6402286",
"0.62752795",
"0.627116",
"0.6245589",
"0.62335145",
"0.62052846",
"0.62052846",
"0.6198861",
"0.6187252",
"0.6135671",
"0.6046992",
"0.60282415",
"0.60166705",
"0.60128814",
"0.5987535",
"0.59593284",
"0.59593284",
"0.595... | 0.67440903 | 0 |
Attach volume to initiator/host. During this call VPSA exposes volume to particular Initiator. It also creates a 'server' entity for Initiator (if it was not created before) All necessary connection information is returned, including auth data. Connection data (target, LUN) is not stored in the DB. | def UlAc(YKHO, akib, SQvy):
y9Ye = SQvy['initiator']
Oe8m = YKHO._create_vpsa_server(y9Ye)
if not Oe8m:
raise AJ5d.ZadaraServerCreateFailure(name=y9Ye)
mWFP = YKHO.configuration.zadara_vol_name_template % akib['name']
cBPK = YKHO._get_vpsa_volume_name(mWFP)
if not cBPK:
raise AJ5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2Fq(YKHO, QpfX, akib, Jqkp, GT6L, v2CM):\n pass",
"def _2Fq(YKHO, qoLw, KAOR, v2CM):\n zGKt = LkeU.find(uuid=KAOR['uuid'])\n if qoLw['driver_volume_type'] == 'iscsi':\n akib = Nw6d.OVZISCSIStorageDriver(zGKt.ovz_id, v2CM, qoLw)\n akib.discover_volume()\n else:\n raise NotImp... | [
"0.72709584",
"0.72214556",
"0.71604705",
"0.7157684",
"0.714662",
"0.7136605",
"0.7095934",
"0.70330185",
"0.6991505",
"0.6981896",
"0.6955729",
"0.6911173",
"0.6886023",
"0.68547255",
"0.68547255",
"0.6850654",
"0.6783795",
"0.6783795",
"0.66968346",
"0.66864705",
"0.668288... | 0.6799478 | 16 |
Extracts the volume id from the provided volume (if provided). This function validates the input source_volume dict and checks that the status of that source_volume is valid for creating a volume from. | def uCUV(MRbS):
ThP9 = None
if MRbS is not None:
if MRbS['status'] not in bo4a:
tO9_ = bGrB('Unable to create a volume from an originating source volume when its status is not one of %s values')
tO9_ = tO9_ % ', '.join(bo4a)
raise AJ5d.InvalidVolume(reason=tO9_)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5cL(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'volume_id')",
"def Z5cL(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'volume_id')",
"def wv_6(YKHO, VkPj):\n try:\n _hkX = YKHO.provisioning.get... | [
"0.67129",
"0.67129",
"0.638879",
"0.6251009",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.62350446",
"0.61... | 0.85550785 | 0 |
Extracts and validates the volume size. This function will validate or when not provided fill in the provided size variable from the source_volume or snapshot and then does validation on the size that is found and returns said validated size. | def YyKt(zNig, MRbS, Rwel):
def LcLx(zNig):
if Rwel and zNig < Rwel['volume_size']:
tO9_ = bGrB('Volume size %(size)sGB cannot be smaller than the snapshot size %(snap_size)sGB. They must be >= original snapshot size.')
tO9_ = tO9_ % {'size': zNig, 'snap_size': Rwel['volume_size']}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LG9r(uiNE, sZJZ, VM6a):\n UAju = []\n qmLP = []\n XLMv = VM6a.get_section(uiNE, sZJZ)\n if XLMv.get_param_value('ebs_snapshot_id'):\n try:\n GrjM = XLMv.get_param_value('ebs_snapshot_id')\n TGw1 = ORGh(GrjM, raise_exceptions=True)\n DK9x = TGw1.get('VolumeSiz... | [
"0.689147",
"0.6714308",
"0.6657306",
"0.6657306",
"0.63984096",
"0.63865155",
"0.63618505",
"0.63475406",
"0.63475406",
"0.63475406",
"0.6338759",
"0.63345444",
"0.63247406",
"0.6320497",
"0.62926054",
"0.6284766",
"0.61930984",
"0.61719686",
"0.6160948",
"0.6160948",
"0.616... | 0.85804725 | 0 |
Deletes and unexports volume. | def W15T(YKHO, QpfX, Z5cL, zo19=False):
QpfX = QpfX.elevated()
C6of = YKHO.db.volume_get(QpfX, Z5cL)
if QpfX.project_id != C6of['project_id']:
ekCf = C6of['project_id']
else:
ekCf = QpfX.project_id
na1r.info(bGrB('volume %s: deleting'), C6of['id'])
if C6of['attach_status'] == 'at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZgt(YKHO, akib, QLkt):\n YKHO._copy_volume('/dev/zero', YKHO.local_path(akib), QLkt)\n biap = YKHO.local_path(akib)\n if Hy7s.path.exists(biap):\n YKHO._try_execute('dmsetup', 'remove', '-f', biap, run_as_root=True)\n YKHO._try_execute('lvremove', '-f', '%s/%s' % (vPBo.volume_group, YKHO._e... | [
"0.77007604",
"0.76778793",
"0.7596871",
"0.7585775",
"0.758255",
"0.74988335",
"0.7470238",
"0.7428861",
"0.740768",
"0.7397152",
"0.7362457",
"0.7362457",
"0.73350227",
"0.7330809",
"0.7324248",
"0.72766584",
"0.7265534",
"0.7265068",
"0.7265068",
"0.7263745",
"0.72455657",... | 0.721288 | 25 |
Check if 'consumer' value in qos specs is valid. Verify 'consumer' value in qos_specs is valid, raise exception if not. Assign default value to 'consumer', which is 'backend' if input is empty. | def mdto(Mzww, eLpg=True):
if not Mzww:
Mzww = {}
if Mzww.get('name', None):
del Mzww['name']
try:
if Mzww['consumer'] not in KC6c:
tO9_ = bGrB('Valid consumer of QoS specs are: %s') % KC6c
raise AJ5d.InvalidQoSSpecs(reason=tO9_)
except KeyError:
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wv7j():\n with trZe.raises(ValueError):\n Y4ET.ConnectSpec(will_topic=u'biz', will_message=u'baz', will_qos=3)\n Y4ET.ConnectSpec(will_topic=u'my_will_topic', will_message=u'my_will_message', will_qos=1)\n Y4ET.ConnectSpec(will_topic=u'my_will_topic', will_message=u'my_will_message', will_qos=2... | [
"0.5421654",
"0.535851",
"0.535851",
"0.53055733",
"0.5266694",
"0.5266694",
"0.5215269",
"0.4975707",
"0.4832123",
"0.48248553",
"0.47763026",
"0.47615677",
"0.47514316",
"0.47484624",
"0.47342166",
"0.47277382",
"0.46958083",
"0.4681115",
"0.4668407",
"0.46534425",
"0.46403... | 0.65494037 | 0 |
Get the default volume type. | def Sjul():
mWFP = SAs9.default_volume_type
N0DH = {}
if mWFP is not None:
bp_0 = QpfX.get_admin_context()
try:
N0DH = kI76(bp_0, mWFP)
except AJ5d.VolumeTypeNotFoundByName as e:
na1r.exception(bGrB('Default volume type is not found, please check default_volum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yB39(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'volume_type')",
"def yB39(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'volume_type')",
"def yB39(YKHO) -> str:\n return qe4Y.get(YKHO, 'volume_type')",
"def yB39(YKHO) -> str:\n return qe4Y.get(YKHO, 'volume_type')",
"def yB39(YKHO) -> str:\... | [
"0.8290826",
"0.8290826",
"0.80809546",
"0.80809546",
"0.80809546",
"0.80809546",
"0.80809546",
"0.80746174",
"0.79278874",
"0.7917743",
"0.7917743",
"0.7917743",
"0.7917743",
"0.7797336",
"0.75922453",
"0.73606217",
"0.7296544",
"0.72465485",
"0.7088311",
"0.7026763",
"0.690... | 0.8570461 | 0 |
Return the active zone configuration. Return active zoneset from fabric. When none of the configurations are active then it will return empty map. | def YGHK(YKHO):
zZbv = {}
lhKE = {}
AtyI = None
FDFD = None
IdLk = None
to1V = None
try:
IdLk = YKHO._get_switch_info([Z4pp.GET_ACTIVE_ZONE_CFG])
except AJ5d.BrocadeZoningCliException:
with L3vo.save_and_reraise_exception():
na1r.error(bGrB('Failed getting act... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YGHK(YKHO, LqO2, K94A, fZrK, aOc2):\n Ay5G = {}\n w2B8 = None\n try:\n na1r.debug(bGrB('Southbound connector: %s'), YKHO.configuration.brcd_sb_connector)\n w2B8 = mCgp.import_object(YKHO.configuration.brcd_sb_connector, ipaddress=LqO2, username=K94A, password=fZrK, port=aOc2)\n if... | [
"0.7743113",
"0.75472426",
"0.64886385",
"0.6357871",
"0.6357871",
"0.6357871",
"0.6288316",
"0.6288316",
"0.6218558",
"0.6218558",
"0.6218558",
"0.6218558",
"0.6218558",
"0.61898535",
"0.61898535",
"0.6171268",
"0.6171268",
"0.6171268",
"0.6150454",
"0.61069983",
"0.61013854... | 0.80921805 | 0 |
Gets active zone config from fabric. | def YGHK(YKHO, LqO2, K94A, fZrK, aOc2):
Ay5G = {}
w2B8 = None
try:
na1r.debug(bGrB('Southbound connector: %s'), YKHO.configuration.brcd_sb_connector)
w2B8 = mCgp.import_object(YKHO.configuration.brcd_sb_connector, ipaddress=LqO2, username=K94A, password=fZrK, port=aOc2)
if not w2B8.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YGHK(YKHO):\n zZbv = {}\n lhKE = {}\n AtyI = None\n FDFD = None\n IdLk = None\n to1V = None\n try:\n IdLk = YKHO._get_switch_info([Z4pp.GET_ACTIVE_ZONE_CFG])\n except AJ5d.BrocadeZoningCliException:\n with L3vo.save_and_reraise_exception():\n na1r.error(bGrB('Fa... | [
"0.7291573",
"0.7229924",
"0.63602674",
"0.6231879",
"0.6105605",
"0.60732424",
"0.6073219",
"0.6041318",
"0.60389864",
"0.5926026",
"0.5832015",
"0.5832015",
"0.5829201",
"0.5768357",
"0.5768357",
"0.5768357",
"0.5768357",
"0.5762966",
"0.57570875",
"0.5752934",
"0.5730658",... | 0.74885845 | 0 |
Generate a list of random integers. | def m_Xw(v_h6=10):
return [x6aZ(0, 100) for YRbF in range(v_h6)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMkh():\n PVOR = []\n for WKvO in range(100):\n PVOR.append(tuKI.randint(0, 1000))\n return PVOR",
"def mFai():\n return [1, 3, 5, 7, 8]",
"def mFai(DXyZ, deMa, W4cc):\n qP5Y = tuKI.sample(range(DXyZ, deMa), W4cc)\n return qP5Y",
"def nu3O(exwG):\n yv6U = []\n fTff.seed()\n... | [
"0.85960054",
"0.8037786",
"0.7991631",
"0.79400337",
"0.7748547",
"0.7748547",
"0.7745413",
"0.77145183",
"0.7693465",
"0.76915914",
"0.767245",
"0.7612171",
"0.76091367",
"0.76091367",
"0.75756615",
"0.7553509",
"0.75330657",
"0.74552155",
"0.7411282",
"0.7406642",
"0.73805... | 0.0 | -1 |
Generate a random hex color. e.g. FF0000 | def KgiJ():
gLiZ = list('0123456789ABCDEF')
return '#{0}{1}{2}{3}{4}{5}'.format(Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pph3():\n Z5Q9 = ajWY(0, 255)\n jlxe = ajWY(0, 255)\n pPPK = ajWY(0, 255)\n return vowe(Z5Q9, jlxe, pPPK)",
"def pph3():\n return int(hex(ajWY(0, 16581375)), 0)",
"def ssRV():\n Mkmy = (tuKI.randrange(1, 256) + 255) / 2\n Oa1e = (tuKI.randrange(1, 256) + 255) / 2\n Fg_i = (tuKI.rand... | [
"0.887016",
"0.8761658",
"0.8713859",
"0.8634702",
"0.8575382",
"0.8553381",
"0.84784454",
"0.84654146",
"0.8453321",
"0.8352242",
"0.8340161",
"0.82606286",
"0.81590086",
"0.80600315",
"0.79842275",
"0.79705584",
"0.7892306",
"0.78682464",
"0.7856026",
"0.78065604",
"0.77365... | 0.8382647 | 9 |
testing that 0 upvotes is unpopular | def ZZJx():
assert not AroK.is_popular() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjSE(YKHO):\n zkAX = PwrY(ups=1)\n l33e = PwrY(ups=2)\n VkwS = PwrY(ups=50)\n jHKC = zkAX._qa((), ())\n NXnA = l33e._qa((), ())\n cpIw = VkwS._qa((), ())\n YKHO.assertLess(jHKC, NXnA)\n YKHO.assertLess(NXnA, cpIw)",
"def rvlg(YKHO):\n YKHO.create_answers(49, score=None)\n Aofo =... | [
"0.65887105",
"0.6482719",
"0.64697814",
"0.6464685",
"0.63914835",
"0.6368778",
"0.63447887",
"0.63140506",
"0.62879825",
"0.6284124",
"0.6279354",
"0.6226646",
"0.6152929",
"0.6103874",
"0.6077834",
"0.6073253",
"0.60586655",
"0.6039786",
"0.6028352",
"0.6021637",
"0.600475... | 0.59810895 | 21 |
Initializes the Example, performing tokenization and truncation to produce the encoder, decoder and target sequences, which are stored in self. | def FIMM(YKHO, NamT, n7L0, CtWL, mRnP, UXqs):
YKHO.sent_max_len = mRnP
YKHO.enc_sent_len = []
YKHO.enc_sent_input = []
YKHO.enc_sent_input_pad = []
YKHO.original_article_sents = NamT
YKHO.original_abstract = '\n'.join(n7L0)
if isinstance(NamT, list) and isinstance(NamT[0], list):
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, AUCK, CtWL, Ep8u):\n YKHO.batch_size = Ep8u\n YKHO.pad_id = CtWL.word2id(nPrm.PAD_TOKEN)\n YKHO.init_encoder_seq(AUCK)\n YKHO.init_decoder_seq(AUCK)\n YKHO.store_orig_strings(AUCK)",
"def FIMM(YKHO, AUCK, gCuF, CtWL):\n YKHO.pad_id = CtWL.word2id(z1QK)\n YKHO.init_encoder_seq(... | [
"0.735851",
"0.72259456",
"0.69864386",
"0.6830707",
"0.6742512",
"0.66285604",
"0.66021025",
"0.65581554",
"0.65308243",
"0.648998",
"0.64627314",
"0.6455148",
"0.64398634",
"0.64345574",
"0.6411531",
"0.6358321",
"0.6297065",
"0.6294921",
"0.62884545",
"0.6267452",
"0.62390... | 0.0 | -1 |
Initializes the Example, performing tokenization and truncation to produce the encoder, decoder and target sequences, which are stored in self. | def FIMM(YKHO, NamT, n7L0, CtWL, mRnP, UXqs):
super().__init__(NamT, n7L0, CtWL, mRnP, UXqs)
DpUl = 0
YKHO.original_articles = []
YKHO.article_len = []
YKHO.enc_doc_input = []
for A97Q in NamT:
if len(A97Q) == 0:
continue
hB5i = len(A97Q)
YKHO.original_article... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, AUCK, CtWL, Ep8u):\n YKHO.batch_size = Ep8u\n YKHO.pad_id = CtWL.word2id(nPrm.PAD_TOKEN)\n YKHO.init_encoder_seq(AUCK)\n YKHO.init_decoder_seq(AUCK)\n YKHO.store_orig_strings(AUCK)",
"def FIMM(YKHO, AUCK, gCuF, CtWL):\n YKHO.pad_id = CtWL.word2id(z1QK)\n YKHO.init_encoder_seq(... | [
"0.7359032",
"0.72269803",
"0.698714",
"0.68294734",
"0.67421275",
"0.6628009",
"0.6602887",
"0.6557058",
"0.65308905",
"0.64890873",
"0.6461618",
"0.645625",
"0.6439647",
"0.6435833",
"0.6410607",
"0.63572484",
"0.62961644",
"0.6295748",
"0.62891847",
"0.62662446",
"0.623960... | 0.0 | -1 |
Command that accepts a stream as STDIN, modifies it and returns result as STDOUT. | def J0Lk(YKHO):
return ['cat', '-'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bCYe(pWGZ, NgGB):\n XP5J = Yn3K.Popen(NgGB, stdout=Yn3K.PIPE, stdin=pWGZ)\n return XP5J.stdout",
"def pOv4(d7pR, LFdf='', cbwj=True):\n import subprocess\n XP5J = subprocess.Popen(d7pR, stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=cbwj)\n XP5J.stdin.write(LFdf)\n XP5J.stdin.close()\... | [
"0.74390715",
"0.647943",
"0.6412725",
"0.6253554",
"0.62390405",
"0.6197796",
"0.619036",
"0.6071183",
"0.6062898",
"0.60395926",
"0.60369337",
"0.6021928",
"0.6011435",
"0.59888774",
"0.5967068",
"0.5891203",
"0.5886873",
"0.5865902",
"0.5864294",
"0.5861819",
"0.58609515",... | 0.0 | -1 |
Command that accepts a stream as STDIN, reverts the stream it and returns result as STDOUT. | def yPTn(YKHO):
return ['cat', '-'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bCYe(pWGZ, NgGB):\n XP5J = Yn3K.Popen(NgGB, stdout=Yn3K.PIPE, stdin=pWGZ)\n return XP5J.stdout",
"def O8Gq(YKHO):\n with YKHO._input as LDUZ:\n na1r.debug('Running %s', ' '.join(YKHO._unmodifier_cmd))\n NRWD = fGmS(YKHO._unmodifier_cmd, stdin=LDUZ, stdout=h5ye, stderr=h5ye)\n yi... | [
"0.6975514",
"0.6374077",
"0.63023365",
"0.61970764",
"0.60949624",
"0.5990251",
"0.5931747",
"0.591492",
"0.5888253",
"0.5864589",
"0.57938814",
"0.5781768",
"0.57802093",
"0.57538414",
"0.57203764",
"0.5709733",
"0.5663419",
"0.56272316",
"0.5613696",
"0.55511564",
"0.55297... | 0.0 | -1 |
Create a name for the file based on its channel, station, network and start time. | def HS2o(YKHO):
h25_ = hCMZ.convert_datetime_to_utc(YKHO.start_time)
G91o = hCMZ.create_stamp(h25_)
Npgh, gnAD = YKHO.get_containers()
return gnAD.network_id + '.' + gnAD.name + G91o + '.' + Npgh.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKOP(YKHO, DHvX=False):\n sjXb = ['basevar', 'season']\n if hasattr(YKHO, 'name') and (not DHvX):\n hkxX = YKHO.name.split(sep='-')\n for H5ew in sjXb:\n setattr(YKHO, H5ew, hkxX[sjXb.index(H5ew)])\n else:\n hkxX = [str(getattr(YKHO, H5ew)) for H5ew in sjXb if hasattr(Y... | [
"0.69428766",
"0.69270194",
"0.6920713",
"0.6786885",
"0.6771396",
"0.6629014",
"0.6623202",
"0.66168356",
"0.65421814",
"0.6529888",
"0.6525355",
"0.65112627",
"0.6429052",
"0.64028084",
"0.6399052",
"0.6398274",
"0.6392776",
"0.63272816",
"0.6324267",
"0.6297127",
"0.62705"... | 0.7243916 | 0 |
If we access a url that corresponse to an actual species but they weren't stock in that year, the template should return a meaningful message to that effect.' | def mYXx(x0hE, AC_T):
oMqC = O5cY.objects.get(species_code='75')
wx6A = 1990
bD7m = gxEw('species_annual_events', kwargs={'spc': oMqC.species_code, 'year': wx6A})
geh0 = x0hE.get(bD7m)
hGN5 = str(geh0.content)
jJUZ = '{} were not stocked in {}'
tO9_ = jJUZ.format(oMqC.common_name, wx6A)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cgFP(x0hE, AC_T):\n oMqC = O5cY.objects.get(species_code=75)\n wx6A = 2010\n bD7m = gxEw('species_annual_events', kwargs={'spc': oMqC.species_code, 'year': wx6A})\n geh0 = x0hE.get(bD7m)\n hGN5 = str(geh0.content)\n assert 'Site4' not in hGN5\n assert 'Site5' not in hGN5",
"def xLh0(x0hE... | [
"0.6869529",
"0.6561311",
"0.64307004",
"0.6386486",
"0.63496673",
"0.6097214",
"0.6031219",
"0.60230833",
"0.6021293",
"0.59746873",
"0.5926466",
"0.5886026",
"0.5833873",
"0.5804232",
"0.57788396",
"0.5767523",
"0.57649076",
"0.5742096",
"0.5740001",
"0.57153213",
"0.571420... | 0.62793833 | 5 |
Paginate a query. 'limit' and 'page' may be None, in which case they are defaulted to sensible values. Page indices start at zero. | def roPg(xDcj, JDhM, qoqK=None, B2Dn=None):
if qoqK is None:
qoqK = Az6F
if B2Dn is None:
B2Dn = Z5Jb
try:
wjRY = xDcj.count()
except:
wjRY = len(xDcj)
ppsq = B2Dn * qoqK
AbYn = min(wjRY, ppsq + qoqK)
dfHy = 0
DumB = []
for ZfUD in xDcj[ppsq:AbYn]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def roPg(xDcj, B2Dn, bNfU):\n if not (B2Dn >= 0 and bNfU >= 0):\n raise Exception('invalid values for pagination (page: %d, page_size: %d)' % (B2Dn, bNfU))\n return xDcj.limit(bNfU).offset(B2Dn * bNfU)",
"def Z1fV(YKHO, xDcj, vgXP=None, qoqK=None):\n if vgXP is not None:\n xDcj = xDcj.offs... | [
"0.7724024",
"0.7581751",
"0.7542798",
"0.7423",
"0.73703516",
"0.72108585",
"0.7117645",
"0.7117645",
"0.69508904",
"0.6946122",
"0.69414485",
"0.69190824",
"0.6915355",
"0.6865988",
"0.6816471",
"0.6815736",
"0.67489266",
"0.67404157",
"0.67369527",
"0.6734159",
"0.6717472"... | 0.661188 | 27 |
The function returns the angle between two given points | def q7In(nmIF, Fqsd):
Jw7X = Fqsd[0] - nmIF[0]
eUWA = Fqsd[1] - nmIF[1]
if abs(Jw7X) < 1e-06 and abs(eUWA) < 1e-06:
a1PO = 0
else:
a1PO = 1.0 * eUWA / (abs(Jw7X) + abs(eUWA))
if Jw7X < 0:
a1PO = 2 - a1PO
elif eUWA < 0:
a1PO = 4 + a1PO
return a1PO * 90 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YylR(X3qZ, ZYCo):\n return epAf.atan2(ZYCo[1] - X3qZ[1], ZYCo[0] - X3qZ[0])",
"def YylR(SZG4, PVCF):\n fG1s = PVCF.x - SZG4.x\n Ln29 = PVCF.y - SZG4.y\n return _IXK(vwZf(Ln29, fG1s))",
"def uD5v(o4D3, si3g, ajwV, skBL) -> float:\n return vwZf(si3g - skBL, ajwV - o4D3)",
"def Tbd6(EBgd, Hpu... | [
"0.85653836",
"0.8440628",
"0.83969486",
"0.8327854",
"0.82855",
"0.8192799",
"0.81484973",
"0.8022396",
"0.7989415",
"0.7932505",
"0.792094",
"0.79070485",
"0.79070485",
"0.7896945",
"0.7876569",
"0.7876569",
"0.7864451",
"0.7840982",
"0.7834758",
"0.7834098",
"0.7810952",
... | 0.0 | -1 |
Hashing function for passwords. If salt is not provided, generate a new salt and create a new hash.(creating users) Otherwise, generate the hash with the given salt and password.(verifying users) | def PXlE(jTXt, NTfD=None):
if not NTfD:
NTfD = Hy7s.urandom(8)
else:
NTfD = bytes.fromhex(NTfD)
return {'hash': HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000, dklen=128).hex(), 'salt': NTfD.hex()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPb7(jTXt, NTfD):\n lpha = len(NTfD) / 2\n jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:]\n jTXt = fY9n(xORj(jTXt).digest()).strip()\n return jTXt",
"def qzFd(jTXt, NTfD=None):\n if NTfD is None:\n NTfD = qxeD.uuid4().hex\n cOPp = HBct.sha256(jTXt + NTfD).hexdigest()\n return (cOPp, NTfD... | [
"0.7994067",
"0.7954089",
"0.7794595",
"0.77030087",
"0.76997393",
"0.7577798",
"0.7562813",
"0.7453172",
"0.74330974",
"0.7420529",
"0.737571",
"0.7368396",
"0.7358757",
"0.73293114",
"0.73238164",
"0.7281762",
"0.7237613",
"0.72323406",
"0.7201168",
"0.71781033",
"0.7164956... | 0.6821442 | 51 |
Add an answer for a question. | def oTMe(_j5U, ANfV, lgoE):
R7S5 = 'INSERT INTO Answer(q_id, answer,user_id) VALUES (%s, %s, %s)'
Wb_U(R7S5, _j5U, ANfV, lgoE)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re9J(YKHO, bAls, ANfV):\n qwR4 = YKHO.find_question(bAls)\n if qwR4 == -1:\n return False\n YKHO.content[qwR4][1].append(ANfV)\n return True",
"def wWM5(YKHO, bAls, ANfV):\n K4YQ = Y4Gy(bAls, ANfV)\n YKHO.questions.append(K4YQ)",
"def wWM5(YKHO, bAls, ANfV):\n YKHO.questions.app... | [
"0.8316122",
"0.82587636",
"0.8008069",
"0.787549",
"0.78716034",
"0.78497815",
"0.7815303",
"0.774402",
"0.7617683",
"0.75637513",
"0.7562002",
"0.74107707",
"0.7386749",
"0.7358979",
"0.73397297",
"0.7326375",
"0.7277521",
"0.72763175",
"0.7265327",
"0.72582453",
"0.7238871... | 0.7228008 | 22 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterID2ID2 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterID2ID2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmyQ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def tz2h(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterID2ID2_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2IF2 *':\n return f4YQ.itkConnectedThresholdImageFilterIF2IF2... | [
"0.7591329",
"0.7547029",
"0.7358919",
"0.73472834",
"0.7259268",
"0.7252665",
"0.72084504",
"0.7204268",
"0.7197052",
"0.7196033",
"0.718388",
"0.7182353",
"0.7162353",
"0.71575403",
"0.7134179",
"0.7102637",
"0.71009165",
"0.7094076",
"0.7076313",
"0.7072334",
"0.7060793",
... | 0.73215926 | 4 |
New() > itkGrayscaleGrindPeakImageFilterID2ID2 Create a new object of the class itkGrayscaleGrindPeakImageFilterID2ID2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non name... | def oW_4(*qIxc, **PECO):
YEnM = jLRL.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = _2t_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = M7RC.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79373235",
"0.7570916",
"0.74567795",
"0.7363499",
"0.73562753",
"0.73403126",
"0.7232657",
"0.7199983",
"0.71967506",
"0.7192975",
"0.71700937",
"0.7165659",
"0.7133047",
"0.7131381",
"0.7131381",
"0.71268874",
"0.7118764",
"0.71095234",
"0.7062871",
"0.70477444",
"0.7033... | 0.82744193 | 0 |
itkGrayscaleGrindPeakImageFilterID2ID2_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterID2ID2 | def tz2h(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterID2ID2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmyQ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterID2ID2_cast(*qIxc)",
"def y_xk(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2IF2 *':\n return f4YQ.itkConnectedThresholdImageFilterIF2IF2... | [
"0.809986",
"0.7891562",
"0.78077674",
"0.77320933",
"0.769425",
"0.7581542",
"0.7580299",
"0.74834424",
"0.7477804",
"0.7476798",
"0.74442196",
"0.74043083",
"0.73849976",
"0.7383477",
"0.7379578",
"0.73793936",
"0.73730886",
"0.73694867",
"0.73679084",
"0.7358626",
"0.73566... | 0.8289368 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterID3ID3 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterID3ID3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ATFH(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterID3ID3_cast(*qIxc)",
"def xtz2(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc)",
"def IHUY(YEnM: 'itkLightObject') -> 'itkGrayscaleMorphologicalOpeningImageFilterISS3ISS3SE3 *':\n return yRA8.itkGrayscaleMorphologi... | [
"0.7518226",
"0.7517157",
"0.74412537",
"0.7415314",
"0.7388779",
"0.7388079",
"0.7374185",
"0.7362423",
"0.7347176",
"0.73455364",
"0.7318484",
"0.73020107",
"0.7283815",
"0.72508013",
"0.72077894",
"0.7197679",
"0.71937764",
"0.7190102",
"0.71833485",
"0.7177171",
"0.716048... | 0.7300696 | 12 |
New() > itkGrayscaleGrindPeakImageFilterID3ID3 Create a new object of the class itkGrayscaleGrindPeakImageFilterID3ID3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non name... | def oW_4(*qIxc, **PECO):
YEnM = nMZ4.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = MkOb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = ldoB.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79518384",
"0.76354295",
"0.7558121",
"0.75159425",
"0.75048083",
"0.73957545",
"0.735649",
"0.7287577",
"0.7286297",
"0.7286297",
"0.725489",
"0.72367376",
"0.7234927",
"0.7216978",
"0.7203965",
"0.7202558",
"0.71979755",
"0.71917117",
"0.71718514",
"0.71641517",
"0.71624... | 0.81907547 | 0 |
itkGrayscaleGrindPeakImageFilterID3ID3_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterID3ID3 | def ATFH(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterID3ID3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtz2(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc)",
"def D41y(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF3IF3 *':\n return f4YQ.itkConnectedThresholdImageFilterIF3IF3_cast(YEnM)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterID3ID3_... | [
"0.81495255",
"0.7881753",
"0.7814488",
"0.7811211",
"0.7810242",
"0.7793045",
"0.7774587",
"0.7687384",
"0.7680346",
"0.766133",
"0.76236784",
"0.7609138",
"0.7547576",
"0.7511834",
"0.75082064",
"0.74950063",
"0.74936444",
"0.7464085",
"0.7460117",
"0.7456002",
"0.7442668",... | 0.8230438 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIF2IF2 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmyQ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2IF2 *':\n return f4YQ.itkConnectedThresholdImageFilterIF2IF2_cast(YEnM)",
"def y_xk(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2I... | [
"0.7626769",
"0.73541844",
"0.73000187",
"0.7152304",
"0.71181214",
"0.71127826",
"0.709179",
"0.70845485",
"0.7077271",
"0.70664454",
"0.70568895",
"0.70391077",
"0.70309794",
"0.70265317",
"0.701939",
"0.700934",
"0.7004418",
"0.69959074",
"0.69859487",
"0.69852597",
"0.698... | 0.72736186 | 3 |
New() > itkGrayscaleGrindPeakImageFilterIF2IF2 Create a new object of the class itkGrayscaleGrindPeakImageFilterIF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non name... | def oW_4(*qIxc, **PECO):
YEnM = _2t_.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = jLRL.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = M7RC.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.8075618",
"0.76962066",
"0.7516597",
"0.7452434",
"0.7452434",
"0.7419757",
"0.73614866",
"0.73078626",
"0.7287337",
"0.7269411",
"0.7252249",
"0.72416216",
"0.7228414",
"0.721079",
"0.7209265",
"0.7193871",
"0.71925527",
"0.71925527",
"0.7192054",
"0.7184543",
"0.7184543"... | 0.82004666 | 0 |
itkGrayscaleGrindPeakImageFilterIF2IF2_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIF2IF2 | def QmyQ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_xk(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2IF2 *':\n return f4YQ.itkConnectedThresholdImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2I... | [
"0.7886361",
"0.7869226",
"0.7760983",
"0.7757442",
"0.76315916",
"0.7586821",
"0.7535354",
"0.7516718",
"0.74654573",
"0.74452436",
"0.7436987",
"0.7415681",
"0.74117213",
"0.741172",
"0.73999983",
"0.7380332",
"0.73774815",
"0.73760587",
"0.7367313",
"0.7362778",
"0.7361797... | 0.8333464 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIF3IF3 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtz2(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF3IF3 *':\n return f4YQ.itkConnectedThresholdImageFilterIF3IF3_cast(YEnM)",
"def lnCN(YEnM: 'itkLightObject') -> 'itkGrayscaleMorphologicalOpeningImag... | [
"0.75426537",
"0.73729056",
"0.73346627",
"0.7284983",
"0.7283086",
"0.72752905",
"0.7262907",
"0.7210861",
"0.7206817",
"0.71892464",
"0.7168609",
"0.7137822",
"0.7129228",
"0.709806",
"0.7095983",
"0.7090863",
"0.7089683",
"0.70892787",
"0.7080535",
"0.7080398",
"0.70728093... | 0.7240384 | 7 |
New() > itkGrayscaleGrindPeakImageFilterIF3IF3 Create a new object of the class itkGrayscaleGrindPeakImageFilterIF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non name... | def oW_4(*qIxc, **PECO):
YEnM = MkOb.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = nMZ4.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = ldoB.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79326755",
"0.7715511",
"0.76502347",
"0.7571305",
"0.7571305",
"0.74801075",
"0.7460183",
"0.73931867",
"0.7372569",
"0.73684853",
"0.73178846",
"0.73152936",
"0.73116535",
"0.73076653",
"0.730594",
"0.73013425",
"0.7296192",
"0.72934735",
"0.7275547",
"0.7271238",
"0.726... | 0.81871724 | 0 |
itkGrayscaleGrindPeakImageFilterIF3IF3_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIF3IF3 | def xtz2(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D41y(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF3IF3 *':\n return f4YQ.itkConnectedThresholdImageFilterIF3IF3_cast(YEnM)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc)",
"def Or7o(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUL3IUL... | [
"0.78805417",
"0.78434443",
"0.783365",
"0.7810067",
"0.7753866",
"0.772411",
"0.7614448",
"0.76044554",
"0.75424546",
"0.7535615",
"0.7504474",
"0.7500062",
"0.7497557",
"0.74926335",
"0.74914914",
"0.74544865",
"0.74489164",
"0.74408984",
"0.7437094",
"0.74338466",
"0.74332... | 0.8314687 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUC2IUC2 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUC2IUC2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC2IUC2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC2IUC2_cast(YEnM)",
"def upxR(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC2IUC2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC2IUC2_cast(YEnM)",
"def... | [
"0.76790047",
"0.7667975",
"0.75371426",
"0.7488157",
"0.7458815",
"0.74263555",
"0.7379165",
"0.73511165",
"0.7341979",
"0.7339412",
"0.73328644",
"0.73176646",
"0.73086506",
"0.72964",
"0.7280552",
"0.72774327",
"0.7266369",
"0.7264138",
"0.72554886",
"0.72547257",
"0.72443... | 0.73051554 | 13 |
New() > itkGrayscaleGrindPeakImageFilterIUC2IUC2 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUC2IUC2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = DLPk.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = GeK8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = GeK8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7829857",
"0.7829857",
"0.7771578",
"0.77569246",
"0.77498144",
"0.7737053",
"0.77096015",
"0.77031463",
"0.7695789",
"0.767725",
"0.7671794",
"0.7636014",
"0.76346797",
"0.7631861",
"0.7619555",
"0.7603833",
"0.7602048",
"0.7599158",
"0.75833017",
"0.75765616",
"0.7573643... | 0.8179339 | 0 |
itkGrayscaleGrindPeakImageFilterIUC2IUC2_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUC2IUC2 | def LEy_(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUC2IUC2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upxR(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC2IUC2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC2IUC2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC2IUC2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC2IUC2_cast(YEnM)",
"def... | [
"0.83921725",
"0.81367654",
"0.79968613",
"0.7981898",
"0.7980678",
"0.79595065",
"0.79564613",
"0.7934062",
"0.7869749",
"0.7868878",
"0.7853415",
"0.7843842",
"0.7823557",
"0.7822388",
"0.78202814",
"0.78117007",
"0.780368",
"0.78021944",
"0.7782225",
"0.7774512",
"0.776521... | 0.83127826 | 1 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUC3IUC3 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUC3IUC3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC3IUC3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC3IUC3_cast(YEnM)",
"def BsFI(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC3IUC3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC3IUC3_cast(YEnM)",
"def... | [
"0.77485913",
"0.7686721",
"0.75667673",
"0.75496453",
"0.75003505",
"0.748298",
"0.74562407",
"0.743668",
"0.7433685",
"0.74325794",
"0.74180657",
"0.74048775",
"0.74048054",
"0.73943543",
"0.73833954",
"0.7382781",
"0.7364078",
"0.7356297",
"0.73341966",
"0.732619",
"0.7321... | 0.73396516 | 18 |
New() > itkGrayscaleGrindPeakImageFilterIUC3IUC3 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUC3IUC3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = b8q2.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = n1ls.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = n1ls.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7915368",
"0.7915368",
"0.7793611",
"0.77846426",
"0.7765141",
"0.77363616",
"0.7723828",
"0.77030313",
"0.76944643",
"0.7688525",
"0.7686209",
"0.76806134",
"0.76759064",
"0.7659019",
"0.7657164",
"0.7647617",
"0.7637528",
"0.76278293",
"0.7615429",
"0.76135314",
"0.76104... | 0.8181187 | 0 |
itkGrayscaleGrindPeakImageFilterIUC3IUC3_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUC3IUC3 | def jcM2(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUC3IUC3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsFI(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC3IUC3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC3IUC3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC3IUC3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC3IUC3_cast(YEnM)",
"def... | [
"0.8339524",
"0.80562335",
"0.7995625",
"0.789721",
"0.7892734",
"0.7855154",
"0.7835891",
"0.78357625",
"0.78356296",
"0.78160626",
"0.7814741",
"0.7814729",
"0.7803456",
"0.7793659",
"0.7792338",
"0.77761",
"0.77726024",
"0.7771901",
"0.7759844",
"0.77562195",
"0.7752932",
... | 0.8305279 | 1 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUL2IUL2 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUL2IUL2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vyS4(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUL2IUL2_cast(*qIxc)",
"def QmyQ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryImageToShapeLabelMapFilterIUC2LM2 *':\n return mfuf.itkBinaryImageToShapeLabelMapFil... | [
"0.7327428",
"0.72961044",
"0.72792995",
"0.7267747",
"0.72476435",
"0.7235552",
"0.7160433",
"0.71583235",
"0.7145583",
"0.71307313",
"0.71236175",
"0.7113663",
"0.71117276",
"0.71075606",
"0.7107142",
"0.71040946",
"0.7098775",
"0.7091956",
"0.707802",
"0.7040967",
"0.70372... | 0.7068883 | 19 |
New() > itkGrayscaleGrindPeakImageFilterIUL2IUL2 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUL2IUL2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = M7RC.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = DLPk.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = _2t_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.78759474",
"0.77956223",
"0.77319235",
"0.7570618",
"0.7447373",
"0.73807484",
"0.73236895",
"0.7277785",
"0.72769177",
"0.7256306",
"0.72095454",
"0.7208838",
"0.7195835",
"0.7195393",
"0.7182061",
"0.71797484",
"0.71786714",
"0.7174875",
"0.7171394",
"0.7168225",
"0.7167... | 0.8193849 | 0 |
itkGrayscaleGrindPeakImageFilterIUL2IUL2_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUL2IUL2 | def vyS4(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUL2IUL2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmyQ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF2IF2_cast(*qIxc)",
"def upxR(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC2IUC2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUC2IUC2_cast(YEnM)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUL... | [
"0.77388424",
"0.76488817",
"0.76342404",
"0.7630482",
"0.7583039",
"0.7557684",
"0.7459406",
"0.7445074",
"0.74172604",
"0.74076486",
"0.7397016",
"0.7389709",
"0.7381103",
"0.738107",
"0.73771495",
"0.7354966",
"0.73531306",
"0.73470277",
"0.73435783",
"0.73430055",
"0.7342... | 0.8106521 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUL3IUL3 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUL3IUL3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ldyg(YEnM: 'itkLightObject') -> 'itkGrayscaleMorphologicalOpeningImageFilterIUC3IUC3SE3 *':\n return yRA8.itkGrayscaleMorphologicalOpeningImageFilterIUC3IUC3SE3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGrayscaleMorphologicalOpeningImageFilterIUC3IUC3SE3 *':\n return yRA8.itkGrayscaleMorpho... | [
"0.7410869",
"0.73794776",
"0.7378223",
"0.73679054",
"0.73588467",
"0.7340811",
"0.73266095",
"0.7303674",
"0.72850394",
"0.7280247",
"0.7272413",
"0.7262406",
"0.7255888",
"0.72500104",
"0.72453135",
"0.72315115",
"0.72291523",
"0.72178894",
"0.72113",
"0.7206345",
"0.71956... | 0.7127933 | 33 |
New() > itkGrayscaleGrindPeakImageFilterIUL3IUL3 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUL3IUL3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = ldoB.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = MkOb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = b8q2.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.80441827",
"0.8007165",
"0.7890503",
"0.7686647",
"0.75443774",
"0.7518487",
"0.7405111",
"0.73858845",
"0.7379348",
"0.73494005",
"0.73305184",
"0.73075074",
"0.73022527",
"0.72975415",
"0.7291875",
"0.72916627",
"0.7283463",
"0.7281374",
"0.7281272",
"0.7281272",
"0.7280... | 0.82677245 | 0 |
itkGrayscaleGrindPeakImageFilterIUL3IUL3_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUL3IUL3 | def Or7o(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUL3IUL3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtz2(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIF3IF3_cast(*qIxc)",
"def jcM2(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUC3IUC3_cast(*qIxc)",
"def BsFI(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUC3IUC3 *':\n return f4YQ.itkConnectedThresholdImageFilterIU... | [
"0.79090834",
"0.7774097",
"0.773156",
"0.76378566",
"0.7611778",
"0.76001",
"0.756806",
"0.75555384",
"0.75390196",
"0.7535438",
"0.7531941",
"0.7531848",
"0.7515232",
"0.7493248",
"0.747213",
"0.7471761",
"0.74699193",
"0.7466893",
"0.7456529",
"0.7441949",
"0.7429986",
"... | 0.81084126 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUS2IUS2 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUS2IUS2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS2IUS2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS2IUS2_cast(YEnM)",
"def Zkn8(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS2IUS2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS2IUS2_cast(YEnM)",
"def... | [
"0.74635696",
"0.73419493",
"0.72815126",
"0.72118723",
"0.71972704",
"0.71730256",
"0.7155697",
"0.7121949",
"0.7109268",
"0.7106608",
"0.7103445",
"0.7071498",
"0.7064928",
"0.7063695",
"0.7059589",
"0.70178825",
"0.6997174",
"0.6969488",
"0.696852",
"0.6956669",
"0.6944966... | 0.71040154 | 10 |
New() > itkGrayscaleGrindPeakImageFilterIUS2IUS2 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUS2IUS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = TfWu.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = jLRL.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = _2t_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.767681",
"0.76754415",
"0.76386493",
"0.7550306",
"0.7475",
"0.7475",
"0.7389687",
"0.73524207",
"0.7352039",
"0.73376507",
"0.7333835",
"0.73316395",
"0.73293084",
"0.7311967",
"0.7310469",
"0.7289886",
"0.7289366",
"0.7281226",
"0.72769296",
"0.7268145",
"0.72633636",
... | 0.8234389 | 0 |
itkGrayscaleGrindPeakImageFilterIUS2IUS2_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUS2IUS2 | def BdhM(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUS2IUS2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zkn8(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS2IUS2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS2IUS2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS2IUS2 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS2IUS2_cast(YEnM)",
"def... | [
"0.80658805",
"0.79272646",
"0.7743786",
"0.77195215",
"0.7698675",
"0.76582766",
"0.7648946",
"0.76170987",
"0.76100767",
"0.7587391",
"0.7581999",
"0.7578917",
"0.75764966",
"0.75647503",
"0.75595456",
"0.7540118",
"0.75291646",
"0.7524251",
"0.7507006",
"0.75069636",
"0.74... | 0.8146557 | 0 |
cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUS3IUS3 | def YWvJ(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUS3IUS3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS3IUS3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS3IUS3_cast(YEnM)",
"def bL8j(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUS3IUS3_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilt... | [
"0.73464125",
"0.7345792",
"0.72106344",
"0.71073776",
"0.70909995",
"0.7077958",
"0.706818",
"0.706084",
"0.7055172",
"0.70527023",
"0.7016518",
"0.7009953",
"0.7006053",
"0.69777054",
"0.6952526",
"0.69492984",
"0.69482964",
"0.6934277",
"0.69320536",
"0.6910372",
"0.690665... | 0.72411144 | 2 |
New() > itkGrayscaleGrindPeakImageFilterIUS3IUS3 Create a new object of the class itkGrayscaleGrindPeakImageFilterIUS3IUS3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ... | def oW_4(*qIxc, **PECO):
YEnM = G0x_.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = MkOb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = ldoB.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7851163",
"0.78283703",
"0.7760317",
"0.7753813",
"0.7568108",
"0.7568108",
"0.7516433",
"0.74041545",
"0.7385437",
"0.73758066",
"0.7339182",
"0.7328054",
"0.73259217",
"0.7320159",
"0.7315429",
"0.73077947",
"0.7304332",
"0.73040164",
"0.730017",
"0.72860503",
"0.7271862... | 0.82902914 | 0 |
itkGrayscaleGrindPeakImageFilterIUS3IUS3_cast(itkLightObject obj) > itkGrayscaleGrindPeakImageFilterIUS3IUS3 | def bL8j(*qIxc):
return eLOo.itkGrayscaleGrindPeakImageFilterIUS3IUS3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J67x(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIUS3IUS3 *':\n return f4YQ.itkConnectedThresholdImageFilterIUS3IUS3_cast(YEnM)",
"def YWvJ(*qIxc):\n return eLOo.itkGrayscaleGrindPeakImageFilterIUS3IUS3_cast(*qIxc)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilt... | [
"0.78954774",
"0.7888786",
"0.7768406",
"0.7706535",
"0.7619776",
"0.75491124",
"0.7502214",
"0.7481289",
"0.74784195",
"0.74518114",
"0.74504274",
"0.74302876",
"0.7416132",
"0.7379942",
"0.73788846",
"0.7376702",
"0.7373299",
"0.73672116",
"0.73623234",
"0.7351027",
"0.7348... | 0.8196144 | 0 |
Get the arguments from the given `CallFunc` node. Return a tuple, where the first element is the number of positional arguments and the second element is the keyword arguments in a dict. | def rwTO(El4V):
_4TM = 0
hWek = {}
for d7pR in El4V.args:
if isinstance(d7pR, q8Qs.Keyword):
hWek[d7pR.arg] = BfDw.safe_infer(d7pR.value)
else:
_4TM += 1
return (_4TM, hWek) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HjRK(JfyU, **B2fa):\n if hasattr(tq_1, 'getfullargspec'):\n ZWCE, K9vJ, wUfe, muwo = tq_1.getfullargspec(JfyU)[:4]\n else:\n ZWCE, K9vJ, wUfe, muwo = tq_1.getargspec(JfyU)\n muwo = muwo or []\n CYSX = list(zip(ZWCE[len(ZWCE) - len(muwo):], muwo))\n L4g7, tUCT = ([], {})\n for mW... | [
"0.71987677",
"0.68322414",
"0.6641866",
"0.6359335",
"0.6334098",
"0.6331917",
"0.626598",
"0.62228036",
"0.6198133",
"0.6188647",
"0.6179344",
"0.615014",
"0.6150055",
"0.6144584",
"0.61378145",
"0.6134521",
"0.6118871",
"0.60909593",
"0.6071257",
"0.60649896",
"0.60417575"... | 0.7966483 | 0 |
Prepare fake disease data folder. | def h3HZ(Mrog=True, QdZT=False, zthK=True):
z_es = GkAb(gbPf.mkdtemp())
k8pZ = z_es.joinpath('experiment.env')
with open(k8pZ, mode='w', encoding='utf8') as dIyV:
pass
with open(k8pZ, 'w', encoding='utf8') as dIyV:
for H5ew, gIsw in rXle.items():
if Mrog:
if H... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2gF(ytgA):\n if Hy7s.path.exists(Hy7s.path.join(ytgA, 'data/')):\n return\n else:\n Hy7s.mkdir(Hy7s.path.join(ytgA, 'data/'))\n Hy7s.mkdir(Hy7s.path.join(ytgA, 'data/metadata/'))\n Hy7s.mkdir(Hy7s.path.join(ytgA, 'data/datasets/'))\n Hy7s.mkdir(Hy7s.path.join(ytgA, 'da... | [
"0.6770283",
"0.6729359",
"0.6688758",
"0.64963573",
"0.64880675",
"0.64849514",
"0.6482464",
"0.646145",
"0.64466494",
"0.6438836",
"0.6438836",
"0.63884544",
"0.63813585",
"0.6328332",
"0.63057154",
"0.62898546",
"0.6287477",
"0.6286339",
"0.6281364",
"0.6281364",
"0.626225... | 0.0 | -1 |
Returns the graph's minimum xvalue, including error bars where relevant. Recall that you can always retrieve the minimum point xvalue of a TGraph object with ``ROOT.TMath.MinElement(gr.GetN(), gr.GetX())``. | def oO1q(pNZh, kXPw=False):
if isinstance(pNZh, tk5Y.TGraphAsymmErrors):
qw7D = oyIN.ndarray(shape=pNZh.GetN(), dtype='f8', buffer=pNZh.GetX()) - oyIN.ndarray(shape=pNZh.GetN(), dtype='f8', buffer=pNZh.GetEXlow())
elif isinstance(pNZh, tk5Y.TGraphErrors):
qw7D = oyIN.ndarray(shape=pNZh.GetN(), d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wBZN(YKHO):\n return YKHO._x_min",
"def JRC0(YKHO):\n return YKHO.nodes.min_x",
"def JRC0(YKHO):\n return YKHO.nodes.min_x",
"def do2_(YKHO):\n return YKHO.minx",
"def JRC0(YKHO):\n return YKHO._xlim[0]",
"def snNb(YKHO):\n return YKHO.xMin",
"def mqIB(Oa1e):\n t_lK = len(pNZh)... | [
"0.8359805",
"0.82859135",
"0.82859135",
"0.81829184",
"0.80709267",
"0.8041487",
"0.79908913",
"0.7953057",
"0.78628695",
"0.77314043",
"0.76172125",
"0.7551252",
"0.7517662",
"0.751093",
"0.7501808",
"0.7484206",
"0.7480077",
"0.7432",
"0.7393921",
"0.7379431",
"0.737565",
... | 0.70387053 | 57 |
Populates `self.motors` with objects for each connected motor. | def fZc5(YKHO):
IKft = YKHO.port.timeout
try:
YKHO.port.timeout = 1
YKHO.port._ser.reset_input_buffer()
VzoY = []
YKHO.port.write(0, zJeG.RENUMBER)
while True:
try:
Amyp = YKHO.port.read()
VzoY.append(Amyp.device_number)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sR_9(fQxG):\n Iu0c = []\n for YRbF in range(7):\n JfGH = 'motor' + str(YRbF + 1)\n a93R = fQxG.getDevice(JfGH)\n a93R.setPosition(float('inf'))\n a93R.setVelocity(0.0)\n Iu0c.append(a93R)\n return Iu0c",
"def OYg0():\n D5b6 = 4\n NQLR = [None]\n print('Try... | [
"0.69682056",
"0.6496224",
"0.63773525",
"0.6329369",
"0.6317538",
"0.5968994",
"0.58939874",
"0.5889955",
"0.5882397",
"0.58499277",
"0.5812993",
"0.5754828",
"0.5747663",
"0.5684326",
"0.56684643",
"0.5668223",
"0.56658167",
"0.56403476",
"0.5632672",
"0.5626518",
"0.560969... | 0.69200134 | 1 |
Send a command to all connected motors. | def Z9Sj(YKHO, n6B1, nPrm=0):
YKHO.port.write(0, n6B1, nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6tc(YKHO, tvqc, TwDY):\n for JyK9 in YKHO.bots:\n YKHO.cmnd(tvqc, JyK9.cfg.name, TwDY)",
"def d2r8(YKHO, Ol8d):\n for Z9rn in YKHO.get_clients_list():\n V7ok.get_event_loop().create_task(Z9rn.send(Ol8d))",
"def d2r8(YKHO, nPrm):\n for x0hE in YKHO.clients:\n x0hE.send_data(nP... | [
"0.6633727",
"0.66278607",
"0.661392",
"0.64840996",
"0.64430046",
"0.6423867",
"0.63356674",
"0.63029903",
"0.627933",
"0.6261087",
"0.62311673",
"0.622524",
"0.62010103",
"0.61457866",
"0.61454076",
"0.6111292",
"0.61010504",
"0.60966474",
"0.6090231",
"0.607322",
"0.604026... | 0.5606419 | 50 |
Return the cosine of x (measured in degrees). Avoid roundoff errors for exact cosine values. | def dzI3(WKvO):
im04 = LQVL.get(WKvO % 360.0)
if im04 is None:
im04 = epAf.cos(epAf.radians(WKvO))
return im04 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YhSR(YKHO, WKvO):\n return YKHO.math.real(1)",
"def avIK(WKvO):\n return epAf.cos(WKvO)",
"def YhSR(WKvO: float) -> float:\n return epAf.cos(WKvO)",
"def w_V3(WKvO):\n return YhSR(WKvO)",
"def tFNH(WKvO):\n return oyIN.cos(WKvO)",
"def YhSR(WKvO):\n if isinstance(WKvO, SG4E):\n ... | [
"0.8521921",
"0.85062903",
"0.84685355",
"0.82974154",
"0.82080466",
"0.80871433",
"0.7990965",
"0.79265976",
"0.79165614",
"0.7907826",
"0.7754251",
"0.7742263",
"0.7730043",
"0.7695352",
"0.76863444",
"0.76776904",
"0.7613268",
"0.76088274",
"0.7607005",
"0.75508046",
"0.75... | 0.8445169 | 3 |
Return the reciprocal lattice to self. | def dwOo(YKHO):
im04 = SYHL(base=XTiz.transpose(YKHO.recbase))
return im04 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RWAe(YKHO):\n try:\n return YKHO._reciprocal_lattice\n except AttributeError:\n Ty9i = [oyIN.cross(YKHO._matrix[(YRbF + 1) % 3], YKHO._matrix[(YRbF + 2) % 3]) for YRbF in range(3)]\n YKHO._reciprocal_lattice = SYHL(oyIN.array(Ty9i) * 2 * oyIN.pi / YKHO.volume)\n return YKHO._r... | [
"0.83375746",
"0.7706315",
"0.74033314",
"0.7139023",
"0.64928406",
"0.6457914",
"0.64086825",
"0.63353723",
"0.63249344",
"0.63109607",
"0.62993556",
"0.62396413",
"0.6186325",
"0.61649156",
"0.61562103",
"0.61238056",
"0.6098954",
"0.6094961",
"0.6079853",
"0.60731775",
"0.... | 0.84026974 | 0 |
Return norm of the specified lattice vector. | def CkYf(YKHO, P6bq):
return epAf.sqrt(XTiz.dot(P6bq, XTiz.dot(YKHO.metrics, P6bq))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(iArr):\n return epAf.sqrt(iArr[0] ** 2 + iArr[1] ** 2)",
"def CkYf(iArr):\n return oyIN.sqrt(oyIN.abs(D8Ke(iArr, iArr)))",
"def OzeR(iArr):\n if len(iArr.shape) == 2:\n assert iArr.shape[1] == 3\n CkYf = oyIN.sqrt(oyIN.sum(oyIN.power(iArr, 2), axis=1))\n elif len(iArr.shape) ... | [
"0.7804328",
"0.77273804",
"0.76598823",
"0.7598987",
"0.7532247",
"0.7514359",
"0.7486988",
"0.748637",
"0.7463556",
"0.7460357",
"0.7458909",
"0.7392968",
"0.73728925",
"0.7363106",
"0.734214",
"0.73339385",
"0.730733",
"0.7291248",
"0.7253168",
"0.7231748",
"0.72206795",
... | 0.0 | -1 |
Open a csv data file and plot the data. Detuning is assumed to be in GHz. Vertical units are assumed to be the same as in the theory curves | def NIvT(YKHO, tvqc):
YKHO.dirname = ''
sWv9 = lnPd.SingleChoiceDialog(YKHO, 'Choose type of data to be imported', 'Data import', choices=di3w)
if sWv9.ShowModal() == lnPd.ID_OK:
Acvy = sWv9.GetSelection()
YKHO.expt_type = di3w[Acvy]
YKHO.choice_index = sC8o[Acvy]
sWv9.Destro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fmuD(BjdU, g87s, LtxU='', NkBi='secs', i4e5='KByte'):\n if rmnB and S5nF:\n ixsc = m6_J.reader(open(BjdU))\n xLxe = float(-HwRy.maxint - 1)\n hMLE = float(-HwRy.maxint - 1)\n xVne = float(HwRy.maxint)\n tmMm = float(HwRy.maxint)\n _19w = []\n for rdlD in ixsc... | [
"0.7192387",
"0.7188905",
"0.6919246",
"0.68813777",
"0.6711665",
"0.6497969",
"0.6445802",
"0.6427223",
"0.63342565",
"0.61643267",
"0.61583155",
"0.61328316",
"0.60835207",
"0.60744244",
"0.60713506",
"0.6069011",
"0.6040824",
"0.6018825",
"0.5989495",
"0.5977039",
"0.59750... | 0.5755395 | 36 |
Get correct operator depending on a symbol (e.g., +, ). | def DrEm(o61b: str) -> YrBT:
OuMq = Maem()
return OuMq[o61b] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F36J(YKHO, o61b):\n for seET in YKHO.operators:\n if seET['symbol'] == o61b:\n return seET\n return None",
"def dyRp(o61b):\n return n69R._PredicateMap.get(o61b, None)",
"def OfrP(YKHO, khtY):\n Maem = {'date_format': YKHO.operator_date_format, 'df': YKHO.operator_date_format,... | [
"0.7581227",
"0.73531294",
"0.73276985",
"0.7249888",
"0.724327",
"0.7110959",
"0.709375",
"0.7082763",
"0.7061203",
"0.7042594",
"0.70369947",
"0.6976777",
"0.6922139",
"0.6921175",
"0.68883854",
"0.68550736",
"0.6844112",
"0.6832143",
"0.6830639",
"0.6828426",
"0.67988855",... | 0.74147564 | 1 |
Performs database connection using database settings from settings.py. Returns sqlalchemy engine instance | def WyYT(mWFP):
p9bx = knaz(mWFP)
p9bx.init(mWFP, timeout=60, pragmas=(('journal_mode', 'wal'), ('page_size', 4096), ('cache_size', -1024 * 64), ('temp_store', 'memory'), ('synchronous', 'off')))
p9bx.connect()
p9bx.create_tables([qJGE, Xi5E])
return p9bx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WyYT():\n return y2U9(rOmR(**GPtr.DATABASE))",
"def WyYT():\n return y2U9(moDH)",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n ... | [
"0.82949996",
"0.8231743",
"0.82308775",
"0.82308775",
"0.82308775",
"0.822625",
"0.82145077",
"0.82145077",
"0.82145077",
"0.8191452",
"0.81755865",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.8081065",
"0.808106... | 0.0 | -1 |
Author's email of the discussion | def ZrpD(YKHO, ZfUD):
return ZfUD.userinfo['email'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN5A(YKHO):\n return YKHO.author_info[1]",
"def lN5A(YKHO):\n return M4XV().owner.email",
"def nk9S(YKHO):\n return YKHO._authorEmail",
"def Ffxj(YKHO):\n return o7DN.wrap(B8xt(YKHO.plugin))",
"def ZrpD(YKHO, YEnM):\n return YEnM.author.email",
"def ZrpD(YKHO, ZfUD):\n return YKHO.i... | [
"0.8544532",
"0.83041203",
"0.8275191",
"0.805221",
"0.79327655",
"0.77705",
"0.7592582",
"0.7495769",
"0.7425281",
"0.72697204",
"0.71378213",
"0.71176594",
"0.7085914",
"0.7035697",
"0.70211804",
"0.7019058",
"0.70124716",
"0.7003746",
"0.69686276",
"0.69544643",
"0.6954464... | 0.77245575 | 6 |
Parses the CLI arguments. | def bqk2(ENBs):
if ENBs is None:
wvEv = j1Jz.ArgumentParser(prog=cwNE, description=xmSp, epilog=vkEI)
else:
wvEv = ENBs.add_parser(str(cwNE).split('.')[-1], help=xmSp)
wvEv.add_argument('-i', '--ip', default=None, help='The client to show.')
wvEv.add_argument('-l', '--list', default=Fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLzU(YKHO):\n pass",
"def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()",
"def dCXb(YKHO):\n if len(YKHO.args) == 1:\n YKHO.arg_0 = YKHO.args[0]\n if len(YKHO.args) == 2:\n YKHO.arg_0 = YKHO.args[0]\n YKHO.arg_1 = YKHO.args[1]\n if len(YKHO.args) == 3:\n Y... | [
"0.79667604",
"0.7878058",
"0.77012175",
"0.7671301",
"0.7655961",
"0.76326466",
"0.76087385",
"0.75974196",
"0.7587049",
"0.75596434",
"0.7544224",
"0.75217867",
"0.7517825",
"0.7492968",
"0.7481165",
"0.7465119",
"0.74564147",
"0.74464124",
"0.7417378",
"0.7417256",
"0.7395... | 0.0 | -1 |
Parses the CLI arguments. | def M1CD(Ltpw=None):
wvEv = bqk2(None)
return wvEv.parse_known_args(Ltpw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLzU(YKHO):\n pass",
"def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()",
"def dCXb(YKHO):\n if len(YKHO.args) == 1:\n YKHO.arg_0 = YKHO.args[0]\n if len(YKHO.args) == 2:\n YKHO.arg_0 = YKHO.args[0]\n YKHO.arg_1 = YKHO.args[1]\n if len(YKHO.args) == 3:\n Y... | [
"0.79667604",
"0.7878058",
"0.77012175",
"0.7671301",
"0.7655961",
"0.76326466",
"0.76087385",
"0.75974196",
"0.7587049",
"0.75596434",
"0.7544224",
"0.75217867",
"0.7517825",
"0.7492968",
"0.7481165",
"0.7465119",
"0.74564147",
"0.74464124",
"0.7417378",
"0.7417256",
"0.7395... | 0.0 | -1 |
Converts '...' str into b'...' bytes. On PY2 they are equivalent. | def i_l1(KCHu):
return KCHu.encode('utf8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_l1(KCHu):\n return KCHu",
"def qCDD(KCHu):\n Fg_i = b''\n for d6pt in range(len(KCHu)):\n Fg_i += bytes([int(KCHu[d6pt], 2)])\n return Fg_i",
"def ZqkC(vIwR: str):\n return vIwR.encode()",
"def hZbC(zZcM: str | bytes | bytearray) -> bytes:\n if isinstance(zZcM, bytes):\n ... | [
"0.7285316",
"0.726516",
"0.7188628",
"0.70946956",
"0.709302",
"0.6968303",
"0.69241273",
"0.6896582",
"0.6878913",
"0.6821672",
"0.67991775",
"0.67991644",
"0.6792511",
"0.67500657",
"0.67463017",
"0.67135626",
"0.67116904",
"0.6702206",
"0.67010766",
"0.66846913",
"0.66750... | 0.6797429 | 12 |
Converts b'...' bytes into str. On PY2 they are equivalent. | def xrD7(Fg_i):
return Fg_i.decode('utf8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrD7(Fg_i):\n return Fg_i",
"def xrD7(Fg_i):\n if not isinstance(Fg_i, (bytes, bytearray)):\n raise TypeError()\n return Fg_i.decode('ascii')",
"def xrD7(Fg_i):\n return Fg_i.decode('utf8').rstrip('\\x00')",
"def m9KM(LaVg):\n return LaVg.decode('utf-8')",
"def FnY6(BWXx):\n tr... | [
"0.76081747",
"0.74590266",
"0.74280435",
"0.6883414",
"0.6834841",
"0.67995757",
"0.6721655",
"0.6721655",
"0.66490674",
"0.66393405",
"0.6619674",
"0.6571738",
"0.6425161",
"0.64189297",
"0.6386283",
"0.6382857",
"0.63772154",
"0.6377071",
"0.6369368",
"0.6344663",
"0.63235... | 0.739251 | 3 |
Converts '...' str into b'...' bytes. On PY2 they are equivalent. | def i_l1(KCHu):
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qCDD(KCHu):\n Fg_i = b''\n for d6pt in range(len(KCHu)):\n Fg_i += bytes([int(KCHu[d6pt], 2)])\n return Fg_i",
"def ZqkC(vIwR: str):\n return vIwR.encode()",
"def hZbC(zZcM: str | bytes | bytearray) -> bytes:\n if isinstance(zZcM, bytes):\n return zZcM\n if isinstance(zZcM, ... | [
"0.726396",
"0.7186119",
"0.7092477",
"0.7091756",
"0.6966844",
"0.69226575",
"0.68939453",
"0.6874483",
"0.6818215",
"0.6799987",
"0.67957026",
"0.6794352",
"0.6789804",
"0.67482865",
"0.67434937",
"0.67136586",
"0.67081934",
"0.6698686",
"0.6698267",
"0.6681261",
"0.6673147... | 0.728253 | 0 |
Converts b'...' bytes into str. On PY2 they are equivalent. | def xrD7(Fg_i):
return Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrD7(Fg_i):\n if not isinstance(Fg_i, (bytes, bytearray)):\n raise TypeError()\n return Fg_i.decode('ascii')",
"def xrD7(Fg_i):\n return Fg_i.decode('utf8').rstrip('\\x00')",
"def xrD7(Fg_i):\n return Fg_i.decode('utf8')",
"def m9KM(LaVg):\n return LaVg.decode('utf-8')",
"def FnY6... | [
"0.745605",
"0.7426063",
"0.7390069",
"0.6880643",
"0.6832737",
"0.67990315",
"0.6718436",
"0.6718436",
"0.6646737",
"0.66384983",
"0.6615119",
"0.6568846",
"0.64227813",
"0.641738",
"0.6383574",
"0.63802135",
"0.63762975",
"0.63737154",
"0.6366187",
"0.6345471",
"0.6320312",... | 0.76056004 | 0 |
A method to get the total/trainable parameter count from the model | def VgCS(C3ST: torch.nn.Module) -> AzJI[int, int]:
b8wy = sum((XP5J.numel() for XP5J in C3ST.parameters()))
rMKf = sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad))
return (b8wy, rMKf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameters()]).item()",
"def VgCS(C3ST):\n i5MP = sum((XP5J.numel() for XP5J in C3ST.parameters()))\n wbg2 = sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad))\n print('Parameter Count: all {:,d}; trainable {:,d}'.f... | [
"0.84306383",
"0.8410051",
"0.83910805",
"0.83645433",
"0.83645433",
"0.83455974",
"0.8323322",
"0.82988673",
"0.8208973",
"0.82068026",
"0.81757265",
"0.8158175",
"0.79672295",
"0.79212403",
"0.7896218",
"0.78480935",
"0.78479475",
"0.78415936",
"0.7811773",
"0.77909505",
"0... | 0.7836742 | 18 |
make sure the header is valid | def TZ5Y(Emd4, nPrm: PMSData) -> bool:
return nPrm.header_high == Emd4.HEADER_HIGH and nPrm.header_low == Emd4.HEADER_LOW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO, WBPg):\n return True",
"def Vwsn(YKHO):\n owgc = len(YKHO._VALID_HEADER)\n with open(YKHO.filename, 'rb') as eHNT:\n nPrm = eHNT.read(owgc).decode('utf-8')\n if not (len(nPrm) == owgc and nPrm == YKHO._VALID_HEADER):\n raise uEiH('Invalid header')",
"def _bzo(YKHO):\n ... | [
"0.82125175",
"0.7959184",
"0.7442992",
"0.7379234",
"0.71426946",
"0.71100056",
"0.70849144",
"0.7042918",
"0.7034682",
"0.7030895",
"0.69205165",
"0.68976796",
"0.68726027",
"0.68706137",
"0.68511087",
"0.6849349",
"0.6832789",
"0.6831083",
"0.6777196",
"0.67719805",
"0.675... | 0.62670827 | 65 |
Return Jaro_Winkler distance of two strings (between 0.0 and 1.0) Used as a measure of similarity between two strings | def FJhJ(Y0Fj, Pb4f):
EgVS = chr(1)
if Y0Fj == Pb4f:
return 1.0
if Y0Fj == None:
return 0
if Pb4f == None:
return 0
SGl7 = len(Y0Fj)
sHY4 = len(Pb4f)
caKi = max(SGl7, sHY4) / 2 - 1
EM92 = ''
zd_4 = ''
wFj1 = Y0Fj
hKTt = Pb4f
xZVW = 0
O9pk = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qaEU(xA4e, mhhC, SGPK={}):\n XP5J = SGPK['p'] if 'p' in SGPK else 0.1\n Brau = SGPK['max_prefix'] if 'max_prefix' in SGPK else 4\n legC = h_I6(xA4e, mhhC, SGPK)\n vC9B = 0\n for YRbF in range(0, min(len(xA4e), len(mhhC), Brau)):\n if xA4e[YRbF] == mhhC[YRbF]:\n vC9B += 1\n ... | [
"0.7921569",
"0.7815557",
"0.7683593",
"0.75969034",
"0.75549006",
"0.754011",
"0.7502671",
"0.74290997",
"0.74290997",
"0.7426353",
"0.73975295",
"0.7396088",
"0.7365048",
"0.7351781",
"0.7317786",
"0.7228663",
"0.7227037",
"0.71990603",
"0.71908057",
"0.7170248",
"0.7125594... | 0.69210005 | 38 |
Rescale a pandas Series from min to max | def Lwtl(YAgj, min=0, max=1, Y5YY='Robust'):
if Y5YY == 'Simple':
return YAgj / max | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())",
"def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())",
"def pPhg(k93m, h_4H, SkJr):\n return (k93m - float(h_4H)) / (float(SkJr) - float(h_4H))",
"def hUUv(BWXx, Jq4w, zBsq, G8J6, sIcj):\n return (sIcj... | [
"0.71164197",
"0.71164197",
"0.70959216",
"0.70226383",
"0.6951477",
"0.6857502",
"0.6799432",
"0.67492396",
"0.6718022",
"0.6631759",
"0.6631675",
"0.66286665",
"0.660223",
"0.6560278",
"0.65294766",
"0.6499438",
"0.6444855",
"0.6394074",
"0.63893604",
"0.6384293",
"0.637214... | 0.70161253 | 4 |
Check if list is list or a CSV string. In case of string, create a list. | def D6Qu(YKHO, MVVZ):
if MVVZ == None:
return []
import types
ArHY = isinstance(MVVZ, types.StringTypes)
S7ID = isinstance(MVVZ, list)
assert ArHY or S7ID, 'You should provide a list of files as list or as CVS string!'
if S7ID:
return MVVZ
if ArHY:
import re
T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYDj(QYgA):\n if not isinstance(QYgA, list):\n return [QYgA]\n return QYgA",
"def ueno(_Z1k):\n if isinstance(_Z1k, str):\n return [NTfD.utils.stringutils.to_unicode(_Z1k)]\n elif not isinstance(_Z1k, list):\n raise TypeError\n return NTfD.utils.data.decode_list(_Z1k)",
... | [
"0.7449216",
"0.74257994",
"0.70691574",
"0.69129306",
"0.6899878",
"0.68398494",
"0.67702895",
"0.6765373",
"0.6765373",
"0.67594063",
"0.6728036",
"0.6635351",
"0.6610991",
"0.6606605",
"0.6585961",
"0.6571953",
"0.6534687",
"0.65337",
"0.6457179",
"0.6455263",
"0.64258164"... | 0.0 | -1 |
Get one item from cfg dictionary. If the item is nested, then use "." to set the path to the item. Check the implementation in XmlDictConverter.py | def ZfUD(YKHO, zDRZ):
YKHO.log.info('Not implemented yet... Sorry!')
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rF6r(YKHO, Ljs9):\n _fQV = Ljs9.split('.')\n if len(_fQV) == 1:\n A_FX = _fQV[0]\n if A_FX.startswith('item'):\n return YKHO[_fQV[0]]\n else:\n return YKHO[A_FX]\n elif len(_fQV) == 2 and _fQV[1].startswith('item'):\n return YKHO[_fQV[0]][int(_fQV[1].r... | [
"0.6865817",
"0.66669554",
"0.6546612",
"0.632227",
"0.6314806",
"0.6274282",
"0.62389284",
"0.6184445",
"0.6162143",
"0.60491323",
"0.6038993",
"0.6033831",
"0.5989492",
"0.59637636",
"0.5914151",
"0.5882166",
"0.585573",
"0.57853496",
"0.5784906",
"0.5779151",
"0.57769096",... | 0.0 | -1 |
Set up a test user. | def fDuS(YKHO):
YKHO.setup_test_tenant()
YKHO.test_user = Nhuv.rand_name('test_user_')
YKHO.test_password = Nhuv.rand_name('pass_')
YKHO.test_email = YKHO.test_user + '@testmail.tm'
_hkX, YKHO.user = YKHO.client.create_user(YKHO.test_user, YKHO.test_password, YKHO.tenant['id'], YKHO.test_email)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n mv1M.objects.create_user('testington', 'alpha@' + ubAE, 'alphabeta')",
"def FCbF(YKHO):\n YKHO.new_user = mv1M('Rose', 'Kairu')",
"def FCbF(YKHO):\n mv1M = egNl()\n CBIr = mv1M.objects.create_user('league of legend', email='riotCompany@gmail.com', password='TheBestGameMobaEver')\n... | [
"0.81731683",
"0.8024462",
"0.7988988",
"0.79627585",
"0.79431903",
"0.7939061",
"0.79286194",
"0.7906619",
"0.78751504",
"0.7870332",
"0.7870332",
"0.7870332",
"0.7845381",
"0.78410536",
"0.7832546",
"0.78090996",
"0.77889085",
"0.77754647",
"0.7768661",
"0.7745967",
"0.7740... | 0.8367419 | 0 |
Set up a test tenant. | def B_HF(YKHO):
YKHO.test_tenant = Nhuv.rand_name('test_tenant_')
YKHO.test_description = Nhuv.rand_name('desc_')
_hkX, YKHO.tenant = YKHO.client.create_tenant(name=YKHO.test_tenant, description=YKHO.test_description)
YKHO.tenants.append(YKHO.tenant) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wufs(YKHO):\n ImZo = bQ8Z.context.AdminContext.tenant.return_value\n Ylbp = YKHO.runner.invoke(YKHO.alloc_cli, ['configure', 'test', '-s', '123'])\n YKHO.assertEqual(Ylbp.exit_code, 0)\n ImZo.get.assert_called_once_with('test')\n ImZo.create.assert_called_once_with('test', {'systems': ['123']})"... | [
"0.76638645",
"0.75227666",
"0.73321015",
"0.7049873",
"0.7041241",
"0.69089645",
"0.6855402",
"0.6719304",
"0.66441756",
"0.66232747",
"0.66232747",
"0.6526548",
"0.64843184",
"0.6471933",
"0.6341845",
"0.63387394",
"0.63190144",
"0.6318433",
"0.6316011",
"0.63154685",
"0.63... | 0.85010636 | 0 |
Set up a test v3 user. | def NTcr(YKHO):
YKHO.setup_test_project()
YKHO.test_user = Nhuv.rand_name('test_user_')
YKHO.test_password = Nhuv.rand_name('pass_')
YKHO.test_email = YKHO.test_user + '@testmail.tm'
_hkX, YKHO.v3_user = YKHO.client.create_user(YKHO.test_user, password=YKHO.test_password, project_id=YKHO.project['id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDuS(YKHO):\n YKHO.setup_test_tenant()\n YKHO.test_user = Nhuv.rand_name('test_user_')\n YKHO.test_password = Nhuv.rand_name('pass_')\n YKHO.test_email = YKHO.test_user + '@testmail.tm'\n _hkX, YKHO.user = YKHO.client.create_user(YKHO.test_user, YKHO.test_password, YKHO.tenant['id'], YKHO.test_e... | [
"0.77179176",
"0.7559705",
"0.75497025",
"0.75360346",
"0.75166833",
"0.74391145",
"0.7434014",
"0.73601866",
"0.7337608",
"0.7335005",
"0.73338205",
"0.7298357",
"0.7288128",
"0.72833675",
"0.7272567",
"0.7265289",
"0.7245417",
"0.72433716",
"0.7220451",
"0.7218138",
"0.7180... | 0.8705107 | 0 |
Perform list action with given params and validates result. | def ina4(YKHO, NArs):
_hkX, fFEs = YKHO.client.image_list(params=NArs)
YKHO.assertEqual(200, _hkX.status)
for LNo8 in fFEs:
for H5ew in NArs:
tO9_ = 'Failed to list images by %s' % H5ew
YKHO.assertEqual(NArs[H5ew], LNo8[H5ew], tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO, NArs, e5kH, **B2fa):\n raise NotImplementedError('list method not implemented')",
"def P74o(YKHO, QePW, **B2fa):\n return YKHO.dispatch('list', QePW, **B2fa)",
"def YKs8(YKHO, qIxc):\n YKHO.core.list()",
"def YKs8(YKHO, qIxc):\n taqg = gnPz.split_with_quotes(qIxc)\n BuBU.ListCom... | [
"0.7463792",
"0.7118622",
"0.6964207",
"0.68194884",
"0.67980593",
"0.67980593",
"0.67980593",
"0.66932255",
"0.66263133",
"0.65196127",
"0.65196127",
"0.65196127",
"0.65196127",
"0.65196127",
"0.6511674",
"0.6472295",
"0.64137214",
"0.63299763",
"0.63152146",
"0.6312543",
"0... | 0.0 | -1 |
Returns an instance of the Identity Admin API client. | def ECqT(Emd4):
p_z1 = Onn9.AdminManager(interface=Emd4._interface)
VyuW = p_z1.identity_client
return VyuW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECqT(Emd4):\n Hy7s = Onn9.AdminManager(interface=Emd4._interface, service=Emd4._service)\n VyuW = Hy7s.identity_client\n return VyuW",
"def Cqx0(YKHO):\n Drhh = dp9S.AdminClient(YKHO.__config)\n return Drhh",
"def x0hE(YKHO):\n assert YKHO.api, 'Must set API first'\n if not YKHO._clien... | [
"0.8416061",
"0.6934988",
"0.6627002",
"0.65831304",
"0.6560404",
"0.6560404",
"0.64983517",
"0.6460248",
"0.64350927",
"0.6378059",
"0.6299471",
"0.62692654",
"0.61804247",
"0.61641973",
"0.61385506",
"0.61241883",
"0.6105136",
"0.6086761",
"0.6063871",
"0.6054075",
"0.60408... | 0.8372618 | 1 |
Verifies created router interface. | def xT7s(YKHO):
OZUW = YKHO.test_resources.get('Network')['physical_resource_id']
pyfM = YKHO.test_resources.get('Subnet')['physical_resource_id']
_hkX, TBsA = YKHO.network_client.list_ports()
YKHO.assertEqual('200', _hkX['status'])
Fb8A = TBsA['ports']
WKQu = filter(lambda bIwZ: bIwZ['device_id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmEp(YKHO):\n super(YKHO.__class__, YKHO).check_virtual_router()",
"def QIkf():\n eVVj = X1CD()\n dFZ1 = hPmM(eVVj, 'router-name')",
"def jzjK(YKHO, YEnM):\n mOSf = YEnM.os_data_struct.get_resource('routertag1').user_data\n uD2j = YEnM.os_data_struct.get_resource(mOSf['name']).os_data\n m... | [
"0.63730544",
"0.6139001",
"0.61341316",
"0.60614496",
"0.6028794",
"0.60283387",
"0.60118127",
"0.5988046",
"0.5988046",
"0.590015",
"0.5817759",
"0.5811773",
"0.5732964",
"0.5731638",
"0.572886",
"0.572886",
"0.57265097",
"0.572369",
"0.5720409",
"0.5720409",
"0.56797814",
... | 0.69869256 | 0 |
Waits for a resource to be deleted. | def D3_g(YKHO, id):
SWox = int(ITS7.time())
while True:
if YKHO.is_resource_deleted(id):
return
if int(ITS7.time()) - SWox >= YKHO.build_timeout:
raise Bx6I.TimeoutException
ITS7.sleep(YKHO.build_interval) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3_g(YKHO, Qjbs, id, x0hE=None):\n SWox = int(ITS7.time())\n while True:\n if YKHO.is_resource_deleted(Qjbs, id, client=x0hE):\n return\n if int(ITS7.time()) - SWox >= YKHO.build_timeout:\n raise Bx6I.TimeoutException\n ITS7.sleep(YKHO.build_interval)",
"def N... | [
"0.7594494",
"0.75864565",
"0.7485733",
"0.71147",
"0.71147",
"0.7037814",
"0.67397743",
"0.64408714",
"0.6332173",
"0.63159305",
"0.62591535",
"0.6212883",
"0.6148694",
"0.6147222",
"0.60338056",
"0.6031855",
"0.60042197",
"0.59531784",
"0.5938866",
"0.5938866",
"0.5927877",... | 0.7310066 | 3 |
Returns lazy logger. Creates a passthrough logger that does not create the real logger until it is really needed and delegates all calls to the real logger once it is created. | def g6Is(mWFP='unknown', DpZH='unknown'):
return mgoA(mWFP, DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE(mWFP=None):\n\n class LazyLogger:\n\n def FIMM(YKHO, mWFP=None):\n YKHO.__name = mWFP or yZqf()\n YKHO.__real_logger = None\n\n @property\n def VRxn(YKHO):\n if YKHO.__real_logger is None:\n if not jiCv:\n raise Exc... | [
"0.69422686",
"0.6565182",
"0.6457486",
"0.6370197",
"0.6323144",
"0.628895",
"0.62280273",
"0.61854064",
"0.6170949",
"0.61668235",
"0.61301273",
"0.60866594",
"0.60753727",
"0.60403496",
"0.60362464",
"0.6013434",
"0.60098875",
"0.6009438",
"0.60055286",
"0.59882456",
"0.59... | 0.71517116 | 0 |