query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Get members from chats. Get members from chats. | def Th20(YKHO, DVsZ: str, Tsue: Optional[List[Union[str, 'models.Enum29']]]=None, EfUA: Optional[List[Union[str, 'models.Enum30']]]=None, lHli: Optional[List[str]]=None, **B2fa) -> kSnS['models.CollectionOfConversationMember']:
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.updat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def olI0(YKHO, DVsZ, vgXP=0, qoqK=200, filter=FlJ3()):\n return YKHO.send(CkPL(DVsZ, filter, vgXP, qoqK))",
"def VNhV(YKHO):\n return YKHO.messages",
"def VNhV(YKHO, Cfu6: ChatList, znry: int=2 ** 63 - 1, wYdb: int=0, qoqK: int=10000):\n return YKHO.send(FvOP(Cfu6, qoqK))",
"def KJTc(YKHO):\n z0U... | [
"0.7139275",
"0.68376493",
"0.67998105",
"0.67303777",
"0.66059965",
"0.65596455",
"0.6524702",
"0.65149844",
"0.64532125",
"0.6418446",
"0.6379795",
"0.6357973",
"0.6345501",
"0.63154817",
"0.62854016",
"0.62735873",
"0.6273579",
"0.6215783",
"0.6215783",
"0.61704314",
"0.61... | 0.60736406 | 25 |
Create new navigation property to members for chats. Create new navigation property to members for chats. | async def create_members(YKHO, DVsZ: str, TBsA: 'models.MicrosoftGraphConversationMember', **B2fa) -> 'models.MicrosoftGraphConversationMember':
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
m5r4 = B2fa.pop('content_type', 'application/json'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMgi(YKHO):\n if not YKHO.members:\n with open('data/composition/%d.json' % YKHO.session) as wM3v:\n nPrm = qQXR.load(wM3v)\n for bTKY in nPrm:\n mS46 = J0qS(bTKY['first_name'], bTKY['last_name'], bTKY['party'], bTKY['province'], bTKY['language'], bTKY['wiki'])\n ... | [
"0.5210612",
"0.511696",
"0.50544196",
"0.5000824",
"0.5000824",
"0.49793816",
"0.49659273",
"0.49500042",
"0.4867214",
"0.48467946",
"0.48365632",
"0.48050842",
"0.4784261",
"0.47579035",
"0.47284883",
"0.47230512",
"0.47201538",
"0.471756",
"0.4714996",
"0.46521205",
"0.462... | 0.47181547 | 17 |
Get members from chats. Get members from chats. | async def get_members(YKHO, DVsZ: str, OITk: str, EfUA: Optional[List[Union[str, 'models.Enum31']]]=None, lHli: Optional[List[str]]=None, **B2fa) -> 'models.MicrosoftGraphConversationMember':
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
Hhz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def olI0(YKHO, DVsZ, vgXP=0, qoqK=200, filter=FlJ3()):\n return YKHO.send(CkPL(DVsZ, filter, vgXP, qoqK))",
"def VNhV(YKHO):\n return YKHO.messages",
"def VNhV(YKHO, Cfu6: ChatList, znry: int=2 ** 63 - 1, wYdb: int=0, qoqK: int=10000):\n return YKHO.send(FvOP(Cfu6, qoqK))",
"def KJTc(YKHO):\n z0U... | [
"0.7139275",
"0.68376493",
"0.67998105",
"0.67303777",
"0.66059965",
"0.65596455",
"0.6524702",
"0.65149844",
"0.64532125",
"0.6418446",
"0.6379795",
"0.6357973",
"0.6345501",
"0.63154817",
"0.62854016",
"0.62735873",
"0.6273579",
"0.6215783",
"0.6215783",
"0.61704314",
"0.61... | 0.5786914 | 45 |
Delete navigation property members for chats. Delete navigation property members for chats. | async def delete_members(YKHO, DVsZ: str, OITk: str, duxJ: Optional[str]=None, **B2fa) -> None:
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
Hhz4 = 'application/json'
bD7m = YKHO.delete_members.metadata['url']
wiSa = {'chat-id': YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO, QePW):\n THkS = KINM.objects.all()\n qIxc = []\n for hxLO in THkS:\n qIxc.append((hxLO.get_collection_string(), hxLO.pk))\n THkS.delete()\n if len(qIxc) > 0:\n vduX(qIxc)\n return oGir({'detail': bGrB('All chat messages deleted successfully.')})",
"def RW9Q():\n ... | [
"0.5964651",
"0.5919996",
"0.57392246",
"0.56815296",
"0.56800205",
"0.5559577",
"0.55303246",
"0.55096817",
"0.5448025",
"0.5422247",
"0.5416147",
"0.5414231",
"0.5413736",
"0.5377731",
"0.5332734",
"0.53255826",
"0.529784",
"0.52918744",
"0.52911633",
"0.52678394",
"0.52496... | 0.0 | -1 |
Create new navigation property to messages for chats. Create new navigation property to messages for chats. | async def create_messages(YKHO, DVsZ: str, TBsA: 'models.MicrosoftGraphChatMessage', **B2fa) -> 'models.MicrosoftGraphChatMessage':
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
m5r4 = B2fa.pop('content_type', 'application/json')
Hhz4 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEHD(YKHO):\n return YKHO.properties.get('messages', BmUx(YKHO.context, KINM, oudJ('messages', YKHO.resource_path)))",
"def VNhV(YKHO):\n return YKHO.messages",
"def N9nD(YKHO, QePW, Ol8d):\n QePW.user.message_set.create(message=Ol8d)",
"def rxQZ(YKHO, hGN5, vC92):\n jwHY = LuKW(content=hGN5,... | [
"0.5737273",
"0.56730986",
"0.529719",
"0.51677966",
"0.5164867",
"0.5164867",
"0.51627135",
"0.5152177",
"0.51491666",
"0.51421124",
"0.51241016",
"0.5095506",
"0.5066361",
"0.5062975",
"0.50543153",
"0.5046407",
"0.50354594",
"0.50086385",
"0.50069565",
"0.49991423",
"0.498... | 0.4662861 | 82 |
Update the navigation property messages in chats. Update the navigation property messages in chats. | async def update_messages(YKHO, DVsZ: str, giqb: str, TBsA: 'models.MicrosoftGraphChatMessage', **B2fa) -> None:
Emd4 = B2fa.pop('cls', None)
KVtY = {401: lhwm, 404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
m5r4 = B2fa.pop('content_type', 'application/json')
Hhz4 = 'application/json'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0Ud(YKHO):\n return",
"def V0Ud(YKHO):\n return",
"def V0Ud(YKHO):\n return",
"def tQGV(YKHO):\n T1p0 = YKHO._get_treeview_contacts()\n for Pp4i in ['inbox_treeview', 'drafts_treeview', 'sent_treeview']:\n Kwwp = YKHO.view[Pp4i]\n Kwwp.get_model().update_contacts(T1p0)",
"... | [
"0.61198556",
"0.6051511",
"0.6051511",
"0.5966057",
"0.5794501",
"0.5708246",
"0.5708246",
"0.56906724",
"0.5474898",
"0.53887415",
"0.53887415",
"0.53279966",
"0.53010625",
"0.5271302",
"0.52665997",
"0.52579767",
"0.52579767",
"0.52579767",
"0.52579767",
"0.52579767",
"0.5... | 0.0 | -1 |
Returns driver instance given configuration | def fa2R(*qIxc, **B2fa):
if 'driver_type' in B2fa:
jX_P = B2fa.pop('driver_type')
if jX_P == 'serial':
return iKmN(*qIxc, **B2fa)
raise NotImplementedError()
else:
return iKmN(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDzh(Fv2L):\n return OMWp(Fv2L.storage.driver, Fv2L.storage)",
"def OMWp(mWFP, Fv2L):\n Csk6 = E_qD.DriverManager('gnocchi.storage', mWFP).driver\n return Csk6(Fv2L)",
"def aDzh():\n return E_qD",
"def iSDi():\n global _DRIVER_INSTANCE\n if XIsM is None:\n E_qD = aDzh(uBwj.RACKSP... | [
"0.7648621",
"0.7390208",
"0.7042639",
"0.70160514",
"0.6960354",
"0.6812178",
"0.6795955",
"0.6714448",
"0.6656414",
"0.663568",
"0.66155994",
"0.6609585",
"0.65930235",
"0.651207",
"0.63614386",
"0.6361327",
"0.6351307",
"0.6313755",
"0.62935436",
"0.6288032",
"0.6288032",
... | 0.7427044 | 1 |
Creating api connection with ISIC | def y62j(YKHO):
with open(YKHO.login_file) as eHNT:
mWFP, jTXt = eHNT.readline().split(',')
return SVEn(username=mWFP, password=jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O9KY(YKHO):\n YKHO.api = gd1d.ServerProxy(VA_n)",
"def hDft():\n pass",
"def d4y1(YKHO):\n raise NotImplementedError",
"def ZC3a(YKHO):\n pass",
"def FIMM(YKHO, sZPy, OlKE=None):\n YKHO._api_interface = sZPy(YKHO, error_types=OlKE)",
"async def connect(NKRf, NtEF, jTXt):\n lpha = uR... | [
"0.66654813",
"0.6495046",
"0.6394787",
"0.6378131",
"0.6341972",
"0.63167995",
"0.62586987",
"0.6249962",
"0.62000513",
"0.61953783",
"0.6114184",
"0.6108105",
"0.6072384",
"0.60330355",
"0.6025342",
"0.6021615",
"0.6003145",
"0.5999036",
"0.59981364",
"0.59981364",
"0.59981... | 0.7569491 | 0 |
Constructor. Creates the uuid. Sets the category of this thread | def FIMM(YKHO, Pmbv, ACia=None, mWFP='agent_thread', Zflx=None):
T6FA.Thread.__init__(YKHO)
YKHO.__lock = T6FA.Lock()
YKHO.__stop = False
YKHO._timeout = uxqV.getConfigAsInt('agent_thread_timeout')
YKHO._progressTimeout = 0
YKHO.__lastProgress = None
YKHO.__timeoutAt = 0
YKHO.threadMgrEv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.id = qxeD.uuid4()",
"def FIMM(YKHO, **B2fa):\n YKHO._id = kxTZ()",
"def FIMM(YKHO, qxeD='', mWFP=''):\n YKHO.uuid = qxeD\n YKHO.name = mWFP",
"def FIMM(YKHO):\n YKHO.id = str(qxeD.uuid4())",
"def FIMM(YKHO, begE, v7nJ, Pp4r, D8Ke):\n Esm4.__init__(YKH... | [
"0.61359334",
"0.5993267",
"0.59584594",
"0.5870658",
"0.5811211",
"0.5798947",
"0.5740743",
"0.57320154",
"0.56423295",
"0.56293154",
"0.5609564",
"0.56014633",
"0.5573948",
"0.5530184",
"0.552661",
"0.55197734",
"0.55193764",
"0.55115336",
"0.5507774",
"0.54877746",
"0.5477... | 0.53943366 | 25 |
Build a 3x3 Euler rotation matrix to rotate vectors about three given Euler angles. | def nBgz(q7In, rVnq, nYlf):
SCXK = daNt(ZylS.euler_matrix(q7In, rVnq, nYlf))
return tuple(map(tuple, SCXK)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5lp(bLm4):\n EcVT = oyIN.eye(3)\n fuBA = oyIN.eye(3)\n Nk6w = oyIN.eye(3)\n WKvO = bLm4[2]\n LVAh = bLm4[1]\n epBp = bLm4[0]\n EcVT[1, 1] = YhSR(WKvO)\n EcVT[1, 2] = -YUNn(WKvO)\n EcVT[2, 1] = YUNn(WKvO)\n EcVT[2, 2] = YhSR(WKvO)\n fuBA[0, 0] = YhSR(LVAh)\n fuBA[0, 2] = YUN... | [
"0.7330655",
"0.72332376",
"0.7103045",
"0.69892067",
"0.6887187",
"0.6842546",
"0.684029",
"0.6830951",
"0.6821985",
"0.6777332",
"0.67743385",
"0.676411",
"0.676014",
"0.67378324",
"0.673137",
"0.6724902",
"0.67190677",
"0.6705133",
"0.6704414",
"0.66032237",
"0.6578359",
... | 0.66194296 | 19 |
Return the next line from the file or raise StopIteration. | def next(YKHO):
if YKHO.nextbuf:
YKHO.pos += len(YKHO.nextbuf[0])
return YKHO.nextbuf.pop(0)
if YKHO.eof and (not YKHO.readbuf):
raise StopIteration
try:
while '\n' not in YKHO.readbuf:
YKHO._next_chunk()
except EOFError:
if '\n' not in YKHO.readbuf:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iEok(YKHO):\n try:\n YKHO._line = YKHO._in_file.next()\n except StopIteration:\n YKHO._line = None",
"def iEok(YKHO):\n try:\n YKHO._line = YKHO._in_file.next()\n except StopIteration:\n YKHO._line = None",
"def next(YKHO):\n zFiD = YKHO.readline()\n if not zFi... | [
"0.8267598",
"0.8267598",
"0.8179547",
"0.78550345",
"0.76627785",
"0.7651603",
"0.7644426",
"0.7590043",
"0.7314516",
"0.7267514",
"0.7064724",
"0.691055",
"0.67929685",
"0.67716706",
"0.6765869",
"0.67471206",
"0.6741425",
"0.67129576",
"0.6712827",
"0.66497904",
"0.6647271... | 0.72255594 | 10 |
Sets the user's password always use this rather than directly | def G3s8(YKHO, Ud05):
YKHO.password = D2Lq(Ud05)
YKHO.save()
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def jTXt(YKHO, BWXx):\n if not BWXx:\n return\n YKHO._password = BWXx",
"def PnS7(YKHO, jTXt):\n YKHO.pa... | [
"0.8649518",
"0.85834587",
"0.8581139",
"0.8507244",
"0.84506756",
"0.8413941",
"0.8383121",
"0.83708924",
"0.8316505",
"0.8240084",
"0.8167417",
"0.81323254",
"0.81323254",
"0.81200784",
"0.8119123",
"0.8104945",
"0.80770475",
"0.80770475",
"0.80770475",
"0.80770475",
"0.807... | 0.0 | -1 |
Returns True if the user has the specified permission. This method queries all available auth backends, but returns immediately if any backend returns True. Thus, a user who has permission from a single auth backend is assumed to have permission in general. If an object is provided, permissions for this specific object... | def M1EP(YKHO, IuXB, YEnM=None):
if YKHO.is_active and YKHO.is_superuser:
return True
return b94L(YKHO, IuXB, YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1EP(YKHO, IuXB, YEnM=None):\n if YKHO.is_active.allow_login and YKHO.user_type.pk == 1:\n return True\n return b94L(YKHO, IuXB, YEnM)",
"def M1EP(YKHO, IuXB, YEnM=None):\n if YKHO.is_active and YKHO.is_superuser:\n return True\n return b94L(YKHO, IuXB, YEnM)",
"def b94L(CBIr, IuX... | [
"0.7861713",
"0.78571963",
"0.77200586",
"0.7690271",
"0.7682665",
"0.7682665",
"0.7670084",
"0.7472267",
"0.7406844",
"0.7386415",
"0.72844243",
"0.72521275",
"0.72122574",
"0.71624744",
"0.713569",
"0.7123126",
"0.69511175",
"0.69236577",
"0.69201297",
"0.6891909",
"0.68618... | 0.7866216 | 0 |
Returns True if the user has any permissions in the given app label. Uses pretty much the same logic as has_perm, above. | def spO2(YKHO, tKz9):
if YKHO.is_active and YKHO.is_superuser:
return True
return Sd76(YKHO, tKz9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def spO2(YKHO, tKz9):\n if YKHO.is_active and YKHO.is_superuser:\n return True\n return Sd76(YKHO, tKz9)",
"def spO2(YKHO, tKz9):\n if YKHO.is_active and YKHO.is_superuser:\n return True\n return Sd76(YKHO, tKz9)",
"def spO2(YKHO, tKz9):\n xc3U = super(mv1M, YKHO).has_module_perms(... | [
"0.76839864",
"0.7652976",
"0.7602923",
"0.75344455",
"0.75344455",
"0.75344455",
"0.75344455",
"0.7500138",
"0.7491223",
"0.7449624",
"0.7449624",
"0.7449624",
"0.7449624",
"0.7449624",
"0.7438875",
"0.7409469",
"0.73855656",
"0.7378251",
"0.73535097",
"0.7299055",
"0.729426... | 0.7720842 | 0 |
create a string representation for now() for use as part of the MHL filename | def WWx2():
return qcWV.datetime.strftime(qcWV.datetime.utcnow(), '%Y-%m-%d_%H%M%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FtQi():\n return qcWV.utcnow().strftime('%Y%m%d_%H%M%S')",
"def Gsbx() -> str:\n return qcWV.datetime.now().isoformat().replace(':', '.')",
"def rVsV():\n return str(WmcE())[:19]",
"def bbib() -> str:\n x8us = '%m%d%Y%H%M%S'\n return qcWV.datetime.strftime(qcWV.datetime.now(), x8us)",
"d... | [
"0.75200886",
"0.7407653",
"0.73153514",
"0.7188136",
"0.71140647",
"0.70824414",
"0.7050498",
"0.7037875",
"0.7036477",
"0.7035637",
"0.6985924",
"0.6979562",
"0.6976601",
"0.6957722",
"0.69312394",
"0.6928024",
"0.69175816",
"0.6896317",
"0.6885973",
"0.6852479",
"0.6821061... | 0.7811528 | 0 |
Returns a string representation of the given numeric token ID, or the current token if it is a keyword. | def JS39(YKHO, uCX0=None):
if uCX0 != None:
for G1Hx in wUfe:
if wUfe[G1Hx] == uCX0:
return G1Hx
raise ValueError
if YKHO.token[0] == WtT1:
return YKHO.token[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eu6(YKHO):\n Aofo = ''\n while YKHO.current_char is not None and YKHO.current_char.isalnum():\n Aofo += YKHO.current_char\n YKHO.advance()\n eOtH = jFoG.get(Aofo, _J2v(yHil, Aofo))\n return eOtH",
"def _eu6(YKHO):\n eOtH = _J2v(type=None, value=None, lineno=YKHO.lineno, column=Y... | [
"0.7108674",
"0.7005051",
"0.6610004",
"0.6556576",
"0.65543777",
"0.64802647",
"0.6466559",
"0.64151305",
"0.6331598",
"0.6284145",
"0.6253107",
"0.62143666",
"0.6204781",
"0.6196281",
"0.6170984",
"0.614519",
"0.6141758",
"0.60763925",
"0.6052636",
"0.6044907",
"0.6027871",... | 0.6481014 | 5 |
If there are comments next in the input stream, skips over them to the next token. | def BlMK(YKHO):
YRbF = YKHO.line.find('//')
if YRbF != -1:
YKHO.line = YKHO.line[:YRbF]
if YKHO.inComment:
YRbF = YKHO.line.find('*/')
if YRbF == -1:
YKHO.line = ''
else:
YKHO.line = YKHO.line[YRbF + 2:]
YKHO.inComment = False
YRbF = YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xbk5(YKHO):\n if YKHO._get_char() == p0u9:\n while YKHO._get_char() and YKHO._get_char() != '\\n':\n YKHO.pos += 1",
"def QsYi(YKHO):\n if YKHO.peek() == ';':\n while not YKHO.end() and (not YKHO.matches('\\n')):\n YKHO.next()",
"def Hy_3(YKHO):\n if YKHO.next_t... | [
"0.7575536",
"0.7536078",
"0.7360242",
"0.7260921",
"0.6868312",
"0.67003566",
"0.6603512",
"0.65666705",
"0.65659493",
"0.6448847",
"0.64279616",
"0.6423005",
"0.6369119",
"0.6323601",
"0.63217473",
"0.62757283",
"0.62040883",
"0.6139789",
"0.6139473",
"0.61330235",
"0.60970... | 0.64728993 | 9 |
The Amazon Resource Name (ARN) of this VPC connector. | def _hj0(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'vpc_connector_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGai(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connector_arn')",
"def _hj0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vpc_connector_arn')",
"def BqTF(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_connection_arn')",
"def bNqJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.g... | [
"0.8196232",
"0.8018413",
"0.75600946",
"0.7303581",
"0.7184148",
"0.7104781",
"0.71011263",
"0.69253993",
"0.6775426",
"0.6736577",
"0.66723865",
"0.65612054",
"0.6561198",
"0.65191585",
"0.64860505",
"0.6485378",
"0.6466885",
"0.6408234",
"0.6348941",
"0.63302237",
"0.63248... | 0.80787075 | 1 |
Test parent (base) class model. | def GOtQ(YKHO):
print(' Testing HydrologicalModel (parent class).')
jqkm = fSaz(YKHO.soil, YKHO.porous, YKHO.k_hc, YKHO.theta.res, YKHO.dz)
BW8W = oyIN.linspace(YKHO.theta.max, YKHO.theta.min, YKHO.z_grid.size)
hfnr, NUGY = jqkm.pressure_head(BW8W, YKHO.z_grid)
YKHO.assertEqual(BW8W.shape, hfnr.shap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tgaj(YKHO):\n BdN0 = mv1M()\n YKHO.assertIsInstance(BdN0, KcDH)",
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def PFh0(YKHO):\n P7... | [
"0.8072037",
"0.77677304",
"0.77677304",
"0.77677304",
"0.77575433",
"0.7719879",
"0.7696835",
"0.7646363",
"0.76197225",
"0.76197195",
"0.7615422",
"0.75248307",
"0.75174063",
"0.7517064",
"0.7484935",
"0.7475733",
"0.7440529",
"0.7430877",
"0.7428447",
"0.7415289",
"0.73950... | 0.0 | -1 |
Return the text from file | def gFHi(YKHO):
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCBU(gIsw: str):\n with open(gIsw, 'r') as nUeQ:\n l5Ny = nUeQ.read()\n return l5Ny",
"def gFHi(Ux0P):\n OwN0 = open(Ux0P, 'r')\n l5Ny = OwN0.read()\n OwN0.close()\n return l5Ny",
"def Nwr9(YKHO, nUeQ):\n with open(nUeQ) as eHNT:\n l5Ny = eHNT.read()\n return l5Ny",
... | [
"0.8556149",
"0.826445",
"0.82440794",
"0.819756",
"0.8094456",
"0.8021486",
"0.8019419",
"0.7996907",
"0.7962392",
"0.7942245",
"0.79276794",
"0.7921513",
"0.7910499",
"0.7910499",
"0.79035294",
"0.79016095",
"0.7843213",
"0.7833811",
"0.7803591",
"0.7760635",
"0.7757444",
... | 0.0 | -1 |
Sums up edge weights by adding the minum of w1 and w2. This results in lower weighted edges for margin figures. | def QGrX(YAq3, s1k6, xMw6):
return YAq3 + min(s1k6, xMw6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QKPw(YAq3, s1k6, xMw6):\n return YAq3 + s1k6 + xMw6",
"def ISwF(YAq3, s1k6, xMw6):\n return YAq3 + max(s1k6, xMw6)",
"def Sv4c(WKvO, yzQ0, Fg_i):\n return oyIN.dot(yzQ0, WKvO) + Fg_i",
"def hG8K(YKHO):\n YKHO.weighted_sum = YKHO.dominant + YKHO.heterozyg + YKHO.recess * YKHO.weight_recess\n ... | [
"0.81608665",
"0.7474435",
"0.6580472",
"0.6250302",
"0.6240015",
"0.6187681",
"0.6179708",
"0.6114878",
"0.6110095",
"0.6043179",
"0.6012913",
"0.59489995",
"0.59465545",
"0.594324",
"0.59161973",
"0.59013635",
"0.58832514",
"0.58832514",
"0.58771634",
"0.5872965",
"0.587017... | 0.85272235 | 0 |
Helper function to randomly jitter an image. Inputs | def bHg_(YKHO, EcVT, YRSS, rUT8):
if YRSS != 0:
LFlW = EcVT[:, :, :, :-YRSS]
_tIi = EcVT[:, :, :, -YRSS:]
EcVT = ht2j.cat([_tIi, LFlW], dim=3)
if rUT8 != 0:
tlxW = EcVT[:, :, :-rUT8]
es2x = EcVT[:, :, -rUT8:]
EcVT = ht2j.cat([es2x, tlxW], dim=2)
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBEK(d6hw, Ehsf):\n if ZylS.random.uniform(()) > 0.5:\n d6hw = ZylS.image.flip_left_right(d6hw)\n Ehsf = ZylS.image.flip_left_right(Ehsf)\n return (d6hw, Ehsf)",
"def bHg_(YKHO, aM8h=1.0):\n for YFMp in YKHO.stars:\n YFMp.x += tuKI.uniform(-0.1, 0.1) * aM8h\n YFMp.y += tu... | [
"0.78776455",
"0.68649834",
"0.6683707",
"0.6645608",
"0.6630081",
"0.66291106",
"0.6532789",
"0.64899254",
"0.6460373",
"0.64111185",
"0.63977194",
"0.6350477",
"0.63203853",
"0.62443745",
"0.6214216",
"0.62105864",
"0.61815923",
"0.61571896",
"0.61564",
"0.61520153",
"0.612... | 0.0 | -1 |
An analysis note associated with this image, in the form "providers/{provider_id}/notes/{NOTE_ID}" This field can be used as a filter in list requests. | def kj_s(YKHO) -> str:
return qe4Y.get(YKHO, 'note_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fytP(YKHO, ZkWT):\n return Eorv.Note(YKHO, ZkWT)",
"def vQi2(Emd4, bNKA, fytP):\n return yszQ.api_core.path_template.expand('projects/{project}/notes/{note}', project=bNKA, note=fytP)",
"def fytP(YKHO) -> str:\n return YKHO._note",
"def fytP(YKHO) -> str:\n return YKHO._note",
"def fytP(YKH... | [
"0.6954827",
"0.6718655",
"0.6660337",
"0.6660337",
"0.66259414",
"0.6592972",
"0.6592972",
"0.6592972",
"0.6592972",
"0.65385294",
"0.65358126",
"0.65358126",
"0.65358126",
"0.65358126",
"0.64533466",
"0.644678",
"0.64250815",
"0.64250815",
"0.63657033",
"0.63504976",
"0.632... | 0.617981 | 26 |
The resource for which the `Occurrence` applies. | def Eorv(YKHO) -> 'outputs.ResourceResponse':
return qe4Y.get(YKHO, 'resource') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eorv(YKHO):\n return YKHO._resource",
"def Eorv(YKHO):\n return YKHO._resource",
"def Eorv(YKHO):\n return YKHO.rel.resource",
"def Eorv(YKHO):\n return YKHO.__resource",
"def HeD1(YKHO):\n return YKHO.__resource",
"def h5lY(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'o... | [
"0.6797636",
"0.6797636",
"0.675326",
"0.6747143",
"0.66393965",
"0.64790636",
"0.6379611",
"0.63773954",
"0.63773954",
"0.63773954",
"0.63773954",
"0.63168436",
"0.6312122",
"0.6299058",
"0.62678736",
"0.62501556",
"0.62021285",
"0.61909485",
"0.6185712",
"0.61636984",
"0.61... | 0.595237 | 35 |
The time this `Occurrence` was last updated. | def nP7s(YKHO) -> str:
return qe4Y.get(YKHO, 'update_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvUt(YKHO):\n return YKHO._time_updated",
"def lvUt(YKHO):\n return YKHO._time_updated",
"def dKMA(YKHO):\n return YKHO.__time_of_update",
"def Vit6(YKHO):\n return YKHO._last_update_time",
"def rFdo(YKHO):\n return YKHO._timestamp_updated",
"def h1VT(YKHO):\n return YKHO.updated_at... | [
"0.8076149",
"0.8076149",
"0.7988391",
"0.78623885",
"0.7742279",
"0.7553177",
"0.7498075",
"0.74952704",
"0.74937934",
"0.7488665",
"0.746851",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.74577",
"0.7453418",
"0.7446301",
"0... | 0.7147227 | 59 |
Sets the password for the current user | def G3s8(YKHO, Ud05):
YKHO.password = Mi51.generate_password_hash(Ud05, length=12) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n D2... | [
"0.8421227",
"0.83919495",
"0.83728826",
"0.8200143",
"0.8146703",
"0.8132655",
"0.8098275",
"0.8047554",
"0.80446357",
"0.80377114",
"0.8020232",
"0.7999955",
"0.7906835",
"0.7897755",
"0.7897755",
"0.7886373",
"0.78732926",
"0.787319",
"0.7871622",
"0.78272945",
"0.78272945... | 0.7528742 | 69 |
Tests that disabling signup takes effect | def n7Ii(x0hE, XCd6):
XCd6.signup_allowed = False
geh0 = x0hE.get('/auth/signup/')
Gmll(geh0, "We're not accepting new users at this time", status_code=200)
Ikik(geh0, '<button>Create</button>')
XCd6.signup_text = 'Go away!!!!!!'
geh0 = x0hE.get('/auth/signup/')
Gmll(geh0, 'Go away!!!!!!', s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jW62(YKHO):\n YKHO.disabled_account()",
"def zJe8(YKHO):\n llCY = EDDD.objects.get(slug='ident2')\n BGqR = {'email': 'BamBam@Example.com', 'organization_name': 'transhealth', 'password1': 'BEDrocks@123', 'password2': 'BEDrocks@123', 'first_name': 'BamBam', 'last_name': 'Rubble', 'identification_choi... | [
"0.7720323",
"0.72845167",
"0.7206999",
"0.7087622",
"0.7087622",
"0.7087622",
"0.7086013",
"0.7082674",
"0.7046453",
"0.7023391",
"0.7010692",
"0.69930726",
"0.692866",
"0.68935114",
"0.68907875",
"0.6849049",
"0.6844331",
"0.6833198",
"0.68217266",
"0.6805918",
"0.6804725",... | 0.7826917 | 0 |
Shorten a string given a maximum length. Longer strings will be shortened and the rest replaced by ... | def LLEV(Mqf_, KLk8=20):
Mqf_ = str(Mqf_)
if len(Mqf_) > KLk8:
return Mqf_[:KLk8 - 3] + '...'
else:
return Mqf_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KN3f(vIwR, u54L=10):\n return vIwR if len(vIwR) <= u54L else vIwR[:u54L]",
"def KBYu(vIwR: str, u54L=100) -> str:\n if len(vIwR) <= u54L:\n return vIwR\n else:\n return vIwR[:u54L] + '...'",
"def QM_R(KCHu: str, KLk8: int=32):\n if len(KCHu) > KLk8:\n KCHu = KCHu[:KLk8 - 3]... | [
"0.832756",
"0.82203823",
"0.8173943",
"0.80262035",
"0.80160445",
"0.754198",
"0.75055283",
"0.7474751",
"0.741047",
"0.74089605",
"0.73847026",
"0.7359548",
"0.7338472",
"0.7335529",
"0.72598714",
"0.7217276",
"0.7176764",
"0.7158154",
"0.715695",
"0.71375906",
"0.70900995"... | 0.7472264 | 8 |
The basename of this path. | def aPr_(YKHO):
return Hy7s.path.basename(YKHO.path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPr_(YKHO):\n return aPr_(YKHO.path)",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO._path)",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO._name)",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO.name)",
"def aPr_(YKHO):\n return GkAb(Hy7s.path.basename(YKHO))",
"def aPr_(YK... | [
"0.93281054",
"0.93190193",
"0.9089059",
"0.90848655",
"0.90238523",
"0.8997288",
"0.8953276",
"0.88925874",
"0.887405",
"0.88537353",
"0.88268226",
"0.8768085",
"0.84351754",
"0.8422806",
"0.83945435",
"0.83945435",
"0.83945435",
"0.83417577",
"0.82621074",
"0.8200186",
"0.8... | 0.9331838 | 0 |
Clear the parts dictionary. This resets the splitter for the next file. | def BpHm(YKHO):
YKHO.parts = U8Lr()
YKHO.count = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n YKHO.metadata = dict()\n YKHO.filename = None\n YKHO.items = []\n YKHO._lineno = 0",
"def WcMc(YKHO) -> None:\n super().clear_all()\n YKHO.splitLines = oRi_(dict)\n YKHO.last_ix = 0\n YKHO.last_picture = CsJA.QPicture()",
"def Y7Bk(YKHO):\n YKHO.sections = dict()",
... | [
"0.674936",
"0.6690559",
"0.6500258",
"0.6397077",
"0.6340792",
"0.62698793",
"0.62532026",
"0.6240926",
"0.6230586",
"0.62143826",
"0.6149264",
"0.6126402",
"0.6102851",
"0.6075074",
"0.6058214",
"0.60451555",
"0.6038916",
"0.6033077",
"0.6033077",
"0.60310155",
"0.60197437"... | 0.815081 | 0 |
Get the parent tags of the milestone. | def HqGg(iIep):
return [(_AKB.tag, _AKB.attrib) for _AKB in iIep.iterancestors()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ym5H(YKHO) -> qe4Y.Output[h8nf[bdIy[str]]]:\n return qe4Y.get(YKHO, 'parent_ids')",
"def Ym5H(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'parent_ids')",
"def Ym5H(YKHO):\n return YKHO._parent_ids",
"def c98X(YKHO):\n return YKHO._parent_tag_id",
"def rKzm(YKHO... | [
"0.67562467",
"0.66085106",
"0.65188783",
"0.6285649",
"0.6194437",
"0.61887115",
"0.61498076",
"0.6121016",
"0.6083528",
"0.60834914",
"0.6066772",
"0.6039655",
"0.60166746",
"0.5978506",
"0.5977078",
"0.5977078",
"0.5977078",
"0.5970869",
"0.59663963",
"0.5958002",
"0.59554... | 0.7820463 | 0 |
Takes a sentence as an input variable, and prints the sentences in a vertical fashion by organizing the letters in the sentence into lists.. | def b8V_():
_dZy = input('Enter a sentence: ')
R60V = _dZy.split()
Xg1X = []
RIYO = ''
for GIN8 in R60V:
if len(RIYO) < len(GIN8):
RIYO = GIN8
for GIN8 in R60V:
for YRbF in range(len(RIYO)):
if len(Xg1X) < YRbF + 1 or len(Xg1X) == 0:
if len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uS4r(Rhv4):\n for yAmx in Rhv4:\n print(yAmx)\n KG9w = Wswm.polarity_scores(yAmx)\n for G1Hx in sorted(KG9w):\n print('{0}: {1}, '.format(G1Hx, KG9w[G1Hx]), end='')\n print()",
"def OUJY():\n while True:\n yAmx = input('Type a sentence: \\n')\n print('\\n')\n ... | [
"0.6456994",
"0.64131856",
"0.6118456",
"0.60992646",
"0.60830665",
"0.6070292",
"0.6067358",
"0.6049992",
"0.6041724",
"0.599052",
"0.59901243",
"0.5905241",
"0.5772677",
"0.5750678",
"0.57458735",
"0.5706366",
"0.57055765",
"0.5672272",
"0.5671897",
"0.5667064",
"0.5650493"... | 0.69397086 | 0 |
Get the cross product of this vector x other | def XHzM(YKHO, iArr):
return lNLu(YKHO.getY() * iArr.getZ() - YKHO.getZ() * iArr.getY(), YKHO.getZ() * iArr.getX() - YKHO.getX() * iArr.getZ(), YKHO.getX() * iArr.getY() - YKHO.getY() * iArr.getX()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(YKHO, Elif: 'vec') -> 'vec':\n WKvO, LVAh, epBp, *bGrB = YKHO.array\n jzdc, Fg_i, Z9rn, *bGrB = Elif.array\n return he6J(LVAh * Z9rn - Fg_i * epBp, WKvO * Z9rn - jzdc * epBp, WKvO * Fg_i - jzdc * LVAh)",
"def WHx2(YKHO, Elif: array_like) -> lNLu:\n Yipr = YKHO.set_dimension(3)\n Vkf3 = lN... | [
"0.8450445",
"0.8293458",
"0.8269957",
"0.8181224",
"0.8140311",
"0.81102425",
"0.8088283",
"0.7909219",
"0.7873361",
"0.7854363",
"0.7834939",
"0.7824244",
"0.77650833",
"0.77349937",
"0.7686918",
"0.7674082",
"0.7669456",
"0.7658615",
"0.76581085",
"0.76458657",
"0.7620644"... | 0.75688875 | 22 |
Get magnitude of vector | def LzFg(YKHO):
return float(YKHO.getX()) ** 2 + float(YKHO.getY()) ** 2 + float(YKHO.getZ()) ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))",
"def Y... | [
"0.8678753",
"0.85725",
"0.84529394",
"0.8402578",
"0.8194481",
"0.8152069",
"0.79915583",
"0.7936817",
"0.792254",
"0.78941107",
"0.77675974",
"0.7590183",
"0.7578387",
"0.75262046",
"0.75083345",
"0.7490462",
"0.74740773",
"0.7437899",
"0.7409196",
"0.7366005",
"0.73584944"... | 0.70544547 | 38 |
Decorate a function or class by storing the value under specific key. | def uk7r(a1PO: typing.Any, mWFP: str, BWXx: typing.Any) -> None:
if hasattr(a1PO, '__wrapped__') and hasattr(a1PO.__wrapped__, vLTe):
setattr(a1PO, vLTe, a1PO.__wrapped__.__decorest__)
if not hasattr(a1PO, vLTe):
setattr(a1PO, vLTe, {})
RfPw(getattr(a1PO, vLTe), mWFP, BWXx)
if tq_1.iscla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AuU4(YKHO, H5ew, BWXx):\n YKHO.internal_data[H5ew] = BWXx\n return YKHO",
"def eLiz(Sm6L):\n\n def mrMx(_KMa):\n nPrm = {}\n\n def H3v_(YKHO, *qIxc, **YSA3):\n hU8D = Sm6L(_KMa, qIxc, YSA3, nPrm)\n if nPrm.has_key(hU8D):\n return nPrm[hU8D]\n ... | [
"0.71007115",
"0.7069824",
"0.7024849",
"0.6819913",
"0.6684171",
"0.6530484",
"0.64673185",
"0.6442016",
"0.64191794",
"0.6383072",
"0.6358775",
"0.6310751",
"0.6237625",
"0.6229213",
"0.6215281",
"0.6192555",
"0.6158658",
"0.6136317",
"0.61176354",
"0.61137444",
"0.60849357... | 0.59558934 | 28 |
Return http method decor value. | def Q080(a1PO: typing.Any) -> BnLt:
return laHg.cast(BnLt, rPPD(a1PO, 'http_method')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GjSa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO):\n return YKHO.__http_method",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO):\... | [
"0.74767804",
"0.73952574",
"0.7269247",
"0.7269247",
"0.7183592",
"0.6942217",
"0.6942217",
"0.6924904",
"0.6838489",
"0.6811599",
"0.67999095",
"0.67152005",
"0.66235256",
"0.6612641",
"0.6612641",
"0.65975434",
"0.65704644",
"0.6551319",
"0.6491837",
"0.6452214",
"0.642190... | 0.7771446 | 0 |
Return a http 400 error to client | def SZ_t(Wehb):
return Yxsy(pz3A({'error': str(Wehb)}), 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1ZN(tTpl):\n return geh0('failed', 'Bad Request', 400)",
"def FNWm(P1dF):\n dsE5 = wVCK.format_exc()\n return (TvZl('error.html', error=P1dF, title='Bad Request', message='Your request was invalid, please try again.', debug=dsE5), 400)",
"def _ef9(XObx):\n geh0 = {'error_code': 400, 'error_mes... | [
"0.814407",
"0.7985199",
"0.7947749",
"0.7935204",
"0.78902185",
"0.78558296",
"0.783247",
"0.7767436",
"0.7741555",
"0.7725561",
"0.76946586",
"0.76017636",
"0.75362104",
"0.75345737",
"0.753274",
"0.7520093",
"0.75043964",
"0.7503644",
"0.7502347",
"0.73542976",
"0.7339486"... | 0.78476495 | 6 |
Return a http 500 error to client | def D8YB(Wehb):
return Yxsy(pz3A({'error': 'Server error'}), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1yd(tTpl):\n return geh0('failed', 'Internal server error', 500)",
"def D8YB(Wehb):\n return Yxsy(pz3A({'error': 'Server error'}), 500)",
"def r1yd(tTpl):\n return (TvZl('500.html'), 500)",
"async def server_error(QePW, BQDi):\n rPXJ = '500.html'\n QpfX = {'request': QePW}\n return Dql... | [
"0.8299731",
"0.8145342",
"0.81086797",
"0.8086632",
"0.80865896",
"0.8061641",
"0.8040759",
"0.79916304",
"0.79539174",
"0.79461384",
"0.7896915",
"0.78894085",
"0.78813106",
"0.78608763",
"0.7829568",
"0.78211343",
"0.7780582",
"0.7772348",
"0.77661306",
"0.7739622",
"0.773... | 0.80516744 | 6 |
Adds an item at the front of Deque. Return true if the operation is successful. | def ZK_O(YKHO, BWXx):
if YKHO.isFull():
return False
if YKHO.isEmpty():
YKHO._queue.append(BWXx)
else:
YKHO._queue.insert(0, BWXx)
YKHO._size = YKHO._size + 1
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZK_O(YKHO, BWXx: int) -> bool:\n if YKHO.isFull():\n return False\n elif YKHO.isEmpty():\n return YKHO.insertWhenEmpty(BWXx)\n YKHO.cur_size += 1\n Esd_ = Msxl(val=BWXx, next=YKHO.head)\n YKHO.head.prev = Esd_\n YKHO.head = YKHO.head.prev\n return True",
"def ZK_O(YKHO, BWX... | [
"0.72718346",
"0.7174669",
"0.71718955",
"0.7086344",
"0.69328046",
"0.6883527",
"0.6835125",
"0.6818041",
"0.6771861",
"0.6754106",
"0.6724595",
"0.6688478",
"0.66819936",
"0.66795385",
"0.66795385",
"0.66754466",
"0.6650821",
"0.66504294",
"0.6614927",
"0.6612182",
"0.65810... | 0.7570838 | 0 |
Adds an item at the rear of Deque. Return true if the operation is successful. | def gWl1(YKHO, BWXx):
if YKHO.isFull():
return False
YKHO._queue.append(BWXx)
YKHO._size = YKHO._size + 1
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, ZfUD):\n if ZfUD in YKHO.myList:\n return False\n else:\n YKHO.myList.append(ZfUD)\n return True",
"def VUF1(YKHO, ZfUD) -> bool:\n if YKHO.get_num() < YKHO.capacity:\n YKHO._content.append(ZfUD)\n return True\n return False",
"def H2v5(YKHO, ZfUD):... | [
"0.7160943",
"0.7115998",
"0.7023504",
"0.67890173",
"0.6746912",
"0.66979",
"0.6684598",
"0.6673152",
"0.66661114",
"0.66607106",
"0.6644701",
"0.66280365",
"0.66280365",
"0.6591962",
"0.6526666",
"0.6511851",
"0.6500083",
"0.64399123",
"0.6436804",
"0.6436804",
"0.6434311",... | 0.6218056 | 44 |
Get the front item from the deque. | def uW34(YKHO):
if YKHO.isEmpty():
return -1
else:
return YKHO._queue[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.items[0]",
"def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n else:\n return None",
"def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n return None",
"def cntZ(YKHO):\n if ... | [
"0.87317884",
"0.8465194",
"0.839617",
"0.82647115",
"0.8083409",
"0.8074129",
"0.8067822",
"0.80011654",
"0.79766244",
"0.79582584",
"0.79335564",
"0.79233044",
"0.7906495",
"0.790061",
"0.790061",
"0.790061",
"0.78765345",
"0.78699166",
"0.7832564",
"0.7830898",
"0.7819478"... | 0.8210901 | 4 |
Get the last item from the deque. | def Ugyj(YKHO):
if YKHO.isEmpty():
return -1
else:
return YKHO._queue[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._back]",
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element",
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is ... | [
"0.8493796",
"0.8359266",
"0.8107173",
"0.8061313",
"0.799166",
"0.792295",
"0.7902339",
"0.78942436",
"0.7700365",
"0.7699835",
"0.7677005",
"0.76743865",
"0.76688874",
"0.7640168",
"0.7640168",
"0.7620754",
"0.758345",
"0.75770813",
"0.75484616",
"0.7541264",
"0.75280315",
... | 0.7189814 | 70 |
Checks whether the circular deque is empty or not. | def A4KR(YKHO):
return YKHO._size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO._deque) == 0",
"def FBfn(YKHO):\n return YKHO._front is None",
"def lsmZ(YKHO) -> bool:\n return len(YKHO.deque1) == 0 and len(YKHO.deque2) == 0",
"def lsmZ(YKHO) -> bool:\n return len(YKHO.que) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def ... | [
"0.86032426",
"0.79966164",
"0.79542273",
"0.7925744",
"0.7881915",
"0.7873531",
"0.78298223",
"0.7810742",
"0.7803658",
"0.77928865",
"0.77693456",
"0.7759985",
"0.77465117",
"0.77418745",
"0.77280533",
"0.7726188",
"0.77209777",
"0.77172345",
"0.77133477",
"0.77036124",
"0.... | 0.0 | -1 |
Checks whether the circular deque is full or not. | def Yykn(YKHO):
return YKHO._size == YKHO._capacity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO._deque) == 0",
"def Yykn(YKHO):\n return YKHO.tail - YKHO.head == len(YKHO.q)",
"def Yykn(YKHO) -> bool:\n return YKHO.data_num == len(YKHO.data_in_queue)",
"def Yykn(YKHO):\n return (YKHO.tail + 1) % YKHO.size == YKHO.head",
"def Yykn(YKHO):\n return YKHO.q... | [
"0.7881675",
"0.7768392",
"0.77641135",
"0.7700227",
"0.76946694",
"0.76946694",
"0.7557425",
"0.7516949",
"0.750634",
"0.75000596",
"0.7434022",
"0.743307",
"0.7382201",
"0.73171866",
"0.73024684",
"0.72590595",
"0.7250457",
"0.7244153",
"0.724164",
"0.72408795",
"0.72404826... | 0.726134 | 15 |
Expands array into 2d array with dimdim | def H20U(poNe, tpio):
return [[poNe] * tpio] * tpio | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ynIy(qw7D, iSU7, GCHw):\n WWEv, GXwg = qw7D.shape\n if WWEv != GCHw or GXwg != iSU7:\n if WWEv != GCHw:\n OMs9 = oyIN.zeros((GCHw, GXwg), dtype=bool)\n JCr6 = abs((GCHw - WWEv) // 2)\n if WWEv < GCHw:\n OMs9[JCr6:JCr6 + WWEv, :] = qw7D\n e... | [
"0.726418",
"0.6998853",
"0.69301915",
"0.6865466",
"0.68175477",
"0.672161",
"0.6608495",
"0.6559006",
"0.6506441",
"0.65006125",
"0.64613676",
"0.645647",
"0.64538586",
"0.64519966",
"0.6401144",
"0.6388305",
"0.6376006",
"0.6374383",
"0.6364743",
"0.6345859",
"0.6335766",
... | 0.74068993 | 0 |
Returns all values in settings. Same as ``dict.values()`` Does return sections, does not returns values of sections. All values are resolved by the resolver | def hkxX(YKHO):
hkxX = []
for H5ew in YKHO.keys():
hkxX.append(YKHO.get(H5ew))
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCuF(YKHO):\n return {aoD7.key: aoD7.value for aoD7 in YKHO.values.values()}",
"def o0Y5(Emd4):\n gCuF = fvfo.copy()\n for YqMg in fvfo:\n BWXx, s537 = Emd4.GetItem(YqMg)\n gCuF[YqMg]['value'] = BWXx\n gCuF[YqMg]['mtime'] = s537\n return gCuF",
"def EUAM(YKHO):\n gCuF = ... | [
"0.69814146",
"0.68838274",
"0.67963564",
"0.67028826",
"0.6697066",
"0.6649582",
"0.65562695",
"0.6464742",
"0.6416191",
"0.6407561",
"0.6388409",
"0.63781774",
"0.6362562",
"0.63362247",
"0.631958",
"0.62719375",
"0.62567365",
"0.6192505",
"0.6192137",
"0.6191243",
"0.61819... | 0.6072452 | 31 |
Returns tulpes of (key, value) of all settings in settingsobject. Same as ``dict.items()`` Does return sections, does not returns key or values of sections. All values are resolved by the resolver | def DumB(YKHO):
return [(H5ew, YKHO.get(H5ew)) for H5ew in YKHO.keys()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCuF(YKHO):\n return {aoD7.key: aoD7.value for aoD7 in YKHO.values.values()}",
"def o0Y5(Emd4):\n gCuF = fvfo.copy()\n for YqMg in fvfo:\n BWXx, s537 = Emd4.GetItem(YqMg)\n gCuF[YqMg]['value'] = BWXx\n gCuF[YqMg]['mtime'] = s537\n return gCuF",
"def bdzr(YKHO):\n YEnM = ... | [
"0.721024",
"0.68506426",
"0.68366563",
"0.68100655",
"0.6558281",
"0.6506083",
"0.64466256",
"0.64268607",
"0.64211744",
"0.6416641",
"0.6361281",
"0.62871873",
"0.6285461",
"0.62534004",
"0.62007064",
"0.61750823",
"0.6137458",
"0.60937977",
"0.60545105",
"0.6037964",
"0.60... | 0.0 | -1 |
Turns a binary string (e.g. '010101001') and returns a string assuming 8 bits per character and ascii encoding | def NeMM(KCHu):
gXtX = []
for YRbF in range(0, len(KCHu), 8):
gXtX.append(int(KCHu[YRbF:YRbF + 8], 2))
return ''.join([chr(WKvO) for WKvO in gXtX]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePfh(vIwR):\n hlel = ''.join(('{0:08b}'.format(ord(WKvO), 'b') for WKvO in vIwR))\n return hlel",
"def Q_TS(vIwR: str) -> str:\n return ''.join((format(ord(YRbF), '08b') for YRbF in vIwR))",
"def wo0c(str):\n return bin(int(MRxC.hexlify(str.encode()), 16))[2:].zfill(8 * len(str))",
"def KcCf(... | [
"0.84404767",
"0.8355717",
"0.83246917",
"0.8270078",
"0.8050515",
"0.8050515",
"0.8009017",
"0.77253836",
"0.76409614",
"0.7634135",
"0.7605534",
"0.7599305",
"0.7563637",
"0.75455576",
"0.75122654",
"0.74732035",
"0.74381214",
"0.74002934",
"0.7388331",
"0.73298436",
"0.728... | 0.81573665 | 4 |
Creates a Wide Residual Network with specified parameters | def IXR_(Gzv5, Ybg9=10, ywwl=2, G1Hx=1, hr1G=0.0, K0do='adam', QxIo=True):
D8Ke = X6a0(shape=Gzv5)
WKvO = l2Dx((1, 1))(D8Ke)
UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1
WKvO = Ofph(16, (3, 3), padding='same', kernel_initializer='he_normal', use_bias=False)(WKvO)
a5sD = 4
WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AIgw(Gzv5, Ybg9=100, ywwl=2, G1Hx=1, hr1G=0.0, PJWX=1):\n UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1\n D8Ke = X6a0(shape=Gzv5)\n WKvO = mREb(D8Ke)\n a5sD = 4\n WKvO = YX62(WKvO, 16, G1Hx)\n a5sD += 2\n for YRbF in range(ywwl - 1):\n WKvO = zbvx(WKvO, G1Hx, hr1G... | [
"0.70791936",
"0.6838616",
"0.67497855",
"0.6529774",
"0.652093",
"0.6501106",
"0.6501106",
"0.6501106",
"0.65010846",
"0.6491291",
"0.6482949",
"0.64251196",
"0.6321116",
"0.6257544",
"0.62431294",
"0.6232401",
"0.61768514",
"0.6169994",
"0.6147388",
"0.60770476",
"0.6077047... | 0.5887003 | 33 |
Creates a profile picture | def l3bg(YKHO, QePW):
ZMzz = m3kY(data=QePW.data, context={'request': QePW})
if ZMzz.is_valid():
qUH8.objects.upload(QePW.user, ZMzz.validated_data, QePW.user.profile)
wLKY = hq_r(QePW.user, context={'request': QePW}).data
wLKY.update({'success': str(bGrB('Profile picture was added succe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nOYp(Q5YQ):\n if Q5YQ.sex == 'F':\n Q5YQ.profile_picture = 'https://www.w3schools.com/w3images/avatar6.png'\n else:\n Q5YQ.profile_picture = 'https://www.w3schools.com/howto/img_avatar.png'",
"def v9gf():\n SGll = gW4U.models.UserProfile.objects.get_or_create(DOB='1990-01-01', profileP... | [
"0.7203007",
"0.7181028",
"0.71465445",
"0.7137418",
"0.7130437",
"0.7086955",
"0.70271635",
"0.70240605",
"0.6908622",
"0.6828365",
"0.68068534",
"0.67634827",
"0.66882914",
"0.66285056",
"0.6589183",
"0.65739816",
"0.6552073",
"0.6551571",
"0.65474397",
"0.6537391",
"0.6474... | 0.6441046 | 22 |
Return a unique identifier for this sensor. | def ShR8(YKHO):
return f'{YKHO._device.uuid}-SENSOR' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return f'{YKHO._zehnder.unique_id}-{YKHO._sensor_type}'",
"def ShR8(YKHO):\n return f'{YKHO.location_name}_{YKHO.sensor_name}'",
"def ShR8(YKHO) -> str:\n return '{}-{}'.format(YKHO.flume.device_id, YKHO.s... | [
"0.90220845",
"0.8565349",
"0.8558497",
"0.8541829",
"0.850959",
"0.84384495",
"0.8308782",
"0.82889277",
"0.817837",
"0.81560045",
"0.8150329",
"0.81493855",
"0.8130824",
"0.81275195",
"0.8077621",
"0.8077621",
"0.8024157",
"0.80190665",
"0.80112994",
"0.8005897",
"0.8002561... | 0.8775389 | 1 |
Return the device class. | def rM2U(YKHO) -> str:
return _Ne7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return YKHO._class",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
... | [
"0.93540233",
"0.9202765",
"0.9180319",
"0.91749567",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.9162649",
"0.91477996",
... | 0.8576016 | 42 |
The raw magnetometer sensor values. A 3tuple of X, Y, Z axis values that are 16bit signed integers. | def cf26(YKHO) -> AzJI[int, int, int]:
YKHO._read_bytes(YKHO._mag_device, RJ7Q, 6, YKHO._BUFFER)
Iz2h = BlNT.unpack_from('>hhh', YKHO._BUFFER[0:6])
return (Iz2h[0], Iz2h[2], Iz2h[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quxV(YKHO):\n WKvO, LVAh, epBp = YKHO._read_vector(JSk8)\n return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)",
"def quxV(YKHO):\n WKvO, LVAh, epBp = YKHO._read_vector(YKHO.BNO055_MAG_DATA_X_LSB_ADDR)\n return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)",
"def hWXE(YKHO):\n YKHO._read_bytes(QoDP, 12... | [
"0.80652237",
"0.80384815",
"0.7848038",
"0.75667346",
"0.71838593",
"0.69418967",
"0.6910035",
"0.69064474",
"0.67980915",
"0.6725917",
"0.6722201",
"0.6667446",
"0.6666126",
"0.6648682",
"0.6587073",
"0.6562434",
"0.6558023",
"0.65458494",
"0.6536555",
"0.6502399",
"0.64992... | 0.81588787 | 0 |
The processed magnetometer sensor values. A 3tuple of X, Y, Z axis values in microteslas that are signed floats. | def f3Cy(YKHO) -> AzJI[float, float, float]:
Fmgk, oTj8, vCui = YKHO._raw_magnetic
return (Fmgk / YKHO._lsm303mag_gauss_lsb_xy * tBSa, oTj8 / YKHO._lsm303mag_gauss_lsb_xy * tBSa, vCui / YKHO._lsm303mag_gauss_lsb_z * tBSa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quxV(YKHO):\n WKvO, LVAh, epBp = YKHO._read_vector(JSk8)\n return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)",
"def quxV(YKHO):\n WKvO, LVAh, epBp = YKHO._read_vector(YKHO.BNO055_MAG_DATA_X_LSB_ADDR)\n return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)",
"def cf26(YKHO) -> AzJI[int, int, int]:\n YK... | [
"0.7623357",
"0.7488844",
"0.71232235",
"0.69354546",
"0.6855202",
"0.6822498",
"0.67908704",
"0.6734215",
"0.6698458",
"0.6622101",
"0.66194165",
"0.6577982",
"0.65490824",
"0.6538063",
"0.64734197",
"0.6462121",
"0.6420831",
"0.6411795",
"0.6409592",
"0.6388502",
"0.6344521... | 0.69037414 | 4 |
Return the result of broadcasting `shapes` against each other | def cNDX(ihqc):
oXV0 = 0
for ROpF in ihqc:
if len(ROpF) > oXV0:
oXV0 = len(ROpF)
for ROpF in ihqc:
for tpio in ROpF:
if tpio == 0:
return tuple([0] * oXV0)
for YRbF in range(len(ihqc)):
ihqc[YRbF] = [1] * (oXV0 - len(ihqc[YRbF])) + list(ihq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTng(*qIxc):\n beVf = [qw7D.shape for qw7D in qIxc]\n return W5qX(beVf)",
"def r7ZB(*N8OZ):\n M7eq = ()\n for ROpF in N8OZ:\n try:\n M7eq = r_Ew(ROpF, M7eq)\n except ValueError:\n CjX1 = ', '.join((str(ROpF) for ROpF in N8OZ))\n raise ValueError('ope... | [
"0.7154889",
"0.6962901",
"0.6901567",
"0.6881443",
"0.6873983",
"0.6848804",
"0.6717165",
"0.6593192",
"0.6578639",
"0.6550875",
"0.6532965",
"0.65210485",
"0.6508627",
"0.6460137",
"0.63627076",
"0.6341302",
"0.63403416",
"0.6340287",
"0.6296877",
"0.6256376",
"0.6247566",
... | 0.531759 | 71 |
Name of the Resource group within the Azure subscription. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso... | [
"0.8760255",
"0.8760255",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
"0.83906406",
... | 0.7925582 | 43 |
The Id of the frontdoor. | def AV0G(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'frontdoor_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._gnome_id.id",
"def unpH(YKHO):\n return",
"def unpH(YKHO):\n return",
"def id(YKHO):\n return YKHO._impl.id",
"def id(YKHO):\n return YKHO.__userdata('id')",
"def ShR8(YKHO):\n return YKHO._zlight.id.lower()",
"def hbFX(YKHO) -> str:\n return YKHO.scree... | [
"0.7727389",
"0.74893326",
"0.74893326",
"0.73685014",
"0.7327524",
"0.73161584",
"0.73091984",
"0.7279759",
"0.7260398",
"0.7260398",
"0.7256252",
"0.7256252",
"0.7255132",
"0.7255132",
"0.7255132",
"0.7255132",
"0.7252284",
"0.7244454",
"0.7244454",
"0.7244454",
"0.7244454"... | 0.84473276 | 0 |
Provisioning state of the Front Door. | def mX_9(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'provisioning_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e25T(YKHO):\n YKHO.log.info('set provisioned')\n YKHO.write_is_provisioned_flag(True)",
"def mX_9(YKHO) -> str:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> str:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> str:\n return qe4Y.get(YKHO, 'provision... | [
"0.6448859",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"0.6435267",
"... | 0.6428483 | 59 |
Add a ResNet "conv5" / "stage5" head for predicting masks. | def aDFc(C3ST, YBVH, yXjA, lmtw):
C3ST.RoIFeatureTransform(YBVH, blob_out='_[mask]_pool5', blob_rois='mask_rois', method=_Fei.MRCNN.ROI_XFORM_METHOD, resolution=_Fei.MRCNN.ROI_XFORM_RESOLUTION, sampling_ratio=_Fei.MRCNN.ROI_XFORM_SAMPLING_RATIO, spatial_scale=lmtw)
ivFb = _Fei.MRCNN.DILATION
wCNs = int(_Fei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ahMr(C3ST, YBVH, yXjA, lmtw):\n C3ST.RoIFeatureTransform(YBVH, 'pool5', blob_rois='rois', method=_Fei.FAST_RCNN.ROI_XFORM_METHOD, resolution=_Fei.FAST_RCNN.ROI_XFORM_RESOLUTION, sampling_ratio=_Fei.FAST_RCNN.ROI_XFORM_SAMPLING_RATIO, spatial_scale=lmtw)\n LcG_ = _Fei.RESNETS.NUM_GROUPS * _Fei.RESNETS.WID... | [
"0.68507034",
"0.6224617",
"0.62241745",
"0.60968775",
"0.60719204",
"0.6037375",
"0.60260904",
"0.591182",
"0.5902857",
"0.5879249",
"0.58728236",
"0.5856681",
"0.58389014",
"0.58257765",
"0.58252966",
"0.5801795",
"0.57998776",
"0.5798304",
"0.57926756",
"0.5778269",
"0.577... | 0.70515275 | 0 |
Given a struct data representation, return an object of this type. These structures may be primitive Python types (string, integer, boolean, etc.) or complex Python types (lists, tuples, or dicts). If the return type is a dict, then the keys of the dict match the fieldname of the object. If the return struct (or value ... | def _mCZ(YKHO, BlNT):
assert False, 'Needs to be overridden in the derived class' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j7Lm(BlNT: Any, cM24: Type[T]) -> Kt_s:\n if cM24 is type(None):\n if BlNT is None:\n return None\n else:\n raise TypeError(f'Error: Structure \"{BlNT}\" is not None.')\n if cM24 is ImMB or type(cM24) is tnwy:\n return BlNT\n try:\n if type(BlNT) is cM... | [
"0.60842454",
"0.60003024",
"0.59775674",
"0.59007317",
"0.58632666",
"0.58446234",
"0.5786356",
"0.57686865",
"0.57223773",
"0.57146233",
"0.57048637",
"0.56694984",
"0.5667011",
"0.5636967",
"0.56131846",
"0.560291",
"0.56015354",
"0.554058",
"0.55285656",
"0.5467061",
"0.5... | 0.49867132 | 84 |
True if the HTML code is not an error status code | def D8QK(YKHO):
IiO0 = (200, 201, 202, 203, 204)
return YKHO.status_code in IiO0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aK6o(YKHO):\n return YKHO._tag == 'status_error'",
"def kQpU(Wxnj):\n if Wxnj:\n if Wxnj < 200 or Wxnj >= 300:\n return True\n return False",
"def QUgO(YKHO, geh0):\n if geh0.http == 200:\n return True\n tO9_ = 'HTTP ' + str(geh0.http) if geh0.http else geh0.html\n ... | [
"0.7400854",
"0.72883326",
"0.7227817",
"0.72155094",
"0.72099394",
"0.7167169",
"0.7145676",
"0.7145422",
"0.71404713",
"0.7135714",
"0.7122185",
"0.7122185",
"0.7120928",
"0.7117748",
"0.7110878",
"0.71075404",
"0.71075404",
"0.71075404",
"0.71075404",
"0.71075404",
"0.7107... | 0.8328405 | 0 |
Initialize the ODE system with the new conditions, i.e. change the values of state variables depending on the value of an state_event_info list (can be 1, 1, or 0). | def wddR(YKHO, a1PO: float, LVAh: numpy.ndarray, yK2S: List[bool]) -> x1iM[float]:
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tRiF, I_uL, dCb7):\n YKHO.states = {}\n YKHO.coefficients = [[oyIN.array([]) for bGrB in range(3)] for IaaG in range(2)]\n YKHO.elevon_dynamics = False\n YKHO.dynamics = dCb7\n YKHO.inputs = I_uL\n YKHO.model_inputs = tRiF\n YKHO.input_indices = {KCHu: YRbF for YRbF, KCHu in enu... | [
"0.62612474",
"0.62283564",
"0.62077",
"0.61472666",
"0.6120838",
"0.60666466",
"0.59136",
"0.59094125",
"0.5909239",
"0.5873351",
"0.586573",
"0.5861112",
"0.5858971",
"0.5858971",
"0.5839948",
"0.5830855",
"0.58237016",
"0.57873887",
"0.5776973",
"0.5741937",
"0.57316244",
... | 0.0 | -1 |
Checks if 'filename' is allowed to be uploaded to the server | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in P4t4.config['ALLOWED_EXTENSIONS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in y8cn.ALLOWED_EXTENSIONS",
"def bRSf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in GPtr.ALLOWED_EXTENSIONS",
"def XT0o(Ux0P):\n if '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8:\n return True\n ret... | [
"0.77289194",
"0.77107847",
"0.7678688",
"0.7661098",
"0.7649172",
"0.7565515",
"0.756546",
"0.7556569",
"0.7552907",
"0.7552907",
"0.75439703",
"0.75439703",
"0.7539396",
"0.7538968",
"0.751922",
"0.7517767",
"0.75153035",
"0.75082636",
"0.7500049",
"0.7500049",
"0.7500049",... | 0.7598963 | 5 |
Calculates lcm of args | def BsJX(*qIxc):
UOyk = max(qIxc)
wOmD = [exwG for exwG in qIxc if exwG != UOyk]
aM8h = 1
while True:
TK2h = False in [UOyk * aM8h % exwG == 0 for exwG in wOmD]
if not TK2h:
break
aM8h += 1
UOyk *= aM8h
return 'lcm of {0} is {1}'.format(qIxc, UOyk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(*qIxc):\n return Pusg(FlPi, qIxc)",
"def BsJX(*qIxc):\n return Pusg(mvDe, qIxc)",
"def BsJX(YKHO, FiiE):\n Aofo = epAf.lcm(FiiE)\n return YKHO.convert_int(Aofo)",
"def EIJH(*qIxc):\n \"\"\"Return lcm of args.\"\"\"\n return Pusg(BsJX, qIxc)",
"def EIJH(*qIxc):\n return Pusg(Bs... | [
"0.8711724",
"0.86731285",
"0.85863405",
"0.85796106",
"0.83747905",
"0.83747905",
"0.83747905",
"0.83747905",
"0.8356436",
"0.83507586",
"0.8279885",
"0.8262633",
"0.81051165",
"0.79496336",
"0.7833784",
"0.78303766",
"0.7727512",
"0.76368165",
"0.76368165",
"0.7611621",
"0.... | 0.79368293 | 14 |
Split a pathname into components (the opposite of os.path.join) in a platformneutral way. | def c6pt(pmON, Aofo=None):
if Aofo is None:
Aofo = []
sdCG, J3uN = Hy7s.path.split(pmON)
if sdCG == '':
return [J3uN] + Aofo
if sdCG == pmON:
return Aofo
return c6pt(sdCG, [J3uN] + Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO, pmON):\n raise NotImplementedError",
"def eQ8x(pmON):\n return Hy7s.path.split(pmON)",
"def KkWy(pmON):\n return Hy7s.path.normpath(pmON).strip('/').split('/')",
"def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)",
"def KkWy(pmON):\n pmON = Hy7s.p... | [
"0.7318842",
"0.7280412",
"0.7227913",
"0.7203708",
"0.7159228",
"0.71544147",
"0.7047881",
"0.70416605",
"0.69699174",
"0.6960229",
"0.69124734",
"0.6910599",
"0.6884283",
"0.6875739",
"0.6853754",
"0.6853754",
"0.68176204",
"0.6781677",
"0.6762496",
"0.6737495",
"0.67147547... | 0.61143327 | 72 |
The datacenter the node is in. | def nJ8O(YKHO):
return YKHO._datacenter | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZfh(YKHO):\n return YKHO._data_center",
"def nJ8O(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'datacenter')",
"def nJ8O(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'datacenter')",
"def nJ8O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'datacenter')",
"d... | [
"0.8766775",
"0.8400037",
"0.8400037",
"0.81128556",
"0.81128556",
"0.81128556",
"0.81128556",
"0.81128556",
"0.81128556",
"0.8109622",
"0.69845116",
"0.69197935",
"0.6899064",
"0.68680596",
"0.6850716",
"0.68064153",
"0.6647027",
"0.6629722",
"0.6616181",
"0.6576819",
"0.654... | 0.8859935 | 0 |
The rack the node is in. | def pixC(YKHO):
return YKHO._rack | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAxT(YKHO):\n if YKHO.rack_id is not None:\n return TC9A.get_itop_class('Rack').find(YKHO.rack_id)\n return None",
"def PP7W(YKHO, KcEq):\n return KcEq.split('r')[1][:2]",
"def D1ak(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'rack_location')",
"def ntFG(YKHO) -> qe4Y.Input... | [
"0.731283",
"0.71952635",
"0.70490694",
"0.69161487",
"0.69161487",
"0.647553",
"0.62562764",
"0.60530096",
"0.60155797",
"0.60037464",
"0.5920869",
"0.5705363",
"0.5587278",
"0.54229736",
"0.53786093",
"0.5363646",
"0.5314687",
"0.5300218",
"0.5221692",
"0.52176976",
"0.5207... | 0.8518534 | 0 |
Returns the shortest distance to the TARGET cell. | def D0Sn(YKHO, Cs6h, G7_p, SeRN):
gGq6 = MUE7()
gGq6.append((G7_p, SeRN))
ABDL = 0
while gGq6:
jIam = len(gGq6)
for bGrB in range(jIam):
kMnY, ULKQ = gGq6.popleft()
for NKrm, yiYd in GWza.values():
m7Wi, Gk05 = (kMnY + NKrm, ULKQ + yiYd)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QNg3(YKHO) -> int:\n yfx6 = oyIN.apply_along_axis(YKHO.calc_distance, axis=1, arr=YKHO.weights)\n return oyIN.argmin(yfx6)",
"def mpEh(YKHO):\n return YKHO.__target_dist",
"def Ar10(YKHO, zZcM, e1vZ):\n return YKHO.topology.node_distance(zZcM.id, e1vZ.id)",
"def QNg3(YKHO):\n Ziit = [YKHO.... | [
"0.67558396",
"0.66879255",
"0.66608274",
"0.662464",
"0.6565215",
"0.65166986",
"0.64965755",
"0.6486439",
"0.64727825",
"0.6393869",
"0.6387831",
"0.63544863",
"0.6285085",
"0.6283224",
"0.6261331",
"0.6251343",
"0.6188224",
"0.6175981",
"0.61222345",
"0.6116879",
"0.610326... | 0.0 | -1 |
Save an object associated with this GRB as a pickle in the database. | def k7Qm(YKHO, YEnM, IznC):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELSh(YKHO, YEnM):\n with open(YKHO.__file_name + '.pickle', 'wb') as nUeQ:\n t2lc.dump(YEnM, nUeQ)",
"def xkzz(YKHO, YEnM):\n YEnM.serialize(YKHO)",
"def jUIU(YKHO, YEnM, mWFP):\n with open(mWFP + '.pickle', 'wb') as nVrR:\n t2lc.dump(YEnM, nVrR, protocol=t2lc.HIGHEST_PROTOCOL)",
"... | [
"0.7714527",
"0.74704313",
"0.7255741",
"0.72404814",
"0.72236294",
"0.7219946",
"0.7205295",
"0.7185388",
"0.7024459",
"0.70004016",
"0.69742054",
"0.69742054",
"0.69521224",
"0.6948194",
"0.69453144",
"0.69050413",
"0.6900847",
"0.6899043",
"0.6899043",
"0.6899043",
"0.6894... | 0.6972822 | 12 |
Calculate partial autocorrelations via OLS. | def AbZ1(WKvO, QE8W=None, V_YA=True, shsp=False):
WKvO = QLR1(WKvO, 'x')
QE8W = YAAi(QE8W, 'nlags', optional=True)
V_YA = PPlD(V_YA, 'efficient')
shsp = PPlD(shsp, 'adjusted')
a2D8 = WKvO.shape[0]
if QE8W is None:
QE8W = min(int(10 * oyIN.log10(a2D8)), a2D8 - 1)
WEth = oyIN.empty(QE8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BE4c(YKHO):\n LVAh = YKHO.signal_raw[:, 1]\n HJNt = wEsz.convolve(LVAh, LVAh[::-1])\n YKHO._r = HJNt[YKHO.n - 1:YKHO.n + YKHO.N]",
"def ouR0(YKHO):\n if 'autocorrelations' not in YKHO.products:\n print('* (Case #{:02d}) Computing autocorrelations'.format(YKHO.case_id))\n pvd3, jHsn ... | [
"0.6292158",
"0.6235612",
"0.6204468",
"0.6100176",
"0.59061",
"0.5896813",
"0.5867595",
"0.5833455",
"0.5735211",
"0.57057595",
"0.56997275",
"0.56938887",
"0.5655478",
"0.5636812",
"0.5628733",
"0.5624189",
"0.55757284",
"0.55670834",
"0.5530726",
"0.55299115",
"0.5526769",... | 0.556637 | 18 |
The total number of readings. | def zNig(YKHO):
return YKHO.minute_days * len(YKHO.sites) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uUVJ(YKHO) -> int:\n return YKHO.__total_bytes_read",
"def MCkZ(YKHO):\n return sum([mvm2.count_raw_reads for mvm2 in YKHO])",
"def vFPU(YKHO):\n return YKHO.count",
"def ezRU(YKHO):\n yt_R = 0\n for KQt1 in YKHO.lstOfClusters:\n yt_R = yt_R + KQt1.RC\n return yt_R",
"def UHFx(... | [
"0.7851103",
"0.7813937",
"0.77577096",
"0.77177894",
"0.7694131",
"0.76841664",
"0.7602666",
"0.7599058",
"0.75932086",
"0.7564267",
"0.7564267",
"0.7536618",
"0.7528897",
"0.7513296",
"0.75123745",
"0.75087327",
"0.73991215",
"0.73991215",
"0.7397715",
"0.7359771",
"0.73544... | 0.0 | -1 |
Function to create a coloured heatmap on top of a soccer field | def ntd2(WKvO, LVAh, epBp, yWYu, ZIe8=None, engd=None, htxt=False, gAdt=None, zNig=1):
if yWYu is not None:
iaS5 = list()
for uAeQ in range(len(epBp)):
iaS5.append(list())
for or8S in range(len(epBp[1])):
l5Ny = ''
for H5ew in yWYu.keys():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Ek(JbSN, WXkz):\n pass",
"def uBUN():\n jCRz = oyIN.array([0.0, 14.0, 161.0]) / 255.0\n ZfdO = oyIN.array([0.0, 125.0, 11.0]) / 255.0\n E7Rj = oyIN.array([255.0, 255.0, 255.0]) / 255.0\n GYHk = oyIN.array([255.0, 172.0, 0.0]) / 255.0\n vws6 = oyIN.array([163.0, 0.0, 119.0]) / 255.0\n p... | [
"0.6980199",
"0.6887012",
"0.68201065",
"0.68060476",
"0.6772154",
"0.6694279",
"0.66291964",
"0.65942276",
"0.65806544",
"0.65062183",
"0.6418034",
"0.6404212",
"0.63723487",
"0.63340664",
"0.6315074",
"0.6297448",
"0.62812084",
"0.6261284",
"0.6258746",
"0.62566715",
"0.625... | 0.6749165 | 5 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665067",
"0.7684247",
"0.72099316",
"0.69695336",
"0.6875455",
"0.6853435",
"0.6750787",
"0.6750787",
"0.67278194",
"0.67196035",
"0.6668564",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.64316285",
"0.6425204",
"0.6368609",
"0.6366865... | 0.65216684 | 11 |
Create an instance of GetAggregationUnitUsageResponse from a dict | def jG8h(Emd4, YEnM: dict) -> UzaC:
if YEnM is None:
return None
if not isinstance(YEnM, dict):
return UzaC.parse_obj(YEnM)
UTAq = UzaC.parse_obj({'num_of_custom_aggregation_units': YEnM.get('numOfCustomAggregationUnits')})
return UTAq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, nMY2: str) -> UzaC:\n return Emd4.from_dict(qQXR.loads(nMY2))",
"def jG8h(Emd4, tbx9: Dict) -> 'CollectionUsage':\n qIxc = {}\n if 'available' in tbx9:\n qIxc['available'] = tbx9.get('available')\n if 'maximum_allowed' in tbx9:\n qIxc['maximum_allowed'] = tbx9.get('maximu... | [
"0.7962172",
"0.63845485",
"0.61264193",
"0.6032389",
"0.6005203",
"0.60028577",
"0.58621526",
"0.57733417",
"0.57503474",
"0.5698763",
"0.5692138",
"0.56676316",
"0.5598669",
"0.55963033",
"0.551598",
"0.5499452",
"0.5498412",
"0.54932827",
"0.5462279",
"0.5459445",
"0.54393... | 0.80554736 | 0 |
Helper for generation of random string | def GLL2(u54L):
KoG3 = vIwR.ascii_letters + vIwR.digits
dEzN = ''.join((tuKI.choice(KoG3) for YRbF in range(u54L)))
return dEzN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo",
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def TDq5():\n if tuKI.random() < 0.2:\n return Vt_K()\n ... | [
"0.86335135",
"0.84819025",
"0.83297133",
"0.81287974",
"0.80755633",
"0.8065771",
"0.80615324",
"0.80301416",
"0.80301416",
"0.8002155",
"0.79909396",
"0.7957257",
"0.7946893",
"0.79454327",
"0.78296083",
"0.78246325",
"0.7796058",
"0.77723396",
"0.7761211",
"0.7761021",
"0.... | 0.74577993 | 76 |
Predict next state (prior) using the IMM state propagation equations. | def YEmv(YKHO, P6bq=None):
fUYa, Eafu = ([], [])
for YRbF, (eHNT, yzQ0) in enumerate(zip(YKHO.filters, YKHO.omega.T)):
WKvO = VNqG(YKHO.x.shape)
for C8pr, yqiA in zip(YKHO.filters, yzQ0):
WKvO += C8pr.x * yqiA
fUYa.append(WKvO)
V6IE = VNqG(YKHO.P.shape)
for C8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO):\n YKHO.estimate = YKHO.f(YKHO.previousEstimate) + YKHO.processNoise\n BID0 = YKHO.fJac(YKHO.previousEstimate) + YKHO.processNoise\n YKHO.errorPrediction = oyIN.dot(BID0, oyIN.dot(YKHO.previousErrorPrediction, oyIN.transpose(BID0))) + YKHO.Q",
"def __s3(YKHO):\n WKvO = YKHO.state_vecto... | [
"0.69827753",
"0.6956857",
"0.6843941",
"0.68232167",
"0.67469347",
"0.6695426",
"0.6654363",
"0.6637458",
"0.66349494",
"0.6614261",
"0.66044545",
"0.65693563",
"0.6559511",
"0.64650375",
"0.6464647",
"0.645933",
"0.64468706",
"0.64468706",
"0.6443226",
"0.64194196",
"0.6410... | 0.5910264 | 87 |
Initialise object. The file indicated by ``path`` must be sorted by values in the column indicated by ``column``. | def FIMM(YKHO, pmON, iVRZ):
YKHO.path = pmON
YKHO.column = iVRZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, pmON, iVRZ):\n YKHO.path = pmON\n YKHO.column = iVRZ",
"def FIMM(YKHO, pmON):\n YKHO.path = pmON\n YKHO.dados = {}\n YKHO.cria_objeto_csv()",
"def FIMM(YKHO, pmON=None):\n YKHO.path = pmON\n YKHO._rev2hsh = [None]\n YKHO._rev2flag = [None]\n YKHO._hsh2rev = {}\n YKH... | [
"0.72869706",
"0.67146",
"0.65114105",
"0.62807006",
"0.6272953",
"0.62487704",
"0.62368065",
"0.62273175",
"0.6186719",
"0.61354107",
"0.60470814",
"0.6044519",
"0.5988652",
"0.597166",
"0.59163916",
"0.5895997",
"0.5891799",
"0.5886692",
"0.5886692",
"0.58451974",
"0.583929... | 0.7312253 | 0 |
Close file on exit when using ``with`` keyword. | def U4F2(YKHO, kN9s, BWXx, wVCK):
YKHO.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qsZa(YKHO):\n YKHO.f.close()",
"def qsZa(nUeQ):\n nUeQ.close()",
"def THGs(Ga6V):\n Ga6V.close()",
"def DDI8(YKHO):\n with YKHO:\n YKHO.file.close()",
"def U4F2(YKHO):\n YKHO.file.close()",
"def DDI8(YKHO):\n YKHO.f.close()",
"def DDI8(YKHO):\n YKHO.f.close()",
"def up... | [
"0.78056616",
"0.7546973",
"0.7540172",
"0.738504",
"0.7369327",
"0.7355059",
"0.7355059",
"0.73396057",
"0.7333051",
"0.7318331",
"0.7261712",
"0.72504675",
"0.7219556",
"0.7219556",
"0.7219556",
"0.7188061",
"0.7188061",
"0.7188061",
"0.7186425",
"0.7183852",
"0.71682733",
... | 0.0 | -1 |
Ensures that the logout user view works properly with a GET when authenticated | def rDY0(YKHO):
YKHO.client.login(username='samuel', password='testing')
geh0 = YKHO.client.get(gxEw('logout'), follow=True)
YKHO.assertEquals(geh0.status_code, 200)
YKHO.assertEquals(geh0.redirect_chain[0][0], '%s%s' % (g67r, gxEw('pub_latest')))
YKHO.assertEquals(geh0.context[-1].get('user', None)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW, *qIxc, **B2fa):\n erK4(QePW)\n return super(muCn, YKHO).get(QePW, *qIxc, **B2fa)",
"def oLi7(QePW):\n pass",
"def L1Cd(QePW):\n if QePW.user.is_authenticated:\n erK4(QePW)\n return vKnz('login')",
"def oLi7(QePW):\n if QePW.user.is_authenticated():\n e... | [
"0.83746254",
"0.81556",
"0.8109245",
"0.792775",
"0.78671926",
"0.7852025",
"0.7844106",
"0.7820186",
"0.78126305",
"0.77823013",
"0.7771831",
"0.7767886",
"0.77599525",
"0.77577084",
"0.7754618",
"0.7749618",
"0.772792",
"0.77154595",
"0.7711776",
"0.77005243",
"0.7698882",... | 0.78915274 | 4 |
Ensures that the register user view fails for an already existing email | def QL3C(YKHO):
CBIr = mv1M.objects.get(username='samuel')
CBIr.email = 'samuel@email.com'
CBIr.save()
geh0 = YKHO.client.post(gxEw('register'), {'user_id': 'samuelnew', 'password': 'testing', 'password_confirm': 'testing', 'email': 'samuel@email.com'})
YKHO.assertEquals(geh0.status_code, 200)
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YHxn(YKHO):\n geh0 = YKHO.client().post('/api/v1/auth/register', data=qQXR.dumps(YKHO.email_user), content_type='application/json')\n YKHO.assertIn('Email already exists. Try another one', str(geh0.data))",
"def uXbo(YKHO):\n XKMW = 'auth.login'\n YKHO.make_user(pwd=True, confirm=True)\n with ... | [
"0.7927921",
"0.7872345",
"0.76215154",
"0.7573526",
"0.7570113",
"0.7559719",
"0.7536438",
"0.74568224",
"0.7386855",
"0.7372328",
"0.7366251",
"0.73562205",
"0.7342576",
"0.73068243",
"0.7287792",
"0.7271598",
"0.72673815",
"0.725642",
"0.72419494",
"0.72417897",
"0.7187956... | 0.79013205 | 1 |
Ensures that the register user view fails for passwords that do not match | def cbpt(YKHO):
geh0 = YKHO.client.post(gxEw('register'), {'user_id': 'samuelnew', 'password': 'testing', 'password_confirm': 'different', 'email': 'samuel@email.com'})
YKHO.assertEquals(geh0.status_code, 200)
YKHO.assertTrue('password_confirm must match password' in geh0.content)
YKHO.assertRaises(mv1M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knQZ(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.sign_up('userE', 'ilovebears', 'ihatebears', 'userE@gmail.com'))",
"def oI06(YKHO):\n geh0 = YKHO.register_user(YKHO.user_with_weak_password)\n YKHO.assertEqual(geh0.json()['errors']['password'], ['Password must at least contain a capital lette... | [
"0.76317394",
"0.75728905",
"0.75225586",
"0.7517666",
"0.73611736",
"0.73531526",
"0.73169225",
"0.7228539",
"0.7218009",
"0.720639",
"0.7161778",
"0.7146618",
"0.7130203",
"0.7126513",
"0.7095443",
"0.7093507",
"0.7087548",
"0.7082664",
"0.704121",
"0.70385665",
"0.7036376"... | 0.76211596 | 1 |
This method split a given image in NxM regions. In other words, if we have an image with 30x30 pixels it should return a list containing 25 subimages. | def K5JR(YKHO, rdlD, fvDH, WwmQ=None):
TVTK, H2v2 = YKHO.size
f99O = H2v2 / rdlD
El2I = TVTK / fvDH
WKvO = [(LVAh, WKvO) for WKvO in range(0, H2v2 + 1) for LVAh in range(0, TVTK + 1)]
WKvO = [YRbF for YRbF in WKvO if YRbF[0] % El2I == 0 and YRbF[1] % f99O == 0]
daVQ = []
for YRbF in WKvO:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CwrP(LNo8, FSli=3, AacV=2):\n H2v2, TVTK = LNo8.shape\n hlel = []\n for r845 in range(AacV):\n for YRbF in range(FSli):\n hlel.append(oyIN.array(LNo8[YRbF * H2v2 // FSli:(YRbF + 1) * H2v2 // FSli, r845 * TVTK // AacV:(r845 + 1) * TVTK // AacV]))\n return hlel",
"def ogvI(LNo8, z... | [
"0.78946984",
"0.776493",
"0.77312875",
"0.76510566",
"0.76487577",
"0.7644166",
"0.7533488",
"0.74095255",
"0.73764",
"0.7347465",
"0.7239719",
"0.7017344",
"0.69885087",
"0.69552773",
"0.69063646",
"0.6850531",
"0.683423",
"0.683423",
"0.683423",
"0.68264425",
"0.67171526",... | 0.66518044 | 26 |
This method calculate the negative image. The source image must be Grayscale. | def tbib(YKHO):
xiPz = hnIv(mode=YKHO.mode, size=YKHO.content.size)
for fvDH in range(xiPz.size[0]):
for zFiD in range(xiPz.size[1]):
xiPz.putPixel((fvDH, zFiD), 255 - YKHO.getPixel((fvDH, zFiD)))
return xiPz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbib(LNo8):\n aPd6 = 255\n return (aPd6 - LNo8).astype(oyIN.uint8)",
"def WzuK(LNo8):\n return XC5k.bitwise_not(LNo8)",
"def hO0C(YKHO, Xn71):\n return -Xn71",
"def oCcz(CiWR, DTFO):\n if len(oyIN.shape(CiWR)) != 2 or len(oyIN.shape(DTFO)) != 2:\n RT2h('Input image is not gray-scale... | [
"0.78075045",
"0.7123368",
"0.69796103",
"0.6837145",
"0.66849554",
"0.6629542",
"0.6622011",
"0.65942407",
"0.658708",
"0.6507172",
"0.62913907",
"0.62863755",
"0.6273699",
"0.62482494",
"0.6217434",
"0.61863446",
"0.6184292",
"0.6149869",
"0.613076",
"0.6104621",
"0.6072939... | 0.752907 | 1 |
Run the decoder LSTM starting from an initial hidden state. The third and fourth arguments are not used in the baseline model, but are included for compatibility with the attention model in the next section. | def x8I_(YKHO, Fu9e, D5BU, qzxX, XCq9, Ucyj=False):
oTEp, Ep8u = Fu9e.shape
mb5m = YKHO.embedding(Fu9e)
tOW1, I1b5 = YKHO.decoder_lstm(mb5m, D5BU)
G768 = YKHO.attn_lin(tOW1)
jebO = ht2j.einsum('tbf,sbf->tbs', [G768, qzxX])
if Ucyj:
jebO = ht2j.zeros_like(jebO)
if not YKHO.no_context:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, a6Jb, Zwn2=256, wjbX=256, C4d9=256, CLda=1):\n super(quBk, YKHO).__init__()\n YKHO.output_size = a6Jb\n YKHO.embedding_size = Zwn2\n YKHO.hidden_size = wjbX\n YKHO.attention_size = C4d9\n YKHO.num_layers = CLda\n YKHO.attn_fc_prev_hid = U78l.Linear(in_features=wjbX, out_features... | [
"0.65084505",
"0.6505004",
"0.6461374",
"0.6447916",
"0.6395943",
"0.6389959",
"0.638366",
"0.63662887",
"0.6356317",
"0.6346344",
"0.63339317",
"0.63262945",
"0.63239694",
"0.63132256",
"0.62501556",
"0.6215414",
"0.6210462",
"0.6195709",
"0.61648786",
"0.61633706",
"0.61445... | 0.5975061 | 39 |
Unit tests for `find_index` function. Correctness is defined as producing the same histogram as numpy.histogramdd by using the output of `find_index` (ignoring underflow and overflow values). Additionally, 1 should be returned if a value is below the range (underflow) or is nan, and num_bins should be returned for a va... | def E0qN():
g2Bo = [-1, -0.5, -0.1, 0, 0.1, 0.5, 1, 2, 3, 4]
Z_fq = 0
for g2Bo in [[-1, -0.5, -0.1, 0, 0.1, 0.5, 1, 2, 3, 4], [], [0.1], [-0.1, 0.1]]:
for LJE9, ZbWC in [(None, None), (-oyIN.inf, None), (None, oyIN.inf), (-oyIN.inf, oyIN.inf)]:
DSUy = _qLf(g2Bo)
if LJE9 is no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQzf(wEf2, DSUy):\n n8F9 = len(DSUy)\n rebk = n8F9 - 1\n assert rebk >= 1, 'bin_edges must define at least one bin'\n V_F8 = -1\n Upds = rebk\n if wEf2 >= DSUy[0]:\n if wEf2 <= DSUy[-1]:\n FmPK = YKWO(wEf2, DSUy)\n FmPK = min(max(0, FmPK), rebk - 1)\n else:... | [
"0.701355",
"0.6532264",
"0.63518953",
"0.62212765",
"0.60857046",
"0.60738504",
"0.6026401",
"0.60251796",
"0.60229355",
"0.6021188",
"0.6020506",
"0.5990508",
"0.59810495",
"0.59441257",
"0.59441257",
"0.594043",
"0.5938673",
"0.59325457",
"0.59325457",
"0.5927336",
"0.5927... | 0.7579773 | 0 |
Save a Music object to a JSON file. | def U1ai(pmON: Union[str, Path], A09t: 'Music', X7g_: bool=False, MnRD: Optional[Union[int, str]]=None):
with open(str(pmON), 'w', encoding='utf-8') as eHNT:
nPrm = A09t.to_ordered_dict()
qQXR.dump(nPrm, eHNT, ensure_ascii=X7g_, indent=MnRD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n with open(BS3y.__file_path, 'w', encoding='utf-8') as eHNT:\n eUNp = {}\n for H5ew, YEnM in BS3y.__objects.items():\n eUNp[H5ew] = YEnM.to_dict()\n qQXR.dump(eUNp, eHNT, ensure_ascii=False)",
"def M8gv(YEnM, Ux0P):\n with open(Ux0P, 'w') as nUeQ:\n q... | [
"0.7338092",
"0.71971977",
"0.7195588",
"0.71590245",
"0.7137906",
"0.71004534",
"0.7094981",
"0.70663327",
"0.70557326",
"0.7024154",
"0.70206374",
"0.699718",
"0.6990495",
"0.69630677",
"0.6961441",
"0.6953513",
"0.693166",
"0.6929227",
"0.6912216",
"0.690428",
"0.68677354"... | 0.7935271 | 0 |
Returns a tuple of (xValues, yValues, zValues) from given data object | def iIby(nPrm):
WKvO = []
LVAh = []
epBp = []
for Fg_i, wEf2 in nPrm.items():
for Z9rn, YAq3 in wEf2.items():
WKvO.append(Fg_i)
LVAh.append(Z9rn)
epBp.append(YAq3)
return (oyIN.asarray(WKvO), oyIN.asarray(LVAh), oyIN.asarray(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pTc2(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def yLtf():\n return (MKlR.x, MKlR.y)",
"def yLtf() -> AzJI[oyIN.array, oyIN.array, oyIN.array]:\n nPrm = kWwb()\n WKvO = oyIN.array(nPrm['x'])\n LVAh = oyIN.array(nPrm['y'])\n epBp = oyIN.array(nPrm['B'])\n tAX0 = int(oyIN.floor(len(epB... | [
"0.7017516",
"0.6996711",
"0.6957561",
"0.6642746",
"0.66301477",
"0.65523386",
"0.65255266",
"0.652356",
"0.64261985",
"0.6380282",
"0.6372736",
"0.63586897",
"0.6303654",
"0.6298337",
"0.62958074",
"0.62779945",
"0.62740815",
"0.62311894",
"0.61786985",
"0.6143717",
"0.6086... | 0.67483366 | 3 |
Sets the learning rate to the initial LR decayed by 0.97 every 3 epochs | def e_63(K0do, qtWj, ma4o=0.1):
tspZ = ma4o * 0.97 ** (qtWj / 3)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def e_63(K0do, bYD2, f9Ey, qtWj, Zbwy, qIxc):\n tspZ = bYD2\n if qIxc.data == 'imagenet':\n if qtWj >= 30:\n tspZ *= f9Ey\n ... | [
"0.7746451",
"0.76517624",
"0.76340455",
"0.7619426",
"0.75889283",
"0.75606537",
"0.7555127",
"0.7553024",
"0.753878",
"0.75342405",
"0.752284",
"0.7522284",
"0.7517328",
"0.750286",
"0.7502721",
"0.7500431",
"0.74926645",
"0.7491381",
"0.7480911",
"0.74738145",
"0.7464046",... | 0.756905 | 5 |
If sigma is not None, then the e will be dispersed following a 2D normal distribution. sigma is expressed in units of linear pixel size. | def x7vR(YKHO, P8QL=1000, A1P5=0.12, WTkW=None):
rjAT = YKHO.fe55_yield.alpha()[0]
DMzz = YKHO.fe55_yield.beta()[0]
pvd3, jHsn = YKHO.imarr.shape
if WTkW is None:
for YRbF in range(P8QL):
nJ9F = tuKI.randint(jHsn)
nxyw = tuKI.randint(pvd3)
if tuKI.random() < A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTkW(YKHO, tTpl, ut5U):\n KCHu = tTpl * ut5U\n UqYS = PZyS(1 - 1.0 / KCHu)\n CkYf = 3.0 / 16 * VTaa * (1 - UqYS ** 2)\n n2Q1 = (3 - UqYS ** 4) * RKD7((1 + UqYS) / (1 - UqYS))\n SpII = 2 * UqYS * (2 - UqYS ** 2)\n return CkYf * (n2Q1 - SpII)",
"def WTkW(YKHO):\n if not YKHO.discrete:\n ... | [
"0.7030765",
"0.67206144",
"0.67133206",
"0.6706009",
"0.67054856",
"0.66953075",
"0.6676313",
"0.66703296",
"0.6665411",
"0.66445524",
"0.6621182",
"0.66198844",
"0.65996504",
"0.65546477",
"0.65172887",
"0.6512704",
"0.65071595",
"0.64830405",
"0.6482122",
"0.6482122",
"0.6... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.70801866 | 86 |
add a trip to the folium map | def PqRr(elv7, WpOk, qfpW='red', iEbV=False):
GOzt = [[WKvO['coordinates'][1], WKvO['coordinates'][0]] for WKvO in WpOk['loc']]
if iEbV:
GOzt = [GOzt[0], GOzt[len(GOzt) - 1]]
spT0(locations=GOzt, icons=[lINC.Icon(color='green', icon='play-circle'), *[lINC.Icon(color=qfpW, icon='info-sign') if not iE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sXY5(WpOk):\n elv7 = lINC.Map(location=[48.10301, -1.65537], zoom_start=13, tiles='OpenStreetMap')\n PqRr(elv7, WpOk)\n return elv7",
"def AmJy(QUSx: 'Feed', mvnT: Iterable[str], _Igo: list[str]=gtI8.COLORS_SET2, *, u17l: bool=False, RtSX: bool=False):\n XpMX = PFCt.Map(tiles='cartodbpositron')\n... | [
"0.8437394",
"0.69069076",
"0.66810286",
"0.6458572",
"0.63339466",
"0.61856765",
"0.6116774",
"0.60887843",
"0.6078231",
"0.60618263",
"0.6025664",
"0.5991648",
"0.5989742",
"0.5933287",
"0.5908584",
"0.5888279",
"0.58860093",
"0.584314",
"0.58312136",
"0.5811026",
"0.580550... | 0.81406945 | 1 |
Textual representation of an expression in Common Expression Language syntax. | def lsX7(YKHO) -> str:
return qe4Y.get(YKHO, 'expression') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnQa(lsX7):\n owmC = MiUm()\n owmC.generic_visit(lsX7)\n return owmC.result",
"def lsX7(YKHO, J_Es):\n assert J_Es.data == 'expression'\n return YKHO.expr_visitor.expression(J_Es)",
"def v0jN(Q6kx):\n if lVMs(Q6kx, GkW1):\n return str(v0jN(Q6kx[0])) + ' ' + QP6c[Q6kx.type] + ' ' + ... | [
"0.68739694",
"0.68556446",
"0.6678261",
"0.66724175",
"0.66724175",
"0.66561764",
"0.66071534",
"0.6595985",
"0.6580202",
"0.6539548",
"0.65370935",
"0.65225464",
"0.6428705",
"0.6373778",
"0.6370164",
"0.635323",
"0.63302094",
"0.63289297",
"0.6316821",
"0.62512547",
"0.622... | 0.65092105 | 12 |
Textual representation of an expression in Common Expression Language syntax. | def lsX7(YKHO) -> str:
return qe4Y.get(YKHO, 'expression') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnQa(lsX7):\n owmC = MiUm()\n owmC.generic_visit(lsX7)\n return owmC.result",
"def lsX7(YKHO, J_Es):\n assert J_Es.data == 'expression'\n return YKHO.expr_visitor.expression(J_Es)",
"def v0jN(Q6kx):\n if lVMs(Q6kx, GkW1):\n return str(v0jN(Q6kx[0])) + ' ' + QP6c[Q6kx.type] + ' ' + ... | [
"0.6872954",
"0.68546",
"0.66778076",
"0.6671421",
"0.6671421",
"0.66561",
"0.66060567",
"0.65955627",
"0.65798855",
"0.65387034",
"0.65364647",
"0.65218115",
"0.6428404",
"0.6373807",
"0.63699824",
"0.63520604",
"0.63290495",
"0.6328594",
"0.63156897",
"0.6249879",
"0.622679... | 0.650825 | 14 |
Textual representation of an expression in Common Expression Language syntax. | def lsX7(YKHO) -> str:
return qe4Y.get(YKHO, 'expression') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnQa(lsX7):\n owmC = MiUm()\n owmC.generic_visit(lsX7)\n return owmC.result",
"def lsX7(YKHO, J_Es):\n assert J_Es.data == 'expression'\n return YKHO.expr_visitor.expression(J_Es)",
"def v0jN(Q6kx):\n if lVMs(Q6kx, GkW1):\n return str(v0jN(Q6kx[0])) + ' ' + QP6c[Q6kx.type] + ' ' + ... | [
"0.68739694",
"0.68556446",
"0.6678261",
"0.66724175",
"0.66724175",
"0.66561764",
"0.66071534",
"0.6595985",
"0.6580202",
"0.6539548",
"0.65370935",
"0.65225464",
"0.6428705",
"0.6373778",
"0.6370164",
"0.635323",
"0.63302094",
"0.63289297",
"0.6316821",
"0.62512547",
"0.622... | 0.65092105 | 13 |
The type of this resource. | def MayW(YKHO) -> str:
return qe4Y.get(YKHO, 'asset_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO):\n return YKHO._get_field('type')",
"def Qjbs(YKHO):\n return YKHO._resource_type",
"def Qjbs(YKHO):\n return YKHO._resource_type",
"def Qjbs(YKHO):\n return YKHO._res_type",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n retu... | [
"0.92021847",
"0.8998961",
"0.8998961",
"0.8842493",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.88126606",
"0.85721797",
"0.84534544",
... | 0.0 | -1 |
The display name of this resource. | def qQNS(YKHO) -> str:
return qe4Y.get(YKHO, 'display_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO) -> str:\n return YKHO._display_name",
"def qQNS(YKHO) -> str:\n return YKHO._display_name",
"def y0hN(YKHO):\n return YKHO._data['name']",
"def y0hN(YKHO):\n return YKHO.__display_name",
"def qQNS(YKHO):\n return YKHO._display_name",
"def qQNS(YKHO):\n return YKHO._displa... | [
"0.860557",
"0.860557",
"0.8573387",
"0.84888667",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.8484301",
"0.84821063",
"0.8409348",
"0.84035945",
"0.83637893",
"0.83637893",
... | 0.8752212 | 1 |
Labels associated with this resource. | def Crrw(YKHO) -> GySg[str, str]:
return qe4Y.get(YKHO, 'labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO):\n return YKHO._properties['labels']",
"def Crrw(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> bdIy[str]:\n... | [
"0.8000432",
"0.8000432",
"0.78996867",
"0.789908",
"0.789908",
"0.78515804",
"0.76101345",
"0.75608325",
"0.75541735",
"0.75541735",
"0.75447744",
"0.75335044",
"0.75308204",
"0.7526703",
"0.7494521",
"0.7469227",
"0.7469227",
"0.7469227",
"0.7469227",
"0.7469227",
"0.745814... | 0.8011647 | 0 |
The project that this resource belongs to, in the form of `projects/{project_number}`. | def bNKA(YKHO) -> str:
return qe4Y.get(YKHO, 'project') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNKA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'project')",
"def bNKA(YKHO):\n return YKHO._get_text_value('PROJECT')",
"def bNKA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'project')",
"def bNKA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'project')",
"def bNKA(YKHO) -> qe4Y... | [
"0.8454054",
"0.82877225",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.8198302",
"0.81597024",
"0.81597024",
"0.8151865",
"0.8151865",
"0.8151865",
"0.8151865",
"0.8151865",
"0.8151865",
"0.8151865",
"0.8151865",
... | 0.85178256 | 1 |
Return formatted date or the original string. | def JvEs(YKHO):
if isinstance(YKHO.date, qcWV.datetime):
AtJq = YKHO.date.replace(tzinfo=None)
return AtJq.strftime('%Y-%m-%d')
return YKHO.date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WjXb(_c1T):\n return _c1T.strftime('%d.%m.%Y') if _c1T else None",
"def GPqa(YKHO, format='yyyy/mm/dd'):\n return ''.join([YKHO._substitute(Q7me) for Q7me in ZbWC.split('((?<!\\\\\\\\)y+|(?<!\\\\\\\\)m+|(?<!\\\\\\\\)d+|(?<!\\\\\\\\)w+)', format)])",
"def mbyn(_c1T, format=GGme):\n return _c1T.strf... | [
"0.7661001",
"0.7263832",
"0.7167852",
"0.7143296",
"0.71075726",
"0.71042234",
"0.70905936",
"0.7062079",
"0.70376116",
"0.7031555",
"0.69805133",
"0.6966607",
"0.69645",
"0.6948574",
"0.6946233",
"0.69438833",
"0.6941984",
"0.6939911",
"0.69186",
"0.69119126",
"0.6903546",
... | 0.7090097 | 7 |
Return debtor's name or first name and last name. | def mWFP(YKHO):
if YKHO.is_person:
return '{} {}'.format(YKHO.entity.first_name, YKHO.entity.last_name)
return YKHO.entity.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n if YKHO.first_name or YKHO.last_name:\n return ' '.join(filter(None, [YKHO.first_name, YKHO.last_name]))\n return YKHO.username",
"def xpqj(YKHO):\n if not YKHO.last_name:\n return YKHO.first_name\n return YKHO.first_name + ' ' + YKHO.last_name",
"def zFMy(YKHO):\n ... | [
"0.7736724",
"0.75705314",
"0.75288206",
"0.7506309",
"0.7455634",
"0.74346155",
"0.7408291",
"0.73991925",
"0.7392439",
"0.7389514",
"0.73408324",
"0.7316782",
"0.7281697",
"0.72810596",
"0.7274509",
"0.727408",
"0.7261743",
"0.7216014",
"0.7209799",
"0.7209799",
"0.71959543... | 0.0 | -1 |