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 |
|---|---|---|---|---|---|---|
Looks for the given email in the database and returns it | def RC0X(YKHO, hHqS):
jvSB = YKHO.emails.get_head()
while jvSB != None:
if jvSB.data.id == hHqS:
return jvSB.data
jvSB = jvSB.next
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def obVO(D3lj):\n D3lj = mv1M.query.filter_by(email=D3lj).first()\n return D3lj",
"def UHNf(YKHO, D3lj):\n YKHO.cur.execute('SELECT * FROM users WHERE email=%s', (D3lj,))\n CBIr = YKHO.fetch_one()\n YKHO.save()\n if CBIr:\n return YKHO.mapping(CBIr)\n return None",
"def UHNf(Emd4, D... | [
"0.8372804",
"0.82245153",
"0.79675907",
"0.78863156",
"0.78362215",
"0.78136075",
"0.77988255",
"0.77988255",
"0.77479875",
"0.7742869",
"0.77229816",
"0.7691792",
"0.76911384",
"0.7689201",
"0.7648143",
"0.7639212",
"0.762792",
"0.762792",
"0.7617472",
"0.761572",
"0.761378... | 0.0 | -1 |
Test the max integer in a list for positive or negative numbers | def cDN3(YKHO):
YKHO.assertIsNone(qOmX([]))
YKHO.assertAlmostEqual(qOmX([0, 2, 3, 4, 100]), 100)
YKHO.assertAlmostEqual(qOmX([-100, -3, -2, -1, 0]), 0)
YKHO.assertAlmostEqual(qOmX([-100, 30, -2, -1, 0]), 30)
YKHO.assertAlmostEqual(qOmX([-10, -120, -150, -180]), -10)
YKHO.assertAlmostEqual(qOmX([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NK4A(YKHO):\n YKHO.assertEqual(qOmX([-1, -2, -3, -4]), -1)",
"def hnbV(YKHO):\n Aofo = qOmX([-1, -2, -3, -4, -5, -7])\n YKHO.assertEqual(Aofo, -1)",
"def Vmo0(YKHO):\n YKHO.assertEqual(qOmX([1, 2, 3, 4]), 4)\n YKHO.assertEqual(qOmX([1, 2.3, 5.4, -1]), 5.4)\n YKHO.assertEqual(qOmX([1, 2, -... | [
"0.8343189",
"0.82006776",
"0.80488133",
"0.8009633",
"0.8002124",
"0.7963142",
"0.7954978",
"0.79223114",
"0.7921927",
"0.79201144",
"0.78985256",
"0.77849644",
"0.7745641",
"0.7719366",
"0.7624187",
"0.7597968",
"0.75837064",
"0.7562342",
"0.75504494",
"0.7531615",
"0.74857... | 0.7257075 | 37 |
Tell the chessboard how to promote a pawn. 1=QUEEN,2=ROOK,3=KNIGHT,4=BISHOP You can also set promotion to 0 (zero) to reset the promotion value. | def Uc9O(YKHO, z1_4):
YKHO.promotion_value = z1_4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BeQR(YKHO, Acvy, BZN_):\n if BZN_.piece_moved.get_name() == 'Pawn':\n JOwv = dict(q=d3nS, k=WbRz, r=Obsr, b=e74V)\n qfpW = BZN_.piece_moved.get_color()\n if Acvy in JOwv.keys():\n mU9I = JOwv[Acvy](qfpW)\n BZN_.promotion_piece = mU9I\n else:\n raise Value... | [
"0.76523286",
"0.7260997",
"0.7237607",
"0.718037",
"0.7132943",
"0.6846473",
"0.6806002",
"0.6749757",
"0.6520857",
"0.6407169",
"0.6323796",
"0.63109136",
"0.6300173",
"0.60260254",
"0.59360826",
"0.5932629",
"0.59014887",
"0.5890583",
"0.5883503",
"0.5835468",
"0.5775608",... | 0.6465627 | 9 |
Show the user's profile, picture and posts. | def z39Z(NtEF):
NCls = GGod()
N1p7 = NCls.cursor(dictionary=True)
xDcj = 'SELECT * FROM user WHERE username = "' + NtEF + '"'
N1p7.execute(xDcj)
CBIr = N1p7.fetchone()
Tz44 = None
FvVY = None
if CBIr is not None:
Tz44 = CBIr['picture_filename']
N1p7 = GGod().cursor(dictio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OfdD(uJjO):\n z39Z = mv1M.query.get(uJjO)\n c9ua = z39Z.first_name\n zp3f = z39Z.last_name\n qwnb = z39Z.image_url\n lIhF = T97t.query.filter_by(user_id=uJjO)\n return TvZl('user-detail.html', first_name=c9ua, last_name=zp3f, image_url=qwnb, user_id=uJjO, posts=lIhF)",
"def T6Tk(uJjO):\n ... | [
"0.7809952",
"0.7527528",
"0.7324979",
"0.7285922",
"0.7243059",
"0.7147702",
"0.7078041",
"0.706099",
"0.70252514",
"0.6996956",
"0.6986175",
"0.69650525",
"0.6958708",
"0.69540703",
"0.694145",
"0.694123",
"0.6927461",
"0.69066656",
"0.68862414",
"0.6881989",
"0.6868527",
... | 0.74757165 | 2 |
Create and return a `User` with an email. | def lYUQ(YKHO, D3lj, wbiw, jTXt=None):
if D3lj is None:
raise TypeError('Users must have an email address.')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(GLL2())
CBIr.temp_name = wbiw.schema_name
CBIr.save(using=YKHO._db)
CBIr.belongs_to.add(wbiw)
faak, _EYN ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(YKHO, D3lj, jTXt=None, **wdCM):\n if not D3lj:\n raise ValueError(bGrB('Users must have an email address'))\n wdCM['id'] = Ht0T().next_id()\n fEr5 = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=fEr5, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return... | [
"0.8405485",
"0.83752465",
"0.8362354",
"0.8354564",
"0.8354564",
"0.8346082",
"0.83457977",
"0.83405346",
"0.833966",
"0.8338178",
"0.83342886",
"0.83316725",
"0.83252704",
"0.8322072",
"0.83207947",
"0.8316471",
"0.83131564",
"0.8311321",
"0.8311321",
"0.83096033",
"0.83048... | 0.0 | -1 |
Create and return a `User` with an email. | def zcDr(YKHO, D3lj, wbiw, jTXt=None):
if D3lj is None:
raise TypeError('Users must have an email address.')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(GLL2())
CBIr.temp_name = wbiw.schema_name
CBIr.save(using=YKHO._db)
CBIr.belongs_to.add(wbiw)
ZYUI, _EYN ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(YKHO, D3lj, jTXt=None, **wdCM):\n if not D3lj:\n raise ValueError(bGrB('Users must have an email address'))\n wdCM['id'] = Ht0T().next_id()\n fEr5 = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=fEr5, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return... | [
"0.8405485",
"0.83752465",
"0.8362354",
"0.8354564",
"0.8354564",
"0.8346082",
"0.83457977",
"0.83405346",
"0.833966",
"0.8338178",
"0.83342886",
"0.83316725",
"0.83252704",
"0.8322072",
"0.83207947",
"0.8316471",
"0.83131564",
"0.8311321",
"0.8311321",
"0.83096033",
"0.83048... | 0.0 | -1 |
Create and return a `User` with Staff (admin) permissions. | def y4Oc(YKHO, D3lj, jTXt):
if jTXt is None:
raise TypeError('Staff Users must have a password.')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(GLL2())
CBIr.temp_name = 'public'
CBIr.is_staff = True
CBIr.is_active = True
CBIr.is_verified = True
CBIr.is_sup... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CECe(YKHO, D3lj, jTXt):\n CBIr = YKHO.create_user(D3lj, jTXt)\n CBIr.staff = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def CECe(YKHO, D3lj, jTXt=None):\n CBIr = YKHO.create_user(D3lj, password=jTXt, is_staff=True)\n return CBIr",
"def CECe(YKHO, D3lj, jTXt=None):\n CBIr = YKHO.... | [
"0.7858719",
"0.78365064",
"0.7835157",
"0.7829821",
"0.7829821",
"0.7829821",
"0.7828858",
"0.7821306",
"0.78097034",
"0.7773982",
"0.7763009",
"0.7734143",
"0.7729482",
"0.77292186",
"0.77190214",
"0.77190214",
"0.7669479",
"0.7669479",
"0.7608673",
"0.7600536",
"0.7583024"... | 0.7380416 | 25 |
Create and return a `User` with superuser (admin) permissions. | def Zp54(YKHO, D3lj, jTXt):
if jTXt is None:
raise TypeError('Superusers must have a password.')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.temp_name = 'public'
CBIr.is_superuser = True
CBIr.is_staff = True
CBIr.is_active = True
CBIr.is_verif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **wdCM):\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_admin = True\n CBIr.save(using=YKHO.db)\n return CBIr",
"def Zp54(YKHO, D3lj: str, jTXt: str) -> 'MyUser':\n CBIr = YKHO.create_user(email=D3lj, password=jTXt)\n CBIr.is_admin = True\n C... | [
"0.812316",
"0.8096445",
"0.80873156",
"0.8086077",
"0.80788296",
"0.8048775",
"0.8032372",
"0.8019189",
"0.8008747",
"0.80070215",
"0.8004605",
"0.7998097",
"0.79815984",
"0.79815984",
"0.7978467",
"0.7965546",
"0.796245",
"0.7947781",
"0.7947781",
"0.79432595",
"0.79403454"... | 0.0 | -1 |
The application logger is configured. | def WWrj(YKHO):
wiAm = getattr(G9jH, GPtr.LOG_LEVEL)
bo34 = G9jH.getLogger(GPtr.LOGGER_NAME)
bo34.setLevel(wiAm)
DCgT = G9jH.FileHandler(GPtr.LOG_FILENAME)
uaPq = G9jH.Formatter(GPtr.LOG_FORMAT)
DCgT.setFormatter(uaPq)
DCgT.setLevel(wiAm)
bo34.addHandler(DCgT)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n5Ao(YKHO):\n if YKHO.logger is None:\n YKHO.logger = bo34.getDefault(YKHO.app.name)",
"def EsWC(P4t4):\n eduQ(P4t4)",
"def wmdW():\n G9jH.config.dictConfig(GPtr['logging_dict'])",
"def nWQP():\n Ylj8(GPtr['logging'])\n RKD7.info('app logger initialized')\n return",
"def wmdW(P... | [
"0.81820077",
"0.80561924",
"0.7959796",
"0.7909341",
"0.78118324",
"0.77668786",
"0.77456975",
"0.76229715",
"0.75929284",
"0.7579418",
"0.7554992",
"0.75535524",
"0.7510571",
"0.74872005",
"0.74575585",
"0.74499714",
"0.7439307",
"0.74133545",
"0.7409939",
"0.7366436",
"0.7... | 0.7026896 | 49 |
Parse the given XML and use the document element to create a Python instance. xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. default_namespace The L{pyxb.Namespace} instance to use as the default namesp... | def KA8b(k1P2, UyKZ=None, ePoz=None):
if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:
Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)
return E91p(Mf7r.documentElement, default_namespace=UyKZ)
if UyKZ is None:
UyKZ = jFQi.fallbackNamespace()
IjKD = Aw3s.binding.saxer.make_parser(fallback_names... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA8b(k1P2, UyKZ=None, ePoz=None):\n if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:\n Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)\n return E91p(Mf7r.documentElement, default_namespace=UyKZ)\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n IjKD = Aw3s.binding.saxer.make_parser(fal... | [
"0.7405975",
"0.73799187",
"0.73799187",
"0.73799187",
"0.73799187",
"0.73799187",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73720133",
"0.73326063",
"0.6959277",
"0.63715553",
... | 0.73191553 | 18 |
Return a list of the primes up to n (inclusive). | def YefN(exwG):
exwG += 1
rPed = []
vC9B = [True] * exwG
vC9B[0] = vC9B[1] = False
for XP5J in range(2, exwG):
if vC9B[XP5J]:
rPed.append(XP5J)
for YRbF in range(2 * XP5J, exwG, XP5J):
vC9B[YRbF] = False
return rPed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehqz(exwG):\n return [WKvO for WKvO in DghZ().primerange(2, ffYW(exwG))]",
"def ZS6k(exwG):\n T1qg = zdaV(exwG)\n return [XP5J for XP5J in range(exwG + 1) if T1qg[XP5J]]",
"def rPed(exwG):\n YRbF = 3\n rPed = [2]\n while len(rPed) < exwG:\n if T1qg(YRbF):\n rPed.append(Y... | [
"0.8822506",
"0.8732929",
"0.86049294",
"0.8577213",
"0.8573818",
"0.8513706",
"0.8473264",
"0.8460866",
"0.8450087",
"0.84390604",
"0.8321174",
"0.8298024",
"0.8291828",
"0.82649934",
"0.82172287",
"0.8208972",
"0.8195377",
"0.81803685",
"0.81415004",
"0.81300807",
"0.810518... | 0.0 | -1 |
Convert XML derived dict to tf.Example proto. Notice that this function normalizes the bounding box coordinates provided by the raw data. | def m_2V(nPrm, jYte, PU1l, d6pt, vdTK=False):
p4m8 = PU1l
with ZylS.gfile.GFile(p4m8, 'rb') as hOYR:
_gs9 = hOYR.read()
KlzJ = xDSY.BytesIO(_gs9)
LNo8 = uGYG.Image.open(KlzJ)
if LNo8.format != 'JPEG':
raise ValueError('Image format not JPEG')
H5ew = HBct.sha256(_gs9).hexdigest()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AF4J(Ykaq):\n W5Xi = {'image/encoded': ZylS.io.FixedLenFeature([], dtype=ZylS.string, default_value=''), 'image/class/label': ZylS.io.FixedLenFeature([], dtype=ZylS.int64, default_value=-1), 'image/class/text': ZylS.io.FixedLenFeature([], dtype=ZylS.string, default_value='')}\n Ix7e = ZylS.io.VarLenFeatu... | [
"0.6925035",
"0.69242346",
"0.6818545",
"0.67555994",
"0.6416341",
"0.62410146",
"0.6173121",
"0.6098637",
"0.60750574",
"0.60438174",
"0.6041921",
"0.6018542",
"0.5983748",
"0.59731245",
"0.5893755",
"0.589111",
"0.5883771",
"0.58659565",
"0.5863354",
"0.5860797",
"0.5824346... | 0.58746016 | 17 |
mean(iterable_of_numbers) > arithmetic mean of numbers mean(iterable_of_rows) > arithmetic means of columns Return the arithmetic mean of the given numbers or columns. The arithmetic mean is the sum of the data divided by the number of data points. It is commonly called "the average", although it is actually only one o... | def JBMS(nPrm):
UHFx, wjRY = e2Ht(nPrm)
if not UHFx:
raise iUW3('mean of empty sequence is not defined')
return Ty9i.div(wjRY, UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(__n6):\n return sum(__n6) / len(__n6)",
"def m1Dy(k0lF):\n m1Dy = oyIN.zeros(k0lF.shape[0])\n for YRbF in range(k0lF.shape[1]):\n m1Dy += k0lF[:, YRbF]\n m1Dy /= k0lF.shape[1]\n return m1Dy",
"def JBMS(nPrm):\n exwG = len(nPrm)\n if exwG < 1:\n raise ValueError('mean... | [
"0.7081074",
"0.6848577",
"0.6808998",
"0.6741379",
"0.6741379",
"0.6741379",
"0.6741379",
"0.6741379",
"0.6739938",
"0.6727093",
"0.6727093",
"0.6727093",
"0.6727093",
"0.6716129",
"0.6714539",
"0.6701734",
"0.669521",
"0.6674668",
"0.66304",
"0.6626299",
"0.661495",
"0.65... | 0.0 | -1 |
average_deviation(data [, m]) > average absolute deviation of data. Return the average deviation of the sample data from the population centre ``m`` (usually the mean, or the median). Arguments data Nonempty iterable of noncomplex numeric data. m None, or the central location of the population, usually the population m... | def wYkB(nPrm, r8hN=None):
if r8hN is None:
if iter(nPrm) is nPrm:
nPrm = list(nPrm)
r8hN = JBMS(nPrm)
exwG = len(nPrm)
if not exwG:
raise fuW8('')
xmsr = sum((abs(WKvO - r8hN) for WKvO in nPrm))
return xmsr / exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNpo(YKHO, nPrm):\n r8hN = len(nPrm)\n JBMS = sum(nPrm) / r8hN\n z2bo = oyIN.sqrt(sum([(WKvO - JBMS) ** 2 for WKvO in nPrm]) / r8hN)\n return (JBMS, z2bo)",
"def ee6l(nPrm, r8hN=None):\n _sza = I8JS(nPrm, r8hN)\n return Ty9i.sqrt(_sza)",
"def fPjl(nPrm):\n nPrm = [float(WKvO) for WKvO ... | [
"0.69906205",
"0.6679058",
"0.6438308",
"0.6423652",
"0.63995117",
"0.6306417",
"0.62970746",
"0.624831",
"0.6160397",
"0.6150371",
"0.60727173",
"0.6019706",
"0.59969985",
"0.5952198",
"0.59192574",
"0.5896929",
"0.5840502",
"0.5794429",
"0.57823175",
"0.5779531",
"0.5768812... | 0.85944295 | 0 |
Convert ufloat to a string, including None ('') and NaN. | def fDVb(WKvO, FMLJ='{:.12f}'):
if WKvO is None:
return ''
return FMLJ.format(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D24W(BWXx: Optional[float]) -> str:\n if BWXx is None:\n return ''\n return LVs3(BWXx)",
"def pCp0(YAgj):\n return YAgj.apply(lambda WKvO: oyIN.nan if rLdf.isna(WKvO) else str(int(WKvO))).astype(str)",
"def o7KR(BWXx: float) -> str:\n if BWXx == 0.0:\n return '0.0'\n return '{0... | [
"0.7520995",
"0.7434278",
"0.72855663",
"0.69811064",
"0.69368947",
"0.6859198",
"0.6819845",
"0.67190886",
"0.6708725",
"0.6708725",
"0.6708725",
"0.6708725",
"0.6708725",
"0.6708725",
"0.6585812",
"0.6467823",
"0.6453571",
"0.6423052",
"0.636543",
"0.6294729",
"0.6286854",
... | 0.6470837 | 15 |
Get the current policy distribution given the observations. | def ISnw(YKHO, W061: th.Tensor) -> Y69N:
bySB = YKHO.extract_features(W061)
ANWL, bGrB = YKHO.mlp_extractor.forward(bySB)
TCZr = YKHO.mlp_aux_extractor(idx7.cat([W061['task_obs'][:, YKHO.cut_out_aux_head:], bySB[:, YKHO.leatent_feature_dim:]], dim=1).float())
Pl8L = YKHO.aux_net_angle(TCZr)
return (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZxK(YKHO) -> bdIy['outputs.DistributionResponse']:\n return qe4Y.get(YKHO, 'distribution')",
"def Tq8E(YKHO, W061: Tensorable) -> Y69N:\n return YKHO._distr_generator(YKHO._policy_function(W061))",
"def Qabx(YKHO, Hydg):\n C3ST = YKHO._eval_model\n C3ST.weights = YKHO._trainer.model_weights\n ... | [
"0.65023345",
"0.64941627",
"0.6481518",
"0.64523625",
"0.64249426",
"0.6315511",
"0.62471306",
"0.62167025",
"0.6192306",
"0.6164482",
"0.6153818",
"0.6120568",
"0.61068445",
"0.6102698",
"0.6102644",
"0.609066",
"0.60732347",
"0.60612583",
"0.60521346",
"0.60168225",
"0.599... | 0.62620926 | 6 |
Load model from path. | def tyeH(Emd4, pmON: str, begE='auto'):
begE = VeaS(begE)
XVFK = idx7.load(pmON, map_location=begE)
if 'sde_net_arch' in XVFK['data']:
del XVFK['data']['sde_net_arch']
C3ST = Emd4(**XVFK['data'])
C3ST.load_state_dict(XVFK['state_dict'])
C3ST.to(begE)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(Emd4, uqvc):\n pass",
"def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError()",
"def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\n return t2lc.load(eHN... | [
"0.8973284",
"0.8795019",
"0.8717166",
"0.8371062",
"0.83534944",
"0.8327228",
"0.82685995",
"0.8245991",
"0.82355475",
"0.8231722",
"0.82235914",
"0.8218019",
"0.82091457",
"0.8169347",
"0.80944544",
"0.8066025",
"0.8023156",
"0.79971904",
"0.7991505",
"0.79877156",
"0.79852... | 0.0 | -1 |
Test GET /parcels to see if we can get all orders | def z9WF(YKHO):
Ylbp = YKHO.client.get('/api/v1/parcels')
YKHO.assertEqual(Ylbp.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def npQ7(gTqx):\n geh0 = gTqx.get('api/v1/parcels')\n assert geh0.status_code == 200",
"def VHtk(YKHO):\n jsRg = YKHO.client.get('/api/v2/parcels', headers=YKHO.gen_admin_token())\n YKHO.assertEqual(jsRg.status_code, 200)",
"def TygE(YKHO):\n if len(uovc) == 0:\n return ({'msg': 'No parce... | [
"0.7788271",
"0.74344826",
"0.73614836",
"0.72840285",
"0.7255209",
"0.7208707",
"0.71295166",
"0.708382",
"0.6920451",
"0.68731874",
"0.67796785",
"0.6775503",
"0.6767549",
"0.6621255",
"0.6615478",
"0.6610792",
"0.6574614",
"0.6574614",
"0.65361714",
"0.6530084",
"0.651682"... | 0.7439526 | 1 |
Generates a random filename for a file | def yFjF(u54L):
gLiZ = vIwR.ascii_letters
Ux0P = ''.join([tuKI.choice(gLiZ) for bGrB in range(u54L)])
return Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUV2():\n Si_B = tuKI.getrandbits(32)\n return '.random_%s' % Si_B",
"def GK7x(YKHO):\n dISJ = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')\n return '%s%s' % (dISJ, str(tuKI.randrange(1000, 10000)))",
"def HXID(KAOR, Ux0P):\n return 'photos/%s-%s' % (''.join((tuKI.choice(vIwR.ascii_letters +... | [
"0.8688742",
"0.8585736",
"0.84399134",
"0.8414298",
"0.83834535",
"0.8289213",
"0.8204252",
"0.81808966",
"0.8173113",
"0.8150774",
"0.8092048",
"0.7900237",
"0.7879873",
"0.7819789",
"0.7798365",
"0.77766967",
"0.77271074",
"0.77189976",
"0.7718521",
"0.7660377",
"0.7654094... | 0.7574441 | 24 |
Check if a pair of degree and colour sequences for a fundamental square boundary satisfy the conditions for a (1^1,3^k)type 2sphere. Returns as a boolean. | def vrvK(VJng):
mghH = VJng[0]
kn2i = VJng[1]
vC9B = len(mghH)
for YRbF in range(-1, vC9B - 1):
if mghH[YRbF] + mghH[YRbF + 1] == 5:
deVW = True
for r845 in range(1, int(epAf.ceil(vC9B / 2 - 1)) + 1):
if mghH[(YRbF - r845) % vC9B] + mghH[(YRbF + 1 + r845) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGbh(ZQPE, cWFu, MxXY):\n ktCO = YKHO._elementsCount[2]\n w379 = YKHO._elementsCount[0]\n xTp2 = YKHO._elementsCount[1]\n WKvO = YKHO._shield3D.px\n return (ZQPE == ktCO or ZQPE == 0 or cWFu == 0 or (cWFu == w379) or (MxXY == 0) or (MxXY == xTp2)) and WKvO[ZQPE][cWFu][MxXY]",
"def ZGbh(YKHO, Z... | [
"0.6525209",
"0.64002883",
"0.6393726",
"0.63614",
"0.6260947",
"0.6189598",
"0.6159136",
"0.6156989",
"0.606179",
"0.6029195",
"0.59478027",
"0.5946117",
"0.5920127",
"0.59074074",
"0.59055233",
"0.58938354",
"0.58864015",
"0.58796483",
"0.58710235",
"0.58532405",
"0.5836545... | 0.5961143 | 10 |
Get imports that need linking. Yields import. | def J2GQ(YKHO, FlUN):
yield VVXx('__box_abort', 'fn(err) -> noreturn', source=YKHO.__argname__)
yield VVXx('__box_write', 'fn(i32, const u8[size], usize size) -> errsize', source=YKHO.__argname__)
yield pwQG('__box_flush', 'fn(i32) -> err', source=YKHO.__argname__)
for tELg in FlUN.imports:
if t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtR6(YKHO):\n raise NotImplementedError",
"def XzJe(yBcT=None, aSFH=None):\n pass",
"def nwHI(YKHO):\n return YKHO._imports",
"def Zo4O(YKHO, _AKB, FlUN):\n yield (VVXx('__box_%s_postinit' % FlUN.name, 'fn(const u32*) -> err32', source=YKHO.__argname__), False)\n yield (VVXx('__box_%s_push... | [
"0.676854",
"0.665418",
"0.64329135",
"0.6431765",
"0.6425404",
"0.64233416",
"0.6339552",
"0.6339552",
"0.6328791",
"0.63119316",
"0.6297913",
"0.62321144",
"0.6216737",
"0.6163493",
"0.60857356",
"0.6085528",
"0.6080886",
"0.60751045",
"0.60683197",
"0.59697133",
"0.5969713... | 0.68159324 | 0 |
compute the exponential moving average of the asset price, ema_t, and the standard deviation of all ema. | def UAhn(YKHO, dQgO):
qN0q = dQgO.price
YKHO.ema_t = YKHO.ema_t + YKHO.alpha * (qN0q - YKHO.ema_t)
YKHO.all_ema.append(YKHO.ema_t)
if len(YKHO.all_ema) > 1000:
YKHO.sigma_t = oyIN.std(YKHO.all_ema[-1000:], ddof=1)
else:
YKHO.sigma_t = oyIN.std(YKHO.all_ema, ddof=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FwwX(YKHO, nPrm, KnxT):\n if len(nPrm) < 2 * KnxT:\n raise ValueError('data is too short')\n Z9rn = 2.0 / (KnxT + 1)\n wDC1 = YKHO.sma(nPrm[-KnxT * 2:-KnxT], KnxT)\n for BWXx in nPrm[-KnxT:]:\n wDC1 = Z9rn * BWXx + (1 - Z9rn) * wDC1\n return wDC1",
"def FwwX(nPrm, pQ4c):\n ret... | [
"0.7413208",
"0.72582537",
"0.70809853",
"0.70378256",
"0.69339967",
"0.67878115",
"0.67291015",
"0.6710496",
"0.6651599",
"0.66407377",
"0.6630991",
"0.65980786",
"0.65715605",
"0.6521779",
"0.649403",
"0.64915323",
"0.64894",
"0.6469209",
"0.6434703",
"0.64334965",
"0.64285... | 0.7304476 | 1 |
find_devices (lookup_names=True, service_name=None, duration=8, flush_cache=True) Call this method to initiate the device discovery process lookup_names set to True if you want to lookup the userfriendly names for each device found. service_name set to the name of a service you're looking for. only devices with a servi... | def ytXZ(YKHO, jpJ7=True, WbTE=8, QIv9=True):
if YKHO.is_inquiring:
raise X9Pe('Already inquiring!')
YKHO.lookup_names = jpJ7
YKHO.sock = q3uf(YKHO.device_id)
xDpu = cwPQ.hci_filter_new()
cwPQ.hci_filter_all_events(xDpu)
cwPQ.hci_filter_set_ptype(xDpu, cwPQ.HCI_EVENT_PKT)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def run_discovery(SELA, yxaP, vYBr):\n async with Q5jH.timeout(vYBr):\n oxOY = await _vCl()\n for Csk6 in oxOY:\n if Csk6.name == yxaP:\n SELA.append(Csk6.address)",
"def CUJ_(YKHO):\n while YKHO._active:\n try:\n YfpN = lAl7.discover_devices(... | [
"0.65512496",
"0.6512273",
"0.62175554",
"0.5877115",
"0.5802369",
"0.575414",
"0.57159704",
"0.5692706",
"0.5682182",
"0.56423765",
"0.56216264",
"0.56115705",
"0.55888754",
"0.5571331",
"0.5543759",
"0.55175734",
"0.55002564",
"0.5482956",
"0.54599124",
"0.54327327",
"0.541... | 0.75317436 | 0 |
Get the file position. | def WeOw(YKHO):
return YKHO._fd.tell() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO):\n YKHO.pos = YKHO.f.tell()\n return YKHO.pos",
"def uKWF(YKHO):\n YKHO.position_index = YKHO.file_obj.tell()\n return YKHO.position_index",
"def AGb1(YKHO):\n return YKHO.eFile.tell()",
"def vlwY(WpAY: int) -> int:\n pass",
"def WeOw(YKHO) -> int:\n assert YKHO._fh is n... | [
"0.88326204",
"0.8775211",
"0.84362483",
"0.82389706",
"0.771188",
"0.7667573",
"0.75957584",
"0.7539605",
"0.75201833",
"0.75147843",
"0.7426032",
"0.7416995",
"0.74015415",
"0.7335546",
"0.7331784",
"0.73280424",
"0.72683555",
"0.72479796",
"0.7229682",
"0.7229682",
"0.7229... | 0.0 | -1 |
Read a file into a string | def T68i(IznC):
nPrm = None
with open(IznC, 'rU') as Gcbu:
nPrm = Gcbu.read()
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUEI(IznC):\n with open(IznC) as eHNT:\n return eHNT.read()",
"def sklK(FYKK):\n with open(FYKK, 'r') as eHNT:\n return eHNT.read()",
"def xas4(Ux0P):\n eHNT = open(Ux0P, 'r')\n KCHu = eHNT.read()\n eHNT.close()\n return KCHu",
"def GPk7(Ux0P):\n with open(Ux0P, 'r') as... | [
"0.8449059",
"0.839226",
"0.8361758",
"0.83196205",
"0.8304612",
"0.82358384",
"0.82060534",
"0.817155",
"0.81525964",
"0.8152211",
"0.81178504",
"0.8115519",
"0.8104445",
"0.8079647",
"0.807662",
"0.8075283",
"0.8044419",
"0.8030033",
"0.79890305",
"0.7978917",
"0.7976255",
... | 0.79806954 | 19 |
The node unique id. | def id(YKHO):
return YKHO.model.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnes(YKHO):\n return YKHO.__node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO... | [
"0.88942087",
"0.88040876",
"0.88040876",
"0.88040876",
"0.88040876",
"0.88040876",
"0.8745087",
"0.86669534",
"0.86160433",
"0.8541577",
"0.8535106",
"0.8535106",
"0.8535106",
"0.8535106",
"0.8517584",
"0.84302783",
"0.8375813",
"0.82633215",
"0.811738",
"0.80419487",
"0.797... | 0.0 | -1 |
The parent node graph. | def pNZh(YKHO):
return YKHO._graph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO) -> o7DN:\n return YKHO._parent",
"def temm(YKHO):\n return YKHO._parent_node",
"def K6SK(YKHO) -> tcHI:\n ...",
"def ACnF(YKHO, YVTg):\n return [_AKB for _AKB in YKHO.G.predecessors(YVTg)]",
"def rKzm(YKHO):\n return YKHO._dependency_graph[YKHO.id]",
"def tz1P(YKHO):\n pm... | [
"0.7745874",
"0.77415586",
"0.7539311",
"0.734251",
"0.73123187",
"0.7302251",
"0.72834295",
"0.7261832",
"0.72387373",
"0.7225132",
"0.720043",
"0.7199789",
"0.71886283",
"0.7179177",
"0.7132929",
"0.7132929",
"0.7132929",
"0.71290576",
"0.7113538",
"0.7112484",
"0.7104855",... | 0.0 | -1 |
Return the node model. | def C3ST(YKHO):
return YKHO._model | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO) -> _q8o:\n return YKHO._model",
"def lp26(YKHO):\n return YKHO._holder_node._node_mobj",
"def YrZb(YKHO):\n with YKHO._rl:\n return YKHO._e.get_model()",
"def Cxij():\n return PSNY('MODEL_TREE')",
"def YrZb(YKHO):\n return YKHO._m",
"def YrZb(YKHO):\n return YKHO.g... | [
"0.8324077",
"0.7067463",
"0.6952644",
"0.694696",
"0.6904797",
"0.6889325",
"0.68187875",
"0.68094504",
"0.6770316",
"0.6758688",
"0.6728285",
"0.6723369",
"0.6718873",
"0.6715031",
"0.67126584",
"0.67126584",
"0.67022675",
"0.6700883",
"0.6700883",
"0.66973835",
"0.66952455... | 0.6655923 | 33 |
Returns the node color in (red, green, blue) value. | def qfpW(YKHO):
Mkmy, Oa1e, Fg_i, jzdc = YKHO.model.color
return (Mkmy, Oa1e, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD6c(qfpW):\n Mkmy = int(qfpW['r'] * 255)\n Oa1e = int(qfpW['g'] * 255)\n Fg_i = int(qfpW['b'] * 255)\n jzdc = int(qfpW['a'] * 255)\n return (Mkmy, Oa1e, Fg_i, jzdc)",
"def PICn(YKHO) -> AzJI[int, int, int]:\n return YKHO.color",
"def qfpW(YKHO) -> AzJI[int, int, int]:\n return getattr... | [
"0.77393484",
"0.755166",
"0.7523385",
"0.74780166",
"0.74663424",
"0.7428427",
"0.7368924",
"0.7328916",
"0.7328916",
"0.7305835",
"0.729694",
"0.72655445",
"0.72642297",
"0.7260995",
"0.72600394",
"0.72600394",
"0.7255237",
"0.7255237",
"0.72500235",
"0.7249651",
"0.724649"... | 0.73206306 | 9 |
Returns the selected state of the node. | def se2i(YKHO):
YKHO.model.selected = YKHO.view.isSelected()
return YKHO.model.selected | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.cur_node",
"def ja6o(YKHO):\n return YKHO.cur_nodes",
"def QTBn(YKHO):\n return YKHO._node_instance.state",
"def ja6o(YKHO, b62R, d6pt):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.options['state']",
"def ja6o(YKHO):\n return YKHO.options['state']"... | [
"0.79355603",
"0.7370839",
"0.7281547",
"0.7106058",
"0.70646656",
"0.7027946",
"0.7027123",
"0.6991493",
"0.6982576",
"0.698088",
"0.69761205",
"0.6942973",
"0.6890502",
"0.6890502",
"0.6890502",
"0.6890502",
"0.6890502",
"0.6890502",
"0.6890502",
"0.6883621",
"0.6883621",
... | 0.0 | -1 |
Returns all the node properties. | def C9U5(YKHO):
lhy8 = YKHO.model.to_dict[YKHO.id].copy()
lhy8['id'] = YKHO.id
return lhy8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iso7(YKHO):\n return YKHO.properties_nodes",
"def bVNW(YKHO):\n for exwG in YKHO.nodes:\n yield dict(exwG)",
"def Iso7(YKHO):\n return YKHO.get_children(refs=s6Cf.ObjectIds.HasProperty, nodeclassmask=s6Cf.NodeClass.Variable)",
"def Y9i4(YKHO):\n W38H = []\n for Q6kx in YKHO.nodes:\n... | [
"0.86283004",
"0.8242084",
"0.78545904",
"0.76738405",
"0.7506459",
"0.74934936",
"0.7492592",
"0.7442484",
"0.74408805",
"0.7411363",
"0.7411363",
"0.74039996",
"0.74026287",
"0.74013656",
"0.73334265",
"0.7319897",
"0.72762305",
"0.72739005",
"0.72562295",
"0.72562295",
"0.... | 0.0 | -1 |
Get the node X position in the node graph. | def QOxj(YKHO):
return YKHO.model.pos[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HPWF(YKHO):\n return YKHO._position[1]",
"def Ktcp(YKHO):\n return YKHO._position_x",
"def Ktcp(YKHO):\n return YKHO._position_x",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def DHlK(YKHO):\n return YKHO.positionX",
"def nIKw(YKHO):\n return YKHO._coordinate.get_x()",
"def dQgj(YKH... | [
"0.7668189",
"0.75360423",
"0.75360423",
"0.7500364",
"0.74433935",
"0.7396873",
"0.73864406",
"0.7359484",
"0.73264605",
"0.73264605",
"0.7300174",
"0.7251327",
"0.7245877",
"0.72448385",
"0.72052234",
"0.7147669",
"0.71140534",
"0.70998204",
"0.70998204",
"0.7058444",
"0.70... | 0.7340703 | 8 |
Adds an information about the presence of backing vocals. So update gender to mixed. | def sunL():
AQkS = 'E:/_These/DataSets/Recisio/audio/'
eY3t = "UPDATE recisio SET gender = 'mixed' WHERE id = "
WB1o = 'UPDATE recisio SET tag_back_voc = 1 WHERE id = '
for d6pt, YhDe in enumerate(Hy7s.listdir(AQkS)):
print(d6pt)
if Hy7s.path.isdir(AQkS + YhDe):
SLBz = Hy7s.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggkf(YKHO, EE3v):\n if 'gender:' + EE3v not in YKHO.properties:\n return\n DrTd = YKHO.findlexicalForm(YKHO.lexicalEntryID, YKHO.keymap['ontolex:LexicalEntry'], YKHO.language_id)\n if DrTd:\n YKHO.insertFormProperty(DrTd, YKHO.properties['gender:' + EE3v], True)",
"def WWNa(YKHO, QQ0T)... | [
"0.61075133",
"0.59887016",
"0.57485795",
"0.5645978",
"0.5636509",
"0.56353706",
"0.5627742",
"0.55563086",
"0.5485657",
"0.5462775",
"0.54223204",
"0.53842515",
"0.53618574",
"0.53611374",
"0.5359994",
"0.53173536",
"0.53173536",
"0.53173536",
"0.53052044",
"0.5271116",
"0.... | 0.4794552 | 61 |
Check if a given expense exists in the list of expenses. | def cd5o(gQVK, Xzt4, CMJb):
for mJwe in gQVK:
if RYFQ(mJwe) == Xzt4 and FRul(mJwe) == CMJb:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SRWP(gQVK, CMJb):\n for mJwe in gQVK:\n if FRul(mJwe) == CMJb:\n return True\n return False",
"def wMMA(YKHO, LEXu, _x43):\n return any([Bk63.id == LEXu.id for Bk63 in _x43])",
"def taAK(YKHO, AGSV, lQdw):\n for Ty9i in lQdw:\n if Ty9i.desc == AGSV:\n return ... | [
"0.6794362",
"0.6068568",
"0.5954163",
"0.5824768",
"0.581182",
"0.5804308",
"0.5738217",
"0.5724584",
"0.5716418",
"0.5652953",
"0.56356937",
"0.5635463",
"0.56303406",
"0.5598018",
"0.559355",
"0.5577989",
"0.5564925",
"0.5516694",
"0.547125",
"0.546661",
"0.5442286",
"0.... | 0.7139189 | 0 |
Check if a given apartment number exists in the list of expenses. | def xA9O(gQVK, Xzt4):
for mJwe in gQVK:
if RYFQ(mJwe) == Xzt4:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cd5o(gQVK, Xzt4, CMJb):\n for mJwe in gQVK:\n if RYFQ(mJwe) == Xzt4 and FRul(mJwe) == CMJb:\n return True\n return False",
"def qWPL(gQVK, Xzt4):\n return [mJwe for mJwe in gQVK if RYFQ(mJwe) == Xzt4]",
"def woqS(BQ5d):\n if BQ5d in EpWO:\n return True\n else:\n ... | [
"0.73358357",
"0.59628993",
"0.5776197",
"0.56955886",
"0.5695011",
"0.5606729",
"0.5592902",
"0.553875",
"0.5512442",
"0.54813844",
"0.5438002",
"0.54303575",
"0.54133546",
"0.5378071",
"0.53641325",
"0.5360757",
"0.535981",
"0.53570044",
"0.53153324",
"0.5311183",
"0.529560... | 0.7511012 | 0 |
Add a new expense at the end of the transactions list. | def HOuI(gQVK, Xzt4, CMJb, Z5kt):
gQVK.append(nGg6(Xzt4, CMJb, Z5kt))
return gQVK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwEq(YKHO):\n if not YKHO.ie.add(YKHO.ie_info):\n iTTW('Could not add income/expense account')",
"def wJNm(YKHO, wgfO: list, vdyd: bool=True):\n print('New expenses added to {}:'.format(YKHO.category))\n for DumB in wgfO:\n YKHO.expenses.add(DumB[0], DumB[1])\n YKHO.withdraw(Dum... | [
"0.74879795",
"0.71205366",
"0.7118936",
"0.70646167",
"0.67340446",
"0.65343606",
"0.65068895",
"0.6467255",
"0.6457229",
"0.6425134",
"0.6341755",
"0.63308346",
"0.62824655",
"0.6276657",
"0.62688076",
"0.6204728",
"0.60833454",
"0.6061409",
"0.60427254",
"0.6038711",
"0.59... | 0.74434084 | 1 |
Remove expenses that have a certain apartment number. | def ybRW(gQVK, Xzt4):
gQVK[:] = [tTpl for tTpl in gQVK if RYFQ(tTpl) != Xzt4]
return gQVK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMDm(gQVK, nfxJ, Hzvg):\n gQVK[:] = [tTpl for tTpl in gQVK if RYFQ(tTpl) <= nfxJ or RYFQ(tTpl) >= Hzvg]\n return gQVK",
"def qWPL(gQVK, Xzt4):\n return [mJwe for mJwe in gQVK if RYFQ(mJwe) == Xzt4]",
"def IuTA(RFsY, j_xO):\n FSYx.clear_apartment(RFsY, j_xO)\n print(f'Apartment {j_xO} has bee... | [
"0.6437744",
"0.5730768",
"0.5672758",
"0.530456",
"0.522112",
"0.51885504",
"0.5167947",
"0.51521146",
"0.51512754",
"0.50973994",
"0.50712115",
"0.50479114",
"0.5029145",
"0.5023611",
"0.49929395",
"0.4988669",
"0.49645817",
"0.49475774",
"0.49371412",
"0.49262246",
"0.4921... | 0.7151235 | 0 |
Return the sum of the expenses for a given expense_type. | def tV3f(gQVK, CMJb):
return sum([ZXl_(tTpl) for tTpl in gQVK if FRul(tTpl) == CMJb]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eKC4(RFsY, CMJb):\n fKOT = FSYx.sum_expense_type(RFsY, CMJb)\n print(f\"The total amount for the expenses of type '{CMJb}' is {fKOT}.\")",
"def AQdd():\n SO8l = nJ9I\n MeqV = 0\n u54L = len(SO8l)\n for ZfUD in range(u54L):\n MeqV += int(SO8l[ZfUD][2])\n return MeqV",
"def ErTk(Y... | [
"0.8037224",
"0.66674477",
"0.63414955",
"0.6203352",
"0.60944015",
"0.6091253",
"0.60716856",
"0.6004209",
"0.59677315",
"0.5931911",
"0.57870966",
"0.5738845",
"0.5687539",
"0.56613904",
"0.56502444",
"0.56391",
"0.5510024",
"0.5504079",
"0.54648054",
"0.54321724",
"0.54248... | 0.8708661 | 0 |
Test that we correctly raise a CalledProcessError when ffmpeg fails. To do so, mock ffmpeg using a simple executable shell script that succeeds when called with no arguments (so that it gets registered by `isAvailable`), but fails otherwise, and add it to the $PATH. | def F2Nv(TBXe, Ehsq):
with TBXe.as_cwd():
Ehsq.setenv('PATH', '.:' + Hy7s.environ['PATH'])
DGJk = GkAb(str(TBXe), 'ffmpeg')
DGJk.write_text('#!/bin/sh\n[[ $@ -eq 0 ]]\n')
Hy7s.chmod(str(DGJk), 493)
with trZe.raises(Yn3K.CalledProcessError):
jqR9().save('test.mpeg'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UP_P(ZqHk, Ehsq):\n D8Si = ZqHk / 'test audio.wav'\n RDuA.copy('test/test_files/audio_sample.wav', D8Si)\n\n def WWdQ(*qIxc, **B2fa):\n raise Yn3K.CalledProcessError(1, 'ffmpeg')\n Ehsq.setattr(Yn3K, 'call', WWdQ)\n with trZe.raises(Exception):\n rrLg.make_waveform(str(D8Si))",
"... | [
"0.76634556",
"0.7471455",
"0.7062279",
"0.6972345",
"0.690094",
"0.68636787",
"0.6763883",
"0.6752767",
"0.67307794",
"0.6718758",
"0.6663417",
"0.6646091",
"0.6591918",
"0.6534949",
"0.65086037",
"0.6492472",
"0.6435343",
"0.642755",
"0.6424586",
"0.63681316",
"0.6367325",
... | 0.78927493 | 0 |
Returns the given HTML with all tags stripped. This is a copy of django.utils.html.strip_tags, except that it adds some whitespace in between replaced tags to make sure words are not erroneously concatenated. | def PKBK(BWXx):
return ZbWC.sub('<[^>]*?>', ' ', Qsf5(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as8h(YKHO, Nlxd=True):\n l5Ny = ZbWC.sub('<[^>]+>', '', YKHO.html)\n if Nlxd:\n l5Ny = ' '.join(l5Ny.split())\n return l5Ny",
"def wWmY(YKHO, _R2e, raOZ=('img', 'a')):\n if FdPd is not None:\n WhY1 = raOZ\n l5Ny = FdPd(_R2e, ignore_tags=WhY1, indent_width=4, page_width=80)\n ... | [
"0.81569284",
"0.80392784",
"0.7999847",
"0.79959416",
"0.79564303",
"0.78049576",
"0.777875",
"0.777723",
"0.77759314",
"0.776473",
"0.7762702",
"0.7759663",
"0.7729481",
"0.77267754",
"0.77223206",
"0.7702562",
"0.76963156",
"0.76728815",
"0.7665806",
"0.7659711",
"0.765926... | 0.7143019 | 79 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.title | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81892824",
"0.80928355",
"0.7958657",
"0.7849373",
"0.78411466",
"0.7667056",
"0.7577242",
"0.7566466",
"0.7561851",
"0.7548706",
"0.7483726",
"0.7465762",
"0.74535877",
"0.74535877",
"0.7448269",
"0.74476784",
"0.74476784",
"0.74476784",
"0.74132323",
"0.7407112",
"0.7399... | 0.0 | -1 |
Returns the url to access a detail record for this blog. | def hlzF(YKHO):
return gxEw('blogs-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxeK(YKHO):\n return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk])",
"def iLuo(YKHO):\n raise NotImplementedError('Please define a detail_url fixture')",
"def IxeK(YKHO, ehDb, _sei, *qIxc, **YSA3):\n return YKHO.plugin.build_plain_url('#', 'detail', ehDb.actor_id, str(_sei), *qIxc, **YSA3)... | [
"0.7569861",
"0.7124373",
"0.7088281",
"0.69274116",
"0.69047374",
"0.6892129",
"0.6889076",
"0.6800671",
"0.6756794",
"0.67494166",
"0.6733202",
"0.6725576",
"0.6719011",
"0.6710008",
"0.6703092",
"0.6696996",
"0.6677102",
"0.6677102",
"0.6671738",
"0.6670758",
"0.6620522",
... | 0.71294254 | 1 |
String for representing the Model object. | def zAg0(YKHO):
return f'{YKHO.id}, {YKHO.name}' | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81892824",
"0.80928355",
"0.7958657",
"0.7849373",
"0.78411466",
"0.7667056",
"0.7577242",
"0.7566466",
"0.7561851",
"0.7548706",
"0.7483726",
"0.7465762",
"0.74535877",
"0.74535877",
"0.7448269",
"0.74476784",
"0.74476784",
"0.74476784",
"0.74132323",
"0.7407112",
"0.7399... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.comment | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81892824",
"0.80928355",
"0.7958657",
"0.7849373",
"0.78411466",
"0.7667056",
"0.7577242",
"0.7566466",
"0.7561851",
"0.7548706",
"0.7483726",
"0.7465762",
"0.74535877",
"0.74535877",
"0.7448269",
"0.74476784",
"0.74476784",
"0.74476784",
"0.74132323",
"0.7407112",
"0.7399... | 0.0 | -1 |
Calculate the standardized moment of order `c` for the variable` x` with respect to `c`. | def H7EX(nPrm=None, Es0b=None, _mSQ=None, xqoZ=None, T4Wy=3, P_MT=0):
if xqoZ is None:
xqoZ = JBMS(variable=Es0b, weights=_mSQ)
Ylbp = bndV(data=nPrm, variable=Es0b, weights=_mSQ, order=T4Wy, param=xqoZ, ddof=P_MT)
Ylbp /= I8JS(data=nPrm, variable=Es0b, weights=_mSQ, ddof=P_MT) ** (T4Wy / 2)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVhx(Z9rn):\n exwG = len(Z9rn)\n JFti = oyIN.average(Z9rn)\n U5LG = oyIN.std(Z9rn) / oyIN.sqrt(exwG)\n BA8N = oyIN.average(Z9rn ** 2)\n D8tM = oyIN.std(Z9rn ** 2) / oyIN.sqrt(exwG)\n gXLH = eQSh.kurtosis(Z9rn, fisher=False)\n Bcwd = -oyIN.copy(Z9rn)\n SVRO = oyIN.append(Z9rn, Bcwd)\n ... | [
"0.641633",
"0.6389343",
"0.6106515",
"0.58564436",
"0.56720734",
"0.5663284",
"0.56313676",
"0.5617934",
"0.56052697",
"0.558752",
"0.5533373",
"0.55055505",
"0.5492843",
"0.54921156",
"0.54921156",
"0.5462279",
"0.5460316",
"0.54490155",
"0.5429628",
"0.5422073",
"0.5415494... | 0.63518256 | 2 |
Calculate the mean of `variable` given `weights`. | def JBMS(nPrm=None, Es0b=None, _mSQ=None):
if nPrm is not None:
Es0b = nPrm[Es0b].values
if _mSQ is not None:
_mSQ = nPrm[_mSQ].values
if oyIN.any(oyIN.isnan(Es0b)):
or8S = ~oyIN.isnan(Es0b)
Es0b = Es0b[or8S]
if _mSQ is not None:
_mSQ = _mSQ[or8S]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gq7O(WKvO, _mSQ, tpio=None, FfbO=True):\n kBVK = mMs7(WKvO, _mSQ, tpio)\n if not kBVK:\n raise ValueError('Unexpected dimensions for variable {0}: {1}\\n\\nAverage over dimensions: {2}'.format(WKvO.name, WKvO, tpio))\n if FfbO:\n _mSQ = mSJX(WKvO, _mSQ, kBVK)\n t2RH = (WKvO * _mSQ).su... | [
"0.761281",
"0.7499501",
"0.7406692",
"0.73352295",
"0.72794807",
"0.72456366",
"0.72456366",
"0.7226528",
"0.7132508",
"0.7117283",
"0.7113536",
"0.71019113",
"0.71019113",
"0.7051049",
"0.69585586",
"0.6943688",
"0.6940124",
"0.6939415",
"0.6883871",
"0.6872513",
"0.6838456... | 0.7740216 | 0 |
Calculate the coefficient of variation of a `variable` given weights. The coefficient of variation is the square root of the variance of the incomes divided by the mean income. It has the advantages of being mathematically tractable and is subgroup decomposable, but is not bounded from above. | def RcjL(nPrm=None, Es0b=None, _mSQ=None):
if nPrm is not None:
Es0b = nPrm[Es0b].values
if _mSQ is not None:
_mSQ = nPrm[_mSQ].values
if _mSQ is None:
_mSQ = oyIN.repeat([1], len(Es0b))
return JBMS(variable=Es0b, weights=_mSQ) / I8JS(variable=Es0b, weights=_mSQ) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBcH(__n6, CHNM=False):\n return mJX1(__n6, CHNM) / JBMS(__n6)",
"def gx9n(_mSQ, PVmR):\n ZmDx = _mSQ * XTiz.sqrt(PVmR)\n return ZmDx / sum(ZmDx)",
"def I8JS(nPrm=None, Es0b=None, _mSQ=None, P_MT=0):\n if _mSQ is None:\n _mSQ = oyIN.repeat([1], len(Es0b))\n return bndV(data=nPrm, vari... | [
"0.6619019",
"0.64923346",
"0.6453963",
"0.64104986",
"0.6376103",
"0.6360998",
"0.63356847",
"0.63356847",
"0.6331457",
"0.6251325",
"0.6160608",
"0.61149126",
"0.59983873",
"0.5871934",
"0.5856125",
"0.58536035",
"0.5829275",
"0.58097607",
"0.57882893",
"0.5764915",
"0.5764... | 0.8060458 | 0 |
Returns the asymmetry coefficient of a sample. | def uRwD(nPrm=None, Es0b=None, _mSQ=None):
if nPrm is not None:
Es0b = nPrm[Es0b].values
if _mSQ is not None:
_mSQ = nPrm[_mSQ].values
return H7EX(variable=Es0b, weights=_mSQ, order=3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C2F6(YKHO, mvm2):\n return mvm2[..., 2]",
"def PUvA(YKHO, mvm2):\n return mvm2[..., 3]",
"def sFcG(YKHO, mvm2):\n return mvm2[1]",
"def nrOS(YKHO, Tcon, xF06=None):\n if xF06 is None:\n xF06 = YKHO.weighting_method(Tcon)\n return oyIN.sum(xF06 * YKHO.contrast(Tcon, YKHO.centers, YKH... | [
"0.59888977",
"0.5849646",
"0.57313615",
"0.5543204",
"0.54595226",
"0.5440649",
"0.53985673",
"0.5364787",
"0.5354503",
"0.53314525",
"0.5314644",
"0.5306852",
"0.52997535",
"0.5294007",
"0.526859",
"0.52545077",
"0.5249443",
"0.5245253",
"0.5239433",
"0.5233561",
"0.5230793... | 0.0 | -1 |
Sample variance of `variable`, calculated as the secondorder central moment. | def DHvk(nPrm=None, Es0b=None, _mSQ=None, uOe2=None):
if nPrm is None:
nPrm = E8Ql(x=Es0b, weights=_mSQ)
Es0b = 'x'
_mSQ = 'weights'
def ifkm(jQ3Z):
return bndV(data=jQ3Z, variable=Es0b, weights=_mSQ, param=JBMS(WKvO))
return nPrm.groupby(uOe2).apply(ifkm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(mvm2):\n Nc6L = oyIN.mean(mvm2)\n return sum([(YRbF - Nc6L) ** 2 for YRbF in mvm2])",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(nPrm=None, Es0b=None, _mSQ=None, P_MT=0):\n if _mSQ is None:\n _mSQ = oyIN.repeat([1], len(Es0b))\n ... | [
"0.74890196",
"0.7222254",
"0.7183105",
"0.7165467",
"0.7066742",
"0.7064118",
"0.70194477",
"0.6837507",
"0.68237984",
"0.6820268",
"0.67138433",
"0.66867495",
"0.66834474",
"0.665938",
"0.66164154",
"0.6612741",
"0.659063",
"0.65757614",
"0.65734816",
"0.65734816",
"0.65734... | 0.0 | -1 |
Return string representing the stage object. | def RWiz(YKHO):
EtM5 = fRx7(id=543, distance_meters=12345)
assert EtM5.__repr__() == '<Stage id={}>'.format(EtM5.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return qQXR.dumps({'Frame': str(YKHO.frame), 'Plugin': str(YKHO.plugin), 'Score': str(YKHO.score), 'State': str(YKHO.state)})",
"def mWFP(YKHO):\n return YKHO.stage['name']",
"def EtM5(YKHO):\n return YKHO.obj",
"def zAg0(YKHO):\n return str(YKHO.timestamp) + ' ' + YKHO.conveyor... | [
"0.69910294",
"0.6873249",
"0.68416387",
"0.67217153",
"0.67213964",
"0.66176975",
"0.65844715",
"0.65839636",
"0.65782577",
"0.65604675",
"0.6551514",
"0.6542586",
"0.653322",
"0.65226245",
"0.6520593",
"0.65137625",
"0.65137625",
"0.65080357",
"0.6500489",
"0.64959294",
"0.... | 0.0 | -1 |
The function generates randomized list of letters for game. (int) > (list(str)) | def WMxl(mLGw):
ZRxh = [Acvy(JSRc) for bGrB in range(mLGw)]
for d6pt in ZRxh:
if ZRxh.count(d6pt) > 2:
WMxl(mLGw)
return ZRxh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sow7() -> x1iM[str]:\n import string, random\n return [random.choice(string.ascii_letters) for WKvO in range(20)]",
"def sow7() -> x1iM[str]:\n return [tuKI.choice(vIwR.ascii_letters.lower()) for bGrB in range(20)]",
"def sow7() -> x1iM[str]:\n return [str(chr(tuKI.randint(97, 122))) for WKvO i... | [
"0.81957585",
"0.81532615",
"0.8058006",
"0.79104084",
"0.79104084",
"0.7832338",
"0.7639657",
"0.7505281",
"0.7471873",
"0.7419627",
"0.7323578",
"0.7262855",
"0.71286225",
"0.7101155",
"0.70885074",
"0.70225805",
"0.7007578",
"0.6971864",
"0.6965964",
"0.6930174",
"0.692042... | 0.0 | -1 |
Return a dict with keys 'fks', 'uniques, and 'indexes' indicating the number of foreign keys, unique constraints, and indexes on `table`.`column`. The `fk_to` argument is a 2tuple specifying the expected foreign key relationship's (table, column). | def Psn1(YKHO, tyNF, iVRZ, bPwy):
with UzPC.cursor() as N1p7:
gkIT = UzPC.introspection.get_constraints(N1p7, tyNF)
BWz1 = {'fks': 0, 'uniques': 0, 'indexes': 0}
for Z9rn in gkIT.values():
if Z9rn['columns'] == [iVRZ]:
if Z9rn['foreign_key'] == bPwy:
BWz1['fks'] +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZDPB(lvDT, tyNF):\n HCIF = DqEl({'database': 'INFORMATION_SCHEMA'})\n N1p7 = HCIF.cursor(buffered=True)\n xDcj = \"SELECT kcu.COLUMN_NAME, kcu.REFERENCED_TABLE_NAME, kcu.REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc LEFT JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu USING(CONSTRAI... | [
"0.59103405",
"0.5879692",
"0.5641869",
"0.56308556",
"0.5393462",
"0.5358872",
"0.53110033",
"0.5218924",
"0.5207231",
"0.5170582",
"0.5164761",
"0.5134843",
"0.5111719",
"0.506845",
"0.50604236",
"0.50420904",
"0.5023615",
"0.50106174",
"0.49683043",
"0.49622184",
"0.495051... | 0.7085902 | 0 |
Fail if the FK constraint on `model.Meta.db_table`.`column` to `expected_fk_table`.id doesn't exist. | def xkwT(YKHO, C3ST, iVRZ, JBKb, Jyyj='id'):
if not UzPC.features.can_introspect_foreign_keys:
return
gkIT = YKHO.get_constraints(C3ST._meta.db_table)
Fs3r = None
for iQG7 in gkIT.values():
if iQG7['columns'] == [iVRZ] and iQG7['foreign_key']:
Fs3r = iQG7['foreign_key']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sb3Z(YKHO):\n S6Fl = i2Ac.objects.create(baz=10)\n TUKh.objects.create(bar=S6Fl, baz=10)\n with YKHO.assertRaises(yXsM):\n TUKh.objects.create(bar=S6Fl, baz=12)",
"def BKGy(YKHO):\n YKHO.assertRaises(i48E.exc.IntegrityError, YKHO.dal.iodu_study_descriptor, study_id=123, descriptor_id=123, ... | [
"0.68278164",
"0.679976",
"0.63142544",
"0.6275188",
"0.6275188",
"0.6259862",
"0.6212205",
"0.62002534",
"0.6153124",
"0.6149241",
"0.6147458",
"0.6137621",
"0.6107401",
"0.6107341",
"0.609033",
"0.60693574",
"0.6016265",
"0.5992746",
"0.59560865",
"0.59325904",
"0.5929187",... | 0.79855084 | 0 |
Tests removing and adding index_together constraints that include a foreign key. | def W9Gr(YKHO):
with UzPC.schema_editor() as bx_5:
bx_5.create_model(o763)
bx_5.create_model(dl5x)
YKHO.assertEqual(dl5x._meta.index_together, ())
with UzPC.schema_editor() as bx_5:
bx_5.alter_index_together(dl5x, [], [['author', 'title']])
with UzPC.schema_editor() as bx_5:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z4dk(YKHO):\n with UzPC.schema_editor() as bx_5:\n bx_5.create_model(o763)\n bx_5.create_model(N49F)\n nAB6 = w4Cq(o763, foBr)\n nAB6.set_attributes_from_name('author')\n bx_5.add_field(N49F, nAB6)\n YKHO.assertEqual(dl5x._meta.unique_together, ())\n with UzPC.schema... | [
"0.70318997",
"0.67289597",
"0.6684747",
"0.6551941",
"0.6459047",
"0.644856",
"0.6295405",
"0.62899023",
"0.61847293",
"0.6176005",
"0.61718166",
"0.61181056",
"0.6079105",
"0.6075783",
"0.6042027",
"0.6036267",
"0.5993097",
"0.5885097",
"0.5845224",
"0.58438355",
"0.581937"... | 0.7656138 | 0 |
Foreign keys without database level constraint don't prevent the field they reference from being renamed in an atomic block. | def LHQe(YKHO):
class Foo(wOed):
Jyyj = LRGF(max_length=255, unique=True)
class Meta:
tKz9 = 'schema'
class Bar(wOed):
L70P = w4Cq(TUKh, foBr, to_field='field', db_constraint=False)
class Meta:
tKz9 = 'schema'
YKHO.isolated_local_models = [TUKh, i2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwOV(YKHO):\n\n class Foo(wOed):\n Jyyj = LRGF(max_length=255, unique=True)\n\n class Meta:\n tKz9 = 'schema'\n\n class Bar(wOed):\n L70P = w4Cq(TUKh, foBr, to_field='field', db_constraint=False)\n\n class Meta:\n tKz9 = 'schema'\n YKHO.isolated_local_... | [
"0.77773744",
"0.6676906",
"0.65347797",
"0.64678204",
"0.6414145",
"0.62714636",
"0.59313124",
"0.58667976",
"0.585813",
"0.5835099",
"0.58122903",
"0.578716",
"0.57807004",
"0.57618976",
"0.57090575",
"0.569494",
"0.56567365",
"0.5575736",
"0.5572925",
"0.5558698",
"0.55429... | 0.79023254 | 0 |
Get ZWave configuration for migration. | def s3yT(ajET, UzPC, tO9_):
GPtr = ajET.data[YgeC]
UzPC.send_result(tO9_[yHil], {kIKP: GPtr[kIKP], amJH: GPtr[amJH]}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n return YKHO._wosedon_cfg",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD():\n return OlaR",
"async def get_legacy_zwave_mi... | [
"0.6252427",
"0.6240311",
"0.6240311",
"0.6240311",
"0.622516",
"0.6222394",
"0.6207111",
"0.62033147",
"0.6167702",
"0.61598",
"0.61124575",
"0.61040115",
"0.61001873",
"0.61001873",
"0.61001873",
"0.61001873",
"0.60672504",
"0.60672504",
"0.60654914",
"0.6034773",
"0.600985... | 0.6284803 | 0 |
Find kth largest element in the list | def nwFd(ezWE, G1Hx):
if G1Hx > len(ezWE):
return None
csQL = ezWE[0]
LFlW = [vC9B for vC9B in ezWE if vC9B < csQL]
InF8 = [tTpl for tTpl in ezWE if tTpl == csQL]
_tIi = [Mkmy for Mkmy in ezWE if Mkmy > csQL]
if G1Hx <= len(_tIi):
return nwFd(_tIi, G1Hx)
elif G1Hx - len(_tIi)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwFd(YKHO, xYvp, G1Hx):\n return sorted(xYvp)[len(xYvp) - G1Hx]",
"def YyWG(vC9B, G1Hx):\n if len(vC9B) < G1Hx:\n return -9999999999999\n P8oC = vC9B[0]\n XTKJ = [YRbF for YRbF in vC9B[1:] if YRbF >= P8oC]\n if len(XTKJ) == G1Hx - 1:\n return P8oC\n elif len(XTKJ) > G1Hx - 1:\... | [
"0.8453472",
"0.80518836",
"0.79406875",
"0.7924744",
"0.7888875",
"0.78767014",
"0.7771627",
"0.7755192",
"0.76742965",
"0.76034325",
"0.7429871",
"0.7428243",
"0.7425498",
"0.7332401",
"0.7292025",
"0.7283611",
"0.7257966",
"0.72569597",
"0.71692044",
"0.7118295",
"0.711225... | 0.754444 | 10 |
Displays register page for student. | def yPVh(YKHO):
YKHO.display_widget(zi27(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FnxF():\n return TvZl('student_register.html')",
"def gr_i(QePW):\n return _1tc(QePW, 'student/register.html')",
"def gr_i():\n return TvZl('register.html', title='Register')",
"def gr_i():\n return TvZl('registration.php', title='Register')",
"def gr_i():\n return TvZl('register.html')"... | [
"0.80855983",
"0.80243725",
"0.7625041",
"0.75613976",
"0.73777646",
"0.73684007",
"0.73652226",
"0.7339086",
"0.73262197",
"0.7319212",
"0.73026395",
"0.7300002",
"0.7294151",
"0.7272131",
"0.72415453",
"0.7241116",
"0.7241116",
"0.7220825",
"0.72150946",
"0.7153996",
"0.712... | 0.7248996 | 14 |
Changes password of current user. | def faAE(YKHO, BfIX, uGpu):
YKHO.widget.set_waiting_state()
Kw0i = YKHO.client.encode_password(BfIX)
vjqe = YKHO.client.encode_password(uGpu)
Aofo = YKHO.client.server.change_password(YKHO.client.user['rowid'], Kw0i, vjqe)
if not Aofo[0]:
YKHO.widget.set_failed_state(Aofo[1])
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxCE(YKHO) -> None:\n rn8m = AOO4.getpass('Current password: ')\n uGpu = YKHO.enter_password('New password: ', confirm=True)\n YKHO.client.change_user_password(rn8m, uGpu)\n print(\"Password changed. Next, use 'avn user login' to log in again using your new password.\")",
"def RtSS(YKHO, NtEF, jT... | [
"0.8408844",
"0.8205128",
"0.8159268",
"0.81464714",
"0.8066806",
"0.8054715",
"0.80546415",
"0.8029916",
"0.8010606",
"0.80064595",
"0.79629165",
"0.79365534",
"0.79092115",
"0.7905456",
"0.78894705",
"0.7871594",
"0.7855235",
"0.78429717",
"0.783838",
"0.7798461",
"0.779478... | 0.0 | -1 |
Check if any aliens have reached the bottom of the screen. | def lB0y(dlM1, eQSh, Vjhr, C7MP, oeTy, WFC2):
VXOZ = Vjhr.get_rect()
for SaI9 in oeTy.sprites():
if SaI9.rect.bottom >= VXOZ.bottom:
GR2R(dlM1, eQSh, Vjhr, C7MP, oeTy, WFC2)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMxK(YKHO):\n VXOZ = YKHO.__screen.get_rect()\n for oeTy in YKHO.__aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break",
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >... | [
"0.85132694",
"0.85099596",
"0.8487465",
"0.84656227",
"0.83234066",
"0.8311237",
"0.8223973",
"0.7991027",
"0.7973312",
"0.7951677",
"0.7932076",
"0.7917815",
"0.7917169",
"0.79152954",
"0.7907241",
"0.78994054",
"0.7868777",
"0.7867884",
"0.7860351",
"0.78547686",
"0.785098... | 0.75841445 | 30 |
Drop the entire fleet and change the fleet's direction. | def kS1e(dlM1, oeTy):
for SaI9 in oeTy.sprites():
SaI9.rect.y += dlM1.alien_drop_speed
dlM1.fleet_direction *= -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ez7i(YKHO):\n for oeTy in YKHO.__aliens.sprites():\n oeTy.rect.y += oeTy.getDropSpeed()\n YKHO.__settings.set_fleet_direction(YKHO.__settings.get_fleet_direction() * -1)",
"def e4Wr(YKHO):\n for kEC0 in YKHO.planes.sprites():\n kEC0.rect.y += YKHO.settings.fleetDropSpeed\n YKHO.sett... | [
"0.7601646",
"0.7389588",
"0.7149325",
"0.71376735",
"0.7040783",
"0.6942187",
"0.6942187",
"0.6942187",
"0.6897573",
"0.67461616",
"0.66579515",
"0.66579515",
"0.66579515",
"0.6624609",
"0.66192275",
"0.6598437",
"0.65600324",
"0.65483266",
"0.65483266",
"0.65483266",
"0.654... | 0.6149605 | 39 |
Respond appropriately if any aliens have reached an edge. | def DjwX(dlM1, oeTy):
for SaI9 in oeTy.sprites():
if SaI9.check_edge():
kS1e(dlM1, oeTy)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def DjwX(dlM1, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(dlM1, SaI9)\n break",
"def YSO3(SaI9, tJm0):\n for oeTy... | [
"0.6984041",
"0.69294894",
"0.6899679",
"0.6861707",
"0.680606",
"0.67507493",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.67085266",
"0.6663426",
"0.6662474",
"0.66411155",
"0.66348934",
"0.6623258",
"0.6... | 0.6738637 | 6 |
Return humannormalized score of the entry. This normalization is well documented in the Rainbow paper. | def F9VG(bTKY):
Bzh9 = rFRb({'env-title': bTKY['env-title'], 'algo-title': 'Human', 'env-variant': bTKY['env-variant']})
_Rr_ = rFRb({'env-title': bTKY['env-title'], 'algo-title': 'Random', 'env-variant': bTKY['env-variant']})
if len(Bzh9) > 1:
print("[WARNING] More than one human entries were found... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lplp(YKHO) -> None:\n return None",
"def NkkI(YKHO):\n import time\n yKcO = time.time()\n p1kx = YKHO.to_standard_note()\n p1kx = p1kx.correct_chord_octave()\n p1kx = p1kx.normalize_instrument_names()\n p1kx = p1kx.split_too_long_chords(8)\n p1kx = p1kx.remove_empty_chords()\n retu... | [
"0.6561777",
"0.6268491",
"0.6263536",
"0.6263536",
"0.6124488",
"0.6106188",
"0.59829134",
"0.59364545",
"0.5932019",
"0.591951",
"0.59132975",
"0.59039694",
"0.59025544",
"0.58818716",
"0.58610594",
"0.5829234",
"0.5829234",
"0.57501405",
"0.5746666",
"0.5729813",
"0.572808... | 0.7675525 | 0 |
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents). | def fHT3(rfNN):
return rfNN.getScore() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)",
"def fHT3(rfNN):\n return rfNN.getScore()",
"def fHT3(rfNN: GameState):\n re... | [
"0.8074065",
"0.80530727",
"0.80530727",
"0.79373443",
"0.76776224",
"0.7661183",
"0.76432186",
"0.7634139",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.75935465",
"0.7503451",
"0.74889964",
... | 0.7553666 | 24 |
Return a new dict with specified keys excluded from the origional dict | def XbYF(Csk6, DNHh):
U5bT = {}
for H5ew, BWXx in Csk6.items():
if H5ew not in DNHh:
U5bT.update({H5ew: BWXx})
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWjj(weiJ, D1du):\n return {H5ew: BWXx for H5ew, BWXx in weiJ.items() if H5ew not in D1du}",
"def tVok(YKHO, *sjXb):\n return HGG_(**{G1Hx: Ty9i for G1Hx, Ty9i in list(YKHO.items()) if G1Hx not in sjXb})",
"def hPSZ(DumB: Dict[str, Any], Pi2M: Set[str]) -> cuzp[str, ImMB]:\n return {G1Hx: Ty9i for... | [
"0.76863414",
"0.76592064",
"0.75535464",
"0.75388074",
"0.7496499",
"0.7491974",
"0.74081904",
"0.7384394",
"0.7357163",
"0.7355163",
"0.73271936",
"0.7277841",
"0.72345674",
"0.7155132",
"0.70675117",
"0.7044577",
"0.7042103",
"0.7016708",
"0.69732887",
"0.6922935",
"0.6870... | 0.74637634 | 6 |
Return a jsonfrinedly representation of the object. | def MNRr(YKHO):
return {'ssid': YKHO.ssid, 'dscp': YKHO.dscp, 'amsdu_aggregation': YKHO.amsdu_aggregation, 'quantum': YKHO.quantum} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pz3A(YKHO):\n pass",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO, default=lambda z1Rg: z1Rg.__dict__, sort_keys=True, indent=4)",
"def oXAR(YEnM):\n return qQXR.dumps(YEnM)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def ... | [
"0.81438464",
"0.8074801",
"0.79848415",
"0.7971533",
"0.7971533",
"0.7971533",
"0.7971533",
"0.7971533",
"0.7971533",
"0.79677826",
"0.7956345",
"0.7948987",
"0.7948839",
"0.7942746",
"0.7911611",
"0.7907938",
"0.7886574",
"0.7886574",
"0.7886574",
"0.78820443",
"0.78820443"... | 0.0 | -1 |
Vacant Area calculated as smu of premises leasable and dont occupied ares | def pSlG(YKHO):
return sum(list(map(lambda XP5J: XP5J.area_size, YKHO.premises.filter(T8ck(is_leasable=True) & T8ck(is_occupied=False))))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def te0X(VnzS):\n pass",
"def GagE(YKHO):\n zOn6 = sum([YKHO.vertex[YRbF][1] * YKHO.vertex[YRbF - 1][0] for YRbF in range(1, YKHO.count)])\n qYa6 = sum([YKHO.vertex[YRbF][0] * YKHO.vertex[YRbF - 1][1] for YRbF in range(1, YKHO.count)])\n return (zOn6 - qYa6) / 2",
"def P7XM(YKHO):\n return sum(l... | [
"0.675572",
"0.66355485",
"0.66007185",
"0.65384704",
"0.64753133",
"0.6356914",
"0.6338517",
"0.63373643",
"0.63050026",
"0.6229183",
"0.62235147",
"0.6215658",
"0.61894566",
"0.6167022",
"0.6158484",
"0.61239755",
"0.6115781",
"0.6109013",
"0.6097022",
"0.6082006",
"0.60803... | 0.77484006 | 0 |
Returns the training examples from the data directory. | def rNg5(YKHO, h_xa, Ux0P=None):
if h_xa is None:
h_xa = ''
bo34.info('****** Get train examples ******')
Ux0P = Hy7s.path.join(h_xa, Ux0P)
return YKHO._create_examples(Ux0P, 'train') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNg5(YKHO, h_xa):\n return YKHO._create_examples(YKHO._read_tsv(Hy7s.path.join(h_xa, 'train.tsv'), quotechar='\"'), 'train')",
"def rNg5(YKHO, h_xa):\n return YKHO._create_example(YKHO._read_data(h_xa, 'train'), 'train')",
"def rNg5(YKHO, h_xa):\n raise NotImplementedError()",
"def rNg5(YKHO, h_... | [
"0.86082023",
"0.8604322",
"0.8385841",
"0.8385841",
"0.8385841",
"0.8385841",
"0.83233136",
"0.83233136",
"0.83233136",
"0.83233136",
"0.83233136",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469",
"0.8289469... | 0.8429604 | 2 |
Returns the evaluation example from the data directory. | def JdXm(YKHO, h_xa, Ux0P=None):
if h_xa is None:
h_xa = ''
bo34.info('****** Get dev examples ******')
Ux0P = Hy7s.path.join(h_xa, Ux0P)
return YKHO._create_examples(Ux0P, 'dev') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjSZ():\n return 'examples/'",
"def Ohx9(IznC):\n XP5J = Hy7s.path.join('data', IznC)\n return Hy7s.path.abspath(n9WL(XP5J))",
"def Ohx9(IznC):\n XP5J = Hy7s.path.join(Hy7s.pardir, Hy7s.pardir, 'examples', 'mayavi', 'data', IznC)\n return Hy7s.path.abspath(n9WL(XP5J))",
"def fWt_(j3aw):\n ... | [
"0.6880035",
"0.68744266",
"0.63581973",
"0.6293021",
"0.6281965",
"0.60709906",
"0.6023178",
"0.59825337",
"0.5973692",
"0.5935515",
"0.5899219",
"0.589573",
"0.5881018",
"0.58581173",
"0.58581173",
"0.58581173",
"0.58581173",
"0.58248997",
"0.5822932",
"0.57998586",
"0.5798... | 0.0 | -1 |
Returns the evaluation example from the data directory. | def syTc(YKHO, h_xa, Ux0P=None):
if h_xa is None:
h_xa = ''
bo34.info('****** Get test examples ******')
Ux0P = Hy7s.path.join(h_xa, Ux0P)
return YKHO._create_examples(Ux0P, 'test') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjSZ():\n return 'examples/'",
"def Ohx9(IznC):\n XP5J = Hy7s.path.join('data', IznC)\n return Hy7s.path.abspath(n9WL(XP5J))",
"def Ohx9(IznC):\n XP5J = Hy7s.path.join(Hy7s.pardir, Hy7s.pardir, 'examples', 'mayavi', 'data', IznC)\n return Hy7s.path.abspath(n9WL(XP5J))",
"def fWt_(j3aw):\n ... | [
"0.68805736",
"0.6873258",
"0.6357242",
"0.6291298",
"0.62817734",
"0.6069683",
"0.602284",
"0.5980009",
"0.59727883",
"0.59362245",
"0.58991355",
"0.589656",
"0.5881814",
"0.58585817",
"0.58585817",
"0.58585817",
"0.58585817",
"0.5825518",
"0.58212686",
"0.5797687",
"0.57971... | 0.5704837 | 33 |
Returns tokenized answer spans that better match the annotated answer. | def tWG5(oM5K, lfHv, YAcn, b0j5, AWHy, fEI5=False, ACI9=False):
Ssmk = ' '.join(b0j5.tokenize(AWHy))
if ACI9:
Ssmk = b0j5.convert_tokens_to_string(Ssmk)
for rejw in range(lfHv, YAcn + 1):
for g5RM in range(YAcn, rejw - 1, -1):
DfjE = ' '.join(oM5K[rejw:g5RM + 1])
if A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EbZZ(l5Ny, wJDW):\n jB5X = -1.0\n FOCM = [0, len(l5Ny) - 1]\n for yKcO, gw6l in enumerate(l5Ny):\n if gw6l not in wJDW:\n continue\n for Os4s in range(len(l5Ny) - 1, yKcO - 1, -1):\n yiGU = VKB1(l5Ny[yKcO:Os4s + 1], wJDW)\n if yiGU > jB5X:\n ... | [
"0.74880993",
"0.70998424",
"0.6990991",
"0.6939368",
"0.69177806",
"0.6901647",
"0.6887053",
"0.6884997",
"0.6884997",
"0.6831969",
"0.66902",
"0.65346116",
"0.64813554",
"0.6409579",
"0.6322167",
"0.62667394",
"0.61920905",
"0.6179166",
"0.61616945",
"0.60902774",
"0.608681... | 0.6880689 | 9 |
Compute softmax probability over raw logits. | def M49J(cCrA):
if not cCrA:
return []
jB5X = None
for p1kx in cCrA:
if jB5X is None or p1kx > jB5X:
jB5X = p1kx
KPVz = []
mq4h = 0.0
for p1kx in cCrA:
WKvO = epAf.exp(p1kx - jB5X)
KPVz.append(WKvO)
mq4h += WKvO
BFeB = []
for p1kx in KP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)",
"def N93T(KeL5):\n if not isinstance(KeL5, oyIN.ndarray):\n KeL5 = oyIN.array(KeL5)\n KeL5 = KeL5 - oyIN.max(KeL5)\n lM0O = oyIN.exp(KeL5)\n BFeB = lM0O / oyIN.sum(lM0O)\n return BFeB",
"... | [
"0.7975179",
"0.79405093",
"0.7923335",
"0.77984947",
"0.7767575",
"0.7740698",
"0.7730096",
"0.76653856",
"0.76301587",
"0.76228523",
"0.76087004",
"0.75959945",
"0.75939935",
"0.75836784",
"0.7582952",
"0.7579877",
"0.75787944",
"0.75761867",
"0.7573354",
"0.7571961",
"0.75... | 0.0 | -1 |
Delete a document from the project/account | def kSdD(YKHO, ekCf, yZn6):
YKHO.endpoint = 'projects/{0}/{1}.json'.format(ekCf, yZn6)
QePW = YKHO.delete(YKHO.construct_url())
if QePW.status_code == 204:
return True
return Jle_() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gc_R(YKHO, C13M):\n YKHO.delete_documents([C13M])",
"def gc_R(YKHO, bNKA: Union[Project, int], C13M: Union[Document, int]) -> bool:\n pass",
"def PTpj(YKHO, QePW, _sei, Jd_h):\n SCWY = dthn(_sei)\n return BOVF.delete_application_document(Jd_h, SCWY, QePW.user)",
"def PTpj(YKHO, A97Q):\n de... | [
"0.80791074",
"0.80060405",
"0.77149713",
"0.7687013",
"0.7612316",
"0.7501608",
"0.744482",
"0.7436132",
"0.734296",
"0.73415035",
"0.73398495",
"0.7234217",
"0.72178274",
"0.72129947",
"0.7197786",
"0.71643645",
"0.7141544",
"0.7139984",
"0.7109211",
"0.7074703",
"0.7074416... | 0.6915892 | 27 |
Returns the angle of rotation in radians. | def I4y7(YKHO):
return YKHO.__theta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def caho(YKHO):\n return YKHO.rotDegrees",
"def I4y7(YKHO):\n c9Iw = YKHO.__sa\n S4IS = YKHO.__ea\n if abs(S4IS - c9Iw) < 1e-10:\n bkx7 = 360.0\n elif S4IS > c9Iw:\n bkx7 = S4IS - c9Iw\n else:\n bkx7 = 360.0 - c9Iw + S4IS\n return bkx7",
"def YylR(YKHO):\n q7In = fH... | [
"0.80335224",
"0.7892159",
"0.7885122",
"0.78402376",
"0.7838644",
"0.78372085",
"0.7782293",
"0.7782293",
"0.77805144",
"0.7778756",
"0.7768726",
"0.77397984",
"0.7738768",
"0.77335346",
"0.7646171",
"0.7645811",
"0.7642408",
"0.7600855",
"0.7600855",
"0.75993836",
"0.758874... | 0.7862012 | 3 |
Returns a rotation quaternion. | def Klif(YKHO):
return YKHO.__q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slpS(YKHO):\n return R5H8(YKHO)",
"def MC9L(YKHO):\n [rKSe, H2HG, xTkQ] = YKHO.get_orientation_rpy()\n _Jov = BmLB.quaternion_from_euler(xTkQ, H2HG, rKSe, 'rzyx')\n return _Jov",
"def Cwvw(YKHO) -> R5H8:\n if YKHO.rotation is None:\n YKHO.rotation = YKHO.rig.get_final_control_node_rot... | [
"0.8027874",
"0.7559118",
"0.7471635",
"0.74581945",
"0.7436135",
"0.7431941",
"0.7395959",
"0.7395959",
"0.7395959",
"0.7395959",
"0.7389921",
"0.7346908",
"0.7321072",
"0.72714865",
"0.7121462",
"0.7103362",
"0.7099899",
"0.7096836",
"0.70176554",
"0.7001786",
"0.69733393",... | 0.8074811 | 0 |
Performs a rotation of point 'p' around the previously specified axis of rotation by the previoulsy specifed angle. | def N0Pp(YKHO, XP5J):
if not M1rV.isPoint3D(XP5J):
raise k95I('Input must be an instance of Point3D')
sqRO = R5H8(0, XP5J.x, XP5J.y, XP5J.z)
fpgW = YKHO.__q * sqRO * YKHO.__q.conj()
return M1rV(fpgW.getI(), fpgW.getJ(), fpgW.getK()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(YKHO, XP5J, YylR):\n YKHO.translate(-XP5J.x(), -XP5J.y())\n YKHO.centre_rotate(YylR)\n YKHO.translate(XP5J.x(), XP5J.y())",
"def N0Pp(XP5J, YylR):\n idx7 = epAf.radians(YylR)\n return (epAf.cos(idx7) * XP5J[0] + epAf.sin(idx7) * XP5J[1], -(epAf.sin(idx7) * XP5J[0] - epAf.cos(idx7) * XP5J[... | [
"0.76530933",
"0.7516323",
"0.70220715",
"0.70016277",
"0.70000505",
"0.68462795",
"0.6823029",
"0.6804859",
"0.67932856",
"0.6751543",
"0.6734336",
"0.6683665",
"0.6683665",
"0.6668231",
"0.666679",
"0.6664943",
"0.66621965",
"0.66621965",
"0.66621965",
"0.6638181",
"0.66190... | 0.66430455 | 19 |
Eliminate values from peers of each box with a single value. Go through all the boxes, and whenever there is a box with a single value, eliminate this value from the set of values of all its peers. Note this has the side effect of modifying the dictionary passed in. | def zJeh(hkxX):
for FlUN, BWXx in hkxX.items():
if len(BWXx) == 1:
for zgct in Qmsz[FlUN]:
eXtg = hkxX[zgct].replace(BWXx, '')
zUz_(hkxX, zgct, eXtg)
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJeh(hkxX):\n for H5ew, BWXx in k5Tt.items():\n WoGD = BWXx\n qc5B = hkxX.get(H5ew)\n if len(qc5B) == 1:\n for jYLz in WoGD:\n tGyn = hkxX.get(jYLz)\n if len(tGyn) > 1:\n QZp6 = tGyn.replace(qc5B, '')\n hkxX[... | [
"0.8198694",
"0.8157184",
"0.814805",
"0.81443083",
"0.81122965",
"0.8101873",
"0.80658615",
"0.80284226",
"0.7994874",
"0.7994874",
"0.7994874",
"0.7994523",
"0.79937464",
"0.7982685",
"0.7968277",
"0.79663086",
"0.79663086",
"0.7966305",
"0.7903393",
"0.78973883",
"0.788899... | 0.8054935 | 7 |
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box. | def rIvV(hkxX):
for PXGI in P5oN:
for Ko6S in jRFz:
S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]]
if len(S5Zo) == 1:
zUz_(hkxX, S5Zo[0], Ko6S)
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alHn(hkxX):\n for PXGI in dzni:\n jGiX = dict()\n for FlUN in PXGI:\n if hkxX[FlUN] in jGiX.keys():\n jGiX[hkxX[FlUN]].append(FlUN)\n else:\n jGiX[hkxX[FlUN]] = [FlUN]\n for LTzJ in jGiX.keys():\n qWPs = len(LTzJ)\n ... | [
"0.6292063",
"0.6071799",
"0.6001779",
"0.5952822",
"0.5921268",
"0.5887847",
"0.5887042",
"0.5867517",
"0.58332306",
"0.57646257",
"0.5737324",
"0.5708907",
"0.5689225",
"0.5649549",
"0.5622903",
"0.56059587",
"0.55879563",
"0.5585429",
"0.55830705",
"0.5579911",
"0.5571843"... | 0.55884606 | 16 |
Checks that Sudoku puzzle does not contain squares without numbers. | def KBfv(hkxX):
for BWXx in hkxX.values():
if not BWXx:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pC1V(FWzL):\n for rdlD in FWzL:\n Dhj_ = list(range(1, len(FWzL[0]) + 1))\n for mLGw in rdlD:\n if mLGw not in Dhj_:\n return False\n Dhj_.remove(mLGw)\n for exwG in range(len(FWzL[0])):\n Dhj_ = list(range(1, len(FWzL[0]) + 1))\n for rdlD ... | [
"0.74183273",
"0.72500396",
"0.7189432",
"0.71829194",
"0.7100648",
"0.7066159",
"0.6962257",
"0.67991114",
"0.678978",
"0.6783433",
"0.6750833",
"0.67169565",
"0.67066455",
"0.6688677",
"0.6662643",
"0.6647606",
"0.66436917",
"0.6625401",
"0.6624936",
"0.66125405",
"0.659416... | 0.0 | -1 |
Iterate eliminate() and only_choice(). If at some point, there is a box with no available values, return False. If the sudoku is solved, return the sudoku. If after an iteration of both functions, the sudoku remains the same, return the sudoku. | def yimF(hkxX):
S6OK = hTta(hkxX)
while True:
zJeh(hkxX)
rIvV(hkxX)
WqoA(hkxX)
a_uN = hTta(hkxX)
if S6OK == a_uN:
break
if KBfv(hkxX):
return False
S6OK = a_uN
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(hkxX):\n hkxX = yimF(hkxX)\n if hkxX is False:\n return False\n if all((len(hkxX[KCHu]) == 1 for KCHu in oUSw)):\n return hkxX\n exwG, KCHu = min(((len(hkxX[KCHu]), KCHu) for KCHu in oUSw if len(hkxX[KCHu]) > 1))\n for BWXx in hkxX[KCHu]:\n dkel = hkxX.copy()\n d... | [
"0.7341648",
"0.73374444",
"0.7332545",
"0.7285481",
"0.7213825",
"0.7200678",
"0.7166893",
"0.7165284",
"0.7160961",
"0.71593344",
"0.7134344",
"0.71311325",
"0.7106451",
"0.7103299",
"0.70988804",
"0.70842546",
"0.70794106",
"0.7068761",
"0.706635",
"0.7063624",
"0.7047733"... | 0.68658483 | 38 |
takes a dictionary containing offering information for various courses, and constructs a list that can be used to construct a dropdown menu for a schedule (room, day, prof, etc.); one thing that needs to be done is to disambiguate course offerings if there are multiple ones that have the same name | def B6bO(sTYc):
AAbi = []
YWwK = []
for H5ew, BWXx in sTYc.items():
if BWXx['name'] not in YWwK:
YWwK.append(BWXx['name'])
else:
AAbi.append(BWXx['name'])
Ep7A = []
for H5ew, BWXx in sTYc.items():
if BWXx['name'] not in AAbi:
Ep7A.append({'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YuN_(gf_J):\n SGPK = gf_J['queryResult']['parameters']\n Ypoe = SGPK.get('courses', None)\n if Ypoe is None:\n return 'No courses specified'\n elif isinstance(Ypoe, str):\n Ypoe = [Ypoe]\n else:\n pass\n XFMb = [ZbWC.sub('\\\\s', '', BLfq).upper() for BLfq in Ypoe]\n k... | [
"0.62972885",
"0.62372416",
"0.6106094",
"0.585915",
"0.5773475",
"0.57608736",
"0.56953037",
"0.5691675",
"0.5675859",
"0.56489694",
"0.56048137",
"0.5597834",
"0.5588396",
"0.5572934",
"0.55496395",
"0.5538421",
"0.55275196",
"0.552464",
"0.5511487",
"0.5494551",
"0.5464738... | 0.7492758 | 0 |
returns the coordinates for the lines that form the schedule grid in the form [[xbegin, ybegin, xend, yend],[...],[...]]; this function is very similar to create_schedule_grid, except it creates a schedule where the cells for the various hours can be different heights. | def jCSL(b6Gq, AlNb, HpPc):
zWaR = []
JLCI = []
M9aE = []
Fg_i = b6Gq['border']
MNLC = b6Gq['height']
hD0V = b6Gq['width']
Pl2a = b6Gq['width_hour_names']
vxJW = b6Gq['width_day']
k0si = b6Gq['number_hour_blocks']
LT9x = b6Gq['height_hour_block_dict']
ylGz = b6Gq['height_day_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def trDg(b6Gq, uRhV, wuNX, vttK, ROt1):\n Fg_i = b6Gq['border']\n Pl2a = b6Gq['width_hour_names']\n vxJW = b6Gq['width_day']\n LT9x = b6Gq['height_hour_block_dict']\n ylGz = b6Gq['height_day_names']\n hcc8 = b6Gq['start_time']\n IgBd = Fg_i + Pl2a + vttK * vxJW\n jS87 = uRhV[ROt1 - hcc8 + 1... | [
"0.67915225",
"0.6734631",
"0.6702266",
"0.6653721",
"0.64845383",
"0.6389956",
"0.6374134",
"0.63602453",
"0.6347058",
"0.6340517",
"0.6295482",
"0.62803686",
"0.6219717",
"0.6170043",
"0.61507154",
"0.610888",
"0.61015666",
"0.60576123",
"0.6056766",
"0.6056766",
"0.6056766... | 0.6365133 | 7 |
Display user info page | def T6Tk(uJjO):
if not uJjO.isdigit():
Dwep('User does not exist')
return vKnz('/')
CBIr = mv1M.query.get(uJjO)
if not CBIr:
Dwep('User does not exist')
return vKnz('/')
e4x7 = NCls.session.query(H4Ej.title, t0o2.score).join(t0o2).filter_by(user_id=uJjO).all()
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VCCg(uJjO):\n if 'user_id' not in cuiw:\n Dwep('Please log in.', category='warning')\n return vKnz('/login')\n CBIr = mv1M.query.get(uJjO)\n return TvZl('user_info.html', user=CBIr)",
"def VCCg(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('User_Detail.html', user=CBI... | [
"0.78810626",
"0.78769433",
"0.78763664",
"0.78440773",
"0.782077",
"0.782077",
"0.7756196",
"0.7753759",
"0.7716285",
"0.7712363",
"0.77018416",
"0.7701071",
"0.76929426",
"0.7679779",
"0.7543512",
"0.7543346",
"0.752966",
"0.752966",
"0.7504696",
"0.74752593",
"0.7467838",
... | 0.73280287 | 27 |
Get a dictionary with the values with the decorators removed | def BnGJ(YKHO):
Aofo = {}
if YKHO.content:
for G1Hx in YKHO.content:
if type(G1Hx) not in iL8K:
Aofo[G1Hx] = YKHO.content[G1Hx]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0RM(ZlgM: Decorator, bn1r: Dict[str, Attribute]) -> None:\n ID5F = []\n for pdPD in ZlgM.decorators:\n if isinstance(pdPD, dV81) and isinstance(pdPD.expr, Jycp) and (pdPD.expr.name in bn1r):\n if pdPD.name == 'default':\n bn1r[pdPD.expr.name].has_default = True\n ... | [
"0.64387983",
"0.6010181",
"0.59314775",
"0.58437616",
"0.5726667",
"0.57171965",
"0.5666964",
"0.56655025",
"0.5640627",
"0.562577",
"0.5620694",
"0.56055063",
"0.5570571",
"0.55131024",
"0.54903847",
"0.546764",
"0.5461043",
"0.54595196",
"0.5456454",
"0.5452385",
"0.545039... | 0.0 | -1 |
calculate distance in meters between two points using latitude and longitude. | def D0Sn(j5sR, _UuI=None, fopC=None):
RrjT = Y_1E(_UuI)
v5EY = Y_1E(fopC)
_wqP = Y_1E(j5sR.latitude)
WpDk = Y_1E(j5sR.longitude)
A3Vt = 6371.01
return 1000.0 * (A3Vt * fH9s(YUNn(RrjT) * YUNn(_wqP) + YhSR(RrjT) * YhSR(_wqP) * YhSR(v5EY - WpDk))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AcQ8(igSk, PNCc, TGuP, v7YJ):\n return (igSk - TGuP) ** 2 + (PNCc - v7YJ) ** 2",
"def YyoZ(igSk, GgQG, TGuP, tk0B):\n igSk, GgQG, TGuP, tk0B = (float(igSk), float(GgQG), float(TGuP), float(tk0B))\n igSk = Y_1E(igSk)\n TGuP = Y_1E(TGuP)\n n_9K = TGuP - igSk\n H91H = Y_1E(tk0B - GgQG)\n MK... | [
"0.8143383",
"0.80759126",
"0.80419195",
"0.80360997",
"0.7974894",
"0.794838",
"0.7927734",
"0.79243594",
"0.7889077",
"0.7888432",
"0.78342134",
"0.7830156",
"0.78170407",
"0.7816504",
"0.77941895",
"0.77911913",
"0.77847767",
"0.7783082",
"0.77795446",
"0.7772368",
"0.7767... | 0.0 | -1 |
Iterate through the sliding windows of each array in `arrays`. | def Sjsj(YKHO, Sk_F):
Sk_F = tuple((oyIN.asarray(jzdc) for jzdc in Sk_F))
if not Sk_F:
raise ValueError('`arrays` must not be empty')
if YKHO._shuffle:
oyIN.random.shuffle(YKHO._indices)
for KCHu in Ys24(length=len(YKHO._indices), batch_size=YKHO._batch_size, ignore_incomplete_batch=YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agUT(YKHO, Sk_F, KnxT, sPLP=True):\n YPaw = int(KnxT / 3)\n XPHs = Sk_F[0].size\n V_8U = 0\n while True:\n ixQc = V_8U + KnxT\n if ixQc > XPHs:\n break\n yield Sk_F[:, V_8U:ixQc]\n V_8U += YPaw\n if sPLP:\n yield Sk_F[:, -KnxT:]",
"def K3Td(ezWE, R... | [
"0.7277488",
"0.660504",
"0.636871",
"0.6321122",
"0.61040586",
"0.60741687",
"0.6065371",
"0.60278755",
"0.5921576",
"0.5873199",
"0.5849855",
"0.5798376",
"0.5797728",
"0.57928264",
"0.576804",
"0.57374763",
"0.5711211",
"0.56967324",
"0.56960535",
"0.5655739",
"0.564391",
... | 0.52392256 | 76 |
The status of the notification. | def jGRS(YKHO):
return YKHO._data.get('status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO._status.value",
"def QtQ8(YKHO):\n return YKHO.status",
"def QtQ8(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.statu... | [
"0.8236803",
"0.82088923",
"0.82088923",
"0.8202297",
"0.8202297",
"0.8202297",
"0.8202297",
"0.8195311",
"0.81865495",
"0.81865495",
"0.8183873",
"0.81810033",
"0.8180063",
"0.81702775",
"0.81702775",
"0.81702775",
"0.81702775",
"0.81702775",
"0.81702775",
"0.81702775",
"0.8... | 0.8248482 | 0 |
The notification type for which the notification has been sent. | def I62H(YKHO):
return YKHO._data.get('notification_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I62H(YKHO):\n return YKHO._notification_type",
"def S82U(Emd4, l87X):\n I62H = qGVo.objects.get(name=l87X)\n return I62H",
"def type(YKHO):\n return YKHO._message['type']",
"def Hghu():\n raise NotImplementedError('Notification subclass must implement type')",
"def Logs(YKHO) -> str:\n ... | [
"0.9183409",
"0.78100944",
"0.76281077",
"0.7574303",
"0.75113857",
"0.73838466",
"0.7166641",
"0.71119267",
"0.7100251",
"0.7077564",
"0.6992908",
"0.69914246",
"0.6967077",
"0.6913896",
"0.6906356",
"0.6857306",
"0.68563503",
"0.68170077",
"0.68126744",
"0.6812256",
"0.6812... | 0.9227979 | 1 |
The password to use. | def jTXt(YKHO):
return YKHO._data.get('password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO):\n return YKHO.__password",
... | [
"0.86435944",
"0.86435944",
"0.86435944",
"0.86435944",
"0.85072345",
"0.85060966",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931",
"0.846931"... | 0.81279916 | 51 |
The token for the PagerDuty. | def eOtH(YKHO):
return YKHO._data.get('token') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOtH(YKHO) -> str:\n return qe4Y.get(YKHO, 'token')",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._get_field('token')",
"def eOtH(YKHO) -> str:\n return YKHO._token",
"def eOtH(YKHO) -> str:\n return YKHO._token",
"def eOtH(YKHO) -> str:\n r... | [
"0.77830327",
"0.74360317",
"0.7279955",
"0.72584146",
"0.72584146",
"0.72584146",
"0.72584146",
"0.7255995",
"0.7255995",
"0.7255995",
"0.7255995",
"0.725485",
"0.725485",
"0.725485",
"0.725485",
"0.72474134",
"0.72474134",
"0.7214496",
"0.7188876",
"0.7147486",
"0.7147486",... | 0.73000675 | 3 |
The service key for the PagerDuty. | def xEjH(YKHO):
return YKHO._data.get('service_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xEjH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_key')",
"def xEjH(YKHO):\n return YKHO._service_key",
"def xEjH(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'service_key')",
"def xEjH(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_key')",
"def liCf(YK... | [
"0.8244591",
"0.823187",
"0.8097661",
"0.7837639",
"0.7385572",
"0.70930374",
"0.70930374",
"0.70930374",
"0.70930374",
"0.70930374",
"0.7059447",
"0.7024366",
"0.7006709",
"0.6960921",
"0.6919165",
"0.6919165",
"0.6919165",
"0.6919165",
"0.6919165",
"0.6919165",
"0.6861008",... | 0.8316333 | 0 |
The client name for the PagerDuty. | def wy4N(YKHO):
return YKHO._data.get('client_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wy4N(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_name')",
"def wy4N(YKHO) -> str:\n return YKHO._client_name",
"def ko14(YKHO) -> str:\n return YKHO.name",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO.client_name, YKHO._name)",
"def cn3f(YKHO):\n return YKHO.__client_name",
"def nUZ... | [
"0.8809831",
"0.8662109",
"0.8656125",
"0.8282796",
"0.8227981",
"0.8196352",
"0.81211996",
"0.7941653",
"0.7763912",
"0.77298373",
"0.75477964",
"0.75280017",
"0.7410817",
"0.7385077",
"0.7245432",
"0.7245432",
"0.7245432",
"0.7245432",
"0.7245432",
"0.7245432",
"0.7245432",... | 0.8516914 | 3 |
The URL to call for the notification. | def dubp(YKHO):
return YKHO._data.get('grafana_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJM5(YKHO):\n return YKHO._url_notification",
"def bD7m(YKHO):\n qIxc = {'format': YKHO.notify_format, 'overflow': YKHO.overflow_mode, 'contenttype': YKHO.contenttype}\n return '{schema}://{token}/?{args}'.format(schema=YKHO.secure_protocol, token=YKHO.quote(YKHO.token, safe=''), args=YKHO.urlencode... | [
"0.81253767",
"0.76886106",
"0.7504402",
"0.7483186",
"0.73417825",
"0.7281152",
"0.7191852",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.709078",
"0... | 0.0 | -1 |
Get the grafana key. | def N2xx(YKHO):
return YKHO._data.get('grafana_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H... | [
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.695647",
"0.68403965",
"0.68403965",
"0.68122345",
"0... | 0.8791755 | 0 |
The URL to call for the notification. | def bD7m(YKHO):
return YKHO._data.get('url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJM5(YKHO):\n return YKHO._url_notification",
"def bD7m(YKHO):\n qIxc = {'format': YKHO.notify_format, 'overflow': YKHO.overflow_mode, 'contenttype': YKHO.contenttype}\n return '{schema}://{token}/?{args}'.format(schema=YKHO.secure_protocol, token=YKHO.quote(YKHO.token, safe=''), args=YKHO.urlencode... | [
"0.81232464",
"0.76885015",
"0.75033534",
"0.7482188",
"0.7339326",
"0.72785103",
"0.71904445",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.7169935",
"0.70905197",
"0.7088102... | 0.0 | -1 |
The URL to call for the notification. | def oMLh(YKHO):
return YKHO._data.get('mattermost_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJM5(YKHO):\n return YKHO._url_notification",
"def bD7m(YKHO):\n qIxc = {'format': YKHO.notify_format, 'overflow': YKHO.overflow_mode, 'contenttype': YKHO.contenttype}\n return '{schema}://{token}/?{args}'.format(schema=YKHO.secure_protocol, token=YKHO.quote(YKHO.token, safe=''), args=YKHO.urlencode... | [
"0.81253767",
"0.76886106",
"0.7504402",
"0.7483186",
"0.73417825",
"0.7281152",
"0.7191852",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.71713316",
"0.709078",
"0... | 0.0 | -1 |
The URL to call for the notification. | def zp3a(YKHO):
return YKHO._data.get('rocketchat_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJM5(YKHO):\n return YKHO._url_notification",
"def bD7m(YKHO):\n qIxc = {'format': YKHO.notify_format, 'overflow': YKHO.overflow_mode, 'contenttype': YKHO.contenttype}\n return '{schema}://{token}/?{args}'.format(schema=YKHO.secure_protocol, token=YKHO.quote(YKHO.token, safe=''), args=YKHO.urlencode... | [
"0.81259495",
"0.76886714",
"0.75037247",
"0.7481468",
"0.7341433",
"0.7279609",
"0.71897113",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.71694237",
"0.7091055",
... | 0.0 | -1 |
Calculate the Gram Matrix of a given tensor | def Bg4l(vhpA):
bGrB, Csk6, MKlR, yzQ0 = vhpA.size()
SppC = vhpA.reshape(Csk6, MKlR * yzQ0)
CG35 = ht2j.mm(SppC, SppC.t())
return CG35 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bg4l(vhpA):\n Ep8u, rb7a, H2v2, TVTK = vhpA.shape\n vhpA = vhpA.view(rb7a, -1)\n vhpA = ht2j.mm(vhpA, vhpA.t())\n return vhpA",
"def Bg4l(YKHO, FRUf):\n xMux = int(FRUf.shape[-1])\n jzdc = ZylS.reshape(FRUf, [-1, xMux])\n exwG = ZylS.shape(jzdc)[0]\n CG35 = ZylS.matmul(jzdc, jzdc, tra... | [
"0.7881348",
"0.77320784",
"0.763055",
"0.7585203",
"0.7485871",
"0.7362944",
"0.72622365",
"0.70627844",
"0.70328677",
"0.68775845",
"0.68327165",
"0.6824022",
"0.6788672",
"0.6779675",
"0.6772793",
"0.6761924",
"0.67364913",
"0.6590234",
"0.6524858",
"0.6453379",
"0.6373653... | 0.7957078 | 0 |
Make sure that an xarray axes has monotonically increasing values. | def HwVN(_T3K: Union[xr.Dataset, xr.DataArray], wVRM: str='longitude', aEc9: str='latitude') -> uLKX[zuVY.Dataset, zuVY.DataArray]:
def Znkj(_0VL: Sequence) -> bool:
return all((_0VL[YRbF] <= _0VL[YRbF + 1] for YRbF in range(len(_0VL) - 1)))
def MSMe(_0VL: Sequence) -> bool:
return all((_0VL[Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vx6K(YKHO):\n LFlW, _tIi = YKHO.get_xlim()\n return _tIi < LFlW",
"def rCbd(YKHO):\n if YKHO.xaxis[0] < YKHO.xaxis[-1]:\n YKHO.xaxis = YKHO.xaxis[::-1]\n if YKHO.data.ndim == 3:\n YKHO.data = YKHO.data[:, :, ::-1]\n else:\n YKHO.data = YKHO.data[:, ::-1]",
... | [
"0.625027",
"0.61691034",
"0.5758974",
"0.5644765",
"0.5475834",
"0.5470886",
"0.5458929",
"0.5458382",
"0.54263514",
"0.54188025",
"0.53812116",
"0.5376962",
"0.53700036",
"0.53462934",
"0.5341812",
"0.53059024",
"0.530454",
"0.52879214",
"0.5276044",
"0.527466",
"0.5272422"... | 0.57292825 | 3 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.8011412",
"0.7760833",
"0.7760833",
"0.76863474",
"0.76712537",
"0.76611257",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7640335",
"0.7627424",
"0.75514656",
"0.7532562",
"0.7457792",
"0.73241115",
"0.73168015",
"0.7298793... | 0.0 | -1 |