query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Gets the privacy_password of this SnmpUser. Privacy password for the user. | def wbZp(YKHO):
return YKHO._privacy_password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AFDB(YKHO):\n return YKHO._password",
"def Oot7(YKHO):\n return YKHO._user_password_attribute",
"def AuKh(YKHO):\n return YKHO.__password",
"def AuKh(YKHO):\n return YKHO.password",
"def AFDB(YKHO):\n return YKHO.password",
"def AuKh(YKHO):\n return YKHO.decoded_password",
"def jT... | [
"0.7208752",
"0.71042955",
"0.70949435",
"0.7061177",
"0.7038057",
"0.70364684",
"0.6989157",
"0.69629896",
"0.6962381",
"0.6962381",
"0.6962381",
"0.6907357",
"0.68932986",
"0.68339825",
"0.6770214",
"0.6768344",
"0.6746994",
"0.6746994",
"0.6746994",
"0.6746994",
"0.6746994... | 0.8279306 | 0 |
Sets the privacy_password of this SnmpUser. Privacy password for the user. | def wbZp(YKHO, wbZp):
YKHO._privacy_password = wbZp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEql(YKHO, qEql):\n YKHO._is_privacy_password_set = qEql",
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def nCXD(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO._password = jTXt",
"d... | [
"0.66605204",
"0.6648179",
"0.65582365",
"0.6478908",
"0.64604753",
"0.6427379",
"0.64227456",
"0.63591224",
"0.63591224",
"0.6357019",
"0.6352838",
"0.634822",
"0.6335225",
"0.6312152",
"0.63083553",
"0.63033277",
"0.6293546",
"0.62838084",
"0.62838084",
"0.62838084",
"0.628... | 0.8336273 | 0 |
Gets the privacy_type of this SnmpUser. Privacy protocol for the user. | def XqN6(YKHO):
return YKHO._privacy_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZP0S(YKHO):\n return YKHO._user_type",
"def UW84(YKHO):\n return YKHO.system.privacyClass(YKHO)",
"def type(YKHO) -> h8nf['UserAuthenticationModePropertiesType']:\n return qe4Y.get(YKHO, 'type')",
"def xLCu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'private_key_type')",
"def b0Rm(Y... | [
"0.6847683",
"0.6626368",
"0.6373427",
"0.6160669",
"0.6127084",
"0.61071664",
"0.60800314",
"0.6020643",
"0.59771806",
"0.59703565",
"0.59410334",
"0.5940749",
"0.5940749",
"0.5903297",
"0.5891112",
"0.5876468",
"0.5875121",
"0.5850168",
"0.5850168",
"0.58226866",
"0.5815843... | 0.79097533 | 0 |
Sets the security_level of this SnmpUser. Security mechanism used for communication between agent and manager. | def KQxy(YKHO, KQxy):
BbPm = ['AuthPriv', 'NoAuthNoPriv', 'AuthNoPriv']
if KQxy not in BbPm:
raise ValueError('Invalid value for `security_level` ({0}), must be one of {1}'.format(KQxy, BbPm))
YKHO._security_level = KQxy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mi51(YKHO, Mi51):\n YKHO._security = Mi51",
"def RwS_(YKHO, RwS_):\n YKHO._security_settings = RwS_",
"def KQxy(YKHO):\n return YKHO._security_level",
"def XiXb(YKHO, XiXb):\n YKHO._security_security_class = XiXb",
"def cm0c(YKHO, cm0c):\n YKHO._security_user_id = cm0c",
"def cm0c(YKHO... | [
"0.6259533",
"0.614684",
"0.61413866",
"0.5786025",
"0.576343",
"0.576343",
"0.576343",
"0.576343",
"0.57366395",
"0.57366395",
"0.57366395",
"0.5657423",
"0.5605416",
"0.55381715",
"0.55381715",
"0.55380666",
"0.5493513",
"0.5410508",
"0.5397263",
"0.5395109",
"0.53913283",
... | 0.7451815 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.804493 | 87 |
Get the prject path for the current project | def EL0N(YKHO):
try:
O0al = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))
return O0al
except Exception:
raise Exception('Unable to get project path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EL0N() -> str:\n return str(GkAb(xAKo).parent.parent)",
"def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))",
"def EL0N(YKHO, B5PH) -> str:\n if Hy7s.path.isabs(YKHO._projects[B5PH]):\n return YKHO._projects[B5PH]\n return Hy7s.path.normpath(Hy7s.path.join... | [
"0.8269974",
"0.8230664",
"0.79700875",
"0.78983635",
"0.78145653",
"0.77844316",
"0.77416694",
"0.7705729",
"0.76891696",
"0.76891696",
"0.76071936",
"0.7606076",
"0.7584699",
"0.7574362",
"0.75680536",
"0.75389916",
"0.75337195",
"0.75193876",
"0.7518769",
"0.7506166",
"0.7... | 0.8249069 | 1 |
return index of value, 1 if not found | def UQ4p(YEnM, hkS8, BWXx, aBkf):
Artt = None
if sDSA(BWXx):
Artt = BWXx
elif aBkf(BWXx):
Artt = BWXx.guid
if Artt is None:
return -1
for d6pt, wEf2 in enumerate(getattr(YEnM, hkS8, [])):
if wEf2.guid == Artt:
return d6pt
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO, BWXx):\n for QyVM, wEf2 in enumerate(YKHO):\n if wEf2 == BWXx:\n return QyVM\n raise ValueError",
"def d6pt(YKHO, wEf2):\n for r845 in range(len(YKHO)):\n if YKHO[r845] == wEf2:\n return r845\n raise ValueError('value not in sequence')",
"def kS1Y(... | [
"0.8609022",
"0.81001157",
"0.8066798",
"0.8029444",
"0.7988372",
"0.7899721",
"0.7793113",
"0.7771052",
"0.7694922",
"0.7604187",
"0.75916666",
"0.75429386",
"0.7489059",
"0.7464119",
"0.74626696",
"0.7422073",
"0.7418235",
"0.7384353",
"0.73596156",
"0.7341382",
"0.733286",... | 0.0 | -1 |
Generate a random hidden layer. | def WgYu(YKHO, EcVT, LVAh=None):
EcVT = SOCJ(EcVT)
YKHO._generate_components(EcVT)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UuWr(YKHO, f65o=100):\n return oyIN.random.uniform(-1, 1, (f65o, YKHO.n_hidden)).astype(oyIN.float32)",
"def UuWr(YKHO, f65o):\n return oyIN.random.uniform(-1, 1, (f65o, YKHO.n_hidden)).astype(oyIN.float32)",
"def MP8d(YKHO, Ep8u, tuKI=False):\n if tuKI:\n return iQnE(ht2j.randn(YKHO.bi_mul... | [
"0.7431025",
"0.7355298",
"0.71737325",
"0.71195996",
"0.6813131",
"0.67667186",
"0.66897917",
"0.6621612",
"0.66021466",
"0.6570157",
"0.65046173",
"0.64669025",
"0.64494455",
"0.6446905",
"0.6422853",
"0.6405603",
"0.637932",
"0.636103",
"0.6341567",
"0.6332916",
"0.6275254... | 0.0 | -1 |
Get the state of the specified machine. | def b5bz(DWtd=xlCi.env.get('GUEST')):
mQiX = Yn3K.Popen(['VBoxManage', '-q', 'showvminfo', DWtd, '--machinereadable'], stdout=Yn3K.PIPE)
Aofo = filter(lambda WKvO: 'VMState="' in WKvO, mQiX.stdout.readlines()).pop()
return Aofo.split('"')[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO, begE: str):\n begE = YKHO._get_address(begE)\n return Hs_H.get_state(begE)",
"def b5bz(fwgd):\n mQiX = Yn3K.Popen(['VBoxManage', '-q', 'showvminfo', fwgd, '--machinereadable'], stdout=Yn3K.PIPE)\n Aofo = filter(lambda WKvO: 'VMState=\"' in WKvO, mQiX.stdout.readlines()).pop()\n retu... | [
"0.723951",
"0.6758168",
"0.6612698",
"0.65498155",
"0.65294486",
"0.6519647",
"0.64610404",
"0.6429047",
"0.636642",
"0.6359351",
"0.6312375",
"0.62700224",
"0.6264324",
"0.625266",
"0.62356937",
"0.62295073",
"0.62094384",
"0.61967605",
"0.61684483",
"0.6166948",
"0.6162241... | 0.0 | -1 |
Sets the product of this InventoryItemWithSkuLocaleGroupid. | def Lx3t(YKHO, Lx3t):
YKHO._product = Lx3t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSYR(YKHO, Lx3t):\n YKHO.addReference(Lx3t, 'orderitem_product')",
"def NkAK(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=jKi7.text_type, is_leaf=True, yang_name='product___', parent=YKHO, path_helper=YKHO._path_helpe... | [
"0.680666",
"0.6380565",
"0.63083655",
"0.6201658",
"0.6168545",
"0.6143474",
"0.5956687",
"0.5732313",
"0.5678115",
"0.5678115",
"0.5641247",
"0.56406933",
"0.56318533",
"0.562913",
"0.56129867",
"0.56052756",
"0.5594923",
"0.5578925",
"0.5567322",
"0.5558953",
"0.5538975",
... | 0.6425812 | 2 |
Sets the sku of this InventoryItemWithSkuLocaleGroupid. | def PXIM(YKHO, PXIM):
YKHO._sku = PXIM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO, PXIM):\n if PXIM is None:\n raise ValueError('Invalid value for `sku`, must not be `None`')\n YKHO._sku = PXIM",
"def PXIM(YKHO, PXIM):\n if PXIM is None:\n raise ValueError('Invalid value for `sku`, must not be `None`')\n YKHO._sku = PXIM",
"def PXIM(YKHO, PXIM):\n ... | [
"0.6754921",
"0.6754921",
"0.64929384",
"0.58014774",
"0.5537007",
"0.545176",
"0.5443153",
"0.52352875",
"0.50620335",
"0.48937798",
"0.4863152",
"0.4863152",
"0.4863152",
"0.48630223",
"0.48425776",
"0.48245785",
"0.48245785",
"0.4791616",
"0.4761672",
"0.47568733",
"0.4749... | 0.6886179 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 91 |
Constructor for the CreateUsageRequest class | def FIMM(YKHO, cTRz=None, JBZA=None, JgEM=None, Wxnj=None, uOe2=None, Z5kt=None):
YKHO.quantity = cTRz
YKHO.description = JBZA
YKHO.used_at = fPb2.RFC3339DateTime(JgEM) if JgEM else None
YKHO.code = Wxnj
YKHO.group = uOe2
YKHO.amount = Z5kt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, QePW: pulumi.Input[str], dDGN: Optional[pulumi.Input[Mapping[str, pulumi.Input[Sequence[pulumi.Input[str]]]]]]=None, moMn: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, mJv3: Optional[pulumi.Input[str]]=None, PObu: Optional[pulumi.Input[str]]=None, crxw: Optional[pulumi.Input[Sequence... | [
"0.6442322",
"0.62543625",
"0.61993617",
"0.6162557",
"0.61454064",
"0.6142707",
"0.6134638",
"0.61249644",
"0.61131185",
"0.6105148",
"0.6061861",
"0.60352224",
"0.6034758",
"0.60003155",
"0.5979074",
"0.59577185",
"0.5908564",
"0.59066033",
"0.5902492",
"0.5897073",
"0.5896... | 0.60031605 | 13 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
cTRz = cmPJ.get('quantity')
JBZA = cmPJ.get('description')
JgEM = fPb2.RFC3339DateTime.from_value(cmPJ.get('used_at')).datetime if cmPJ.get('used_at') else None
Wxnj = cmPJ.get('code')
uOe2 = cmPJ.get('group')
Z5kt = cmPJ.get('amount... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Similar to np.random.normal, but makes a list of (lists of...) 1d numpy arrays, rather than a 2d/3d/etc. numpy array. This is so that the pythonksc interpreter treats these as Vec (Vec Float), where size(v) is an int, rather than Tensor 2 Float, where size(v) is a (Tuple int int). | def ZioK(exwG, Ty9i, Rv0k):
if len(Rv0k) == 1:
return oyIN.random.normal(exwG, Ty9i, Rv0k)
else:
return [ZioK(exwG, Ty9i, Rv0k[1:]) for bGrB in range(Rv0k[0])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBEb(ROpF, t3eI, NXpY=0.01):\n if type(ROpF[0]) is tuple:\n BLg0 = (ROpF[1][0], ROpF[0][0]) + ROpF[1][1:]\n else:\n BLg0 = ROpF\n return (NXpY * t3eI.randn(*BLg0)).astype('float32')",
"def plg0(tpio):\n Xjgr = []\n for YRbF in range(tpio):\n Xjgr.append(tuKI())\n return... | [
"0.6866925",
"0.6780401",
"0.67290473",
"0.67096806",
"0.6646985",
"0.65241313",
"0.6503895",
"0.6486179",
"0.6479676",
"0.64782155",
"0.6466195",
"0.6457348",
"0.64216715",
"0.6359659",
"0.6355055",
"0.63334113",
"0.63300097",
"0.6308148",
"0.62628394",
"0.6202325",
"0.61958... | 0.6942322 | 0 |
Compute gradient descent for function x'Ax + b'x + c with A psd | def Iguv(k0lF, Fg_i, Z9rn, WKvO, yJiH):
Ro40 = oyIN.dot(k0lF, WKvO) + Fg_i
KsGv = [WKvO]
SQlv = WKvO + 2 * yJiH * oyIN.ones(2)
while pEuX.norm(WKvO - SQlv, 2) > yJiH:
SQlv = WKvO
UGGc = oyIN.dot(k0lF, Ro40)
Cwt5 = oyIN.dot(Ro40, Ro40) / oyIN.dot(Ro40, UGGc)
WKvO = WKvO - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjtL(NArs, WKvO, LVAh):\n yGTL, q7In, Nq1b, Z9rn, KMvS, RHJb = NArs\n IMih = YEmv(NArs, WKvO)\n exwG = len(WKvO)\n Tehj = oyIN.zeros(exwG)\n Tehj[0] = WKvO[0]\n for YRbF in Ni9Y(1, exwG):\n Tehj[YRbF] = WKvO[YRbF] + Nq1b * oyIN.sum(Tehj[:YRbF] * PFgR(YRbF, Z9rn) ** (-1 - q7In))\n Vq... | [
"0.7161138",
"0.7082675",
"0.7036613",
"0.6898495",
"0.6879303",
"0.6857994",
"0.6857604",
"0.68247163",
"0.67944753",
"0.67846644",
"0.6777416",
"0.6766896",
"0.67553675",
"0.67500865",
"0.6727582",
"0.6654278",
"0.66378456",
"0.66155046",
"0.6605324",
"0.66008955",
"0.65973... | 0.62616986 | 45 |
Applies embedding based on inputs tensor. | def pOv4(YKHO, Pha6: tf.Tensor=None, h6bD: tf.Tensor=None, blF9: tf.Tensor=None, ThNW: tf.Tensor=None, IedB=0, Y9ns: bool=False) -> ZylS.Tensor:
if Pha6 is None and ThNW is None:
raise ValueError('Need to provide either `input_ids` or `input_embeds`.')
if Pha6 is not None:
BYE1(Pha6, YKHO.config... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOv4(YKHO, g4y1):\n ZHfW = ZylS.to_float(ZylS.not_equal(g4y1, YKHO.pad_id))\n KTQ3 = ZylS.gather(YKHO.shared_weights, g4y1)\n KTQ3 *= ZylS.expand_dims(ZHfW, -1)\n KTQ3 *= YKHO.hidden_size ** 0.5\n return KTQ3",
"def KVH6(YKHO, g4y1: Tensor):\n K_dq, tsWk = g4y1.size()\n NDdP = YKHO.paddi... | [
"0.7541621",
"0.752424",
"0.7350945",
"0.7292502",
"0.7271864",
"0.7155778",
"0.70274293",
"0.7019986",
"0.6933723",
"0.68581724",
"0.6850693",
"0.6817476",
"0.68095237",
"0.6800471",
"0.6775464",
"0.67529774",
"0.67343336",
"0.6682216",
"0.666333",
"0.6615808",
"0.65927166",... | 0.6254062 | 47 |
Return True if there exist at least one set in card_list, False otherwise. Inefficient version, computes all the existing sets and verify whether this list is empty or not | def C0_S(UojN):
return len(zwnv(UojN)) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RgP6(UojN):\n if len(UojN) >= 21:\n return True\n for YRbF in range(len(UojN) - 2):\n for r845 in range(YRbF + 1, len(UojN) - 1):\n for G1Hx in range(r845 + 1, len(UojN)):\n if bIdP([UojN[YRbF], UojN[r845], UojN[G1Hx]]):\n return True\n return... | [
"0.83749336",
"0.8238872",
"0.6524628",
"0.6506504",
"0.6479195",
"0.6465171",
"0.6377017",
"0.6303137",
"0.62285644",
"0.62138075",
"0.61366916",
"0.6129494",
"0.61117864",
"0.6104017",
"0.60551924",
"0.6024581",
"0.5997594",
"0.5973939",
"0.5967259",
"0.59558284",
"0.595379... | 0.8949733 | 0 |
Creates the dictionary along with its word embeddings. Stores as a class attribute a ``torch.Tensor`` of size (dict_size, embedding_size) with the Word2Vec embeddings used in a ``torch.nn.Embedding`` layer. Only the first ``dict_size`` words (ordered by frequency) are stored. | def eLpg(YKHO, i0XC):
YKHO.logger.info('Creating dictionary...')
nPrm = YKHO._get_data(i0XC)
bovJ = {}
b0j5 = LZZ6.data.utils.get_tokenizer('basic_english')
S6Fl = FRUU.ProgressBar(max_value=len(nPrm['news/reuters'].keys()))
for YRbF, CjKC in enumerate(nPrm['news/reuters'].keys()):
oky6 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dsic(YKHO, jXxl, uMKX, rrBf=None):\n CQPE = jXxl if YKHO._algm == 'negative_sampling' else jXxl - 1\n HAzM = YKHO._embed_size * (2 * YKHO._window_size + 1) if YKHO._dm_concat else YKHO._embed_size\n with ZylS.variable_scope(rrBf, 'Embedding'):\n hlTV = ZylS.random_uniform([jXxl + uMKX, YKHO._em... | [
"0.7042864",
"0.69827324",
"0.6956694",
"0.69496554",
"0.6818394",
"0.6749537",
"0.67241186",
"0.67161095",
"0.670584",
"0.6681209",
"0.6670657",
"0.6622333",
"0.6552995",
"0.65487534",
"0.6532478",
"0.65216386",
"0.6500342",
"0.64603204",
"0.6453334",
"0.64507955",
"0.644748... | 0.61322486 | 57 |
Used to create a new Session. Expects the details of the Session in JSON format as part of the request body If no id is provided, an Id will be generated as part of the Session creation | def eLpg():
if not QePW.json:
eTsH(400, 'No request body provided!')
cuiw = mdJJ.create(QePW.json['date'], QePW.json['game_id'], QePW.json['id'] if 'id' in QePW.json else None)
if 'players' in QePW.json:
print('Found Players!')
j2d7.merge_all(cuiw.id, QePW.json['players'])
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, QePW):\n if 'game' not in QePW.data or 'session' not in QePW.data:\n raise sUXu('Missing parameter. Must contain both game and session parameters')\n QO8w = QePW.data['game']\n iiJX = QePW.data['session']\n if iiJX == '':\n raise sUXu('Session name is empty')\n try:\n ... | [
"0.7163147",
"0.694109",
"0.6897133",
"0.6812914",
"0.6759553",
"0.67334276",
"0.67245084",
"0.6704747",
"0.66508526",
"0.66113967",
"0.659862",
"0.659862",
"0.6584045",
"0.6544213",
"0.65348566",
"0.6526639",
"0.65041715",
"0.65016717",
"0.64900506",
"0.642616",
"0.64150244"... | 0.700414 | 1 |
Deletes the specified Session from the database | def PTpj(JkXK):
try:
jGRS = mdJJ.delete(JkXK)
if jGRS:
return ('', 200)
else:
return ('', 500)
except ValueError:
eTsH(404, 'Could not find Session with the provided id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qs2_(YKHO, cuiw):\n raise NotImplementedError()",
"def PTpj(YKHO, AcPe=None):\n KNWA = YKHO.__establish_rethinkdb()\n if AcPe is None:\n if YKHO.session_key is None:\n return\n AcPe = YKHO.session_key\n YKHO.table_handle.get(AcPe).delete().run(KNWA)",
"def qs2_(YKHO, Jk... | [
"0.825459",
"0.7746703",
"0.7734997",
"0.76206774",
"0.74214935",
"0.73982346",
"0.73696095",
"0.7361617",
"0.7247443",
"0.7223201",
"0.7206898",
"0.72018105",
"0.7153973",
"0.71482795",
"0.71434915",
"0.70973146",
"0.70754975",
"0.7033986",
"0.7027623",
"0.70255125",
"0.7024... | 0.7106427 | 15 |
Set up the Lutron Caseta binary_sensor platform. Adds occupancy groups from the Caseta bridge associated with the config_entry as binary_sensor entities. | async def async_setup_entry(ajET: HomeAssistant, PhL6: ConfigEntry, QEEk: AddEntitiesCallback) -> None:
nPrm: KTPL = ajET.data[XhbB][PhL6.entry_id]
eV_n = nPrm.bridge
U5uG = eV_n.occupancy_groups
QEEk((Adoe(FS6I, nPrm) for FS6I in U5uG.values())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_setup_entry(ajET: HomeAssistant, bTKY: ConfigEntry, QEEk: AddEntitiesCallback) -> None:\n S3vU = ajET.data[Sugg][bTKY.entry_id]\n dx0Q: list[xksa] = []\n for WTZD, U_VT in S3vU.data[LGXK].items():\n for JBZA in oBoq:\n if JBZA.key in U_VT:\n dx0Q.append(XMP... | [
"0.6170374",
"0.61245644",
"0.6100962",
"0.60993326",
"0.59884864",
"0.59775454",
"0.59577256",
"0.5897949",
"0.58460987",
"0.57392746",
"0.5683792",
"0.56521446",
"0.56448984",
"0.56094956",
"0.5582535",
"0.552684",
"0.552141",
"0.55129474",
"0.55121386",
"0.55034435",
"0.54... | 0.64752394 | 0 |
Return the device ID used for calling pylutron_caseta. | def jf3N(YKHO):
return YKHO._device['occupancy_group_id'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DJw5() -> str:\n pass",
"def jf3N(YKHO):\n return YKHO.unique_id",
"def jf3N(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_id')",
"def jf3N(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_id')",
"def ShR8(YKHO):\n return YKHO._device.ain",
"def DJw5(YKHO) -> str:\n return str(bytes(YK... | [
"0.71158373",
"0.7099549",
"0.70651114",
"0.70651114",
"0.69582033",
"0.6940335",
"0.6910784",
"0.687473",
"0.6803921",
"0.6803921",
"0.6789982",
"0.6784911",
"0.6784911",
"0.6783111",
"0.677928",
"0.67735016",
"0.6767656",
"0.67631364",
"0.6754619",
"0.67163706",
"0.6691813"... | 0.0 | -1 |
Return the state attributes. | def TzCU(YKHO):
return {'device_id': YKHO.device_id} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143755",
"0.8802014",
"0.8795997",
"0.85616785",
"0.84978926",
"0.84978926",
"0.8403377",
"0.83848894",
"0.83840966",
"0.83661157",
"0.83661157",
"0.83661157",
"0.83661157",
"0.83661157",
"0.83652854",
"0.83652854",
"0.83652854",
"0.8357762",
"0.8335113",
"0.8335113",
"0.... | 0.0 | -1 |
(list of numbers) > int or None Return the index of the first negative number in a list if one exists, otherwise return nothing. | def KlrW(vC9B):
YRbF = 0
while YRbF + 1 < len(vC9B) and vC9B[YRbF] >= 0:
if vC9B[YRbF + 1] < 0:
return YRbF + 1
YRbF += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(list: list, pan_: int) -> h8nf[int]:\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None",
"def J8Yp(xYvp: list) -> int:\n S06t = []\n if xYvp[0] < 0 or xYvp[0] >= len(xYvp):\n return -1\n elif xYvp[-1] < 0 or xYvp[-1] >= len(xY... | [
"0.7153847",
"0.7067021",
"0.6970851",
"0.696358",
"0.691548",
"0.6889779",
"0.6889779",
"0.6872569",
"0.6865444",
"0.6752492",
"0.6738153",
"0.6733744",
"0.6727957",
"0.67094666",
"0.6667274",
"0.6654195",
"0.6622999",
"0.66053206",
"0.65700066",
"0.6568283",
"0.6561396",
... | 0.7286953 | 0 |
Identify section and position when given row,col coords for board | def OvAN(YKHO, WKvO, LVAh):
lKxE = {1: 1, 2: 1, 3: 1, 4: 4, 5: 4, 6: 4, 7: 7, 8: 7, 9: 7}
XWb6 = {1: 0, 2: 0, 3: 0, 4: 1, 5: 1, 6: 1, 7: 2, 8: 2, 9: 2}
bx96 = {1: 1, 2: 4, 3: 7, 4: 1, 5: 4, 6: 7, 7: 1, 8: 4, 9: 7}
bmfT = {1: 0, 2: 1, 3: 2, 4: 0, 5: 1, 6: 2, 7: 0, 8: 1, 9: 2}
return [lKxE[WKvO] + XWb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1uc(YKHO, iBIi):\n YRbF, r845 = oyIN.where(iBIi == YKHO.id)\n YRbF = int(YRbF)\n r845 = int(r845)\n return (YRbF, r845)",
"def hhcg(YKHO, rdlD, fvDH):\n WKvO = fvDH * YKHO.resolution + 0.5 * YKHO.resolution + YKHO.origin_x\n LVAh = rdlD * YKHO.resolution + 0.5 * YKHO.resolution + YKHO.orig... | [
"0.7013423",
"0.7004959",
"0.68328685",
"0.68198186",
"0.68198186",
"0.681963",
"0.681963",
"0.68005294",
"0.68005294",
"0.68005294",
"0.67836833",
"0.66873085",
"0.6673389",
"0.666929",
"0.6625597",
"0.6620366",
"0.6574463",
"0.6569159",
"0.6558091",
"0.6538818",
"0.6530649"... | 0.0 | -1 |
Return list of files in folder with extension. | def M62D(xtX7, CBZq=None, npUW=None):
if isinstance(CBZq, str):
CBZq = [CBZq]
for Fst3 in CBZq:
if not Fst3.startswith('.'):
raise ValueError("valid extensions start with a '.'")
CBZq = set([aTqo.rsplit('.', 1)[1] for aTqo in CBZq])
if not npUW:
npUW = qFF3().open_sft... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IECG(xtX7, Fst3):\n return [f'{xtX7}/{Ux0P}' for Ux0P in Hy7s.listdir(xtX7) if Ux0P.endswith(f'.{Fst3}')]",
"def iAqQ(xtX7, Fst3='.sdf'):\n MVVZ = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(xtX7):\n for dir in AQSv:\n pGQh = Hy7s.path.join(tk5Y, dir)\n for Ux0P in RRlC:\n ... | [
"0.86856437",
"0.8525866",
"0.8468317",
"0.84049696",
"0.8385557",
"0.8342212",
"0.83418465",
"0.8280695",
"0.8248651",
"0.824706",
"0.8213445",
"0.8205368",
"0.8205368",
"0.81799746",
"0.8168101",
"0.81186",
"0.8103406",
"0.8054626",
"0.8040765",
"0.80234474",
"0.79954773",
... | 0.0 | -1 |
Return list of files in folder with extension. | def lVmA(xtX7, CBZq=None, npUW=None):
if isinstance(CBZq, str):
CBZq = [CBZq]
for Fst3 in CBZq:
if not Fst3.startswith('.'):
raise ValueError("valid extensions start with a '.'")
CBZq = set([aTqo.rsplit('.', 1)[1] for aTqo in CBZq])
if not npUW:
npUW = qFF3().open_sft... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IECG(xtX7, Fst3):\n return [f'{xtX7}/{Ux0P}' for Ux0P in Hy7s.listdir(xtX7) if Ux0P.endswith(f'.{Fst3}')]",
"def iAqQ(xtX7, Fst3='.sdf'):\n MVVZ = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(xtX7):\n for dir in AQSv:\n pGQh = Hy7s.path.join(tk5Y, dir)\n for Ux0P in RRlC:\n ... | [
"0.86856437",
"0.8525866",
"0.8468317",
"0.84049696",
"0.8385557",
"0.8342212",
"0.83418465",
"0.8280695",
"0.8248651",
"0.824706",
"0.8213445",
"0.8205368",
"0.8205368",
"0.81799746",
"0.8168101",
"0.81186",
"0.8103406",
"0.8054626",
"0.8040765",
"0.80234474",
"0.79954773",
... | 0.0 | -1 |
Conversion for yes/no True/False. | def _J6_(BWXx):
if isinstance(BWXx, str):
if BWXx.lower() in ['yes', 'true', '1', u'yes', u'true', u'1']:
return True
else:
return False
elif isinstance(BWXx, bool):
return BWXx
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ve0U(WKvO):\n return 1 if WKvO == 'Yes' else 0",
"def ZzqV(YKHO):\n YKHO.assertEqual('Yes', MTBu(True))",
"def JiQe(BWXx):\n if BWXx is None:\n return None\n if isinstance(BWXx, bool):\n return BWXx\n elif isinstance(BWXx, str):\n if BWXx == 'no':\n return Fal... | [
"0.81981164",
"0.8066022",
"0.7662386",
"0.76203585",
"0.7557939",
"0.75471926",
"0.75360507",
"0.75155115",
"0.7502476",
"0.75003284",
"0.7471916",
"0.74715954",
"0.74329984",
"0.74057686",
"0.7386701",
"0.7367039",
"0.7358599",
"0.7338427",
"0.73213947",
"0.7281129",
"0.727... | 0.0 | -1 |
Sets the learning rate to the initial LR divided by 5 at 60th, 120th and 160th epochs | def e_63(K0do, qtWj):
tspZ = qIxc.lr * (0.2 ** int(qtWj >= 60) * 0.2 ** int(qtWj >= 120) * 0.2 ** int(qtWj >= 160))
if qIxc.tensorboard:
Fqw2('learning_rate', tspZ, qtWj)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, bYD2, qtWj):\n tspZ = bYD2\n if qtWj < 5:\n tspZ = (qtWj + 1) * bYD2 / 5\n else:\n if qtWj >= 160:\n tspZ /= 100\n if qtWj >= 180:\n tspZ /= 100\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def kVtO(YKHO, tspZ=0.1):\n YKHO... | [
"0.7710921",
"0.76946807",
"0.7666141",
"0.7658317",
"0.75749105",
"0.75468725",
"0.7531676",
"0.7530518",
"0.75117886",
"0.7493785",
"0.7492136",
"0.74782926",
"0.7459718",
"0.745852",
"0.74565005",
"0.7453796",
"0.74521524",
"0.7447882",
"0.74465084",
"0.7441672",
"0.743976... | 0.7183417 | 88 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
print('Output is : ', hlel)
print(hlel.shape)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
print(nvEb)
print(nvEb.shape)
YRbF = input()
nvEb = nvEb.t()
print('target', pan_.view(1, -1).expand_as(nvEb))
print... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003475",
"0.79748386",
"0.79730123",
"0.7941108",
"0.7864101",
"0.7804021",
"0.77081025",
"0.76225674",
"0.7593267",
"0.75617754",
"0.7519868",
"0.743003",
"0.74130684",
"0.73764634",
"0.7375376",
"0.73218805",
"0.72552085",
"0.72370315",
"0.72279894",
"0.7204584",
"0.713... | 0.0 | -1 |
Test client of the configured flask application. | def vmq2(a7bt, cJwE):
SCWY = WsL5.Flask('TestApplication')
na_E = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH']
SCWY.add_url_rule(rule=a7bt, endpoint='base', view_func=cJwE.view, methods=na_E)
SCWY.add_url_rule(rule=TDhU(a7bt, '<path:path>'), endpoint='routes', view_fu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0hE(P4t4: Flask):\n return P4t4.test_client()",
"def x0hE(P4t4: Flask) -> QRbk:\n return P4t4.test_client()",
"def x0hE() -> QRbk:\n P4t4.config['TESTING'] = True\n return P4t4.test_client()",
"def udfG() -> QRbk:\n return D4WS.test_client()",
"def x0hE():\n return P4t4.test_client()... | [
"0.8761464",
"0.8748244",
"0.8711774",
"0.85531694",
"0.84091455",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.83652014",
"0.8325616",
"0.81345373",
... | 0.6916644 | 60 |
Automatic constructor to build a PhysicsArm PhysicsArms are NodePaths (Panda nodes), so they can be put into the scene. | def FIMM(YKHO):
ZkTV.__init__(YKHO, 'physics arm')
YKHO.armHolder = YKHO.attachNewNode('arm holder')
YKHO.armModel = ZkTV('dummy model')
YKHO.comNode = ZkTV('center of mass')
YKHO.comNode.reparentTo(YKHO.armHolder)
try:
g6cf = DWkG.loadModel('models/smiley')
g6cf.setScale(0.15)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, uD0j: Optional[str]=None, J7kn: Optional[str]=None, h9Oe: Optional[dict]=None, tOA4: Optional[dict]=None, C7Pp: Optional[Callable]=None):\n super().__init__(C7Pp)\n YKHO.cmd = 'move-arm-joints'\n YKHO.left_arm_config: str = uD0j\n YKHO.right_arm_config: str = J7kn\n YKHO.left_arm_pose... | [
"0.6327288",
"0.61115617",
"0.6054868",
"0.5963227",
"0.5860905",
"0.5806012",
"0.5788113",
"0.5756838",
"0.57524055",
"0.57318217",
"0.57213426",
"0.5668393",
"0.5665636",
"0.56635714",
"0.5652331",
"0.5630901",
"0.56282103",
"0.5613952",
"0.5598825",
"0.5565682",
"0.5562931... | 0.738772 | 0 |
String representation of PDTNode. Returns string of distribution followed by string rep of children. | def zAg0(YKHO):
fkgf = str(YKHO._distribution) + '\n'
for aUGN in YKHO._children:
fkgf += str(aUGN)
return fkgf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nrxn(YKHO):\n vIwR = ''\n for mWFP, nPrm in sorted(YKHO.get_all_nodes().items()):\n vIwR += str(mWFP) + ' '\n vIwR += str(nPrm)\n vIwR += '\\n'\n return vIwR",
"def XEqL(YKHO):\n if YKHO.prob != 1:\n gM8l = YKHO.label + ':' + str(YKHO.prob)\n else:\n gM8l = Y... | [
"0.7004809",
"0.7003268",
"0.683808",
"0.6808467",
"0.6791056",
"0.6775351",
"0.6742245",
"0.66000396",
"0.65732205",
"0.6560196",
"0.65413696",
"0.65402627",
"0.6539801",
"0.65394765",
"0.6537038",
"0.6521192",
"0.65209246",
"0.6499302",
"0.64958346",
"0.6494405",
"0.6487011... | 0.7799117 | 0 |
Increment visit count if node is traversed to or traversed over. Also update self _max_node_visits if need be. | def jbmF(YKHO, Q6kx):
Q6kx._visits += 1
YKHO.update_max_node_visits(Q6kx._visits) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def giK1(YKHO, EI5i=1):\n\n def eHNT(Q6kx, EI5i=EI5i):\n Q6kx._num_nodes += EI5i\n YKHO._apply_upwards(eHNT)",
"def giK1(YKHO, EI5i=1):\n\n def eHNT(Q6kx, EI5i=EI5i):\n Q6kx._num_nodes += EI5i\n YKHO._apply_upwards(eHNT)",
"def EAdr(YKHO):\n if YKHO._count is None:\n raise V... | [
"0.67633885",
"0.67633885",
"0.6631294",
"0.6631294",
"0.66270775",
"0.6562467",
"0.65086925",
"0.6429115",
"0.6315987",
"0.6315987",
"0.62947696",
"0.6273507",
"0.6263232",
"0.6231212",
"0.618927",
"0.61420107",
"0.5980103",
"0.59543496",
"0.594923",
"0.5893198",
"0.5891501"... | 0.7181628 | 0 |
Increment use count if node is sampled from. Also update self _max_node_uses if need be. | def Orrw(YKHO, Q6kx):
Q6kx._uses += 1
YKHO.update_max_node_uses(Q6kx._uses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9ks(YKHO):\n for lJZH in YKHO.genes + YKHO.output_genes:\n if not lJZH.freezed:\n lJZH.used += 1",
"def d9ks(YKHO):\n for lJZH in YKHO.all_genes():\n if not lJZH.freezed:\n lJZH.used += 1",
"def HXSe(YKHO, dUWM):\n if dUWM > YKHO._max_node_uses:\n YKHO._... | [
"0.71600807",
"0.6875637",
"0.6739666",
"0.6739666",
"0.66216695",
"0.64698243",
"0.61501175",
"0.6144155",
"0.6069155",
"0.60436875",
"0.6013256",
"0.6013256",
"0.6006443",
"0.6006443",
"0.59950197",
"0.59934753",
"0.5895091",
"0.58660805",
"0.586137",
"0.5861148",
"0.583447... | 0.7913242 | 1 |
Increment visit count if node is traversed to or traversed over. Also update self _max_node_visits if need be. | def jbmF(YKHO, Q6kx):
Q6kx._visits += 1
YKHO.update_max_node_visits(Q6kx._visits) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def giK1(YKHO, EI5i=1):\n\n def eHNT(Q6kx, EI5i=EI5i):\n Q6kx._num_nodes += EI5i\n YKHO._apply_upwards(eHNT)",
"def giK1(YKHO, EI5i=1):\n\n def eHNT(Q6kx, EI5i=EI5i):\n Q6kx._num_nodes += EI5i\n YKHO._apply_upwards(eHNT)",
"def EAdr(YKHO):\n if YKHO._count is None:\n raise V... | [
"0.6760802",
"0.6760802",
"0.66288215",
"0.66288215",
"0.6625908",
"0.65593785",
"0.6506185",
"0.64287513",
"0.6317574",
"0.6317574",
"0.62918925",
"0.62711114",
"0.6260875",
"0.6229142",
"0.61875814",
"0.61382735",
"0.59781605",
"0.595231",
"0.5947019",
"0.5890417",
"0.58892... | 0.71823496 | 1 |
Increment use count if node is sampled from. Also update self _max_node_uses if need be. | def Orrw(YKHO, Q6kx):
Q6kx._uses += 1
YKHO.update_max_node_uses(Q6kx._uses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9ks(YKHO):\n for lJZH in YKHO.genes + YKHO.output_genes:\n if not lJZH.freezed:\n lJZH.used += 1",
"def d9ks(YKHO):\n for lJZH in YKHO.all_genes():\n if not lJZH.freezed:\n lJZH.used += 1",
"def HXSe(YKHO, dUWM):\n if dUWM > YKHO._max_node_uses:\n YKHO._... | [
"0.71599984",
"0.68751484",
"0.673559",
"0.673559",
"0.6622819",
"0.646897",
"0.61513466",
"0.614503",
"0.6070999",
"0.60425985",
"0.60123634",
"0.60123634",
"0.6004492",
"0.6004492",
"0.5996268",
"0.59955716",
"0.5897282",
"0.5865707",
"0.58622766",
"0.58611095",
"0.5834083"... | 0.7910008 | 0 |
Convert tensor list to python list, rounded to 0.2f | def TUUw(kdmR):
xl4Y = oyIN.around(oyIN.array(kdmR.tolist()), 2)
c6QI = list(xl4Y)
return c6QI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s18d(ZSoC):\n return ['{:0.2f}'.format(WKvO) for WKvO in ZSoC]",
"def c6Nl(hkxX):\n return ZylS.train.FeatureList(feature=[gKyq(Ty9i) for Ty9i in hkxX])",
"def udxq():\n return",
"def t_i1(hkxX):\n return ZylS.train.FeatureList(feature=[bPiq(Ty9i) for Ty9i in hkxX])",
"def t_i1(hkxX):\n ... | [
"0.6709384",
"0.6681523",
"0.6644937",
"0.6641298",
"0.6618222",
"0.6461785",
"0.64598817",
"0.64283985",
"0.6423497",
"0.64145124",
"0.6361558",
"0.63523895",
"0.63394177",
"0.6221792",
"0.62010574",
"0.6192342",
"0.61917907",
"0.618448",
"0.6181135",
"0.61773545",
"0.616225... | 0.65557456 | 5 |
Constructor which delegates most of the work to ``SequenceContentAttention.__init__``. | def FIMM(YKHO, Dv9Z, AIZ9, **B2fa):
YKHO.num_steps = AIZ9
super(TNo1, YKHO).__init__(Dv9Z, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n VQ6Z = qG0X.new_SequenceAnnotation(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except ONrU.Exception:\n YKHO.this = VQ6Z",
"def FIMM(YKHO, hGN5=None, **B2fa):\n YKHO.attributes = B2fa\n YKHO.contents = [hGN5] if hGN5 else []",
"def FIMM(YKHO, hGN5=None, **B2fa... | [
"0.66678065",
"0.6587097",
"0.6555817",
"0.6549592",
"0.65037763",
"0.6396838",
"0.6395902",
"0.6355142",
"0.6276768",
"0.6263936",
"0.622847",
"0.6205939",
"0.6201151",
"0.6173797",
"0.61195564",
"0.611871",
"0.6089164",
"0.60627186",
"0.6002351",
"0.59599787",
"0.5957245",
... | 0.62293047 | 10 |
Reset the stats to 0. | def BJld(YKHO):
with YKHO.mutex:
AnB6, STjM, HOo0 = (YKHO.dropped, YKHO.accepted, YKHO.accepted_lengths)
YKHO.dropped, YKHO.accepted, YKHO.accepted_lengths = (0, 0, 0)
return (AnB6, STjM, HOo0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJld(YKHO):\n YKHO._get_stats('reset')",
"def BJld(YKHO):\n YKHO.__stats = {}",
"def BJld(YKHO):\n YKHO.bottle_left = YKHO.st_settings.bottle_limit\n YKHO.score = 0\n YKHO.level = 1",
"def BJld(YKHO):\n YKHO.lives_left = YKHO.constants.lives_limit\n YKHO.time_left = YKHO.constants.ti... | [
"0.8611058",
"0.840528",
"0.8336663",
"0.822896",
"0.82099324",
"0.81996715",
"0.8190994",
"0.8183406",
"0.8136261",
"0.81186384",
"0.809217",
"0.8088468",
"0.8079196",
"0.80785483",
"0.80652195",
"0.8044774",
"0.80372185",
"0.80252767",
"0.80252767",
"0.8022161",
"0.79974264... | 0.0 | -1 |
Constructs a dictionary P with the name of all model parameters as keys. The values are tuples with the same length, with the parameter limits. | def jJZ_(nPrm, FYrf):
V6IE = dict()
mQYJ, y1e_, Br5Q, edvT = FYrf.dictkey_arrays
AiYL = list(PWgb([min(YRbF.astype(float)) if YRbF.ndim == 1 else [min(YRbF[r845].astype(float)) for r845 in range(len(YRbF))] for YRbF in [oyIN.array(mQYJ.pars_modelkeys), oyIN.array(y1e_.pars_modelkeys), oyIN.array(Br5Q.pars_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6Cc(mWFP, BWXx, vELP, PtQX):\n if len(mWFP) != len(vELP) or len(mWFP) != len(PtQX) or len(mWFP) != len(BWXx):\n print('Some limits are missing. %d parameteers with %d values, %d minima and %d maxima' % (len(mWFP), len(BWXx), len(vELP), len(PtQX)))\n return None\n SGPK = {}\n for xjUu, q... | [
"0.68794614",
"0.68328017",
"0.6767038",
"0.6710707",
"0.6700199",
"0.668614",
"0.6633425",
"0.660167",
"0.65922815",
"0.65446764",
"0.65427136",
"0.6530242",
"0.65078753",
"0.6507821",
"0.64836854",
"0.6479416",
"0.6455426",
"0.6401806",
"0.638608",
"0.6357281",
"0.6330914",... | 0.63848746 | 19 |
deserializes a json list represented as a string | def K3BH(zEKB):
if zEKB is None or len(zEKB) == 0 or zEKB == '[]':
return []
return qQXR.loads(zEKB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCT6(vIwR):\n return qQXR.loads(vIwR)",
"def ku9R(YKHO, vIwR):\n return vIwR.split(' ; ')",
"def wa2R(DumB):\n Z2eN = []\n try:\n for ZfUD in DumB:\n Z2eN.append(ZfUD.json())\n return Z2eN\n except AttributeError:\n raise YKln('Items in list need to have a jso... | [
"0.6893107",
"0.6783562",
"0.66311675",
"0.661703",
"0.6393852",
"0.6388488",
"0.6356004",
"0.63402987",
"0.63252395",
"0.6324154",
"0.6281977",
"0.62363374",
"0.61948025",
"0.61841136",
"0.61310816",
"0.61265606",
"0.6124391",
"0.6104271",
"0.60989",
"0.60829675",
"0.6080055... | 0.57317024 | 84 |
Get git repo root dir path. | def Kc9D(qaEx):
FCN7 = tgM5.Repo(qaEx, search_parent_directories=True)
CYyW = FCN7.git.rev_parse('--show-toplevel')
if CYyW.startswith('/private'):
CYyW = CYyW.replace('/private', '')
return CYyW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZXb(YKHO):\n bCYe = fGmS(['git', 'rev-parse', '--show-toplevel'], stdout=h5ye, stderr=h5ye)\n yvT9, XObx = bCYe.communicate()\n if XObx:\n raise wOE_('Not a git repository.')\n tk5Y = yvT9.decode('utf-8')[:-1]\n mSqg = pmON.abspath(tk5Y)\n return mSqg",
"def gUWx():\n kKm_ = Hy7s... | [
"0.8376681",
"0.8311951",
"0.8245882",
"0.8192832",
"0.8191775",
"0.8191775",
"0.8191775",
"0.80436426",
"0.8005475",
"0.79895705",
"0.7941184",
"0.78571737",
"0.7816449",
"0.7778411",
"0.7777102",
"0.77703214",
"0.7727821",
"0.769198",
"0.7687424",
"0.76724607",
"0.76635206"... | 0.7610011 | 25 |
Initialize restaurant name and cuisine types | def FIMM(YKHO, zqv0, N4Ku):
YKHO.restaurant_name = zqv0
YKHO.cuisine_type = N4Ku
YKHO.number_served = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):... | [
"0.88263685",
"0.8585381",
"0.8585381",
"0.8585381",
"0.8585381",
"0.8585381",
"0.8585381",
"0.8585381",
"0.8585381",
"0.855658",
"0.8538651",
"0.8537601",
"0.8503286",
"0.8424007",
"0.83558846",
"0.8341397",
"0.81878674",
"0.81878674",
"0.8169831",
"0.8153843",
"0.815031",
... | 0.8066588 | 24 |
Sets the session password hash so it can get used for later encryption/decryption | def MvAm(dQrR):
cuiw['pwdh'] = vBPX.generate_pwdh_from_password(dQrR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.pw_hash = vT87(jTXt)\n return YKHO.pw_hash",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password... | [
"0.74361223",
"0.74361223",
"0.7390359",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7372959",
"0.7347895",
"0.7318459",
"0.7280456",
"0.7266464",
"0.7264412",
"0.7246206",
"0.72304827",
"0.7224716",
"0.7224716",
"0.7224444",
... | 0.71163297 | 28 |
Generates the password hash from the password (in clear text). This is then stored in the session on login. | def SV6u(dQrR):
r8hN = FOht.new()
r8hN.update(fj5c.str_to_bytes(P4t4.config.get('PWD_SALT')))
r8hN.update(fj5c.str_to_bytes(dQrR))
return r8hN.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = M... | [
"0.75171477",
"0.7479704",
"0.74725306",
"0.74725306",
"0.7436547",
"0.7401149",
"0.7401149",
"0.7330455",
"0.73086655",
"0.73068184",
"0.7270097",
"0.7233063",
"0.72210586",
"0.7193733",
"0.7193173",
"0.71811205",
"0.71748316",
"0.715662",
"0.715662",
"0.715662",
"0.715662",... | 0.7346102 | 7 |
Returns the session password hash that can be used to encrypt and decrypt. | def geOY():
return cuiw['pwdh'] if 'pwdh' in cuiw else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t0x1(YKHO):\n CH5O = 'django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash'\n return qAUk(CH5O, YKHO.password).hexdigest()",
"def t0x1(YKHO):\n CH5O = 'django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash'\n return qAUk(CH5O, YKHO.password).hexdigest()",
"def t0x1(YKHO... | [
"0.78437877",
"0.78437877",
"0.78437877",
"0.76247567",
"0.7235961",
"0.71606994",
"0.71560717",
"0.71234065",
"0.71203643",
"0.7052606",
"0.7024467",
"0.697212",
"0.6942591",
"0.6939258",
"0.6914539",
"0.6857585",
"0.6857585",
"0.6783787",
"0.6771219",
"0.6762238",
"0.674724... | 0.7318901 | 4 |
Estimates covariance matrix like numpy.cov | def PFC2(WKvO, hzd5=False, oug5=False, P_MT=None, awAa=None):
if WKvO.dim() == 1:
WKvO = WKvO.view(-1, 1)
if hzd5 and WKvO.shape[0] != 1:
WKvO = WKvO.t()
if P_MT is None:
if oug5 == 0:
P_MT = 1
else:
P_MT = 0
yzQ0 = awAa
if yzQ0 is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFC2(k0lF):\n return oyIN.cov(k0lF, rowvar=False)",
"def v3UC(YKHO):\n return YKHO.cov_matrix",
"def _IBo(vb7U):\n Sfqw = dCyq(vb7U)\n vb7U = vb7U - XTiz.array([Sfqw])\n XeH_ = vb7U.shape[1]\n PFC2 = 1.0 / (XeH_ - 1) * XTiz.dot(vb7U.T, vb7U)\n return PFC2",
"def LgLc(EcVT):\n yGTL... | [
"0.81402403",
"0.7940147",
"0.78739625",
"0.7717434",
"0.763945",
"0.76356596",
"0.76230216",
"0.7605696",
"0.75854605",
"0.7583101",
"0.7572747",
"0.75650746",
"0.7563464",
"0.75480115",
"0.75300044",
"0.7416656",
"0.7409367",
"0.7407613",
"0.7404342",
"0.7397111",
"0.739385... | 0.0 | -1 |
Return a humanreadable string representation of MNPuzzle self. | def zAg0(YKHO):
Aofo = ''
for YRbF in YKHO.from_grid:
for r8hN in YRbF:
Aofo += str(r8hN)
Aofo += '\n'
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n TK2h = ''\n for rdlD in range(YKHO._height):\n TK2h += str(YKHO._grid[rdlD])\n TK2h += '\\n'\n if YKHO.id is not None:\n ihke = str(YKHO.id) + '\\n' + TK2h\n else:\n ihke = TK2h\n return ihke",
"def zAg0(YKHO):\n return '{}\\n\\n{}'.format(YKHO.puzz... | [
"0.77944887",
"0.75200653",
"0.75200653",
"0.75200653",
"0.75200653",
"0.75200653",
"0.75200653",
"0.7285195",
"0.72588754",
"0.72547126",
"0.72484857",
"0.72264844",
"0.720862",
"0.7158763",
"0.714929",
"0.7145677",
"0.7140277",
"0.7140277",
"0.7130218",
"0.71028686",
"0.710... | 0.6812829 | 99 |
Return whether MNPuzzle self is solved. | def Yprr(YKHO):
return YKHO.from_grid == YKHO.to_grid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUMO(YKHO):\n return True if YKHO._number else False",
"def eGi5(YKHO):\n jGRS = YKHO.sudoku_model.solve()\n return jGRS == ZvOD.LpStatusOptimal",
"def s8JU(YKHO):\n return all(YKHO.solutions)",
"def cS33(YKHO):\n if YKHO.has_empties() is False:\n if YKHO.is_valid_solution() is True... | [
"0.81592774",
"0.7976208",
"0.77712476",
"0.7759979",
"0.75639987",
"0.7508154",
"0.74938315",
"0.7472563",
"0.7437418",
"0.7427721",
"0.7381371",
"0.7374797",
"0.7320094",
"0.7283685",
"0.7270736",
"0.7224194",
"0.7173569",
"0.71498024",
"0.70538586",
"0.7027979",
"0.7026965... | 0.7263649 | 15 |
Normalize a message to avoid growing to infinity or decaying to zero. | def SKbF(YKHO, tO9_):
wjRY = sum(tO9_.values())
RRnO = {G1Hx: Ty9i / wjRY for G1Hx, Ty9i in tO9_.items()}
return RRnO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(tO9_):\n return tO9_['message'].replace(' ', '')",
"def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)",
"def NkkI(WKvO):\n return WKvO",
"def NkkI(YKHO, WKvO):\n pass",
"def NkkI(YKHO):\n if YKHO._count is None:\n YKHO._count ... | [
"0.6892808",
"0.6355046",
"0.6234811",
"0.622589",
"0.62107146",
"0.6193333",
"0.61591434",
"0.6125902",
"0.6085955",
"0.608181",
"0.60733145",
"0.6046624",
"0.6032358",
"0.6012045",
"0.60098386",
"0.60023177",
"0.59530777",
"0.5937891",
"0.5930215",
"0.5921777",
"0.5912557",... | 0.732279 | 0 |
Loads model and optimizer's state from a directory. | def tyeH(YKHO, AGPF):
YKHO.check_initialization()
h00i = ht2j.load(f'{AGPF}/model.pt')
y58L = ht2j.load(f'{AGPF}/optimizer.pt')
YKHO.load_state_dict(h00i)
YKHO._optimizer.load_state_dict(y58L) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, AGPF, qtWj):\n xA7f = YKHO.load_state(AGPF, qtWj)\n YKHO.model.load_state_dict(xA7f['model'])\n YKHO.optim.load_state_dict(xA7f['optim'])\n YKHO.start_epoch = int(xA7f['epoch']) + 1",
"def uyMl(YKHO):\n YKHO.opt.load_weights_folder = Hy7s.path.expanduser(YKHO.opt.load_weights_folder... | [
"0.80437726",
"0.76917607",
"0.72624314",
"0.7156336",
"0.7123953",
"0.7116006",
"0.71016055",
"0.70854616",
"0.70825464",
"0.70769435",
"0.7036515",
"0.69603443",
"0.69472235",
"0.6939791",
"0.6939791",
"0.6939791",
"0.69269705",
"0.6879874",
"0.6848271",
"0.6838636",
"0.680... | 0.8107648 | 0 |
Decorate routes to require login. | def uKii(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if cuiw.get('user_id') is None:
return vKnz('/login')
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m",
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i... | [
"0.7088609",
"0.69663906",
"0.6952313",
"0.6948969",
"0.6931239",
"0.6927372",
"0.69115704",
"0.6907733",
"0.68493545",
"0.6841979",
"0.6836448",
"0.6835364",
"0.6821092",
"0.6821092",
"0.6821092",
"0.6821092",
"0.6806341",
"0.68061286",
"0.67956793",
"0.6780721",
"0.6773746"... | 0.6563444 | 60 |
Add a node to the mesh | def g5gD(YKHO, Q6kx):
assert isinstance(Q6kx, XP5J.Point), 'The node is not a Point object!'
if not Q6kx.is_id_set():
Q6kx.allocate_id()
if Q6kx.id in YKHO.nodes_map:
if YKHO.nodes_map[Q6kx.id] == Q6kx:
return
raise ValueError('The node id {} already exists in the mesh fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def NZoz(YKHO, Q6kx: Node):\n YKHO.poses[len(YKHO.nodes)] = Q6kx.pos\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def g5gD(YKHO):\n _AKB = YKHO.nodes[-1]\n UvTl = _AKB.parent\n Jw7X = _AKB.pos[0] - UvTl.po... | [
"0.7610277",
"0.7563259",
"0.7520365",
"0.75032055",
"0.75029856",
"0.7498374",
"0.74660915",
"0.74660915",
"0.74532753",
"0.735143",
"0.734025",
"0.7335264",
"0.72275406",
"0.72146463",
"0.7192259",
"0.7162032",
"0.7161605",
"0.7097332",
"0.7068988",
"0.7061972",
"0.70612746... | 0.7456757 | 8 |
Add an edge to the mesh | def rz7z(YKHO, CpTk, DFKI):
if CpTk not in YKHO.nodes_map and DFKI not in YKHO.nodes_map:
raise ValueError('Tried to add an unknown node id to an edge')
YKHO.edges.append((CpTk, DFKI)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = (tTpl[0], tTpl[1])\n YKHO.data[Ty9i][yzQ0] = tTpl\n YKHO.data[yzQ0][Ty9i] = tTpl",
"def A609(YKHO, *qIxc):\n return mqGD.itkQuadEdgeMeshD3S_AddEdge(YKHO, *qIxc)",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n YKHO[Ty9i][yzQ0] = tTpl\n YKHO[yzQ0][Ty9i] = ... | [
"0.8013862",
"0.7844225",
"0.7827339",
"0.7749608",
"0.761247",
"0.7474014",
"0.747211",
"0.747211",
"0.74684805",
"0.742079",
"0.7416666",
"0.74068135",
"0.73942405",
"0.7392181",
"0.73797923",
"0.7379191",
"0.73780257",
"0.7371744",
"0.7368532",
"0.7368523",
"0.73447317",
... | 0.0 | -1 |
Get the adjacency matrix for the mesh | def I0pP(YKHO):
EKkU = len(YKHO.nodes_map)
DDBf = o7sj.dok_matrix((EKkU + 1, EKkU + 1), dtype=oyIN.bool)
for _pUq in YKHO.elements:
mC4V = _pUq.get_edges()
for D70y in mC4V:
DDBf[D70y[0], D70y[1]] = True
DDBf[D70y[1], D70y[0]] = True
return DDBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzia(jE_R):\n eQUr = oyIN.zeros((jE_R.n_vertices(), jE_R.n_vertices()))\n for Ga6V in jE_R.faces():\n RpU_ = []\n for fHKj in jE_R.fv(Ga6V):\n RpU_.append(fHKj.idx())\n for YRbF in range(-1, len(RpU_) - 1):\n D70y = oyIN.sort((RpU_[YRbF], RpU_[YRbF + 1]))\n ... | [
"0.8176106",
"0.8100412",
"0.7909573",
"0.78843695",
"0.78253824",
"0.7823305",
"0.773749",
"0.76189977",
"0.74354535",
"0.7387518",
"0.73471963",
"0.7335302",
"0.7308326",
"0.7308326",
"0.73019695",
"0.72755593",
"0.72695494",
"0.72571033",
"0.708087",
"0.70791334",
"0.70755... | 0.7554197 | 8 |
Shows value using number base, e.g. str_base(44027, 36)=='XYZ' | def gS5h(wEf2: int, Fg_i: int) -> str:
if Fg_i not in range(2, 37):
return 'ERROR'
hlel = ''
while wEf2 != 0:
d7pR = wEf2 % Fg_i
if d7pR < 10:
hlel += chr(d7pR + ord('0'))
else:
hlel += chr(d7pR + ord('A') - 10)
wEf2 //= Fg_i
return ''.join... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gS5h(BWXx: int, P8oC: int) -> str:\n if P8oC not in range(2, 37):\n return \"Mi scusi, you're mistaken :c\"\n hlel: str = ''\n while BWXx != 0:\n hlel += gTzM(BWXx % P8oC)\n BWXx //= P8oC\n return ''.join(reversed(hlel))",
"def _j1y(mLGw, P8oC):\n jzdc = mLGw\n KCHu = '... | [
"0.829784",
"0.7812176",
"0.7719483",
"0.7529971",
"0.75047076",
"0.742433",
"0.74232745",
"0.74223274",
"0.74176544",
"0.73468924",
"0.73262435",
"0.7297296",
"0.7297296",
"0.7297296",
"0.7235063",
"0.72347516",
"0.7226886",
"0.7207916",
"0.720487",
"0.72015345",
"0.7201443"... | 0.78327084 | 1 |
Get a new output connection for this broadcast pipe. | def jwk_(YKHO):
bCYe = HAEk.Store(YKHO.env, capacity=YKHO.capacity)
YKHO.channel.append(bCYe)
return bCYe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dAWE(YKHO):\n if YKHO._output_connection is None:\n JGQq = YKHO.getOutputLayer()\n wrSm = YKHO.getLastHiddenLayer()\n for Z9rn in YKHO.getConnections():\n if Z9rn.outmod is JGQq:\n assert Z9rn.inmod is wrSm\n YKHO._output_connection = Z9rn\n r... | [
"0.70862645",
"0.6643901",
"0.6643901",
"0.65287304",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6448132",
"0.6381391",
"0.6381391",
"0.6207405",
"0.6207405",
"0.6041317",
"0.59952605",
"0.59952605",... | 0.7902965 | 0 |
Ensure correct exception is thrown if the path does not exist. | def hyRW(QoNt: Type[VideoStream]):
with trZe.raises(OSError):
bGrB = QoNt('this_path_should_not_exist.mp4') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4si(pmON):\n if not Hy7s.path.exists(pmON):\n raise Z07W('The path provided does not exist.')",
"def JPHm(pmON):\n if not Hy7s.path.exists(pmON):\n yR_P.fail_json(msg='{0} does not exists'.format(pmON))",
"def eg9x(pmON: PathLike) -> None:\n pmON = GkAb(pmON)\n try:\n asse... | [
"0.8001534",
"0.7755692",
"0.7611641",
"0.7591104",
"0.7531111",
"0.7527497",
"0.7478762",
"0.73928773",
"0.7370951",
"0.7332924",
"0.7317634",
"0.7239659",
"0.7227385",
"0.7176751",
"0.71500415",
"0.7148954",
"0.7134775",
"0.70985055",
"0.7065997",
"0.7041827",
"0.70237106",... | 0.0 | -1 |
Path's relative to location of the file. Makes it so your scripts don't break when run from directories other than the root. | def EnrM(vcQs, GPxm=xAKo):
import os.path as XP5J
return XP5J.normpath(XP5J.join(XP5J.dirname(XP5J.realpath(GPxm)), vcQs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t_yv(pmON):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), pmON)",
"def pNEz(t_yv):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), t_yv)",
"def n9WL(Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), Ux0P)",
"def n9WL(Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), Ux0P)",
... | [
"0.75762075",
"0.7442342",
"0.74301106",
"0.74301106",
"0.7362251",
"0.7291783",
"0.7269585",
"0.7259515",
"0.72507113",
"0.7179336",
"0.7149194",
"0.7086352",
"0.7079861",
"0.7066772",
"0.7036507",
"0.70019823",
"0.69943297",
"0.6989594",
"0.69870645",
"0.69392526",
"0.69189... | 0.0 | -1 |
Split texts and removes unnecessary empty spaces or empty items. | def aG7c(l5Ny, SAEY):
return [o4D3 for o4D3 in [WKvO.strip() for WKvO in l5Ny.split(SAEY)] if len(o4D3) > 0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X9_Z(YKHO, l5Ny: str) -> x1iM[str]:\n l5Ny = l5Ny.lower()\n V22M = YKHO._split_regex.split(l5Ny)\n V22M = list(filter(lambda yzQ0: yzQ0.strip() != '', V22M))\n return V22M",
"def j8Nw(z_aV, SAEY):\n hEZW = []\n for a1PO in z_aV:\n Rhv4 = rqEj(a1PO, SAEY)\n for KCHu in Rhv4:\n ... | [
"0.7388299",
"0.72331285",
"0.7137878",
"0.71315634",
"0.70912075",
"0.68949044",
"0.68627316",
"0.68254906",
"0.6771482",
"0.67659736",
"0.6679101",
"0.66661704",
"0.66590863",
"0.6641246",
"0.6639155",
"0.6614728",
"0.6584355",
"0.656104",
"0.65242416",
"0.6499485",
"0.6484... | 0.75332206 | 0 |
Split a command by whitespace, taking care to not split on whitespace within quotes. >>> __whitespace_smart_split("test this \\\"in here\\\" again") ['test', 'this', '"in here"', 'again'] | def xl9N(oUZx):
xpKn = []
KCHu = ''
kvhc = False
IguF = False
for Z9rn in oUZx:
if Z9rn == '"':
if kvhc:
if IguF:
KCHu += Z9rn
IguF = False
else:
KCHu += Z9rn
kvhc = Fa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSd7(YKHO, zFiD):\n j8Nw = URgV.shlex(zFiD, posix=True)\n j8Nw.escapedquotes = '\"\\''\n j8Nw.whitespace_split = True\n j8Nw.commenters = ''\n return list(j8Nw)",
"def YDch(KCHu):\n exwG = 0\n QgGc = []\n tCTQ = False\n NRcB = ''\n while exwG < len(KCHu):\n jvSB = KCHu[ex... | [
"0.72864276",
"0.7147253",
"0.70323837",
"0.6927857",
"0.6724286",
"0.6661322",
"0.64481753",
"0.6445528",
"0.6391472",
"0.6374196",
"0.619986",
"0.6174266",
"0.6168269",
"0.61107004",
"0.6082226",
"0.60588443",
"0.6053194",
"0.60421836",
"0.60201454",
"0.6016774",
"0.6015808... | 0.82991225 | 0 |
Test that a new venue resource can be succesfully created when valid data is sent to the api. | def T2LY(DgLJ, Jpbe, CBIr, qQXR, NCls):
ScG9 = {'id', 'name', 'street_address', 'city', 'state', 'zip_code', 'performances', '_links'}
A2Wk = {'name': 'South', 'street_address': '1400 Broad. St.', 'city': 'Philadelphia', 'state': 'PA', 'zip_code': '19212'}
eOtH = Jpbe.register(CBIr.username, 'password', CBI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUE8(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):\n eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)\n geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))\n assert geh0.status == '400 BAD REQUEST'\n assert geh0.content_type == 'application/json'\n assert geh0.json['m... | [
"0.7605039",
"0.7602762",
"0.756129",
"0.7548748",
"0.7442303",
"0.7338929",
"0.7298465",
"0.7184357",
"0.7082998",
"0.7046195",
"0.7018001",
"0.69837147",
"0.69718385",
"0.69401616",
"0.6899067",
"0.68839943",
"0.68434346",
"0.68380487",
"0.68236166",
"0.682039",
"0.68093175... | 0.80120826 | 0 |
Test that a new venue resource cannot be created if required fields are missing. | def TUE8(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))
assert geh0.status == '400 BAD REQUEST'
assert geh0.content_type == 'application/json'
assert geh0.json['message'][a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CI60(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):\n eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)\n geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))\n assert geh0.status == '400 BAD REQUEST'\n assert geh0.content_type == 'application/json'\n assert geh0.json['m... | [
"0.78182817",
"0.7132753",
"0.71318954",
"0.71194166",
"0.71033317",
"0.70873517",
"0.70408607",
"0.7032111",
"0.70303637",
"0.70085406",
"0.69699687",
"0.6957528",
"0.69315547",
"0.6931344",
"0.69132775",
"0.689062",
"0.68878704",
"0.68843126",
"0.68833774",
"0.6880938",
"0.... | 0.8224087 | 0 |
Test that a new venue resource cannot be created if field lengths are incorrect. | def LTRL(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))
geh0.status == '400 BAD REQUEST'
geh0.content_type == 'application/json'
geh0.json['message'][aEqx['incorrect_field'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUE8(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):\n eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)\n geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))\n assert geh0.status == '400 BAD REQUEST'\n assert geh0.content_type == 'application/json'\n assert geh0.json['m... | [
"0.70589226",
"0.6794277",
"0.6752441",
"0.6727528",
"0.6688516",
"0.6657136",
"0.66443807",
"0.65207714",
"0.64753115",
"0.64297384",
"0.64161307",
"0.6395629",
"0.6394226",
"0.63605976",
"0.6349668",
"0.63425153",
"0.63047546",
"0.6288802",
"0.6285105",
"0.62666345",
"0.625... | 0.7506495 | 0 |
Test that a new venue resource cannot be created if an incorrect state is provided. | def uoe3(DgLJ, qQXR, Jpbe, CBIr):
A2Wk = {'name': 'South', 'street_address': '1400 Broad. St.', 'city': 'Philadelphia', 'state': 'PT', 'zip_code': '19212'}
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(A2Wk))
assert geh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jCkQ(YKHO):\n nPrm = {'new_state': 'BOGUS_STATE', 'response': 'this should fail'}\n YKHO.update_and_assert_status(nPrm, jGRS.HTTP_400_BAD_REQUEST)",
"def PJqO(YKHO):\n TkWw = QpfX.create_vuln('foo bar')\n YKHO.assertFalse(TkWw)",
"def O6g6(DgLJ, Jpbe, CBIr, NCls, cuhd, qQXR):\n VU8d = {'name... | [
"0.7127637",
"0.7003321",
"0.68850505",
"0.68583417",
"0.67732877",
"0.66747814",
"0.6526881",
"0.65149295",
"0.6495653",
"0.649524",
"0.64947414",
"0.6491661",
"0.6490353",
"0.6482182",
"0.6481671",
"0.6469616",
"0.6462718",
"0.646109",
"0.6452368",
"0.6438366",
"0.6423375",... | 0.7943177 | 0 |
Test that a new venue resource cannot be created if a field is None. | def CI60(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))
assert geh0.status == '400 BAD REQUEST'
assert geh0.content_type == 'application/json'
assert geh0.json['message'][a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUE8(DgLJ, Jpbe, CBIr, qQXR, xvDN, aEqx):\n eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)\n geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(xvDN))\n assert geh0.status == '400 BAD REQUEST'\n assert geh0.content_type == 'application/json'\n assert geh0.json['m... | [
"0.71759844",
"0.674299",
"0.6720351",
"0.6708284",
"0.6662481",
"0.66061884",
"0.65910625",
"0.6519254",
"0.65179044",
"0.6463224",
"0.64586216",
"0.64322007",
"0.6420892",
"0.64030665",
"0.6396498",
"0.63951826",
"0.63802516",
"0.63738036",
"0.6354198",
"0.6351847",
"0.6343... | 0.7584248 | 0 |
Test that a new venue with a duplicate street address cannot be created. | def O6g6(DgLJ, Jpbe, CBIr, NCls, cuhd, qQXR):
VU8d = {'name': 'Test Jazz Club', 'street_address': cuhd.street_address, 'city': 'New York', 'state': 'NY', 'zip_code': '45677'}
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.post('/api/v1/venues', headers=E_hp(eOtH), data=qQXR.dumps(VU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mlX3(YKHO):\n geh0 = YKHO.client().post('/api/v1/businesses', data=qQXR.dumps(YKHO.test_business), headers={'content-type': 'application/json', 'x-access-token': YKHO.token})\n Ppso = YKHO.client().post('/api/v1/businesses', data=qQXR.dumps(YKHO.test_business), headers={'content-type': 'application/json'... | [
"0.7315248",
"0.71928614",
"0.6989739",
"0.69336045",
"0.67551833",
"0.6718645",
"0.66515034",
"0.66137975",
"0.6599167",
"0.6538996",
"0.6525702",
"0.64625776",
"0.6448934",
"0.632947",
"0.6309173",
"0.6293311",
"0.62912726",
"0.6283832",
"0.6281497",
"0.62735873",
"0.626018... | 0.8168846 | 0 |
Test that a venue resource can be succesfully updated when valid data is sent to the api. | def BUdV(DgLJ, Jpbe, CBIr, NCls, cuhd, qQXR):
VU8d = {'name': cuhd.name, 'street_address': '678 Main St.', 'city': cuhd.city, 'state': cuhd.state, 'zip_code': cuhd.zip_code}
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.put(f'/api/v1/venues/{cuhd.id}', headers=E_hp(eOtH), data=qQXR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KelQ(DgLJ, Jpbe, CBIr, qQXR, cuhd):\n nVka = {'id': 1000, 'name': cuhd.name, 'street_address': cuhd.street_address, 'city': cuhd.city, 'state': cuhd.state, 'zip_code': cuhd.zip_code}\n eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)\n geh0 = DgLJ.put(f'/api/v1/venues/{cuhd.id}', headers=E_... | [
"0.76501215",
"0.7257493",
"0.7095878",
"0.69682676",
"0.6964524",
"0.6962659",
"0.6949828",
"0.6921324",
"0.68838835",
"0.68464446",
"0.6777278",
"0.6768734",
"0.6759384",
"0.6751952",
"0.6732233",
"0.6731893",
"0.6727822",
"0.67237085",
"0.6704046",
"0.67017853",
"0.6684381... | 0.7968373 | 0 |
Test that a venue's id cannot be updated. | def KelQ(DgLJ, Jpbe, CBIr, qQXR, cuhd):
nVka = {'id': 1000, 'name': cuhd.name, 'street_address': cuhd.street_address, 'city': cuhd.city, 'state': cuhd.state, 'zip_code': cuhd.zip_code}
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.put(f'/api/v1/venues/{cuhd.id}', headers=E_hp(eOtH)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tn8m(YKHO):\n with YKHO.app.app_context():\n YKHO.assertEqual(None, fzKE(999, 2, qcWV.datetime.now(), 1))",
"def Hdcn(YKHO):\n tvqc = QRWf.objects.get(name='Test Name')\n try:\n tvqc.event_id = 5\n YKHO.assertEqual(tvqc.event_id, 5)\n except sUXu:\n YKHO.fail('Exceptio... | [
"0.7552068",
"0.71311367",
"0.71116775",
"0.7083992",
"0.70839036",
"0.70797944",
"0.69839054",
"0.69578284",
"0.6955892",
"0.69540066",
"0.6952899",
"0.6933485",
"0.6924474",
"0.6871495",
"0.6846714",
"0.6805481",
"0.6740242",
"0.67342",
"0.67230654",
"0.67221284",
"0.672145... | 0.7821574 | 0 |
Test that a venue resource can be successfully deleted. | def vQJ7(DgLJ, Jpbe, CBIr, cuhd, NCls):
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.delete(f'/api/v1/venues/{cuhd.id}', headers=E_hp(eOtH))
assert geh0.status == '204 NO CONTENT'
assert geh0.content_type == 'application/json'
assert geh0.get_data(as_text=True) == ''
V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAjH(YKHO):\n jbn3 = qO4N.objects.get()\n geh0 = YKHO.client.delete(gxEw('details', kwargs={'pk': jbn3.rfid}), format='json', follow=True)\n YKHO.assertEquals(geh0.status_code, jGRS.HTTP_204_NO_CONTENT)",
"def NylZ(YKHO):\n bD7m = gxEw('event:task:detail', args=[11, 11, 11])\n geh0 = YKHO.clie... | [
"0.7495094",
"0.7441238",
"0.74160725",
"0.7329335",
"0.73260605",
"0.7298764",
"0.72952974",
"0.721581",
"0.71983206",
"0.7198043",
"0.71436024",
"0.7134076",
"0.71328294",
"0.71259695",
"0.71181375",
"0.71181375",
"0.71181375",
"0.7091895",
"0.7084747",
"0.7060656",
"0.7058... | 0.79622656 | 0 |
Test that a 404 error is returned if a venue with the given id does not exist. | def VE3r(DgLJ, Jpbe, CBIr):
eOtH = Jpbe.register(CBIr.username, 'password', CBIr.email)
geh0 = DgLJ.delete('/api/v1/venues/100', headers=E_hp(eOtH))
assert geh0.status == '404 NOT FOUND'
assert geh0.content_type == 'application/json'
assert geh0.json['message'] == 'Venue could not be found.' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _hn1(vY7J):\n geh0 = vY7J.get('/expense/4', status=404)\n assert geh0.status_code == 404",
"def sufo(YKHO):\n geh0 = YKHO.client.get('/api/bank/')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)",
"def ScGI(YKHO):\n geh0 = YKHO.test_client.get('/api/v1/states/404')\n YKHO.as... | [
"0.7388157",
"0.7382798",
"0.73491657",
"0.73060536",
"0.72360545",
"0.72234803",
"0.7119295",
"0.7082595",
"0.70220226",
"0.70019746",
"0.69745785",
"0.6952513",
"0.69509697",
"0.6944157",
"0.6909379",
"0.690652",
"0.68998295",
"0.68900716",
"0.68869317",
"0.6877495",
"0.687... | 0.66305345 | 66 |
With normalization, the fake and real should be in the same batch to avoid disparate statistics. | def LcpN(YKHO, X9lH, pr8Z):
if YKHO.join:
NCls = Dy8w(X9lH, pr8Z)
nvEb = YKHO.discriminate(NCls)
iQbv, FgvF = DkqF(nvEb)
else:
iQbv = YKHO.discriminate(X9lH)
FgvF = YKHO.discriminate(pr8Z)
return (iQbv, FgvF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n print('train_shape', YKHO.x_train.shape, 'test_shape', YKHO.x_test.shape, 'val_shape', YKHO.x_val.shape)\n print('before_normalizatio... | [
"0.6669559",
"0.6639815",
"0.65134835",
"0.65003145",
"0.6495093",
"0.6460103",
"0.6339904",
"0.63030845",
"0.62746567",
"0.6265049",
"0.62264484",
"0.62210023",
"0.62096673",
"0.6189882",
"0.6171419",
"0.6169083",
"0.61316884",
"0.6098916",
"0.6084032",
"0.6077065",
"0.60762... | 0.5671259 | 78 |
Returns True iff boost_factor > 0 | def y8cY(YKHO):
if YKHO._hparams.boost_factor > 0.0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lq30(YKHO, WKvO):\n return 0.0 < WKvO",
"def lq30(YKHO, WKvO):\n return 0.0 < WKvO",
"def lL2s():\n if PTeS() > Q6Qr() - Q6Qr() * 0.15:\n return True\n else:\n return False",
"def fulP(YKHO, p1kx):\n return p1kx > 21",
"async def should_boost(YKHO):\n x1WU = YKHO.instanc... | [
"0.65113664",
"0.65113664",
"0.6430252",
"0.64255375",
"0.6419888",
"0.62995726",
"0.6297037",
"0.62648195",
"0.6259147",
"0.6232465",
"0.62087756",
"0.6207147",
"0.6207147",
"0.60194665",
"0.6014156",
"0.6012294",
"0.5998571",
"0.5967177",
"0.5946269",
"0.59163386",
"0.58815... | 0.7822033 | 0 |
Build a convolutional decoder. | def V_Zu(YKHO, u5Om, Jm4B, mWFP='decoding'):
FEri = [1, YKHO._hparams.filters_field_stride, YKHO._hparams.filters_field_stride, 1]
PWZQ = [YKHO._hparams.filters_field_height, YKHO._hparams.filters_field_width, YKHO._input_shape[3], YKHO._hparams.cols]
q4Mi = u5Om
q4Mi[0] = YKHO._hparams.batch_size
V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _6k9(YKHO):\n NL0M = YKHO.build_decoder_input()\n bRzH = YKHO.build_repeat_layer(NL0M)\n DX5M = YKHO.build_decoder_lstms(bRzH)\n bQtW = YKHO.build_decoder_output(DX5M)\n YKHO.decoder = wOed(NL0M, bQtW, name='decoder')",
"def Cc7Y(YKHO):\n if YKHO.n_channels == 0:\n g4y1 = X6a0(shape=... | [
"0.7082358",
"0.7033764",
"0.69562733",
"0.6946645",
"0.6905523",
"0.68885",
"0.6856822",
"0.6761115",
"0.67538136",
"0.6718664",
"0.6604037",
"0.6583282",
"0.65696865",
"0.6569429",
"0.653532",
"0.6521319",
"0.6521195",
"0.6517859",
"0.6508643",
"0.65063834",
"0.650545",
"... | 0.7119455 | 0 |
Builds an L2 loss op for specified parameters for regularization. | def bWE5(YKHO, Lhpz, yzQ0, Fg_i, NXpY, ZZzl):
if NXpY <= 0.0:
G9jH.info('Dendrite: %s. Skipping, L2=0.', Lhpz)
return ZZzl
if yzQ0 is None:
G9jH.info('Dendrite: %s. Skipping, W=None.', Lhpz)
return ZZzl
G9jH.info('Dendrite: %s. Adding L2 loss (W): %s', Lhpz, str(NXpY))
xK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iw6a(YKHO, tEbt):\n bo34.info('Enabling L2 regularization')\n X3qU = ZylS.multiply(YKHO._l2_reg, YKHO._get_l2_norm())\n ZylS.summary.scalar(name='l2_term', tensor=X3qU)\n return tEbt + X3qU",
"def OniO(YKHO, _mSQ):\n KvTy = ZylS.zeros([], name='l2_loss')\n for YRbF in range(YKHO.hidden_laye... | [
"0.76629853",
"0.72522485",
"0.7127687",
"0.7111983",
"0.700905",
"0.6961793",
"0.6960327",
"0.6928401",
"0.6928401",
"0.6928401",
"0.6926499",
"0.69198704",
"0.6909085",
"0.6897596",
"0.6891159",
"0.68891644",
"0.6873495",
"0.6867523",
"0.68558925",
"0.68000054",
"0.67901963... | 0.68529797 | 19 |
``flockerdeploy version`` returns the current version. | def C4Nh(YKHO):
Aofo = CD35([b'flocker-deploy'] + [b'--version'])
YKHO.assertEqual(Aofo, b'%s\n' % (BtDU,)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH():\n return fUpG.version()",
"def hsYp():\n DpZH = '1.0.0'\n return DpZH",
"def kaPv():\n return wx3I",
"def DpZH():\n fUpG = 1.0\n return fUpG",
"def DpZH():\n return wx3I",
"def DpZH():\n S0MI.debug('Getting version.')\n return MKKM",
"def kaPv(YKHO):\n return Y... | [
"0.7232841",
"0.7221122",
"0.7168115",
"0.71041286",
"0.70836085",
"0.708282",
"0.70751846",
"0.7073183",
"0.7009754",
"0.70042133",
"0.6993385",
"0.6926841",
"0.69138926",
"0.69039845",
"0.69039845",
"0.69039845",
"0.69039845",
"0.6903167",
"0.6875209",
"0.68705595",
"0.6870... | 0.6871037 | 19 |
Validator to check if the defaultspecid is present in partitionspecs | def cBwp(hkxX: Dict[str, Any]) -> cuzp[str, ImMB]:
llTJ = hkxX['default_spec_id']
QjeG: x1iM[PPQT] = hkxX['partition_specs']
for Cqok in QjeG:
if Cqok.spec_id == llTJ:
return hkxX
raise sUXu(f"default-spec-id {llTJ} can't be found") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jkk6(Ys3F, jeGQ):\n jeGQ = set(jeGQ)\n v3uw = jeGQ.difference(Ys3F)\n if v3uw:\n nd0d = ['s', ''][len(v3uw) == 1]\n raise ValueError('Unknown partition%s: %s' % (nd0d, ', '.join(sorted(v3uw))))\n return jeGQ",
"def P3tO(Za08, U7YL, Q7me, zGyh, jdHb, jh4S=10):\n _6dy = xYJc(U7YL, ... | [
"0.6052262",
"0.5809195",
"0.55929714",
"0.5531925",
"0.55226666",
"0.54688466",
"0.54416484",
"0.5430526",
"0.5430526",
"0.54049194",
"0.5350733",
"0.5337471",
"0.5326558",
"0.526778",
"0.52420187",
"0.5232355",
"0.5227159",
"0.52213514",
"0.52110314",
"0.5191638",
"0.513679... | 0.79697037 | 0 |
Builds a classifier on top either the encoder, generator or discriminator trained in the AEGAN. | def ht_1(YKHO, VXjJ, jTqs, CJGY=None, Y9ns=True):
bGrB, C3ST = YKHO.discriminator.discriminate(VXjJ, reuse=CJGY, training=Y9ns, with_fc=False)
C3ST = YKHO.discriminator.classify(C3ST, jTqs, reuse=CJGY, training=Y9ns)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CneF(YKHO):\n ZylS.logging.info('Constructing encoders and decoders.')\n ZylS.logging.info('Label decoder has product of experts: %s' % str(YKHO.product_of_experts))\n cn8j = S9eP if YKHO.config.dataset == 'celeba' else BS1c\n if vPBo.image_decoder_channels == '_REPLACE_ME':\n DPAz = 3\n ... | [
"0.69287825",
"0.6498678",
"0.62887657",
"0.62556714",
"0.624906",
"0.623509",
"0.61599827",
"0.60936075",
"0.6066665",
"0.6024319",
"0.6011544",
"0.60020596",
"0.5992566",
"0.59796435",
"0.59656197",
"0.59428734",
"0.5926513",
"0.59263784",
"0.59192795",
"0.591325",
"0.58927... | 0.658656 | 1 |
Return True if G has a path from source to target, False otherwise. | def cmBw(yvY1, JZXy, pan_):
try:
H4yH = jHsn.shortest_path(yvY1, JZXy, pan_)
except jHsn.NetworkXNoPath:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmBw(yvY1, JZXy, pan_):\n return vkmp(algo='sssp_has_path')(yvY1, JZXy, pan_)",
"def cmBw(pNZh, JZXy, e1vZ, azXi=[]):\n if None in (pNZh, JZXy, e1vZ):\n raise ValueError(\"graph, source and dest can't be None\")\n for AAbN in pNZh.neighbors(JZXy):\n if AAbN == e1vZ:\n return... | [
"0.75413585",
"0.7119793",
"0.7074304",
"0.695866",
"0.6785855",
"0.6686054",
"0.66819984",
"0.66566294",
"0.66542464",
"0.66542464",
"0.66542464",
"0.6653121",
"0.6628728",
"0.66080725",
"0.6582709",
"0.6517244",
"0.6409844",
"0.6398534",
"0.6388603",
"0.6376178",
"0.6289102... | 0.8492889 | 0 |
Setup for the route trie. | def FIMM(YKHO, gP1Q):
YKHO.root = ODRq(gP1Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.trie = etby()",
"def FCbF(YKHO):\n YKHO.trie = ZOCz.Trie(YKHO.TEST_VALUES)",
"def FIMM(YKHO):\n YKHO.trie_root = ep_x()",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO):\n YKHO.__root = ep_x.init_root()",
"def FIMM(YKHO):\n YKHO.TrieNode = ep_x()",
"def... | [
"0.7037286",
"0.6942408",
"0.6718253",
"0.66639435",
"0.6617347",
"0.66172093",
"0.6606506",
"0.6606118",
"0.6566836",
"0.6566836",
"0.6538957",
"0.65328544",
"0.65217173",
"0.6481587",
"0.64747274",
"0.64557433",
"0.64335227",
"0.64316547",
"0.6415963",
"0.64074725",
"0.6391... | 0.6877177 | 2 |
Setup for the route trie node. | def FIMM(YKHO, DCgT=None):
YKHO.children = g760.defaultdict(ODRq)
YKHO.handler = DCgT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.trie_root = ep_x()",
"def FIMM(YKHO):\n YKHO.root = SVs2()",
"def FIMM(YKHO):\n YKHO.node = ep_x()",
"def FIMM(YKHO):\n YKHO.TrieNode = ep_x()",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO):\n YKHO.__root = ep_x.init_root()",
"def FIMM(YKHO):\n YKH... | [
"0.7106469",
"0.7071601",
"0.7062418",
"0.7053478",
"0.70412654",
"0.6986198",
"0.6978767",
"0.692718",
"0.6915175",
"0.6907972",
"0.68425554",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.68407875",
"0.684... | 0.6376087 | 87 |
Target encoding not using category_encoders library Find the average of the target variable for each level of a categorical variable Map the level's target average to each instance of that level Alternative to dummy coding when there are too many levels | def uThN(jQ3Z, AAHb, iK09):
IfxD = jQ3Z.groupby(AAHb)['target'].mean()
jQ3Z.loc[:, AAHb + '_tar_enc'] = jQ3Z[AAHb].map(IfxD)
iK09.extend([AAHb + '_tar_enc'])
return (jQ3Z, IfxD, iK09) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuWD(nPrm):\n jQ3Z = jth9.deepcopy(nPrm)\n qXNS = {' <=50K': 0, ' >50K': 1}\n jQ3Z.loc[:, 'income'] = jQ3Z['income'].map(qXNS)\n ulBT = ['age', 'fnlwgt', 'capital_gain', 'capital_loss', 'hours_per_week']\n bySB = [Z9rn for Z9rn in jQ3Z.columns if Z9rn not in ['kfold', 'income'] and Z9rn not in u... | [
"0.6742354",
"0.5898305",
"0.5896779",
"0.58863163",
"0.58562356",
"0.58562356",
"0.57913154",
"0.5785467",
"0.5762554",
"0.5760063",
"0.569907",
"0.56809545",
"0.56768954",
"0.56768954",
"0.56768954",
"0.5610486",
"0.5572403",
"0.5568532",
"0.55684555",
"0.55533034",
"0.5541... | 0.6590615 | 1 |
Create dummy variables for a categorical var | def _4L9(jQ3Z, AAHb, iK09):
bQav = jQ3Z.columns
jQ3Z = rLdf.get_dummies(jQ3Z, prefix=[AAHb], dummy_na=False, columns=[AAHb])
iK09.extend(list(set(jQ3Z.columns) - set(bQav)))
return (jQ3Z, iK09) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def up0v(nPrm):\n BY56 = ['job', 'marital', 'education', 'default', 'housing', 'loan', 'contact', 'month', 'day_of_week', 'poutcome']\n for SRYB in BY56:\n pjtn = 'var' + '_' + SRYB\n pjtn = rLdf.get_dummies(nPrm[SRYB], prefix=SRYB)\n BZgl = nPrm.join(pjtn)\n nPrm = BZgl\n qz7Z... | [
"0.74845237",
"0.7459232",
"0.6999107",
"0.69759005",
"0.69022655",
"0.6874025",
"0.68025404",
"0.6782676",
"0.6769762",
"0.66750187",
"0.6578751",
"0.6558074",
"0.65469426",
"0.65275997",
"0.64610565",
"0.64494056",
"0.64131075",
"0.6376852",
"0.6374815",
"0.6374051",
"0.633... | 0.63323486 | 21 |
Log errors caused by updates. | def UtPW(QdZT, QpfX):
bo34.warning(f'Update "{QdZT}" caused error "{QpfX.error}"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(QdZT, Tp4j):\n bo34.warning('Update \"{}\" caused error \"{}\"'.format(QdZT, Tp4j))",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.error)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):... | [
"0.8002594",
"0.79391193",
"0.7891098",
"0.7787702",
"0.7787702",
"0.7787702",
"0.7787702",
"0.7787702",
"0.77652806",
"0.77634835",
"0.7759221",
"0.7755772",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77531725",
"0.77... | 0.7884035 | 3 |
Returns text of given filename. | def AXUr(Ux0P):
eHNT = open(Ux0P, 'r')
J87D = eHNT.read()
eHNT.close()
return J87D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFHi(Ux0P: Path) -> str:\n with open(Ux0P, 'r', encoding='utf-8') as eHNT:\n return eHNT.read()",
"def gFHi(Ux0P):\n l5Ny = open(Ux0P, encoding='utf8').read()\n return l5Ny",
"def tCBU(gIsw: str):\n with open(gIsw, 'r') as nUeQ:\n l5Ny = nUeQ.read()\n return l5Ny",
"def WA56(... | [
"0.86935204",
"0.857115",
"0.8560682",
"0.8554181",
"0.85016984",
"0.84612477",
"0.8420159",
"0.8238839",
"0.8205752",
"0.8074122",
"0.7854586",
"0.7853752",
"0.7853752",
"0.78356415",
"0.7720137",
"0.7720137",
"0.77096283",
"0.7666977",
"0.7665148",
"0.7638408",
"0.7625366",... | 0.0 | -1 |
Return the given NotificationType | def S82U(Emd4, l87X):
I62H = qGVo.objects.get(name=l87X)
return I62H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def I62H(YKHO):\n return YKHO._notification_type",
"def Hghu():\n raise NotImplementedError('Notification subclass must implement type')",
"def rwbG(YKHO):\n nPrm =... | [
"0.8324227",
"0.8324227",
"0.8273439",
"0.73045415",
"0.6765747",
"0.66343087",
"0.6614966",
"0.63348496",
"0.6332705",
"0.6232298",
"0.6156735",
"0.6154071",
"0.60842687",
"0.6031573",
"0.60134727",
"0.60085255",
"0.59654635",
"0.5934299",
"0.59134084",
"0.59132874",
"0.5894... | 0.83650494 | 0 |
Helper function to convert latitude to colatitude. This, surprisingly, is quite an error source. >>> lat2colat(90) 180.0 >>> lat2colat(45) 135.0 >>> lat2colat(0) 90.0 >>> lat2colat(45) 45.0 >>> lat2colat(90) 0.0 | def zawL(QnmL):
return 90.0 - QnmL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llq8(XRjd):\n return -1.0 * (XRjd - 90.0)",
"def zZaO(QnmL, FDPT):\n QnmL, FDPT = (float(QnmL), float(FDPT))\n if FDPT < 0:\n return (QnmL, FDPT + 360)\n else:\n return (QnmL, FDPT)",
"def Qak6(QnmL, FDPT):\n QnmL, FDPT = (float(QnmL), float(FDPT))\n if FDPT >= 180:\n ... | [
"0.7587174",
"0.69190055",
"0.66606706",
"0.63096017",
"0.59524107",
"0.59524107",
"0.5943473",
"0.58615226",
"0.58557945",
"0.56542164",
"0.5639791",
"0.56324154",
"0.5629543",
"0.55822295",
"0.5564847",
"0.55106014",
"0.54046893",
"0.53848404",
"0.5382008",
"0.53201956",
"0... | 0.8575152 | 0 |
Helper function to convert colatitude to latitude. This, surprisingly, is quite an error source. >>> colat2lat(180) 90.0 >>> colat2lat(135) 45.0 >>> abs(colat2lat(90)) 0.0 >>> colat2lat(45) 45.0 >>> colat2lat(0.0) 90.0 | def Llq8(XRjd):
return -1.0 * (XRjd - 90.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zawL(QnmL):\n return 90.0 - QnmL",
"def zZaO(QnmL, FDPT):\n QnmL, FDPT = (float(QnmL), float(FDPT))\n if FDPT < 0:\n return (QnmL, FDPT + 360)\n else:\n return (QnmL, FDPT)",
"def Qak6(QnmL, FDPT):\n QnmL, FDPT = (float(QnmL), float(FDPT))\n if FDPT >= 180:\n return (... | [
"0.78084093",
"0.6764381",
"0.6730917",
"0.65645033",
"0.6024779",
"0.59874356",
"0.59572864",
"0.594062",
"0.59373426",
"0.59218955",
"0.5915523",
"0.58486",
"0.5846525",
"0.58308727",
"0.58308727",
"0.58298945",
"0.57946485",
"0.5794172",
"0.576155",
"0.5761208",
"0.5746448... | 0.8528185 | 0 |
Returns the spherical unit vectors e_theta, e_phi and e_r for a point on the sphere determined by latitude and longitude which are defined as they are for earth. | def TIW_(QnmL, FDPT):
XRjd = zawL(QnmL)
XRjd, FDPT = map(oyIN.deg2rad, [XRjd, FDPT])
e2lI = i771(oyIN.cos(FDPT) * oyIN.cos(XRjd), oyIN.sin(FDPT) * oyIN.cos(XRjd), -oyIN.sin(XRjd))
OQjU = i771(-oyIN.sin(FDPT), oyIN.cos(FDPT), 0.0)
aL3w = i771(oyIN.cos(FDPT) * oyIN.sin(XRjd), oyIN.sin(FDPT) * oyIN.sin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vwta(YKHO):\n exwG = YKHO.n_points\n gzVs = oyIN.pi * (3 - 5 ** 0.5)\n aUJK = 2.0 / exwG\n fopC = 0\n epBp = 1 - aUJK / 2\n jNOo = oyIN.zeros((exwG, 3), dtype=oyIN.float64)\n for G1Hx in range(exwG):\n Mkmy = (1 - epBp * epBp) ** 0.5\n jNOo[G1Hx, 0] = epAf.cos(fopC) * Mkmy\n ... | [
"0.7325633",
"0.70859045",
"0.6987234",
"0.6978113",
"0.67892504",
"0.6773655",
"0.6748253",
"0.6649642",
"0.6641169",
"0.66305137",
"0.65999484",
"0.6592247",
"0.6484958",
"0.64817834",
"0.6469016",
"0.64615446",
"0.6451639",
"0.64487547",
"0.6444198",
"0.64413106",
"0.64408... | 0.77280235 | 0 |
Takes a point specified by latitude and longitude and return a new pair of latitude longitude assuming the earth has been rotated around rotation_axis by angle. | def nhLE(QnmL, FDPT, nZWM, YylR):
UqpO = DRaM(QnmL, FDPT, 1.0)
czD_ = ktXI(UqpO, nZWM, YylR)
fc0N, HEiY, bGrB = sCTq(czD_)
return (fc0N, HEiY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxWc(WKvO, LVAh, q7In):\n \"\"\"\n Rotation of a point by an angle theta(rads)\n \"\"\"\n hHOo = WKvO * epAf.cos(q7In) - LVAh * epAf.sin(q7In)\n zK8A = WKvO * epAf.sin(q7In) + LVAh * epAf.cos(q7In)\n return [hHOo, zK8A]",
"def oJAO(zmMM, obag, YylR) -> tuple[float, float]:\n KCHu = -YUNn... | [
"0.6952467",
"0.6895509",
"0.67717046",
"0.66779023",
"0.6636784",
"0.6600045",
"0.659398",
"0.6540315",
"0.65343827",
"0.65305096",
"0.6527319",
"0.6523414",
"0.6523397",
"0.6513714",
"0.6507919",
"0.6496277",
"0.6479455",
"0.6430053",
"0.642785",
"0.6415586",
"0.6393847",
... | 0.6999458 | 0 |
cast(itkLightObject obj) > itkFunctionBaseCID2AD | def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID2AD *':
return _fBW.itkFunctionBaseCID2AD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qnbv(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID2AD *':\n return _fBW.itkFunctionBaseCID2AD_cast(YEnM)",
"def EkH5(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':\n return _fBW.itkFunctionBaseCIF2AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':\n return _fBW... | [
"0.8866507",
"0.8837495",
"0.85096717",
"0.82971734",
"0.8232926",
"0.8131967",
"0.80826783",
"0.8065161",
"0.7995444",
"0.797866",
"0.79603595",
"0.7918827",
"0.7911306",
"0.7847778",
"0.78454494",
"0.77954835",
"0.7770642",
"0.7748823",
"0.77113825",
"0.7711192",
"0.7707293... | 0.8470955 | 3 |
itkFunctionBaseCID2AD_cast(itkLightObject obj) > itkFunctionBaseCID2AD | def Qnbv(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID2AD *':
return _fBW.itkFunctionBaseCID2AD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EkH5(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':\n return _fBW.itkFunctionBaseCIF2AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID2AD *':\n return _fBW.itkFunctionBaseCID2AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':\n return _fBW... | [
"0.9185346",
"0.90344876",
"0.87897",
"0.8590615",
"0.83957887",
"0.83034015",
"0.8278134",
"0.8160229",
"0.810224",
"0.7978557",
"0.78674275",
"0.78600395",
"0.78085405",
"0.7790765",
"0.7782178",
"0.7709095",
"0.76832855",
"0.767081",
"0.7670338",
"0.7659243",
"0.76556724",... | 0.9442422 | 0 |
cast(itkLightObject obj) > itkFunctionBaseCID3AD | def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID3AD *':
return _fBW.itkFunctionBaseCID3AD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nisv(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF3AD *':\n return _fBW.itkFunctionBaseCIF3AD_cast(YEnM)",
"def Urre(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID3AD *':\n return _fBW.itkFunctionBaseCID3AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF3AD *':\n return _fBW... | [
"0.88324267",
"0.8741366",
"0.85443854",
"0.8491522",
"0.8489094",
"0.8302945",
"0.82738376",
"0.82593966",
"0.82560337",
"0.8136558",
"0.8136274",
"0.81336695",
"0.8120244",
"0.8091328",
"0.80858684",
"0.80711854",
"0.8047992",
"0.8042983",
"0.8040107",
"0.8028714",
"0.79903... | 0.8386433 | 5 |
New() > itkFunctionBaseCID3AD Create a new object of the class itkFunctionBaseCID3AD and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, et... | def oW_4(*qIxc, **PECO):
YEnM = JXHL.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = NdGt.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = UBfU.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7503343",
"0.7247053",
"0.70784205",
"0.6998881",
"0.69908303",
"0.6984746",
"0.6920555",
"0.68951625",
"0.68597156",
"0.68476045",
"0.68177617",
"0.67633027",
"0.6760969",
"0.6760862",
"0.6745376",
"0.67321795",
"0.67233",
"0.6710777",
"0.6709772",
"0.6705363",
"0.6695013... | 0.7669367 | 0 |
itkFunctionBaseCID3AD_cast(itkLightObject obj) > itkFunctionBaseCID3AD | def Urre(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID3AD *':
return _fBW.itkFunctionBaseCID3AD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nisv(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF3AD *':\n return _fBW.itkFunctionBaseCIF3AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCID3AD *':\n return _fBW.itkFunctionBaseCID3AD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF3AD *':\n return _fBW... | [
"0.9225702",
"0.8943455",
"0.88204414",
"0.8743213",
"0.87046117",
"0.85989535",
"0.8502609",
"0.84623885",
"0.84131324",
"0.8408451",
"0.8389812",
"0.8369665",
"0.83537906",
"0.8327125",
"0.8320849",
"0.8293511",
"0.8281877",
"0.8252862",
"0.82179505",
"0.8212039",
"0.815773... | 0.9374217 | 0 |
cast(itkLightObject obj) > itkFunctionBaseCIF2AD | def YWvJ(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':
return _fBW.itkFunctionBaseCIF2AD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EkH5(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF2AD *':\n return _fBW.itkFunctionBaseCIF2AD_cast(YEnM)",
"def Nisv(YEnM: 'itkLightObject') -> 'itkFunctionBaseCIF3AD *':\n return _fBW.itkFunctionBaseCIF3AD_cast(YEnM)",
"def JG8A(YEnM: 'itkLightObject') -> 'itkFunctionBaseIF2D *':\n return _fBW.i... | [
"0.88969386",
"0.84401315",
"0.8393598",
"0.83806545",
"0.8307138",
"0.8279845",
"0.8237045",
"0.82317",
"0.81595933",
"0.81502396",
"0.806572",
"0.8022047",
"0.7974151",
"0.7956948",
"0.7943599",
"0.79420906",
"0.793478",
"0.7927172",
"0.7900731",
"0.780046",
"0.77950406",
... | 0.86366487 | 1 |