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
Takes the next row from the cursor and formats it as a dictionary (JSON object as far as Bottle is concerned).
def KTbj(N1p7): V_D6 = [eHNT[0] for eHNT in N1p7.description] Mkmy = N1p7.fetchone() if Mkmy is not None: YRbF = 0 PiPd = {} for eHNT in V_D6: PiPd[eHNT] = Mkmy[YRbF] YRbF += 1 return PiPd else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sax9(N1p7):\n JBZA = [WKvO[0] for WKvO in N1p7.description]\n vC9B = []\n for rdlD in N1p7:\n Csk6 = dict(zip(JBZA, rdlD))\n vC9B.append(Csk6)\n return vC9B", "def NjuK(rdlD, DpUl):\n YEnM = my7k.util.ObjectDict()\n print(DpUl.description)\n for wEf2, QoB4 in zip(rdlD, DpUl...
[ "0.67131424", "0.6508838", "0.64897555", "0.6428336", "0.6416951", "0.6387721", "0.6387721", "0.63842905", "0.63461536", "0.6333174", "0.6302264", "0.6276004", "0.626366", "0.6252693", "0.6246976", "0.6212672", "0.6190414", "0.6190414", "0.6190414", "0.61504674", "0.6143605",...
0.702516
0
Queries a cursor and returns its rows as a JSON response (a list of dictionaries contained in a JSON object).
def v6wB(N1p7): QAfV = {'success': 'true', 'items': []} if N1p7 is None: return QAfV _M_4 = KTbj(N1p7) while _M_4 is not None: QAfV['items'].append(_M_4) _M_4 = KTbj(N1p7) return QAfV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGps(N1p7: pymysql.cursors.Cursor):\n sjXb = []\n for iVRZ in N1p7.description:\n sjXb.append(iVRZ[0])\n bEnO = len(sjXb)\n zgjV = []\n for rdlD in N1p7.fetchall():\n print(rdlD)\n ZfUD = {}\n for vexM in range(bEnO):\n ZfUD[sjXb[vexM]] = rdlD[vexM]\n ...
[ "0.7655198", "0.7297893", "0.7287472", "0.7161828", "0.7123631", "0.70104724", "0.6997542", "0.68839186", "0.68755704", "0.68276924", "0.680691", "0.67708576", "0.6712169", "0.66197115", "0.6588669", "0.6559678", "0.6514483", "0.6514483", "0.6493117", "0.6489007", "0.6473564"...
0.79916495
0
Check ETAG for internal request and skip for external.
def VeBq(YKHO, YEnM): if MC83.is_external_app_user(): return None return super(JZjZ, YKHO).validate_headers_for_put_or_delete(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A7Nr(QePW):\n tjkT = ['https://api.eventdata.crossref.org']\n OYFm = any([QePW.url.startswith(YRbF) for YRbF in tjkT])\n if not OYFm:\n return None\n return QePW", "def xx2l():\n if yXFJ() and QePW.method in lTlo:\n if not x3qB().get('etag_checked'):\n wk5E.logger.warn...
[ "0.59080887", "0.58493346", "0.5806718", "0.56204146", "0.5471047", "0.5433039", "0.54025966", "0.53991437", "0.5371558", "0.537108", "0.5357811", "0.53539664", "0.5345089", "0.53316927", "0.5307526", "0.5304736", "0.52868545", "0.5277004", "0.5277004", "0.5267952", "0.526274...
0.0
-1
Gets the id of this MetadataResourceDto.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO._resource_id", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def erfA(Emd4):\n return 'id'", "def id(YKHO) -> int:\n return YKHO._metadata.id", "def id(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.resource_id.id", "def Ry_3(YKHO):\n return Y...
[ "0.7703304", "0.7401281", "0.73782766", "0.7313713", "0.72070247", "0.7184207", "0.713447", "0.713447", "0.7129312", "0.71273714", "0.7022926", "0.7020657", "0.6991284", "0.6975845", "0.6942442", "0.6908743", "0.6902556", "0.6878674", "0.6864271", "0.68634415", "0.68634415", ...
0.0
-1
Gets the title of this MetadataResourceDto.
def leAC(YKHO): return YKHO._title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QYb7(YKHO):\n return YKHO.properties.get('TitleResource', ZzWQ(YKHO.context, oudJ('TitleResource', YKHO.resource_path)))", "def QYb7(YKHO):\n return YKHO.properties.get('TitleResource', ZzWQ(YKHO.context, oudJ('TitleResource', YKHO.resource_path)))", "def QYb7(YKHO):\n return YKHO.properties.get('...
[ "0.76608837", "0.76608837", "0.76608837", "0.76601106", "0.7641993", "0.761596", "0.75751644", "0.75339204", "0.747075", "0.74557453", "0.7435355", "0.7431265", "0.7431265", "0.7431265", "0.7372217", "0.735989", "0.735557", "0.735557", "0.7326087", "0.7306374", "0.7306374", ...
0.72208446
80
Gets the table of this MetadataResourceDto.
def tyNF(YKHO): return YKHO._table
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja1s(YKHO):\n return YKHO.table", "def ja1s(YKHO):\n return YKHO.table", "def ja1s(YKHO):\n return YKHO._data", "def ja1s(YKHO):\n pass", "def B8Ax(YKHO):\n return YKHO.table", "def B8Ax(YKHO):\n return YKHO._table", "def tyNF(YKHO):\n tyNF = TQJD(YKHO.__client, YKHO.__project_...
[ "0.77408713", "0.77408713", "0.76910204", "0.75491065", "0.74687505", "0.72964257", "0.71863127", "0.7058263", "0.70321643", "0.70017964", "0.6942805", "0.688091", "0.68089795", "0.68089795", "0.6785812", "0.6785812", "0.6770765", "0.6727008", "0.6713321", "0.6658947", "0.665...
0.7345376
8
Gets the type_label of this MetadataResourceDto.
def Xdfp(YKHO): return YKHO._type_label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeTJ(YKHO):\n return YKHO.raw.get('type')", "def UXqs(YKHO):\n return YKHO.resourcetype()", "def u_my(YKHO) -> str:\n return YKHO._label_type", "def u_my(YKHO):\n return YKHO.__label_type", "def Qjbs(YKHO):\n return YKHO._get_field('type')", "def UXqs(YKHO, u_my):\n UXqs = YKHO._dat...
[ "0.782687", "0.76359636", "0.75037074", "0.7241558", "0.6899047", "0.68057907", "0.67776513", "0.6766908", "0.6766908", "0.6722374", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", "0.6717547", ...
0.7932796
0
Gets the type_iri of this MetadataResourceDto.
def Xm4J(YKHO): return YKHO._type_iri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO) -> qe4Y.Input[uLKX[str, 'ResourceIdentityType']]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityType']]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'ResourceIdentityType']]]:\n return qe4Y.get(YKHO, 'type')", ...
[ "0.6739427", "0.66673285", "0.65465546", "0.6438599", "0.61508566", "0.60936725", "0.60936725", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859", "0.6060859"...
0.8355361
0
Gets the root_parent_type_label of this MetadataResourceDto.
def m0NR(YKHO): return YKHO._root_parent_type_label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m0NR(YKHO, m0NR):\n YKHO._root_parent_type_label = m0NR", "def zgeJ(YKHO):\n return YKHO._root_parent_type_iri", "def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def zgeJ(YKHO, zgeJ):\n YKHO._root_parent_type_iri = zgeJ", "def U4ys(YKHO) -> qe4Y.Input[str]:\n re...
[ "0.7363615", "0.7281099", "0.67422193", "0.6459427", "0.6410958", "0.6219962", "0.61032015", "0.6086894", "0.5977341", "0.5963432", "0.5949659", "0.592176", "0.58611774", "0.58292836", "0.58183634", "0.5808699", "0.5792263", "0.5783515", "0.5756804", "0.5752333", "0.5752333",...
0.85419405
0
Sets the root_parent_type_label of this MetadataResourceDto.
def m0NR(YKHO, m0NR): YKHO._root_parent_type_label = m0NR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zgeJ(YKHO, zgeJ):\n YKHO._root_parent_type_iri = zgeJ", "def m0NR(YKHO):\n return YKHO._root_parent_type_label", "def vJBM(YKHO, H7rZ):\n if H7rZ is not None and (not isinstance(H7rZ, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: parent_id EXPECTED TYPE: str', None, None)\n YKHO.__pare...
[ "0.7303331", "0.70199656", "0.58588976", "0.5826161", "0.5667251", "0.5649015", "0.5646296", "0.563075", "0.5604565", "0.5592219", "0.5501593", "0.5485899", "0.5478623", "0.5371041", "0.53603345", "0.53603345", "0.53603345", "0.53385377", "0.53211594", "0.53193873", "0.531545...
0.862829
0
Gets the root_parent_type_iri of this MetadataResourceDto.
def zgeJ(YKHO): return YKHO._root_parent_type_iri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zgeJ(YKHO, zgeJ):\n YKHO._root_parent_type_iri = zgeJ", "def m0NR(YKHO):\n return YKHO._root_parent_type_label", "def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def U4ys(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def Xm4J(YKHO):\n...
[ "0.77646965", "0.69160813", "0.6472254", "0.6294153", "0.62848276", "0.6054396", "0.5890925", "0.5773868", "0.5749226", "0.56927764", "0.56502277", "0.55690426", "0.55475366", "0.5541268", "0.5541268", "0.55297416", "0.5458232", "0.54577535", "0.54442734", "0.53997165", "0.53...
0.8743536
0
Sets the root_parent_type_iri of this MetadataResourceDto.
def zgeJ(YKHO, zgeJ): YKHO._root_parent_type_iri = zgeJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zgeJ(YKHO):\n return YKHO._root_parent_type_iri", "def m0NR(YKHO, m0NR):\n YKHO._root_parent_type_label = m0NR", "def KDQQ(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=wtVu, is_container='container', yang_name='r...
[ "0.7331687", "0.7075139", "0.5783483", "0.5718403", "0.5696473", "0.5684742", "0.54088825", "0.54004514", "0.534535", "0.53087527", "0.53087527", "0.53087527", "0.53087527", "0.53087527", "0.53087527", "0.53087527", "0.5294419", "0.52501225", "0.52457386", "0.52064604", "0.51...
0.88779247
0
Gets the description of this MetadataResourceDto.
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO) -> str:\n return YKHO._metadata.description", "def t5do(YKHO):\n if hasattr(YKHO.object, 'get_description'):\n return YKHO.object.get_description()\n else:\n raise NotImplementedError(YKHO.NOT_IMPLEMENTED_ERROR)", "def P8Tj(YKHO):\n return YKHO.properties.get('Descripti...
[ "0.7289739", "0.7133134", "0.7115484", "0.7115484", "0.7115484", "0.7075804", "0.7033356", "0.70250964", "0.70033747", "0.70033747", "0.70033747", "0.70033747", "0.7003132", "0.6979156", "0.69644636", "0.69644636", "0.69439787", "0.6939309", "0.6939309", "0.6939309", "0.69393...
0.0
-1
Sets the description of this MetadataResourceDto.
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO, JBZA):\n YKHO.spec.description.metadata.shortDescription = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def ...
[ "0.6929482", "0.68931156", "0.68931156", "0.68931156", "0.68931156", "0.6860253", "0.68566406", "0.6785241", "0.6763783", "0.6762995", "0.67466956", "0.6746527" ]
0.6793967
13
Gets the url of this MetadataResourceDto.
def bD7m(YKHO): return YKHO._url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKrO(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_url')", "def bD7m(YKHO):\n return YKHO.properties.get('Url', None)", "def bD7m(YKHO):\n return YKHO.properties.get('Url', None)", "def bD7m(YKHO) -> str:\n return str(YKHO._json_dict['url'])", "def j8eK(YKHO):\n return YKHO.resource.ur...
[ "0.75182766", "0.7372474", "0.73292863", "0.7279513", "0.7211838", "0.7132013", "0.7096152", "0.7076276", "0.7071892", "0.7071892", "0.7051605", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70440114", "0.70...
0.6983366
28
Gets the created of this MetadataResourceDto.
def _EYN(YKHO): return YKHO._created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _EYN(YKHO):\n if YKHO._created_present:\n return YKHO._created_value\n else:\n raise AttributeError(\"missing required field 'created'\")", "def hn25(YKHO):\n return None if YKHO.created == None else YKHO.created.clone()", "def _EYN(YKHO):\n if YKHO._created_present:\n retu...
[ "0.69327384", "0.69158065", "0.68671435", "0.6841577", "0.66556245", "0.663823", "0.6593829", "0.6593829", "0.6593829", "0.6593829", "0.6432187", "0.6378575", "0.637432", "0.6371497", "0.6368612", "0.6362365", "0.6362365", "0.6362365", "0.6362365", "0.6362365", "0.6362365", ...
0.67176276
5
Gets the updated of this MetadataResourceDto.
def sPBL(YKHO): return YKHO._updated
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVeV(YKHO):\n YKHO.resource.get()\n C9U5 = YKHO.resource.metadata\n YKHO.replace(C9U5 or {})", "def QdZT(YKHO):\n return YKHO.obj", "def cCMz(YKHO):\n return YKHO.update", "def yIVm(YKHO) -> lEJU:\n return YKHO._metadata", "def fUIN(YKHO):\n pass", "def sPBL(YKHO):\n if YKHO._...
[ "0.6948389", "0.69151056", "0.664645", "0.6404293", "0.6346934", "0.6335807", "0.6331483", "0.6240686", "0.6205122", "0.60231525", "0.60149914", "0.60149914", "0.6007148", "0.6006717", "0.60010016", "0.5993603", "0.59209234", "0.5912942", "0.5900399", "0.5900399", "0.58794165...
0.63100284
7
Gets the collections of this MetadataResourceDto.
def g760(YKHO): return YKHO._collections
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKCy(YKHO):\n return YKHO._resources", "def JKCy(YKHO):\n return YKHO._resources", "def JKCy(YKHO):\n return YKHO._resources", "def JKCy(YKHO):\n return YKHO._resources", "def A0zC(YKHO):\n return YKHO.resources", "def hawO(YKHO):\n w2IS = '/RESTapi/collections'\n geh0 = YKHO._ge...
[ "0.6908902", "0.6908902", "0.6908902", "0.6908902", "0.6905479", "0.6841928", "0.6733951", "0.67119724", "0.6593861", "0.65913415", "0.6559618", "0.6462401", "0.6405781", "0.6377644", "0.6335157", "0.63251156", "0.6313967", "0.6310201", "0.62389106", "0.6221442", "0.6193921",...
0.7281036
0
Sets the relationship_types of this MetadataResourceDto.
def CrIc(YKHO, CrIc): YKHO._relationship_types = CrIc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CrIc(YKHO):\n if YKHO.__relationship_types is None:\n YKHO.__relationship_types = ISu2(YKHO.uri.string + 'relationship/types')\n return frozenset(YKHO.__relationship_types.get().content)", "def KQdn(YKHO, KQdn):\n YKHO._relationships = KQdn", "def CrIc(YKHO):\n return YKHO._relationship_...
[ "0.6922376", "0.67063695", "0.6487266", "0.6335954", "0.6098993", "0.6085493", "0.6079626", "0.6063885", "0.6062481", "0.5981494", "0.59639853", "0.5944656", "0.58691084", "0.58538234", "0.58250725", "0.5709128", "0.5694387", "0.5678676", "0.566036", "0.5623379", "0.5607159",...
0.8053798
0
Gets the tags of this MetadataResourceDto.
def dJ1p(YKHO): return YKHO._tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvDz(YKHO):\n return YKHO.metadata['tags']", "def dJ1p(YKHO) -> 'outputs.TagsResponse':\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> 'outputs.TagsResponse':\n return qe4Y.get(YKHO, 'tags')", "def e9T2(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'resource_tags')...
[ "0.75807136", "0.7504827", "0.7504827", "0.7471679", "0.7322956", "0.7306951", "0.7306951", "0.73035604", "0.7080272", "0.7076606", "0.70718503", "0.70685434", "0.7035501", "0.7035501", "0.7035501", "0.7035501", "0.7035501", "0.7035501", "0.7035501", "0.7035501", "0.7035501",...
0.7063229
14
Gets the external_urls of this MetadataResourceDto.
def PME1(YKHO): return YKHO._external_urls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])"...
[ "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.8183308", "0.74384826", "0.72277164", "0.6734666", "0.6672824", "0.6656079", ...
0.8210421
0
Sets the external_urls of this MetadataResourceDto.
def PME1(YKHO, PME1): YKHO._external_urls = PME1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])", "def PME1(YKHO) -> xrN6:\n return xrN6(YKHO._json_dict['external_urls'])"...
[ "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.67297953", "0.652955", "0.652955", "0.646424", "0.646424", "0.6...
0.7967323
0
Gets the asset_status of this MetadataResourceDto.
def atY5(YKHO): return YKHO._asset_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Idxo(YKHO) -> qe4Y.Output[bdIy['outputs.LakeAssetStatus']]:\n return qe4Y.get(YKHO, 'asset_statuses')", "def jGRS(YKHO) -> 'outputs.ResourceStatusResponse':\n return qe4Y.get(YKHO, 'status')", "def Idxo(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['LakeAssetStatusArgs']]]]:\n return qe4Y.get(YKHO, 'as...
[ "0.7057784", "0.6720619", "0.67003477", "0.66805637", "0.6679267", "0.6668056", "0.655372", "0.6303264", "0.61872613", "0.61853844", "0.6166424", "0.6166424", "0.6140154", "0.6135348", "0.6106342", "0.6101341", "0.6095321", "0.6092774", "0.6092415", "0.6092415", "0.60754424",...
0.8338736
0
Gets the properties of this MetadataResourceDto.
def C9U5(YKHO): return YKHO._properties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iso7(YKHO):\n return YKHO.properties", "def Iso7(YKHO):\n return YKHO.properties", "def C9U5(YKHO):\n return JKCy.Properties(YKHO)", "def C9U5(YKHO):\n return YKHO['properties']", "def Iso7(YKHO):\n return YKHO._properties", "def Iso7(YKHO):\n return YKHO._properties", "def C9U5(Y...
[ "0.74486923", "0.74486923", "0.7377973", "0.7363636", "0.7360965", "0.7360965", "0.7352357", "0.73102164", "0.72795063", "0.71323425", "0.71323425", "0.71323425", "0.7130843", "0.7128834", "0.70941025", "0.7080726", "0.70756805", "0.7071099", "0.70242465", "0.70149", "0.70079...
0.71458024
9
Sets the properties of this MetadataResourceDto.
def C9U5(YKHO, C9U5): YKHO._properties = C9U5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmXd(YKHO, *qIxc, **B2fa):\n YKHO._put(YKHO._lookup('properties'), MKPt(*qIxc, **B2fa))", "def C9U5(YKHO, C9U5):\n YKHO._properties = C9U5", "def C9U5(YKHO, C9U5):\n YKHO._properties = C9U5", "def C9U5(YKHO, C9U5):\n YKHO._properties = C9U5", "def ZZ5v(YKHO, ZZ5v):\n YKHO._entity_propert...
[ "0.6448686", "0.6316155", "0.6316155", "0.6286344", "0.612144", "0.59268785", "0.59268785", "0.5916816", "0.5916816", "0.5905714", "0.5871401", "0.5819784", "0.5795641", "0.57932043", "0.5793093", "0.5725215", "0.5703173", "0.5655199", "0.5655199", "0.5655199", "0.5655199", ...
0.626328
4
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416155", "0.8510352", "0.78545547", "0.77443707", "0.77117187", "0.7697595", "0.76603293", "0.7638324", "0.76217484", "0.7607743", "0.7607743", "0.7607743", "0.76074046", "0.75997984", "0.7585864", "0.7583017", "0.75715595", "0.75687325", "0.7539626", "0.7539626", "0.752...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Combine the list of dicts 1 and with list of dicts 2 using the household indicator and year keys.
def LABV(dixM, f72z, ISP0, JW1H): AjzU = {(Csk6[ISP0], Csk6[JW1H]): Csk6 for Csk6 in f72z} dixM = [dict(Csk6, **AjzU.get((Csk6[ISP0], Csk6[JW1H]), {})) for Csk6 in dixM] return dixM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7MU(nPrm):\n zdB2 = []\n for exwG, lO87 in enumerate(nPrm):\n H5ew = Zw3T[exwG][:4]\n InYk = str(int(H5ew) + 1)\n sWfS = H5ew + 'rep'\n for LVAh in lO87:\n for tTpl in zdB2:\n if LVAh['origin'] == tTpl['origin'] and LVAh['asylum'] == tTpl['asylum']:\...
[ "0.6529611", "0.6204729", "0.5889818", "0.58875483", "0.5850386", "0.5846459", "0.57955194", "0.5772999", "0.57457507", "0.5716235", "0.5692367", "0.56858367", "0.5677659", "0.5659199", "0.5653244", "0.5650987", "0.5647815", "0.5640903", "0.5640824", "0.56345844", "0.5630848"...
0.6485341
1
Retrieves a list of redis slave nodes
def TKYF(): kDNl = gIfE() return [Gq9Y for Gq9Y in kDNl.container_groups.list() if X6Q3.match(Gq9Y.name)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XFeZ():\n kDNl = gIfE()\n return [Gq9Y for Gq9Y in kDNl.container_groups.list() if h3DZ.match(Gq9Y.name)]", "def LYVn(YKHO):\n return YKHO.__slaveDescsList", "def _qYW():\n SrE1 = []\n N1p7 = None\n if not xAU6.skip_show_slave_hosts:\n try:\n QOGf = wrJZ()\n N...
[ "0.7360194", "0.71128756", "0.6739491", "0.6683307", "0.6624249", "0.6569159", "0.64799553", "0.64791995", "0.64343", "0.64264274", "0.63921684", "0.63896185", "0.6373313", "0.63666177", "0.63485557", "0.6328016", "0.63055104", "0.63028973", "0.6274532", "0.62560284", "0.6250...
0.83684725
0
Pad a string to a given length.
def hVLt(vIwR, u54L): return '\n'.join([(' ' * u54L if p6S0 else '') + zFiD for p6S0, zFiD in enumerate(vIwR.split('\n'))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(vIwR, u54L=2, SAEY=' '):\n return SAEY + SAEY.join((vIwR[YRbF:YRbF + u54L] for YRbF in range(0, len(vIwR), u54L))) + SAEY", "def rIaC(GIN8: str, u54L: int=20) -> str:\n h3Aq = '0'\n DOuq = '0' * (u54L - len(GIN8) + 1)\n GIN8 = h3Aq + GIN8 + DOuq\n return GIN8", "def zt95(vIwR):\n ret...
[ "0.8072943", "0.80538136", "0.79273176", "0.785996", "0.782811", "0.77660865", "0.7709617", "0.7574024", "0.75413704", "0.74752885", "0.746646", "0.7464798", "0.74245965", "0.73930216", "0.7365563", "0.73526263", "0.7338307", "0.730063", "0.72576106", "0.72487825", "0.724324"...
0.81079715
0
Gets the XAxis handled by this instance.
def WKvO(YKHO) -> aM69.Axis: return YKHO._instance.x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkBi(YKHO):\n return kwwu(YKHO)", "def NkBi(YKHO):\n return YKHO['xaxis']", "def iDQV(YKHO):\n return YKHO.xaxis", "def pMNh(YKHO):\n return YKHO.hF.GetXaxis()", "def NkBi(YKHO):\n return YKHO.xvar", "def kwwu(YKHO, *qIxc):\n return leuP.Geom_Conic_XAxis(YKHO, *qIxc)", "def swF5(Y...
[ "0.86057156", "0.81663096", "0.79140246", "0.78655803", "0.77674425", "0.7345274", "0.73210514", "0.71495384", "0.71495384", "0.70809925", "0.7040334", "0.7040334", "0.7024445", "0.6898587", "0.68813944", "0.6829972", "0.67399186", "0.66981924", "0.66212106", "0.66212106", "0...
0.8104043
2
Gets the YAxis handled by this instance.
def LVAh(YKHO) -> aM69.Axis: return YKHO._instance.y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4e5(YKHO):\n return vAdN(YKHO)", "def i4e5(YKHO):\n return YKHO['yaxis']", "def H4dG(YKHO):\n return GYhQ.b2Rot_GetYAxis(YKHO)", "def Vhxv(YKHO):\n return YKHO.yaxis", "def i4e5(YKHO):\n return YKHO.yvar", "def vAdN(YKHO, *qIxc):\n return leuP.Geom_Conic_YAxis(YKHO, *qIxc)", "def...
[ "0.8854636", "0.8589256", "0.8451984", "0.8333477", "0.80979013", "0.80897903", "0.7995095", "0.7653067", "0.76434046", "0.76434046", "0.7616016", "0.7369879", "0.71701974", "0.7112614", "0.7112614", "0.70724756", "0.70564336", "0.703069", "0.7000443", "0.7000443", "0.6946395...
0.841541
3
Deny creation of a User if the username doesn't exist in LDAP.
def lKfQ(YKHO): NtEF = YKHO.cleaned_data['username'] try: dixj = yfvP(NtEF) except CZzy.LDAPError: bo34.error('user.ldap.new.ldap_lookup_failed', target_user=NtEF) raise H6V6.ValidationError(YKHO.error_messages['ldap_lookup_failed']) else: if dixj: return NtEF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C1yR(YKHO, NtEF, PWuZ):\n try:\n CBIr = mv1M.objects.get(username__iexact=NtEF)\n except rIt9:\n CBIr = mv1M(NtEF)\n return (CBIr, False)", "def SB6C(YKHO):\n if YKHO.cleaned_data.get('username').startswith(YKHO.request.site.hostname + '-'):\n NtEF = YKHO.cleaned_data.get('us...
[ "0.69542223", "0.6626711", "0.6489449", "0.6403458", "0.6392312", "0.63544834", "0.6326299", "0.63094985", "0.62899196", "0.62899196", "0.6276369", "0.6268629", "0.62633836", "0.6226544", "0.6225131", "0.62090474", "0.620522", "0.6205122", "0.6203253", "0.61931944", "0.617799...
0.64819133
3
Normally, this function ensures that the form cannot create a user that already exists. But since we need to allow that, we override this function to ensure only that this username doesn't belong to a member of the current Site, or to a superuser.
def SB6C(YKHO): try: CBIr = egNl().objects.get(username=YKHO.cleaned_data.get('username')) except egNl().DoesNotExist: pass else: if XRmH(CBIr, YKHO.request.site) or CBIr.is_superuser: YKHO.add_error('username', H6V6.ValidationError(YKHO.error_messages['duplicate_username...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwXz(YKHO, L03z):\n try:\n CBIr = L03z.create_user()\n except yXsM:\n yEHD.warning(YKHO.request, 'That username is already in use. Please try another.')\n return YKHO.form_invalid(L03z)\n else:\n return Yd7Q(gxEw('login'))", "def SB6C(YKHO):\n if YKHO.cleaned_data.get(...
[ "0.7380478", "0.7013869", "0.69535035", "0.6908363", "0.6874438", "0.6871358", "0.6838308", "0.68215156", "0.68130445", "0.67889583", "0.6770246", "0.67641264", "0.6744429", "0.6704084", "0.6698104", "0.66713357", "0.6648224", "0.6635597", "0.66353995", "0.6629661", "0.662147...
0.765286
0
By default, the form will complain if a user already exists with that username. But that message is confusing for Site admins who don't have a User with that username on their particular site. This function changes the error message so it's nonconfusng, but also vague enough not to suggest that other Sites exist.
def SB6C(YKHO): if YKHO.cleaned_data.get('username').startswith(YKHO.request.site.hostname + '-'): NtEF = YKHO.cleaned_data.get('username')[len(YKHO.request.site.hostname) + 1:] try: PWuZ = yfvP(NtEF) except CZzy.LDAPError: bo34.exception('usr.local.ldap-check.excepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SB6C(YKHO):\n try:\n CBIr = egNl().objects.get(username=YKHO.cleaned_data.get('username'))\n except egNl().DoesNotExist:\n pass\n else:\n if XRmH(CBIr, YKHO.request.site) or CBIr.is_superuser:\n YKHO.add_error('username', H6V6.ValidationError(YKHO.error_messages['duplic...
[ "0.75027555", "0.7096664", "0.69577956", "0.6920612", "0.6901259", "0.6893525", "0.6888295", "0.68095577", "0.680062", "0.67503107", "0.67324436", "0.66877794", "0.6675767", "0.66595304", "0.66400594", "0.66319436", "0.66300863", "0.6612743", "0.6568387", "0.65443903", "0.650...
0.65969634
18
Takes in a string that is composed of n, x, y or r letters such as 'nnnxxxyrrynn' (lower case), returns two sets that contain all possible combinations of the binary part (y/r) in DNA language, index of the binary barcode as a list, where the first element is the beginning position and the second the end, index of the ...
def WSmV(ZPrV): eN1Z = ZPrV.lower() QgKS = ''.join(''.join(eN1Z.split('n')).split('x')) T6OP = [eN1Z.index(QgKS), eN1Z.index(QgKS) + len(QgKS)] R5SF = ''.join(''.join(''.join(eN1Z.split('r')).split('y')).split('n')) Y_o7 = [eN1Z.index(R5SF), eN1Z.index(R5SF) + len(R5SF)] EQjW = [WKvO for WKvO in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSmV(ZPrV):\n eN1Z = ZPrV.lower()\n QgKS = ''.join(''.join(eN1Z.split('n')).split('x'))\n T6OP = [eN1Z.index(QgKS), eN1Z.index(QgKS) + len(QgKS)]\n R5SF = ''.join(''.join(''.join(eN1Z.split('r')).split('y')).split('n'))\n Y_o7 = [eN1Z.index(R5SF), eN1Z.index(R5SF) + len(R5SF)]\n EQjW = [WKvO ...
[ "0.6403019", "0.61246175", "0.58986175", "0.5813946", "0.5699918", "0.56671315", "0.55942297", "0.5571394", "0.55555236", "0.5515181", "0.54250944", "0.54114324", "0.540573", "0.54012185", "0.53994024", "0.5392619", "0.53734046", "0.5359963", "0.53481686", "0.5320934", "0.532...
0.63940144
1
Initialize ModelLoader. Loading will fail if extra keys are not put in ``omit_keys``
def FIMM(YKHO, WG2b, jxGD, D5Q4=None, bo34=None): llod(YKHO, WG2b, YKHO.get_option_spec(jxGD, D5Q4)) if bo34 is not None: YKHO.logger = bo34 else: YKHO.logger = G9jH.getIndexedLogger('\x1b[31;1m|py|\x1b[0mrlpytorch.model_loader.ModelLoader-', f'-model_index{D5Q4}') YKHO.option_map_for_mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n super().setup()\n YKHO._feature_keys = None\n YKHO._label_key = None\n if YKHO._eval_config:\n uVMS = YKHO.extract_model_specs()\n for mWFP in YKHO._loaded_models:\n if mWFP not in uVMS:\n raise ValueError(f'Missing model spec for loaded model {...
[ "0.6363649", "0.6279359", "0.62547", "0.62547", "0.6224826", "0.6201895", "0.61880755", "0.61880755", "0.61170816", "0.60916084", "0.6015354", "0.59634554", "0.59612155", "0.594172", "0.5933486", "0.5918239", "0.590983", "0.5906736", "0.58909506", "0.58759737", "0.58596945", ...
0.61136824
9
Read an image from the given filename. RGB images are converted to grayscale. Image DM3 files are read using dm3lib. Other file types are read using scipy.misc.imread and divided by 255 to map to [0,1].
def q5aE(Ux0P): bGrB, YBcr = Hy7s.path.splitext(Ux0P) if YBcr == '.dm3': s5pW = lFgo(Ux0P) Xn71 = s5pW.image() else: Xn71 = uqom.imread(Ux0P) Xn71 = Xn71.astype(oyIN.float32) / 255 if len(Xn71.shape) == 3: Xn71 = bIY1(Xn71) return Xn71
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cE34(Ux0P):\n LNo8 = frG3.io.imread(Ux0P)\n if LNo8.ndim == 2:\n LNo8 = frG3.color.gray2rgb(LNo8)\n LNo8 = frG3.img_as_float(LNo8)\n return LNo8", "def cE34(Ux0P):\n Xn71 = H4yH.misc.imread(Ux0P)\n return Xn71 / 127.5 - 1.0", "def q5aE(Ux0P, TcPZ):\n LNo8 = cE34(Ux0P)\n QsO2 ...
[ "0.79196835", "0.77336365", "0.7726953", "0.77211213", "0.77109104", "0.7691394", "0.7689275", "0.7685321", "0.766806", "0.76501685", "0.7648954", "0.76339775", "0.7572629", "0.7536584", "0.7497974", "0.7484689", "0.7454134", "0.7422032", "0.7406422", "0.74021065", "0.7401551...
0.8747814
0
Initialize the DM3 image from the given path.
def FIMM(YKHO, QMAG): YKHO.dm3f = yvp3.DM3(QMAG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDpT(YKHO, pmON):\n VXjJ = XC5k.imread(pmON)\n return VXjJ", "def FIMM(YKHO, pmON):\n YKHO.path = pmON\n try:\n YKHO.arr = YKHO._read_image_local(YKHO.path)\n except:\n YKHO.arr = YKHO._read_image_from_url()", "def FIMM(YKHO, pmON):\n YKHO.image = YKHO.load_image(pmON)\n ...
[ "0.6617345", "0.6579341", "0.65148467", "0.6507192", "0.6486255", "0.6356321", "0.6342645", "0.62525135", "0.6233107", "0.620336", "0.6197641", "0.61605936", "0.6133069", "0.6103896", "0.6006558", "0.5942233", "0.58924174", "0.5889229", "0.582435", "0.58225733", "0.5820112", ...
0.8142429
0
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.title = vGfb.get('name', KAOR.title) KAOR.code = vGfb.get('neighbors', KAOR.code) KAOR.linenos = vGfb.get('arrival_popularity', KAOR.linenos) KAOR.language = vGfb.get('departure_popularity', KAOR.language) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.comments = vGfb.get('comments', KAOR.comments)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n...
[ "0.67826825", "0.6662941", "0.6662941", "0.6658088", "0.664248", "0.6523873", "0.6523873", "0.6511716", "0.6488438", "0.64732265", "0.64300823", "0.6302202", "0.6292507", "0.62784654", "0.62029564", "0.6138993", "0.6099103", "0.60732114", "0.60543174", "0.6053473", "0.6011588...
0.5957493
22
Tests for the /zipcodes/ with DELETE method when zip_code does not exist
def huU0(YKHO): jLqg = '00000000' bD7m = YKHO.url_with_zipcode % {'zip_code': jLqg, 'api_key': YKHO.api_key} geh0 = YKHO.client.delete(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E7zu(YKHO):\n jLqg = hGbb.create()\n bD7m = YKHO.url_with_zipcode % {'zip_code': jLqg.zip_code, 'api_key': YKHO.api_key}\n geh0 = YKHO.client.delete(bD7m)\n YKHO.assertEqual(geh0.status_code, 204)", "def KiFi(YKHO):\n DD6W = YKHO.model.delete(14820000)\n YKHO.assertEqual(DD6W['ok'], 1)", ...
[ "0.7955127", "0.7458974", "0.67228925", "0.6587055", "0.63009113", "0.62844133", "0.6269895", "0.62536204", "0.6040922", "0.6013598", "0.5994453", "0.59589255", "0.5923063", "0.5893462", "0.5889641", "0.58825845", "0.5741547", "0.5729237", "0.5723967", "0.5701466", "0.5700894...
0.8144044
0
Tests for the /zipcodes/ with the POST method when zip_code doesn't have a valid format
def H4tB(YKHO): eWXi = qQXR.dumps({'zip_code': YKHO.fake_zipcode}) rhwM = 'Invalid %s zip code format.' % YKHO.fake_zipcode geh0 = YKHO.client.post(YKHO.url, eWXi, content_type='application/json') YKHO.assertEqual(geh0.status_code, 400) YKHO.assertIn(rhwM, geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TwoV(YKHO):\n jLqg = '00000-123'\n eWXi = qQXR.dumps({'zip_code': jLqg})\n rhwM = 'Zipcode %s not found in Postmon.' % jLqg\n geh0 = YKHO.client.post(YKHO.url, eWXi, content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertIn(rhwM, geh0.content)", "def CW30(YK...
[ "0.6764896", "0.6667678", "0.6627491", "0.6626021", "0.65429676", "0.646232", "0.6462236", "0.6346578", "0.62762505", "0.6261678", "0.62552184", "0.6252654", "0.62495595", "0.62132597", "0.6206419", "0.6153796", "0.6030585", "0.6021133", "0.5977615", "0.5968979", "0.59470695"...
0.73761827
0
Tests for the /zipcodes/ with the POST method when Postmon doesn't find the zip_code
def TwoV(YKHO): jLqg = '00000-123' eWXi = qQXR.dumps({'zip_code': jLqg}) rhwM = 'Zipcode %s not found in Postmon.' % jLqg geh0 = YKHO.client.post(YKHO.url, eWXi, content_type='application/json') YKHO.assertEqual(geh0.status_code, 400) YKHO.assertIn(rhwM, geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n Ow0d = YKHO.client.post(gxEw('grocerystore:index'), {'zipcode': 22600}, format='json')\n YKHO.assertRedirects(Ow0d, gxEw('grocerystore:start', kwargs={'zipcode': 22600}))\n mFeZ = YKHO.client.post(gxEw('grocerystore:index'), {'zipcode': 333}, format='json')\n YKHO.assertRedirects(mFeZ...
[ "0.6843695", "0.6823662", "0.65725124", "0.64562476", "0.64466673", "0.6312454", "0.6236738", "0.6206814", "0.61253005", "0.6108492", "0.6084118", "0.6070044", "0.60593265", "0.60008097", "0.5993298", "0.5990134", "0.59685266", "0.59569716", "0.58279335", "0.5804533", "0.5774...
0.7178233
0
Create an upsampling block for the unet architecture
def _1d_(gE42, aCyO, XG2U=True, KUnM=16, fA6H=(3, 3, 3), YDYE='elu', ReNU=0.3, idFg=True, b1O8='he_normal', hVLt='same', lZHA=(2, 2), yRKL=False, kvqa=2): zCiL = getattr(bISY, 'Conv{}D'.format(kvqa)) fA6H = fA6H[:kvqa] if XG2U: fAql = getattr(bISY, 'UpSampling{}D'.format(kvqa)) js3D = fAql(s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, UDrg, sqUk, WZcn, _0fC, hVLt):\n super(mCRR, YKHO).__init__()\n yIp6 = U78l.Conv2d\n c9qO = U78l.UpsamplingBilinear2d\n XkN1 = U78l.Sequential()\n XkN1.add_module('conv_1', yIp6(UDrg, sqUk, WZcn, _0fC, hVLt))\n XkN1.add_module('upsample_2', c9qO(scale_factor=2))\n YKHO.biup_bloc...
[ "0.73551875", "0.7033585", "0.7003777", "0.69894964", "0.69118136", "0.68635267", "0.68463683", "0.67109287", "0.6589639", "0.63520896", "0.63286173", "0.6266123", "0.6216274", "0.6203042", "0.6202594", "0.6191567", "0.61779296", "0.61761254", "0.6175315", "0.61651057", "0.61...
0.64258695
9
Returns a keras.optimizer default is an Adam optimizer
def nd_x(GPtr): y7GR = GPtr.get('OPTIMIZER', 'Adam') tspZ = GPtr.get('LEARNING_RATE', 0.001) cfQG = GPtr.get('EPSILON', 1e-08) MDzo = GPtr.get('DECAY', 0.0) K0do = None if y7GR == 'Adagrad': K0do = bdPE.optimizers.Adagrad(lr=tspZ, epsilon=cfQG, decay=MDzo) elif y7GR == 'RMSprop': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDK3(YKHO):\n cRcy = sqQC.Adam(YKHO.model.parameters(), lr=YKHO.args.learning_rate)\n return cRcy", "def nd_x(YKHO):\n if YKHO.optimizer_name == 'adam':\n return ZylS.train.AdamOptimizer(learning_rate=YKHO.learning_rate, beta1=0.5)\n elif YKHO.optimizer_name == 'sgd':\n return ZylS....
[ "0.81078213", "0.7909298", "0.788594", "0.78326344", "0.78090364", "0.78090364", "0.77099514", "0.7708283", "0.7647975", "0.7544755", "0.75290734", "0.74607563", "0.74450403", "0.7440035", "0.7414499", "0.74043655", "0.7384476", "0.73715985", "0.7337525", "0.73284733", "0.729...
0.7566447
9
create a new model or load a pretrained model
def YrZb(GPtr=dict(), Wbxz=None): if GPtr.get('LOAD', False): return Y7RH(GPtr, Wbxz) return V4v4(GPtr, Wbxz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADWC():\n print('Loading existing model...')\n print('Model loaded!')\n C3ST = ZylS.keras.models.load_model(DKx_['PRETRAIN_MODEL_DIR'])\n C3ST = x2M3(C3ST)\n return C3ST", "def IMdJ():\n C3ST = OLvP()\n C3ST.load_weights(Yodb)\n return C3ST", "def DZeY():\n C3ST = YrZb()\n C3S...
[ "0.78922343", "0.76620144", "0.7645105", "0.7615656", "0.75222915", "0.7500465", "0.7482093", "0.7482093", "0.7465699", "0.7401141", "0.7401141", "0.7401141", "0.73569983", "0.73497", "0.73191905", "0.7245238", "0.7244512", "0.7244309", "0.7239099", "0.72350204", "0.72313476"...
0.0
-1
Load a pretrained keras model for a given model.json file and the weights as h5 file
def Y7RH(GPtr=None, Wbxz=None, yCnv=True, SJz5=False): if GPtr is None: GPtr = {} if Wbxz is None: Wbxz = [bdPE.metrics.binary_accuracy] wJyI = GPtr.get('GPU_IDS', '1').split(',') PrCy = GPtr.get('LOSS_FUNCTION', bdPE.losses.categorical_crossentropy) G9jH.info('loading model from: {}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(YKHO):\n from keras.models import model_from_json\n with open(YKHO.model_file, 'r') as nUeQ:\n YKHO.model = model_from_json(nUeQ.read())\n YKHO.model.load_weights(YKHO.weights_file)", "def SP5P(Ux0P):\n wM3v = open(Ux0P + '.json', 'r')\n jlS7 = wM3v.read()\n wM3v.close()\n ...
[ "0.84279853", "0.829663", "0.81898856", "0.81503105", "0.81424946", "0.8133437", "0.8096718", "0.8028988", "0.8028187", "0.7953503", "0.78663576", "0.78569037", "0.78047794", "0.77736616", "0.77707", "0.7754051", "0.7722186", "0.7649798", "0.76384157", "0.7620202", "0.7614554...
0.0
-1
Adds padding to the output of the module based on the given lengths. This is to ensure that the results of the model do not change when batch sizes change during inference. Input needs to be in the shape of (BxCxDxT)
def FIMM(YKHO, Sqyf): super(HH8c, YKHO).__init__() YKHO.seq_module = Sqyf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0NN(YKHO, Wc9F, ya9a):\n ty06 = oyIN.full((Wc9F.shape[0], Wc9F.shape[1] + 2), YKHO.embeddings.bos)\n ty06[:, 1:-1] = Wc9F\n for YRbF in range(len(ya9a)):\n ty06[YRbF, ya9a[YRbF] + 1] = YKHO.embeddings.eos\n return (ty06, ya9a + 2)", "def AeBf(YKHO, H_2r: Union[Dict[str, EncodedInput], Bat...
[ "0.6675698", "0.64477", "0.6433619", "0.6433399", "0.64230484", "0.64138395", "0.63853", "0.6358981", "0.6351174", "0.63206166", "0.62873197", "0.6283723", "0.62742347", "0.6262818", "0.6256898", "0.62364054", "0.6233777", "0.6215451", "0.6214822", "0.62079215", "0.62072307",...
0.0
-1
Get the row indices of each occurance of a file in the files column and return tuple containing filename and list of indices
def qvyn(Q6uT): A6dL = oRi_(list) for YRbF, ZfUD in enumerate(Q6uT): A6dL[ZfUD].append(YRbF) return ((H5ew, GOzt) for H5ew, GOzt in A6dL.items() if len(GOzt) >= 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVrZ(YKHO):\n return [[gnPz.indexer.IndexedFile(Sd0C, 'id', line_idx=True) for Sd0C in MBW2] for MBW2 in YKHO.idx_files]", "def EhJs(YKHO, nUeQ):\n d6pt = 0\n for rdlD in YKHO:\n if rdlD[1] and Hy7s.path.basename(rdlD[1]) == Hy7s.path.basename(nUeQ):\n return d6pt\n d6pt += ...
[ "0.6609803", "0.6515347", "0.6484039", "0.6458739", "0.6456053", "0.6376206", "0.6375316", "0.63268685", "0.63257766", "0.631049", "0.61433816", "0.6116118", "0.60790473", "0.60781205", "0.6012934", "0.6005349", "0.60052633", "0.59658945", "0.5964034", "0.589325", "0.5892501"...
0.72738355
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None Bp7N = cmPJ.get('filePathVec') CyrT = qRGs.models.magneto_instance_id.MagnetoInstanceId.from_dictionary(cmPJ.get('magnetoInstanceId')) if cmPJ.get('magnetoInstanceId') else None NBcv = qRGs.models.magneto_object_id.MagnetoObjectId.from_dictionar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Test that user edit page works
def kVoz(YKHO): bD7m = gxEw('admin:core_user_change', args=[YKHO.user.id]) Ylbp = YKHO.client.get(bD7m) YKHO.assertEqual(Ylbp.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _dh_(YKHO):\n bD7m = gxEw('admin:core_user_change', args=[YKHO.user.id])\n Ylbp = YKHO.client.get(bD7m)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def _dh_(YKHO):\n bD7m = gxEw('admin:core_user_change', args=[YKHO.user.id])\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(ge...
[ "0.8720298", "0.87107116", "0.86780244", "0.863715", "0.8571048", "0.8563866", "0.8488866", "0.82416403", "0.810085", "0.8074266", "0.8024756", "0.78687596", "0.78546584", "0.7854031", "0.7782505", "0.7741189", "0.7733365", "0.7707296", "0.76951325", "0.7694935", "0.7599948",...
0.7314593
46
Plot the generator model, either to file, or return as an SVG if no filename is specified
def vEH0(YKHO, Ux0P=None): return YKHO.plot_model(YKHO.g_model)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLe6(C3ST, Ux0P=None):\n if Ux0P is None:\n return bEMg(SdKk(C3ST, show_shapes=True, show_layer_names=True).create(prog='dot', format='svg'))\n else:\n pLe6(C3ST, to_file=Ux0P, show_shapes=True, show_layer_names=True)", "def qMT8():\n QrM1.savefig(fname='name', format='svg')", "def f...
[ "0.725268", "0.70015514", "0.6903943", "0.68473095", "0.6745115", "0.6741034", "0.6734569", "0.6699386", "0.66725445", "0.6669679", "0.6659937", "0.6645426", "0.66283673", "0.6625326", "0.6604963", "0.6577513", "0.65600723", "0.65488344", "0.64860034", "0.64721644", "0.646155...
0.77758825
0
create a grid plot of multiple images
def SewJ(_73Q, DbyF=(10, 10), wytA=(10, 10), iMGt='gray_r'): QcNK.figure(figsize=wytA) for YRbF in range(DbyF[0] * DbyF[1]): QcNK.subplot(DbyF[0], DbyF[1], 1 + YRbF) QcNK.axis('off') QcNK.imshow(oyIN.squeeze(_73Q[YRbF]), interpolation='nearest', cmap=iMGt) QcNK.tight_layout() QcN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ry8O(Yw_3):\n JI1i = QrM1.figure(figsize=(10, 10))\n for YRbF in range(25):\n QrM1.subplot(5, 5, YRbF + 1, title='name')\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.grid(False)\n QrM1.imshow(Yw_3[YRbF], cmap=QrM1.cm.binary)\n return JI1i", "def NDFl(Yw_3, usx6, ZLJ_...
[ "0.8588314", "0.82931983", "0.7852584", "0.7766496", "0.77023244", "0.76896864", "0.7664227", "0.7650898", "0.7603101", "0.7601137", "0.75841564", "0.7553154", "0.7530043", "0.750967", "0.7495918", "0.74897283", "0.7487994", "0.74844724", "0.74769855", "0.74740165", "0.746133...
0.7314047
45
Test for Data Lake Store origin stage. We do so by creating a file in Azure Data Lake Storage using the STF client, then reading the file using the ALDS Gen2 Origin Stage, to assert data ingested by the pipeline is the expected data from the file.
def gJl2(PQER, hdzf, FytW): btfg = GLL2(vIwR.ascii_letters, 10) gIsw = 'test-data.txt' yEHD = [f'message{YRbF}' for YRbF in range(1, 10)] try: LxIw = FytW.datalake.file_system LxIw.mkdir(btfg) LxIw.touch(f'{btfg}/{gIsw}') LxIw.write(f'{btfg}/{gIsw}', '\n'.join((tO9_ for t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ifYK(PQER, hdzf, FytW):\n btfg = GLL2(vIwR.ascii_letters, 10)\n gIsw = 'test-data.txt'\n yEHD = [f'message{YRbF}' for YRbF in range(1, 10)]\n try:\n LxIw = FytW.datalake.file_system\n LxIw.mkdir(btfg)\n LxIw.touch(f'{btfg}/{gIsw}')\n LxIw.write(f'{btfg}/{gIsw}', '\\n'.jo...
[ "0.75195813", "0.7095478", "0.70557773", "0.6993399", "0.6669863", "0.63057315", "0.62760425", "0.5970496", "0.5918341", "0.5910984", "0.58107394", "0.58032614", "0.57705307", "0.565393", "0.56156343", "0.5603124", "0.558877", "0.5567851", "0.55421966", "0.5541815", "0.553545...
0.75976586
0
Test for Data Lake Store origin stage. We do so by creating a file in Azure Data Lake Storage using the STF client, then reading the file using the ALDS Gen2 Origin Stage, to assert data ingested by the pipeline is the expected data from the file.
def zu51(PQER, hdzf, FytW): btfg = GLL2(vIwR.ascii_letters, 10) gIsw = 'test-data-1.txt' yEHD = [f'message{YRbF}' for YRbF in range(1, 10)] try: LxIw = FytW.datalake.file_system LxIw.mkdir(btfg) LxIw.touch(f'{btfg}/{gIsw}') LxIw.write(f'{btfg}/{gIsw}', '\n'.join((tO9_ for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJl2(PQER, hdzf, FytW):\n btfg = GLL2(vIwR.ascii_letters, 10)\n gIsw = 'test-data.txt'\n yEHD = [f'message{YRbF}' for YRbF in range(1, 10)]\n try:\n LxIw = FytW.datalake.file_system\n LxIw.mkdir(btfg)\n LxIw.touch(f'{btfg}/{gIsw}')\n LxIw.write(f'{btfg}/{gIsw}', '\\n'.jo...
[ "0.7597793", "0.75194246", "0.7095579", "0.69939494", "0.66702163", "0.6306404", "0.6274477", "0.5969735", "0.591683", "0.5911371", "0.5809996", "0.58021617", "0.5770193", "0.5653345", "0.56145793", "0.5603032", "0.55883116", "0.55682117", "0.5541888", "0.5541349", "0.5534917...
0.70558804
3
Function for making heatmap.
def l9q2(YKHO, jQ3Z, l5ZK, Pyrc=(6, 4), Ux0P=None, ybfX=2, **B2fa): H2HG = rdsS.Pitch(line_color=YKHO.line_color, pitch_color=YKHO.pitch_color, orientation=YKHO.orientation, plot_arrow=True) if B2fa.get('figax'): LZpg, aNZO = H2HG.create_pitch(figax=B2fa['figax']) else: LZpg, aNZO = H2HG.cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(JbSN, WXkz):\n pass", "def HdrB(ulSL, QQHQ, tii4, m9N2, I0Q6, k9rP, nHGZ):\n PtxX = []\n for WKvO in range(0, QQHQ + tii4):\n if WKvO == tii4 // 2:\n PtxX.append('-Intron Start')\n elif WKvO == tii4 // 2 + QQHQ:\n PtxX.append('-Intron Stop')\n elif WKv...
[ "0.80383825", "0.803801", "0.7790377", "0.77889675", "0.77742946", "0.7349382", "0.73439", "0.72938967", "0.71833265", "0.7174279", "0.71742177", "0.7155144", "0.7136323", "0.71217304", "0.7103005", "0.7101572", "0.70958704", "0.70874506", "0.7080936", "0.7064693", "0.7062642...
0.73182845
7
Helper function to create heatmap.
def ntd2(YKHO, jQ3Z, aNZO, Pyrc=(6, 4), Ux0P=None, ybfX=2): SppC = YKHO.make_matrix(jQ3Z, Pyrc, aNZO) aNZO.imshow(SppC, zorder=ybfX, aspect='auto', vmin=0, vmax=SppC.max(), extent=(0, 104, 0, 68), cmap=YKHO.cmap, alpha=YKHO.alpha, interpolation=YKHO.interpolation) aNZO.set_xticks([-3, 106]) aNZO.set_yti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(JbSN, WXkz):\n pass", "def HdrB(ulSL, QQHQ, tii4, m9N2, I0Q6, k9rP, nHGZ):\n PtxX = []\n for WKvO in range(0, QQHQ + tii4):\n if WKvO == tii4 // 2:\n PtxX.append('-Intron Start')\n elif WKvO == tii4 // 2 + QQHQ:\n PtxX.append('-Intron Stop')\n elif WKv...
[ "0.78945535", "0.77477753", "0.764485", "0.743185", "0.73639536", "0.7346511", "0.7295177", "0.7243119", "0.7212726", "0.7139623", "0.7094784", "0.70711917", "0.70495915", "0.7033358", "0.7018181", "0.6984366", "0.69282645", "0.6925701", "0.69238734", "0.6880274", "0.6867343"...
0.70029515
15
Function for making aligned heatmap.
def lFXV(YKHO, jQ3Z, Pyrc=(4, 4), Ux0P=None, ybfX=2): H2HG = rdsS.Pitch(line_color=YKHO.line_color, pitch_color=YKHO.pitch_color, orientation=YKHO.orientation, plot_arrow=True, arrow_color=YKHO.arrow_color) LZpg, aNZO = H2HG.create_pitch() S6wA, SppC, dDCP = YKHO.make_aligned_matrix(jQ3Z, Pyrc) JCoA = m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Ek(nPrm, vXQH, aWdh, aNZO=None, dg5A={}, MEex='', **B2fa):\n if not aNZO:\n aNZO = QrM1.gca()\n Xn71 = aNZO.imshow(nPrm, **B2fa)\n US3l = aNZO.figure.colorbar(Xn71, ax=aNZO, fraction=0.026, pad=0.01, **dg5A)\n US3l.ax.set_ylabel(MEex, rotation=-90, va='bottom', fontsize='13')\n aNZO.set...
[ "0.6926731", "0.6766245", "0.6744471", "0.6725056", "0.6716754", "0.67011386", "0.6700986", "0.6700944", "0.6689797", "0.6675244", "0.6670571", "0.666228", "0.66491485", "0.6612925", "0.6607201", "0.66038764", "0.6602629", "0.66012365", "0.660093", "0.6594563", "0.65897274", ...
0.64591837
34
Sets the start_at of this MarkPriceKlineInfo.
def vwe5(YKHO, vwe5): YKHO._start_at = vwe5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IonF(YKHO, BWXx: datetime):\n YKHO._starts_at = BWXx", "def Ruu7(YKHO, Ruu7):\n YKHO._start_point = Ruu7", "def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5", "def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5", "def PiT5(YKHO, PiT5):\n YKHO._started_at = PiT5", "def PiT5(YKHO, PiT5):\n ...
[ "0.72164816", "0.6839338", "0.6506622", "0.6506622", "0.6506622", "0.6506622", "0.6506622", "0.6416672", "0.6334819", "0.6328914", "0.6318137", "0.62966096", "0.62966096", "0.62966096", "0.627081", "0.6251555", "0.6251555", "0.6251555", "0.6232854", "0.62121534", "0.62121534"...
0.75327396
0
Sets the high of this MarkPriceKlineInfo.
def ODP9(YKHO, ODP9): YKHO._high = ODP9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nKg4(YKHO, nKg4):\n YKHO._high_price = nKg4", "def hBBm(YKHO, hBBm):\n YKHO._low_price = hBBm", "def Vhb5(YKHO, yQ5t):\n YKHO.output(yQ5t, mbwT)", "def Cc7P(YKHO, Cc7P: HighScore):\n YKHO._high_score = Cc7P", "def ABzN(YKHO, gqRb, ODP9, BUpm=0):\n raise NotImplementedError()", "def mJu...
[ "0.7478928", "0.63035244", "0.62332076", "0.61424816", "0.58730364", "0.58706635", "0.58706635", "0.57847756", "0.57297313", "0.5726217", "0.5690844", "0.5665447", "0.56411916", "0.5621426", "0.56029797", "0.5589934", "0.5570289", "0.5545718", "0.5520519", "0.5520519", "0.546...
0.7032293
1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83931243", "0.83552086", "0.82955265", "0.8132768", "0.81150424", "0.81002593", "0.80996835", "0.80982906", "0.80982906", "0.80930424", "0.80930424", "0.80930424", "0.80930424", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8067391", "0.80594134", "0....
0.80443656
71
Extract features from a images.
def carQ(QMAG, YxIR, pPqH, wtB6=False, cEbM=False, LpOW=True): LNo8 = XC5k.imread(QMAG, XC5k.IMREAD_COLOR) ZHfW = XC5k.imread(YxIR, XC5k.IMREAD_GRAYSCALE) // 255 if LNo8 is None: raise ValueError(f'Could not open or find the image.', QMAG) if ZHfW is None: raise ValueError(f'Could not op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(YKHO, xkjI):\n xkjI = YKHO.__build_image_data(xkjI)\n bySB = YKHO.model.predict(xkjI)\n return bySB", "def PSlE(YKHO, xkjI):\n return YKHO.student.extract_feat(xkjI)", "def PSlE(YKHO, xkjI):\n return YKHO.model_t.extract_feat(xkjI)", "def q2CL(YKHO, xkjI, dsE5=False):\n LyKa = []\n...
[ "0.8170123", "0.8128987", "0.8083688", "0.7960941", "0.7783897", "0.7708007", "0.7693077", "0.7676952", "0.76683956", "0.7659498", "0.76352674", "0.76159513", "0.76110417", "0.75958896", "0.7551065", "0.7551065", "0.7524631", "0.75151765", "0.7512344", "0.75102544", "0.749573...
0.6661679
93
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(Tw9M, YKHO).__init__(*qIxc, **c_sp) if YKHO.center_x is None: YKHO.center_x = 0.0 if YKHO.center_y is None: YKHO.center_y = 0.0 if YKHO.object_width is None: YKHO.object_width = 0.0 if Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.81645405", "0.77183473", "0.77183473", "0.7650878", "0.7572794", "0.7542492", "0.7485125", "0.7469581", "0.74573225", "0.744426", "0.7444072", "0.74321896", "0.7415316", "0.74081516", "0.73915523", "0.73746157", "0.7361855", "0.7324079", "0.73234046", "0.73234046", "0.7323...
0.0
-1
Returns reponse object with given error message as json and status code
def G3KB(tO9_, JBvl: int): Ylbp = (pz3A({'msg': tO9_}), JBvl) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGZ6(JBvl, Ol8d):\n geh0 = pz3A({'status': JBvl, 'message': Ol8d})\n geh0.status_code = JBvl\n return geh0", "def G3KB(Wxnj, Ol8d):\n geh0 = pz3A({'message': Ol8d})\n geh0.status_code = Wxnj\n return geh0", "def isYT(Wxnj=404, Ol8d='Requested resource was not found', UAju=list()):\n ge...
[ "0.8390014", "0.8364705", "0.8207357", "0.8082307", "0.8069725", "0.80579394", "0.79078954", "0.7869896", "0.7851211", "0.7825051", "0.7715705", "0.7706488", "0.7674593", "0.76048756", "0.75999755", "0.75984925", "0.7562768", "0.7539695", "0.75305593", "0.7524509", "0.7492485...
0.833277
2
Remove tags from text.
def m8Hz(YKHO, l5Ny): TBsA = YKHO._replace(YmXz, l5Ny.strip()) return TBsA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as8h(l5Ny):\n import re\n dJ1p = {YRbF: ' ' for YRbF in re.findall('(<[^>\\n]*>)', l5Ny.strip())}\n ZFaF = Pusg(lambda WKvO, aoD7: WKvO.replace(*aoD7), dJ1p.iteritems(), l5Ny)\n return ' '.join(ZFaF.split())", "def as8h(l5Ny):\n import re\n dJ1p = {YRbF: ' ' for YRbF in re.findall('(<[^>\\n...
[ "0.8448894", "0.8448894", "0.84424394", "0.81194997", "0.8072714", "0.8006015", "0.78588986", "0.781267", "0.7807462", "0.7807462", "0.7780917", "0.77566415", "0.7754676", "0.774653", "0.774653", "0.774653", "0.774653", "0.774653", "0.774653", "0.773199", "0.77294105", "0.7...
0.0
-1
Convert coordinates to (lon, lat) if necessary depending on the WMS version and CRS.
def FOcz(YKHO, jNOo, DpZH, ucxv): if GPtr.get('cows.wms.handleLatLongCoords', 'false').lower() == 'true' and YKHO._isLatLonOrderCrs(DpZH, ucxv): WKvO, LVAh = jNOo return (LVAh, WKvO) else: return jNOo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4KJ(WKvO, LVAh):\n with qmLP.catch_warnings():\n qmLP.simplefilter('ignore')\n zBLp = YsBu(init='epsg:3408')\n KD2E = YsBu(init='epsg:4326')\n FDPT, QnmL = SZFh(zBLp, KD2E, WKvO, LVAh)\n return (FDPT, QnmL)", "def TzZb(FDPT, QnmL):\n with qmLP.catch_warnings():\n ...
[ "0.7042853", "0.7026725", "0.69096994", "0.68506676", "0.6807502", "0.67001164", "0.6666904", "0.6638638", "0.6616831", "0.6592317", "0.6586406", "0.6581685", "0.65397286", "0.65119106", "0.64743346", "0.64579624", "0.6453554", "0.64491075", "0.6434666", "0.64288217", "0.6428...
0.749616
0
converts dense tensor x to sparse format
def zXM_(WKvO, du2w=1): zHeZ = ht2j.typename(WKvO).split('.')[-1] UX5J = getattr(ht2j.sparse, zHeZ) _0VL = ht2j.nonzero(WKvO)[:, :len(WKvO.shape) - du2w + 1] if len(_0VL.shape) == 0: return UX5J(*WKvO.shape) _0VL = _0VL.t() hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXM_(WKvO):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)\n if len(_0VL.shape) == 0:\n return UX5J(*WKvO.shape)\n _0VL = _0VL.t()\n hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))]\n return UX5J(_0VL, hkx...
[ "0.8283295", "0.8255158", "0.8255158", "0.8255158", "0.8255158", "0.8255158", "0.8255158", "0.8147883", "0.7843562", "0.7773273", "0.76879996", "0.7597557", "0.75487393", "0.7533866", "0.7494915", "0.74796766", "0.7464424", "0.7452206", "0.73172224", "0.7302869", "0.7302869",...
0.8400781
0
Convert a dense tensor to a sparse one.
def R1eO(oP0T): yDqo = oP0T.dtype begE = oP0T.device Xbds = oP0T.requires_grad _0VL = ht2j.nonzero(oP0T) if len(_0VL.shape) == 0: return ht2j.sparse_coo_tensor([], [], oP0T.shape, dtype=yDqo, device=begE, requires_grad=Xbds) _0VL = _0VL.t() hkxX = oP0T[tuple((_0VL[YRbF] for YRbF in r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ffaq(vhpA):\n if isinstance(vhpA, ZylS.sparse.SparseTensor):\n return vhpA\n _0VL = ZylS.compat.v1.where(vhpA)\n hkxX = ZylS.compat.v1.gather_nd(vhpA, _0VL)\n ROpF = ZylS.compat.v1.shape(vhpA, out_type=ZylS.dtypes.int64)\n return ZylS.sparse.SparseTensor(_0VL, hkxX, ROpF)", "def R1eO(FX...
[ "0.8324403", "0.8318401", "0.83068794", "0.820828", "0.8057842", "0.79374826", "0.76098347", "0.7550518", "0.7537626", "0.7537626", "0.7537626", "0.7537626", "0.7537626", "0.7537626", "0.746307", "0.7431447", "0.7189975", "0.71434796", "0.71170324", "0.710332", "0.7099752", ...
0.8204749
4
Recover scipy.sparse coo_matrix from a dictionary containing row, col and data2d tensors.
def sSQQ(nrPf): Ep8u = nrPf['row'].shape[0] qVr5 = {H5ew: nrPf[H5ew].numpy() for H5ew in nrPf} KG9w = [] naMS = oyIN.zeros((2,), dtype=oyIN.int) for Fg_i in range(Ep8u): ROpF = qVr5['shape'][Fg_i].astype(oyIN.int) naMS[0] = max(ROpF[0], naMS[0]) naMS[1] = max(ROpF[1], naMS[1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHRD(HHlK):\n rdlD = []\n fvDH = []\n nPrm = []\n for pOIe, yVzw in HHlK.items():\n for H5ew, wEf2 in yVzw.items():\n rdlD.append(pOIe)\n fvDH.append(H5ew)\n nPrm.append(wEf2)\n o4sw = lqeT((nPrm, (rdlD, fvDH)))\n return o4sw", "def _Eb2(r8hN, ROpF=No...
[ "0.687605", "0.6810813", "0.6475702", "0.64005363", "0.6393094", "0.6342275", "0.6260178", "0.6260125", "0.6215174", "0.6209122", "0.6206466", "0.61322397", "0.6106228", "0.60990524", "0.5977321", "0.5959348", "0.59338355", "0.5930755", "0.5915423", "0.59110534", "0.58881176"...
0.5953432
16
Creates an easy to read string representation of the OrderedDict of metric values outputted by the above get_all_metrics function.
def bOpF(Wbxz): try: olP3 = ['confusion_matrix', 'accuracy', 'iterations'] Sk_F = ['all', 'y_true_dist', 'y_predicted_dist'] hlel = 'iterations: ' + str(int(Wbxz['iterations'])) if 'iterations' in Wbxz else '1' hlel += '\n\n' hlel += 'accuracy: ' + '%.3f' % Wbxz['accuracy'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gTzM(YKHO):\n Gcbu = kJm3()\n for G1Hx, Ty9i in sorted(YKHO.values.items()):\n Gcbu.write('%s = %r\\n' % (G1Hx, Ty9i))\n return Gcbu.getvalue()", "def N3km(aCqS):\n dEzN = ''\n for AcYW, BWXx in aCqS.items():\n dEzN += str(AcYW) + ' : ' + str(BWXx) + ' '\n return dEzN", "...
[ "0.6731931", "0.64986", "0.6481886", "0.6386844", "0.6372525", "0.63634664", "0.63358176", "0.63196325", "0.62972486", "0.62972486", "0.62972486", "0.62972486", "0.62972486", "0.6280042", "0.6176965", "0.61681", "0.61469144", "0.6146749", "0.6105912", "0.6090831", "0.6088427"...
0.6223205
14
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def Fmoo(K0do, qtWj, _mIB, b6Gq): tspZ = qIxc.learning_rate assert len(_mIB) == len(b6Gq), 'length of gammas and schedule should be equal' for KMvS, YPaw in zip(_mIB, b6Gq): if qtWj >= YPaw: tspZ = tspZ * KMvS else: break for Lwm5 in K0do.param_groups: Lwm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Determine whether a given migration filename matches a given timestamp or is after it.
def JzzE(YKHO, vKdN, E3oo): JATT = False dlx3 = False U1_3 = E3oo.timestamp.strftime('%Y%m%d') ewCu = E3oo.counter if vKdN[:8] >= U1_3: if vKdN[:8] > U1_3: dlx3 = True elif ewCu: UHFx = YKHO.MIGRATION_WITH_COUNTER.search(vKdN) if UHFx: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fvvH(cntZ, CsFy):\n if not Hy7s.path.exists(cntZ):\n raise Exception('Missing file {}'.format(cntZ))\n if not Hy7s.path.exists(CsFy):\n return True\n cu9q = Hy7s.path.getmtime(cntZ)\n EDyT = Hy7s.path.getmtime(CsFy)\n return cu9q >= EDyT", "def p2Qm(S1R7, zuPL):\n if not Hy7s....
[ "0.6401169", "0.6339669", "0.61996067", "0.61936045", "0.6165124", "0.6113451", "0.61101145", "0.60940886", "0.606707", "0.5975627", "0.5959134", "0.59508204", "0.59508204", "0.59504545", "0.59396636", "0.5937468", "0.5924048", "0.58724713", "0.585879", "0.57742095", "0.57719...
0.8207208
0
Maze by Wilson's algorithm.
def bQoL(TxAA, tk5Y): TxAA.loop_erased_walk_path = [] def LwHz(VmPb): """Add a cell to the path of current random walk.""" TxAA.mark_cell(VmPb, gHhh.PATH) TxAA.mark_space(TxAA.loop_erased_walk_path[-1], VmPb, gHhh.PATH) TxAA.loop_erased_walk_path.append(VmPb) def wbXT(VmPb)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ixFI(X3eO):\n KCHu = o5oX.SOUTH\n yzQ0 = o5oX.WEST\n return [KCHu, KCHu, yzQ0, KCHu, yzQ0, yzQ0, KCHu, yzQ0]", "def ixFI(X3eO):\n KCHu = o5oX.SOUTH\n yzQ0 = o5oX.WEST\n return [KCHu, KCHu, yzQ0, KCHu, yzQ0, yzQ0, KCHu, yzQ0]", "def ixFI(X3eO):\n from game import Directions\n KCHu = ...
[ "0.681484", "0.6720322", "0.6611193", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6606477", "0.6540274", "0.6540274", "0.6540274", "0.6540274", "0.6540274", "0...
0.681459
1
Retrieve document by sending a get request
def WjZY(YKHO, Ii1o: str) -> G4JS.Response: Ylbp = G4JS.get(url=f'{YKHO._es_endpoint}/{YKHO._index}/{YKHO._doc_type}/{Ii1o}') assert qed_.OK == Ylbp.status_code return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, _sei):\n C13M = YKHO.get_object(_sei)\n ZMzz = P6q4(C13M)\n return oGir(ZMzz.data)", "def Y_h6(QePW, oFUB):\n bo34.info('services/retrieve/{}'.format(oFUB))\n C13M = WjZY(gCuF.ES_INDEX, gCuF.ES_DOCTYPE, oFUB)\n if C13M:\n return o87i('SUCCESS', '', C13M)\n return ...
[ "0.7719111", "0.7703535", "0.7624576", "0.76043725", "0.74518615", "0.73524916", "0.7025326", "0.70216376", "0.7004471", "0.7004085", "0.6977944", "0.6898497", "0.6826572", "0.6804335", "0.6803667", "0.67814445", "0.6756023", "0.675364", "0.67464346", "0.67423075", "0.6735952...
0.7742933
0
Checks whether CP is the codepoint of a CJK character.
def v7Pj(U7YL): if U7YL >= 19968 and U7YL <= 40959 or (U7YL >= 13312 and U7YL <= 19903) or (U7YL >= 131072 and U7YL <= 173791) or (U7YL >= 173824 and U7YL <= 177983) or (U7YL >= 177984 and U7YL <= 178207) or (U7YL >= 178208 and U7YL <= 183983) or (U7YL >= 63744 and U7YL <= 64255) or (U7YL >= 194560 and U7YL <= 1951...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OK5S(U7YL):\n if U7YL >= 19968 and U7YL <= 40959 or (U7YL >= 13312 and U7YL <= 19903) or (U7YL >= 131072 and U7YL <= 173791) or (U7YL >= 173824 and U7YL <= 177983) or (U7YL >= 177984 and U7YL <= 178207) or (U7YL >= 178208 and U7YL <= 183983) or (U7YL >= 63744 and U7YL <= 64255) or (U7YL >= 194560 and U7YL <...
[ "0.7968998", "0.7924061", "0.7916944", "0.78743047", "0.78527874", "0.78286624", "0.76247925", "0.74167055", "0.72669816", "0.71848947", "0.71809727", "0.714035", "0.7081121", "0.704192", "0.70288754", "0.6851347", "0.6848669", "0.6840922", "0.6735407", "0.6651857", "0.657460...
0.78837764
3
Sets the element with given key to given value for a subtree, adds element if does not exist. Maintains a balanced tree by rotating nodes and flipping colors as necessary.
def woYS(YKHO, H5ew, BWXx, MKlR): if MKlR is None: return YKHO._Node(H5ew, BWXx, 1, bDkR.RED) if H5ew < MKlR.key: MKlR.left = YKHO._setitem(H5ew, BWXx, MKlR.left) elif H5ew > MKlR.key: MKlR.right = YKHO._setitem(H5ew, BWXx, MKlR.right) else: MKlR.value = BWXx if bDkR....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1R3(YKHO, H5ew, BWXx):\n YKHO._root = YKHO._setitem(H5ew, BWXx, YKHO._root)\n YKHO._root.color = bDkR.BLACK", "def _ycG(YKHO, H5ew, BWXx, kMLo: AVLTreeNode) -> None:\n if H5ew < kMLo.key:\n if kMLo.get_child_left():\n YKHO._put(H5ew, BWXx, kMLo.child_left)\n else:\n ...
[ "0.7505232", "0.72671807", "0.7114717", "0.7085018", "0.7079237", "0.70352834", "0.70114845", "0.69748825", "0.6847109", "0.68449223", "0.68007565", "0.67507845", "0.67445976", "0.67149997", "0.6706831", "0.6612666", "0.6606889", "0.65890634", "0.6574653", "0.6538264", "0.650...
0.7510896
0
Retrieves the value of the element with a given key if it exists.
def OP2O(YKHO, H5ew): return YKHO._getitem(H5ew, YKHO._root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n try:\n return YKHO[H5ew]\n except KeyError:\n return None", "def Iov8(YKHO, H5ew):\n MKlR = YKHO.get_hash(H5ew)\n for U6D_ in YKHO.arr[MKlR]:\n if U6D_[0] == H5ew:\n return U6D_[1]", "def _oqe(YKHO, H5ew):\n for G1Hx, Ty9i in YKHO._map:\n ...
[ "0.7908162", "0.78980243", "0.78946644", "0.7809316", "0.7790861", "0.7762101", "0.76556045", "0.7651393", "0.7646777", "0.7588569", "0.7548085", "0.7527279", "0.75258905", "0.75258905", "0.75258905", "0.75258905", "0.75238174", "0.75174505", "0.74842894", "0.7477215", "0.746...
0.0
-1
Retrieves the value of the element with a given key if it exists for a subtree.
def Ez7V(YKHO, H5ew, Q6kx): if Q6kx is None: raise KeyError('Key `{}` not found.'.format(H5ew)) if H5ew < Q6kx.key: return YKHO._getitem(H5ew, Q6kx.left) elif H5ew > Q6kx.key: return YKHO._getitem(H5ew, Q6kx.right) else: return Q6kx.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(J_Es, H5ew):\n if J_Es is None:\n raise KeyError\n if H5ew < J_Es.key:\n return NMoC(J_Es.left, H5ew)\n if H5ew > J_Es.key:\n return NMoC(J_Es.right, H5ew)\n return J_Es.val", "def jxrn(YKHO, tk5Y: AVLNode, H5ew: Hashable) -> x8Zd:\n if tk5Y is None:\n return N...
[ "0.7631172", "0.75433314", "0.7520057", "0.74666315", "0.7424889", "0.741182", "0.73813254", "0.7369831", "0.736605", "0.7318291", "0.7270219", "0.72243214", "0.7128333", "0.71128887", "0.7092401", "0.708987", "0.7083597", "0.70769405", "0.70660037", "0.70605284", "0.7046486"...
0.6952512
28
Finds the key with the lowest rank.
def min(YKHO): if not bool(YKHO): raise Exception('RedBlackBST is empty.') return YKHO._min(YKHO._root).key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z23B(YKHO):\n return YKHO.keys[YKHO.pq[1]]", "def XcNI(YKHO):\n \"\"\"Takes no arguments.\n Returns the smallest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB.left:\n jvSB = jvSB.left\n return jvSB.key", "def aEQi(YKHO):\n if YKHO.is_empty():\n return\n if YKHO...
[ "0.76976997", "0.7262571", "0.7213975", "0.7186879", "0.7096721", "0.7074125", "0.7019242", "0.7002064", "0.69850224", "0.69850224", "0.6971462", "0.6943277", "0.6900709", "0.6832133", "0.6789388", "0.6765381", "0.67261565", "0.6723422", "0.6713153", "0.6567134", "0.6548429",...
0.61413085
60
Finds the key with the lowest rank for a subtree.
def h_4H(YKHO, Q6kx): return Q6kx if Q6kx.left is None else YKHO._min(Q6kx.left)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(YKHO):\n \"\"\"Takes no arguments.\n Returns the smallest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB.left:\n jvSB = jvSB.left\n return jvSB.key", "def aEQi(YKHO):\n if YKHO.is_empty():\n return\n if YKHO.is_leaf():\n return YKHO.keys[0]\n else:\n ...
[ "0.771704", "0.76178014", "0.7255303", "0.7145044", "0.7143276", "0.71052235", "0.708909", "0.70178705", "0.6990582", "0.6877117", "0.6750802", "0.6723644", "0.6693735", "0.66539526", "0.66003746", "0.6584557", "0.6570992", "0.65497804", "0.6476758", "0.64693385", "0.6408979"...
0.0
-1
Removes the element with the key with the lowest rank.
def ud4o(YKHO): if not bool(YKHO): raise Exception('RedBlackBST is empty.') YKHO._root = YKHO._delete_min(YKHO._root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AT8J(YKHO):\n gGCN = YKHO._heap\n Ty9i, G1Hx = z94O(gGCN)\n while G1Hx not in YKHO or YKHO[G1Hx] != Ty9i:\n Ty9i, G1Hx = z94O(gGCN)\n del YKHO[G1Hx]\n return G1Hx", "def AT8J(YKHO):\n gGCN = YKHO._heap\n Ty9i, G1Hx = z94O(gGCN)\n while G1Hx not in YKHO or YKHO[G1Hx] != Ty9i:\n ...
[ "0.68892217", "0.68701875", "0.68701875", "0.6867136", "0.67966926", "0.6795601", "0.6758175", "0.6695335", "0.6676641", "0.6660638", "0.66252846", "0.6498667", "0.6432672", "0.6421004", "0.6401257", "0.6397787", "0.6365", "0.6345811", "0.6300965", "0.628297", "0.6280721", ...
0.0
-1
Finds the lowest ranking key that is not lower than the given key.
def OsJc(YKHO, H5ew, Q6kx): if Q6kx is None: return None if H5ew == Q6kx.key: return Q6kx if H5ew < Q6kx.key: return YKHO._floor(H5ew, Q6kx.left) a1PO = YKHO._floor(H5ew, Q6kx.right) return Q6kx if a1PO is None else a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKDF(YKHO, H5ew=None):\n try:\n return YKHO._tree.minKey(H5ew)\n except ValueError:\n return None", "def Z23B(YKHO):\n return YKHO.keys[YKHO.pq[1]]", "def XcNI(YKHO):\n \"\"\"Takes no arguments.\n Returns the smallest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB....
[ "0.763261", "0.7114871", "0.7060285", "0.69671416", "0.6859868", "0.68466616", "0.67765397", "0.67460215", "0.6733191", "0.67195004", "0.66987354", "0.66694915", "0.6658902", "0.6658902", "0.6633434", "0.6582197", "0.657762", "0.6527341", "0.6503374", "0.64935476", "0.6488705...
0.0
-1
Finds the lowest ranking key that is not lower than the given key.
def br9u(YKHO, H5ew): Q6kx = YKHO._ceiling(H5ew, YKHO._root) if Q6kx is None: raise Exception('Illegal argument.') return Q6kx.key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKDF(YKHO, H5ew=None):\n try:\n return YKHO._tree.minKey(H5ew)\n except ValueError:\n return None", "def Z23B(YKHO):\n return YKHO.keys[YKHO.pq[1]]", "def XcNI(YKHO):\n \"\"\"Takes no arguments.\n Returns the smallest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB....
[ "0.763261", "0.7114871", "0.7060285", "0.69671416", "0.6859868", "0.68466616", "0.67765397", "0.67460215", "0.6733191", "0.67195004", "0.66987354", "0.66694915", "0.6658902", "0.6658902", "0.6633434", "0.6582197", "0.657762", "0.6527341", "0.6503374", "0.64935476", "0.6488705...
0.0
-1
Finds the key at the given index.
def EfUA(YKHO, G1Hx): if G1Hx < 0 or G1Hx >= len(YKHO): raise IndexError('Index `{}` is out of bounds.'.format(G1Hx)) return YKHO._select(G1Hx, YKHO._root).key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO, H5ew):\n im04 = YKHO.find(H5ew)\n if im04 < 0:\n raise IndexError(H5ew)\n return H5ew", "def EfUA(YKHO, d6pt):\n try:\n return YKHO.keys[d6pt]\n except IndexError:\n raise KeyError(repr(d6pt))", "def mexE(YKHO, d6pt):\n if d6pt > 0 and d6pt <= YKHO.max_size...
[ "0.75004333", "0.72239286", "0.7063289", "0.6996696", "0.69534725", "0.68817425", "0.6736722", "0.6734913", "0.67235345", "0.66793996", "0.6645046", "0.65789646", "0.6542733", "0.65415764", "0.6504406", "0.6495499", "0.6494983", "0.6479778", "0.6479588", "0.6478968", "0.64613...
0.0
-1
Iterates over the tree in order. Generates a sequence of values.
def hkxX(YKHO): return YKHO._values(YKHO._root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNvf(YKHO):\n if not YKHO.children:\n return [YKHO.val]\n Aofo = []\n for aUGN in YKHO.children.values():\n for ZfUD in aUGN.traverse():\n if YKHO.val:\n ZfUD = YKHO.val + '/' + ZfUD\n Aofo.append(ZfUD)\n return Aofo", "def hkxX(YKHO):\n if YK...
[ "0.7505613", "0.7460087", "0.7447715", "0.7349837", "0.7059848", "0.70417017", "0.7000102", "0.6961748", "0.69324124", "0.6919032", "0.6906902", "0.6895428", "0.68909687", "0.6866274", "0.68270236", "0.6800755", "0.6764138", "0.6764138", "0.6748872", "0.6735015", "0.6722161",...
0.6389497
47
Return the pixel coordinates of a `theta` oriented line of length `rho`.
def zFiD(q7In, oZuG): o4D3, si3g = (0, 0) ajwV = int(round(oZuG * epAf.cos(q7In))) skBL = int(round(oZuG * epAf.sin(q7In))) P2GO, gDyN = AYf7(si3g, o4D3, skBL, ajwV) return (P2GO, gDyN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HjzV(oZuG, q7In, WKvO, LVAh):\n AU8u = kLKh(WKvO, LVAh)\n zFiD = Z2o7(oZuG, q7In)\n return RHtk(AU8u, zFiD)", "def JQSI(oZuG, q7In):\n jzdc = oyIN.cos(q7In)\n Fg_i = oyIN.sin(q7In)\n nJ9F = jzdc * oZuG\n nxyw = Fg_i * oZuG\n o4D3 = int(nJ9F + 1000 * -Fg_i)\n si3g = int(nxyw + 1000 ...
[ "0.7516244", "0.7400197", "0.7373986", "0.70810854", "0.6890139", "0.6876765", "0.63594955", "0.629943", "0.6175899", "0.61114407", "0.60907465", "0.60571545", "0.603637", "0.6029078", "0.5986645", "0.59608215", "0.5942266", "0.5940328", "0.5940328", "0.59349525", "0.59014195...
0.773002
0
Return the pixel coordinates of all `theta` oriented parallel lines going through an image of given size.
def KlPb(q7In, H2v2, TVTK): q7In = epAf.fmod(q7In, 2 * oyIN.pi) oZuG = 2 * max(H2v2, TVTK) P2GO, gDyN = zFiD(q7In, oZuG) P2GO = H2v2 - P2GO - 1 if 0 <= q7In <= oyIN.pi / 2: UShr, Yrvv = (0, 0) elif oyIN.pi / 2 < q7In < oyIN.pi: UShr, Yrvv = (0, TVTK - 1) elif oyIN.pi <= q7In ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def galo(Nqlg, JV6e):\n Jgwa = oyIN.arange(JV6e[1])\n NsEU = (-Nqlg[0, 2] - Nqlg[0, 0] * Jgwa) / Nqlg[0, 1]\n jNOo = oyIN.where(NsEU >= JV6e[0])\n jNOo = jNOo[0]\n NsEU[jNOo] = JV6e[0] - 1\n jNOo = oyIN.where(NsEU < 0)\n jNOo = jNOo[0]\n NsEU[jNOo] = 0\n WKvO = Jgwa\n LVAh = NsEU\n ...
[ "0.6493145", "0.6111576", "0.61093694", "0.6067408", "0.5841049", "0.58349574", "0.58121234", "0.5794442", "0.5786345", "0.5781086", "0.5781086", "0.57790536", "0.5776773", "0.5767587", "0.5767105", "0.57588536", "0.57562506", "0.5755706", "0.5752875", "0.5752875", "0.5752875...
0.60752213
3
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, K09F): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Template tag for TableRender class.
def tyNF(QpfX, MkFK): return {'headers': MkFK[0], 'rows': MkFK[1:], 'show_header': QpfX.get('show_header', True)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1tc(YKHO):\n T6S7 = {'data_keys': YKHO.keys, 'records': YKHO.records, 'args': YKHO.args, 'href': lambda WKvO: YKHO.app.buildHref(WKvO.ref, WKvO.start_pos, WKvO.end_pos)}\n T6S7.update(YKHO.tplFuncs())\n a1PO = dV1P.Template.Template(bu1q, searchList=T6S7)\n return str(a1PO)", "def _1tc(YKHO):\n ...
[ "0.75045174", "0.675569", "0.6740387", "0.66372776", "0.6595855", "0.6592338", "0.65519536", "0.65206087", "0.65080297", "0.647637", "0.647033", "0.64429384", "0.63304174", "0.63026303", "0.6297501", "0.6284405", "0.6251915", "0.62130487", "0.6200302", "0.6176754", "0.6176454...
0.5554828
87
Update Error Message Function Update error message string with the match's error type. Omits profanity if allowed.
def xLmk(zemv, kUBT, hHld, m6VZ, YRbF): PdEB = 0 if kUBT['shortMessage'] == 'Profanity': if m6VZ is not True: zemv += kUBT['shortMessage'] + ', ' PdEB = 1 elif YRbF == len(hHld) - 1: zemv += kUBT['shortMessage'] PdEB = 1 else: zemv += kUBT['shortMe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(QdZT, QpfX):\n KCHu = 'Update \"%s\" caused error \"%s\"' % (QdZT, QpfX.error)\n bo34.error(KCHu)\n QdZT.message.reply_text(text=KCHu)", "def P1dF(QdZT, Tp4j):\n bo34.warning('Update \"{}\" caused error \"{}\"'.format(QdZT, Tp4j))", "def P1dF(YKHO):\n if not YKHO._error:\n return...
[ "0.5951424", "0.5889631", "0.58795774", "0.586457", "0.586457", "0.586457", "0.5857162", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0.5808993", "0....
0.72137636
0
Returns the next sample of a given size, after the specified sample (which can be of any size). Returns None if it is a gap or the end of the song is reached.
def EYsR(YKHO, PTqE, zNig): kUuO = PTqE.size / zNig * PTqE.index + 1 if len(YKHO[zNig]) <= kUuO: return None else: return YKHO[zNig][kUuO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBjW(lOMm) -> h8nf[NlXC]:\n return next(lOMm, None)", "def DNV0(YKHO):\n if YKHO.raw_data_idx >= len(YKHO.raw_data):\n YKHO.raw_data_idx = 0\n mvm2 = YKHO.raw_data[YKHO.raw_data_idx]\n YKHO.raw_data_idx += 1\n return mvm2", "def OVu8(YKHO, zNig):\n raise NotImplementedError()", "...
[ "0.65389436", "0.61681646", "0.6117177", "0.609404", "0.60184467", "0.6010077", "0.5996493", "0.58623683", "0.58312285", "0.56882066", "0.5681847", "0.5653541", "0.5606476", "0.5605344", "0.5605344", "0.55983543", "0.55064267", "0.55064267", "0.5469947", "0.5460693", "0.54277...
0.79499555
0
Kronecker delta 3tensor with specified bond dimension r, contraction direction is up to down and right to left.
def Csk6(Mkmy): YRbF = oyIN.arange(Mkmy) Ylbp = ht2j.zeros(Mkmy, Mkmy, Mkmy) Ylbp[YRbF, YRbF, YRbF] = 1.0 return pWm4.Node(Ylbp, name='delta')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ne5m(r8hN, exwG):\n if r8hN != exwG:\n return 0\n else:\n return 1", "def Ne5m(YKHO, WKvO):\n if WKvO == 0:\n return 1\n else:\n return 0", "def ya72(Csk6):\n Csk6 = HlHH.Integer(Csk6)\n if Csk6 == 0:\n raise ValueError('d must be nonzero')\n lWPh = s...
[ "0.5898326", "0.5854237", "0.56681216", "0.56368905", "0.55434984", "0.54973537", "0.54893374", "0.5474457", "0.54178965", "0.53557926", "0.52836436", "0.52769816", "0.52028793", "0.5172408", "0.5162304", "0.5144152", "0.5125313", "0.51223606", "0.51220375", "0.50874", "0.506...
0.58081555
2
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list.
def PgMl(YKHO, wEf2: int) -> None: jvSB = o7DN(wEf2) if YKHO.head is None: YKHO.head = jvSB else: jvSB.next = YKHO.head YKHO.head = jvSB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMiq(YKHO, wEf2, Z6gX):\n if YKHO.includes(wEf2):\n if YKHO.head.value == wEf2:\n YKHO.insert(Z6gX)\n else:\n Q6kx = o7DN(Z6gX)\n jvSB = YKHO.head\n while jvSB.nxt.value != wEf2:\n jvSB = jvSB.nxt\n Q6kx.nxt = jvSB.nxt\n ...
[ "0.8459715", "0.83956784", "0.83877355", "0.8136791", "0.8074398", "0.80354744", "0.7995478", "0.7960994", "0.7943126", "0.792114", "0.78947574", "0.7869824", "0.7839322", "0.78326434", "0.77839494", "0.77625144", "0.77007", "0.7674602", "0.7673067", "0.76701504", "0.76637495...
0.7541846
29
Return the QuestionSet template Also add the javascript dependency code.
def W8xs(QePW, uTIl, UAju={}): WlEx = uTIl.questionset.questions() wjRY = len(uTIl.questionset.questionnaire.questionsets()) zOYc = [] CvDW = [] _RPg = [] Pj22 = [] Ms6U = {} KYa1 = 4 for bAls in WlEx: eBH2 = bAls.get_type() la7i, bi9G = bjtm(bAls.number) if b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLyK(DpZH=None):\n if DpZH is None:\n DpZH = getattr(gCuF, 'DJFRONTEND_JQUERY_FORMSET', TdNR)\n if getattr(gCuF, 'TEMPLATE_DEBUG', False):\n rPXJ = '<script src=\"{static}djfrontend/js/jquery/jquery.formset/{v}/jquery.formset.js\"></script>'\n else:\n rPXJ = '<script src=\"//cdnjs...
[ "0.65380365", "0.59351534", "0.5884729", "0.5830086", "0.5794131", "0.57761353", "0.57761353", "0.5718554", "0.5718035", "0.5687871", "0.565436", "0.56441295", "0.5618562", "0.55516905", "0.54991347", "0.5496368", "0.547194", "0.5410121", "0.53938323", "0.5355315", "0.5353507...
0.5723176
7
Like np.ma.masked_equal, but for xarray datasets
def H5Hq(Sxzb, BWXx): IzcV = Sxzb != BWXx Sxzb = Sxzb.where(IzcV) return Sxzb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzeg(AjzU, _sQW, **B2fa):\n if AjzU is not None or _sQW is not None:\n Qhng(AjzU.shape, _sQW.shape)\n if AjzU.mask is oyIN.ma.nomask or _sQW.mask is oyIN.ma.nomask:\n assert _sQW.mask is AjzU.mask\n else:\n Qhng(AjzU.mask, _sQW.mask)\n eYzO(oyIN.ma.filled(Aj...
[ "0.6806806", "0.6620527", "0.63339436", "0.6191564", "0.6187444", "0.61108136", "0.606992", "0.6052855", "0.6001591", "0.59665346", "0.59101635", "0.5883988", "0.58658785", "0.5823454", "0.5804362", "0.5740786", "0.5739641", "0.5734655", "0.57295716", "0.57176304", "0.5717545...
0.7563115
0
Generate a mbyn numpy array from all questions, where m is number of questions, and n is num_feature
def ZPTZ(YKHO, WlEx, PH9i): nEoF = oyIN.zeros((WlEx.shape[0], YKHO.num_features), dtype='float32') YRbF = 0 for bAls in WlEx['hardcoded_question']: nEoF[YRbF] = YKHO.text_to_vec(bAls.strip().split(), PH9i) YRbF += 1 return nEoF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IyM4(r8hN, exwG, QIfy):\n INK1 = []\n bXin = range(r8hN * exwG)\n fHkl = WhY1.combinations(bXin, QIfy)\n for DNs0 in fHkl:\n INK1.append((DNs0, b73y(DNs0, r8hN, exwG)))\n return INK1", "def IyM4(r8hN, exwG, QIfy):\n INK1 = []\n bXin = range(r8hN * exwG)\n fHkl = WhY1.combinatio...
[ "0.6051391", "0.6051391", "0.60015875", "0.5868472", "0.58542293", "0.58165145", "0.57465905", "0.5676545", "0.56700736", "0.56212544", "0.5596491", "0.55871284", "0.5581135", "0.5577397", "0.55604064", "0.5548992", "0.552556", "0.5524048", "0.55117464", "0.5495479", "0.54954...
0.50784695
91
Generates a mask for a voxel grid by removing the borders.
def Qzln(ROpF=(1, 128, 128, 128, 1), yDqo=oyIN.float32): bp7b = oyIN.ones(ROpF, dtype=yDqo) bp7b[:, [0, -1], :, :, :] = 0 bp7b[:, :, [0, -1], :, :] = 0 bp7b[:, :, :, [0, -1], :] = 0 return ZylS.convert_to_tensor(bp7b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKLv(aUKP, olTx, r1VO, ReNU):\n LnPY = 1.0 / olTx\n rDXN = (aUKP - 1.0) / (aUKP * 2.0 * oyIN.pi)\n CPBC = oyIN.int16(oyIN.ceil(aUKP / 2.0) - 1)\n hh9S = oyIN.int16(oyIN.ceil(olTx / 2.0) - 1)\n ReNU = min(ReNU, oyIN.int16(oyIN.ceil(0.05 * aUKP)))\n ZHfW = oyIN.zeros((aUKP, olTx), dtype='float3...
[ "0.6663986", "0.6583492", "0.6494506", "0.6485591", "0.6442431", "0.6397834", "0.63964236", "0.63672566", "0.63295066", "0.6328968", "0.6282822", "0.62704074", "0.6260722", "0.62537295", "0.62407476", "0.62341833", "0.62176096", "0.6212725", "0.6207148", "0.6204372", "0.61995...
0.5745838
100
Video streaming home page.
def d6pt(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ecsS():\n return TvZl('/video-page.html')", "def wOb_():\n return TvZl('video-feed.html')", "def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)", "def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/...
[ "0.76268315", "0.76119703", "0.7530637", "0.73411614", "0.7005877", "0.66250384", "0.6583905", "0.6468895", "0.6439333", "0.64381635", "0.6421515", "0.6415742", "0.6393503", "0.6384064", "0.637601", "0.63417023", "0.6321272", "0.6291959", "0.62908256", "0.62908256", "0.629082...
0.0
-1