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 |
|---|---|---|---|---|---|---|
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Convert frequency to Mel frequency. | def gRN3(YwdF):
return 2595 * oyIN.log10(1 + YwdF / 700.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f8cd(QTg7):\n return 2595 * PCK9(1 + QTg7 / 700.0)",
"def BPSJ(md8z):\n return 700 * (10 ** (md8z / 2595.0) - 1)",
"def QU1J(QTg7):\n return 1127.0 * oyIN.log(1.0 + QTg7 / 700.0)",
"def C4kN(gF8_):\n return 700.0 * (oyIN.exp(gF8_ / 1127.0) - 1.0)",
"def zW21():\n pass",
"def ED1P(md8z)... | [
"0.7924491",
"0.75328946",
"0.75259936",
"0.70465386",
"0.66983104",
"0.6644312",
"0.6536699",
"0.6536695",
"0.6534509",
"0.653449",
"0.65310496",
"0.6529719",
"0.6526446",
"0.6524112",
"0.6522532",
"0.65074986",
"0.6504137",
"0.6492029",
"0.6489892",
"0.6489892",
"0.6489892"... | 0.667151 | 5 |
Returns True if the plate is in the table, otherwise False. | def FYXB(YKHO, EuJj):
d6pt = hash(EuJj) % YKHO.n_slots
YKHO.n_plate_hashes += 1
while YKHO.table_list[d6pt] is not None:
YKHO.n_plate_comparisons += 1
XbB4, bGrB = YKHO.table_list[d6pt]
if XbB4 == EuJj:
return True
else:
d6pt += 1
d6pt %= Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, EuJj):\n d6pt = hash(EuJj) % YKHO.n_slots\n YKHO.n_plate_hashes += 1\n for bGrB, SjLr in enumerate(YKHO.table_list[d6pt]):\n YKHO.n_plate_comparisons += 1\n if SjLr[0] == EuJj:\n return True\n return False",
"def uncd(EuJj=None):\n Ylbp = GPtr.DB.query(\"sel... | [
"0.7692059",
"0.7082108",
"0.6861482",
"0.6637377",
"0.6611339",
"0.65420055",
"0.6446362",
"0.64198554",
"0.63638836",
"0.6313722",
"0.6254744",
"0.62198013",
"0.61850774",
"0.6173419",
"0.6169378",
"0.6161941",
"0.6106098",
"0.60905135",
"0.6087651",
"0.6042759",
"0.6031972... | 0.77575207 | 0 |
Returns True if the plate is in the table, otherwise False. | def FYXB(YKHO, EuJj):
d6pt = hash(EuJj) % YKHO.n_slots
YKHO.n_plate_hashes += 1
for bGrB, SjLr in enumerate(YKHO.table_list[d6pt]):
YKHO.n_plate_comparisons += 1
if SjLr[0] == EuJj:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, EuJj):\n d6pt = hash(EuJj) % YKHO.n_slots\n YKHO.n_plate_hashes += 1\n while YKHO.table_list[d6pt] is not None:\n YKHO.n_plate_comparisons += 1\n XbB4, bGrB = YKHO.table_list[d6pt]\n if XbB4 == EuJj:\n return True\n else:\n d6pt += 1\n ... | [
"0.77575207",
"0.7082108",
"0.6861482",
"0.6637377",
"0.6611339",
"0.65420055",
"0.6446362",
"0.64198554",
"0.63638836",
"0.6313722",
"0.6254744",
"0.62198013",
"0.61850774",
"0.6173419",
"0.6169378",
"0.6161941",
"0.6106098",
"0.60905135",
"0.6087651",
"0.6042759",
"0.603197... | 0.7692059 | 1 |
Delete object from current database session | def PTpj(YKHO, YEnM=None):
if YEnM:
YKHO.__session.delete(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kocp(YEnM):\n BcI7.db.session.delete(YEnM)",
"def PTpj(YKHO):\n cuiw.delete(YKHO)\n cuiw.commit()",
"def uGQz(Emd4, cuiw, YEnM):\n cuiw.delete(YEnM)",
"def PTpj(YKHO):\n NCls.session.delete(YKHO)\n NCls.session.commit()",
"def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.sessi... | [
"0.85306525",
"0.82876897",
"0.82791984",
"0.824309",
"0.82174903",
"0.8140544",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.8138267",
"0.81090575",... | 0.8075953 | 22 |
From pytorch 1.8, it supports natural complex data, this branch uses torch.fft instead of the old version of two seperate channels. | def BHRt(YKHO, tG1N, RVMj, ZHfW=None):
if ZHfW is None:
ZHfW = abs(tG1N) > 0
tG1N *= ZHfW
YKHO.dims = tuple(tG1N.size())
k0lF = Njf9(RVMj, weights=ZHfW)
YKHO.Sense = uS0y(k0lF)
YKHO.zf_image = YKHO.Sense.adjoint(tG1N)
YKHO.CGM.initiate(YKHO.Sense, YKHO.zf_image) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFe0(Z9rn):\n qQQq = AdZ9.Curve('', 'Real part FFT ' + mGSc(Z9rn))\n VehX = AdZ9.Curve('', 'Imaginary part FFT ' + mGSc(Z9rn))\n vbMV = Z9rn.normalize()\n _RJG = len(Z9rn.x)\n y5Df = oyIN.fft.fft(vbMV.y)\n qQQq.y = y5Df.real\n qQQq.x = oyIN.linspace(min(vbMV.x), max(vbMV.x), len(qQQq.y))\n... | [
"0.69755256",
"0.68382084",
"0.6750966",
"0.6687014",
"0.66869664",
"0.6498705",
"0.6479734",
"0.6463257",
"0.6427024",
"0.6376366",
"0.63496304",
"0.6340261",
"0.6321249",
"0.63190436",
"0.62147576",
"0.6208767",
"0.6171927",
"0.6169145",
"0.61434525",
"0.61351466",
"0.61348... | 0.0 | -1 |
The expiration date should be cero. | def a0da(YKHO):
YKHO.getData.clientModel.form = {'edit_url': '/any/url', 'data_group': 'info'}
YKHO.getData.handler()
YKHO.getData.response.set_expires.assert_called_with(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ad72(YKHO):\n return YKHO._expiration_date",
"def ad72(YKHO):\n return YKHO._expiration_date",
"def ad72(YKHO):\n return YKHO._expiration_date",
"def ycq0(YKHO):\n return YKHO.expirationdate",
"def ad72(YKHO) -> qcWV.datetime:\n return YKHO._expiration_date",
"def ad72(YKHO):\n retu... | [
"0.78644353",
"0.78644353",
"0.78644353",
"0.7828462",
"0.7805841",
"0.7648187",
"0.7601633",
"0.75723946",
"0.75723946",
"0.7512716",
"0.741132",
"0.7380679",
"0.73210144",
"0.72191185",
"0.72124404",
"0.71862036",
"0.7093684",
"0.7091918",
"0.70837086",
"0.70661336",
"0.705... | 0.0 | -1 |
Access will be denied to the block when group_access specifies a nonempty partition that does not exist in course.user_partitions. | def Q2yf(YKHO, uX9J, F8t7):
YKHO.set_group_access(uX9J, {9: [99]})
YKHO.check_access(YKHO.red_cat, F8t7, False)
YKHO.check_access(YKHO.blue_dog, F8t7, False)
YKHO.check_access(YKHO.white_mouse, F8t7, False)
YKHO.check_access(YKHO.gray_worm, F8t7, False)
YKHO.ensure_staff_access(F8t7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fn83(YKHO, uX9J, F8t7):\n YKHO.set_group_access(uX9J, {YKHO.animal_partition.id: [YKHO.cat_group.id], YKHO.color_partition.id: [YKHO.blue_group.id]})\n YKHO.check_access(YKHO.red_cat, F8t7, False)\n YKHO.check_access(YKHO.blue_dog, F8t7, False)\n YKHO.check_access(YKHO.gray_worm, F8t7, False)\n ... | [
"0.76722926",
"0.75544274",
"0.75320673",
"0.7358723",
"0.7166251",
"0.707039",
"0.7053835",
"0.6997248",
"0.68650264",
"0.66910106",
"0.6085661",
"0.5921856",
"0.58797765",
"0.5848684",
"0.5843706",
"0.57719094",
"0.5771035",
"0.57615685",
"0.56424475",
"0.5597504",
"0.55576... | 0.7433172 | 3 |
Read an csv to a numpy array with float numbers out = csv2array(csv,csvdel,inline) where csv = 'csvfile.csv' csvdel is the csv delimiter, default is ';' inline is the initial line, default is 0 | def X57o(LtY3, suP4=';', ztt8=0):
Zhp7 = m6_J.reader(open(LtY3, 'rb'), delimiter=suP4)
yvT9 = oyIN.array(list(Zhp7)[ztt8:], dtype=oyIN.float64)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def huUp(YKHO, ixsc):\n usx6 = []\n rdlD = next(ixsc)\n while len(rdlD) > 0:\n usx6.append(rdlD)\n rdlD = next(ixsc)\n return XTiz.asarray(usx6, dtype=XTiz.float64)",
"def HND1(Ux0P):\n SppC = []\n with open(Ux0P, 'rU') as z36O:\n N5Pj = m6_J.reader(z36O)\n next(N5Pj... | [
"0.73529637",
"0.7280943",
"0.7266226",
"0.718584",
"0.71586514",
"0.7068129",
"0.68656796",
"0.6852267",
"0.68201286",
"0.6765734",
"0.67497694",
"0.67089295",
"0.6700321",
"0.6667954",
"0.6658801",
"0.66470444",
"0.66154104",
"0.66140825",
"0.6567536",
"0.6548173",
"0.65353... | 0.86218065 | 0 |
transform token data to indices sequence by `vocab` | def Tcy4(YKHO, CtWL: 'Vocab', KLk8: int):
if len(YKHO.data_seq) > 0:
YKHO.data_seq.clear()
YKHO.targets_tensor.clear()
YKHO.vocab = CtWL
YKHO.maxlen = KLk8
assert YKHO.data_token is not None
for s2mk in YKHO.data_token:
YKHO.data_seq.append(YKHO.__encode_tokens(s2mk))
for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MSmO(s2mk, CtWL):\n MUEG = [CtWL.word_to_index[GIN8] if GIN8 in CtWL.word_to_index else 1 for GIN8 in s2mk]\n return MUEG",
"def TPba(YKHO, s2mk: List[Token], ED_H: Vocabulary):\n raise NotImplementedError",
"def Nrfr(YKHO, ppBc, TJBz):\n print('Applying Vocab')\n GJPu = []\n for zFiD in ... | [
"0.7444836",
"0.7349559",
"0.7291185",
"0.72490776",
"0.7232778",
"0.7189831",
"0.7068684",
"0.702765",
"0.6884127",
"0.6800513",
"0.6791528",
"0.677587",
"0.6749561",
"0.67424154",
"0.6714957",
"0.6709636",
"0.6684867",
"0.6655137",
"0.66538644",
"0.6647025",
"0.6636443",
... | 0.6483964 | 27 |
encode `maxlen` length for token_data to get indices list in `self.vocab` if one sentence length is shorter than maxlen, it will use pad word for padding to maxlen if one sentence length is longer than maxlen, it will cut the first max_words words | def r9yA(YKHO, s2mk) -> ht2j.Tensor:
rIaC = 0
WKvO = [rIaC for bGrB in range(YKHO.maxlen)]
ycBG = s2mk[:YKHO.maxlen]
for or8S, GIN8 in enumerate(ycBG):
WKvO[or8S] = YKHO.vocab.get_index(GIN8)
return ht2j.tensor(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lh(EcVT, KLk8):\n VFEo = [[Cl4G[GIN8] for GIN8 in WKvO] for WKvO in EcVT]\n return S5Za(VFEo, maxlen=KLk8, value=0)",
"def Rk5C(YKHO, yAmx, KLk8, H_so):\n DumB = yAmx.strip().split()\n if len(DumB) > KLk8:\n KLk8 = len(DumB)\n H_so = DumB\n for GIN8 in DumB:\n if GIN8 no... | [
"0.7317592",
"0.68853724",
"0.6585801",
"0.65724736",
"0.65425116",
"0.6461165",
"0.64530003",
"0.64163554",
"0.6392603",
"0.634906",
"0.6323055",
"0.63125247",
"0.63107145",
"0.63056695",
"0.6266679",
"0.6265865",
"0.62619424",
"0.62145466",
"0.6181662",
"0.61807275",
"0.617... | 0.66356725 | 2 |
Initializes the priority heap | def FIMM(YKHO, b78a=True):
YKHO._data = []
YKHO.min = b78a | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ey19=lambda WKvO: WKvO):\n YKHO.heap = []\n YKHO.priority = Ey19",
"def FIMM(YKHO):\n YKHO.maxHeap = sijU()\n YKHO.minHeap = sijU()",
"def FIMM(YKHO):\n YKHO._values = QdpR()\n YKHO._min_priority = 0",
"def FIMM(YKHO):\n from queue import PriorityQueue\n YKHO.max_heap =... | [
"0.82092094",
"0.8198016",
"0.8100889",
"0.80195713",
"0.7942369",
"0.7923068",
"0.79005396",
"0.78992474",
"0.78939176",
"0.78899837",
"0.7867311",
"0.7867311",
"0.7867311",
"0.78539073",
"0.7852105",
"0.78380936",
"0.7821572",
"0.7819523",
"0.7811315",
"0.78043044",
"0.7804... | 0.0 | -1 |
Given two molecules, returns the mapping of atoms between them. Arguments | def gZpQ(YKHO, ra8B, H9U9):
cLTA = FfQE.OEGraphMol(ra8B)
E6DS = FfQE.OEGraphMol(H9U9)
dSmw = FfQE.OEMCSSearch(FfQE.OEMCSType_Exhaustive)
OmIn = FfQE.OEExprOpts_Aromaticity | FfQE.OEExprOpts_RingMember | FfQE.OEExprOpts_HvyDegree | FfQE.OEExprOpts_AtomicNumber
th_Y = FfQE.OEExprOpts_Aromaticity | FfQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aAy_():\n gEmq = R1Ya(Wckf('CCO'))\n fJoV = R1Ya(Wckf('CC'))\n r8hN = P3kc(gEmq, fJoV, componentA_to_componentB={0: 0, 2: 1})\n return r8hN",
"def ij_n(p9De, SX4k, XwY8=None):\n if not XwY8:\n AX4T = p9De.allResidues()\n D0IF = SX4k.allResidues()\n if len(AX4T) != len(D0IF... | [
"0.74922025",
"0.74523985",
"0.65738046",
"0.6562837",
"0.6025766",
"0.60079503",
"0.5998459",
"0.59161216",
"0.58786184",
"0.58290917",
"0.5756979",
"0.57490075",
"0.5731464",
"0.5720248",
"0.56815034",
"0.56239605",
"0.5617906",
"0.56077766",
"0.55967414",
"0.55803454",
"0.... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
renders the index page of feed | def kZiy(QePW):
QpfX = {'page': 'Blogs', 'posts': T97t.objects.all()}
return _1tc(QePW, 'feed/blog/home.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n a5Ha = NCls.session.query(BF3E).all()\n return TvZl('index.html', rss_feeds=a5Ha)",
"def d6pt():\n VECZ = Oe1I()\n return TvZl('index.html', names=VECZ)",
"def d6pt(QePW):\n rPXJ = 'posts/index.html'\n dixj = QUSx.objects.all()\n QpfX = {'results': dixj}\n return _1tc(QePW... | [
"0.7620603",
"0.7461555",
"0.7359827",
"0.73307925",
"0.72389257",
"0.7234803",
"0.719886",
"0.71457684",
"0.7101302",
"0.7094251",
"0.7086417",
"0.7078764",
"0.7065272",
"0.6994433",
"0.69899637",
"0.69795537",
"0.69613343",
"0.69363856",
"0.692186",
"0.6917426",
"0.6906602"... | 0.0 | -1 |
Build a ResNetV2 model using pretrained weights (eg. trained on imagenet). Use this if you want to use Transfer learning approach. For FineTuning Layers can be freeze & only Fully connected layer can be trained. | def hKgy(rvDU: str='ResNet50V2', GhuM: Tuple[int, int, int]=None, WZVe: int=None, FiJ9: bool=True):
if rvDU not in ['ResNet50V2', 'ResNet101V2', 'ResNet152V2']:
raise ValueError("Base model should be from 'ResNet50V2', 'ResNet101V2', 'ResNet152V2'")
if rvDU == 'ResNet50V2':
P8oC = yJ7m(weights='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvQm(_mSQ='imagenet', ZGlH=None):\n if ZGlH is None:\n ZGlH = ['conv5_block3_3_conv', 'post_relu']\n GhuM = (224, 224, 3)\n rvDU = MIwg.ResNet152V2(include_top=False, weights='imagenet', input_shape=GhuM)\n hlel = rvDU.layers[-1].output\n hlel = bdPE.layers.Flatten()(hlel)\n pjb3 = wOe... | [
"0.78910834",
"0.7287898",
"0.722808",
"0.7208139",
"0.71968716",
"0.7114276",
"0.70782804",
"0.7054146",
"0.70279694",
"0.7026026",
"0.702073",
"0.70073324",
"0.69949555",
"0.69747216",
"0.693162",
"0.6926238",
"0.6902558",
"0.6900212",
"0.68901324",
"0.6871197",
"0.6870104"... | 0.71122265 | 6 |
Build a ResNetV2 model using pretrained weights (eg. trained on imagenet). Use this if you want to use Transfer learning approach and desired fully connected layer. You have to append a fully connected layer at end w.r.t to Kearas Functional API. Examples X = build_resnet_pretrained_customized(input_shape = (224,224,3)... | def NBx0(rvDU: str='ResNet50V2', GhuM: Tuple[int, int, int]=None):
if rvDU not in ['ResNet50V2', 'ResNet101V2', 'ResNet152V2']:
raise ValueError("Base model should be from 'ResNet50V2', 'ResNet101V2', 'ResNet152V2'")
if rvDU == 'ResNet50V2':
P8oC = yJ7m(weights='imagenet', include_top=False, inp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKgy(rvDU: str='ResNet50V2', GhuM: Tuple[int, int, int]=None, WZVe: int=None, FiJ9: bool=True):\n if rvDU not in ['ResNet50V2', 'ResNet101V2', 'ResNet152V2']:\n raise ValueError(\"Base model should be from 'ResNet50V2', 'ResNet101V2', 'ResNet152V2'\")\n if rvDU == 'ResNet50V2':\n P8oC = yJ7... | [
"0.8164505",
"0.7420742",
"0.7323631",
"0.731963",
"0.7088677",
"0.70726645",
"0.70611674",
"0.70066637",
"0.6992832",
"0.698486",
"0.69824123",
"0.6953812",
"0.6943134",
"0.69405466",
"0.692444",
"0.69180983",
"0.69097054",
"0.690331",
"0.6902844",
"0.68926823",
"0.68799466"... | 0.7519953 | 1 |
We read the number of vertices in the graph | def dysn(YKHO, SppC):
u54L = int(SppC[0][0])
NTRO = 1
while NTRO <= u54L:
YKHO.verticesList.append(NTRO)
pajG = []
OciN = 0
while OciN < u54L:
if int(SppC[NTRO][OciN]) == 1:
pajG.append(OciN + 1)
OciN = OciN + 1
YKHO.neighboursL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8Vt(pNZh):\n return rrLg.numVertices(pNZh)",
"def MrQl(YKHO):\n return YKHO._n",
"def PjD8(YKHO):\n return len(YKHO._vertices)",
"def PjD8(YKHO):\n return len(YKHO._vertices)",
"def MrQl(YKHO):\n with open(nUeQ, 'r'):\n gffn = len(YKHO.prot_dict)\n return gffn",
"def Jal... | [
"0.8308509",
"0.79835284",
"0.7814288",
"0.7814288",
"0.78048956",
"0.7791335",
"0.7788871",
"0.7771085",
"0.7735398",
"0.7713913",
"0.7703783",
"0.76963115",
"0.7683261",
"0.7651646",
"0.7624445",
"0.7624445",
"0.7580579",
"0.7574508",
"0.7547382",
"0.74788404",
"0.74787325"... | 0.0 | -1 |
Flattens sequential features with known batch size and seq_len. | def I5Xq(WKvO, Ep8u, tsWk):
WKvO = ZylS.reshape(WKvO, [Ep8u, tsWk, -1])
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def weQ7(uaLk, Ep8u, tsWk):\n BLg0 = tuple(uaLk.shape)\n J1hN = ht2j.reshape(uaLk, [BLg0[0] * BLg0[1], *BLg0[2:]])\n return J1hN",
"def HKdK(J1hN, Ep8u, tsWk):\n BLg0 = tuple(J1hN.shape)\n aMIV = ht2j.reshape(J1hN, [tsWk, Ep8u, *BLg0[1:]])\n return aMIV",
"def nPf0(WKvO):\n ROpF = WKvO.get... | [
"0.6784858",
"0.6322902",
"0.63206285",
"0.6215036",
"0.6192277",
"0.6170643",
"0.6121964",
"0.6034657",
"0.6034657",
"0.6020013",
"0.6015855",
"0.6009266",
"0.6007836",
"0.59359574",
"0.5923998",
"0.58864725",
"0.58864725",
"0.58644575",
"0.58591485",
"0.5847056",
"0.5846415... | 0.8301264 | 0 |
Calculate the attention weights. q, k, v must have matching leading dimensions. | def fUzg(vexM, G1Hx, Ty9i, ZHfW):
LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)
WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)
_q8E = LwVP / ZylS.math.sqrt(WiZd)
if ZHfW is not None:
_q8E += ZHfW * -1000000000.0
HfyR = ZylS.nn.softmax(_q8E, axis=-1)
o4Jx = ZylS.matmul(HfyR, Ty9i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VmjZ(YKHO, m5mS):\n aBeJ = []\n for YRbF in range(YKHO._n_net):\n aBeJ.append(YKHO._reward + YKHO._discount * (1 - YKHO._done) * ZylS.reduce_max(YKHO._target_qvals[YRbF], axis=1) - m5mS)\n PQwe = ZylS.stack(aBeJ)\n EAsV(PQwe, [YKHO._n_net, None])\n jbXL = ZylS.matmul(PQwe, PQwe, transpose... | [
"0.6793924",
"0.6731974",
"0.6661675",
"0.6621524",
"0.652192",
"0.64601576",
"0.6446517",
"0.6392448",
"0.63358504",
"0.6327063",
"0.6320031",
"0.6306086",
"0.6273978",
"0.6273059",
"0.6243442",
"0.61627555",
"0.61569816",
"0.6151146",
"0.6149039",
"0.6141579",
"0.61353016",... | 0.0 | -1 |
The label to use to retrieve the job name from. | def U9vx(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'job_label') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_name')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label... | [
"0.8031257",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",
"0.78596973",... | 0.8504465 | 0 |
Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0. | def V82Q(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'load_balancer_source_ranges') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P3R9(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_virtual_network_access')",
"def P3R9(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_virtual_network_access')",
"def b7JE(YKHO, QePW):\n D8Ke = QePW.ip\n if not YKHO.whitelistenable() and D8Ke in YKHO.blacklist... | [
"0.56121206",
"0.56121206",
"0.55368894",
"0.5484474",
"0.5463898",
"0.5394526",
"0.5394526",
"0.5368594",
"0.5356281",
"0.5337631",
"0.53070325",
"0.53024983",
"0.52656054",
"0.5259508",
"0.52305585",
"0.5205727",
"0.519833",
"0.519833",
"0.51872635",
"0.5143799",
"0.5106824... | 0.0 | -1 |
Optionally customize the pod dnsConfig. | def Ahax(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[GySg[str, qe4Y.Input[str]]]]]]:
return qe4Y.get(YKHO, 'dns_config') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOd9(YKHO, uOd9):\n YKHO._custom_dns = uOd9",
"def X1vf(YKHO) -> h8nf[qe4Y.Input['PublicIPAddressDnsSettingsArgs']]:\n return qe4Y.get(YKHO, 'dns_settings')",
"def X1vf(YKHO) -> h8nf['outputs.PublicIPAddressDnsSettingsResponse']:\n return qe4Y.get(YKHO, 'dns_settings')",
"def uOd9(YKHO) -> h8nf[... | [
"0.64113075",
"0.6177964",
"0.5985307",
"0.5895756",
"0.5895756",
"0.58699596",
"0.5857703",
"0.58507776",
"0.5793433",
"0.57522595",
"0.5743914",
"0.5705503",
"0.5628619",
"0.56223124",
"0.5622289",
"0.55694044",
"0.55694044",
"0.5564899",
"0.5560982",
"0.55135316",
"0.54715... | 0.65616065 | 0 |
Election ID to use for status update. | def uVdz(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'election_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xp_C(YKHO):\n ...",
"def xp_C(YKHO):\n return YKHO._max_election_id",
"def qmrZ(YKHO):\n return YKHO.organization_election.election",
"def id(YKHO):\n return YKHO.status.id",
"def bZGZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'lease_id')",
"def id(YKHO):\n jGRS = YKHO.status()\n ret... | [
"0.6558174",
"0.6320687",
"0.62246805",
"0.6166127",
"0.6071441",
"0.6066239",
"0.6015276",
"0.5989928",
"0.5951149",
"0.5902337",
"0.5890497",
"0.5878544",
"0.5847538",
"0.5811276",
"0.5779843",
"0.57469773",
"0.5736992",
"0.57151157",
"0.5693374",
"0.5682816",
"0.5680955",
... | 0.72899187 | 0 |
This section refers to the creation of the IngressClass resource. IngressClass resources are supported since k8s >= 1.18 and required since k8s >= 1.19 | def Lf29(YKHO) -> h8nf[qe4Y.Input['ControllerIngressClassResourceArgs']]:
return qe4Y.get(YKHO, 'ingress_class_resource') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def msER(YKHO, _63S: 'str'=None):\n ZWCE = ['create_namespaced_ingress_class', 'create_ingress_class']\n AJfP.execute(action='create', resource=YKHO, names=ZWCE, namespace=_63S, api_client=None, api_args={'body': YKHO.to_dict()})",
"def F5Ht(hQHm: CoreV1Api, qFkF: AppsV1Api, VYsL, _63S, qIxc=None) -> str:\... | [
"0.56683195",
"0.56434476",
"0.5389651",
"0.5389651",
"0.5386648",
"0.5358098",
"0.52626026",
"0.51512307",
"0.5143258",
"0.505012",
"0.4987863",
"0.49801263",
"0.49764684",
"0.497628",
"0.49677587",
"0.49305573",
"0.49264517",
"0.4890887",
"0.48864216",
"0.48517036",
"0.4849... | 0.63672197 | 0 |
Process Ingress objects without ingressClass annotation/ingressClassName field. Overrides value for watchingresswithoutclass flag of the controller binary. Defaults to false. | def KP54(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'watch_ingress_without_class') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSwH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'ingress_class_by_name')",
"def Lf29(YKHO) -> h8nf[qe4Y.Input['ControllerIngressClassResourceArgs']]:\n return qe4Y.get(YKHO, 'ingress_class_resource')",
"def uHnR(UJcQ, AE0s):\n return False",
"def vqSo(YKHO) -> bool:\n return qe4... | [
"0.55011463",
"0.4850132",
"0.48295602",
"0.46836963",
"0.4656632",
"0.46552342",
"0.45817205",
"0.45633867",
"0.45609197",
"0.45539692",
"0.45315832",
"0.44852716",
"0.44845432",
"0.44816387",
"0.4362763",
"0.4362763",
"0.43002295",
"0.42568737",
"0.42537212",
"0.42270482",
... | 0.7357436 | 0 |
Specification defining the Helm chart repository to use. | def Bfx3(YKHO) -> h8nf[qe4Y.Input['RepositoryOptsArgs']]:
return qe4Y.get(YKHO, 'repository_opts') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3jJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'repository')",
"def Ssyd(oXi0: LabelsContext) -> str:\n if oXi0.repository is None:\n F3jJ = BfDw.load_repository_info()\n if F3jJ is None:\n raise k8wH.BadParameter('Unable to read repository name from git remote UR... | [
"0.57013357",
"0.555808",
"0.5457847",
"0.54209214",
"0.54209214",
"0.5417376",
"0.5413155",
"0.5357242",
"0.5346134",
"0.53129643",
"0.5284381",
"0.52824545",
"0.5278002",
"0.5238285",
"0.5238285",
"0.5205524",
"0.5200464",
"0.51965946",
"0.51877666",
"0.51748407",
"0.516057... | 0.4912556 | 56 |
When upgrading, reset the values to the ones built into the chart. | def ji3u(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'reset_values') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO['current_value'] = YKHO['initial_value']",
"def SiRx(YKHO) -> None:\n YKHO._values = oyIN.array([])",
"def cT2a(YKHO):\n YKHO._value_dict['throttle'] = YKHO.DEFAULT_THROTTLE_VAL\n YKHO._value_dict['steering'] = YKHO.DEFAULT_STEERING_VAL",
"def SiRx(YKHO):\n YKHO.Values =... | [
"0.68603724",
"0.68505615",
"0.6843326",
"0.678437",
"0.66784036",
"0.6594604",
"0.6589254",
"0.6577106",
"0.6536128",
"0.6496418",
"0.64909047",
"0.6454821",
"0.64524424",
"0.64240587",
"0.6412312",
"0.6385554",
"0.63609225",
"0.636079",
"0.63449967",
"0.63448733",
"0.631708... | 0.0 | -1 |
Specification defining the Helm chart repository to use. | def FIMM(Ro_8, *, WyVa: Optional[pulumi.Input[str]]=None, Q4rt: Optional[pulumi.Input[str]]=None, LtJP: Optional[pulumi.Input[str]]=None, jTXt: Optional[pulumi.Input[str]]=None, boHx: Optional[pulumi.Input[str]]=None, NtEF: Optional[pulumi.Input[str]]=None):
if WyVa is not None:
qe4Y.set(Ro_8, 'ca_file', Wy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3jJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'repository')",
"def Ssyd(oXi0: LabelsContext) -> str:\n if oXi0.repository is None:\n F3jJ = BfDw.load_repository_info()\n if F3jJ is None:\n raise k8wH.BadParameter('Unable to read repository name from git remote UR... | [
"0.57013357",
"0.555808",
"0.5457847",
"0.54209214",
"0.54209214",
"0.5417376",
"0.5413155",
"0.5357242",
"0.5346134",
"0.53129643",
"0.5284381",
"0.52824545",
"0.5278002",
"0.5238285",
"0.5238285",
"0.5205524",
"0.5200464",
"0.51965946",
"0.51877666",
"0.51748407",
"0.516057... | 0.0 | -1 |
Password for HTTP basic authentication | def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYZk(YKHO, CBIr, zN5h):\n YKHO.auth = OF86(CBIr, zN5h)",
"def IRrx(CBIr, KaGP):\n return 'Basic ' + WR89.b64encode('{}:{}'.format(CBIr, KaGP))",
"def EUpN(YKHO):\n xxQp = '%s:%s' % (YKHO.username, YKHO.password)\n return 'Basic %s' % WR89.encodestring(xxQp).strip()",
"def abdE(NtEF, jTXt):\n ... | [
"0.7818267",
"0.7686528",
"0.7657238",
"0.7636297",
"0.7611132",
"0.7413362",
"0.7386035",
"0.7378519",
"0.73425525",
"0.7331245",
"0.7331245",
"0.7324552",
"0.73064464",
"0.72993",
"0.72993",
"0.7265564",
"0.7260486",
"0.72324544",
"0.72299147",
"0.7214352",
"0.7182772",
"... | 0.0 | -1 |
Loads song data from base S3 location and extracts JSON data and stores as Parquet partitioned by year and artist_id. | def Q5GY(ujem, WbAn, VdBn):
QRIA = '{}song-data/*/*/*/*.json'.format(WbAn)
ouGA = A3Vt([ky8_('num_songs', Ibqj()), ky8_('artist_id', golO()), ky8_('artist_latitude', golO()), ky8_('artist_longitude', golO()), ky8_('artist_location', golO()), ky8_('artist_name', golO()), ky8_('song_id', golO()), ky8_('title', go... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5GY(ujem, WbAn, VdBn):\n print('Get song data from S3')\n QRIA = WbAn + 'song_data/*/*/*/*.json'\n print('Processing song data')\n jQ3Z = ujem.read.json(QRIA, schema=Vil5())\n OQ7j = jQ3Z.select('song_id', 'title', 'artist_id', 'year', 'duration').dropDuplicates(['song_id'])\n OQ7j.write.par... | [
"0.69944155",
"0.6966848",
"0.6900008",
"0.68588316",
"0.66250813",
"0.662457",
"0.65738136",
"0.6544484",
"0.65444547",
"0.6523752",
"0.65194905",
"0.6516979",
"0.6498522",
"0.64902973",
"0.64825773",
"0.6471319",
"0.6467575",
"0.64565164",
"0.64563435",
"0.6451654",
"0.6435... | 0.64414823 | 20 |
Return a testing DummyRequest for tests to use. | def fiHr():
fiHr = e9uV()
return fiHr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fiHr(ouvA):\n gE0D = kO5c.DummyRequest(dbsession=ouvA)\n return gE0D",
"def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)",
"def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)",
"def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)",
"def fiHr(ouvA):\n return kO... | [
"0.795695",
"0.772836",
"0.772836",
"0.772836",
"0.772836",
"0.772836",
"0.7611454",
"0.7122184",
"0.7062518",
"0.704417",
"0.69504005",
"0.64953506",
"0.6305248",
"0.61159366",
"0.61059666",
"0.60995066",
"0.6077864",
"0.60015815",
"0.5972397",
"0.59654105",
"0.59417665",
... | 0.83475685 | 0 |
Ensure that the existent template will be used instead of default. | def c9H3(fiHr, Jinq, rPXJ):
with open(rPXJ[0], 'w') as PSwh:
PSwh.write('aaa ---{{extra_content}}--- bbb')
with open(rPXJ[1], 'w') as PSwh:
PSwh.write('{{"FIRST EMAIL SUBJECT" }}\n')
ZxtR = {'extra_content': 'Some replacement to be replaced.'}
M39i(fiHr, 'test_recipient_1', template_file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MfB3(YKHO):\n p4_k = kEgM()\n OaeV = {}\n n5sN = p4_k.render_to_string_or_none('account/email/template_not_exist.html', OaeV)\n YKHO.assertEquals(n5sN, None)",
"def xryr(YKHO):\n YKHO.container.contentsTemplate = None\n YKHO.assertEqual(u'{subject:pronoun} contains {contents}.', YKHO.concep... | [
"0.6962859",
"0.6896614",
"0.68672645",
"0.68251073",
"0.67229545",
"0.66241723",
"0.66145384",
"0.6613932",
"0.6594429",
"0.6559183",
"0.65587926",
"0.65575516",
"0.65487653",
"0.65451634",
"0.65321773",
"0.6530597",
"0.6527457",
"0.65128124",
"0.6510698",
"0.65074223",
"0.6... | 0.0 | -1 |
Create and return a new user. | def lYUQ(D3lj, jTXt, NtEF, c9ua, zp3f, ctNS, j5sA):
CBIr = mv1M(email=D3lj, password=jTXt, username=NtEF, first_name=c9ua, last_name=zp3f, bio=ctNS, city=j5sA)
NCls.session.add(CBIr)
NCls.session.commit()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ",
"def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)",
"def lYUQ():\n nPrm = QePW.get_json()\n return CfQI(nPrm)",
"def Ss1U():\n CBIr = mv1M.objects.get_or_create(username='john', first_nam... | [
"0.8400247",
"0.8339993",
"0.8324968",
"0.82426304",
"0.82285994",
"0.81801134",
"0.8161598",
"0.81462926",
"0.8144961",
"0.81275487",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81241375",
"0.811842",
"0.8108549",
"0.8094399",
"0.80879855",
"0.80... | 0.0 | -1 |
Return a user by email. | def CYTf(D3lj):
return mv1M.query.filter(mv1M.email == D3lj).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def lN4b():\n return mv1M.query.filter(mv1M.email == D3lj).first()",
"def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, request=QePW)",
"def CYTf(D3lj):\n xDcj = 'SELECT * FROM users WHERE email=%s... | [
"0.8996743",
"0.8794353",
"0.8743939",
"0.87358826",
"0.8731642",
"0.87310416",
"0.87309337",
"0.87309337",
"0.8699964",
"0.86345524",
"0.863237",
"0.8616496",
"0.858586",
"0.857826",
"0.85759395",
"0.8557515",
"0.85555476",
"0.8550455",
"0.85501814",
"0.8546704",
"0.85443515... | 0.85614216 | 16 |
get all the banned tokens from a file | def SI37(jPKY):
with open(jPKY) as c9O2:
EojZ = qQXR.load(c9O2)
return EojZ['bad_words_ids'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G97s(SEuJ):\n bV8N = []\n try:\n GmKk = open(SEuJ, 'r', encoding='UTF-8')\n Nqlg = GmKk.readlines()\n for eOtH in Nqlg:\n if eOtH == '\\n':\n continue\n else:\n GIN8 = eOtH.strip()\n bV8N.append(GIN8)\n except IOEr... | [
"0.71505594",
"0.705399",
"0.69627434",
"0.68953544",
"0.6680216",
"0.65630966",
"0.64465934",
"0.64207375",
"0.6417287",
"0.63268036",
"0.62185585",
"0.6207209",
"0.620356",
"0.620151",
"0.61606586",
"0.61495364",
"0.61109644",
"0.6097767",
"0.602638",
"0.60262674",
"0.60052... | 0.70764977 | 1 |
Loads model and loads without compile if initial load fails. | def O5RJ(*qIxc, **B2fa):
try:
return bdPE.models.load_model(*qIxc, **B2fa)
except Exception as e:
bo34.warning(f"Failed to load and compile model with error: '{tTpl}'. Attempting to load with `compile=False`")
B2fa['compile'] = False
return bdPE.models.load_model(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl():\n pass",
"def uyMl():\n pass",
"def uyMl():\n return None",
"def O5RJ(Emd4, uqvc):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl():\n return",
"def uyMl(YKHO):\n NotImplementedEr... | [
"0.7892452",
"0.7892452",
"0.76859623",
"0.7598254",
"0.75864923",
"0.75864923",
"0.75864923",
"0.75864923",
"0.74849963",
"0.7390315",
"0.73895276",
"0.7356854",
"0.7345952",
"0.7245234",
"0.71771854",
"0.71455467",
"0.7145483",
"0.71402127",
"0.71365714",
"0.7132863",
"0.71... | 0.76008105 | 3 |
Get the temperature of the CPU for compensation | def P_IC():
with open('/sys/class/thermal/thermal_zone0/temp', 'r') as eHNT:
ycBG = eHNT.read()
ycBG = int(ycBG) / 1000.0
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QAGi(YKHO):\n YKHO._limit_channel()\n Aofo = YKHO._issue_cmd_get_results('temps', ['PECI[ \\t]*:[ \\t]*[0-9]* K[ \\t]*=[ \\t]*([0-9]*)[ \\t]*C'])[0]\n YKHO._restore_channel()\n if Aofo is None:\n raise e1Ap('Cannot retrieve CPU temperature.')\n return Aofo[1]",
"def LJii():\n Aofo = ... | [
"0.85329723",
"0.8468479",
"0.8301662",
"0.81710935",
"0.8108101",
"0.80604994",
"0.79940385",
"0.7987866",
"0.7969222",
"0.7967474",
"0.7967474",
"0.79284716",
"0.78007525",
"0.77914876",
"0.7789693",
"0.77706325",
"0.77231646",
"0.7697754",
"0.7693934",
"0.7679587",
"0.7638... | 0.8120663 | 4 |
Return the module path of the NullHandler. Useful for Python < 2.7. | def F2PS():
LI41 = 'logging.NullHandler'
try:
from logging import NullHandler
except ImportError:
LI41 = 'baboon.common.config.NullHandler'
return LI41 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imKd(s05F):\n if s05F.startswith(HdFk + '/'):\n s05F = s05F[len(HdFk):]\n s05F = Hy7s.path.normpath(s05F)\n u01p = s05F.rfind('.py')\n if u01p != -1:\n s05F = s05F[:u01p]\n cUX6 = s05F.replace(Hy7s.sep, '.')\n cUX6 = cUX6.strip('.')\n cUX6 = ZbWC.sub('\\\\.+', '.', cUX6)\n ... | [
"0.64919496",
"0.6451161",
"0.6295358",
"0.6279525",
"0.62742734",
"0.6227143",
"0.6194752",
"0.6194752",
"0.61419415",
"0.61226106",
"0.6099576",
"0.60701656",
"0.6059406",
"0.60117066",
"0.59990716",
"0.5942827",
"0.59152305",
"0.5901631",
"0.58996874",
"0.5874464",
"0.5867... | 0.78856725 | 0 |
The function checks if the number is a degree of two | def gMFQ(jzdc: int) -> bool:
return not bool(jzdc & jzdc - 1) and jzdc != 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFpn(WKvO):\n return GYhQ.b2IsPowerOfTwo(WKvO)",
"def PvgK(FGW3):\n if FGW3 == 0:\n print('NO')\n elif FGW3 == 1:\n print('YES')\n elif FGW3 % 2 == 0:\n PvgK(FGW3 / 2)\n else:\n print('NO')",
"def B5m9(exwG):\n return exwG == 2",
"def vf3I(WKvO):\n return ... | [
"0.70378214",
"0.69998807",
"0.6966966",
"0.6920309",
"0.688762",
"0.6850416",
"0.6844406",
"0.68413705",
"0.68399644",
"0.6834207",
"0.68257326",
"0.6813481",
"0.6809671",
"0.6805897",
"0.6805897",
"0.6805897",
"0.6805897",
"0.6770629",
"0.67705023",
"0.6744188",
"0.6732852"... | 0.64401484 | 54 |
Here is where you will extract your features from the data over the given window. We have given you an example of computing the mean and appending it to the feature vector. | def carQ(KnxT):
WKvO = []
OeUg = []
WKvO.append(aepT(KnxT))
OeUg.append('x_mean')
OeUg.append('y_mean')
OeUg.append('z_mean')
USzK = oyIN.concatenate(WKvO, axis=0)
return (OeUg, USzK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aepT(KnxT):\n return oyIN.mean(KnxT, axis=0)",
"def aepT(KnxT):\n return oyIN.mean(KnxT, axis=0)",
"def aepT(KnxT):\n return oyIN.mean(KnxT, axis=0)",
"def carQ(KnxT):\n YXbZ = oyIN.sqrt(oyIN.sum(oyIN.square(KnxT), axis=1))\n WKvO = []\n WKvO = oyIN.append(WKvO, aepT(KnxT))\n return ... | [
"0.79235876",
"0.79235876",
"0.79235876",
"0.7923347",
"0.7782014",
"0.6803395",
"0.6751462",
"0.6744439",
"0.6743237",
"0.6699584",
"0.6612185",
"0.6534428",
"0.6462655",
"0.63601696",
"0.62594175",
"0.624445",
"0.6224715",
"0.6011463",
"0.595782",
"0.5952366",
"0.59509414",... | 0.7878594 | 4 |
This is similar to assertRaisesRegexp in python 2.7 | def zbOe(YKHO, AJ5d, Ol8d, JfyU, *qIxc, **B2fa):
try:
JfyU(*qIxc, **B2fa)
YKHO.fail('Expected {0} to raise {1}'.format(JfyU, repr(AJ5d)))
except AJ5d as error:
YKHO.assertIn(Ol8d, str(P1dF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nexE(YKHO, *qIxc):\n return YKHO.assertRaisesRegexp(*qIxc)",
"def m6Kj(AJ5d, lQ3t, iXC1, *qIxc, **B2fa):\n try:\n iXC1(*qIxc, **B2fa)\n assert False, '%s should have been thrown' % AJ5d\n except Exception:\n tTpl = HwRy.exc_info()[1]\n XP5J = ZbWC.compile(lQ3t)\n a... | [
"0.85756993",
"0.76345706",
"0.7560242",
"0.7452963",
"0.72962713",
"0.7084783",
"0.705934",
"0.70050174",
"0.6948738",
"0.6927838",
"0.68713653",
"0.6859259",
"0.6798287",
"0.6771786",
"0.6766663",
"0.67293006",
"0.6724738",
"0.6722508",
"0.67197186",
"0.6712394",
"0.6701141... | 0.0 | -1 |
Parses a Tkml string, setting all elements as children to the given parent (creates a new if none is given). Returns the local root of the parsed content (the first child widget element of the document) | def hfK9(VN2L, _AKB=None):
wvEv = AqtI(_AKB)
wvEv.feed(VN2L)
return wvEv.local_root | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XLpq(pmON, _AKB=None):\n wvEv = AqtI(_AKB)\n with open(pmON, 'r', encoding='utf-8') as nUeQ:\n for zFiD in nUeQ.readlines():\n wvEv.feed(zFiD)\n return wvEv.local_root",
"def hfK9(YKHO):\n if not YKHO.parent:\n YKHO.reset()\n while YKHO.more():\n vIwR, tYGZ = YK... | [
"0.6192582",
"0.61218584",
"0.57846254",
"0.57550645",
"0.565395",
"0.5626986",
"0.5605559",
"0.5562225",
"0.545027",
"0.5430349",
"0.54298335",
"0.54297704",
"0.5425842",
"0.5410885",
"0.53970397",
"0.53857243",
"0.5354421",
"0.5342514",
"0.53403544",
"0.53374594",
"0.529856... | 0.6745864 | 0 |
Returns the closest ancestor with the given tag. If none is given, return direct parent | def _AKB(YKHO, TZ9E=None):
if TZ9E is None or YKHO._parent is None or YKHO._parent.tag == TZ9E:
return YKHO._parent
return YKHO._parent.parent(TZ9E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_G6(YKHO, Q6kx, Tj3G):\n if not Q6kx or Q6kx['tag'] == Tj3G:\n return Q6kx\n if 'parent' in Q6kx:\n return YKHO.ancestor(Q6kx['parent'], Tj3G)\n return None",
"def ZgH6(TZ9E, CXDR):\n if CXDR is not None and type(CXDR) == str:\n CXDR = [CXDR]\n return cntZ(filter(lambda T... | [
"0.76937264",
"0.7098289",
"0.7041605",
"0.6795674",
"0.6524091",
"0.64163506",
"0.63962084",
"0.62915295",
"0.6272898",
"0.6249406",
"0.6241605",
"0.61668926",
"0.6153281",
"0.61455274",
"0.6119128",
"0.6046519",
"0.6044026",
"0.599918",
"0.599918",
"0.59973043",
"0.5986735"... | 0.7389659 | 1 |
Converts an image into a list of blocks of oriented gradients. | def oylz(YKHO, VXjJ, rzaM=True, USzK=True):
YKHO.width = VXjJ.shape[1]
YKHO.height = VXjJ.shape[0]
YKHO.cells_x = YKHO.width // YKHO.pix_per_cell
YKHO.cells_y = YKHO.height // YKHO.pix_per_cell
YKHO.x_blocks = YKHO.cells_x - YKHO.cells_per_block + 1
YKHO.y_blocks = YKHO.cells_y - YKHO.cells_per_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NfqM(VXjJ):\n WKvO = XC5k.filter2D(VXjJ, XC5k.CV_64F, oyIN.array([[-1, 0, 1]]))\n LVAh = XC5k.filter2D(VXjJ, XC5k.CV_64F, oyIN.array([[-1, 0, 1]]).T)\n return (WKvO, LVAh)",
"def RXyG(LNo8):\n p6S0, BGSy = (None, None)\n mS2J = oyIN.array([[1, 0, -1], [2, 0, -2], [1, 0, -1]])\n YdmJ = oyIN.... | [
"0.691947",
"0.67563695",
"0.6718848",
"0.6683187",
"0.6521463",
"0.6162423",
"0.61562973",
"0.608663",
"0.60796005",
"0.6015361",
"0.5959982",
"0.5934866",
"0.5928404",
"0.5867818",
"0.5825998",
"0.5814365",
"0.5800291",
"0.5747641",
"0.5742718",
"0.5687739",
"0.56702393",
... | 0.0 | -1 |
Measure the KLdivergence from "approximate" distribution q to "true" distribution p. Use smoothed softmax to convert p and q from encodings in terms of relative loglikelihoods into sumtoone distributions. | def N6ZT(XP5J, vexM):
fPwE = h9bQ(XP5J)
thyL = h9bQ(vexM)
hBl6 = Kt_s.sum((Kt_s.log(fPwE) - Kt_s.log(thyL)) * fPwE, axis=1, keepdims=True)
return hBl6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzAH(XP5J, vexM, SGf8=1e-20):\n return ZylS.math.reduce_mean(XP5J * ZylS.math.log((XP5J + SGf8) / (vexM + SGf8)) - XP5J + vexM)",
"def dzAH(XP5J, vexM):\n XP5J = oyIN.asarray(XP5J, dtype=oyIN.float)\n vexM = oyIN.asarray(vexM, dtype=oyIN.float)\n mYb5 = 0\n g95K = 0\n for YRbF in range(0, X... | [
"0.7328071",
"0.7207168",
"0.71790886",
"0.7132971",
"0.71209544",
"0.7111036",
"0.7008624",
"0.7008094",
"0.6947527",
"0.6900717",
"0.677489",
"0.67709225",
"0.67349964",
"0.6693142",
"0.66535354",
"0.6609281",
"0.65475994",
"0.64814293",
"0.6461292",
"0.6461292",
"0.6458617... | 0.7265298 | 1 |
Measure the JensenShannon divergence between (logspace) p and q. | def CEkZ(XP5J, vexM):
fPwE = h9bQ(XP5J)
thyL = h9bQ(vexM)
FFoM = (fPwE + thyL) / 2.0
gMag = Kt_s.sum(fPwE * (Kt_s.log(fPwE) - Kt_s.log(FFoM)), axis=1, keepdims=True)
jqxf = Kt_s.sum(thyL * (Kt_s.log(thyL) - Kt_s.log(FFoM)), axis=1, keepdims=True)
Mpty = (gMag + jqxf) / 2.0
return Mpty | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nNdW(XP5J, vexM):\n XP5J = oyIN.array(XP5J)\n vexM = oyIN.array(vexM)\n r8hN = (XP5J + vexM) / 2\n scUA = (Zxt2.stats.entropy(XP5J, r8hN) + Zxt2.stats.entropy(vexM, r8hN)) / 2\n Ayfi = oyIN.sqrt(scUA)\n return (Ayfi, scUA)",
"def sZzF(XP5J, vexM):\n r8hN = 0.5 * (XP5J + vexM)\n Mpty =... | [
"0.7734841",
"0.7401467",
"0.71438205",
"0.71353894",
"0.707802",
"0.70276386",
"0.70070046",
"0.6978749",
"0.6625198",
"0.6610137",
"0.6579079",
"0.6555719",
"0.6552864",
"0.6481442",
"0.64428973",
"0.6416903",
"0.64162564",
"0.6389782",
"0.63853514",
"0.62969303",
"0.621386... | 0.7572921 | 1 |
Measure the crossentropy between "approximate" distribution q and "true" distribution p. Use smoothed softmax to convert p and q from encodings in terms of relative loglikelihoods into sumtoone dists. | def Scdi(XP5J, vexM):
fPwE = h9bQ(XP5J)
thyL = h9bQ(vexM)
NcEQ = -Kt_s.sum(fPwE * Kt_s.log(thyL), axis=1, keepdims=True)
return NcEQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Scdi(XP5J, vexM):\n avIK = Kt_s.cast(XP5J.shape[1], 'floatX')\n fPwE = D8eC(XP5J, lam_smooth=AEYf)\n thyL = D8eC(vexM, lam_smooth=AEYf)\n NcEQ = -Kt_s.sum(fPwE * IyQT(thyL), axis=1, keepdims=True)\n return NcEQ",
"def CqbS(XP5J, vexM):\n XP5J = oyIN.asarray(XP5J, dtype=oyIN.float)\n vexM... | [
"0.74374175",
"0.73735124",
"0.678135",
"0.6661216",
"0.6619063",
"0.6431888",
"0.63160866",
"0.63004184",
"0.6251018",
"0.6154906",
"0.6102267",
"0.60113853",
"0.59874153",
"0.59743947",
"0.5945969",
"0.59399676",
"0.58907354",
"0.58845246",
"0.5863395",
"0.5855618",
"0.5851... | 0.7463972 | 0 |
Compute cost for entropy regularization. | def Ne5H(YKHO, Qy3K=1):
if Qy3K == 0:
fuEn = lambda WKvO: Kt_s.sum(Kt_s.nnet.binary_crossentropy(Kt_s.nnet.sigmoid(WKvO), Kt_s.nnet.sigmoid(WKvO)), axis=1, keepdims=True)
else:
fuEn = lambda WKvO: Scdi(WKvO, WKvO)
if YKHO.spawn_count == 1:
WKvO = YKHO.spawn_nets[0][-1].linear_output
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Il7w(YKHO, WKvO, LVAh):\n amiz = YKHO.softmax(WKvO)\n WHx2 = YKHO._cross_entropy(amiz, LVAh)\n sSN_ = oyIN.sum(WHx2) + 0.5 * YKHO.reg * oyIN.sum(YKHO.w * YKHO.w)\n return sSN_",
"def UM2M(YKHO):\n sSN_ = ZylS.reduce_mean(ZylS.nn.softmax_cross_entropy_with_logits(logits=YKHO.Z4, labels=YKHO.Y))... | [
"0.7141852",
"0.7137947",
"0.698857",
"0.69430345",
"0.6932325",
"0.6904806",
"0.6856172",
"0.6837847",
"0.67713606",
"0.6695059",
"0.6681998",
"0.66786903",
"0.66783935",
"0.6663637",
"0.66505945",
"0.65547055",
"0.6542842",
"0.65375143",
"0.65375143",
"0.65375143",
"0.65336... | 0.62597215 | 41 |
Load a clone of some previously trained model. | def _kZR(knSv=None, xlLU=None, zUFa=None):
assert not knSv is None
VIsj = open(knSv)
ckV_ = rIin.load(VIsj)
avG4 = rIin.load(VIsj)
j1S5 = []
for ytA_ in avG4:
yUqS = {}
for H5ew in ytA_:
wEf2 = ytA_[H5ew].astype(e89i.config.floatX)
yUqS[H5ew] = e89i.shared... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQCz(YKHO):\n GlXl = YKHO._model.to_json()\n ZylS.keras.backend.clear_session()\n YKHO._model = ZylS.keras.models.model_from_json(GlXl)\n YKHO._load_weights_from_state_dict()",
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\... | [
"0.79603267",
"0.7434846",
"0.7315329",
"0.7236442",
"0.71731645",
"0.7152981",
"0.71207416",
"0.71051276",
"0.7097884",
"0.7079385",
"0.70764506",
"0.70764506",
"0.70764506",
"0.70647955",
"0.7048798",
"0.70295036",
"0.698956",
"0.6968812",
"0.6968812",
"0.6968812",
"0.69688... | 0.0 | -1 |
Sets the description of this Document. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def prlj(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def YYyB(YKHO, JBZA):\n YKHO._d... | [
"0.8469176",
"0.84472936",
"0.84472936",
"0.84472936",
"0.84472936",
"0.8279351",
"0.8279351",
"0.8279351",
"0.82771087",
"0.82513344",
"0.8238633",
"0.8215355"
] | 0.82264024 | 20 |
Sets the version of this Document. | def DpZH(YKHO, DpZH):
YKHO._version = DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version.value = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZ... | [
"0.7958835",
"0.7926965",
"0.79222405",
"0.7870322",
"0.7806301",
"0.7656584",
"0.7656584",
"0.7611256",
"0.75531477",
"0.7536932",
"0.7533452",
"0.7533452",
"0.7450391",
"0.74345106",
"0.740114",
"0.73649937",
"0.73636866",
"0.73636866",
"0.73636866",
"0.7220521",
"0.7198521... | 0.76510453 | 8 |
Sets the release_date of this Document. | def ClkZ(YKHO, ClkZ):
YKHO._release_date = ClkZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ClkZ(YKHO, ClkZ):\n if ClkZ is None:\n raise ValueError('Invalid value for `release_date`, must not be `None`')\n YKHO._release_date = ClkZ",
"def saII(YKHO, ClkZ, jzFa=None):\n if not YKHO.release_date:\n YKHO.release_date = ClkZ\n if jzFa and jzFa < 1000:\n return\n if C... | [
"0.788116",
"0.754032",
"0.68240863",
"0.67802143",
"0.64970446",
"0.6429607",
"0.64144695",
"0.64046395",
"0.63707507",
"0.63271815",
"0.6270356",
"0.6256857",
"0.6256857",
"0.6256857",
"0.6256857",
"0.6256857",
"0.6234878",
"0.6219589",
"0.621596",
"0.61893785",
"0.61893785... | 0.86914414 | 0 |
Sets the updated_date of this Document. | def s4tG(YKHO, s4tG):
YKHO._updated_date = s4tG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7nd(YKHO, M7nd):\n YKHO._date_updated = M7nd",
"def M7nd(YKHO, M7nd):\n YKHO._date_updated = M7nd",
"def M7nd(YKHO, M7nd):\n YKHO._date_updated = M7nd",
"def M7nd(YKHO, M7nd):\n YKHO._date_updated = M7nd",
"def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj",
"def XXYj(YKHO, XXYj):\n ... | [
"0.7554401",
"0.7554401",
"0.7554401",
"0.7554401",
"0.7227728",
"0.7227728",
"0.7227728",
"0.7227728",
"0.7227728",
"0.7227728",
"0.6963892",
"0.69087976",
"0.6792616",
"0.6792616",
"0.67192245",
"0.64910597",
"0.64910597",
"0.64910597",
"0.64560956",
"0.64560956",
"0.645609... | 0.82267976 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Get the nth energy wavefunction of particle in a box. | def _hNH(exwG):
return k0lF * oyIN.sin(exwG * mM0K * zeCY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WRQE(YKHO, VYvU):\n YKHO.E = VYvU\n YKHO.psi = ZEHf(YKHO.SE, YKHO.psi0, YKHO.x)\n return YKHO.psi[-1, 0]",
"def rhN2(WKvO):\n return WKvO ** 2",
"def VYvU(YKHO):\n _e0y = 0.0\n for r845 in Ni9Y(0, SMR4):\n _e0y += YKHO.field[r845] ** 2\n return 0.5 * VTtU * _e0y",
"def VYvU(jz... | [
"0.63887435",
"0.62024385",
"0.60345113",
"0.5938653",
"0.59316415",
"0.5887578",
"0.58627254",
"0.5847682",
"0.58275634",
"0.5817926",
"0.5778953",
"0.5748753",
"0.5739978",
"0.5739823",
"0.5739574",
"0.5726857",
"0.57187057",
"0.57131845",
"0.5703905",
"0.56678194",
"0.5635... | 0.576872 | 11 |
Generate fake images and plot them For visualization purposes, generate fake images then plot them in a square grid Arguments | def U0xK(XLLv, Wkm5, nUHY=False, YPaw=0, ZGE9='gan'):
TjjR, ZcTZ = XLLv
bGpd, cflT, Rtnc = Wkm5
Hy7s.makedirs(ZGE9, exist_ok=True)
Ux0P = Hy7s.path.join(ZGE9, '%05d.png' % YPaw)
N3C1 = ZcTZ.predict([bGpd, Rtnc])
Yw_3 = TjjR.predict([N3C1, cflT])
print(ZGE9, 'Labels for generated images: ', o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW1D(YKHO):\n DbyF = (10, 10)\n wytA = (10, 10)\n cDK5 = 100\n EcVT, bGrB = YKHO.generate_generator_prediction_samples(cDK5)\n YKHO.grid_plot(EcVT, dimensions=DbyF, figsize=wytA)",
"def eL5z(Yw_3, aNZO=None, usx6=16, WfCS=24, tuKI=False, Cs6h=False, sBuh=1, a_ul='r', **Cod6):\n wK7l = Yw_3.... | [
"0.7446036",
"0.70844805",
"0.7059226",
"0.6992823",
"0.6972255",
"0.6953692",
"0.6936425",
"0.6860846",
"0.68189025",
"0.67872953",
"0.67836994",
"0.6778621",
"0.6760834",
"0.67592293",
"0.67524266",
"0.6750358",
"0.6709825",
"0.6677439",
"0.667706",
"0.6641163",
"0.6640975"... | 0.67845327 | 10 |
Ensure string is converted to a Path. | def ichz(pmON):
if isinstance(pmON, _jPd):
return GkAb(pmON)
else:
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqAW(hHy_):\n if isinstance(hHy_, str):\n return GkAb(hHy_)\n elif isinstance(hHy_, GkAb):\n return hHy_\n else:\n raise ValueError(\"Can't conver to Path\")",
"def YYOZ(pmON):\n return str",
"def qKv3(pmON: str):\n tTXR = GkAb(pmON)\n if '~' in pmON:\n tTXR = ... | [
"0.77304476",
"0.75010455",
"0.74026024",
"0.7344665",
"0.72879213",
"0.7189345",
"0.71493775",
"0.7100921",
"0.7070503",
"0.703654",
"0.7027346",
"0.6971393",
"0.69102365",
"0.6727572",
"0.67218876",
"0.6707863",
"0.6668225",
"0.66611797",
"0.65758246",
"0.65648925",
"0.6546... | 0.7956079 | 0 |
Load a model from a shortcut link, package or data path. | def uyMl(mWFP, **If3P):
i0XC = s8df()
if not i0XC or not i0XC.exists():
raise IOError(C4Sv.E049.format(path=XpQo(i0XC)))
if isinstance(mWFP, _jPd):
if mWFP in set([Csk6.name for Csk6 in i0XC.iterdir()]):
return Umh5(mWFP, **If3P)
if bYKW(mWFP):
return jR_B(mWF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Umh5(mWFP, **If3P):\n pmON = s8df() / mWFP / '__init__.py'\n try:\n Emd4 = _U0y(mWFP, pmON)\n except AttributeError:\n raise IOError(C4Sv.E051.format(name=mWFP))\n return Emd4.load(**If3P)",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def uyMl():\n pass",
"def uyMl():\n pass"... | [
"0.751684",
"0.720536",
"0.7199736",
"0.7199736",
"0.71546024",
"0.71367",
"0.7032754",
"0.7021977",
"0.7021977",
"0.7021977",
"0.7021977",
"0.6955721",
"0.683672",
"0.6802366",
"0.6774011",
"0.6767554",
"0.6758688",
"0.67542064",
"0.6723862",
"0.67150414",
"0.667324",
"0.6... | 0.7119891 | 6 |
Load a model from a shortcut link, or directory in spaCy data path. | def Umh5(mWFP, **If3P):
pmON = s8df() / mWFP / '__init__.py'
try:
Emd4 = _U0y(mWFP, pmON)
except AttributeError:
raise IOError(C4Sv.E051.format(name=mWFP))
return Emd4.load(**If3P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, uqvc: str=None) -> None:\n if uqvc is None:\n uqvc = YKHO.model_dir.name\n YKHO.model = CNQv.load(name=uqvc)\n print(f'{uqvc} loaded.')",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def uyMl(Ux0P):\n pass",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ():\n ... | [
"0.67548245",
"0.6569592",
"0.6569592",
"0.65260655",
"0.64451385",
"0.6400146",
"0.6377443",
"0.6365783",
"0.63474363",
"0.63446724",
"0.63247883",
"0.63057935",
"0.6299161",
"0.62871355",
"0.6233083",
"0.6227306",
"0.6220829",
"0.6212615",
"0.6184301",
"0.6164814",
"0.61491... | 0.6749429 | 1 |
Load a model from an installed package. | def jR_B(mWFP, **If3P):
Emd4 = ANWz.import_module(mWFP)
return Emd4.load(**If3P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, GPtr):\n for hxGQ in getattr(GPtr.app, 'modules', []):\n yR_P = __import__(hxGQ, fromlist=['model'])\n if hasattr(yR_P, 'model'):\n return yR_P.model\n return None",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def bo2c(JZXy: Union[str, PathLike, IO[AnyStr]... | [
"0.7228487",
"0.7164322",
"0.7164322",
"0.6959472",
"0.6939953",
"0.69006366",
"0.6887469",
"0.6887469",
"0.6887469",
"0.6887469",
"0.68590546",
"0.68547916",
"0.6836947",
"0.6806021",
"0.6774918",
"0.6745982",
"0.67369926",
"0.67284155",
"0.67151624",
"0.6710976",
"0.6697606... | 0.8149286 | 0 |
Load a model from a data directory path. Creates Language class with pipeline from meta.json and then calls from_disk() with path. | def qoYp(uqvc, e5kH=False, **If3P):
if not e5kH:
e5kH = YouM(uqvc)
Emd4 = ckbt(e5kH['lang'])
K9NE = Emd4(meta=e5kH, **If3P)
nPIK = e5kH.get('pipeline', [])
drCV = If3P.get('disable', [])
if nPIK is True:
nPIK = K9NE.Defaults.pipe_names
elif nPIK in (False, None):
nPIK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _dcc(Emd4, pGQh):\n jjTp = Hy7s.path.join(pGQh, 'model_parameters.json')\n with open(jjTp, 'r') as ytgA:\n SGPK = qQXR.load(ytgA)\n vX4d = Hy7s.path.join(pGQh, 'label_mapping.json')\n with open(vX4d, 'r') as ytgA:\n knyY = qQXR.load(ytgA)\n Z_lw = Emd4(knyY, SGPK)\n return Z_lw"... | [
"0.7340808",
"0.7190298",
"0.70018387",
"0.6944433",
"0.6937869",
"0.6914946",
"0.68443626",
"0.6838144",
"0.6807678",
"0.6773124",
"0.6725217",
"0.67238915",
"0.6723063",
"0.67227983",
"0.6682061",
"0.66498727",
"0.66424453",
"0.6611266",
"0.6606805",
"0.6594792",
"0.6592533... | 0.7736643 | 0 |
Iterate over batches of items. `size` may be an iterator, so that batchsize can vary on each step. | def A4Kf(DumB, zNig=8):
if isinstance(zNig, int):
xxjz = Hs6x.repeat(zNig)
else:
xxjz = zNig
DumB = iter(DumB)
while True:
Ep8u = next(xxjz)
Wc9F = list(PYbl.take(int(Ep8u), DumB))
if len(Wc9F) == 0:
break
yield list(Wc9F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNDg(WhY1, Ep8u=64):\n while True:\n Wc9F = list(Hs6x.islice(WhY1, Ep8u))\n if not Wc9F:\n break\n yield Wc9F",
"def Wc9F(OxJJ, Ep8u):\n if Ep8u < 1:\n raise ValueError('batch_size must be a positive integer.')\n p55O = []\n for ZfUD in OxJJ:\n p55O.a... | [
"0.80334336",
"0.7726273",
"0.76881665",
"0.7640388",
"0.7601354",
"0.75426877",
"0.75086445",
"0.733092",
"0.7299551",
"0.7284988",
"0.72735846",
"0.72533536",
"0.7232068",
"0.7198793",
"0.7179841",
"0.71382207",
"0.7099745",
"0.7092847",
"0.708984",
"0.7028064",
"0.7028064"... | 0.7101706 | 16 |
Open and load JSON from file. | def PSj2(Rci7):
Rci7 = ichz(Rci7)
with Rci7.open('r', encoding='utf8') as eHNT:
return DXLd.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NC4D(nUeQ):\n with open(nUeQ, 'r') as apum:\n nPrm = qQXR.load(apum)\n return nPrm",
"def lc9H(nUeQ):\n with open(nUeQ, 'r') as zgjV:\n return qQXR.load(zgjV)",
"def GvL1(VqRE):\n with open(VqRE) as KAfx:\n nPrm = qQXR.load(KAfx)\n return nPrm",
"def GvL1(IznC: str) ->... | [
"0.83492076",
"0.82636476",
"0.82262474",
"0.81787395",
"0.8141415",
"0.81162053",
"0.8111215",
"0.8091102",
"0.80850804",
"0.80360174",
"0.80174345",
"0.8004189",
"0.7979752",
"0.79773027",
"0.794511",
"0.7945105",
"0.7927784",
"0.792151",
"0.7917669",
"0.7911247",
"0.791078... | 0.0 | -1 |
Resets the state of the environment, returning an initial observation. | def SiRx(YKHO):
YKHO.board = YKHO.initial_board
YKHO.done = False
YKHO.current_player = eJVO
YKHO.saved_boards = oRi_(lambda: 0)
YKHO.repetitions = 0
YKHO.move_count = 0
YKHO.white_king_castle_is_possible = True
YKHO.white_queen_castle_is_possible = True
YKHO.black_king_castle_is_pos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO, **B2fa):\n rNYq = YKHO.env.reset(**B2fa)\n YKHO.randomize()\n return rNYq",
"def SiRx(YKHO):\n QTBn = YKHO.sample()\n if QTBn is None:\n return YKHO.env.reset()\n else:\n if YKHO.need_xml:\n QTBn, QToG = QTBn\n YKHO.env.reset_from_xml_string(QT... | [
"0.8130608",
"0.80573934",
"0.8044419",
"0.7961364",
"0.7925673",
"0.78045917",
"0.78045917",
"0.78045917",
"0.78045917",
"0.78045917",
"0.7793032",
"0.77781624",
"0.776638",
"0.77204686",
"0.7681352",
"0.7575828",
"0.7573232",
"0.7551488",
"0.7548552",
"0.75335723",
"0.75274... | 0.0 | -1 |
Save a datastructure to a json file. | def nN8w(nPrm: Any, pmON: str, u2qj: bool=False, MnRD: Any=None) -> None:
with open(pmON, 'w') as wM3v:
qQXR.dump(nPrm, wM3v, sort_keys=u2qj, indent=MnRD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RWSq(BlNT, nUeQ):\n with open(nUeQ, 'w') as _RR0:\n qQXR.dump(BlNT, _RR0)\n return True",
"def eGRE(YKHO, pmON):\n with open(pmON, 'w') as _RR0:\n qQXR.dump(YKHO.data, _RR0)",
"def xkzz(YKHO, Ux0P='data.json'):\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(YKHO.datadict, eHNT... | [
"0.81372815",
"0.7812308",
"0.77528095",
"0.7727041",
"0.77052903",
"0.7678213",
"0.7662318",
"0.76581496",
"0.7651751",
"0.76368606",
"0.76368606",
"0.7635705",
"0.7635204",
"0.7632728",
"0.76090026",
"0.76087993",
"0.7606919",
"0.7603574",
"0.7582348",
"0.75797826",
"0.7576... | 0.0 | -1 |
Recursively merge 2 dictionnaries. | def k1Ji(nPrm, QdZT):
nPrm = nPrm.copy()
for H5ew, BWXx in QdZT.items():
if isinstance(BWXx, g760.Mapping):
nPrm[H5ew] = k1Ji(nPrm.get(H5ew, {}), BWXx)
else:
nPrm[H5ew] = BWXx
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1Ji(LFlW: Dict[str, Any], _tIi: Dict[str, Any]) -> cuzp[str, ImMB]:\n for H5ew, BWXx in LFlW.items():\n if H5ew in _tIi:\n if isinstance(BWXx, g760.Mapping) and isinstance(_tIi[H5ew], g760.Mapping):\n _tIi[H5ew] = k1Ji(BWXx, _tIi[H5ew])\n XIcQ = LFlW.copy()\n XIcQ.upd... | [
"0.8297183",
"0.82793045",
"0.82602084",
"0.81967574",
"0.81578904",
"0.80843157",
"0.8083414",
"0.8024359",
"0.7979341",
"0.79349506",
"0.7914111",
"0.7909671",
"0.7905493",
"0.7884395",
"0.7875607",
"0.7874321",
"0.7871238",
"0.78352964",
"0.7819874",
"0.7808066",
"0.780643... | 0.737656 | 95 |
reutrn friends for given user if user_id is None return friends for current token | def aVo_(YKHO, uJjO=None):
YKHO.log('Start get_friends func')
if not uJjO:
uJjO = YKHO._token_owner_id
NKcE = 'friends.get'
zXXY = YKHO._send_request(NKcE, {'user_id': uJjO})['response']['items']
YKHO.log('get_friends method return: ' + str(zXXY))
return zXXY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVo_(uJjO):\n NCls = jvSB.db\n USHK = NCls.custom_friend\n mUmr = NCls.auth_user\n AAyO = NCls.friends\n xDcj = USHK.user_id == uJjO\n DNTH = NCls(xDcj).select(USHK.id)\n DNTH = [WKvO['id'] for WKvO in DNTH]\n xDcj = AAyO.user_id == mUmr.id\n zXXY = NCls(mUmr.id != uJjO).select(mUmr.... | [
"0.72505766",
"0.7022788",
"0.6965319",
"0.66673946",
"0.6620045",
"0.66022307",
"0.6588859",
"0.6579472",
"0.6565979",
"0.6547809",
"0.653386",
"0.65074974",
"0.6487963",
"0.64862025",
"0.64502645",
"0.6443497",
"0.6413275",
"0.64063215",
"0.6333737",
"0.6328272",
"0.6328056... | 0.7601402 | 0 |
Simple vector addition. Returns a new vector lengthend by the vector. | def FOdN(YKHO, XP5J):
return YKHO.addition_with_vector(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif: Vector) -> lNLu:\n return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1], YKHO[2] + Elif[2])",
"def FOdN(YKHO, Elif):\n return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1], YKHO[2] + Elif[2])",
"def FOdN(YKHO, iArr):\n return YKHO.add(iArr)",
"def FOdN(YKHO, Elif):\n return lNLu(YKHO... | [
"0.7839197",
"0.7715023",
"0.765174",
"0.76403636",
"0.7612419",
"0.75923276",
"0.74833536",
"0.7450793",
"0.7450587",
"0.7435949",
"0.7432482",
"0.7417252",
"0.7410753",
"0.73877",
"0.7372038",
"0.7347335",
"0.7342239",
"0.73128015",
"0.7309752",
"0.7292344",
"0.7267574",
... | 0.6728226 | 98 |
Simple vector addition. Returns a new vector lengthend by the vector. | def FPAM(YKHO, XP5J):
return YKHO.__class__(YKHO.x + XP5J.x, YKHO.y + XP5J.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif: Vector) -> lNLu:\n return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1], YKHO[2] + Elif[2])",
"def FOdN(YKHO, Elif):\n return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1], YKHO[2] + Elif[2])",
"def FOdN(YKHO, iArr):\n return YKHO.add(iArr)",
"def FOdN(YKHO, Elif):\n return lNLu(YKHO... | [
"0.7839197",
"0.7715023",
"0.765174",
"0.76403636",
"0.7612419",
"0.75923276",
"0.74833536",
"0.7450793",
"0.7450587",
"0.7435949",
"0.7432482",
"0.7417252",
"0.7410753",
"0.73877",
"0.7372038",
"0.7347335",
"0.7342239",
"0.73128015",
"0.7309752",
"0.7292344",
"0.7267574",
... | 0.69006276 | 65 |
Vector with vector multiplication. Returns the scalar product. | def QQQg(YKHO, XP5J):
return YKHO.x * XP5J.x + YKHO.y * XP5J.y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhEl(WKvO, LVAh):\n return oyIN.multiply(WKvO, LVAh)",
"def WRDB(YKHO, Ty9i: Vector) -> lNLu:\n ...",
"def wTxu(YKHO, iArr):\n pass",
"def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]",
"def i6vy(Z9rn, iArr):\n return [Z9rn * WKvO for WKvO in iArr]",
... | [
"0.8193031",
"0.8116058",
"0.80702835",
"0.79936016",
"0.7925872",
"0.7864434",
"0.7864315",
"0.7833863",
"0.7818683",
"0.7818468",
"0.7797263",
"0.7795939",
"0.77043194",
"0.7681836",
"0.76475674",
"0.7637197",
"0.7582753",
"0.7570938",
"0.7532711",
"0.7531425",
"0.7524305",... | 0.7167742 | 58 |
Simple vector division. Returns a new vector shortened by the scalar. | def M9fH(YKHO, hAEw):
return YKHO.division_from_scalar(hAEw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f3NA(YKHO, hAEw: int) -> lNLu:\n return lNLu(YKHO._x // hAEw, YKHO._y // hAEw)",
"def dShr(YKHO, hAEw):\n if hAEw == 0.0:\n raise ZeroDivisionError('attempted to divide vector by 0!')\n return YKHO.__class__(*(Z9rn.item() for Z9rn in XTiz.divide(YKHO._coords, float(hAEw))[:3]))",
"def NkkI(... | [
"0.78088796",
"0.768817",
"0.740234",
"0.7377248",
"0.7353385",
"0.7323034",
"0.72891045",
"0.7167305",
"0.7053298",
"0.70342207",
"0.70283246",
"0.7010041",
"0.6989238",
"0.69861084",
"0.69826514",
"0.69737184",
"0.6972199",
"0.6962727",
"0.6943407",
"0.6938889",
"0.693836",... | 0.7257589 | 7 |
Simple vector division. Returns a new vector shortened by the scalar. | def HVh8(YKHO, hAEw):
return YKHO.division_from_scalar(hAEw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f3NA(YKHO, hAEw: int) -> lNLu:\n return lNLu(YKHO._x // hAEw, YKHO._y // hAEw)",
"def dShr(YKHO, hAEw):\n if hAEw == 0.0:\n raise ZeroDivisionError('attempted to divide vector by 0!')\n return YKHO.__class__(*(Z9rn.item() for Z9rn in XTiz.divide(YKHO._coords, float(hAEw))[:3]))",
"def NkkI(... | [
"0.78088796",
"0.768817",
"0.740234",
"0.7377248",
"0.7353385",
"0.7323034",
"0.72891045",
"0.7257589",
"0.7167305",
"0.7053298",
"0.70342207",
"0.70283246",
"0.7010041",
"0.6989238",
"0.69861084",
"0.69826514",
"0.69737184",
"0.6972199",
"0.6962727",
"0.6943407",
"0.6938889"... | 0.0 | -1 |
Simple vector division. Returns a new vector shortened by the scalar. | def H1w5(YKHO, hAEw):
return YKHO.__class__(YKHO.x / float(hAEw), YKHO.y / float(hAEw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f3NA(YKHO, hAEw: int) -> lNLu:\n return lNLu(YKHO._x // hAEw, YKHO._y // hAEw)",
"def dShr(YKHO, hAEw):\n if hAEw == 0.0:\n raise ZeroDivisionError('attempted to divide vector by 0!')\n return YKHO.__class__(*(Z9rn.item() for Z9rn in XTiz.divide(YKHO._coords, float(hAEw))[:3]))",
"def NkkI(... | [
"0.78088796",
"0.768817",
"0.740234",
"0.7377248",
"0.7353385",
"0.7323034",
"0.7257589",
"0.7167305",
"0.7053298",
"0.70342207",
"0.70283246",
"0.7010041",
"0.6989238",
"0.69861084",
"0.69826514",
"0.69737184",
"0.6972199",
"0.6962727",
"0.6943407",
"0.6938889",
"0.693836",
... | 0.72891045 | 6 |
Returns the length of this vector. | def u54L(YKHO):
return PZyS(YKHO.x * YKHO.x + YKHO.y * YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMD5(YKHO):\n return xnhW.itkVectorImageUL2_GetVectorLength(YKHO)",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUS2_GetVectorLength(YKHO)",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUL3_GetVectorLength(YKHO)",
"def len(YKHO):\n WKvO = YKHO.vector\n return epAf.sqrt(WKvO[0] * WKvO[0] + ... | [
"0.8541302",
"0.8457833",
"0.8435472",
"0.84173393",
"0.84100556",
"0.8371223",
"0.83587694",
"0.83182",
"0.83073914",
"0.82875943",
"0.8278337",
"0.8255578",
"0.8239633",
"0.82264215",
"0.81715363",
"0.81655085",
"0.80542845",
"0.8026968",
"0.8013245",
"0.7977721",
"0.797532... | 0.0 | -1 |
Returns the distance between this and the given point by computing the length of the resulting vector. | def s7yO(YKHO, XP5J):
return (YKHO - XP5J).length() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XnYi(YKHO, AU8u):\n q5JD, q2Ro = AU8u\n Jw7X = YKHO.x - q5JD\n eUWA = YKHO.y - q2Ro\n pImw = epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)\n return pImw",
"def u54L(YKHO, AU8u):\n return PZyS((AU8u.x - YKHO.x) ** 2 + (AU8u.y - YKHO.y) ** 2)",
"def Ayfi(YKHO, AU8u) -> float:\n if isinstance(AU8u... | [
"0.8115725",
"0.81074154",
"0.80911946",
"0.80281025",
"0.7944983",
"0.78706723",
"0.78703386",
"0.7853282",
"0.77119905",
"0.76223874",
"0.7594832",
"0.74655914",
"0.7458132",
"0.743351",
"0.74233687",
"0.7352058",
"0.7238392",
"0.7224183",
"0.72241235",
"0.72227937",
"0.721... | 0.7033249 | 36 |
Computes the distance between a point p and this line. It is basically the minimum distance over all the points from the line and the point p. This is done by computing the perpendicular and then using euclid. | def mOUS(YKHO, XP5J):
Ty9i = (YKHO.tail - XP5J) * -1
Mkmy = YKHO.direction_vector.scalar_product(Ty9i) / YKHO.direction_vector.length()
if Mkmy < 0:
return YKHO.tail.distance_to(XP5J)
elif Mkmy > YKHO.direction_vector.length():
return YKHO.head.distance_to(XP5J)
else:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tgy8(V6IE, zFiD):\n MlT5 = zFiD[0]\n Wqlh = zFiD[1]\n Ty9i = iArr(MlT5, Wqlh)\n PKKQ = iArr(MlT5, V6IE)\n s1k6 = iArr(Wqlh, V6IE)\n if BJ1H(PKKQ, Ty9i) <= 0:\n return Ayfi(V6IE, MlT5)\n if BJ1H(s1k6, Ty9i) >= 0:\n return Ayfi(V6IE, Wqlh)\n Fg_i = BJ1H(PKKQ, Ty9i) / float(B... | [
"0.7907473",
"0.7784709",
"0.75096065",
"0.74371034",
"0.7396138",
"0.73588467",
"0.7346938",
"0.7320941",
"0.731178",
"0.7289141",
"0.7287002",
"0.72749376",
"0.72580224",
"0.72205657",
"0.7216783",
"0.71848965",
"0.7166538",
"0.7165666",
"0.7151294",
"0.7058611",
"0.7058493... | 0.6400146 | 95 |
Returns the length of one side of the underlying rectangle = size | def OAE2(YKHO):
return (YKHO.rect.get_points()[1] - YKHO.rect.get_points()[0]).length() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(Mkmy):\n return RYVs(Mkmy, 2)",
"def TVTK(YKHO):\n return YKHO.TopLeft[1] - YKHO.BottomRight[1]",
"def szAg(YKHO):\n return YKHO.h // YKHO.size * (YKHO.w // YKHO.size)",
"def TVTK(YKHO):\n return abs(YKHO.rect[1].x - YKHO.rect[0].x)",
"def GPob(TVTK, u54L):\n return 2 * (TVTK + u54L... | [
"0.7474525",
"0.7451605",
"0.7437167",
"0.7433015",
"0.73244387",
"0.7315057",
"0.72964114",
"0.7262535",
"0.72475",
"0.71570885",
"0.7148136",
"0.71250457",
"0.7099767",
"0.7085833",
"0.70664585",
"0.70319515",
"0.7025818",
"0.70207703",
"0.7011165",
"0.70041955",
"0.6996149... | 0.73439455 | 4 |
Returning a new instance of neuron. This will be placed on the given area. If it collides, it won't be placed, at all. | def P5ZJ(YKHO, jKem, f0tD):
YKHO.i += 1
return UDxs(YKHO.i - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5ZJ(YKHO, jKem, f0tD):\n return UDBR(k81r(tuKI.random() * YKHO.limit_x, tuKI.random() * YKHO.limit_y))",
"def kpUK(YKHO, jKem, f0tD):\n return 2",
"def Fdn1():\n fmL7 = tuKI.randrange(0, TwVO.num_of_imgs)\n LMv5 = tuKI.randint(BWYr.bg.get_width(), BWYr.bg.get_width() + 1250)\n xbjI = TwVO(L... | [
"0.65145576",
"0.59591496",
"0.55744827",
"0.5476659",
"0.5425529",
"0.5349478",
"0.5239816",
"0.52073264",
"0.51975495",
"0.5181003",
"0.51592135",
"0.50988656",
"0.50848365",
"0.5071634",
"0.5071634",
"0.50663155",
"0.50456136",
"0.50377923",
"0.5035257",
"0.50134873",
"0.5... | 0.5712225 | 2 |
Returns the xcoordinate of the neuron | def WKvO(YKHO):
return YKHO.position.x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIKw(YKHO):\n return YKHO._coordinate.get_x()",
"def nIKw(YKHO):\n return YKHO.x_coord",
"def mRpp(YKHO):\n return YKHO._x_coord",
"def nIKw(YKHO):\n return YKHO.x",
"def nIKw(YKHO):\n return YKHO.x",
"def nIKw(YKHO):\n return YKHO.x",
"def xXkp(YKHO):\n return int(YKHO._x)",
... | [
"0.8107486",
"0.7990502",
"0.77842474",
"0.7698656",
"0.7653962",
"0.76531535",
"0.7633936",
"0.7597778",
"0.758841",
"0.7578212",
"0.75358665",
"0.7527533",
"0.7512323",
"0.74900335",
"0.74567705",
"0.7443926",
"0.7439699",
"0.7435614",
"0.7429373",
"0.742421",
"0.74164444",... | 0.7466792 | 14 |
Returns the function value for a given x. It is always positiv. When below zero, zero is instead returned | def Zmkp(YKHO, WKvO):
if WKvO < YKHO.lower_bound or WKvO > YKHO.upper_bound:
return 0
else:
return max(0, YKHO.a * WKvO * WKvO + YKHO.b * WKvO + YKHO.c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(YKHO, WKvO):\n return WKvO * ((WKvO < 0) * (YKHO.negativeSlope - YKHO.positiveSlope) + YKHO.positiveSlope)",
"def lNgR(WKvO):\n fUYa = WKvO\n eHNT = (0.4 * fUYa - 0.3) ** 2 + oyIN.exp(-11.534 * oyIN.abs(fUYa) ** 1.95) + oyIN.exp(-5 * (fUYa - 0.8) ** 2)\n return -(eHNT - 1)",
"def eHNT(WKvO... | [
"0.7734034",
"0.77092916",
"0.76173365",
"0.7600236",
"0.7564473",
"0.746922",
"0.7400467",
"0.7315737",
"0.7296163",
"0.7287164",
"0.72843975",
"0.7272151",
"0.7129958",
"0.7109475",
"0.70996606",
"0.7077738",
"0.70679164",
"0.70524275",
"0.7040462",
"0.7039568",
"0.7034195"... | 0.72147554 | 12 |
Returning a new instance of neuron. This will be placed on the given area. If it collides, it won't be placed, at all. | def P5ZJ(YKHO, jKem, f0tD):
return UDBR(k81r(tuKI.random() * YKHO.limit_x, tuKI.random() * YKHO.limit_y)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kpUK(YKHO, jKem, f0tD):\n return 2",
"def P5ZJ(YKHO, jKem, f0tD):\n YKHO.i += 1\n return UDxs(YKHO.i - 1)",
"def Fdn1():\n fmL7 = tuKI.randrange(0, TwVO.num_of_imgs)\n LMv5 = tuKI.randint(BWYr.bg.get_width(), BWYr.bg.get_width() + 1250)\n xbjI = TwVO(LMv5, fmL7)\n TwVO.obstacles.append... | [
"0.5959758",
"0.5711526",
"0.5575312",
"0.5477307",
"0.54291075",
"0.5351364",
"0.524311",
"0.5210967",
"0.51980776",
"0.5181006",
"0.51594716",
"0.5096548",
"0.50883806",
"0.50742424",
"0.50742424",
"0.5066288",
"0.5049725",
"0.5039617",
"0.50356036",
"0.5014753",
"0.5002679... | 0.65142673 | 0 |
Compute Discriminator loss across real/fake. | def gCRG(YNTO, R_Hf, hlj2):
TNXT = ZylS.ones([vPBo.batch_size, vPBo.sequence_length])
VArS = ZylS.losses.sigmoid_cross_entropy(TNXT, R_Hf)
Bu2i = ZylS.losses.sigmoid_cross_entropy(hlj2, YNTO)
xQ0O = (Bu2i + VArS) / 2.0
return (xQ0O, Bu2i, VArS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOC4(YKHO, SZIZ, JQTb):\n CqbS = ZylS.keras.losses.BinaryCrossentropy(from_logits=True)\n TNXT = YKHO.get_real_labels(SZIZ)\n _eWk = ZylS.zeros_like(JQTb)\n qxD9 = CqbS(TNXT, SZIZ)\n PMF5 = CqbS(_eWk, JQTb)\n Mzmy = qxD9 + PMF5\n Mzmy = ZylS.verify_tensor_all_finite(Mzmy, 'Invalid discrimi... | [
"0.82219934",
"0.8210827",
"0.8175327",
"0.8137247",
"0.8103672",
"0.8091493",
"0.8077521",
"0.8070296",
"0.80520093",
"0.8051072",
"0.80363363",
"0.8032086",
"0.79985785",
"0.7916051",
"0.79046285",
"0.7877655",
"0.78565246",
"0.7849071",
"0.7669717",
"0.7646829",
"0.7626114... | 0.0 | -1 |
Batch normalization on convolutional maps. | def idFg(WKvO, _LFN, uYNl):
with ZylS.variable_scope('bn'):
UqYS = ZylS.Variable(ZylS.constant(0.0, shape=[_LFN]), name='beta', trainable=True)
KMvS = ZylS.Variable(ZylS.constant(1.0, shape=[_LFN]), name='gamma', trainable=True)
_ni1, It1b = ZylS.nn.moments(WKvO, [0, 1, 2], name='moments')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JBMS, SRYB = ZylS.nn.moments(CK9p, axes=[0, 1, 2])\n tYiq = yphq[3]\n vgXP = ZylS.Variable(ZylS.zeros([tYiq]))\n NXpY = ZylS.Variable(ZylS.ones([tYiq]))\n idFg = ZylS.nn.batch_normalization(CK9p, JBMS, SR... | [
"0.72602606",
"0.71213925",
"0.6958709",
"0.6916365",
"0.6906669",
"0.68352735",
"0.68087155",
"0.677795",
"0.6758743",
"0.6722728",
"0.67170495",
"0.6716704",
"0.66944355",
"0.66510403",
"0.6623104",
"0.659641",
"0.65921295",
"0.6587665",
"0.65831465",
"0.65773785",
"0.65747... | 0.0 | -1 |
Return the other player, for a player PLAYER numbered 0 or 1. >>> other(0) 1 >>> other(1) 0 | def Elif(oyg0):
return 1 - oyg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNmq(Emd4, oyg0):\n return 0 if oyg0 == 1 else 1",
"def wNmq(YKHO, oyg0: Player) -> mVZ4:\n if oyg0 is YKHO.player1:\n return YKHO.player2\n else:\n return YKHO.player1",
"def wNmq(YKHO, oyg0):\n if oyg0 == YKHO.P1:\n return YKHO.P2\n elif oyg0 == YKHO.P2:\n retur... | [
"0.8132887",
"0.79659766",
"0.7962598",
"0.7876696",
"0.7808773",
"0.7780931",
"0.76593685",
"0.76593685",
"0.7555632",
"0.7444463",
"0.7386796",
"0.73351675",
"0.7322632",
"0.73158306",
"0.71124554",
"0.7061357",
"0.6967827",
"0.69075084",
"0.68318",
"0.6695391",
"0.6687055"... | 0.78031915 | 5 |
Returns a dict with contains all the settings in a plugin. | def gCuF(YKHO):
return {aoD7.key: aoD7.value for aoD7 in YKHO.values.values()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCuF(YKHO):\n if not hasattr(YKHO, '_settings'):\n return {}\n return YKHO._settings",
"def U34r(YKHO):\n return {'plugin': {'config_label': YKHO.config_label, 'config_base': YKHO.config_base}}",
"def aOQ2(YKHO):\n if not YKHO.config:\n return {}\n if not YKHO.config.configurat... | [
"0.73230904",
"0.72184056",
"0.7179612",
"0.7116607",
"0.71096605",
"0.7099635",
"0.7069586",
"0.7041334",
"0.6996776",
"0.6908906",
"0.6886965",
"0.68750846",
"0.6843927",
"0.6843927",
"0.6837229",
"0.6831431",
"0.6812329",
"0.67760193",
"0.67500985",
"0.6734122",
"0.6734122... | 0.68555284 | 12 |
Returns convolutional neural network model for use with time series data | def kAf1(zk33):
lULz = bdPE.layers.Input(shape=(zk33, 1), dtype='float', name='input1')
WKvO = bdPE.layers.Conv1D(64, 16)(lULz)
WKvO = bdPE.layers.MaxPool1D(16)(WKvO)
WKvO = bdPE.layers.BatchNormalization()(WKvO)
WKvO = bdPE.layers.Activation('relu')(WKvO)
WKvO = bdPE.layers.Conv1D(128, 16)(WKvO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d96A():\n C3ST = ileL()\n C3ST.add(yHwh(filters=16, kernel_size=(2, 2), kernel_regularizer=V70B(0.0001), input_shape=(NwL4, TXzq, Qi3c), activation='relu'))\n C3ST.add(BzBX(pool_size=2))\n C3ST.add(yHwh(filters=32, kernel_size=(2, 2), kernel_regularizer=V70B(0.0001), activation='relu'))\n C3ST.a... | [
"0.6788699",
"0.66350293",
"0.66238064",
"0.6606071",
"0.66053885",
"0.6553132",
"0.6545108",
"0.6511823",
"0.64896303",
"0.64694166",
"0.6454222",
"0.6451168",
"0.6429968",
"0.64161783",
"0.6415125",
"0.63638335",
"0.6345549",
"0.6312035",
"0.63022226",
"0.6278932",
"0.62654... | 0.6330845 | 17 |
Returns convolutional neural network model for use with spectrum data | def SzOV(zk33):
lULz = bdPE.layers.Input(shape=(zk33, 2), dtype='float', name='input1')
WKvO = bdPE.layers.Conv1D(64, 4)(lULz)
WKvO = bdPE.layers.MaxPool1D(4)(WKvO)
WKvO = bdPE.layers.BatchNormalization()(WKvO)
WKvO = bdPE.layers.Activation('relu')(WKvO)
WKvO = bdPE.layers.Conv1D(64, 8)(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d96A():\n C3ST = ileL()\n C3ST.add(yHwh(filters=16, kernel_size=(2, 2), kernel_regularizer=V70B(0.0001), input_shape=(NwL4, TXzq, Qi3c), activation='relu'))\n C3ST.add(BzBX(pool_size=2))\n C3ST.add(yHwh(filters=32, kernel_size=(2, 2), kernel_regularizer=V70B(0.0001), activation='relu'))\n C3ST.a... | [
"0.7032167",
"0.7002966",
"0.6981775",
"0.6893711",
"0.686886",
"0.6842124",
"0.68081564",
"0.680353",
"0.6730525",
"0.668318",
"0.66630954",
"0.66618454",
"0.6656465",
"0.6634954",
"0.663238",
"0.6624571",
"0.66159004",
"0.6581776",
"0.65812707",
"0.655255",
"0.6543639",
"... | 0.72352374 | 0 |
Return true if each objective of one is not strictly worse than the corresponding objective of other and at least one objective is strictly better. | def vIBh(YKHO, a0GJ, Elif):
kUu4 = False
for vqex, _2Wt in zip(a0GJ, Elif):
if vqex > _2Wt:
kUu4 = True
elif vqex < _2Wt:
return False
return kUu4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_cO(IxHE, dZEo):\n Ylbp = False\n for UVAQ in (WGsr, g1kV):\n if TJJG(UVAQ, IxHE, dZEo):\n Ylbp = True\n elif TJJG(UVAQ, dZEo, IxHE):\n return False\n return Ylbp",
"def TJJG(UVAQ, IxHE, dZEo):\n if UVAQ == WGsr:\n return UVAQ(IxHE) > UVAQ(dZEo)\n el... | [
"0.6861169",
"0.6774141",
"0.66519904",
"0.6383497",
"0.63350904",
"0.63339156",
"0.6290284",
"0.62659234",
"0.6191432",
"0.6181177",
"0.61780226",
"0.61726606",
"0.6104189",
"0.6064118",
"0.6050771",
"0.5966188",
"0.5942857",
"0.5894846",
"0.5884167",
"0.5882213",
"0.5870233... | 0.56327116 | 43 |
The message ID. This value should not be changed. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KREW(YKHO):\n pass",
"def KREW(YKHO) -> int:\n assert YKHO.is_set('message_id'), 'message_id is not set'\n return YWvJ(int, YKHO.get('message_id'))",
"def KREW(YKHO) -> int:\n assert YKHO.is_set('message_id'), 'message_id is not set.'\n return YWvJ(int, YKHO.get('message_id'))",
"def KREW(... | [
"0.90157807",
"0.8960744",
"0.895838",
"0.89380705",
"0.87482595",
"0.86686",
"0.86686",
"0.85903573",
"0.851106",
"0.851106",
"0.8164547",
"0.80055875",
"0.79539585",
"0.77240384",
"0.765961",
"0.75917435",
"0.748128",
"0.74499476",
"0.74367124",
"0.73957247",
"0.7329482",
... | 0.0 | -1 |
The message's date. This value should not be changed. | def _c1T(YKHO):
return YKHO._date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _c1T(YKHO) -> qcWV:\n E3oo = int(YKHO._message['date'])\n return qcWV.fromtimestamp(E3oo)",
"def _c1T(YKHO) -> qcWV:\n E3oo = int(YKHO._message['date'])\n return qcWV.fromtimestamp(E3oo)",
"def fqzu(YKHO, Ol8d):\n return qcWV.fromtimestamp(float(Ol8d['internalDate']) / 1000)",
"def fqzu(tO... | [
"0.82862467",
"0.82862467",
"0.80715156",
"0.79850316",
"0.7770412",
"0.7653783",
"0.7579687",
"0.7501857",
"0.74881494",
"0.74492973",
"0.74492973",
"0.7428238",
"0.7427718",
"0.7426978",
"0.7426978",
"0.7426978",
"0.735583",
"0.73524445",
"0.7347973",
"0.7317779",
"0.728897... | 0.7610444 | 9 |
Creates an EmailMessage from a message dictionary. | def jG8h(Emd4, nPrm, **B2fa):
z7o_ = {'message_id': nPrm['id'], 'from_address': nPrm['from'], 'to_address': nPrm['to'], 'subject': nPrm['subject'], 'date': nPrm['date'], 'attachments': nPrm.get('attachments'), 'body': nPrm.get('body'), 'text_body': nPrm.get('textBody'), 'html_body': nPrm.get('htmlBody')}
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(nPrm: dict) -> 'Message':\n return LuKW(nPrm['sender'], nPrm['recipient'], nPrm['body'], float(nPrm['created']))",
"def jG8h(nyAL={}):\n MKlR = YOiN(nyAL)\n MKlR.validate()\n return MKlR",
"def hr_9(Emd4, Ol8d):\n return Emd4(Ol8d.body_serialize(), Ol8d.headers)",
"def jG8h(Emd4, qHj0... | [
"0.7980824",
"0.77724624",
"0.6996137",
"0.67249966",
"0.67249966",
"0.6615864",
"0.6590343",
"0.6532855",
"0.65287143",
"0.6518135",
"0.65092963",
"0.6505263",
"0.6489023",
"0.6456095",
"0.6454633",
"0.644603",
"0.64298844",
"0.6418774",
"0.6418774",
"0.6418403",
"0.6404905"... | 0.75629014 | 2 |
Test the conversion of a Wilhoit model to a NASA model. | def BDDU(YKHO):
TpKE = YKHO.wilhoit
PQHU = TpKE.toNASA(Tmin=10, Tmax=3000, Tint=1000)
WDcK = XTiz.arange(10, 3000, 10)
for Kt_s in WDcK:
eYqD = TpKE.getHeatCapacity(Kt_s)
R88S = PQHU.getHeatCapacity(Kt_s)
YKHO.assertAlmostEqual(R88S, eYqD, delta=1.0)
yXP6 = TpKE.getEnthal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxz3(YKHO):\n CaXX, EkPx, L1dM, XOOk, pHXX, MgfK, pdhd, Oa10 = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)\n aM_I = 'Stupid thermo.'\n qMjO = fZ4B(CaXX, EkPx, L1dM, XOOk, pHXX, MgfK, pdhd, Oa10, comment=aM_I)\n JPKX = B5Ug(qMjO)",
"def BxjH(YKHO):\n PQHU = YKHO.nasa\n TpKE = PQHU.toWilhoit(Cp0... | [
"0.69213855",
"0.6434299",
"0.61393934",
"0.6109968",
"0.6015",
"0.5974213",
"0.5792489",
"0.57810533",
"0.5767724",
"0.573398",
"0.5703268",
"0.5674672",
"0.56723195",
"0.5639904",
"0.561797",
"0.5614329",
"0.5543636",
"0.5529817",
"0.5521916",
"0.55161256",
"0.55133206",
... | 0.68596816 | 1 |
Test the conversion of a Wilhoit model to a ThermoData model. | def Zb5_(YKHO):
TpKE = YKHO.wilhoit
GfEd = TpKE.toThermoData()
WDcK = XTiz.array([300, 400, 500, 600, 800, 1000, 1500])
for Kt_s in WDcK:
eYqD = TpKE.getHeatCapacity(Kt_s)
KRiv = GfEd.getHeatCapacity(Kt_s)
YKHO.assertAlmostEqual(KRiv, eYqD, 4)
Kt_s = 298
yXP6 = TpKE.getEn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wG3B(YKHO):\n ePWf = WaZ9(0, 0, [10, 20, 30, 40, 60, 80, 130.0])\n qMjO = P95t(ePWf, atoms=2, rotors=0, linear=True)\n YKHO.assertTrue(isinstance(qMjO, fZ4B), \"Didn't make ThermoWilhoitData instance\")\n YKHO.assertTrue(isinstance(qMjO, ibOV), \"Didn't make any kind of ThermoData instance\")",
"... | [
"0.7269532",
"0.6984278",
"0.63994235",
"0.61755323",
"0.61632276",
"0.61632276",
"0.59808993",
"0.5947515",
"0.58893716",
"0.58295506",
"0.58157957",
"0.58020717",
"0.56788975",
"0.5678453",
"0.56673366",
"0.56654155",
"0.56284684",
"0.5627419",
"0.55865985",
"0.55586404",
"... | 0.7428229 | 0 |
Test the conversion of a NASA model to a Wilhoit model. | def BxjH(YKHO):
PQHU = YKHO.nasa
TpKE = PQHU.toWilhoit(Cp0=YKHO.wilhoit.Cp0.value_si, CpInf=YKHO.wilhoit.CpInf.value_si)
WDcK = XTiz.arange(10, 3000, 10)
for Kt_s in WDcK:
eYqD = TpKE.getHeatCapacity(Kt_s)
R88S = PQHU.getHeatCapacity(Kt_s)
YKHO.assertAlmostEqual(R88S, eYqD, delta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxz3(YKHO):\n CaXX, EkPx, L1dM, XOOk, pHXX, MgfK, pdhd, Oa10 = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)\n aM_I = 'Stupid thermo.'\n qMjO = fZ4B(CaXX, EkPx, L1dM, XOOk, pHXX, MgfK, pdhd, Oa10, comment=aM_I)\n JPKX = B5Ug(qMjO)",
"def BDDU(YKHO):\n TpKE = YKHO.wilhoit\n PQHU = TpKE.toNASA(Tmi... | [
"0.65942234",
"0.65702754",
"0.64221764",
"0.6269908",
"0.5951897",
"0.5929569",
"0.5717513",
"0.5681829",
"0.5670554",
"0.5631874",
"0.56173396",
"0.5539362",
"0.5494012",
"0.5480008",
"0.5473311",
"0.5466477",
"0.54633933",
"0.54600155",
"0.54431087",
"0.54354525",
"0.54294... | 0.6623411 | 0 |
Test the conversion of a ThermoData model to a Wilhoit model. | def RWs3(YKHO):
GfEd = YKHO.thermodata
TpKE = GfEd.toWilhoit()
WDcK = XTiz.array([300, 400, 500, 600, 800, 1000, 1500])
for Kt_s in WDcK:
eYqD = TpKE.getHeatCapacity(Kt_s)
KRiv = GfEd.getHeatCapacity(Kt_s)
YKHO.assertAlmostEqual(KRiv, eYqD, 3)
Kt_s = 298
yXP6 = TpKE.getEn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wG3B(YKHO):\n ePWf = WaZ9(0, 0, [10, 20, 30, 40, 60, 80, 130.0])\n qMjO = P95t(ePWf, atoms=2, rotors=0, linear=True)\n YKHO.assertTrue(isinstance(qMjO, fZ4B), \"Didn't make ThermoWilhoitData instance\")\n YKHO.assertTrue(isinstance(qMjO, ibOV), \"Didn't make any kind of ThermoData instance\")",
"... | [
"0.7648926",
"0.74933994",
"0.67625046",
"0.64434165",
"0.6040932",
"0.6040932",
"0.5954312",
"0.5901562",
"0.5853504",
"0.58194214",
"0.5728896",
"0.5690246",
"0.5636998",
"0.56360006",
"0.55900174",
"0.5585892",
"0.5584376",
"0.55694467",
"0.5553112",
"0.55411935",
"0.55294... | 0.73856115 | 2 |
Street must have an auto updated_at attrs. | def OfLN(YKHO):
YKHO.assertIsInstance(YKHO.street.updated_at, qcWV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD33():\n BOpi = OFT0(state='ACTIVE', matricula='1234-MMM', date_estreno='24/11/2020', model_generic='premium', last_coordinate_latitude=23.4434, last_coordinate_longitude=23.4433, km_restantes=120.0, km_totales=0.0, date_last_check='24/11/2020', km_last_check=0.0)\n assert BOpi.address == 'Al Kufrah, Li... | [
"0.5950655",
"0.58171105",
"0.5665682",
"0.5649001",
"0.5649001",
"0.5528279",
"0.5514466",
"0.5445981",
"0.5442134",
"0.54348725",
"0.54131776",
"0.53878206",
"0.53664595",
"0.533649",
"0.5332975",
"0.5310927",
"0.52986133",
"0.52986133",
"0.52986133",
"0.52802896",
"0.52802... | 0.64402556 | 0 |
Imports a module from a specific path | def Lwr_(VlDb, pmON, cmVL=None, gyVa=False):
if cmVL is None:
cmVL = VlDb.replace('.', Hy7s.sep)
if not Hy7s.path.exists(pmON):
return None
if not Hy7s.path.exists(Hy7s.path.join(pmON, cmVL)) and (not Hy7s.path.exists(Hy7s.path.join(pmON, cmVL + '.py'))):
return None
if Hy7s.sep ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xXDX(pmON: str):\n try:\n pmON = pmON.replace('\\\\', '/').rstrip('/')\n pmON = Hy7s.path.abspath(pmON)\n LCet = pmON.split('/')[-1].split('.')[0]\n if Hy7s.path.isdir(pmON):\n pmON = Hy7s.path.join(pmON, '__init__.py')\n Cqok = LJLJ(LCet, pmON)\n yR_P = ... | [
"0.8465563",
"0.82293123",
"0.8039432",
"0.8019764",
"0.7984652",
"0.7974431",
"0.79312456",
"0.79144436",
"0.7719504",
"0.7667146",
"0.7664831",
"0.76358515",
"0.7603378",
"0.7551052",
"0.7532757",
"0.7423682",
"0.73493916",
"0.7340945",
"0.73346895",
"0.7215914",
"0.7207429... | 0.728161 | 19 |