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 |
|---|---|---|---|---|---|---|
Retrieve a value from the server's configuration. | def _Zc8(YKHO, nudR):
if isinstance(nudR, (list, tuple)):
wHpo = nudR
vOEm = {}
for nudR in wHpo:
if YKHO.config.has_option(nudR):
vOEm[nudR] = YKHO.config.get(nudR)
return vOEm
elif YKHO.config.has_option(nudR):
return YKHO.config.get(nudR)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(H5ew: str) -> str:\n PSrQ.__get()\n assert PSrQ.__config is not None\n return PSrQ.__config.get('wsgi', H5ew)",
"def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def BWXx(YKHO) -> str:\n return YKHO._config.get('value')",
"def Zmkp(YKHO, H5ew):\n if H5ew not in YKHO._config:... | [
"0.7686106",
"0.7437408",
"0.72495735",
"0.7239112",
"0.7213484",
"0.71756405",
"0.7124108",
"0.7023",
"0.6946537",
"0.689364",
"0.684209",
"0.6832623",
"0.682096",
"0.68111134",
"0.68055254",
"0.67589515",
"0.6745488",
"0.66956306",
"0.6653868",
"0.6624903",
"0.6622962",
"... | 0.0 | -1 |
Remove a campaign from the database and delete all associated information with it. | def JenG(YKHO, _j1c):
cuiw = NpaW.Session()
cuiw.delete(NpaW.get_row_by_id(cuiw, THS8.Campaign, _j1c))
cuiw.commit()
cuiw.close()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, _j1c):\n j4i0 = Glze.query.get(_j1c)\n if j4i0 is None:\n return ({'message': 'Campaign could not be found.'}, qed_.NOT_FOUND)\n NCls.session.delete(j4i0)\n NCls.sessioin.commit()\n return ({}, qed_.NO_CONTENT)",
"def Na9V(YKHO, _j1c, Wc9F=False):\n pmON = '%s' % _j1c\n ... | [
"0.75317335",
"0.73644406",
"0.6866209",
"0.62215805",
"0.60151255",
"0.59096444",
"0.58450454",
"0.5824463",
"0.57142437",
"0.56937283",
"0.5593953",
"0.5564784",
"0.555866",
"0.55484724",
"0.5545144",
"0.5508091",
"0.5498451",
"0.5495502",
"0.5483054",
"0.5483054",
"0.54608... | 0.7772439 | 0 |
Gives the offer type of the application. Returns int The offer type. Only applicable for Google Play. | def TwqL(YKHO):
return YKHO.proto.offer[0].offerType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwqL(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'offer_type')",
"def hU0u(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'database_account_offer_type')",
"def D1_G(YKHO):\n return YKHO._event['app_type']",
"def MSmM(YKHO):\n if 'partnerAppType' in YKHO._prop_dict:\n ... | [
"0.7514057",
"0.6399391",
"0.63935006",
"0.5906249",
"0.58720934",
"0.5802066",
"0.57952327",
"0.56555456",
"0.5592985",
"0.5563496",
"0.5331469",
"0.5290089",
"0.5289609",
"0.5259258",
"0.5235913",
"0.5210611",
"0.52104414",
"0.52089137",
"0.52075654",
"0.5204691",
"0.520181... | 0.7724009 | 0 |
The apps version string. Returns str The version string as specified by the app. | def DpZH(YKHO):
return YKHO.proto.details.appDetails.versionString | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJtF(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_version')",
"def kaPv(YKHO):\n nPrm = YKHO._get('app_version')\n return nPrm['version']",
"def IEDc(YKHO):\n return YKHO.connector.request('GET', '/app/version')",
"def wo3Q(YKHO) -> QMSQ:\n ...",
"def jET1(YKHO, pmON: pathlib.Path | str) -... | [
"0.84194106",
"0.7729545",
"0.7685597",
"0.7613749",
"0.7276167",
"0.72415036",
"0.71115285",
"0.7091093",
"0.7089411",
"0.70834225",
"0.70565385",
"0.6973571",
"0.6938908",
"0.6935067",
"0.69168395",
"0.68988556",
"0.6818509",
"0.6807188",
"0.67998147",
"0.6793701",
"0.67747... | 0.77416867 | 1 |
Gives the date of the initial release of the app. Returns str The initial release date. | def ClkZ(YKHO):
for ZfUD in YKHO.proto.releaseInfo.item:
if ZfUD.label == 'Released on':
return ZfUD.container.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r37j(YKHO) -> QMSQ:\n ...",
"def Qmnu(YKHO) -> str:\n nPrm = 'none yet'\n if YKHO.STARTED:\n nPrm = YKHO.about.get('Build Date', 'UNKNOWN')\n return nPrm",
"def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)",
"def oQc2():\n IznC = Hy7s.path.join('doc', 'changelog.txt')\n ClkZ = '... | [
"0.66959596",
"0.6686182",
"0.6495918",
"0.64554584",
"0.6352106",
"0.6332339",
"0.6263189",
"0.61033434",
"0.60531586",
"0.60531586",
"0.60525686",
"0.60474503",
"0.6030903",
"0.6025312",
"0.59614086",
"0.5931838",
"0.5931838",
"0.59256864",
"0.5888157",
"0.58409745",
"0.583... | 0.63889426 | 4 |
Returns float The average rating the app received. | def Z70p(YKHO):
return YKHO.proto.aggregateRating.starRating | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z70p(YKHO):\n return (YKHO.rating_1 + YKHO.rating_2 + YKHO.rating_3) / 3",
"def Z70p(YKHO):\n return (YKHO.rating_1 + YKHO.rating_2 + YKHO.rating_3 + YKHO.rating_4 + YKHO.rating_5 + YKHO.rating_6 + YKHO.rating_7) / 7",
"def Z70p(YKHO):\n mwlV = _OvV.objects.filter(attraction=YKHO)\n UOzm = 0\n ... | [
"0.8358991",
"0.824482",
"0.80866253",
"0.8029074",
"0.80143076",
"0.7823949",
"0.78073114",
"0.7648994",
"0.7570041",
"0.750162",
"0.74267447",
"0.7391154",
"0.73565596",
"0.73431575",
"0.73099506",
"0.72991014",
"0.7294641",
"0.7275034",
"0.7177551",
"0.7108502",
"0.7076555... | 0.8039683 | 3 |
Returns the category id, necessary for further queries. Returns str The id of this category. | def Ghho(YKHO):
return YKHO.proto.category.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMw8(YKHO, VMw8):\n return g_Eh(YKHO.connection, YKHO.base_uri, VMw8)",
"def Qk2v(YKHO):\n if not YKHO.has_knowledge_category():\n raise bfHs()\n else:\n return zZ1q(YKHO._my_map['knowledgeCategoryId'])",
"def GYfd(Ghho):\n Ghho = qZuN.query.filter(qZuN.name == Ghho).one_or_none()... | [
"0.7957024",
"0.7739894",
"0.7572851",
"0.7135548",
"0.709893",
"0.7033919",
"0.70300376",
"0.6979551",
"0.6885765",
"0.68304116",
"0.68304116",
"0.667923",
"0.66686004",
"0.6553717",
"0.65489626",
"0.65444744",
"0.6535497",
"0.64884275",
"0.64548695",
"0.64548695",
"0.645486... | 0.7576843 | 2 |
Returns bool True if the app contains ads | def dN5O(YKHO):
return YKHO.proto.details.appDetails.containsAds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qZrT(wEf2):\n return eZyX.match(wEf2)",
"def zUXQ(YKHO) -> bool:\n return YKHO.add_on_tag != 0",
"def eCgw(YKHO):\n return YKHO._adb_available",
"def SJqA(YKHO) -> bool:\n return YKHO._has_upnp_devices",
"def Msxs(YKHO):\n YKHO.ensure_one()\n return YKHO.use_pad and YKHO.pad_availabil... | [
"0.62921673",
"0.6262078",
"0.61418194",
"0.6064024",
"0.58653116",
"0.584695",
"0.57384425",
"0.5711226",
"0.5705955",
"0.5705955",
"0.5686416",
"0.5637267",
"0.56007254",
"0.5583708",
"0.55797976",
"0.55773246",
"0.5568501",
"0.5566554",
"0.5531575",
"0.5507112",
"0.5490636... | 0.8963227 | 0 |
Returns the category id, necessary for further queries. Returns str The id of this category. | def id(YKHO):
return YKHO.proto.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMw8(YKHO, VMw8):\n return g_Eh(YKHO.connection, YKHO.base_uri, VMw8)",
"def Qk2v(YKHO):\n if not YKHO.has_knowledge_category():\n raise bfHs()\n else:\n return zZ1q(YKHO._my_map['knowledgeCategoryId'])",
"def Ghho(YKHO):\n return YKHO.proto.category.id",
"def GYfd(Ghho):\n G... | [
"0.7957024",
"0.7739894",
"0.7576843",
"0.7572851",
"0.7135548",
"0.709893",
"0.7033919",
"0.70300376",
"0.6979551",
"0.6885765",
"0.68304116",
"0.68304116",
"0.667923",
"0.66686004",
"0.6553717",
"0.65489626",
"0.65444744",
"0.6535497",
"0.64884275",
"0.64548695",
"0.6454869... | 0.0 | -1 |
The human readable name of the category. Returns str A human readable form of the category name. | def mWFP(YKHO):
return YKHO.proto.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipek(YKHO):\n return YKHO.category.name",
"def W0tD(YKHO):\n return YKHO.category_name",
"def mWFP(YKHO) -> str:\n return str(YKHO.category.value)",
"def VsRx(YKHO):\n return YKHO._ctx.get('name', YKHO._ctx['id'])",
"def ipek(YKHO):\n try:\n Ghho = YKHO.proto.category.parent\n ... | [
"0.8804105",
"0.86733156",
"0.85568994",
"0.85152245",
"0.83472496",
"0.78084576",
"0.77386546",
"0.77072895",
"0.76871514",
"0.7673673",
"0.7582733",
"0.7577334",
"0.7577334",
"0.7569275",
"0.73721707",
"0.73616827",
"0.73448443",
"0.7306008",
"0.7280167",
"0.7057782",
"0.69... | 0.0 | -1 |
Sets the text of this WhatsApp. | def l5Ny(YKHO, l5Ny):
YKHO._text = l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiHf(YKHO, l5Ny):\n YKHO.text = l5Ny",
"def eiHf(YKHO, l5Ny):\n YKHO.set_text_f('%s', l5Ny)",
"def eiHf(YKHO, UfhV):\n YKHO.entry.set_text(UfhV)",
"def ju1d(YKHO, l5Ny):\n YKHO._text = l5Ny",
"def eiHf(YKHO):\n pass",
"def eiHf(YKHO, FUjE):\n YKHO.value = FUjE\n YKHO.chsize()",
... | [
"0.7207153",
"0.7173092",
"0.7096333",
"0.69386905",
"0.69361186",
"0.68019867",
"0.6734218",
"0.6646008",
"0.6607725",
"0.659743",
"0.65797764",
"0.6573116",
"0.6572871",
"0.6492036",
"0.64742893",
"0.6439881",
"0.6406108",
"0.63823074",
"0.636822",
"0.6367489",
"0.63507855"... | 0.6562481 | 16 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, jW5a):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, jW5a):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Get player's opponent piece. | def xzj7(oyg0):
return XDQs if oyg0 is eJVO else eJVO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LFD6(YKHO):\n return YKHO.__opponent",
"def Yx99(YKHO):\n for VmPb in YKHO.__state.board.find_workers():\n oyg0 = YKHO.__state.board.get_player_id(VmPb[0], VmPb[1])\n if not oyg0 == YKHO.__pid:\n return oyg0",
"def xzj7(YKHO, oyg0):\n if oyg0 == aM69.BLACK:\n return... | [
"0.74934787",
"0.726481",
"0.70941144",
"0.705222",
"0.6878318",
"0.6792261",
"0.6679694",
"0.6642816",
"0.6615735",
"0.65494627",
"0.65365016",
"0.63923645",
"0.6374027",
"0.6374027",
"0.6351002",
"0.63192064",
"0.6318036",
"0.6273041",
"0.6266804",
"0.6251529",
"0.6209029",... | 0.70421046 | 4 |
Compute player's score (number of player's pieces minus opponent's). | def p1kx(oyg0, iBIi):
j47j, nhLb = (0, 0)
RUgX = VlLD.opponent(oyg0)
for MuIv in VlLD.squares():
mrj1 = iBIi[MuIv]
if mrj1 == oyg0:
j47j += 1
elif mrj1 == RUgX:
nhLb += 1
return j47j - nhLb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares():\n if iBIi[YRbF] == oyg0:\n kgrb += yQki[YRbF]\n else:\n SiwD += yQki[YRbF]\n return kgrb - SiwD",
"def OA_s(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares(... | [
"0.784625",
"0.7710007",
"0.75956506",
"0.7558946",
"0.7464693",
"0.72692615",
"0.72642595",
"0.71922314",
"0.7175388",
"0.70766324",
"0.70610696",
"0.70195866",
"0.6969006",
"0.69263244",
"0.691399",
"0.68988675",
"0.6897329",
"0.6882737",
"0.68766284",
"0.6858876",
"0.68509... | 0.7666332 | 2 |
Compute player's score (number of player's pieces minus opponent's). | def BWXx(YKHO):
z13o, AX3l = (0, 0)
for MuIv in VlLD.squares():
mrj1 = YKHO.__board[MuIv]
if mrj1 == XDQs:
z13o += 1
elif mrj1 == eJVO:
AX3l += 1
if z13o == AX3l:
return 0.5
elif z13o > AX3l:
return 1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares():\n if iBIi[YRbF] == oyg0:\n kgrb += yQki[YRbF]\n else:\n SiwD += yQki[YRbF]\n return kgrb - SiwD",
"def OA_s(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares(... | [
"0.7846523",
"0.7710931",
"0.7666829",
"0.7595588",
"0.7559227",
"0.7464418",
"0.72697014",
"0.72657835",
"0.71916205",
"0.71763116",
"0.7075533",
"0.70615876",
"0.7019504",
"0.6969979",
"0.69268054",
"0.69131845",
"0.6898099",
"0.68971574",
"0.68836087",
"0.6877589",
"0.6859... | 0.0 | -1 |
Create and return the application object. | def eLpg():
return Z33s() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n P4t4 = LUif()\n return P4t4",
"def WTdB(YKHO):\n return m36K()",
"def P4t4():\n return LUif()",
"def LUif(YKHO):\n raise NotImplementedError",
"def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return YKHO._application",
"d... | [
"0.833403",
"0.83266336",
"0.81034535",
"0.8033304",
"0.78460824",
"0.78368175",
"0.77894855",
"0.76857483",
"0.758966",
"0.75700176",
"0.74389625",
"0.74244946",
"0.7359503",
"0.7355711",
"0.7342689",
"0.7329273",
"0.7323484",
"0.7309822",
"0.73031765",
"0.72874147",
"0.7285... | 0.8040159 | 3 |
Create and return the inner flask app for debug. | def lDWa():
P4t4 = Z33s()
return P4t4.flask_app | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n return LUif()",
"def P4t4():\n P4t4 = LUif()\n return P4t4",
"def LUif():\n GPtr = SfBL[Hy7s.getenv('APP_SETTINGS', 'dev')]\n H6Ho = L2w0(__name__, static_folder=None, instance_relative_config=True)\n H6Ho.config.from_object(GPtr)\n with H6Ho.app_context():\n FYSm = at... | [
"0.7934648",
"0.7905424",
"0.7794434",
"0.77692395",
"0.7676983",
"0.7617568",
"0.76171577",
"0.7600114",
"0.7595872",
"0.7592759",
"0.75790256",
"0.7564375",
"0.7560357",
"0.75455666",
"0.7485307",
"0.74738944",
"0.746802",
"0.74493796",
"0.7444408",
"0.74278665",
"0.7426678... | 0.8629217 | 0 |
Perform actions that setup the necessary resources for testing. The following resources are created/defined during the setup Uses server behaviors to create active server. Adds server id to resources with the function to delete_server. | def Baw8(Emd4):
super(DlJM, Emd4).setUpClass()
KL4Y = Emd4.server_behaviors.create_active_server()
Emd4.server = KL4Y.entity
Emd4.resources.add(Emd4.server.id, Emd4.servers_client.delete_server) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n N5z6.Inventory.remove_all()\n N5z6.Inventory(0, 'shampoo', 2, 'new').save()\n N5z6.Inventory(0, 'conditioner', 5, 'new').save()\n YKHO.app = N5z6.app.test_client()",
"def FCbF(YKHO):\n YKHO.test_resource = ISu2(name='Test', slug='test', description='')\n YKHO.test_resource.ful... | [
"0.65351105",
"0.65286815",
"0.6386545",
"0.6316922",
"0.6080039",
"0.6072419",
"0.60629815",
"0.6031055",
"0.6023276",
"0.60172415",
"0.60131717",
"0.59567046",
"0.5906588",
"0.59025794",
"0.5891258",
"0.5872336",
"0.5867079",
"0.5856256",
"0.5848851",
"0.5839366",
"0.580956... | 0.73198396 | 0 |
Create a dictionary of metadata and sets it to the server. The following calls the BaseTestFixture setUp and then using cloudcafe's server_client, sets the server that was created in the setUpClass with the metadata keys meta_key_1 and meta_key_2 with values meta_value_1 and meta_value_2 respectively. | def FCbF(YKHO):
super(DlJM, YKHO).setUp()
YKHO.meta = {'meta_key_1': 'meta_value_1', 'meta_key_2': 'meta_value_2'}
YKHO.servers_client.set_server_metadata(YKHO.server.id, YKHO.meta) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfmC(YKHO):\n e5kH = {'meta1': 'data1'}\n KL4Y = YKHO.server_behaviors.create_active_server(metadata=e5kH)\n N5z6 = KL4Y.entity\n YKHO.resources.add(N5z6.id, YKHO.servers_client.delete_server)\n c_0p = {'meta2': 'data2', 'meta3': 'data3'}\n oOmq = YKHO.servers_client.set_server_metadata(N5z6.... | [
"0.7079258",
"0.681381",
"0.6511857",
"0.6377739",
"0.5980337",
"0.5856424",
"0.5846849",
"0.57888466",
"0.577384",
"0.5653016",
"0.5651883",
"0.5615507",
"0.55337495",
"0.5517563",
"0.5509677",
"0.54771173",
"0.5438862",
"0.5434017",
"0.5411187",
"0.54079676",
"0.5401769",
... | 0.8143902 | 0 |
Set server metadata item using meta_key_3 to set value meta_value_3. Will call the set_server_metadata_item from cloudcafe's server client passing in the server's id created in setup with meta_key_3 as the meta data key and meta_value_3 as the metadata value. | def qE1y(YKHO):
oOmq = YKHO.servers_client.set_server_metadata_item(YKHO.server.id, 'meta_key_3', 'meta_value_3')
yIVm = oOmq.entity
YKHO.assertEqual(200, oOmq.status_code)
YKHO.assertEqual(yIVm.get('meta_key_3'), 'meta_value_3')
Cc9r = YKHO.servers_client.list_server_metadata(YKHO.server.id)
Ck... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0Cc(YKHO):\n oOmq = YKHO.servers_client.set_server_metadata_item(YKHO.server.id, 'meta_key_2', 'nova')\n yIVm = oOmq.entity\n YKHO.assertEqual(200, oOmq.status_code)\n YKHO.assertEqual(yIVm.get('meta_key_2'), 'nova')\n Cc9r = YKHO.servers_client.list_server_metadata(YKHO.server.id)\n CkkJ = ... | [
"0.75276375",
"0.69451624",
"0.69307154",
"0.64831096",
"0.64511716",
"0.64271784",
"0.6112588",
"0.59101856",
"0.59090704",
"0.58051574",
"0.57365304",
"0.57140785",
"0.57140785",
"0.56822145",
"0.5658578",
"0.56428045",
"0.5623683",
"0.5559285",
"0.55583364",
"0.55481404",
... | 0.7147524 | 1 |
Updates the internal state and returns the GRU outputs. | def nrOS(YKHO, MKlR, WKvO):
YoeV = []
MKlR = avNv.split_axis(MKlR, YKHO.num_layers, 1, True)
Zl_Y = WKvO
for gEmA, MKlR in jKi7.moves.zip(YKHO, MKlR):
Zl_Y = gEmA(MKlR, Zl_Y)
YoeV.append(Zl_Y)
return ENFq.concat(YoeV, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zSjz(i4mZ, WKvO):\n Mkmy = ZylS.sigmoid(ZylS.matmul(WKvO, eSrz) + ZylS.matmul(i4mZ, N708) + Rzz_)\n P6bq = ZylS.sigmoid(ZylS.matmul(WKvO, Ulql) + ZylS.matmul(i4mZ, fa6X) + C4ft)\n Z9rn = ZylS.tanh(ZylS.matmul(WKvO, mH3V) + ZylS.matmul(ZylS.multiply(Mkmy, i4mZ), Nl1R) + xCu3)\n NKrA = ZylS.multiply(... | [
"0.6834887",
"0.6223236",
"0.5793222",
"0.579012",
"0.57654935",
"0.57362205",
"0.5733896",
"0.5699114",
"0.5679325",
"0.56345767",
"0.56256294",
"0.5616174",
"0.55828387",
"0.5550025",
"0.5486144",
"0.54782",
"0.54219085",
"0.5415491",
"0.54035795",
"0.5349474",
"0.5346676",... | 0.0 | -1 |
Updates the internal state and returns the GRU outputs. | def nrOS(YKHO, WKvO, dsCP=None):
if dsCP is None:
dsCP = YKHO.num_layers
YoeV = []
Zl_Y = WKvO
for gEmA in YKHO:
Zl_Y = gEmA(Zl_Y)
YoeV.append(Zl_Y)
return ENFq.concat(YoeV[-dsCP:], 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zSjz(i4mZ, WKvO):\n Mkmy = ZylS.sigmoid(ZylS.matmul(WKvO, eSrz) + ZylS.matmul(i4mZ, N708) + Rzz_)\n P6bq = ZylS.sigmoid(ZylS.matmul(WKvO, Ulql) + ZylS.matmul(i4mZ, fa6X) + C4ft)\n Z9rn = ZylS.tanh(ZylS.matmul(WKvO, mH3V) + ZylS.matmul(ZylS.multiply(Mkmy, i4mZ), Nl1R) + xCu3)\n NKrA = ZylS.multiply(... | [
"0.68354136",
"0.6223677",
"0.57916784",
"0.5789298",
"0.5766589",
"0.57344496",
"0.5732309",
"0.5699052",
"0.5677744",
"0.5633887",
"0.5625017",
"0.5617381",
"0.55842775",
"0.5551164",
"0.54873455",
"0.5477848",
"0.5420695",
"0.5416871",
"0.5402832",
"0.5351497",
"0.53448343... | 0.0 | -1 |
Extracts Wlength subsequences from list of onehot coded numpy sequences. Filters away subsequences overlapping invalid letters. | def HHzZ(Xtuq, XcU5):
siTU = [[Q6uT[:, YRbF:YRbF + XcU5] for YRbF in range(Q6uT.shape[1] - XcU5 + 1)] for Q6uT in Xtuq]
siTU = list(eNCK(*siTU))
siTU = oyIN.array(siTU, dtype=oyIN.uint8)
siTU = siTU[siTU.sum(axis=(-1, -2)) == XcU5]
return siTU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TXWa(aWuw, BcCR=None):\n UMda = []\n for Q6uT in aWuw:\n Q6uT = Q6uT.upper()\n q4aw = len(Q6uT)\n KLLm = oyIN.zeros((4, q4aw))\n d6pt = [r845 for r845 in range(q4aw) if Q6uT[r845] == 'A']\n KLLm[0, d6pt] = 1\n d6pt = [r845 for r845 in range(q4aw) if Q6uT[r845] ==... | [
"0.58044124",
"0.5790274",
"0.57828844",
"0.57602966",
"0.5753247",
"0.5577173",
"0.55446005",
"0.55141574",
"0.5495642",
"0.54537237",
"0.5429283",
"0.53880274",
"0.5365945",
"0.5361754",
"0.53434074",
"0.534188",
"0.5330425",
"0.530101",
"0.524592",
"0.522985",
"0.522985",
... | 0.7818618 | 0 |
Set a value to the default value field. | async def save(YKHO, Ghho: str, H5ew: str, BWXx: any=None) -> None:
async with YKHO.lock:
await YKHO.storage.save(Ghho, H5ew, BWXx)
try:
await YKHO.cache.save(Ghho, H5ew, BWXx)
except KeyError:
await YKHO.set_category_cache(Ghho) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WmM4(YKHO, WmM4):\n YKHO._set_field('value', WmM4)",
"def UXGE(YKHO):\n YKHO.setValue(YKHO.default_value)",
"def HyJ9(YKHO, HyJ9):\n YKHO._default_value = HyJ9",
"def HyJ9(YKHO, HyJ9):\n YKHO._default_value = HyJ9",
"def HyJ9(YKHO, HyJ9):\n YKHO._default_value = HyJ9",
"def WmM4(YKHO, ... | [
"0.8779659",
"0.85444957",
"0.84207463",
"0.84207463",
"0.84207463",
"0.8336261",
"0.82971627",
"0.8248145",
"0.8235928",
"0.78229636",
"0.76896775",
"0.7598059",
"0.7531874",
"0.75219864",
"0.7491882",
"0.7438307",
"0.73879236",
"0.73678184",
"0.73588204",
"0.7180897",
"0.71... | 0.0 | -1 |
Return a config object with good defaults for testing. | def UiCc():
GPtr = PSrQ()
GPtr.TerminalInteractiveShell.colors = 'NoColor'
GPtr.TerminalTerminalInteractiveShell.term_title = (False,)
GPtr.TerminalInteractiveShell.autocall = 0
eHNT = gbPf.NamedTemporaryFile(suffix=u'test_hist.sqlite', delete=False)
GPtr.HistoryManager.hist_file = GkAb(eHNT.nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr() -> PSrQ:\n return PSrQ()",
"def GPtr():\n return PSrQ()",
"def GPtr():\n return PSrQ()",
"def UeTy(Emd4):\n return dict()",
"def OYW4(YKHO):\n return {}",
"def tgzD():\n GPtr = dict(name='defaults', distribution='zipf', lbd_geometric=0.8, degree_zipf=1.0, run_approx_miracle=F... | [
"0.7767758",
"0.7641374",
"0.7641374",
"0.74754703",
"0.741105",
"0.73707324",
"0.73380303",
"0.72893995",
"0.72521824",
"0.7229726",
"0.7229726",
"0.72162116",
"0.72087854",
"0.72087854",
"0.7176298",
"0.71517456",
"0.713175",
"0.712384",
"0.70697457",
"0.7063332",
"0.704718... | 0.0 | -1 |
Return appropriate IPython command line name. By default, this will return a list that can be used with subprocess.Popen, for example, but passing `as_string=True` allows for returning the IPython command as a string. | def _pOp(CZBi=False):
WZU0 = [HwRy.executable, '-m', 'IPython']
if CZBi:
WZU0 = ' '.join(WZU0)
return WZU0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pe5D():\n return Hy7s.path.basename(HwRy.argv[0]) + ' ' + ' '.join(HwRy.argv[1:])",
"def eImQ():\n raise NotImplementedError()",
"def mWFP(YKHO):\n ZyXc = tq_1.getfile(type(YKHO))\n pqZE = Hy7s.path.basename(ZyXc)\n Asoz, bGrB = Hy7s.path.splitext(pqZE)\n return Asoz",
"def oOuL(YKHO, C... | [
"0.5910438",
"0.55176014",
"0.5498984",
"0.5423844",
"0.5423365",
"0.5213965",
"0.5163156",
"0.5121577",
"0.51157314",
"0.50861466",
"0.50668955",
"0.50530684",
"0.504859",
"0.50320584",
"0.50269556",
"0.49911642",
"0.49908638",
"0.49802488",
"0.49360868",
"0.49300075",
"0.49... | 0.7596549 | 0 |
Initialize the filesystem for the root path. | def FIMM(YKHO, tk5Y, XZBf, format='wav', Wd88=False, pRJb=True, PJWX=False):
YKHO.root = Hy7s.path.realpath(tk5Y)
YKHO.mount = Hy7s.path.realpath(XZBf)
YKHO.rwlock = T6FA.RLock()
YKHO._open_subtracks = {}
YKHO._format = format
YKHO._verbose = PJWX
YKHO._use_tempfile = Wd88
if pRJb:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, M6DC=None):\n YKHO.rootPath = M6DC or '.'",
"def FIMM(YKHO, mSqg):\n YKHO.root_path = mSqg\n if not Hy7s.path.exists(mSqg):\n Hy7s.makedirs(mSqg)",
"def FIMM(YKHO, mSqg):\n YKHO._root = mSqg\n if not Hy7s.path.exists(YKHO._root):\n Hy7s.makedirs(YKHO._root)",
"def ... | [
"0.72353077",
"0.6930624",
"0.6848598",
"0.6631195",
"0.65945923",
"0.6564515",
"0.6546062",
"0.64292413",
"0.64292413",
"0.64099646",
"0.6320109",
"0.6301201",
"0.6281154",
"0.62626517",
"0.6246272",
"0.6246272",
"0.62378716",
"0.6234741",
"0.6223345",
"0.6211624",
"0.620334... | 0.5766607 | 42 |
Testing the subtract method of the calculator | def S6G2():
hzm0 = sFjc()
hzm0.subtract_number(5)
assert hzm0.get_result() == -5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tw2Z():\n assert euR3.subtract(7, 3) == 4\n assert euR3.subtract(7.0, 3.0) == 4.0\n assert euR3.subtract(7, -3) == 10\n assert euR3.subtract(7.0, -3.0) == 10.0",
"def Geul():\n hzm0 = sFjc()\n hzm0.subtract(1)\n assert hzm0.get_result() == -1",
"def WDhj(YKHO):\n YKHO.assertEqual(yh... | [
"0.8693571",
"0.8651895",
"0.8305262",
"0.82759595",
"0.8261573",
"0.82330716",
"0.82330716",
"0.821264",
"0.8192774",
"0.8152954",
"0.8083025",
"0.80597436",
"0.7985497",
"0.7983098",
"0.77423507",
"0.7734247",
"0.7657529",
"0.75747967",
"0.7517118",
"0.7416459",
"0.7376896"... | 0.85075855 | 2 |
Testing the subtract method of the calculator | def xj1H():
hzm0 = sFjc()
hzm0.subtract_number(5)
assert hzm0.get_result() == -5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tw2Z():\n assert euR3.subtract(7, 3) == 4\n assert euR3.subtract(7.0, 3.0) == 4.0\n assert euR3.subtract(7, -3) == 10\n assert euR3.subtract(7.0, -3.0) == 10.0",
"def Geul():\n hzm0 = sFjc()\n hzm0.subtract(1)\n assert hzm0.get_result() == -1",
"def S6G2():\n hzm0 = sFjc()\n hzm0... | [
"0.8694137",
"0.8652152",
"0.85081834",
"0.83050925",
"0.82767653",
"0.82625127",
"0.8233758",
"0.8233758",
"0.8193318",
"0.81525505",
"0.8082341",
"0.80599314",
"0.79866475",
"0.7983902",
"0.7744004",
"0.77339315",
"0.7656863",
"0.7575785",
"0.7517628",
"0.74160206",
"0.7377... | 0.82130766 | 8 |
load pretraining weights except the layers in self.skip_layers into memary the input weights is a dicttype data, each key is the name of a layer, such as "conv1", "fc1"m etc | def Ts0p(YKHO, cuiw, JSVx=[]):
if JSVx:
YKHO.SKIP_LAYER = JSVx
BoVi = oyIN.load(YKHO.WEIGHTS_PATH, encoding='latin1').item()
for yhyn in BoVi:
if yhyn not in YKHO.SKIP_LAYER:
with ZylS.variable_scope(yhyn, reuse=True):
print('load layer params:%s' % yhyn)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO, mL4f=None):\n if isinstance(mL4f, str):\n from mmdet3d.utils import get_root_logger\n bo34 = get_root_logger()\n Nh79(YKHO, mL4f, strict=False, logger=bo34)",
"def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model f... | [
"0.72316885",
"0.7037991",
"0.69763565",
"0.69054043",
"0.67907304",
"0.67870134",
"0.6782275",
"0.6771557",
"0.6718321",
"0.67010576",
"0.66778404",
"0.66609836",
"0.6642679",
"0.66256386",
"0.6612871",
"0.65368205",
"0.6526203",
"0.652577",
"0.65116435",
"0.65115124",
"0.65... | 0.72738856 | 0 |
Convert time object into a humanreadable format | def q4Zg(RA_F):
fR9w, aETf = divmod(RA_F.seconds, 60)
wMHp, fR9w = divmod(fR9w, 60)
aY6a = RA_F.days
if aY6a > 0:
jFwo = '{}d {}h'.format(aY6a, wMHp)
elif wMHp > 0:
jFwo = '{}h {}m'.format(wMHp, fR9w)
elif fR9w > 0:
jFwo = '{}m {}s'.format(fR9w, aETf)
else:
jF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EgnU():\n return ITS7.strftime('%A, %H:%M')",
"def VkWF(PYuG: time) -> str:\n if PYuG.second != 0:\n i4h0 = '%I:%M:%S %p'\n elif PYuG.minute != 0:\n i4h0 = '%I:%M %p'\n elif PYuG.minute is not None:\n i4h0 = '%I %p'\n WnCY = ITS7.strftime(PYuG, i4h0)\n if WnCY[0] == '0'... | [
"0.78759503",
"0.7685939",
"0.74415135",
"0.73832643",
"0.73051375",
"0.7155977",
"0.712031",
"0.70490885",
"0.69938296",
"0.69846195",
"0.6969937",
"0.69694453",
"0.6959201",
"0.6959201",
"0.6955133",
"0.6950612",
"0.69099796",
"0.6878059",
"0.6874713",
"0.6866273",
"0.68247... | 0.0 | -1 |
Convert class labels from scalars to onehot vectors. | def WkZc(lexL, jTqs):
svPB = lexL.shape[0]
whV7 = oyIN.arange(svPB) * jTqs
xZkh = oyIN.zeros((svPB, jTqs))
xZkh.flat[whV7 + lexL.ravel()] = 1
return xZkh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)",
"def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN",
"def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(... | [
"0.8250402",
"0.807683",
"0.80523187",
"0.7977843",
"0.7908335",
"0.7900327",
"0.7892233",
"0.7869711",
"0.7849721",
"0.7849721",
"0.7826951",
"0.7826122",
"0.77677035",
"0.7765413",
"0.77540547",
"0.77540547",
"0.77540547",
"0.77489346",
"0.7742955",
"0.7737176",
"0.77226317... | 0.7469378 | 49 |
Get the label for the "this_month" option. Defaults to ``This month`` (translatable). | def Zi3S(YKHO):
return YnDY('This month') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkGQ(YKHO):\n return YnDY('This year')",
"def XMq6(YKHO):\n return YKHO.strftime('%B')",
"def gj6q(YKHO):\n return YnDY('This week')",
"def N8Vg(YKHO):\n if YKHO.time.month != qcWV.datetime.now().month or YKHO._this_month is None:\n YKHO._update_time()\n return YKHO._this_month",
... | [
"0.67461526",
"0.6745327",
"0.65667117",
"0.64267904",
"0.639726",
"0.6371888",
"0.61094856",
"0.60647357",
"0.60584813",
"0.6057885",
"0.6057885",
"0.6057885",
"0.6057885",
"0.6057885",
"0.6057885",
"0.6057885",
"0.60568404",
"0.6048678",
"0.5997982",
"0.5997982",
"0.599093"... | 0.8710035 | 0 |
Get the label for the ``null`` option. | def xcN0(YKHO):
return UhsG('listfilter AbstractDateTime', 'Has no value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ():\n pKvt = CHTi('Input label name (leave blank for no label):')\n oV74('label', pKvt)\n V1Lg['label'] = pKvt\n return",
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'label')",
"def UX... | [
"0.6987267",
"0.6929007",
"0.6929007",
"0.6929007",
"0.6929007",
"0.6929007",
"0.6929007",
"0.6929007",
"0.6811257",
"0.6725421",
"0.6725421",
"0.669977",
"0.66710705",
"0.6656181",
"0.6654675",
"0.6559638",
"0.6539041",
"0.6533459",
"0.64990604",
"0.64774597",
"0.6459351",
... | 0.6747196 | 9 |
Get the label for the ``not null`` option. | def GMS6(YKHO):
return UhsG('listfilter AbstractDateTime', 'Has value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7148072",
"0.7148072",
"0.7148072",
"0.7148072",
"0.7148072",
"0.7148072",
"0.7148072",
"0.69325954",
"0.69324076",
"0.6797324",
"0.671225",
"0.671225",
"0.6674225",
"0.6579059",
"0.6552098",
"0.65453774",
"0.65453774",
"0.65453774",
"0.65453774",
"0.6494784",
"0.6455107",... | 0.6964981 | 7 |
Filter so that only values that are NULL is included. Must be overridden in subclasses. | def xnmO(YKHO, XpQh):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yAMX(YKHO, XpQh):\n raise NotImplementedError()",
"def avjF(ZfUD, AUMu=False, lLBc=None):\n if ZfUD[0] == 0:\n uZq5 = True\n else:\n uZq5 = bool(ZfUD[0])\n if lLBc and str(ZfUD[0]) in lLBc and uZq5:\n uZq5 = False\n uZq5 ^= AUMu\n return ZfUD if uZq5 else None",
"def ... | [
"0.7157909",
"0.70512384",
"0.6998318",
"0.6880553",
"0.6783669",
"0.66334957",
"0.64363253",
"0.6347701",
"0.6273366",
"0.6253232",
"0.6229983",
"0.620238",
"0.6162813",
"0.61055386",
"0.60992247",
"0.60986084",
"0.60942054",
"0.6070224",
"0.6057943",
"0.604139",
"0.60404724... | 0.73535377 | 0 |
Get the ordering options must be overridden in subclasses. You must override this instead of ``get_choices()``. Should return a list of ``(value, options)`` pairs where | def RDU2(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQRP(lpc4):\n return [{'title': Ty9i['title'], 'value': '-{0}'.format(G1Hx) if Ty9i.get('default_order', 'asc') == 'desc' else G1Hx} for G1Hx, Ty9i in sorted(lpc4.items(), key=lambda WKvO: WKvO[1].get('order', 0))]",
"def BQRP(lpc4):\n return [dict(title=Ty9i['title'], value='-{0}'.format(G1Hx) if Ty9i... | [
"0.696246",
"0.68591285",
"0.6651788",
"0.66371727",
"0.6512867",
"0.6468735",
"0.63886184",
"0.6329252",
"0.6320827",
"0.6293886",
"0.6263882",
"0.6263725",
"0.6226764",
"0.62134695",
"0.6211805",
"0.61705923",
"0.61619234",
"0.6156261",
"0.6153663",
"0.6093353",
"0.6075026"... | 0.7942253 | 0 |
Return the `Group` with the given id. | def aiHR(YKHO, hE03):
return cQ68(hE03, YKHO.user_id, YKHO.site_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDwv(YKHO, id):\n for uOe2 in YKHO.groups:\n if uOe2.id == id:\n return uOe2\n return None",
"def aiHR(YKHO, id: utils.Intable) -> cQ68 | None:\n Nm6g = OXja(id=id, type=eBH2.Chat)\n return YKHO._connection.get_group(Nm6g.id)",
"def Cnxh(YKHO, hE03: int) -> 'Group':\n retur... | [
"0.86751443",
"0.8147111",
"0.8042772",
"0.779743",
"0.77354",
"0.76379037",
"0.76210207",
"0.75323737",
"0.74977857",
"0.74653757",
"0.73682606",
"0.7232795",
"0.71228415",
"0.7024688",
"0.69462293",
"0.6924493",
"0.69070995",
"0.68198544",
"0.6809479",
"0.6793301",
"0.67741... | 0.803362 | 3 |
Returns a copy of an image where the contrast between pixels is maximized. By Maitreyi Patel 101120534 | def sLzI(Tz44: Image) -> hnIv:
LMb3 = jth9(Tz44)
for WKvO, LVAh, (Mkmy, Oa1e, Fg_i) in LMb3:
if Mkmy <= 127:
Mkmy = 0
if Mkmy >= 128 and Mkmy <= 255:
Mkmy = 255
if Oa1e <= 127:
Oa1e = 0
if Oa1e >= 128 and Oa1e <= 255:
Oa1e = 255
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPmE(LNo8):\n zNig = EkMs(LNo8)\n xCu3 = cOBN(zNig, uZvR, 1)\n idx7 = cOBN(zNig, uZvR, 1)\n j93S = cOBN(zNig, uZvR, 1)\n Nqp_ = cOBN(zNig, uZvR, 1)\n geyT = P_0Q(3, 3, 2, 2, oIFC)\n rBNn(LNo8, idx7, None, geyT, Mb2A, 1)\n rBNn(LNo8, xCu3, None, geyT, OTVn, 1)\n NrhX(LNo8, idx7, j93S)... | [
"0.80790627",
"0.7858857",
"0.6891162",
"0.68127465",
"0.6806602",
"0.6806602",
"0.6727553",
"0.66561",
"0.6637035",
"0.6597249",
"0.6275586",
"0.62391853",
"0.6220622",
"0.6185442",
"0.61759365",
"0.61489713",
"0.6147531",
"0.61431724",
"0.6140448",
"0.6139611",
"0.6127658",... | 0.7253687 | 2 |
Returns a copy of an image, in which the copy has been modified using the edge detection technique. For every pixel that has a pixel below it, if the contrast is high, change the top pixel's to black, if low, change it to white. The most bottom row is fixed to white. >>> original = Image(choose_file()) >>> final_image ... | def gdBy(UoJt: Image, gwAu: int) -> hnIv:
FHlE = jth9(UoJt)
bnza = jth9(FHlE)
z13o = egIk(0, 0, 0)
AX3l = egIk(255, 255, 255)
QgCH = V8C_(UoJt)
lsIx = xglF(UoJt)
for WKvO in range(QgCH):
for LVAh in range(lsIx - 1):
J1b4, IZ6w, kYGz = PICn(FHlE, WKvO, LVAh)
CY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bnks(UoJt: Image, gwAu: int) -> hnIv:\n FHlE = jth9(UoJt)\n bnza = jth9(FHlE)\n z13o = egIk(0, 0, 0)\n AX3l = egIk(255, 255, 255)\n QgCH = V8C_(UoJt)\n lsIx = xglF(UoJt)\n for WKvO in range(QgCH - 1):\n for LVAh in range(lsIx - 1):\n J1b4, IZ6w, kYGz = PICn(FHlE, WKvO, LV... | [
"0.76122564",
"0.6973558",
"0.69206375",
"0.66890055",
"0.6602471",
"0.6599005",
"0.6549579",
"0.64197993",
"0.63512367",
"0.6342616",
"0.63286704",
"0.6322933",
"0.6269395",
"0.62537557",
"0.62052596",
"0.61945796",
"0.60327667",
"0.6028337",
"0.6019783",
"0.5936171",
"0.590... | 0.7867846 | 0 |
Returns a copy of an image, in which the copy has been modified using the edge detection technique. For every pixel that has a pixel below or next to right of it, if the contrast is high, change the top pixel's to black, if low, change it to white. The most bottom row is fixed to white. >>> original = Image(choose_file... | def bnks(UoJt: Image, gwAu: int) -> hnIv:
FHlE = jth9(UoJt)
bnza = jth9(FHlE)
z13o = egIk(0, 0, 0)
AX3l = egIk(255, 255, 255)
QgCH = V8C_(UoJt)
lsIx = xglF(UoJt)
for WKvO in range(QgCH - 1):
for LVAh in range(lsIx - 1):
J1b4, IZ6w, kYGz = PICn(FHlE, WKvO, LVAh)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gdBy(UoJt: Image, gwAu: int) -> hnIv:\n FHlE = jth9(UoJt)\n bnza = jth9(FHlE)\n z13o = egIk(0, 0, 0)\n AX3l = egIk(255, 255, 255)\n QgCH = V8C_(UoJt)\n lsIx = xglF(UoJt)\n for WKvO in range(QgCH):\n for LVAh in range(lsIx - 1):\n J1b4, IZ6w, kYGz = PICn(FHlE, WKvO, LVAh)\... | [
"0.7853329",
"0.69349927",
"0.69269216",
"0.67027277",
"0.66060257",
"0.65929544",
"0.65890247",
"0.6415963",
"0.6397277",
"0.63110507",
"0.62923175",
"0.6289549",
"0.6279254",
"0.62434155",
"0.6218395",
"0.6175579",
"0.60644835",
"0.6062814",
"0.60376847",
"0.59238756",
"0.5... | 0.76028234 | 1 |
Returns the righthandside of the differential equation du/dt = f(u,t) for the rocket equations of motion | def RKYb(P6bq, a1PO):
MKlR = P6bq[0]
Ty9i = P6bq[1]
g2zq = P6bq[2]
M9PD = Ty9i
dh4r = (-(NmYP + g2zq) * Oa1e + tS6x(a1PO) * pSUx - 0.5 * oZuG * Ty9i * abs(Ty9i) * k0lF * hyGP) / (NmYP + g2zq)
T0PR = -tS6x(a1PO)
return XTiz.array([M9PD, dh4r, T0PR]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyDI(Jyyj, OImi, a1PO, WKvO):\n eHNT = Jyyj.getValue(WKvO)\n Vb5F = oyIN.linalg.norm(eHNT)\n eHNT = eHNT / Vb5F\n return -eHNT * OImi(Vb5F)",
"def oT95(Mkmy, a1PO):\n return 1 / a1PO ** 0.5",
"def HibE(Mkmy, a1PO):\n return -z1Rg(Mkmy, a1PO) / (2 * a1PO)",
"def mlxx(Jyyj, OImi, a1PO, WK... | [
"0.6324619",
"0.60520506",
"0.5992487",
"0.59819275",
"0.59414446",
"0.5770738",
"0.5768748",
"0.57508725",
"0.5738172",
"0.5599669",
"0.5599669",
"0.55978096",
"0.559505",
"0.55774236",
"0.5556045",
"0.5515281",
"0.55115485",
"0.55089164",
"0.54946136",
"0.54898113",
"0.5478... | 0.0 | -1 |
Get all rawlogs that have the given tags. Returns a dictionary string > RawLog. | def AXuk(dJ1p):
return dict(mumN(dJ1p)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D98W(dJ1p):\n RKD7.debug('looking for tags ' + str(dJ1p))\n try:\n bD7m = _Tki.csw_url\n TPwt = WWMw.get_template('geonetwork/post_records_by_tags.xml')\n dJ1p = dJ1p.split(',')\n AaGk = TPwt.render(tags=dJ1p).replace('\\n', '')\n MOPg = {'content-type': 'application/xm... | [
"0.5830005",
"0.5760281",
"0.571326",
"0.5696717",
"0.5599825",
"0.54074347",
"0.54041946",
"0.536355",
"0.53412014",
"0.5318143",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",
"0.531276",... | 0.85903096 | 0 |
Return SpooledTemporaryFile with given data as content, ready to read eg. as a subprocess input. | def Wfrm(nPrm):
b6ry = gbPf.SpooledTemporaryFile()
b6ry.write(nPrm)
b6ry.flush()
b6ry.seek(0)
return b6ry | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUTN(YKHO):\n Gcbu, pmON = gbPf.mkstemp(dir=Hy7s.path.join(YKHO.root, 'temporary'))\n try:\n return (Hy7s.fdopen(Gcbu, 'wb'), pmON)\n except:\n Hy7s.unlink(pmON)\n Hy7s.close(Gcbu)\n raise",
"def ATtQ(RV39, m5r4, Ux0P, ULfO):\n return gbPf.TemporaryFile('w+b')",
"def... | [
"0.660149",
"0.6378337",
"0.6295358",
"0.62936836",
"0.62359864",
"0.62012386",
"0.61454606",
"0.61445516",
"0.60877544",
"0.6073709",
"0.6064633",
"0.60523564",
"0.6044257",
"0.60378873",
"0.6034862",
"0.60276604",
"0.60190946",
"0.60038245",
"0.5993146",
"0.59453654",
"0.59... | 0.7994913 | 0 |
Retrieve references to all reactions with the observable specified. For now, the observable should be an attribute of the reaction. | def Gdst(C3yH, uYWe='crossSection'):
Aofo = []
for St0K in (C3yH.reactions, C3yH.sums.crossSectionSums, C3yH.sums.multiplicitySums, C3yH.fissionComponents, C3yH.productions):
for Mkmy in St0K:
if hasattr(Mkmy, uYWe):
Aofo.append(Mkmy)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0XE(YKHO, *qIxc):\n return _VfD.Model_getListOfReactions(YKHO, *qIxc)",
"def NMoC(YKHO, *qIxc):\n return _VfD.ListOfReactions_get(YKHO, *qIxc)",
"def a0XE(YKHO):\n return YKHO.model.getListOfReactions()",
"def vLTD(YKHO):\n return ccKF.ls(type='jb_reftrack')",
"def z3LN(YKHO):\n return ... | [
"0.6450636",
"0.64053",
"0.63046664",
"0.60382473",
"0.5912706",
"0.5876995",
"0.5610094",
"0.55434895",
"0.5535997",
"0.5524421",
"0.55221003",
"0.5499689",
"0.54352355",
"0.5425468",
"0.53978395",
"0.53955734",
"0.53830254",
"0.5345424",
"0.53050965",
"0.52900225",
"0.52787... | 0.6451472 | 0 |
Returns the "L1" risk as per Konno & Yamazaki; aka the meanabsolute deviation. | def XmSK(B8uI, CuxP):
YJwW = CuxP.fillna(0.0).as_matrix()
return oyIN.mean(oyIN.abs(YJwW.dot(B8uI))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N3Fp(EBsi, dZ6K):\n return oyIN.log(EBsi ** 2 / oyIN.sqrt(dZ6K ** 2 + EBsi ** 2))",
"def G37m(YKHO):\n return YKHO._averaged_risk",
"def G37m(YKHO):\n return YKHO._averaged_risk",
"def eGkr(azQ3, vlV6, K1Yq, L2Pj):\n return 0.5 * (-1.0 + L2Pj - vlV6 + ht2j.exp(vlV6 - L2Pj) + (azQ3 - K1Yq) ** ... | [
"0.60099393",
"0.5966085",
"0.5966085",
"0.5825609",
"0.5802337",
"0.57771564",
"0.57528514",
"0.5704603",
"0.56956136",
"0.568198",
"0.5625435",
"0.5613574",
"0.55717033",
"0.5561024",
"0.5550528",
"0.5550123",
"0.5542965",
"0.55239016",
"0.55238724",
"0.55234104",
"0.551403... | 0.65333205 | 0 |
Get snat rule information | def GdVW(YKHO, BWJM):
return YKHO._get(hfbG.Rule, BWJM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTlv(YKHO, RY8N, **xDcj):\n DagK = YKHO._get_resource(LxMm.Service, RY8N)\n return YKHO._list(hfbG.Rule, nat_gateway_id=DagK.id, **xDcj)",
"def tw21(YKHO):\n pass",
"def odII(YKHO):\n return YKHO.rule.state_dict()",
"def vm34(YKHO, RY8N, aBzZ=True, **xDcj):\n DagK = YKHO._get_resource(LxMm... | [
"0.67273194",
"0.6339265",
"0.6302662",
"0.61818534",
"0.6177145",
"0.61541337",
"0.6148086",
"0.6128165",
"0.61029214",
"0.61029214",
"0.61029214",
"0.60022295",
"0.60022295",
"0.60022295",
"0.59303766",
"0.5889412",
"0.5825517",
"0.5825517",
"0.5825517",
"0.5825517",
"0.582... | 0.79090667 | 0 |
Function that creates a batch normalization layer for a neural network in tensorflow | def O7UQ(THkp, exwG, YDYE):
DbxN = ZylS.keras.initializers.VarianceScaling(mode='fan_avg')
gEmA = ZylS.keras.layers.Dense(units=exwG, kernel_initializer=DbxN, name='layer')
_hZ2 = 1e-08
P8oC = gEmA(THkp)
KMvS = ZylS.Variable(ZylS.constant(1.0, shape=[exwG]), trainable=True)
UqYS = ZylS.Variable(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykhl(WKvO, Y9ns, mWFP):\n tlxW = ZylS.layers.batch_normalization(WKvO, axis=3, training=Y9ns, name=mWFP)\n return tlxW",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, epsilon=UCFg, center=True, s... | [
"0.78523886",
"0.7793938",
"0.77819747",
"0.76815754",
"0.7560385",
"0.7553916",
"0.750958",
"0.7474621",
"0.7410609",
"0.7398976",
"0.7391721",
"0.7353756",
"0.7227028",
"0.71957946",
"0.7184113",
"0.7172341",
"0.71529764",
"0.7115725",
"0.71137094",
"0.7106746",
"0.71048486... | 0.7967536 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Q2uB):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, Q2uB):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84564555",
"0.8391999",
"0.8144653",
"0.81410354",
"0.81326365",
"0.8094085",
"0.80921024",
"0.80921024",
"0.80921024",
"0.8085453",
"0.8085453",
"0.807646",
"0.807646",
"0.806588",
"0.8042693",
"0.8042693",
"0.8042693",
"0.8042693",
"0.8042693",
"0.8042693",
"0.8042693",
... | 0.0 | -1 |
Opens a new database connection if there is none yet for the current application context. | def FuuS():
if not hasattr(Oa1e, 'sqlite_db'):
Oa1e.sqlite_db = WyYT()
return Oa1e.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def WhEs(YKHO):\n YKHO.databaseConnector = h7IZ()",
"def DMw_(YKHO):\n ytgA = Hy7s.path.abspath(YKHO.db_name)\n ... | [
"0.75821716",
"0.7317949",
"0.7168726",
"0.7023119",
"0.6966575",
"0.6955527",
"0.69501823",
"0.6898128",
"0.684287",
"0.68288016",
"0.6818829",
"0.68058383",
"0.67962265",
"0.67700136",
"0.6762472",
"0.6752249",
"0.6747864",
"0.67321193",
"0.67017424",
"0.6688114",
"0.668502... | 0.77378136 | 0 |
The current effective load. | def _A4N(YKHO):
return YKHO.acknowledged + YKHO.unacknowledged | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zV9h(YKHO) -> float:\n return YKHO.load",
"def zTvY(YKHO):\n return sum((KCHu.effectiveLoad() for KCHu in YKHO.dispatcher.statuses))",
"def jAhI(YKHO):\n U78l = [XP5J.n for XP5J in YKHO._procs]\n return (sum(U78l), min(U78l))",
"def MjCG(YKHO):\n return YKHO.total_items / YKHO.capacity",
... | [
"0.77264035",
"0.75926745",
"0.699942",
"0.6726659",
"0.66630834",
"0.66050327",
"0.6598041",
"0.6476843",
"0.6434268",
"0.6415216",
"0.64062136",
"0.63834155",
"0.6303679",
"0.62846714",
"0.62257314",
"0.6176532",
"0.6167612",
"0.6145186",
"0.6113911",
"0.61096466",
"0.60987... | 0.6799089 | 3 |
Pytest fixture to set BASE_URL for all tests | def zDeW():
zDeW = 'http://api.zippopotam.us/'
return zDeW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWZt():\n return nvt3",
"def eCGt(oEge, JoqG=None):\n global test_dir\n l_jd = oEge",
"def QCFu(YKHO):\n for bD7m in ['test.com/123', 'http://:80/123', '//xyz.co.uk']:\n with YKHO.assertRaises(Exception):\n jzdc = nNXP.InvenTreeAPI(bD7m, connect=False)\n jzdc = nNXP.InvenTr... | [
"0.67375654",
"0.65970814",
"0.65514576",
"0.6524714",
"0.6482464",
"0.6472702",
"0.6407684",
"0.6375667",
"0.63571084",
"0.62757254",
"0.6258634",
"0.6251629",
"0.6239677",
"0.6214521",
"0.6204452",
"0.619246",
"0.6181787",
"0.6178682",
"0.6167146",
"0.6151436",
"0.6121323",... | 0.0 | -1 |
test that response body encoding from BASE_URL/COUNTRY_CODE is not set | def STlV(zDeW, w8ef):
Aofo = G4JS.get(f'{zDeW}{w8ef}')
assert Aofo.encoding is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EFPt(zDeW, w8ef):\n Aofo = G4JS.get(f'{zDeW}{w8ef}')\n assert Aofo.headers['Content-Type'] == 'application/json'",
"def Id_k():\n hGN5 = 'Accented: Österreich abcdefghijklmnopqrstuzwxyz'.encode('iso-8859-1')\n MOPg = {'Content-Type': 'text/plain'}\n geh0 = ODPQ.Response(200, content=hGN5, head... | [
"0.6956398",
"0.6909217",
"0.6896154",
"0.6833571",
"0.6711672",
"0.6639738",
"0.6586152",
"0.6492026",
"0.64387745",
"0.63929254",
"0.63825417",
"0.6228057",
"0.6200705",
"0.6175834",
"0.6164469",
"0.6121878",
"0.6118029",
"0.6112569",
"0.609245",
"0.6075537",
"0.59984934",
... | 0.90111285 | 0 |
Accesses and returns the attribute age of the class Subscriber | def N_N1(YKHO) -> int:
return YKHO.age | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kMPY(YKHO):\n return YKHO.__age",
"def lUqL(YKHO):\n return YKHO.age",
"def ZJe_(YKHO):\n return YKHO.__age",
"def ZJe_(YKHO):\n return YKHO._age",
"def N_N1(YKHO):\n return YKHO.age",
"def lUqL(YKHO):\n return YKHO.age",
"def N_N1(YKHO):\n return YKHO.age",
"def N_N1(YKHO):\... | [
"0.77284235",
"0.75666416",
"0.7518391",
"0.7474255",
"0.7454447",
"0.7414411",
"0.7402184",
"0.7347491",
"0.7230521",
"0.7230521",
"0.7230521",
"0.69440943",
"0.6660789",
"0.6656789",
"0.65856695",
"0.6570931",
"0.65101147",
"0.6462992",
"0.6372103",
"0.63414",
"0.63414",
... | 0.7199298 | 11 |
Mutator method to set the attribute id_number of the class Subscriber | def FGZM(YKHO, RE5S):
YKHO.id_number = RE5S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def f6Qh(YKHO, BWXx):\n pass",
"def id(YKHO, _eu6):\n YKHO._id = _eu6",
"def ekm0(YKHO, id):\n raise NotImplementedError('must be implemented in subclass')",
"def ekm0(YKHO, eEzR):\n YKHO._id = eEzR",
"def V_9M(YKHO, id):\n YKHO.id = id\n... | [
"0.6732539",
"0.65444344",
"0.6457275",
"0.6361913",
"0.62674856",
"0.6249849",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.6076807",
"0.60501117",
"0.5991542",
"0.5991542",
... | 0.6316665 | 4 |
Mutator method to set the attribute first_name of the class Subscriber | def Lnj8(YKHO, c9ua):
YKHO.first_name = c9ua | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McTO(YKHO, QBRK):\n YKHO.firstName = QBRK",
"def fcCO(YKHO, fcCO):\n YKHO._firstname = fcCO",
"def fcCO(YKHO, fcCO):\n YKHO._firstname = fcCO",
"def c9ua(YKHO, c9ua):\n YKHO._first_name = c9ua",
"def c9ua(YKHO, c9ua):\n YKHO._first_name = c9ua",
"def c9ua(YKHO, c9ua):\n YKHO._first_... | [
"0.7392514",
"0.72629136",
"0.72629136",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70686436",
"0.70483124",
"0.66207254",
"0.63646543",
"0.63099086",
"0.62442094",
"0.6231746",
"0.61960936",
"0.61960936",
... | 0.71234727 | 3 |
Return either integer or float conversion of specified string. | def eZZ1(vIwR):
if not vIwR:
return 0
try:
return int(vIwR)
except ValueError:
return float(vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGcZ(KCHu):\n try:\n float(KCHu)\n return 'FLOAT'\n except:\n return KCHu",
"def NrMZ(KCHu):\n try:\n return float(KCHu)\n except:\n return KCHu",
"def bp7k(vIwR):\n if Myyj(vIwR):\n return int(vIwR)\n elif QpCZ(vIwR):\n return float(vIwR)\... | [
"0.7885425",
"0.7848426",
"0.74684256",
"0.7457367",
"0.74012643",
"0.73964065",
"0.7389735",
"0.7379219",
"0.7353564",
"0.7302052",
"0.73001075",
"0.72640085",
"0.72066015",
"0.72018564",
"0.7194066",
"0.71903944",
"0.71281147",
"0.71276754",
"0.7105063",
"0.7092172",
"0.706... | 0.6993196 | 24 |
Spawns 1 process per GPU | def fDmP(YKHO):
nWQP()
_lHT = YKHO.args.world_size
g2zq = ht2j.multiprocessing.get_context('spawn')
kHGH = g2zq.SimpleQueue()
wyqm = HpJk(kHGH)
NBjn = []
for YRbF in range(_lHT):
YKHO.device_id = YRbF
NBjn.append(g2zq.Process(target=YKHO.multi_card_train, args=(YKHO.args, YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgWJ(aOGh, bIwZ, IM7X, kd5z, EHBZ, hIwh):\n G9jH.debug('Spawning GPU client')\n Hy7s.environ['CUDA_VISIBLE_DEVICES'] = str(EHBZ)\n TR8g = (aOGh, bIwZ, IM7X)\n for YRbF in range(kd5z):\n XP5J = ASOO(target=lES8._spawn_client_wrapper, args=TR8g)\n XP5J.start()\n Ii1o = Hy7s.getpid()\... | [
"0.6955488",
"0.6570167",
"0.6506753",
"0.6414029",
"0.6414029",
"0.6414029",
"0.63532364",
"0.6291745",
"0.6291745",
"0.6291745",
"0.62042475",
"0.613143",
"0.613143",
"0.613143",
"0.61242867",
"0.6122399",
"0.6121954",
"0.6121314",
"0.6070611",
"0.6056371",
"0.6054985",
"... | 0.6492785 | 3 |
Test that the matlab file is executable | def uP8B(YKHO):
ihSr = YKHO.host.check_output('which matlab | xargs readlink -f').rstrip('\n')
YKHO.assertRegex(QmN4.filemode(QmN4.S_IMODE(YKHO.host.file(ihSr).mode)), 'r.xr-xr-x') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8L6(YKHO):\n YKHO.assertTrue(YKHO.host.run('which matlab').succeeded)",
"def X4OX(YKHO):\n YKHO.assertEqual(YKHO.host.file('matlab.log').content_string.rstrip(), f'MATLAB {Gpnw}')",
"def SwtJ(YKHO):\n XFOk = Hy7s.access('models/engine/db_storage.py', Hy7s.R_OK)\n YKHO.assertTrue(XFOk)\n SuJ... | [
"0.7647192",
"0.678665",
"0.66786695",
"0.6411146",
"0.6374106",
"0.63328123",
"0.62889737",
"0.6270855",
"0.62674505",
"0.61999285",
"0.6116393",
"0.60501355",
"0.6029124",
"0.60080034",
"0.6005714",
"0.5996877",
"0.59735256",
"0.5969147",
"0.5961863",
"0.5946441",
"0.593180... | 0.8173911 | 0 |
return a double quoted string | def NCC9(BWXx):
return X9ix(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xYp0(KCHu):\n return \"'{}'\".format(KCHu)",
"def xYp0(KCHu):\n return \"'{}'\".format(KCHu)",
"def hmG8(KCHu):\n KCHu = str(KCHu)\n return '\"' + KCHu + '\"'",
"def KoZv():\n pass",
"def mtVx(KCHu):\n return repr(KCHu)",
"def fiyZ(Bpww):\n return Bpww.replace('\"', '\\\\\"').rep... | [
"0.7326465",
"0.7326465",
"0.73118585",
"0.72337395",
"0.706227",
"0.70223355",
"0.6962079",
"0.68827236",
"0.6876345",
"0.68393797",
"0.6771374",
"0.6729521",
"0.667199",
"0.66369194",
"0.66338056",
"0.6588877",
"0.6582053",
"0.65683013",
"0.6544022",
"0.6469517",
"0.6453002... | 0.7039518 | 5 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.776624",
"0.7754693",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.771945",
"0.7667712",
"0.7664151",
"0.76493174",
"0.76140213",
"0.76131... | 0.7810746 | 19 |
Return true/false on whether the queue is empty | def A4KR(YKHO):
return YKHO.qSize == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def lsmZ(YKHO) -> bool:\n if YKHO.queue.empty():\n return True\n else:\n return Fa... | [
"0.9107126",
"0.90377414",
"0.90377414",
"0.9033908",
"0.9032376",
"0.90117496",
"0.90018916",
"0.8950022",
"0.89130694",
"0.8884582",
"0.8857003",
"0.88566595",
"0.87847096",
"0.8760816",
"0.87482595",
"0.87185925",
"0.87185925",
"0.87091553",
"0.86245954",
"0.85803574",
"0.... | 0.81086004 | 38 |
Setup slices and ipa_regions. Deprecated. | def XLNp(YKHO, SuPp, nKjw):
YKHO.ipa_regions = nKjw
YKHO.slices = SuPp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OqvP(YKHO, mXDZ):\n SuPp = []\n nKjw = []\n for YRbF, XP5J in enumerate(mXDZ):\n if YRbF % 2 == 0:\n SuPp.append(XP5J)\n else:\n nKjw.append(XP5J)\n YKHO.region_setup(SuPp, nKjw)",
"def eCGt(YKHO, Ej58, De3O, fOtm):\n YKHO.pvcs, YKHO.pods = fOtm(pvc_size=3, ... | [
"0.592549",
"0.53064114",
"0.5278262",
"0.5147462",
"0.5060558",
"0.5060536",
"0.5030198",
"0.5000901",
"0.4995736",
"0.49844086",
"0.49457607",
"0.49449494",
"0.49284875",
"0.49272278",
"0.4915548",
"0.49075764",
"0.49055642",
"0.48806345",
"0.4873827",
"0.48728085",
"0.4864... | 0.8085767 | 0 |
This function creates and returns a SQLAlchemy engine | def EbLM(**B2fa):
OwhH = 'MySQL'
return OwhH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWOV(zk0k: Dict[str, str]) -> RyuO.engine:\n cmRX = zFcP(zk0k)\n return RyuO.create_engine(cmRX)",
"def i4ns():\n TLmj = eHDE()\n eHpk = y2U9(TLmj)\n return eHpk",
"def y2U9(YKHO):\n YtR6 = f'postgresql://{YKHO.user}:{YKHO.password}@{YKHO.host}/{YKHO.database_name}'\n return y2U9(YtR6)... | [
"0.83067185",
"0.8296472",
"0.8168199",
"0.81632954",
"0.7979148",
"0.7856069",
"0.7809878",
"0.776091",
"0.7753024",
"0.7717434",
"0.7663689",
"0.7659336",
"0.76496416",
"0.7640579",
"0.7607533",
"0.74650085",
"0.7432243",
"0.73573345",
"0.73550826",
"0.73530173",
"0.7353017... | 0.0 | -1 |
Test 'jwt' with no data | def aj1S(YKHO):
YKHO.assertEqual(s7If.parsers.jwt.parse('', quiet=True), {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBnc(x0hE):\n geh0 = x0hE.get('/user')\n assert geh0.status_code == 401",
"def gxKm(YKHO, uxFF, xmBU, pUpP):\n with cR0t(tEve):\n uxFF.decoded_jwt()",
"def H_HK(YKHO):\n nPrm = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyf... | [
"0.764417",
"0.7272284",
"0.7252237",
"0.72384",
"0.7082292",
"0.70775044",
"0.7034194",
"0.7016667",
"0.70094097",
"0.70037216",
"0.69933385",
"0.69865566",
"0.6978783",
"0.6965913",
"0.6954725",
"0.6923681",
"0.69185",
"0.6914549",
"0.6896478",
"0.68753046",
"0.6857662",
... | 0.7752674 | 0 |
Function returns a dictionary with definitions of output data produced the component. | def Q1jq(YKHO):
return {YKHO.key_outputs: NXGg([-1] * (YKHO.num_inputs_dims - 1) + [YKHO.input_size], [ht2j.Tensor], 'Batch of outputs [DIM 1 x DIM 2 x ... x INPUT_SIZE]')} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1jq(YKHO):\n return {}",
"def Q1jq(YKHO):\n return {YKHO.key_outputs: NXGg([-1, YKHO.output_size], [ht2j.Tensor], 'Batch of outputs [BATCH_SIZE x OUTPUT_SIZE]')}",
"def jSjS(YKHO):\n aT8L = {}\n for n80H in YKHO.provided_outputs:\n aT8L[n80H.full_path] = YKHO.get_value(n80H)\n return... | [
"0.7913661",
"0.7503195",
"0.7397077",
"0.7144201",
"0.6894268",
"0.6771832",
"0.6712732",
"0.66553247",
"0.65952355",
"0.65835136",
"0.65544933",
"0.6544944",
"0.6533759",
"0.6518811",
"0.6509036",
"0.64230347",
"0.63829935",
"0.6379817",
"0.6365335",
"0.6364648",
"0.6355275... | 0.7291798 | 3 |
Set the Engines id. | def ekm0(YKHO, id):
YKHO._id = id
return YKHO.callRemote('setID', id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, LZbL):\n pass",
"def f6Qh(YKHO, BWXx):\n pass",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def Dn0_(YKHO, *qIxc):\n return _VfD.CompartmentGlyph_setCompartmentId(YKHO, *qIxc)",
"def W2tI(YKHO, *qIxc):\n return _VfD.Compartment_setId(YKHO, *qIxc)",
"def psjw(YKHO, BZDx... | [
"0.6346012",
"0.6320062",
"0.62935054",
"0.6074043",
"0.60688555",
"0.59417945",
"0.5920414",
"0.5898072",
"0.58787954",
"0.58537996",
"0.5839107",
"0.5829861",
"0.580129",
"0.5775514",
"0.576699",
"0.57448155",
"0.5723956",
"0.56919867",
"0.56765926",
"0.56695443",
"0.563689... | 0.55481255 | 37 |
Returns a function to calculate the asymptote y for given x. | def JoAO(r8hN, Fg_i):
def eHNT(WKvO):
return r8hN * WKvO + Fg_i
return eHNT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYKK(YKHO, WKvO):\n return epAf.exp(WKvO * 2) - epAf.exp(WKvO) - 2",
"def FYKK(YKHO, WKvO):\n return epAf.exp(WKvO * 2) - epAf.exp(WKvO) - 2",
"def LVAh(WKvO):\n o4D3, ajwV, rNcn, SzKB = (WKvO[:, 0], WKvO[:, 1], WKvO[:, 2], WKvO[:, 3])\n return 1 + 0.3 * o4D3 - 0.6 * ajwV ** 2 - 0.2 * rNcn ** 3... | [
"0.7294885",
"0.7294885",
"0.71997863",
"0.7070093",
"0.68911576",
"0.6871796",
"0.6634693",
"0.6563065",
"0.64267766",
"0.6327821",
"0.6305303",
"0.6290849",
"0.6290764",
"0.62749696",
"0.6269853",
"0.62684464",
"0.6263944",
"0.62497854",
"0.6249392",
"0.624133",
"0.6240976"... | 0.0 | -1 |
Get the mode of a PSCU temperature sensor. This method returns the descriptive mode for the specified PSCU temperature sensor, i.e. whether the sensor channel has an over or undertemperature trip condition. | def TrcK(YKHO, XtFw):
if XtFw >= YKHO.num_temperatures or XtFw < 0:
raise DJXY('Illegal sensor index {} specified'.format(XtFw))
return YKHO.__temperature_mode[XtFw] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQBk(YKHO):\n s0oP('simq03b_api.get_mode')\n KCHu = YKHO.query('FREQ:MODE?')\n if KCHu == None:\n return None\n KCHu = KCHu.strip()\n if KCHu == 'CW':\n return 'Fixed'\n elif KCHu == 'LIST':\n return 'List'\n else:\n print('ERROR: Unknown mode ' + str(KCHu))\n ... | [
"0.6198472",
"0.6106526",
"0.6106526",
"0.59787726",
"0.5820048",
"0.5762024",
"0.5647248",
"0.5641971",
"0.5621944",
"0.56131953",
"0.5580859",
"0.5580859",
"0.5578239",
"0.5543754",
"0.55431765",
"0.5539702",
"0.55377156",
"0.55315554",
"0.5498363",
"0.5460879",
"0.5435335"... | 0.692595 | 0 |
Get the name of a PSCU humidity sensor. This method returns the descriptive name for the specified PSCU humidity sensor. | def DFW6(YKHO, XtFw):
if XtFw >= YKHO.num_humidities or XtFw < 0:
raise DJXY('Illegal sensor index {} specified'.format(XtFw))
return O93g.HUMIDITY_SENSOR_NAMES[XtFw] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_pX(YKHO, XtFw):\n if XtFw >= YKHO.num_temperatures or XtFw < 0:\n raise DJXY('Illegal sensor index {} specified'.format(XtFw))\n return O93g.TEMP_SENSOR_NAMES[XtFw]",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def D7WV(YKHO):\n return YKHO._sensor_name",
"def mWFP(YKHO):\n return f... | [
"0.6818292",
"0.64837825",
"0.6255804",
"0.61317384",
"0.6119389",
"0.6088273",
"0.6059589",
"0.6051599",
"0.60390633",
"0.6008977",
"0.58230865",
"0.58230865",
"0.58230865",
"0.5811364",
"0.5760146",
"0.57595795",
"0.57289016",
"0.57184887",
"0.57145315",
"0.57139033",
"0.56... | 0.6953584 | 0 |
Get the value of the PSCU pump flow sensor. This method returns the current pump flow sensor value. | def bpCj(YKHO):
return YKHO.__pump_flow | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO.sensor.get_value()",
"def LXG0(YKHO):\n return YKHO.device.value(*YKHO._id[1:])",
"def j29d(YKHO):\n return YKHO.__sensor_states[2]",
"def aDkp(YKHO):\n return YKHO.__pump_flow_raw * O93g.PUMP_VREF",
"def BWXx(YKHO) -> float:\n return qe4Y.get(YKHO, 'value')",
... | [
"0.69894",
"0.6496897",
"0.63225985",
"0.6265872",
"0.6198226",
"0.6198226",
"0.6192441",
"0.6177503",
"0.6172962",
"0.6131678",
"0.6104206",
"0.6096056",
"0.6058464",
"0.6058464",
"0.6058464",
"0.6057702",
"0.603963",
"0.60244685",
"0.6011187",
"0.60058516",
"0.6001493",
"... | 0.5966526 | 26 |
Get the raw value of the PSCU pump flow sensor. This method returns the current raw pump flow sensor value. | def aDkp(YKHO):
return YKHO.__pump_flow_raw * O93g.PUMP_VREF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c512(YKHO):\n YKHO.value = YKHO.analogInput.value\n return YKHO.value",
"def uKP5(YKHO):\n EBgd = YKHO.read_byte_data(YKHO.address, 0)\n HpuQ = YKHO.read_byte_data(YKHO.address, 1)\n Lq8X = YKHO.read_byte_data(YKHO.address, 2)\n XP5J = EBgd << 16 | HpuQ << 8 | Lq8X\n XP5J = cdxk(XP5J, 24... | [
"0.68582135",
"0.6745122",
"0.6697227",
"0.6641662",
"0.6574043",
"0.6490671",
"0.6463854",
"0.64160466",
"0.64160466",
"0.64082825",
"0.62273556",
"0.62179893",
"0.61835974",
"0.60633504",
"0.60186684",
"0.5989791",
"0.5968575",
"0.59401405",
"0.59180194",
"0.59068346",
"0.5... | 0.6115177 | 13 |
Get the trip status of the LPD fan. This method returns the current trip status for the fan. | def fMu7(YKHO):
return YKHO.__fan_trip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO._call_txtrader_api('status', {})",
"def Zwxm(YKHO):\n jGRS = NcoE.JLinkRTTerminalStatus()\n Ylbp = YKHO.rtt_control(aVkO.JLinkRTTCommand.GETSTAT, jGRS)\n return jGRS",
"def Mt61(YKHO):\n return YKHO._get('tower_status_radiant')",
"def CHRo(YKHO):\n return YKHO.... | [
"0.6106526",
"0.5904394",
"0.58148515",
"0.57734865",
"0.5763699",
"0.5744903",
"0.5744903",
"0.5744903",
"0.5668974",
"0.56448084",
"0.56333447",
"0.5580424",
"0.5571215",
"0.5542159",
"0.5517895",
"0.55157804",
"0.5507095",
"0.5469302",
"0.54673374",
"0.5454011",
"0.5439461... | 0.6499379 | 0 |
Get the mode of the PSCU fan sensor. This method returns the descriptive mode for the PSCU fan sensor, i.e. whether the sensor channel has an over or underspeed trip condition. | def U4MO(YKHO):
return YKHO.__fan_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKB7(YKHO):\n if YKHO.ac.status is None:\n vzeF.debug(f'fan_mode: status is None, returning None')\n return None\n if YKHO.ac.status.is_on:\n j4NM = YKHO.ac.status.fan_speed\n BWXx = YKHO.FAN_MODE_MAPPING[j4NM]\n vzeF.debug(f'fan_mode: returning {BWXx} (derived from {j4... | [
"0.66779983",
"0.6605676",
"0.6571489",
"0.6451561",
"0.64052165",
"0.64052165",
"0.6262405",
"0.6248662",
"0.62308246",
"0.622066",
"0.62123716",
"0.6159187",
"0.6139501",
"0.61391354",
"0.6051699",
"0.60289264",
"0.602132",
"0.60198283",
"0.60198283",
"0.6008048",
"0.599433... | 0.59711814 | 23 |
Get the value of the detector position sensor. This method returns the value of the the potentiometer reading the position of the quadrant motion system. The value is returned as the transverse opening of the quadrant assembly (i.e. width of the beam pipe hole) in mm, and is signed according the which direction the qua... | def Iuzb(YKHO):
return YKHO.__position | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO):\n return YKHO.gripper_io.get_signal_value('position_response_m')",
"def Zmkp(YKHO) -> float:\n return YKHO.points[0, 0]",
"def oeNL(YKHO):\n return YKHO.info['value']",
"def Iuzb(YKHO, jDK_):\n if not YKHO.enabled:\n return\n YKHO.send_cmd(jDK_, ' PRINT POS')\n return... | [
"0.6499765",
"0.6244995",
"0.62182236",
"0.6211893",
"0.6199194",
"0.6156853",
"0.61390984",
"0.6059281",
"0.6050055",
"0.60232127",
"0.60202426",
"0.59987414",
"0.5997968",
"0.59887207",
"0.5987107",
"0.5965882",
"0.5933028",
"0.59176725",
"0.5907492",
"0.59013975",
"0.58945... | 0.58293843 | 24 |
Get the value of the detector position sensor. This method returns the raw value of the the potentiometer reading the position of the quadrant motion system in volts. | def uKNU(YKHO):
return YKHO.__position_raw * O93g.POSITION_VREF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO):\n return YKHO.gripper_io.get_signal_value('position_response_m')",
"def Zmkp(YKHO) -> float:\n return YKHO.points[0, 0]",
"def JF3C(YKHO):\n if YKHO.__trigger == PQkn.GET_RAW_VALUE_TRIGGER_READ:\n YKHO.read_and_update_angle()\n return YKHO.__value",
"def Zmkp(YKHO):\n re... | [
"0.66917604",
"0.66353357",
"0.6573353",
"0.65510505",
"0.64852536",
"0.6431689",
"0.64191043",
"0.6405085",
"0.6327795",
"0.6326155",
"0.6279467",
"0.6244024",
"0.6231811",
"0.6214315",
"0.61941326",
"0.6164615",
"0.6162203",
"0.6154358",
"0.61541116",
"0.6141101",
"0.609765... | 0.7113796 | 0 |
Get the status indicating all outputs are enabled. This method returns a status indicating if all PSCU quad outputs are enabled, which is primarily beneficial to clients determining the next action for an enable/disable all command. | def dP2v(YKHO):
return YKHO.__all_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uDHU(YKHO, zF0X=False):\n if zF0X:\n etR_ = str(1)\n else:\n etR_ = str(0)\n xMOH = 'OP' + YKHO.output + ' ' + etR_\n return YKHO.scpi_comm(xMOH)",
"def Alet(YKHO):\n return YKHO._enable_output_timers",
"def etR_(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'enabled')... | [
"0.63318473",
"0.6062037",
"0.59167504",
"0.57470953",
"0.5690202",
"0.56397676",
"0.56291544",
"0.56291544",
"0.56291544",
"0.56291544",
"0.562445",
"0.56214845",
"0.55915815",
"0.5533944",
"0.5523949",
"0.55163527",
"0.5492622",
"0.5450991",
"0.5423981",
"0.5394696",
"0.536... | 0.66012895 | 0 |
Get the status of the PSCU trace interlock. This method returns the global status of the the trace interlock, i.e. if all trace channels are connected. | def B9V8(YKHO):
return YKHO.__sensor_states[4] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k9NL(YKHO):\n dIOe = YKHO.sysAdminClient.getOverallStatus()\n if not dIOe['OK']:\n return dIOe\n K5y8 = {'Down': set(), 'Run': set(), 'All': set()}\n ZaQh = dIOe['Value']\n for Bmle in ZaQh.values():\n for Oz1B, YiHI in Bmle.items():\n for QOyM, uxME in YiHI.items():\n ... | [
"0.6609643",
"0.6604502",
"0.6590178",
"0.6486877",
"0.6318233",
"0.6191702",
"0.616195",
"0.6100896",
"0.6099413",
"0.6073806",
"0.6047906",
"0.60286677",
"0.59919894",
"0.5988731",
"0.5974578",
"0.5968148",
"0.5943095",
"0.5917911",
"0.59035766",
"0.5876717",
"0.58708936",
... | 0.60929 | 9 |
Get the status of the PSCU pump flow rate interlock. This method returns the global status of the the pump flow rate interlock, i.e. if the pump flow rate is within the setpoint. | def j29d(YKHO):
return YKHO.__sensor_states[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hz_K(YKHO):\n YKHO.__param_lock.acquire()\n jGRS = YKHO.__status\n YKHO.__param_lock.release()\n return jGRS",
"def Opi4(Emd4):\n from sauna.plugins.base import Plugin\n from sauna import check_results_lock, check_results\n\n def ZgA7(roY4, hm_4):\n if hm_4.status > Plugin.STATUS_... | [
"0.5893936",
"0.58394295",
"0.5674568",
"0.5626419",
"0.56112814",
"0.548342",
"0.5471858",
"0.5341187",
"0.5337249",
"0.52974886",
"0.5295806",
"0.5290191",
"0.52844673",
"0.5277754",
"0.5258552",
"0.52553296",
"0.52544594",
"0.52519935",
"0.5230953",
"0.52274615",
"0.522746... | 0.5886242 | 1 |
Get the state of all latch conditions. This method returns the state of all PSCU latch conditions as a list, and is provided as a convenience for a client requested all latch states simultaneously. | def h1vl(YKHO):
return YKHO.__latched_states | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fqm3(YKHO):\n return YKHO._states",
"def By99(YKHO):\n return [LihS.getstate() for LihS in YKHO]",
"def K43E(YKHO):\n return YKHO._states",
"def K43E(YKHO) -> AzJI[wHLO, ...]:\n return YKHO.influence_graph.all_states()",
"def qYvF(YKHO):\n return YKHO.states",
"def s4IN():\n return ... | [
"0.63532126",
"0.62973446",
"0.6283887",
"0.60700035",
"0.6064103",
"0.5993309",
"0.5902092",
"0.58554345",
"0.57662356",
"0.57638675",
"0.57062113",
"0.57037646",
"0.56953377",
"0.5676021",
"0.5640589",
"0.5631779",
"0.56176436",
"0.559791",
"0.55902696",
"0.5572728",
"0.555... | 0.6419866 | 0 |
Get the quad output enable interval. This method returns the quad output enable interval, which is used to sequence quad outputs on at a fixed rate to avoid inrush. The enable interval is set as an argument at initialisation, i.e. passed in as an option. | def ssnq(YKHO):
return YKHO.quad_enable_interval | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOlW(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'interval')",
"def VOlW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'interval')",
"def VOlW(YKHO):\n return YKHO._base_interval",
"def aURx(YKHO):\n return YKHO._get_attribute('enableInterBurstGap')",
"def VOlW(YKHO):\n return ... | [
"0.5270692",
"0.50980353",
"0.5052618",
"0.4961107",
"0.49222577",
"0.48985997",
"0.48985997",
"0.48381558",
"0.4832875",
"0.47972283",
"0.4790101",
"0.4769833",
"0.47458735",
"0.47101486",
"0.46978402",
"0.46445128",
"0.45978653",
"0.45653793",
"0.45617053",
"0.45617053",
"0... | 0.7715069 | 0 |
Athena Check Table Exists | def jqye(YKHO):
BOjq = [{'alerts': True}]
YKHO.client.athena_client = bK5l(results=BOjq)
Aofo = YKHO.client.check_table_exists('unit-test')
lU6q(Aofo)
qc17 = 'unit-testing/{}'.format(qcWV.now().strftime('%Y/%m/%d'))
SjMt(YKHO.client.athena_results_key, qc17) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xfwN(GTA_):\n Aofo = s9UL(['show', GTA_], project='khan-academy', raise_exception=False)\n if 'Not found: Table' in Aofo:\n return False\n else:\n return True",
"def n2Bh(GTA_):\n xDcj = 'select * from ' + GTA_ + ' limit 1'\n N1p7 = UzPC.cursor()\n try:\n N1p7.execute(x... | [
"0.78950626",
"0.75242233",
"0.7483439",
"0.74502224",
"0.74276584",
"0.7388104",
"0.7325162",
"0.7325008",
"0.731394",
"0.72840965",
"0.7273613",
"0.72478545",
"0.7212236",
"0.72120684",
"0.71738285",
"0.7146885",
"0.71149033",
"0.70920384",
"0.70784867",
"0.7037724",
"0.697... | 0.8144129 | 0 |
Athena Check Table Exists Does Not Exist | def kGsa(YKHO, Rxj2):
BOjq = None
YKHO.client.athena_client = bK5l(results=BOjq)
Aofo = YKHO.client.check_table_exists('unit-test')
LNHv(Aofo)
lU6q(Rxj2.info.called) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqye(YKHO):\n BOjq = [{'alerts': True}]\n YKHO.client.athena_client = bK5l(results=BOjq)\n Aofo = YKHO.client.check_table_exists('unit-test')\n lU6q(Aofo)\n qc17 = 'unit-testing/{}'.format(qcWV.now().strftime('%Y/%m/%d'))\n SjMt(YKHO.client.athena_results_key, qc17)",
"def xfwN(GTA_):\n ... | [
"0.7831761",
"0.7495995",
"0.7200502",
"0.69937456",
"0.69843477",
"0.6978527",
"0.6977601",
"0.6946335",
"0.6802026",
"0.6790241",
"0.67316025",
"0.6725015",
"0.6707689",
"0.6679975",
"0.6675516",
"0.6648596",
"0.66449493",
"0.6626164",
"0.6625865",
"0.65981233",
"0.65798676... | 0.76431286 | 1 |
Return the iterator itself. | def Vs4Q(YKHO):
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return YKHO._next()",
"def Vs4Q(YKHO):\n return YKHO._next()",
"def Vs4Q(YKHO):\n return YKHO._next()",
"def Vs4Q(YKHO):\n return YKHO.next()",
"def UDAb(YKHO):\n return next(YKHO.iterator)",
"def UDAb(YKHO):\n return next(YKHO.iter)",
"def Vs4Q(YKHO):\n YKHO._fir... | [
"0.83180934",
"0.83180934",
"0.83180934",
"0.8292486",
"0.82784235",
"0.8137699",
"0.80929476",
"0.7753991",
"0.75937486",
"0.75595355",
"0.7553744",
"0.75401896",
"0.75303805",
"0.75184304",
"0.7513298",
"0.74911255",
"0.74601203",
"0.7398065",
"0.7390838",
"0.7390838",
"0.7... | 0.7561671 | 25 |
this function converts a 2d numpy representation of a grayscale image to a 3d numpy representation of grayscale image | def JLtm(nJpj):
assert nJpj.ndim == 2
LNo8 = oyIN.stack([nJpj, nJpj, nJpj], axis=-1).astype(oyIN.uint8)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IeP5(LNo8: np.array) -> oyIN.array:\n assert len(LNo8.shape) == 3 and LNo8.shape[2] == 3, 'Image must be m x n x 3 dimensional RGB array'\n return 0.2989 * LNo8[:, :, 0] + 0.587 * LNo8[:, :, 1] + 0.114 * LNo8[:, :, 2]",
"def psm6(pKvt):\n pKvt = pKvt.numpy().transpose((1, 2, 0))\n pKvt = (pKvt * ... | [
"0.6746588",
"0.6721324",
"0.6604058",
"0.6575361",
"0.6502147",
"0.6484711",
"0.64144367",
"0.635522",
"0.633038",
"0.63149244",
"0.6279397",
"0.6265919",
"0.619517",
"0.61936826",
"0.6188253",
"0.6175438",
"0.6173842",
"0.6145597",
"0.6131233",
"0.61045206",
"0.6094718",
... | 0.56813407 | 98 |
This function is to get the color distribution of the image | def PB2_(LNo8, eQm_, hnvo, WEG_):
LNo8 = XJRE(LNo8 / 255.0)
LNo8[:, :, 0] = LNo8[:, :, 0] * 360
LNo8[:, :, 0] = oyIN.floor(LNo8[:, :, 0] / eQm_)
LNo8[:, :, 1] = oyIN.floor(LNo8[:, :, 1] * 100 / hnvo)
LNo8[:, :, 2] = oyIN.floor(LNo8[:, :, 2] * 100 / WEG_)
qfpW = [tuple(LNo8[YRbF, r845, :]) for YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGRB(YKHO, LNo8, yokr, Zf3L):\n aPd6 = []\n ywwl = len(yokr)\n for YRbF in range(ywwl):\n aPd6.append(LNo8[yokr[YRbF][1], yokr[YRbF][0]])\n jGXT = oyIN.array(aPd6)\n QzFq, Pyrc = oyIN.histogramdd(jGXT, bins=Zf3L, range=((0, 255), (0, 255), (0, 255)))\n return QzFq / oyIN.linalg.norm(Qz... | [
"0.77610314",
"0.66893625",
"0.66651684",
"0.6619138",
"0.6619138",
"0.66065186",
"0.65624034",
"0.6525471",
"0.6519547",
"0.6446847",
"0.6403581",
"0.64008254",
"0.6332783",
"0.6327807",
"0.63175243",
"0.6307054",
"0.63022804",
"0.62848115",
"0.6281426",
"0.6280157",
"0.6250... | 0.6640783 | 3 |
Create the CNNbased VGGVox network. | def kqp5(QgIH, mWFP='vggvox'):
C3ST = ZylS.keras.Sequential(name=mWFP)
C3ST.add(ZylS.keras.layers.Conv2D(96, (7, 7), strides=(2, 2), padding='valid', kernel_regularizer=ZylS.keras.regularizers.L2(0.0005), name=f'{mWFP}_conv1'))
C3ST.add(ZylS.keras.layers.BatchNormalization())
C3ST.add(ZylS.keras.layers.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GnWp(jTqs):\n g4y1 = ZylS.keras.layers.Input(shape=(akap, eebS, zdDD))\n WKvO = g4y1\n WKvO = ZylS.keras.applications.vgg16.preprocess_input(WKvO)\n a7Lb = ZylS.keras.applications.VGG16(input_shape=(akap, eebS, zdDD), weights='imagenet', include_top=False)\n a7Lb.trainable = False\n WKvO = a7... | [
"0.7322704",
"0.6791889",
"0.65735775",
"0.6552071",
"0.6527432",
"0.65044916",
"0.6386492",
"0.6235916",
"0.61602706",
"0.6134187",
"0.61276627",
"0.6113917",
"0.60892016",
"0.6071353",
"0.6034728",
"0.60309875",
"0.6021277",
"0.60104567",
"0.59990096",
"0.59714264",
"0.5953... | 0.6815435 | 1 |
It returns a random datetime for an action. The date is the same because the feature vectors represent one day. | def vpUu():
lO87 = 2010
x0eS = 1
CjKC = 1
ROt1 = tuKI.randint(0, 23)
yVtz = tuKI.randint(0, 59)
CsFy = tuKI.randint(0, 59)
YbnU = qcWV(lO87, x0eS, CjKC, ROt1, yVtz, CsFy)
return YbnU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzrO():\n tuKI.seed(ITS7.time())\n Csk6 = tuKI.randint(1, int(ITS7.time()))\n return f'({str(qcWV.date.fromtimestamp(Csk6).strftime('%Y-%m-%d'))}): '",
"def Gjqr():\n return oyIN.random.randint(0, hJ4l)",
"def DB8m(pw_q):\n qtWj = qcWV.fromtimestamp(0)\n tQYJ = pw_q - qtWj\n LSh8 = int... | [
"0.67627794",
"0.6414378",
"0.63613445",
"0.6243414",
"0.6182269",
"0.6135912",
"0.61177224",
"0.61069715",
"0.6046192",
"0.60307497",
"0.60301226",
"0.6001211",
"0.59846056",
"0.5977574",
"0.5951338",
"0.5926349",
"0.5904979",
"0.59030706",
"0.59013766",
"0.59011006",
"0.590... | 0.7744575 | 0 |
It returns a random dictionary representing an action. The dictionary contains the features used in the feature vector. This function is used for generating the individuals. | def XeOP():
XeOP = {}
XeOP['type'] = tuKI.choice(xASv)
XeOP['date'] = vpUu()
if XeOP['type'] == 'file':
XeOP['to_removable_media'] = tuKI.choice([True, False])
XeOP['from_removable_media'] = tuKI.choice([True, False])
elif XeOP['type'] == 'email':
XeOP['activity'] = tuKI.choi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udld(vHPW, rNYq):\n XeOP = {}\n for mWFP, Cqok in vHPW.items():\n if mWFP == 'Index':\n BWXx = oyIN.random.randint(rNYq['n_edge'])\n elif Cqok.dtype in (oyIN.int32, oyIN.int64, int):\n BWXx = oyIN.random.randint(Cqok.minimum, Cqok.maximum + 1)\n else:\n ... | [
"0.7402817",
"0.6642857",
"0.6581579",
"0.6578079",
"0.6541414",
"0.65054214",
"0.6486383",
"0.6444103",
"0.6410835",
"0.6410835",
"0.6379502",
"0.63443136",
"0.6310342",
"0.63013667",
"0.6275897",
"0.6275897",
"0.6275897",
"0.6275897",
"0.6275897",
"0.6270036",
"0.62359077",... | 0.6702051 | 1 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
gnPz.raiseNotDefined() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.0 | -1 |
Creates single line of points with random scatter | def wPRN(WKvO=oyIN.linspace(start=0, stop=50, num=200), VMex=2, BlB8=0, ARTs=3):
return oyIN.c_[WKvO, VMex * WKvO + BlB8 + oyIN.random.normal(loc=0, scale=3, size=len(WKvO))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Osgt():\n nOwj = oyIN.zeros((1000, 2))\n nOwj[:, 0] = oyIN.random.uniform(0, 10, 1000)\n t9ki = oyIN.random.normal(0.0, 2.0, 1000)\n nOwj[:, 1] = nOwj[:, 0] * 2.0 + 1.0 + t9ki\n y4kb = uy3w(nOwj, plot='scatter', order=0, label='Random')\n xL1S = uy3w(z8o0, plot='line', colour='black', order=1... | [
"0.70299983",
"0.7027782",
"0.6738985",
"0.6670886",
"0.6392107",
"0.6252341",
"0.6252147",
"0.62143725",
"0.61755455",
"0.61548096",
"0.61548096",
"0.61168134",
"0.61009663",
"0.60134035",
"0.60028386",
"0.5994055",
"0.5992758",
"0.5928514",
"0.59090966",
"0.59038293",
"0.58... | 0.7032951 | 0 |
Return the current learned max action for this layer. If there's a tie, pick randomly. | def u_ln(YKHO, rNYq):
GhTW = oyIN.argwhere(YKHO.q_table[rNYq] == oyIN.amax(YKHO.q_table[rNYq])).flatten()
return oyIN.random.choice(GhTW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r8IL(YKHO, QTBn):\n return tuKI.choice(YKHO.possible_actions)",
"def c5ut(YKHO):\n if YKHO.eval_mode:\n YKHO._log_values()\n _hZ2 = YKHO.epsilon_eval\n else:\n _hZ2 = YKHO.epsilon_fn(YKHO.epsilon_decay_period, YKHO.training_steps, YKHO.min_replay_history, YKHO.epsilon_train)\n ... | [
"0.75688136",
"0.7414877",
"0.7309198",
"0.7180425",
"0.715837",
"0.71217954",
"0.7120357",
"0.71075594",
"0.70072424",
"0.6957295",
"0.6916205",
"0.68773335",
"0.68628496",
"0.6857883",
"0.68274564",
"0.6812019",
"0.6797898",
"0.6796421",
"0.6794801",
"0.6769139",
"0.6757414... | 0.6491383 | 55 |
Adds trajectory data to the replay buffer as an experience tuple. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
YKHO.replay_buffer.append([QTBn, XeOP, vOGg, rxHc, _ins]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)",
"def ccp5(YKHO, KCHu, jzdc, Mkmy, a1PO, Nqp_):\n YKHO.replay_buffer.add(KCHu, jzdc, Mkmy, a1PO, Nqp_)",
"def ilp5(YKHO, XeOP, QTBn, vOGg, f9TP):\n YKHO.replay_buffer.add_experience(XeOP, QTBn, vOGg, f9TP)",
"def SStx(YKHO, GsKL: Experience) -> None:... | [
"0.7146182",
"0.6984555",
"0.6958818",
"0.6886315",
"0.68080366",
"0.68048733",
"0.63214",
"0.6320373",
"0.6175384",
"0.61359966",
"0.60723585",
"0.60425645",
"0.6015589",
"0.5782508",
"0.56889117",
"0.56476986",
"0.5636533",
"0.5600057",
"0.55849326",
"0.55462646",
"0.553728... | 0.59499305 | 13 |
Assumes that the binary tree rooted at Left(i) and Right(i) are maxheaps but that A[i] may be smaller than its children. Maxheapify lets A[i] float down in order to satisfy the maxheap property. | def oRZo(gGCN, YRbF):
cdj0 = LFlW(YRbF)
esTa = _tIi(YRbF)
if cdj0 < len(gGCN) and gGCN[cdj0] > gGCN[YRbF]:
CjUr = cdj0
else:
CjUr = YRbF
if esTa < len(gGCN) and gGCN[esTa] > gGCN[CjUr]:
CjUr = esTa
if CjUr != YRbF:
b3SJ(gGCN, YRbF, CjUr)
oRZo(gGCN, CjUr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mYoS(gGCN, YRbF):\n while True:\n cdj0 = LFlW(YRbF)\n esTa = _tIi(YRbF)\n CjUr = YRbF\n if cdj0 < len(gGCN) and gGCN[cdj0] > gGCN[YRbF]:\n CjUr = cdj0\n if esTa < len(gGCN) and gGCN[esTa] > gGCN[CjUr]:\n CjUr = esTa\n if CjUr == YRbF:\n ... | [
"0.7772092",
"0.77652186",
"0.77652186",
"0.7668517",
"0.7623644",
"0.76188666",
"0.7618111",
"0.7618111",
"0.76124156",
"0.748617",
"0.74184746",
"0.739765",
"0.7358091",
"0.7290106",
"0.72340876",
"0.72198653",
"0.7152778",
"0.71482074",
"0.70296985",
"0.7029596",
"0.699684... | 0.7668567 | 3 |
Assumes that the binary tree rooted at Left(i) and Right(i) are maxheaps but that A[i] may be smaller than its children. Maxheapify lets A[i] float down in order to satisfy the maxheap property. | def mYoS(gGCN, YRbF):
while True:
cdj0 = LFlW(YRbF)
esTa = _tIi(YRbF)
CjUr = YRbF
if cdj0 < len(gGCN) and gGCN[cdj0] > gGCN[YRbF]:
CjUr = cdj0
if esTa < len(gGCN) and gGCN[esTa] > gGCN[CjUr]:
CjUr = esTa
if CjUr == YRbF:
return
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRZo(YKHO, k0lF, YRbF):\n LFlW = 2 * YRbF + 1\n _tIi = 2 * YRbF + 2\n CjUr = YRbF\n if LFlW < len(k0lF) and k0lF[LFlW] > k0lF[CjUr]:\n CjUr = LFlW\n if _tIi < len(k0lF) and k0lF[_tIi] > k0lF[CjUr]:\n CjUr = _tIi\n if CjUr != YRbF:\n k0lF[YRbF], k0lF[CjUr] = (k0lF[CjUr], k... | [
"0.77652186",
"0.77652186",
"0.7668567",
"0.7668517",
"0.7623644",
"0.76188666",
"0.7618111",
"0.7618111",
"0.76124156",
"0.748617",
"0.74184746",
"0.739765",
"0.7358091",
"0.7290106",
"0.72340876",
"0.72198653",
"0.7152778",
"0.71482074",
"0.70296985",
"0.7029596",
"0.699684... | 0.7772092 | 0 |
Creating a test pandas DataFrame for the unittest suite | def HcWr():
Dmme = rLdf.DataFrame({'id': [YRbF for YRbF in range(1, 1001)], 'member_id': [10 * YRbF for YRbF in range(1, 1001)]})
Dmme['na_col'] = oyIN.nan
Dmme['id_na'] = Dmme.id
Dmme.loc[1:3, 'id_na'] = oyIN.nan
Dmme['constant_col'] = 'constant'
Dmme['constant_col_num'] = 0
Dmme['character... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_tc(YKHO):\n YKHO.insert()\n nPrm = YKHO.tbl.select()\n nPrm.index.name = None\n aS9G = TQJD.create(':memory:', 'Foo_2', nPrm, verbose=True, primary_key='id', autoincrement=True)\n YKHO.check(YKHO.idata, aS9G.select())",
"def cm5F(YKHO):\n CAjq()\n bOBl = vXOu()\n YKHO.assertIs(type(... | [
"0.7318057",
"0.7269529",
"0.706281",
"0.7061761",
"0.69802266",
"0.6833746",
"0.67476183",
"0.6718155",
"0.66113913",
"0.6603952",
"0.6567888",
"0.65306455",
"0.6464041",
"0.6457677",
"0.6276743",
"0.62649304",
"0.62649304",
"0.6251305",
"0.6246706",
"0.6236921",
"0.6235844"... | 0.56997293 | 90 |
Compute W X + b and (W X + b)^2, where X is the input data, W is the coefficient of lr, and b is the interception | def GQj7(YKHO, XVxc, vAyk, uqnJ, kiwv=-1):
lnPd = YKHO.compute_wx(XVxc, vAyk, uqnJ)
kKZz = YKHO.encrypted_calculator[kiwv].encrypt(lnPd)
kHPd = lnPd.mapValues(lambda Ty9i: oyIN.square(Ty9i))
Y_Dq = YKHO.encrypted_calculator[kiwv].encrypt(kHPd)
PrLV = kKZz.join(Y_Dq, lambda lnPd, kHPd: (lnPd, kHPd))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lh6Q(EcVT, yzQ0, Fg_i):\n return tiDt.matmul(EcVT, yzQ0) + Fg_i",
"def Lh6Q(EcVT, yzQ0, Fg_i):\n return ht2j.matmul(EcVT, yzQ0) + Fg_i",
"def KVH6(YKHO, ubJc, w_6T, L_zF, Q3bO):\n YKHO.inputs = [ubJc, w_6T, L_zF, Q3bO]\n rlvg = oyIN.asarray([w_6T, L_zF]).T\n return rlvg.dot(ubJc) + Q3bO",
... | [
"0.7373504",
"0.71447337",
"0.6927581",
"0.69215405",
"0.69199157",
"0.687854",
"0.6832769",
"0.68310237",
"0.68173206",
"0.6807544",
"0.6779935",
"0.6755962",
"0.67552346",
"0.6660506",
"0.6654519",
"0.6599179",
"0.65974444",
"0.6589002",
"0.65668917",
"0.6556083",
"0.651290... | 0.0 | -1 |
Wrapper for tensorflow.keras.losses.categorical_crossentropy for unified interface with selfguided earth mover distance loss. | def CqbS(**B2fa) -> YrBT:
return KQC9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Trm1(Y8eF, aMgO):\n NszA = ZylS.keras.losses.categorical_crossentropy(Y8eF, aMgO, from_logits=True)\n return NszA",
"def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)",
"def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)",
"... | [
"0.80598766",
"0.76704156",
"0.76704156",
"0.7292305",
"0.72176355",
"0.719906",
"0.7076324",
"0.7021379",
"0.6995996",
"0.6908647",
"0.6884818",
"0.6753981",
"0.67477375",
"0.66915345",
"0.66791546",
"0.6649806",
"0.66247964",
"0.6568192",
"0.65657145",
"0.65216553",
"0.6482... | 0.7192498 | 6 |