query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Gets the action of this Lifecycle. The action to perform. Currently only delete is supported | def XeOP(YKHO):
return YKHO._action | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMEM(YKHO):\n return YKHO.__action",
"def AMEM(YKHO):\n return YKHO.current_action",
"def XeOP(YKHO):\n return YKHO._get_field('action')",
"def XeOP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action')",
"def XeOP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action')",
"def XeOP(YKHO)... | [
"0.7956197",
"0.7459488",
"0.7432588",
"0.7238182",
"0.7238182",
"0.7238182",
"0.7208887",
"0.71846193",
"0.71716344",
"0.71587044",
"0.7045301",
"0.70392245",
"0.6941939",
"0.6926468",
"0.68683374",
"0.6690194",
"0.6672939",
"0.6605948",
"0.65702957",
"0.64770836",
"0.645596... | 0.7538712 | 5 |
Sets the action of this Lifecycle. The action to perform. Currently only delete is supported | def XeOP(YKHO, XeOP):
BbPm = ['DELETE', 'NONE']
if XeOP not in BbPm:
raise ValueError('Invalid value for `action` ({0}), must be one of {1}'.format(XeOP, BbPm))
YKHO._action = XeOP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ddsp(YKHO, XeOP):\n YKHO._action = XeOP\n return YKHO",
"def FGnS(YKHO, XeOP):\n YKHO.action = XeOP\n return YKHO",
"def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP",
"def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP",
"def Ddsp(YKHO, XeOP):\n YKHO.__action = XeOP",
"def XeOP(YKHO, XeOP):\n... | [
"0.798209",
"0.7937381",
"0.78521293",
"0.78521293",
"0.77787465",
"0.7659929",
"0.7434554",
"0.7401559",
"0.73724025",
"0.7369807",
"0.72310543",
"0.72310543",
"0.72310543",
"0.72310543",
"0.72310543",
"0.72310543",
"0.70674974",
"0.699461",
"0.6960725",
"0.6901665",
"0.6726... | 0.7996904 | 0 |
Gets the type of this Lifecycle. Determine when to delete the job and associated files. RETRIEVAL means delete directly after retrieving the PDF file. When the file has not been retrieved before the action time, it will be deleted regardless. Time means, delete on specific time, regardless of whether it has been proces... | def type(YKHO):
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1XJ(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('ExpireType')\n return YKHO._ExpireType",
"def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')",
"def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')",
"def F0B_(YKHO) -> str:\n return qe4Y.get(YKHO, 'deleted_time... | [
"0.5974232",
"0.54896796",
"0.54896796",
"0.51819205",
"0.5125803",
"0.49722493",
"0.4905789",
"0.4882752",
"0.47758582",
"0.47730514",
"0.47563097",
"0.4699075",
"0.46979105",
"0.4691771",
"0.4682157",
"0.4674297",
"0.4623792",
"0.46149534",
"0.46005246",
"0.4593693",
"0.458... | 0.4375041 | 85 |
Sets the type of this Lifecycle. Determine when to delete the job and associated files. RETRIEVAL means delete directly after retrieving the PDF file. When the file has not been retrieved before the action time, it will be deleted regardless. Time means, delete on specific time, regardless of whether it has been proces... | def type(YKHO, type):
BbPm = ['RETRIEVAL', 'TIME']
if type not in BbPm:
raise ValueError('Invalid value for `type` ({0}), must be one of {1}'.format(type, BbPm))
YKHO._type = type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, WbTE: pulumi.Input[str], vcaS: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'duration', WbTE)\n qe4Y.set(Ro_8, 'object_type', 'AbsoluteDeleteOption')",
"def M1XJ(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('ExpireType')\n return YKHO._ExpireType",
"def FIMM(Ro_8, *, WbTE: str, vca... | [
"0.55426234",
"0.54422",
"0.54303664",
"0.5243352",
"0.5130753",
"0.51242626",
"0.49633163",
"0.49580863",
"0.4862699",
"0.4837523",
"0.48264766",
"0.47609124",
"0.47609124",
"0.47589472",
"0.47226307",
"0.4716207",
"0.4709835",
"0.46772438",
"0.46732327",
"0.46732327",
"0.46... | 0.5637675 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 45 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
initialize a player and associated symbol. | def FIMM(YKHO, o61b: int, tspZ: float=0.2, CGbp: float=0.4, tzvm: float=0.1) -> None:
YKHO.symbol = o61b
YKHO.lr = tspZ
YKHO.exp_rate = CGbp
YKHO.discount_factor = tzvm
YKHO.states: cuzp[str, float] = {}
YKHO.moves_taken: x1iM[str] = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, u46J):\n YKHO._player_name = u46J\n YKHO._hand = QHsX()\n YKHO._coder = QHsX()",
"def FIMM(YKHO, oyg0):\n YKHO.player = oyg0",
"def FIMM(YKHO, o61b, rdlD, fvDH, oyg0, VAWV):\n YKHO.symbol = o61b\n YKHO.row = rdlD\n YKHO.col = fvDH\n YKHO.alive = True\n YKHO.player = oy... | [
"0.7044783",
"0.6994902",
"0.6952127",
"0.6900736",
"0.69004774",
"0.68714845",
"0.6831614",
"0.67411584",
"0.6740048",
"0.67184275",
"0.66184455",
"0.65796345",
"0.6571856",
"0.65473825",
"0.6523081",
"0.64922744",
"0.6482463",
"0.647235",
"0.6465849",
"0.6444604",
"0.643477... | 0.0 | -1 |
add move to front of the list. | def K4WL(YKHO, L0av: str) -> None:
YKHO.moves_taken.insert(0, L0av) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def LYLL(YKHO, ZfUD, DZsB):\n ycBG = aApz(ZfUD, DZsB)\n ycBG.setPrevious(YKHO._front)\n if YKHO._size == 0:\n YKHO._rear = ycBG\n else:\n YKHO._front.setNext(ycBG)\n YKHO._front = ycBG\n YKHO._size += 1",
"def Q1MB(YKHO, Q... | [
"0.74281985",
"0.7051179",
"0.6917639",
"0.68836725",
"0.6876215",
"0.6802277",
"0.67820287",
"0.67804265",
"0.672873",
"0.66930217",
"0.66753036",
"0.66617584",
"0.6631564",
"0.6548123",
"0.63872343",
"0.6376272",
"0.6376272",
"0.62471837",
"0.6227319",
"0.6203899",
"0.61776... | 0.0 | -1 |
Insert prefix into current tree. | def b4Hq(YKHO, y0cW, or8S):
Ywl8 = YKHO.path_to_matching_prefix(y0cW)[-1]
jQ_P = False
for fMuf in YKHO.children(Ywl8):
if fMuf.element()._label[0] == y0cW[0]:
r845 = 0
while r845 < len(fMuf.element()._label) and fMuf.element()._label[r845] == y0cW[r845]:
r845... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, y0cW: str):\n kjp6 = YKHO.root\n for ABDL in range(len(y0cW)):\n sZqf = y0cW[ABDL]\n if sZqf not in kjp6.children:\n kjp6.children[sZqf] = YKHO.get_node()\n kjp6 = kjp6.children[sZqf]\n kjp6.word_count += 1",
"def JPHp(YKHO, GIN8, Q6kx=None):\n if not GI... | [
"0.824454",
"0.6702643",
"0.6659329",
"0.65441847",
"0.65267813",
"0.6520331",
"0.64193934",
"0.6335701",
"0.6227362",
"0.6089401",
"0.6089401",
"0.60877794",
"0.60377556",
"0.6022887",
"0.6006063",
"0.59953064",
"0.5995097",
"0.59828734",
"0.5922838",
"0.59098965",
"0.590850... | 0.5517972 | 76 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) by default, between the center of the earh and anypoint | def GeVo(XcGg, AppW={'lat': 0, 'long': 0}) -> int:
if type(XcGg) == dict:
[igSk, GgQG] = [XcGg['lat'], XcGg['long']]
elif type(XcGg) == str:
[igSk, GgQG] = XcGg.split(',')
elif type(XcGg) == list:
[igSk, GgQG] = XcGg
if type(AppW) == dict:
[TGuP, tk0B] = [AppW['lat'], App... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def KzuF(jzdc: ... | [
"0.76905084",
"0.72814983",
"0.7257619",
"0.7141139",
"0.71320075",
"0.6970445",
"0.69449705",
"0.6929295",
"0.6892779",
"0.6889518",
"0.68526417",
"0.68168545",
"0.6815274",
"0.68049467",
"0.67489856",
"0.6743163",
"0.67333126",
"0.6712626",
"0.66993904",
"0.66911364",
"0.66... | 0.0 | -1 |
Creates a new catalog based on information provided in the request. | def SVOg(YKHO, pRds, **B2fa):
hTqE = 'create_catalog_v0'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'create_catalog_request' not in NArs or NArs['create_catalog_request'] is None:
raise ValueError('Missing the required pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtW_(YKHO, qIxc):\n try:\n if qIxc.id and YKHO.server.connect_ermrest(qIxc.id).exists():\n print('Catalog already exists')\n return\n qsJ6 = qIxc.owner if qIxc.owner else None\n Piln = YKHO.server.create_ermrest_catalog(qIxc.id, qsJ6)\n if qIxc.auto_configur... | [
"0.7075962",
"0.66169626",
"0.65908253",
"0.6559741",
"0.6491398",
"0.6491398",
"0.6491398",
"0.6474749",
"0.64458245",
"0.63912857",
"0.6327027",
"0.6295636",
"0.624926",
"0.61907876",
"0.6131978",
"0.61135054",
"0.60304767",
"0.60023105",
"0.60003024",
"0.5982443",
"0.59681... | 0.6687406 | 1 |
Lists all the subscriptions for a vendor/subscriber depending on the query parameter. | def PKAE(YKHO, vlVh, **B2fa):
hTqE = 'list_subscriptions_for_development_events_v0'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'vendor_id' not in NArs or NArs['vendor_id'] is None:
raise ValueError('Missing the required p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XU4s(YKHO):\n return YKHO.request('getAllSubscriptions')",
"def U5uh(Emd4, **B2fa):\n return oZou.query.filter(**B2fa).all()",
"def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()",
"def list(Emd4, **B2fa):\n... | [
"0.68718314",
"0.64479876",
"0.63930523",
"0.6370241",
"0.6262095",
"0.6189397",
"0.61583257",
"0.61445445",
"0.6092694",
"0.60551304",
"0.6022969",
"0.59707063",
"0.5958804",
"0.59293044",
"0.5877195",
"0.5875781",
"0.58724755",
"0.5828251",
"0.5802563",
"0.57452756",
"0.574... | 0.6165321 | 6 |
Get the list of inskill products for the vendor. | def budI(YKHO, vlVh, **B2fa):
hTqE = 'get_isp_list_for_vendor_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'vendor_id' not in NArs or NArs['vendor_id'] is None:
raise ValueError('Missing the required parameter `vendor_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQsB(YKHO):\n bD7m = YKHO.base_url\n iN3H = YKHO.connection.make_get(bD7m)\n return ywEt(iN3H, YKHO)",
"def Ldyl(YKHO):\n return list(msfn.select())",
"def CxaC(YKHO):\n return [ZfUD.code for ZfUD in YKHO._products]",
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products... | [
"0.6733137",
"0.6547819",
"0.65187454",
"0.648127",
"0.63539016",
"0.6321409",
"0.6284851",
"0.62413895",
"0.62055516",
"0.61503416",
"0.6140966",
"0.61330837",
"0.6085362",
"0.6000095",
"0.5997312",
"0.59685934",
"0.5965533",
"0.592143",
"0.5869935",
"0.58443815",
"0.5842674... | 0.66241527 | 1 |
Resets the entitlement(s) of the Product for the current user. | def xLWd(YKHO, Mc9N, EtM5, **B2fa):
hTqE = 'reset_entitlement_for_product_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'product_id' not in NArs or NArs['product_id'] is None:
raise ValueError('Missing the required param... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def seuz(YKHO):\n if YKHO.resin.auth.is_logged_in():\n YKHO.wipe_application()\n YKHO.resin.models.key.base_request.request('user__has__public_key', 'DELETE', endpoint=YKHO.resin.settings.get('pine_endpoint'), login=True)",
"def wd1E(YKHO):\n YKHO.product_displays.clear()",
"def Ldyl(YKHO, ... | [
"0.56585646",
"0.54697764",
"0.52775943",
"0.52775943",
"0.51205343",
"0.5110504",
"0.5110504",
"0.5086956",
"0.5080355",
"0.5080355",
"0.5065258",
"0.5040448",
"0.5031072",
"0.5013237",
"0.49968353",
"0.49950162",
"0.4991405",
"0.49880537",
"0.49675336",
"0.49537265",
"0.491... | 0.60211426 | 0 |
Returns the inskill product definition for given productId. | def Nc64(YKHO, Mc9N, EtM5, **B2fa):
hTqE = 'get_isp_definition_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'product_id' not in NArs or NArs['product_id'] is None:
raise ValueError('Missing the required parameter `produ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drGQ(aFoZ):\n return 'do some magic!'",
"def vN04(YKHO, Mc9N):\n if not isinstance(Mc9N, int):\n raise TypeError('Product ID should be integer')\n for OuoM in YKHO.db:\n for Aha8 in YKHO.db[OuoM]:\n if Mc9N == Aha8:\n return YKHO.db[OuoM][Mc9N]\n raise oGrW... | [
"0.6464672",
"0.612124",
"0.605774",
"0.6039397",
"0.5857793",
"0.58464456",
"0.5832984",
"0.57331824",
"0.5726266",
"0.5706458",
"0.56913775",
"0.56698745",
"0.56065446",
"0.55776674",
"0.55651134",
"0.5551204",
"0.5525478",
"0.5506871",
"0.55012226",
"0.54999846",
"0.546534... | 0.6508556 | 0 |
Updates inskill product definition for given productId. Only development stage supported. | def NgWo(YKHO, Mc9N, EtM5, k1ZL, **B2fa):
hTqE = 'update_isp_for_product_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'product_id' not in NArs or NArs['product_id'] is None:
raise ValueError('Missing the required parame... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ooaF(aFoZ, mWFP=None, jGRS=None):\n return 'do some magic!'",
"def VcNE(YKHO, Mc9N, vm6n, **B2fa):\n hTqE = 'associate_isp_with_skill_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'product_id' not in NArs or NA... | [
"0.61609936",
"0.61382127",
"0.6079622",
"0.6055985",
"0.6021867",
"0.5917009",
"0.5853831",
"0.578811",
"0.5721086",
"0.5692899",
"0.56461924",
"0.5592242",
"0.5513153",
"0.54926187",
"0.54778296",
"0.54778296",
"0.547739",
"0.54153234",
"0.5413967",
"0.539913",
"0.5369796",... | 0.7032969 | 0 |
Create a new version of catalog entity for the given catalogId. | def T4ZI(YKHO, bbYd, Piln, **B2fa):
hTqE = 'create_interaction_model_catalog_version_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'catalog_id' not in NArs or NArs['catalog_id'] is None:
raise ValueError('Missing the req... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oKHv(YKHO, GrQd, *qIxc, **B2fa):\n if GrQd.is_for_update():\n return YKHO.update_catalog(GrQd, *qIxc, **B2fa)\n else:\n return YKHO.create_catalog(GrQd, *qIxc, **B2fa)",
"def NtW_(YKHO, qIxc):\n try:\n if qIxc.id and YKHO.server.connect_ermrest(qIxc.id).exists():\n pr... | [
"0.63733524",
"0.60968757",
"0.59381574",
"0.5849364",
"0.5631473",
"0.56290007",
"0.5573641",
"0.541416",
"0.5320255",
"0.5284916",
"0.51846284",
"0.5158538",
"0.5151632",
"0.5151632",
"0.5151632",
"0.5143142",
"0.50983435",
"0.5016219",
"0.5011444",
"0.48950619",
"0.4868419... | 0.64581627 | 0 |
Create a new version of catalog within the given catalogId. | def Oyt4(YKHO, Piln, **B2fa):
hTqE = 'create_interaction_model_catalog_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'catalog' not in NArs or NArs['catalog'] is None:
raise ValueError('Missing the required parameter `cat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4ZI(YKHO, bbYd, Piln, **B2fa):\n hTqE = 'create_interaction_model_catalog_version_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'catalog_id' not in NArs or NArs['catalog_id'] is None:\n raise ValueError('Mis... | [
"0.67172396",
"0.66241366",
"0.6411221",
"0.61139303",
"0.60931635",
"0.60772866",
"0.59919316",
"0.58426154",
"0.56691957",
"0.5585019",
"0.55460954",
"0.54605365",
"0.54605365",
"0.54605365",
"0.5314542",
"0.5303763",
"0.5287909",
"0.52464443",
"0.52163446",
"0.5205255",
"0... | 0.5686495 | 8 |
Get the job definition for a given jobId. | def kbJM(YKHO, rjee, **B2fa):
hTqE = 'get_job_definition_for_interaction_model_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'job_id' not in NArs or NArs['job_id'] is None:
raise ValueError('Missing the required paramete... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KjtO(DOs2, u0gG):\n SYSq = NCls.getJobs(jobId=u0gG)\n oCfW = None if len(SYSq) == 0 else SYSq[0]\n kctW = qAYJ.getJob(int(u0gG))\n if oCfW == None:\n return ZN_n('Job ID, %s, does not exist' % u0gG, 404)\n yP8g = dict(oCfW, url=qAYJ.getSandboxURL(u0gG))\n if kctW != None:\n yP8g... | [
"0.6733971",
"0.66941005",
"0.6649771",
"0.6326726",
"0.6157881",
"0.61231804",
"0.6093605",
"0.603794",
"0.599705",
"0.5994838",
"0.5956366",
"0.5933748",
"0.5930244",
"0.59101045",
"0.58962494",
"0.583849",
"0.5829483",
"0.5825037",
"0.58040255",
"0.5797566",
"0.57620466",
... | 0.61414254 | 5 |
Get the client credentials for the skill. | def DXu0(YKHO, vm6n, **B2fa):
hTqE = 'get_skill_credentials_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill_id` wh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNQQ():\n VUF1 = kF3y(LmW1)\n Vt89 = VUF1.get()\n if not Vt89 or Vt89.invalid:\n _uqo = x0hE.flow_from_clientsecrets(Mu1u, nUMN)\n _uqo.user_agent = rWGQ\n Vt89 = bWeC.run_flow(_uqo, VUF1, None)\n return Vt89",
"def TNQQ():\n VUF1 = kF3y(sH2c)\n Vt89 = VUF1.get()\n i... | [
"0.71183974",
"0.7040505",
"0.6986467",
"0.6819112",
"0.6801401",
"0.6746724",
"0.6698499",
"0.66541725",
"0.6647859",
"0.66109496",
"0.66101664",
"0.65356505",
"0.65211594",
"0.6521077",
"0.6515439",
"0.65115696",
"0.650605",
"0.6496887",
"0.6481387",
"0.6481387",
"0.6475491... | 0.640914 | 29 |
Retrieves the current state of the experiment. | def HDMW(YKHO, vm6n, Z2dz, **B2fa):
hTqE = 'get_experiment_state_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.env.sim.get_state()",
"def ja6o(YKHO):\n return YKHO.currentObservation",
"def ja6o(YKHO):\n return YKHO._env.get_state()",
"def ja6o(YKHO):\n return YKHO.controller.get_state()",
"def c0mt(YKHO):\n return YKHO.world.get_state()",
"def ja6o(YKHO):\n pass",
... | [
"0.7910478",
"0.7819327",
"0.7671146",
"0.7528611",
"0.7400455",
"0.73742145",
"0.73703474",
"0.73513436",
"0.73513436",
"0.7308571",
"0.7299559",
"0.72972345",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986",
"0.7290986"... | 0.0 | -1 |
The Intent Request History API provides customers with the aggregated and anonymized transcription of user speech data and intent request details for their skills. | def IJ_K(YKHO, vm6n, EtM5, **B2fa):
hTqE = 'get_utterance_data_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill_id`... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(QePW, cuiw):\n q8Qy = QePW['intent']['name']\n if q8Qy == 'AMAZON.HelpIntent':\n return OnM0()\n elif q8Qy == 'AMAZON.StopIntent':\n return FP_l()\n elif q8Qy == 'AMAZON.CancelIntent':\n return FP_l()\n elif q8Qy == 'AMAZON.FallbackIntent':\n return AEUP()\n e... | [
"0.5975745",
"0.59443635",
"0.59332824",
"0.5906917",
"0.5881811",
"0.585539",
"0.5846313",
"0.57516015",
"0.57354033",
"0.57280463",
"0.5706581",
"0.5704124",
"0.5685997",
"0.56387645",
"0.56266946",
"0.5604843",
"0.5600372",
"0.5581917",
"0.55706596",
"0.5558074",
"0.553673... | 0.52278984 | 42 |
This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an err... | def Pf5A(YKHO, vm6n, zffl, **B2fa):
hTqE = 'invoke_skill_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill_id` when ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1TS():\n x0hE = iVGz.client('iot-data', region_name='us-west-2')\n Zz_i = {}\n ACxF = 'Welcome'\n P1Y2 = True\n j3CY = None\n if Zs2h():\n OcIA = 'The coffee machine is offline.'\n else:\n x0hE.publish(topic=UQrd, qos=1, payload=qQXR.dumps({'state': '1'}))\n OcIA = 'T... | [
"0.5912909",
"0.5896748",
"0.57591367",
"0.57437086",
"0.57308966",
"0.5649424",
"0.56391555",
"0.5612456",
"0.55630434",
"0.55491686",
"0.54284877",
"0.5363396",
"0.53060114",
"0.5269332",
"0.5248049",
"0.5243671",
"0.52119356",
"0.5210129",
"0.5205348",
"0.5204494",
"0.5195... | 0.6131731 | 0 |
Create a new NLU annotation set for a skill which will generate a new annotationId. This is an API that creates a new NLU annotation set with properties and returns the annotationId. | def _UrO(YKHO, vm6n, AZI9, **B2fa):
hTqE = 'create_nlu_annotation_set_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `sk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MgJX(YKHO, vm6n, g2mL, Hhz4, **B2fa):\n hTqE = 'get_annotations_for_nlu_annotation_sets_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'skill_id' not in NArs or NArs['skill_id'] is None:\n raise ValueError('Mi... | [
"0.5991934",
"0.58785355",
"0.5876992",
"0.5777781",
"0.52043295",
"0.5172357",
"0.51515406",
"0.5148755",
"0.51152873",
"0.5086618",
"0.4977804",
"0.48819813",
"0.48653534",
"0.4863833",
"0.4863833",
"0.47762877",
"0.47746676",
"0.47074908",
"0.4689013",
"0.46825206",
"0.467... | 0.7526162 | 0 |
Get the rollback status of a skill given an associated rollbackRequestId. Use ~latest in place of rollbackRequestId to get the latest rollback status. | def Ld1C(YKHO, vm6n, EZpi, **B2fa):
hTqE = 'get_rollback_for_skill_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcUq(YKHO, vm6n, NTVc, **B2fa):\n hTqE = 'rollback_skill_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'skill_id' not in NArs or NArs['skill_id'] is None:\n raise ValueError('Missing the required parameter `s... | [
"0.6188353",
"0.5348794",
"0.50636834",
"0.49248162",
"0.4864631",
"0.4824027",
"0.4814775",
"0.4814775",
"0.4810125",
"0.47206628",
"0.46720722",
"0.4601886",
"0.4582974",
"0.45225385",
"0.4521484",
"0.45111957",
"0.44771323",
"0.44711003",
"0.44195473",
"0.44100633",
"0.440... | 0.719928 | 0 |
Get the list of inskill products for the skillId. | def Ykh7(YKHO, vm6n, EtM5, **B2fa):
hTqE = 'get_isp_list_for_skill_id_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `sk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CxaC(YKHO):\n return [ZfUD.code for ZfUD in YKHO._products]",
"def uQsB(YKHO):\n bD7m = YKHO.base_url\n iN3H = YKHO.connection.make_get(bD7m)\n return ywEt(iN3H, YKHO)",
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def C76W(id):\n NCls = GGod()\n C76W =... | [
"0.59632087",
"0.59197265",
"0.590533",
"0.5828244",
"0.57245255",
"0.5663034",
"0.56141776",
"0.55580974",
"0.55575114",
"0.5537327",
"0.553261",
"0.55187964",
"0.5504587",
"0.54901576",
"0.54774684",
"0.54679954",
"0.54339874",
"0.5425092",
"0.5394326",
"0.53756917",
"0.536... | 0.70336187 | 0 |
Gets the `InteractionModel` for the skill in the given stage. The path params skillId, stage and locale are required. | def w85F(YKHO, vm6n, mSxY, NCqB, **B2fa):
hTqE = 'get_interaction_model_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwGb(YKHO, vm6n, mSxY, NCqB, **B2fa):\n hTqE = 'get_interaction_model_metadata_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'skill_id' not in NArs or NArs['skill_id'] is None:\n raise ValueError('Missing the... | [
"0.5837195",
"0.5794024",
"0.556514",
"0.5178054",
"0.51161706",
"0.4783202",
"0.47309718",
"0.4666063",
"0.46613026",
"0.46403983",
"0.45909518",
"0.4589444",
"0.4541329",
"0.45185766",
"0.4510075",
"0.4501116",
"0.44332525",
"0.436137",
"0.43485343",
"0.4298251",
"0.4294916... | 0.6707876 | 0 |
Gets the specified version `InteractionModel` of a skill for the vendor. Use `~current` as version parameter to get the current version model. | def Gz75(YKHO, vm6n, mSxY, NCqB, DpZH, **B2fa):
hTqE = 'get_interaction_model_version_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the requir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vd7c(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def kaPv():\n global __model\n return UZ7h.__version__",
"def C3ST(YKHO):\n return pLZ5",
"def TBez(YKHO) -> str... | [
"0.609386",
"0.60471684",
"0.59729415",
"0.5941532",
"0.57474136",
"0.5744456",
"0.5716244",
"0.5673265",
"0.5659888",
"0.55117637",
"0.5506471",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
"0.5478209",
... | 0.63348377 | 0 |
Returns the skill manifest for given skillId and stage. | def pfSr(YKHO, vm6n, mSxY, **B2fa):
hTqE = 'get_skill_manifest_v1'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill_id`... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IOeJ(YKHO, vm6n, mSxY, eaVs, **B2fa):\n hTqE = 'update_skill_manifest_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'skill_id' not in NArs or NArs['skill_id'] is None:\n raise ValueError('Missing the required... | [
"0.58649564",
"0.5746228",
"0.5555346",
"0.54651296",
"0.5207292",
"0.51761097",
"0.510083",
"0.50791603",
"0.49944592",
"0.48343024",
"0.4796685",
"0.47939762",
"0.4792742",
"0.47889155",
"0.47459278",
"0.47426957",
"0.47282284",
"0.47118324",
"0.46940255",
"0.4669653",
"0.4... | 0.7073502 | 0 |
Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoin... | def br71(YKHO, vm6n, EtM5, **B2fa):
hTqE = 'invoke_skill_end_point_v2'
NArs = locals()
for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):
NArs[H5ew] = wEf2
del NArs['kwargs']
if 'skill_id' not in NArs or NArs['skill_id'] is None:
raise ValueError('Missing the required parameter `skill... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pf5A(YKHO, vm6n, zffl, **B2fa):\n hTqE = 'invoke_skill_v1'\n NArs = locals()\n for H5ew, wEf2 in jKi7.iteritems(NArs['kwargs']):\n NArs[H5ew] = wEf2\n del NArs['kwargs']\n if 'skill_id' not in NArs or NArs['skill_id'] is None:\n raise ValueError('Missing the required parameter `ski... | [
"0.5358969",
"0.5293235",
"0.528769",
"0.50172585",
"0.49989742",
"0.49976173",
"0.49679202",
"0.49613965",
"0.48948103",
"0.48303246",
"0.47997808",
"0.4771908",
"0.4771333",
"0.47675943",
"0.47169495",
"0.47111094",
"0.47069886",
"0.47030997",
"0.46804383",
"0.46728724",
"0... | 0.70120853 | 0 |
Issues a PATCH to the specified uri, passing the supplied body | def hGWs(YKHO, TBsA, j8eK, nNXP=None, MOPg=None):
if nNXP:
MOPg = YKHO.fusion_client._set_req_api_version(api=nNXP)
elif not MOPg:
MOPg = YKHO.fusion_client._headers
j8eK = 'https://%s%s' % (YKHO.fusion_client._host, j8eK)
return YKHO.fusion_client.patch(uri=j8eK, headers=MOPg, body=qQXR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, bD7m, TBsA=None, MOPg=None):\n return YKHO._request('PATCH', bD7m, TBsA, MOPg)",
"def HsI_(YKHO, j8eK, TBsA, nNXP=None, MOPg=None):\n return YKHO.fabric.patch(j8eK, TBsA, nNXP, MOPg)",
"def Po4F(YKHO, pmON, TBsA):\n bD7m = TDhU(YKHO.api_endpoint, pmON)\n geh0 = G4JS.patch(bD7m, json=... | [
"0.77083725",
"0.7659384",
"0.7624684",
"0.75942343",
"0.73600644",
"0.7331018",
"0.7139078",
"0.6876234",
"0.6847816",
"0.6767257",
"0.6766447",
"0.67284626",
"0.66456074",
"0.656354",
"0.65493995",
"0.65445983",
"0.6524909",
"0.6506091",
"0.64907485",
"0.64639413",
"0.64432... | 0.73655456 | 4 |
Takes a list of dictionaries and returns the (first) dictionary that contains the given key value pair | def IQUc(YKHO, ISZs, H5ew, BWXx):
for Csk6 in ISZs:
if Csk6[H5ew] == BWXx:
return Csk6
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(m3Fx, H5ew, BWXx):\n return filter(lambda cmPJ: cmPJ[H5ew] == BWXx, m3Fx)",
"def FY2S(H5ew, BWXx, oHnD):\n for U6D_ in oHnD:\n if U6D_.get(H5ew) == BWXx:\n return U6D_\n return None",
"def KyQJ(NfAq, H5ew, HI6H):\n for dslb in NfAq:\n if dslb[H5ew] == HI6H:\n ... | [
"0.74982864",
"0.7346386",
"0.6997044",
"0.67986053",
"0.6752747",
"0.6747529",
"0.671175",
"0.66192144",
"0.6596726",
"0.6574854",
"0.64542264",
"0.6324983",
"0.6310137",
"0.6189611",
"0.61807764",
"0.61573076",
"0.6144855",
"0.60709363",
"0.60579413",
"0.6054688",
"0.602998... | 0.7208419 | 2 |
Compares the entire response body (json dict) with the previously created expected (dict). Only the items in the expected are evaluated. Extra items in the response are ignored except in the case of a list [] type. Lists are verified to have the same number of items. When originally written, this function would fail on... | def VQaF(YKHO, aEqx, geh0, UPtz={}, f_23=False, rb7a=0, o4eZ=False, rhSO=False, eSXQ=False):
sAiE = '\t' * rb7a
try:
alT2 = y5Kl().get_variable_value('${TEST NAME}')
except:
alT2 = 'Suite Setup'
SJLV = y5Kl().get_variable_value('${SUITE NAME}')
Ql6j = 0
if y5Kl().get_variable_val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDKd(YKHO, _hkX, ScG9=None):\n if _hkX.status_code != Izgw.RESP_CODE_OK:\n raise STXe.NOSRestHTTPError(http_code=_hkX.status_code, http_reason=_hkX.reason, http_op=_hkX.request.method, url=_hkX.url, http_response=_hkX.text)\n Odq0 = _hkX.json()\n if not ScG9:\n return Odq0\n for Jyyj ... | [
"0.6131817",
"0.6061034",
"0.6018319",
"0.59335274",
"0.5933225",
"0.5876628",
"0.58536416",
"0.5803603",
"0.57731",
"0.57661444",
"0.5750166",
"0.5725003",
"0.57075226",
"0.5703737",
"0.56503505",
"0.56431496",
"0.5613102",
"0.56036854",
"0.55543786",
"0.554258",
"0.55344665... | 0.6059691 | 2 |
Updates the specified trap forwarding destination. The trap destination associated with the given id will be updated if a trap destination with that id already exists. [Example] ${resp} = Fusion Api Update Appliance Trap Destination | | | | | def DBn5(YKHO, TBsA, id, nNXP=None, MOPg=None):
return YKHO.trap.put(body=TBsA, id=id, api=nNXP, headers=MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O78J(YKHO, TBsA=None, id=None, nNXP=None, MOPg=None):\n return YKHO.trap.create(body=TBsA, id=id, api=nNXP, headers=MOPg)",
"def GUP4(YKHO, TBsA=None, id=None, nNXP=None, MOPg=None):\n return YKHO.snmpv3trap.put(body=TBsA, id=id, api=nNXP, headers=MOPg)",
"def SGQb(YKHO, id=None, nNXP=None, MOPg=None... | [
"0.6613562",
"0.6590284",
"0.5745858",
"0.5331495",
"0.5328401",
"0.532052",
"0.5276687",
"0.5275363",
"0.51345956",
"0.5115327",
"0.50964355",
"0.5036326",
"0.50140005",
"0.49928546",
"0.4823668",
"0.47933242",
"0.47568846",
"0.47446564",
"0.47323117",
"0.46850047",
"0.46842... | 0.74026597 | 0 |
Gets a default or paginated collection of Connections [Arguments] | def mCol(YKHO, j8eK=None, xqoZ='', nNXP=None, MOPg=None):
return YKHO.conn.get(uri=j8eK, api=nNXP, headers=MOPg, param=xqoZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRhM(YKHO, id, o0oP, **qIxc):\n return YKHO.request(id + '/' + o0oP, qIxc)",
"def uRhM(YKHO, id, o0oP, **qIxc):\n return YKHO.request('{0}/{1}/{2}'.format(YKHO.version, id, o0oP), qIxc)",
"def pi1E(YKHO) -> laHg.List[MAqI]:\n return [MAqI.from_dict(w2B8) for w2B8 in YKHO.query(jmrv)]",
"def PqUj... | [
"0.6931733",
"0.663533",
"0.65736204",
"0.65408987",
"0.6520295",
"0.6483001",
"0.6483001",
"0.6461461",
"0.6389838",
"0.623619",
"0.6185604",
"0.60714126",
"0.60550255",
"0.5961917",
"0.5955461",
"0.5941752",
"0.5908974",
"0.58920044",
"0.5880017",
"0.58781475",
"0.5866742",... | 0.5358474 | 39 |
Issues a PATCH request to a drive enclosure. See RESTAPI docs for valid request bodies [Arguments] | def Ti3g(YKHO, TBsA, j8eK, nNXP=None, MOPg=None):
return YKHO.drive_enclosure.patch(TBsA, j8eK, nNXP, MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def jbwd(YKHO, pmON, nPrm=None, m5r4=x0hE.MULTIPART_CONTENT, NTN7=False, **dDGN):\n nPrm = nPrm or {}\n geh0 = super(x0hE.Client, YKHO).patch(pmON, data=nPrm, content_type=m5r4, **dDGN)\n if NTN7:\n geh0 = YKHO._handle_re... | [
"0.69250757",
"0.6663205",
"0.6662519",
"0.664325",
"0.65036833",
"0.6449954",
"0.64494",
"0.6431868",
"0.6422519",
"0.6397085",
"0.639598",
"0.63724047",
"0.63440573",
"0.6308826",
"0.62631166",
"0.6232683",
"0.6213324",
"0.6213324",
"0.6213324",
"0.6213324",
"0.6213324",
... | 0.6808087 | 1 |
Issues a PATCH request to an enclosure. See RESTAPI docs for valid request bodies [Arguments] | def OAxW(YKHO, TBsA, j8eK, nNXP=None, MOPg=None, ajCK=None):
return YKHO.enclosure.patch(TBsA, j8eK, nNXP, MOPg, ajCK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def Po4F(YKHO, bD7m, TBsA=None, MOPg=None):\n return YKHO._request('PATCH', bD7m, TBsA, MOPg)",
"def irEl(YKHO, bD7m='', nPrm='', NArs={}, MOPg={}):\n return YKHO.httpRequest('PATCH', bD7m, nPrm, NArs, MOPg)",
"def Po4F(YKHO, T... | [
"0.7322979",
"0.68914396",
"0.68123513",
"0.6810135",
"0.67109245",
"0.6618471",
"0.660938",
"0.65981245",
"0.65977496",
"0.6591905",
"0.6591386",
"0.6590417",
"0.65834326",
"0.6566933",
"0.6551695",
"0.6551422",
"0.652787",
"0.6520931",
"0.65115",
"0.6510823",
"0.6449295",
... | 0.71574557 | 1 |
Patch a fabric based on uri provided [Arguments] | def HsI_(YKHO, j8eK, TBsA, nNXP=None, MOPg=None):
return YKHO.fabric.patch(j8eK, TBsA, nNXP, MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IH5N(YKHO, TBsA, j8eK, nNXP=None, MOPg=None):\n return YKHO.fabricmanager.put(body=TBsA, uri=j8eK, api=nNXP, headers=MOPg)",
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def Po4F(YKHO, j8eK, nPrm=None, **B2fa):\n return YKHO.session.patch(j8eK, data=nPrm, **B2fa)",
"... | [
"0.6105052",
"0.59244967",
"0.5895854",
"0.568877",
"0.56826943",
"0.56228423",
"0.5620909",
"0.55593264",
"0.55578506",
"0.5538882",
"0.55009985",
"0.54826397",
"0.54781485",
"0.54612875",
"0.5444421",
"0.54081976",
"0.5402439",
"0.5346956",
"0.5307811",
"0.53018963",
"0.529... | 0.70708567 | 0 |
Returns all the free fragments in a IPv4 Range. [Arguments] | def A6O_(YKHO, j8eK, nNXP=None, MOPg=None):
return YKHO.ipv4range.get(uri=j8eK, api=nNXP, headers=MOPg, param='/free-fragments') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_It(YKHO, j8eK, nNXP=None, MOPg=None):\n return YKHO.ipv4range.get(uri=j8eK, api=nNXP, headers=MOPg, param='/allocated-fragments')",
"def pMqP(YKHO, j8eK, nNXP=None, MOPg=None):\n return YKHO.vmacrange.get(uri=j8eK, api=nNXP, headers=MOPg, param='/free-fragments')",
"def _4Ml(YKHO, j8eK, nNXP=None, ... | [
"0.72713524",
"0.68684775",
"0.68349123",
"0.67930484",
"0.672236",
"0.65734833",
"0.64969206",
"0.6338586",
"0.6236195",
"0.57705426",
"0.5738103",
"0.5639637",
"0.5541575",
"0.549044",
"0.5446197",
"0.5423923",
"0.53578913",
"0.5311482",
"0.52758336",
"0.52411574",
"0.52273... | 0.79109085 | 0 |
Fetches the current configuration for which metrics are being relayed. [Example] ${resp} = Fusion Api Get Metrics Configuration | | | def g_bI(YKHO, nNXP=None, MOPg=None):
return YKHO.metrics.get(api=nNXP, headers=MOPg, param='/configuration') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(qv1X):\n try:\n GPtr = KcJp(qv1X)\n except Exception:\n raise KH96.HTTPClientError()\n else:\n return oGir(json_body=qQXR.dumps(GPtr), content_type='application/json')",
"def GPtr(YKHO) -> qe4Y.Output['outputs.ConfigResponse']:\n return qe4Y.get(YKHO, 'config')",
"def ... | [
"0.66372234",
"0.6462638",
"0.6452565",
"0.6445916",
"0.6443163",
"0.6286106",
"0.6253097",
"0.62112087",
"0.61938095",
"0.6167818",
"0.6142554",
"0.6061876",
"0.6059525",
"0.6024392",
"0.6022809",
"0.59841913",
"0.5945762",
"0.5941983",
"0.59398097",
"0.5911986",
"0.5910538"... | 0.70904857 | 0 |
Refreshes a SAS Interconnect using the PATCH http verb. [Arguments] | def PkKw(YKHO, TBsA=None, j8eK=None, xqoZ='', nNXP=None, MOPg=None):
xqoZ = '/refreshState%s' % xqoZ
return YKHO.sasics.patch(body=TBsA, uri=j8eK, param=xqoZ, api=nNXP, headers=MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EzVv(YKHO, TBsA=None, j8eK=None, nNXP=None, MOPg=None):\n return YKHO.sasics.patch(body=TBsA, uri=j8eK, api=nNXP, headers=MOPg)",
"def Pp70(YKHO, TBsA, j8eK, xqoZ='', nNXP=None, MOPg=None):\n return YKHO.ic.patch(body=TBsA, uri=j8eK, api=nNXP, headers=MOPg, param=xqoZ)",
"def Po4F(YKHO, *qIxc, **B2fa... | [
"0.6675101",
"0.627341",
"0.6237193",
"0.6141386",
"0.6027831",
"0.5904484",
"0.58985615",
"0.5815906",
"0.5799898",
"0.57866615",
"0.5774356",
"0.5731663",
"0.5718279",
"0.57136154",
"0.5711923",
"0.5688395",
"0.55969775",
"0.5579017",
"0.55683225",
"0.55654866",
"0.5550302"... | 0.65348923 | 1 |
Issues a PATCH request. See RESTAPI docs for valid request bodies [Arguments] | def k8eI(YKHO, TBsA, j8eK, nNXP=None, MOPg=None):
return YKHO.sh.patch(TBsA, j8eK, nNXP, MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def Po4F(YKHO, bD7m, TBsA=None, MOPg=None):\n return YKHO._request('PATCH', bD7m, TBsA, MOPg)",
"def Po4F(YKHO, TuLp, *qIxc, **B2fa):\n return YKHO.request.patch(TuLp, *qIxc, **B2fa).json()",
"def irEl(YKHO, bD7m='', nPrm='', N... | [
"0.7938083",
"0.7449449",
"0.742562",
"0.7417484",
"0.7357582",
"0.7285772",
"0.7233902",
"0.719851",
"0.71922064",
"0.71890086",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"0.7187706",
"... | 0.0 | -1 |
Send a POST rest call to the HAL Test Webapp on Fusion | def g05R(YKHO, dT5b, XeOP=None, SGPK=None, pgFO=5):
bD7m = 'https://' + dT5b + '/perm/rest/tbird/pemOperation'
nPrm = {'PemOperation': 'performAction', 'ActionName': '', 'ActionParameters': {}, 'SN': y5Kl().get_variable_value('${ENC_SERIAL_NUMBER}')}
if XeOP is not None:
nPrm['ActionName'] = XeOP
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def weZA(YKHO):\n YKHO.getPage('/', method='POST')\n YKHO.assertStatus('200 OK')\n YKHO.assertHeader('Content-Type', 'application/json')",
"def AWhd(YKHO):\n return YKHO.doRequest(YKHO.url, method='POST', body=YKHO.input)",
"def AWhd(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = ... | [
"0.7195425",
"0.702145",
"0.69609934",
"0.69108003",
"0.6867677",
"0.6861576",
"0.67064506",
"0.666035",
"0.66593635",
"0.66006505",
"0.65784454",
"0.65768015",
"0.6563718",
"0.6562291",
"0.6559118",
"0.65375435",
"0.65372556",
"0.65215045",
"0.65138274",
"0.6511443",
"0.6489... | 0.0 | -1 |
Gets a Deployment Manager. [Arguments] | def yOHK(YKHO, j8eK=None, xqoZ='', nNXP=None, MOPg=None):
return YKHO.dep_mgr.get(uri=j8eK, api=nNXP, headers=MOPg, param=xqoZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bfMs(clva=None):\n from manager import get_keystone_manager\n return get_keystone_manager(EhVf(), Xcdf(), clva)",
"def DjJx(YKHO):\n return YKHO.manager",
"def bfMs():\n return J33P",
"def HDdB(YKHO):\n return YKHO._manager",
"def AcSF(LPxM=False):\n if LPxM:\n return wk5E.conf... | [
"0.6725439",
"0.64918023",
"0.62597597",
"0.6233775",
"0.61700165",
"0.6023853",
"0.58021766",
"0.57533944",
"0.57072103",
"0.5679756",
"0.5606789",
"0.5581873",
"0.55539227",
"0.5527742",
"0.55214655",
"0.5490343",
"0.54241663",
"0.53941226",
"0.53548354",
"0.5341178",
"0.53... | 0.7509083 | 0 |
Gets a Hypervisor cluster profile. [Arguments] | def gbIC(YKHO, j8eK=None, xqoZ='', nNXP=None, MOPg=None):
return YKHO.cluster_profile.get(uri=j8eK, api=nNXP, headers=MOPg, param=xqoZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBC6(YKHO, z39Z):\n if YKHO._value.has_option(z39Z, 'cluster'):\n if YKHO._value.has_option(z39Z, 'cluster'):\n hKn5 = YKHO._value.get(z39Z, 'cluster')\n YKHO.logger.info('Connecting to: %s cluster' % hKn5)\n else:\n YKHO.logger.error('No cluster parameter foun... | [
"0.71974623",
"0.645041",
"0.6425894",
"0.6204044",
"0.6123612",
"0.60758156",
"0.6050714",
"0.59964824",
"0.59913784",
"0.59863085",
"0.5854982",
"0.5842499",
"0.58419126",
"0.57995874",
"0.57753825",
"0.5745835",
"0.57405496",
"0.5696487",
"0.56512314",
"0.56255156",
"0.561... | 0.80410475 | 0 |
Issues a PATCH request. See RESTAPI docs for valid request bodies [Arguments] | def cM5D(YKHO, TBsA, j8eK, nNXP=None, MOPg=None):
return YKHO.rackmanager.patch(body=TBsA, uri=j8eK, api=nNXP, headers=MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def Po4F(YKHO, bD7m, TBsA=None, MOPg=None):\n return YKHO._request('PATCH', bD7m, TBsA, MOPg)",
"def Po4F(YKHO, TuLp, *qIxc, **B2fa):\n return YKHO.request.patch(TuLp, *qIxc, **B2fa).json()",
"def irEl(YKHO, bD7m='', nPrm='', N... | [
"0.7937596",
"0.7447879",
"0.7425883",
"0.7416192",
"0.7356485",
"0.72845966",
"0.7232765",
"0.71977687",
"0.7190924",
"0.71888465",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
"0.7187323",
... | 0.0 | -1 |
Get the value of the ADDONSPATH variable. | def Ny81():
HDZB = Fyhu()
if not HDZB:
bo34.error('#SETTINGSPATH# resolution required but was not found')
return
return Hy7s.path.join(HDZB, 'Addons') + '\\' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgmy(YKHO, BWXx):\n return Hy7s.path.abspath(Hy7s.path.expanduser(Hy7s.path.expandvars(BWXx)))",
"def Rci7(YKHO):\n XP5J = Hy7s.path.abspath(xAKo)\n KXdC = Hy7s.path.split(XP5J)\n return KXdC",
"def YkPL():\n return P1ba.GetEncodedValue(Hy7s.environ, 'PATH')",
"def lUGc():\n return EDFq... | [
"0.6033623",
"0.5921134",
"0.58051646",
"0.5630593",
"0.5581429",
"0.5525819",
"0.55247533",
"0.5490318",
"0.5476768",
"0.54625976",
"0.54127926",
"0.53831667",
"0.5338885",
"0.5338132",
"0.53280693",
"0.53262985",
"0.52948344",
"0.5281537",
"0.52779865",
"0.52707076",
"0.526... | 0.5957791 | 1 |
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.81218547",
"0.81218547",
"0.80773693",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80042696",
"0.7871678",
"0.7845623",
"0.7828392",
"0.7827006",
"0.78138447",
"... | 0.80533457 | 21 |
Method to creates an City object using POST | def XQjZ(ZuB6):
if not QePW.get_json():
return Yxsy(pz3A({'error': 'Not a JSON'}), 400)
if S8SU.get('State', ZuB6) is None:
eTsH(404)
if 'name' not in QePW.get_json():
return Yxsy(pz3A({'error': 'Missing name'}), 400)
YEnM = QePW.get_json()
YEnM['state_id'] = ZuB6
_yOu = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOQw(ZuB6=None):\n ORWD = QePW.get_json(silent=True)\n QTBn = S8SU.get(wHLO, ZuB6)\n if QTBn is None:\n eTsH(404)\n if ORWD is None:\n eTsH(400, 'Not a JSON')\n if 'name' not in ORWD:\n eTsH(400, 'Missing name')\n xVmE = cKBo(**ORWD)\n xVmE.state_id = ZuB6\n S8SU.sa... | [
"0.79649186",
"0.79572505",
"0.7762739",
"0.7654357",
"0.73793656",
"0.7293891",
"0.6985512",
"0.68425363",
"0.66014796",
"0.64874905",
"0.64441365",
"0.64099985",
"0.6333697",
"0.6226037",
"0.6224602",
"0.6222621",
"0.62019914",
"0.60947216",
"0.6058716",
"0.6040446",
"0.603... | 0.7480158 | 4 |
Retrieve an even spread of indices for an array/Series. This allows us to access representative samples from across the corpus. | def bfam(qw7D, exwG):
Os4s = len(qw7D) - 1
QVq7 = oyIN.ceil(oyIN.linspace(0, Os4s, exwG)).astype(int)
_0VL = oyIN.unique(QVq7)
try:
return qw7D[_0VL]
except KeyError:
return qw7D.iloc[_0VL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fdyk(YKHO):\n return B_n2(*[range(*Mkmy) for Mkmy in YKHO.location])",
"def TfDw(DumB):\n Aofo = []\n for YRbF in range(len(DumB)):\n if YRbF % 2 != 0:\n Aofo.append(DumB[YRbF])\n return Aofo",
"def TfDw(DumB):\n Aofo = []\n for or8S in range(len(DumB)):\n if or8S... | [
"0.5990912",
"0.586502",
"0.57603425",
"0.5759859",
"0.5582475",
"0.54895645",
"0.54612243",
"0.54612243",
"0.5399744",
"0.5368337",
"0.5368337",
"0.5365263",
"0.5364654",
"0.53515476",
"0.53500444",
"0.53310245",
"0.5315511",
"0.5313844",
"0.53134716",
"0.5305348",
"0.528973... | 0.56984794 | 4 |
Check that the format of ``X`` is a column vector of single nonnegative values, representing each observation of performance. For example ``[[0]; [0]; [1]; [1]]``. | def Si72(YKHO, EcVT):
rmc3 = oyIN.concatenate(EcVT)
if len(rmc3) == 1:
raise ValueError('expected at least 1 observation but none found.')
elif (rmc3 < 0).any():
raise ValueError('expected non-negative features for each observation.')
elif EcVT.shape[1] > 1:
raise ValueError('exp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leTM(EcVT):\n if type(EcVT) is not XTiz.ndarray:\n raise TypeError('X should be type numpy.ndarray')\n if len(EcVT.shape) == 2 and EcVT.shape[1] > 1:\n raise TypeError('X should have a single column.')",
"def C_vL(EcVT):\n return EcVT if not isinstance(EcVT, rLdf.DataFrame) else EcVT.a... | [
"0.68836063",
"0.66894436",
"0.6302034",
"0.6250377",
"0.61786705",
"0.61228245",
"0.60884136",
"0.6060105",
"0.6032114",
"0.60302985",
"0.6027103",
"0.60228115",
"0.602003",
"0.60032636",
"0.58549327",
"0.5782543",
"0.57701117",
"0.57576823",
"0.57034236",
"0.5665207",
"0.56... | 0.6482836 | 2 |
Validate if the passed argument looks like a valid url. | def yaqE(bD7m: str) -> bool:
try:
Aofo = KVWQ(bD7m)
return all([Aofo.scheme, Aofo.netloc])
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW != True:\n return False",
"def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW is not True:\n return False",
"def KSw8(YKHO):\n pass",
"def KSw8(OaeV, xqoZ, BWXx):\n try:\n return rOmR(QePW.urlopen(BWXx).read())\n excep... | [
"0.8343673",
"0.8324227",
"0.83120877",
"0.8292005",
"0.8033375",
"0.7874858",
"0.78653574",
"0.78576237",
"0.78355736",
"0.77103376",
"0.766898",
"0.7654561",
"0.76491636",
"0.76035684",
"0.75911057",
"0.755884",
"0.7558228",
"0.75480825",
"0.7546638",
"0.7536757",
"0.752520... | 0.6924069 | 64 |
Check that creating an account works with privileged access | def FDCW(pVAQ):
B0gN(capsys=pVAQ, terminal_input=['login', 'agent', 'createacct', '1234567', 'accountName1', 'logout', 'no'], intput_valid_accounts=['1234568'], expected_tail_of_terminal_output=['Thank you for using Quinterac, have a nice day!'], expected_output_transactions=['NEW 0000000 000 1234567 accountName1',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRYy(YKHO):\n pB3N = {'email': 't@t.pl', 'password': 'password', 'name': 'asdasd', 'is_superuser': False}\n Ylbp = YKHO.client_authenticated.post(gxEw(CKgv), data=pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def k4h3(YKHO):\n pass",
"def gvxT(YKHO):\n YKHO.grant_per... | [
"0.69334227",
"0.657401",
"0.653778",
"0.65368503",
"0.6505535",
"0.6459696",
"0.63727415",
"0.63524723",
"0.6324572",
"0.6307633",
"0.6254503",
"0.62484324",
"0.6223447",
"0.6181628",
"0.6158007",
"0.61456215",
"0.61443484",
"0.6139977",
"0.613374",
"0.61093897",
"0.60702944... | 0.0 | -1 |
This method returns the reward of a particular state | def uSk8(YKHO, QTBn):
if abs(QTBn['theta']) < 1:
return 2.0
elif abs(QTBn['theta']) < 3:
return 0.0
elif abs(QTBn['theta']) > 30:
return -100.0
return -2.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, QTBn: float) -> float:\n raise NotImplementedError",
"def xyVK(YKHO, QTBn, XeOP, rxHc):\n assert XeOP in YKHO.get_possible_actions(QTBn), 'cannot do action %s from state %s' % (XeOP, QTBn)\n WKvO, LVAh = YKHO.__state_to_xy(rxHc)\n vOGg = -1\n if UtkU[LVAh][WKvO] == 'G':\n vOG... | [
"0.8314272",
"0.8240575",
"0.82223743",
"0.8161263",
"0.8149699",
"0.8095069",
"0.8067136",
"0.8055836",
"0.7923237",
"0.7907485",
"0.7823275",
"0.78065765",
"0.77908105",
"0.77655923",
"0.7738718",
"0.77146447",
"0.7702389",
"0.76473874",
"0.7635467",
"0.7619942",
"0.7616541... | 0.7740652 | 14 |
Returns a list of filenames found in a directory | def a_nD(pmON):
return Hy7s.listdir(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JMfG(dir: str):\n MVVZ = [f'{dir}/{nUeQ}' for nUeQ in U9eF(dir) if EFYe(gzes(dir, nUeQ))]\n return MVVZ",
"def bkFi(eHKs):\n return [eHNT for eHNT in Hy7s.listdir(eHKs) if Hy7s.path.isfile(Hy7s.path.join(eHKs, eHNT))]",
"def Dl39(dZk2: str) -> [str]:\n for tk5Y, Nknn, gFok in ZAda(dZk2):\n ... | [
"0.8131805",
"0.8108138",
"0.8034345",
"0.79521066",
"0.7903706",
"0.7899298",
"0.7884386",
"0.7879142",
"0.78716534",
"0.78543764",
"0.7830999",
"0.77942765",
"0.7782874",
"0.77438194",
"0.7679967",
"0.7658643",
"0.76420903",
"0.7634723",
"0.7630502",
"0.7629579",
"0.7621057... | 0.7984331 | 3 |
associates an instance of ChildAccount to this Account | def M4sg(YKHO, n_9s):
YKHO._children.append(n_9s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iGUl(YKHO):\n V8yT.account_list.append(YKHO)",
"def H2v5(YKHO, ZrNc):\n if isinstance(ZrNc, tHSi) and ZrNc not in YKHO.account:\n YKHO.account.append(ZrNc)",
"def yQb9(YKHO, ZrNc):\n pass",
"def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc",
"def ZrNc(YKHO, ZrNc):\n YKHO._account = Zr... | [
"0.6679163",
"0.6542428",
"0.6518352",
"0.64333874",
"0.64333874",
"0.64333874",
"0.64333874",
"0.6373562",
"0.63151264",
"0.62300396",
"0.6036437",
"0.6035886",
"0.599156",
"0.59576416",
"0.59400326",
"0.59400326",
"0.5933551",
"0.5873395",
"0.5868553",
"0.58684623",
"0.5868... | 0.6822193 | 0 |
This function renames columns of a pandas dataframe It converts column names to snake case if rename_dict is not passed. | def B06S(jQ3Z, _C3g={}, OY8a=True):
if not _C3g:
return jQ3Z.rename(columns={fvDH: fvDH.lower().replace(' ', '_') for fvDH in jQ3Z.columns.values.tolist()}, inplace=OY8a)
else:
return jQ3Z.rename(columns=_C3g, inplace=OY8a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BfRN(B_Yw, rqW4):\n for aTqo, F3iL in B_Yw.items():\n rqW4 = rqW4.withColumnRenamed(aTqo, F3iL)\n return rqW4",
"def GW6D(jQ3Z: DataFrame) -> hxoQ:\n for fvDH in jQ3Z.columns:\n jQ3Z = jQ3Z.withColumnRenamed(fvDH, fvDH.lower())\n return jQ3Z",
"def LKhh(NKcn):\n ccBJ = {'date':... | [
"0.73472214",
"0.71769214",
"0.712079",
"0.7030749",
"0.6953978",
"0.6815323",
"0.6753903",
"0.6625544",
"0.6609549",
"0.6517022",
"0.6508362",
"0.64940655",
"0.6339",
"0.62789905",
"0.6255128",
"0.6241007",
"0.6222985",
"0.6205978",
"0.6147987",
"0.61346877",
"0.6118897",
... | 0.82928956 | 0 |
Calculate the total area of the elements on this cell, including cell references and arrays. | def f0tD(YKHO, cX5M=False):
if cX5M:
kYnG = {}
for U6D_ in Hs6x.chain(YKHO.polygons, YKHO.paths, YKHO.references):
mS8B = U6D_.area(True)
for CLNC in mS8B.keys():
if CLNC in kYnG:
kYnG[CLNC] += mS8B[CLNC]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drdQ(YKHO):\n return oyIN.sum(YKHO.array[:])",
"def tjC2(YKHO):\n return XTiz.prod([Mkmy[1] - Mkmy[0] for Mkmy in YKHO.range_])",
"def f0tD(YKHO, cX5M=False):\n if cX5M:\n kYnG = {}\n for U6D_ in YKHO.elements:\n mS8B = U6D_.area(True)\n for CLNC in mS8B.keys():... | [
"0.77725315",
"0.7599504",
"0.75269383",
"0.7497039",
"0.74537677",
"0.74429333",
"0.7378315",
"0.72832215",
"0.72520405",
"0.72520405",
"0.72520405",
"0.72520405",
"0.7251096",
"0.72318023",
"0.72269714",
"0.72177047",
"0.72038364",
"0.7172168",
"0.7172168",
"0.7172168",
"0.... | 0.71954083 | 17 |
Return the set of layers in this cell. Returns | def jn2h(YKHO):
fhcK = set()
for U6D_ in Hs6x.chain(YKHO.polygons, YKHO.paths):
fhcK.update(U6D_.layers)
for aC0l in YKHO.references:
fhcK.update(aC0l.ref_cell.get_layers())
for UXqs in YKHO.labels:
fhcK.add(UXqs.layer)
return fhcK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fhcK(YKHO):\n return YKHO['layers']",
"def fhcK(YKHO):\n return YKHO._flc.layers",
"def sxE_(YKHO):\n return YKHO.__layers",
"def jn2h(YKHO):\n fhcK = set()\n for U6D_ in YKHO.elements:\n if isinstance(U6D_, Qfgf):\n fhcK.update(U6D_.layers)\n elif isinstance(U6D_,... | [
"0.84161794",
"0.82297456",
"0.81984156",
"0.8153201",
"0.7760602",
"0.76984745",
"0.7670736",
"0.72703713",
"0.72165895",
"0.70526385",
"0.7021822",
"0.6928826",
"0.6922886",
"0.6842713",
"0.6831845",
"0.6688635",
"0.66676366",
"0.6658537",
"0.653411",
"0.64305663",
"0.63962... | 0.80953765 | 4 |
Calculate the bounding box for this cell. Returns | def JcC1(YKHO):
CI0j = all((bf9h._bb_valid for bf9h in YKHO.get_dependencies(True)))
l6Tn = YKHO._bb_valid and CI0j
if not l6Tn:
edvT = XTiz.array(((1e+300, 1e+300), (-1e+300, -1e+300)))
itGi = []
for j5tF in YKHO.polygons:
itGi.extend(j5tF.polygons)
for pmON in Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HV3G(YKHO):\n WioY, U8q3, zt1J, vhEE = YKHO.substrates.bounds\n return VT7w.BOX2I(VT7w.VECTOR2I(int(WioY), int(U8q3)), VT7w.VECTOR2I(int(zt1J - WioY), int(vhEE - U8q3)))",
"def C1GJ(YKHO):\n if YKHO.bbox is None:\n YKHO.bbox = C1GJ(YKHO)\n return YKHO.bbox",
"def C1GJ(YKHO):\n if YKHO... | [
"0.8207344",
"0.81806314",
"0.81806314",
"0.81616205",
"0.81508523",
"0.79829717",
"0.7957958",
"0.7862182",
"0.78247416",
"0.7819618",
"0.7802205",
"0.779639",
"0.77903897",
"0.77657527",
"0.77332604",
"0.77099425",
"0.7704747",
"0.7704747",
"0.769051",
"0.7675328",
"0.76556... | 0.7544387 | 28 |
Return a set of the cells included in this cell as references. | def cPdt(YKHO, znBS=False):
SMAd = set()
for aC0l in YKHO.references:
if isinstance(aC0l.ref_cell, riCw):
if znBS:
SMAd.update(aC0l.ref_cell.get_dependencies(True))
SMAd.add(aC0l.ref_cell)
return SMAd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z3LN(YKHO) -> 'IterableList[Reference]':\n return FLGC.list_items(YKHO)",
"def de7T(YKHO):\n return YKHO._refs",
"def de7T(YKHO):\n return YKHO._references",
"def xqWg(YKHO):\n return YKHO._referencing_nodes",
"def z3LN(YKHO):\n return tuple(YKHO.__references)",
"def z3LN(YKHO):\n r... | [
"0.6819724",
"0.6730786",
"0.6708101",
"0.66307276",
"0.65374833",
"0.64513767",
"0.64364344",
"0.6364836",
"0.6364836",
"0.6356147",
"0.6325696",
"0.6325696",
"0.62790745",
"0.62559783",
"0.62235403",
"0.62235177",
"0.6222344",
"0.6185836",
"0.6093392",
"0.602159",
"0.601182... | 0.6488647 | 5 |
Gets the id of this SubscriptionProductRetirement. A unique identifier for the object. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def mLJR(YKHO):\n return YKHO.... | [
"0.7453236",
"0.7453236",
"0.7453236",
"0.7453236",
"0.70733815",
"0.6746917",
"0.6697227",
"0.6697227",
"0.66862226",
"0.66862226",
"0.66862226",
"0.66862226",
"0.66862226",
"0.66862226",
"0.6684057",
"0.66782755",
"0.66718966",
"0.66718966",
"0.66718966",
"0.66718966",
"0.6... | 0.0 | -1 |
Sets the id of this SubscriptionProductRetirement. A unique identifier for the object. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO, Mc9N):\n YKHO._product_id = Mc9N",
"def Mc9N(YKHO, Mc9N):\n YKHO._product_id = Mc9N",
"def Mc9N(YKHO, Mc9N):\n YKHO._product_id = Mc9N",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO,... | [
"0.6687188",
"0.65710616",
"0.65710616",
"0.65566206",
"0.65250146",
"0.64017624",
"0.64017624",
"0.64017624",
"0.64017624",
"0.64017624",
"0.63562167",
"0.63235307",
"0.63213336",
"0.63213336",
"0.63213336",
"0.63213336",
"0.63213336",
"0.63213336",
"0.63213336",
"0.63213336",... | 0.0 | -1 |
Gets the linked_space_id of this SubscriptionProductRetirement. The ID of the space this object belongs to. | def YBE_(YKHO):
return YKHO._linked_space_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dYAF(YKHO):\n return YKHO.instance_metadata.subscription_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def orcL(YKHO):\n return YKHO.__rId",
... | [
"0.5639911",
"0.5487876",
"0.5487876",
"0.5487876",
"0.5487876",
"0.53018355",
"0.52775943",
"0.52646273",
"0.51881564",
"0.5121563",
"0.5112025",
"0.5101079",
"0.5073609",
"0.5073609",
"0.5073609",
"0.5073609",
"0.5073609",
"0.5073609",
"0.5060274",
"0.5060274",
"0.50597024"... | 0.7217349 | 2 |
Gets the product of this SubscriptionProductRetirement. | def Lx3t(YKHO):
return YKHO._product | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJp1(YKHO, *qIxc):\n return _VfD.Reaction_getProduct(YKHO, *qIxc)",
"def duKq(YKHO):\n return YKHO.card_product",
"def Lx3t(YKHO, Mc9N):\n return Ldyl.Product(YKHO, Mc9N)",
"def NMoC(YKHO, Mc9N):\n return Lx3t.get_single_product(Mc9N)",
"def AI9R(Emd4, Mc9N):\n return msfn.query.get(Mc9N... | [
"0.71919554",
"0.7168041",
"0.70292336",
"0.6978669",
"0.69453955",
"0.6790158",
"0.65579",
"0.6556982",
"0.6439483",
"0.642651",
"0.642651",
"0.642651",
"0.642651",
"0.64097875",
"0.6401133",
"0.6386566",
"0.6296203",
"0.629263",
"0.62489635",
"0.6159131",
"0.6152622",
"0.... | 0.73504794 | 2 |
Gets the respect_terminiation_periods_enabled of this SubscriptionProductRetirement. | def z_SF(YKHO):
return YKHO._respect_terminiation_periods_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_SF(YKHO, z_SF):\n YKHO._respect_terminiation_periods_enabled = z_SF",
"def TqJh(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'evaluation_periods')",
"def TqJh(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'evaluation_periods')",
"def TqJh(YKHO) -> h8nf[qe4Y.Input[int]]:\n ... | [
"0.74990064",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.59558636",
"0.52868",
"0.52440816",
"0.51808107",
"0.51157266",
"0.51113236",
"0.50006104",
"0.49916717",
... | 0.7897476 | 0 |
Gets the target_product of this SubscriptionProductRetirement. | def jVbZ(YKHO):
return YKHO._target_product | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QlFk(YKHO, Lx3t):\n for pan_, Ldyl in YKHO._products_by_target.items():\n if Lx3t in Ldyl:\n return pan_\n return None",
"def zldD(YKHO):\n return YKHO._target",
"def zldD(YKHO):\n return YKHO._target",
"def R8nG(YKHO):\n return YKHO._target_resource",
"def Lx3t(YKHO):\... | [
"0.679874",
"0.65475947",
"0.65354234",
"0.6525121",
"0.6492427",
"0.6492427",
"0.6492427",
"0.638465",
"0.6314479",
"0.616897",
"0.61486644",
"0.61486644",
"0.61486644",
"0.61486644",
"0.6129035",
"0.60792124",
"0.6019437",
"0.6019437",
"0.6019437",
"0.6019437",
"0.60076684"... | 0.8075166 | 0 |
Gets the version of this SubscriptionProductRetirement. The version is used for optimistic locking and incremented whenever the object is updated. | def DpZH(YKHO):
return YKHO._version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPYU(YKHO):\n return YKHO._product_version",
"def O1YJ(YKHO):\n return gTEQ('PrlSrvInfo_GetProductVersion', YKHO.handle)",
"def O1YJ(YKHO):\n return YKHO.get_attr('product_version')",
"def O1YJ(YKHO):\n return gTEQ('PrlLoginResponse_GetProductVersion', YKHO.handle)",
"def Ar00(YKHO):\n r... | [
"0.7609071",
"0.7556369",
"0.7447159",
"0.7211711",
"0.7078787",
"0.7065332",
"0.7065332",
"0.6965987",
"0.6928433",
"0.6927428",
"0.69248474",
"0.68874663",
"0.6880073",
"0.6839752",
"0.68232965",
"0.67877114",
"0.67861766",
"0.67816305",
"0.67618465",
"0.6750636",
"0.673643... | 0.67298514 | 30 |
Sets the version of this SubscriptionProductRetirement. The version is used for optimistic locking and incremented whenever the object is updated. | def DpZH(YKHO, DpZH):
YKHO._version = DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPYU(YKHO, uPYU):\n YKHO._product_version = uPYU",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZH",
"def DpZH(YKHO, DpZH: int):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH: str) -> None:\n ... | [
"0.7180803",
"0.6708293",
"0.6647392",
"0.6647392",
"0.6574128",
"0.6495684",
"0.64354223",
"0.64354223",
"0.6300998",
"0.62922347",
"0.6192053",
"0.6126061",
"0.60471845",
"0.60471845",
"0.60471845",
"0.60225743",
"0.5944241",
"0.59408695",
"0.59389913",
"0.5929401",
"0.5891... | 0.6649448 | 15 |
Returns df with dtype set for structure without any column filter. | def euNW(YKHO):
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wf_n():\n return rLdf.DataFrame({'intcol': [1, 2], 'strcol': ['three', 'four'], 'floatcol': [5.0, 6.0], 'boolcol': [True, False], 'datetimecol': [oyIN.datetime64('2020-01-01'), oyIN.datetime64('2020-01-02')]})",
"def rfWZ(jQ3Z):\n jQ3Z = jQ3Z.loc[jQ3Z[jQ3Z.columns[0]] != jQ3Z.columns[0]]\n jQ3Z = jQ... | [
"0.6611793",
"0.6518844",
"0.6439829",
"0.620935",
"0.61962974",
"0.6109263",
"0.5990738",
"0.5988264",
"0.59865373",
"0.5986267",
"0.5910748",
"0.5909542",
"0.5873334",
"0.58664733",
"0.5857477",
"0.58217114",
"0.5814661",
"0.5797066",
"0.57949156",
"0.57742786",
"0.5751437"... | 0.0 | -1 |
Get Product based on name. | def nUHY(YKHO, leAC):
return msfn.query.filter_by(title=leAC).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AI9R(Emd4, Mc9N):\n return msfn.query.get(Mc9N)",
"def TIYm(mWFP: str='') -> x1iM[msfn]:\n Ldyl = []\n for XP5J in Ytq4().products.values():\n if not mWFP or XP5J.name == mWFP:\n Ldyl.append(XP5J)\n return Ldyl",
"def IahK(mWFP, KUnM):\n return LDOr.search_product_by_name(m... | [
"0.7238149",
"0.7212795",
"0.72054875",
"0.71924907",
"0.71586484",
"0.7007384",
"0.6974032",
"0.68805",
"0.6826333",
"0.68231606",
"0.67831254",
"0.6731516",
"0.66950774",
"0.66819346",
"0.66207284",
"0.6595219",
"0.65523624",
"0.65501523",
"0.6533631",
"0.65288424",
"0.6504... | 0.5911903 | 74 |
Calculate mean of role/token embeddings for a node. | def PejY(YKHO, Q6kx) -> AzJI[oyIN.array, int]:
s2mk = [a1PO for a1PO in eNCK(Q6kx.token, ('RoleId_%d' % LmAn for LmAn in Q6kx.roles)) if a1PO in YKHO.emb]
if not s2mk:
return (None, 0)
return (oyIN.mean([YKHO.emb[a1PO] for a1PO in s2mk], axis=0), len(s2mk)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kBrZ(YKHO):\n for YRbF, RFZ4 in enumerate(YKHO.X_train_naive):\n APvw = RFZ4\n if ht2j.cuda.is_available():\n APvw = iQnE(ht2j.Tensor(oyIN.asarray(APvw).reshape(1, 242)).cuda())\n else:\n APvw = iQnE(ht2j.Tensor(oyIN.asarray(APvw).reshape(1, 242)))\n bxMJ = ... | [
"0.6682953",
"0.6198933",
"0.6104026",
"0.61020845",
"0.606138",
"0.59226686",
"0.59124076",
"0.5786445",
"0.5759134",
"0.57552254",
"0.57463694",
"0.5732782",
"0.572047",
"0.57162076",
"0.5711725",
"0.5707686",
"0.5694124",
"0.56877744",
"0.5685827",
"0.567916",
"0.567916",
... | 0.7650001 | 0 |
Calculate mean of role/token embeddings for nodes and their children in a UAST. | def AlnF(YKHO, tk5Y) -> AzJI[cuzp[int, oyIN.array], cuzp[int, oyIN.array]]:
yMNV = {0: YKHO._mean_vec(tk5Y)}
lmVV = {}
Lb8x = {0: None}
rDAo = 1
for Q6kx, ojAR in vJsc(tk5Y):
tpKH = []
Ueq4 = []
for aUGN in Q6kx.children:
JmMM = YKHO._mean_vec(aUGN)
yM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PejY(YKHO, Q6kx) -> AzJI[oyIN.array, int]:\n s2mk = [a1PO for a1PO in eNCK(Q6kx.token, ('RoleId_%d' % LmAn for LmAn in Q6kx.roles)) if a1PO in YKHO.emb]\n if not s2mk:\n return (None, 0)\n return (oyIN.mean([YKHO.emb[a1PO] for a1PO in s2mk], axis=0), len(s2mk))",
"def kBrZ(YKHO):\n for YRb... | [
"0.6652418",
"0.6104074",
"0.60613614",
"0.58062",
"0.57312095",
"0.55728334",
"0.5552793",
"0.5548033",
"0.55363387",
"0.5521133",
"0.55169815",
"0.549175",
"0.54699457",
"0.5461554",
"0.5455657",
"0.5437836",
"0.5394639",
"0.5368514",
"0.53438914",
"0.53310144",
"0.5312195"... | 0.6019041 | 3 |
Remove all objects that are no longer alive. | def x0SS(YKHO):
unmf = {}
for mWFP, Uqbu in YKHO.items.items():
kgoa = []
for YRbF in Uqbu:
if YRbF.alive():
kgoa.append(YRbF)
else:
YKHO.del_item(YRbF)
unmf[mWFP] = kgoa
YKHO.items = unmf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dd_U(YKHO):\n if YKHO.live == None:\n return\n kSdD = []\n for KCHu in YKHO.streams:\n if not KCHu.remote_location in YKHO.live:\n kSdD.append(KCHu)\n while len(kSdD) > 0:\n KCHu = kSdD.pop()\n del KCHu",
"def FDYW(YKHO):\n YKHO.game_objects = list()\n ... | [
"0.72169393",
"0.7131462",
"0.710511",
"0.7069617",
"0.698678",
"0.69787264",
"0.69597036",
"0.69319737",
"0.68848646",
"0.67965287",
"0.67901033",
"0.67546594",
"0.66708785",
"0.66639525",
"0.66491336",
"0.66485494",
"0.6599556",
"0.6585536",
"0.65660405",
"0.6546759",
"0.65... | 0.62263244 | 44 |
Set the locale for fake data This sets the locale for all calls to the ``Faker`` keyword and ``${faker}`` variable. The default is en_US For a list of supported locales see | def G2vj(YKHO, NCqB):
try:
YKHO._faker = OXsV.Faker(NCqB)
except AttributeError:
raise Exception(f"Unknown locale for fake data: '{NCqB}'") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irmf(YKHO, BWXx):\n return YKHO._set(locale=BWXx)",
"def Fj6P():\n try:\n if a9EH.system() == 'Windows':\n NCqB.setlocale(NCqB.LC_ALL, 'German')\n else:\n NCqB.setlocale(NCqB.LC_ALL, 'de_DE.utf8')\n except NCqB.Error:\n pass",
"def FCbF(YKHO):\n super(... | [
"0.6244255",
"0.623005",
"0.62105423",
"0.62015533",
"0.6130801",
"0.60855186",
"0.6064039",
"0.587886",
"0.5830364",
"0.5727264",
"0.5697302",
"0.5605824",
"0.5514231",
"0.543558",
"0.5397802",
"0.5365363",
"0.5353766",
"0.5340136",
"0.52725",
"0.52648044",
"0.52474874",
"... | 0.7908526 | 0 |
Navigates to the Home tab of Salesforce Setup | def wv_w(YKHO):
bD7m = YKHO.cumulusci.org.lightning_base_url
YKHO.selenium.go_to(bD7m + '/lightning/setup/SetupOneHome/home')
YKHO.wait_until_loading_is_complete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGWV(YKHO):\n YKHO.salesforce.go_to_setup_home()\n YKHO.eda.wait_for_new_window('Home | Salesforce')\n YKHO.selenium.switch_window('Home | Salesforce')\n YKHO.salesforce.wait_until_loading_is_complete()",
"def kZiy(YKHO):\n YKHO.goto(0, 0)",
"def oUar(YKHO):\n if YKHO.home_url is not None... | [
"0.8230737",
"0.71648955",
"0.70775753",
"0.70246947",
"0.7019923",
"0.7007859",
"0.67817223",
"0.67309695",
"0.6720572",
"0.6715987",
"0.6700127",
"0.6590666",
"0.65675294",
"0.6565556",
"0.65384",
"0.65323144",
"0.630954",
"0.6259082",
"0.62556046",
"0.6235437",
"0.6228942"... | 0.7788175 | 1 |
r""" Close connection and cursor. | def DDI8(UzPC, N1p7):
N1p7.close()
UzPC.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if YKHO.cursor:\n YKHO.cursor.close()\n if YKHO.conn:\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO.cursor.close()\n YKHO.connection.close()",
"def DDI8(N1p7, w2B8):\n N1p7.close()\n w2B8.close()",
"def L54T(YKHO):\n YKHO.__cursor.close()\n YKHO.__conne... | [
"0.83350396",
"0.83227044",
"0.8266605",
"0.8200751",
"0.81766593",
"0.79859394",
"0.7881802",
"0.7783966",
"0.77768856",
"0.77637964",
"0.7759937",
"0.7715322",
"0.7711181",
"0.77009636",
"0.7679163",
"0.76544863",
"0.76360935",
"0.7625238",
"0.7625238",
"0.7625238",
"0.7615... | 0.835283 | 0 |
return number of outgoing edges incident to vertex u in the graph. For directed graph, optional parameter counts incoming edges | def tjON(YKHO, P6bq, ctM_=False):
return NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1_y(YKHO):\n wjRY = sum((len(YKHO._outgoing[Ty9i]) for Ty9i in YKHO._outgoing))\n return wjRY if YKHO.is_directed() else wjRY // 2",
"def wwlN(YKHO, M3sh=o97m):\n if not YKHO._directed:\n return len(YKHO._outgoing)\n if M3sh == Yegm.OUTGOING:\n return len(YKHO._outgoing)\n elif ... | [
"0.68358546",
"0.6561279",
"0.6446544",
"0.64447254",
"0.6333673",
"0.6319609",
"0.6301107",
"0.62222815",
"0.6184934",
"0.61087424",
"0.60796434",
"0.60392433",
"0.6002174",
"0.5998038",
"0.5997388",
"0.5966773",
"0.59325117",
"0.59113735",
"0.5895486",
"0.58712155",
"0.5815... | 0.0 | -1 |
Compute bounding boxes from masks. | def p5Lc(ZHfW):
oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)
for YRbF in range(ZHfW.shape[-1]):
r8hN = ZHfW[:, :, YRbF]
GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]
mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]
if GO_b.shape[0]:
o4D3, ajwV = GO_b[[0, -1]]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5Lc(ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV = GO_... | [
"0.7847686",
"0.7822384",
"0.7725646",
"0.74624574",
"0.7325698",
"0.73178643",
"0.7166094",
"0.7036856",
"0.70279956",
"0.6984062",
"0.6840271",
"0.6769655",
"0.6768261",
"0.66790813",
"0.66393876",
"0.66106874",
"0.6608748",
"0.65870476",
"0.65523195",
"0.64979154",
"0.6494... | 0.7814012 | 2 |
Calculates IoU of the given box with the array of the given boxes. | def _xWy(FlUN, oUSw, ab__, p1Yn):
si3g = oyIN.maximum(FlUN[0], oUSw[:, 0])
skBL = oyIN.minimum(FlUN[2], oUSw[:, 2])
o4D3 = oyIN.maximum(FlUN[1], oUSw[:, 1])
ajwV = oyIN.minimum(FlUN[3], oUSw[:, 3])
iQin = oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0)
b65I = ab__ + p1Yn[:] - iQin[:]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(FlUN, oUSw):\n RjuK = [FlUN.intersection(Fg_i).area / FlUN.union(Fg_i).area for Fg_i in oUSw]\n return oyIN.array(RjuK, dtype=oyIN.float32)",
"def _xWy(FlUN, oUSw, ab__, p1Yn):\n o4D3 = oyIN.maximum(FlUN[0], oUSw[:, 0])\n ajwV = oyIN.minimum(FlUN[2], oUSw[:, 2])\n si3g = oyIN.maximum(FlUN... | [
"0.8233654",
"0.8128509",
"0.80252707",
"0.79859704",
"0.7928408",
"0.77582073",
"0.77385104",
"0.77119327",
"0.7706524",
"0.7639222",
"0.7638932",
"0.7638932",
"0.76373506",
"0.76087755",
"0.76022065",
"0.76022065",
"0.75603807",
"0.7515975",
"0.72115165",
"0.7174434",
"0.71... | 0.8116598 | 4 |
Computes IoU overlaps between two sets of boxes. | def I7Mo(wGB6, QFOH):
bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])
Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])
PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))
for YRbF in range(PZIW.shape[1]):
IkxF = QFOH[YRbF]
PZIW[:, YRbF] = _xWy(IkxF, wGB6, Eq1k[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZg1(Bsc6, IUcw, Tuqy='iou'):\n from icv.data.core.bbox import BBox\n assert Tuqy in ['iou', 'iof']\n Bsc6 = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in Bsc6])\n IUcw = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in IUcw])\n ... | [
"0.7990127",
"0.78907293",
"0.76871777",
"0.76614314",
"0.7659915",
"0.7565243",
"0.7565243",
"0.75390357",
"0.75383925",
"0.7536965",
"0.75360364",
"0.75193775",
"0.74758565",
"0.74505776",
"0.7442953",
"0.74426675",
"0.7352126",
"0.73306423",
"0.7320014",
"0.73066556",
"0.7... | 0.8171749 | 2 |
Computes IoU overlaps between two sets of masks. | def kFAs(oED9, iZaZ):
if oED9.shape[-1] == 0 or iZaZ.shape[-1] == 0:
return oyIN.zeros((oED9.shape[-1], iZaZ.shape[-1]))
oED9 = oyIN.reshape(oED9 > 0.5, (-1, oED9.shape[-1])).astype(oyIN.float32)
iZaZ = oyIN.reshape(iZaZ > 0.5, (-1, iZaZ.shape[-1])).astype(oyIN.float32)
bzU2 = oyIN.sum(oED9, axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Mo(wGB6, QFOH):\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]\n PZIW[:, YRbF] = _xWy(IkxF, wGB6... | [
"0.7274957",
"0.7274957",
"0.7274957",
"0.71368843",
"0.7078123",
"0.690092",
"0.68660337",
"0.684559",
"0.68321913",
"0.68063563",
"0.67350006",
"0.67350006",
"0.66618323",
"0.65612245",
"0.65596884",
"0.6539915",
"0.6460802",
"0.645651",
"0.64440256",
"0.6385012",
"0.634447... | 0.75193983 | 0 |
Performs nonmaximum suppression and returns indices of kept boxes. | def zh61(oUSw, cCrA, gwAu):
assert oUSw.shape[0] > 0
if oUSw.dtype.kind != 'f':
oUSw = oUSw.astype(oyIN.float32)
si3g = oUSw[:, 0]
o4D3 = oUSw[:, 1]
skBL = oUSw[:, 2]
ajwV = oUSw[:, 3]
f0tD = (skBL - si3g) * (ajwV - o4D3)
CMrw = cCrA.argsort()[::-1]
iEJi = []
while len(CM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcuV(oUSw):\n oUSw = sorted(oUSw, key=lambda FlUN: FlUN[2] - FlUN[0], reverse=True)\n Kn6U = []\n LmxT = 0.5\n for FlUN in oUSw:\n if not any([ZgRe(FlUN, a3cu) > LmxT for a3cu in Kn6U]):\n Kn6U.append(FlUN)\n return Kn6U",
"def kriB(oUSw, cCrA, VYEF=0.45, H42b=200):\n qtFp... | [
"0.70608395",
"0.69983155",
"0.6976223",
"0.67720497",
"0.67435426",
"0.6703019",
"0.6653769",
"0.66231835",
"0.654032",
"0.65133655",
"0.64524907",
"0.6440792",
"0.6414008",
"0.6377664",
"0.63635045",
"0.6159006",
"0.6144057",
"0.6129111",
"0.6109921",
"0.60739964",
"0.60683... | 0.7059315 | 1 |
Load instance masks for the given image. Different datasets use different ways to store masks. Override this method to load instance masks and return them in the form of am array of binary masks of shape [height, width, instances]. | def FEdX(YKHO, r8m5):
G9jH.warning('You are using the default load_mask(), maybe you need to define your own one.')
ZHfW = oyIN.empty([0, 0, 0])
WEJA = oyIN.empty([0], oyIN.int32)
return (ZHfW, WEJA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FEdX(YKHO, r8m5):\n F5V2 = YKHO.image_info[r8m5]\n if F5V2['source'] != 'vesicle':\n return super(YKHO.__class__, YKHO).load_mask(r8m5)\n U34r = YKHO.image_info[r8m5]\n ZHfW = oyIN.zeros([U34r['height'], U34r['width'], len(U34r['polygons'])], dtype=oyIN.uint8)\n for YRbF, XP5J in enumerat... | [
"0.7869282",
"0.786701",
"0.7807325",
"0.75356114",
"0.7487194",
"0.74836934",
"0.74011266",
"0.7394974",
"0.7351115",
"0.7336745",
"0.7290065",
"0.72642833",
"0.7250822",
"0.7201328",
"0.71151125",
"0.7102441",
"0.7093331",
"0.6974475",
"0.69341886",
"0.6813359",
"0.6783459"... | 0.72100884 | 13 |
Resizes a mask using the given scale and padding. Typically, you get the scale and padding from resize_image() to ensure both, the image and the mask, are resized consistently. | def vQmJ(ZHfW, NXpY, dvgN, NAnm=None):
with qmLP.catch_warnings():
qmLP.simplefilter('ignore')
ZHfW = Zxt2.ndimage.zoom(ZHfW, zoom=[NXpY, NXpY, 1], order=0)
if NAnm is not None:
LVAh, WKvO, MKlR, yzQ0 = NAnm
ZHfW = ZHfW[LVAh:LVAh + MKlR, WKvO:WKvO + yzQ0]
else:
ZHfW =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQmJ(ZHfW, NXpY, dvgN):\n MKlR, yzQ0 = ZHfW.shape[:2]\n ZHfW = Zxt2.ndimage.zoom(ZHfW, zoom=[NXpY, NXpY, 1], order=0)\n ZHfW = oyIN.pad(ZHfW, dvgN, mode='constant', constant_values=0)\n return ZHfW",
"def U1BC(Xn71, KS95, ZHfW, oUSw, KndY, wJAG, dEV_):\n MKlR, yzQ0, Z9rn = Xn71.shape\n NXpY... | [
"0.7886953",
"0.6024971",
"0.601013",
"0.59956163",
"0.59815747",
"0.5902877",
"0.5891884",
"0.5891884",
"0.5866327",
"0.5845942",
"0.5541372",
"0.55336607",
"0.55139524",
"0.5509066",
"0.5439005",
"0.54368395",
"0.5432924",
"0.5407946",
"0.54037696",
"0.5389475",
"0.53850484... | 0.75246656 | 1 |
It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. | def JViT(WKvO):
assert len(WKvO.shape) == 2
return WKvO[~oyIN.all(WKvO == 0, axis=1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QCL2(nPrm, Crrw, xD0F):\n Crrw = oyIN.repeat(Crrw, nPrm.shape[1])\n nPrm = nPrm.reshape(-1, xD0F)\n eKDz = oyIN.where(oyIN.all(nPrm == 0, axis=1))\n nPrm = nPrm[~eKDz[0]]\n Crrw = Crrw[~eKDz[0]]\n return (nPrm, Crrw)",
"def VOUI(WKvO):\n tpio = ZylS.shape(WKvO)[0]\n rak2 = ZylS.math.l... | [
"0.68312913",
"0.6651325",
"0.66369396",
"0.6633322",
"0.655796",
"0.6550293",
"0.63369226",
"0.624033",
"0.6205929",
"0.6150306",
"0.6146983",
"0.61401784",
"0.60737085",
"0.6045232",
"0.6019735",
"0.6008516",
"0.5989949",
"0.59858364",
"0.59858364",
"0.59816563",
"0.5967632... | 0.65694565 | 4 |
Compute Average Precision at a set IoU threshold (default 0.5). | def H6dO(v7iA, wDXs, YNWP, TdCN, bIaF, djS6, FpBn, PKpG):
S_vy, e100, PZIW = yG37(v7iA, wDXs, YNWP, TdCN, bIaF, djS6, FpBn, PKpG)
gCUM = oyIN.cumsum(e100 > -1) / (oyIN.arange(len(e100)) + 1)
dYrk = oyIN.cumsum(e100 > -1).astype(oyIN.float32) / len(S_vy)
gCUM = oyIN.concatenate([[0], gCUM, [0]])
dYrk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uSAa(HRJ_, ytgA, H3Vo):\n ytgA = oyIN.cumsum(ytgA)\n HRJ_ = oyIN.cumsum(HRJ_)\n ETu_ = HRJ_ / float(H3Vo)\n eRdl = HRJ_ / oyIN.maximum(HRJ_ + ytgA, oyIN.finfo(oyIN.float64).eps)\n VqfF = 0.0\n for a1PO in oyIN.arange(0.0, 1.1, 0.1):\n if oyIN.sum(ETu_ >= a1PO) == 0:\n XP5J =... | [
"0.6656932",
"0.6422307",
"0.6382818",
"0.61385274",
"0.6118089",
"0.610859",
"0.6033307",
"0.6023982",
"0.59936446",
"0.59702045",
"0.5968957",
"0.59669405",
"0.5953504",
"0.59431374",
"0.59431374",
"0.5923731",
"0.59229136",
"0.59229136",
"0.5917313",
"0.5913685",
"0.590186... | 0.5755965 | 33 |
Compute the recall at the given IoU threshold. It's an indication of how many GT boxes were found by the given prediction boxes. | def sidl(TdCN, v7iA, RjuK):
PZIW = I7Mo(TdCN, v7iA)
qMJM = oyIN.max(PZIW, axis=1)
IdPC = oyIN.argmax(PZIW, axis=1)
WeZ_ = oyIN.where(qMJM >= RjuK)[0]
mTOD = IdPC[WeZ_]
AOzf = len(set(mTOD)) / v7iA.shape[0]
return (AOzf, WeZ_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMcj(YKHO, Qlpt=None, Nhxk=None, f0tD='all', qoqK=None):\n ILBk = {'all': 0, 'small': 1, 'medium': 2, 'large': 3, '96-128': 4, '128-256': 5, '256-512': 6, '512-inf': 7}\n VJEO = [[0 ** 2, 100000.0 ** 2], [0 ** 2, 32 ** 2], [32 ** 2, 96 ** 2], [96 ** 2, 100000.0 ** 2], [96 ** 2, 128 ** 2], [128 ** 2, 256 ... | [
"0.62621534",
"0.61025965",
"0.60362554",
"0.5993026",
"0.5992019",
"0.598062",
"0.59323263",
"0.59282094",
"0.5892321",
"0.5827981",
"0.5823096",
"0.58173424",
"0.5814973",
"0.5813788",
"0.5794595",
"0.5781545",
"0.5735283",
"0.5735052",
"0.57166195",
"0.5709846",
"0.5678209... | 0.76745695 | 0 |
Converts boxes from normalized coordinates to pixel coordinates. | def v5O9(oUSw, ROpF):
MKlR, yzQ0 = ROpF
NXpY = oyIN.array([MKlR - 1, yzQ0 - 1, MKlR - 1, yzQ0 - 1])
DkWr = oyIN.array([0, 0, 1, 1])
return oyIN.around(oyIN.multiply(oUSw, NXpY) + DkWr).astype(oyIN.int32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLIR(YKHO, oUSw, H2v2, TVTK):\n Z_jk = oyIN.zeros_like(oUSw)\n Z_jk[:, 0] = oUSw[:, 0] * H2v2\n Z_jk[:, 1] = oUSw[:, 1] * TVTK\n Z_jk[:, 2] = oUSw[:, 2] * H2v2\n Z_jk[:, 3] = oUSw[:, 3] * TVTK\n return Z_jk",
"def h1D9(oUSw, H2v2, TVTK):\n Z_jk = oyIN.zeros_like(oUSw)\n Z_jk[:, 0] = o... | [
"0.75712496",
"0.70867115",
"0.6775384",
"0.67204654",
"0.660275",
"0.6589974",
"0.6581208",
"0.654033",
"0.6539582",
"0.6535337",
"0.6491841",
"0.64614946",
"0.64540744",
"0.64395887",
"0.64245975",
"0.64113736",
"0.6410515",
"0.6381608",
"0.63608825",
"0.6334851",
"0.629560... | 0.0 | -1 |
Computes the area of the polygon formed by the two borders of the cells | def f0tD(o0ZM, Jw7X):
bxZt = o0ZM
bxZt = bxZt.reset_index(drop=True)
bxZt.columns = ['x', 'y']
Gbmh = Jw7X
Gbmh = Gbmh.reset_index(drop=True)
Gbmh.columns = ['x', 'y']
if Gbmh['y'][0] > 500:
Gbmh = Gbmh.reindex(index=Gbmh.index[::-1])
if bxZt['y'][0] < 500:
bxZt = bxZt.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZrLT(WKvO, LVAh):\n return 0.5 * oyIN.abs(oyIN.dot(WKvO, oyIN.roll(LVAh, 1)) - oyIN.dot(LVAh, oyIN.roll(WKvO, 1)))",
"def W2cR(j5tF):\n return Fw8z.gmPolygonArea(j5tF)",
"def ZrLT(Ziit, mC4V):\n WKvO = []\n LVAh = []\n for tTpl in mC4V:\n exwG = Ziit[tTpl[0]]\n WKvO.append(exwG... | [
"0.7552802",
"0.7258244",
"0.7185722",
"0.717917",
"0.7128212",
"0.7111392",
"0.7071247",
"0.7070617",
"0.7019341",
"0.7001358",
"0.6988815",
"0.6931913",
"0.6912602",
"0.6905599",
"0.6905145",
"0.6893624",
"0.6893624",
"0.6893216",
"0.68896395",
"0.68792206",
"0.6866619",
... | 0.6524727 | 54 |
Formats the date taken from the log file in order to align with the sql date format YMD | def pbww(YR4Q):
yqt1 = YR4Q.split()
yqt1[0] = yqt1[0].split('/')
return ''.join([yqt1[0][2], yqt1[0][0], yqt1[0][1]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zntt(k3xj):\n _c1T = k3xj.split('/')\n return f'{_c1T[2]}-{_c1T[0]}-{_c1T[1]}'",
"def pbww(YKHO, nPrm):\n return '%s/%s' % (nPrm.month, nPrm.day)",
"def OXhc(YKHO):\n assert wY8N.format_date(mkv6) == '2016/05/15'",
"def qJ1i(YKHO, vIwR):\n return ITS7.strftime('%m/%d', ITS7.strptime(vIwR, ... | [
"0.6511338",
"0.64542186",
"0.6451588",
"0.6371941",
"0.63189375",
"0.62899065",
"0.626468",
"0.62239367",
"0.6207798",
"0.62021685",
"0.6146992",
"0.61419857",
"0.6121732",
"0.6037092",
"0.6026142",
"0.60041934",
"0.5999904",
"0.5974926",
"0.5921738",
"0.5880304",
"0.5861925... | 0.56192946 | 43 |
Returns the transport used by the client instance. | def PdI0(YKHO) -> kU4K:
return YKHO._client.transport | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdI0(YKHO):\n return YKHO._transport",
"def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport",
"def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport",
"def PdI0(Y... | [
"0.82946277",
"0.7887542",
"0.773594",
"0.773068",
"0.76806635",
"0.7674273",
"0.76357967",
"0.7558095",
"0.7551682",
"0.75303864",
"0.74958986",
"0.7488142",
"0.7436853",
"0.7368433",
"0.73340607",
"0.721926",
"0.7109823",
"0.7102308",
"0.68808985",
"0.68144",
"0.6671675",
... | 0.7423566 | 13 |
Converts given value to long if possible, otherwise None is returned. | def b6tD(BWXx):
if isinstance(BWXx, (int, Swre)):
return Swre(BWXx)
elif isinstance(BWXx, exCv):
return s509(o4TR(BWXx))
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRrw(wEf2):\n return Swre(wEf2) if jKi7.PY2 else int(wEf2)",
"def H3qp(WKvO):\n if isinstance(WKvO, Swre):\n return WKvO\n elif isinstance(WKvO, int):\n return Swre(WKvO)\n else:\n return s509(ntSl(WKvO))",
"def Uggj(a1PO, taNR):\n YRbF = Q8vf()\n if taNR.PL_get_long(... | [
"0.74933696",
"0.715573",
"0.67231256",
"0.6618173",
"0.6471894",
"0.6345347",
"0.6273417",
"0.6199922",
"0.6176904",
"0.6092171",
"0.6039979",
"0.59916466",
"0.5962227",
"0.59519756",
"0.59280604",
"0.58702356",
"0.5813299",
"0.57505965",
"0.57384586",
"0.57117707",
"0.57028... | 0.8211291 | 0 |
return next larger sparse number | def Ca9U(hymK):
if hymK == 0:
return 1
LJoj = HOSa(hymK)
for naF9 in range(0, LJoj):
if LT_e(hymK, naF9):
return hymK + 2 ** naF9
if G2kV(hymK, naF9):
b93b = (hymK >> naF9 + 1) * 2 ** (naF9 + 1)
return b93b + 2 ** (naF9 + 1)
return 2 ** (LJoj +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gjdV(hymK):\n qoqK = 2 ** 32\n for Ijmm in range(hymK + 1, qoqK):\n if qEOb(Ijmm):\n return Ijmm\n return None",
"def uD9Z(mLGw):\n uCmi = 1\n while uCmi < mLGw:\n uCmi <<= 1\n return uCmi",
"def uD9Z(mLGw):\n uCmi = 1\n while uCmi < mLGw:\n uCmi <<= ... | [
"0.7672728",
"0.61580247",
"0.61358225",
"0.60774994",
"0.59932333",
"0.58844113",
"0.58825076",
"0.58825076",
"0.5832039",
"0.5826069",
"0.56333584",
"0.56146306",
"0.55914325",
"0.55845207",
"0.55805635",
"0.55033994",
"0.5497962",
"0.5486491",
"0.547879",
"0.5476193",
"0.5... | 0.74779063 | 1 |
return next larger sparse number | def gjdV(hymK):
qoqK = 2 ** 32
for Ijmm in range(hymK + 1, qoqK):
if qEOb(Ijmm):
return Ijmm
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ca9U(hymK):\n if hymK == 0:\n return 1\n LJoj = HOSa(hymK)\n for naF9 in range(0, LJoj):\n if LT_e(hymK, naF9):\n return hymK + 2 ** naF9\n if G2kV(hymK, naF9):\n b93b = (hymK >> naF9 + 1) * 2 ** (naF9 + 1)\n return b93b + 2 ** (naF9 + 1)\n retu... | [
"0.7477969",
"0.61573946",
"0.613509",
"0.60775334",
"0.5992545",
"0.58828956",
"0.588183",
"0.588183",
"0.5831891",
"0.5825192",
"0.56328684",
"0.56140053",
"0.559014",
"0.5583566",
"0.5578744",
"0.55031174",
"0.5497666",
"0.548524",
"0.5477917",
"0.5475614",
"0.5440766",
... | 0.7672149 | 0 |
return True if number binary digit 1s have no adjacent 1s. | def qEOb(FGW3):
if FGW3 == 0:
return True
if FGW3 == 1:
return True
else:
UOVU = QfBb(FGW3)
for Spyh in range(1, len(UOVU)):
tHen = UOVU[Spyh]
fEsP = UOVU[Spyh - 1]
if tHen == 1 and fEsP == 1:
return False
return Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nDQC(jzdc):\n cHk7 = 0\n for tTpl in jzdc:\n if tTpl >= 0:\n cHk7 += 1\n if cHk7 > 1:\n return False\n return cHk7 == 1",
"def JUyz(BWXx):\n return bin(BWXx).count('1')",
"def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n retu... | [
"0.6595635",
"0.6540053",
"0.6482591",
"0.63950247",
"0.63907003",
"0.6204543",
"0.61807245",
"0.6171981",
"0.61649305",
"0.6097352",
"0.6066647",
"0.60572785",
"0.6053024",
"0.60443586",
"0.6039504",
"0.60368466",
"0.6022546",
"0.6005996",
"0.5991123",
"0.59874594",
"0.59751... | 0.6741046 | 0 |
return highest power of two in number | def HOSa(FGW3):
UOVU = QfBb(FGW3)
return len(UOVU) - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJcJ(mLGw):\n return 2 ** int(oyIN.ceil(oyIN.log2(mLGw)))",
"def UoNd(WKvO):\n return 1 << (WKvO - 1).bit_length()",
"def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh",
"def hKtM(YKHO, exwG):\n if exwG == 0:\n return 1\n return int(2... | [
"0.7722803",
"0.77092505",
"0.7696812",
"0.75224876",
"0.7414126",
"0.7350261",
"0.72898906",
"0.72811985",
"0.7175145",
"0.7173635",
"0.7150411",
"0.71332145",
"0.71239346",
"0.71106535",
"0.7095859",
"0.7025772",
"0.7020954",
"0.69823575",
"0.69276136",
"0.6903265",
"0.6882... | 0.78875387 | 0 |
Adds two Reco objects, returns a Reco object. | def JMxI(BzZr, RL4V):
Xlvp = BzZr.px + RL4V.px
nfKA = BzZr.py + RL4V.py
k19e = BzZr.pz + RL4V.pz
ut5U = BzZr.E + RL4V.E
return TkNR(Xlvp, nfKA, k19e, ut5U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n BdN0 = YKHO.__class__()\n BdN0.extend(YKHO)\n BdN0.extend(Elif)\n return BdN0",
"def K7GD(YKHO, Elif):\n return YKHO.runtime.add(YKHO, Elif)",
"def FOdN(YKHO, Elif):\n return YKHO.add(Elif)",
"def K7GD(YKHO, Elif):\n return YKHO.__add__(Elif)",
"def K7GD(YKHO, E... | [
"0.6708373",
"0.6588393",
"0.6587373",
"0.6527081",
"0.6519195",
"0.6519195",
"0.6518886",
"0.65113086",
"0.6482993",
"0.6482993",
"0.6482993",
"0.6482993",
"0.6482993",
"0.6482993",
"0.6482993",
"0.6479999",
"0.6457409",
"0.6420922",
"0.6420922",
"0.6419211",
"0.6409279",
... | 0.7727639 | 0 |
Generates authentication headers required by bitcoin_com | def E_hp(YKHO) -> cuzp[str, str]:
BFn2 = YKHO.generate_auth_dict()
return {'Authorization': 'Basic ' + BFn2['signature'], 'Content-Type': 'application/json'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ivWK():\n n10L = Vr2E.USERNAME\n KaGP = Vr2E.PASSWORD\n Jpbe = WR89.encodestring('%s:%s' % (n10L, KaGP)).rstrip('\\n')\n MOPg = {'Content-Type': 'application/xml', 'Accept': 'application/xml', 'Accept-Charset': 'utf-8', 'Authorization': 'Basic %s' % Jpbe}\n return MOPg",
"async def gen_headers... | [
"0.7698527",
"0.7321881",
"0.731975",
"0.7242912",
"0.7227",
"0.7122539",
"0.71201617",
"0.711637",
"0.7112385",
"0.7055011",
"0.70260453",
"0.69531006",
"0.69452506",
"0.6907244",
"0.6905155",
"0.6896297",
"0.6872004",
"0.68131626",
"0.68109024",
"0.6805357",
"0.67865443",
... | 0.7026986 | 10 |
Write a JSON dictionary (with formatting) to a file. | def uP8n(Gcbu, nPrm, MnRD=lHK4):
print(qQXR.dumps(nPrm, indent=MnRD), file=Gcbu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VacN(IznC, cmPJ, f2Tp=False, PJWX=False):\n if khtY.exists(IznC) and (not f2Tp):\n raise FileExistsError(f'\"{IznC}\" already exists. Please set overwrite to True.')\n jcIu = qQXR.dumps(cmPJ, indent=4)\n with open(IznC, 'w') as hOYR:\n hOYR.write(jcIu)\n hOYR.write('\\n')\n if ... | [
"0.8473659",
"0.8349206",
"0.8287237",
"0.8284883",
"0.8232919",
"0.8181084",
"0.8142443",
"0.7959556",
"0.7923507",
"0.7899531",
"0.7847865",
"0.7776783",
"0.7734701",
"0.7602273",
"0.759944",
"0.7568202",
"0.7562128",
"0.7525241",
"0.75060785",
"0.7493676",
"0.74867713",
... | 0.7724335 | 13 |