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 |
|---|---|---|---|---|---|---|
Creates a dict with 400 random weight values. | def qVll():
dict = {}
for WKvO in range(20):
for LVAh in range(20):
dict['sad' + str(WKvO) + str(LVAh)] = tuKI.uniform(0.4, 0.5)
dict['happy' + str(WKvO) + str(LVAh)] = tuKI.uniform(0.4, 0.5)
dict['angry' + str(WKvO) + str(LVAh)] = tuKI.uniform(0.4, 0.5)
d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ta70(YKHO) -> int:\n return [(int(tuKI() * 10 + 116),)]",
"def NQTi(YKHO):\n return [float('{:0.3f}'.format(tuKI.uniform(*YKHO.WEIGHTSRANGE))) for WKvO in range(YKHO.numInputs)]",
"def WQdt():\n zT_U = {}\n zT_U[1] = [0.2, 0.1, 0.1, 0.1, 0.2, 0.2, 0.1]\n zT_U[2] = [0.2, 0.1, 0.1, 0.1, 0.2, 0... | [
"0.7087111",
"0.67390674",
"0.6669162",
"0.66215414",
"0.65723383",
"0.65204155",
"0.6510479",
"0.64688176",
"0.6450344",
"0.6345589",
"0.6275518",
"0.6241973",
"0.62278676",
"0.6222104",
"0.6219837",
"0.6217456",
"0.6216734",
"0.6187181",
"0.6149226",
"0.6111499",
"0.6084701... | 0.7253062 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
hFPs = jQ3Z['Month'].mode()[0]
print('\nMost common month is :', hFPs)
DSEJ = jQ3Z['Day'].mode()[0]
print('\nMost common day is :', DSEJ)
jQ3Z['Hour'] = jQ3Z['Start Time'].dt.hour
daHl = jQ3Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Ri0C = jQ3Z['Start Station'].mode()[0]
print('\nMost common start station is : {} station'.format(Ri0C))
k7bv = jQ3Z['End Station'].mode()[0]
print('\nMost common end station is : {} station'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
Q3mc = jQ3Z['Trip Duration'].sum()
EImo = jQ3Z['Trip Duration'].mean()
print('\nThe total travel time of trips is : {} hours'.format(Q3mc))
print('\nThe average travel time of trips is : {} hours'.format(EImo))
prin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Returns a copy of the given trajectory that is reduced to the given set of joints. | def jKXf(Op2R, Hydg):
G_9M = XnFt()
G_9M.header = Hydg.header
_0VL = []
p2QI = len(Hydg.joint_names)
for Ojzy in range(p2QI):
if Hydg.joint_names[Ojzy] in Op2R:
_0VL.append(Ojzy)
G_9M.joint_names = [Hydg.joint_names[YRbF] for YRbF in range(p2QI) if YRbF in _0VL]
for AU8u ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YSul(dlZb, fQxG):\n from scipy import interpolate\n if dlZb.GetDuration() != 0.0:\n raise ValueError('Cannot handle timed trajectories yet!')\n if dlZb.GetNumWaypoints() < 2:\n return dlZb\n SvJk = dlZb.GetConfigurationSpecification()\n eOi3 = fQxG.GetActiveDOFIndices()\n DNs0 =... | [
"0.60846907",
"0.55876005",
"0.54615355",
"0.5408235",
"0.52900946",
"0.5194427",
"0.51727664",
"0.51450956",
"0.51450956",
"0.51145196",
"0.5081529",
"0.4982998",
"0.49383652",
"0.49286434",
"0.49138945",
"0.49110657",
"0.49053296",
"0.48948264",
"0.4891608",
"0.48445883",
"... | 0.50604516 | 11 |
Traverse vertices reachable from source in a breadthfirst manner. | def bJFh(JZXy):
gGq6 = MUE7([JZXy])
azXi[JZXy] = True
while gGq6:
Q6kx = gGq6.popleft()
print(Q6kx, end=' ')
A_IW = Oa1e[JZXy]
for AAbN in A_IW:
if not azXi[AAbN]:
gGq6.append(AAbN)
azXi[AAbN] = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h7Hy(YKHO, JZXy: Optional[str]=None) -> bDy6[AzJI[str, str]]:\n YKHO.__check_network_initialized()\n if JZXy is None:\n JZXy = YKHO.root\n return jHsn.bfs_edges(YKHO.__network, source=JZXy)",
"def Asu7(pNZh, JZXy, A_IW):\n gGq6 = [JZXy]\n azXi = set([JZXy])\n while gGq6:\n Q6k... | [
"0.7460562",
"0.7188948",
"0.7185541",
"0.7130469",
"0.7047671",
"0.703266",
"0.702864",
"0.7009701",
"0.69349915",
"0.68871975",
"0.6876834",
"0.6857677",
"0.6857418",
"0.6852296",
"0.6847866",
"0.6812444",
"0.68038106",
"0.679736",
"0.67627525",
"0.67203856",
"0.6695061",
... | 0.7140398 | 3 |
Return the update url of an object (to be posted to). | def Zxcn(YKHO):
return YKHO.get_list_url() + '?action=update&pk=' + str(YKHO.pk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def hKhs(YKHO, YEnM):\n return YEnM.get_absolute_url()",
"def d998(YKHO, YEnM):\n return nKyW(YKHO.view_name, _external=True, **{YKHO.view_arg_name: YEnM.id})",
"def O_s3(YEnM):\n _yOu = DDS9.objects.get_for_model(YEnM.__class__)\n return gxE... | [
"0.7175071",
"0.70310825",
"0.67923695",
"0.67519",
"0.67392296",
"0.67285264",
"0.67285264",
"0.65663517",
"0.6548441",
"0.6512172",
"0.64675874",
"0.6389942",
"0.63790673",
"0.63658875",
"0.63609254",
"0.63233644",
"0.62828434",
"0.6268788",
"0.6256608",
"0.6251534",
"0.625... | 0.78714794 | 0 |
Return the detail url of an object. | def IxeK(YKHO):
return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d998(YKHO, YEnM):\n return nKyW(YKHO.view_name, _external=True, **{YKHO.view_arg_name: YEnM.id})",
"def hKhs(YKHO, YEnM):\n return YEnM.get_absolute_url()",
"def QZnA(YKHO, YEnM):\n return YEnM.get_absolute_url()",
"def QZnA(YKHO, YEnM):\n return YEnM.get_absolute_url()",
"def IxeK(YKHO, NB... | [
"0.81897527",
"0.77494186",
"0.7702995",
"0.7702995",
"0.76696515",
"0.76459587",
"0.75910294",
"0.7578183",
"0.7448175",
"0.7424385",
"0.7421948",
"0.73911214",
"0.73846835",
"0.7369393",
"0.73517114",
"0.7290067",
"0.71868676",
"0.715658",
"0.7155284",
"0.713279",
"0.713279... | 0.74811673 | 8 |
Get file reprstorage key. | def jYva(GPtr):
qLkA = hOJa(GPtr)
def mexE(nUeQ: Files):
return B681(path=nUeQ.file_path, hash=nUeQ.sha256, tag=qLkA)
return mexE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBrm(YKHO):\n YKHO._fileh.read(4)\n H5ew = YKHO._Str.unpack(YKHO._fileh.read(YKHO._ibytes))[0]\n YKHO._fileh.read(4)\n return H5ew",
"def H5ew(YKHO):\n return kF3y.file(gCuF.get('STORAGE_KEY_PATH'))",
"def Dn9U(YKHO):\n return YKHO.path + Hy7s.sep + YKHO.name",
"def Zaqu(YKHO):\n ret... | [
"0.77743524",
"0.77427405",
"0.77045846",
"0.74031365",
"0.73129267",
"0.72520953",
"0.71826035",
"0.713938",
"0.7130889",
"0.7016845",
"0.69091344",
"0.6907065",
"0.68956625",
"0.6891887",
"0.6875328",
"0.68661565",
"0.6851495",
"0.6851495",
"0.6851495",
"0.6851495",
"0.6851... | 0.6677574 | 65 |
verify that 3d blob log works, even when the third dimension is too small to support the observed standard deviation | def popb(b4yl):
nPrm = b4yl.reshape(1, *b4yl.shape)
Aofo = H0iz(nPrm, min_sigma=2, max_sigma=4, num_sigma=10, threshold=0)
assert oyIN.array_equal(Aofo, oyIN.array([[0, 10, 90, 2]])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f_La(YKHO):\n jzdc = q3V_(HfiF(1, 16), (5, 3))\n YKHO.assertFloatEqual(NstX(jzdc), bFB9(gNuL(jzdc)))",
"def dw9n(aPd6):\n pass",
"def otDR():\n with UtL5.dygraph.guard():\n oyIN.random.seed(33)\n WKvO = oyIN.random.uniform(1, 100, size=[3, 3])\n Ylbp = CbyH.std(szaN(WKvO), ... | [
"0.6442529",
"0.6024601",
"0.58688563",
"0.5844343",
"0.5844343",
"0.58398265",
"0.5835684",
"0.5830562",
"0.57797945",
"0.56757164",
"0.5663082",
"0.5661287",
"0.5655296",
"0.5636512",
"0.56326723",
"0.56284094",
"0.56172377",
"0.5616652",
"0.5615216",
"0.5593516",
"0.557579... | 0.803372 | 0 |
Returns the message of the comment. | def Ol8d(YKHO):
return YKHO.data.message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def podV(YKHO) -> str:\n pass",
"def JWxo(YKHO) -> QMSQ:\n ...",
"def Eair(YKHO):\n return YKHO.__message",
"def Eair(YKHO):\n return YKHO.__message",
"def podV(YKHO) -> str:\n return YKHO._j_catalog_database.getComment()",
"def JWxo(YKHO):\n return YKHO.comment",
"def Eair(YKHO):\n ... | [
"0.76413345",
"0.74449736",
"0.74405587",
"0.74405587",
"0.7437278",
"0.74055064",
"0.7369318",
"0.73343927",
"0.73305756",
"0.729292",
"0.729292",
"0.729292",
"0.729292",
"0.72858715",
"0.72832215",
"0.72832215",
"0.72576314",
"0.72576314",
"0.72402364",
"0.7216031",
"0.7210... | 0.7005849 | 83 |
return pad field that matches SensorID | def BXvF(wmRZ):
return {'SensorID': wmRZ['SensorID']} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8j2(YKHO):\n return YKHO.word2idx.get(Sbzz, 0)",
"def sfdl(YKHO):\n pass",
"def sfdl(YKHO):\n pass",
"def qi1f(YKHO):\n return YKHO.__sensor_id",
"def DoFp(YKHO):\n return YKHO.stoi[Sbzz]",
"def PGgL(YKHO):\n VAMo = YKHO.can_data.get('can_id')\n XtFw = YKHO.sensor_map.get(VAMo)\... | [
"0.6089277",
"0.5759516",
"0.5759516",
"0.5553668",
"0.55172217",
"0.55049884",
"0.5502572",
"0.5464515",
"0.5464515",
"0.54519606",
"0.5329745",
"0.52865547",
"0.52820307",
"0.52749074",
"0.52428794",
"0.5207127",
"0.5183133",
"0.5173875",
"0.5165759",
"0.51576954",
"0.51451... | 0.74166286 | 0 |
VGG 11layer model (configuration "A") | def wNbF(mL4f=False, Eb4t=True, **B2fa):
return zm1_('vgg11', 'A', False, mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNbF(**B2fa):\n C3ST = s3br(AaDq(_Fei['A']), **B2fa)\n return C3ST",
"def wNbF():\n return s3br(AaDq(_Fei['A']))",
"def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))",
"def ZsU2():\n return s3br(AaDq(_Fei['B']))",
"def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n ... | [
"0.8561846",
"0.8528357",
"0.8266595",
"0.8174459",
"0.8169166",
"0.81288993",
"0.7844362",
"0.7815675",
"0.7798872",
"0.7752156",
"0.7752156",
"0.77488863",
"0.77369756",
"0.77261806",
"0.7652191",
"0.76373684",
"0.7524913",
"0.7484841",
"0.74788743",
"0.74782026",
"0.746969... | 0.0 | -1 |
VGG 11layer model (configuration "A") with batch normalization | def CAz4(mL4f=False, Eb4t=True, **B2fa):
return zm1_('vgg11_bn', 'A', True, mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))",
"def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))",
"def CAz4(**B2fa):\n C3ST = s3br(AaDq(_Fei['A'], batch_norm=True), **B2fa)\n return C3ST",
"def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.... | [
"0.76256585",
"0.7527123",
"0.7346556",
"0.7285389",
"0.72402114",
"0.72196317",
"0.72174317",
"0.71947473",
"0.716124",
"0.7088806",
"0.7082506",
"0.70559454",
"0.70362496",
"0.70179003",
"0.70176536",
"0.7005308",
"0.6974678",
"0.6961659",
"0.6956656",
"0.6946224",
"0.68778... | 0.0 | -1 |
VGG 13layer model (configuration "B") | def ZsU2(mL4f=False, Eb4t=True, **B2fa):
return zm1_('vgg13', 'B', False, mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))",
"def ZsU2():\n return s3br(AaDq(_Fei['B']))",
"def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n return C3ST",
"def Cxkw(**B2fa):\n C3ST = s3br(AaDq(_Fei['B'], batch_norm=True), **B2fa)\n return C3ST",
"def ZsU2(jTqs=1... | [
"0.8477868",
"0.8465897",
"0.8463193",
"0.8337648",
"0.8061902",
"0.80160695",
"0.7966153",
"0.7870948",
"0.78542745",
"0.7847819",
"0.78449655",
"0.7840387",
"0.7830252",
"0.7802169",
"0.77512956",
"0.77200717",
"0.7678957",
"0.76687014",
"0.7640897",
"0.76353616",
"0.761971... | 0.0 | -1 |
VGG 16layer model (configuration "D") | def a7Lb(mL4f=False, Eb4t=True, dC43='', **B2fa):
return zm1_('vgg16', 'D', False, pretrained=mL4f, progress=Eb4t, weights_path=dC43, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8482543",
"0.8453662",
"0.83023703",
"0.8240353",
"0.81314003",
"0.8079578",
"0.7999773",
"0.7996756",
"0.7950659",
"0.79101694",
"0.79068863",
"0.7885296",
"0.78825146",
"0.78825146",
"0.78825146",
"0.7827089",
"0.7819219",
"0.7813056",
"0.77699214",
"0.7759704",
"0.77413... | 0.0 | -1 |
VGG 19layer model (configuration "E") | def AndN(mL4f=False, Eb4t=True, **B2fa):
return zm1_('vgg19', 'E', False, mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AndN(**B2fa):\n C3ST = s3br(AaDq(_Fei['E']), **B2fa)\n return C3ST",
"def AndN():\n return s3br(AaDq(_Fei['E']))",
"def bFDE():\n return s3br(AaDq(_Fei['E'], batch_norm=True))",
"def bFDE(**B2fa):\n C3ST = s3br(AaDq(_Fei['E'], batch_norm=True), **B2fa)\n return C3ST",
"def ZsU2():\n ... | [
"0.84032625",
"0.8357504",
"0.8207867",
"0.80626094",
"0.80340594",
"0.8002266",
"0.79124343",
"0.78631854",
"0.7821841",
"0.77572435",
"0.77047306",
"0.7658324",
"0.7656703",
"0.76538116",
"0.7615078",
"0.7603496",
"0.7598256",
"0.75641656",
"0.7563316",
"0.7558401",
"0.7551... | 0.0 | -1 |
Resets the ith score, counting from 1. | def fvLu(YKHO, YRbF, p1kx):
YKHO.scores[YRbF - 1] = p1kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLKW(YKHO):\n YKHO.score = 0",
"def NLKW(YKHO):\n YKHO.score = 0",
"def X6WW(YKHO):\n YKHO.score_interval = YKHO.iteration_from_last_scoring\n YKHO.iteration_from_last_scoring = 0",
"def SiRx(YKHO):\n YKHO.totalscore = 0",
"def jMKS(YKHO):\n YKHO._player1score = 0\n YKHO._player2sc... | [
"0.79670435",
"0.79670435",
"0.79502887",
"0.76249355",
"0.72789717",
"0.72290075",
"0.70070523",
"0.69687057",
"0.68852085",
"0.67822415",
"0.67777354",
"0.6763917",
"0.676232",
"0.6685889",
"0.6627239",
"0.6611938",
"0.66087353",
"0.657807",
"0.65665025",
"0.6566269",
"0.65... | 0.66633284 | 14 |
Returns the ith score, counting from 1. | def vNP6(YKHO, YRbF):
return YKHO.scores[YRbF - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNP6(YKHO, YRbF):\n return YKHO._scores[YRbF - 1]",
"def qW0K(YRbF):\n if YRbF >= 1:\n return 1\n return 0",
"def Jh8B(YKHO):\n return YKHO.jeu.score()[0]",
"def JEoc(YKHO):\n return YKHO._parms.get('score_each_iteration')",
"def p1kx(YKHO):\n p1kx = sum(map(lambda WKvO: WKvO[2... | [
"0.7338743",
"0.70635635",
"0.6840771",
"0.6681677",
"0.661341",
"0.6609941",
"0.6546991",
"0.6515428",
"0.6515428",
"0.64559084",
"0.63656497",
"0.62339824",
"0.62339824",
"0.6233495",
"0.62264866",
"0.6154091",
"0.6148388",
"0.6139262",
"0.61333907",
"0.60631555",
"0.606104... | 0.7393673 | 0 |
Returns the highest score. | def kI8N(YKHO):
return max(YKHO.scores) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jB5X(YKHO):\n return max(YKHO.scores)",
"def jB5X(YKHO):\n return YKHO._max_score",
"def hckV(YKHO):\n if YKHO.max_score == -1:\n eyqE = YKHO.histogram.most_common(1)\n if len(eyqE) > 0:\n YKHO.max_score = eyqE[0][1]\n return YKHO.max_score\n else:\n ... | [
"0.87970245",
"0.8543404",
"0.84262913",
"0.8336208",
"0.82772225",
"0.8270852",
"0.82227075",
"0.8081528",
"0.8062576",
"0.8007863",
"0.79945725",
"0.7978678",
"0.7969108",
"0.793651",
"0.7932823",
"0.76099664",
"0.7597154",
"0.7597154",
"0.74169225",
"0.7408115",
"0.7408115... | 0.8534638 | 2 |
Return if the cover is closed based on the statemachine. | def SEEh(ajET: HomeAssistant, g2g3: str) -> bool:
return ajET.states.is_state(g2g3, Cy2T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED",
"def SEEh(YKHO) -> bool | None:\n S0MI.info('Processing is_closed %s for %s', YKHO._device.state, YKHO.name or YKHO._device.name)\n if not YKHO._device.malfunction:\n match YKHO._device.state:\n case uELJ.DeviceSt... | [
"0.8123816",
"0.79053634",
"0.78576714",
"0.7707886",
"0.7669326",
"0.7593815",
"0.75442874",
"0.7475239",
"0.7466434",
"0.7458067",
"0.74230665",
"0.73709244",
"0.73652565",
"0.73631704",
"0.7353492",
"0.7336393",
"0.7327941",
"0.7324076",
"0.72761196",
"0.7257236",
"0.72050... | 0.66569954 | 51 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
UksD: CTgR[k_iR] = ajET.data[Sugg]
return await UksD.async_unload_entry(bTKY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.0 | -1 |
Return the state attributes. | def upgy(YKHO) -> dict[str, ImMB]:
nPrm = {}
if (jvSB := YKHO.current_cover_position) is not None:
nPrm[MQw_] = jvSB
if (yTcU := YKHO.current_cover_tilt_position) is not None:
nPrm[oeGv] = yTcU
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.78680027 | 79 |
Return if the cover is closed or not. | def SEEh(YKHO) -> bool | None:
return YKHO._attr_is_closed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED",
"def SEEh(YKHO):\n return YKHO.current_cover_position <= 0",
"def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True",
"def... | [
"0.8575165",
"0.8500875",
"0.8484762",
"0.8384998",
"0.82490444",
"0.78721577",
"0.77452445",
"0.7724164",
"0.7653287",
"0.7599002",
"0.7513774",
"0.7376912",
"0.73753506",
"0.7308922",
"0.7295899",
"0.7273603",
"0.7260638",
"0.7260171",
"0.7249041",
"0.72224844",
"0.71960795... | 0.6689168 | 57 |
Returns true if the number of active sides is greater than or equal to 2. | def U4x1(YKHO):
return YKHO.countActiveSides() >= 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aKEQ(YKHO):\n YKHO.face_hist()\n JaA9 = 0\n for wEf2 in YKHO.faces.values():\n if wEf2 >= 2:\n JaA9 += 1\n if JaA9 == 2:\n return True\n return False",
"def S4wy(BA7i: list):\n if rUyq(BA7i):\n return False\n return max([BA7i.count(HEZd) fo... | [
"0.68869174",
"0.6796934",
"0.6700756",
"0.66668445",
"0.6656798",
"0.66132325",
"0.66132325",
"0.6496069",
"0.6482883",
"0.6411293",
"0.634426",
"0.63424706",
"0.6340999",
"0.6340999",
"0.6340999",
"0.6340999",
"0.63227344",
"0.63227344",
"0.63189125",
"0.63171107",
"0.63154... | 0.6946649 | 0 |
Returns true if all sides connected to this vertex is `BLANK`. False otherwise. | def sdX6(YKHO):
return YKHO.countBlankSides() == len(YKHO.sides) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxhW(BA7i):\n for HEZd in BA7i:\n if not HEZd.isBlank():\n return False\n return True",
"def FBfn(YKHO):\n if not YKHO.vertices:\n return True\n return False",
"def FBfn(YKHO):\n if YKHO.number_of_vertices() == 0:\n return True\n return False",
"def lsmZ(... | [
"0.6851874",
"0.6712532",
"0.6695872",
"0.66918653",
"0.6664214",
"0.66170347",
"0.6575519",
"0.6522842",
"0.65158397",
"0.65158397",
"0.6487109",
"0.6462778",
"0.6321339",
"0.6317879",
"0.63137066",
"0.6277805",
"0.6265953",
"0.6260096",
"0.62474984",
"0.62471575",
"0.623962... | 0.59293604 | 81 |
getCard returns a new card | def VUpm(Zihr=None):
if Zihr is None:
Zihr = oyIN.random.choice([-1, 1, 1])
dxhl = tuKI.randint(1, 10)
return dxhl * Zihr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4uB(YKHO) -> GioJ:\n raise NotImplementedError",
"def VUpm(YKHO, S5Ok):\n BdZq = YKHO.fetchJson(uri_path=YKHO.base_uri + '/cards/' + S5Ok)\n return YKHO.createCard(BdZq)",
"def F48w(YKHO, S5Ok):\n return YKHO.database.card_load(S5Ok)",
"def F48w(YKHO, Z9rn):\n return YKHO._get('/me/cards/... | [
"0.7610194",
"0.7607805",
"0.7359423",
"0.7354605",
"0.72506803",
"0.7209363",
"0.7155563",
"0.7109156",
"0.7039582",
"0.6967391",
"0.696564",
"0.69637066",
"0.69537973",
"0.6912644",
"0.69098336",
"0.6901065",
"0.6884962",
"0.6879346",
"0.68723005",
"0.68700355",
"0.68557894... | 0.0 | -1 |
Create a dict with flattened parameter and species objects. | def HhMN(YKHO):
YKHO.namespace = U8Lr([])
for xqoZ in YKHO.listOfParameters:
YKHO.namespace[xqoZ] = YKHO.listOfParameters[xqoZ].value
YKHO.expressions = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiLo(YKHO):\n from nlep import getx_from_specie, set_nlep_fromx\n YKHO.species = {}\n for KCHu in YKHO.systems:\n for o61b, Vvx_ in KCHu.objective.vasp.species.items():\n YKHO.species[o61b] = Vvx_\n or8S = 0\n YKHO.species_dict = {}\n for o61b, Vvx_ in YKHO.species.items():\... | [
"0.66258",
"0.62311643",
"0.60021883",
"0.5996571",
"0.5924231",
"0.5916018",
"0.58648926",
"0.58245283",
"0.5807352",
"0.5691248",
"0.56876177",
"0.5682067",
"0.56694937",
"0.5669459",
"0.5660204",
"0.56368864",
"0.55954057",
"0.5587879",
"0.55858874",
"0.55802065",
"0.55788... | 0.0 | -1 |
Validate given url skip image/video/zip... | def KSw8(YKHO, bD7m):
P6bq = KVWQ.urlparse(bD7m)
if P6bq.scheme in ['http', 'https'] and P6bq.netloc and (not P6bq.fragment):
return not ZbWC.search('(jpg|jpeg|gif|png|exe|msi|dmg|gz|zip|tar|mov|mpg|mp3|mp4)$', P6bq.path, ZbWC.I)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YTRv(bD7m):\n if ZbWC.match('(http(s?):)|([/|.|\\\\w|\\\\s])*\\\\.(?:jpg|gif|png|jpeg|img)', bD7m):\n return True",
"def vK9q(bD7m):\n bv7x = ZbWC.compile('.*\\\\.(html|htm|txt|php)$')\n return bv7x.match(bD7m)",
"def vrmQ(bD7m):\n pass",
"def QTUw(bD7m):\n vK9q = ''\n if 'http' ... | [
"0.7758804",
"0.76486856",
"0.74965906",
"0.735584",
"0.7310693",
"0.72472465",
"0.7216133",
"0.7164944",
"0.7152912",
"0.7131729",
"0.7116957",
"0.7100569",
"0.7096545",
"0.70104986",
"0.70085204",
"0.700579",
"0.70018464",
"0.69921607",
"0.6960618",
"0.6954374",
"0.6949027"... | 0.79707056 | 0 |
Shortcut to access the current logged in user. Unlike user_info, it fetches information from the persistence layer and returns an instance of the underlying model. | def CBIr(YKHO):
P6bq = YKHO.user_info
return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None",
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None",
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.ge... | [
"0.80493677",
"0.80493677",
"0.7975974",
"0.7975974",
"0.7975974",
"0.78191227",
"0.780093",
"0.77770764",
"0.7765082",
"0.7748988",
"0.76776487",
"0.76654613",
"0.7665232",
"0.7665232",
"0.7665232",
"0.7644563",
"0.7636921",
"0.7636921",
"0.7616793",
"0.7605212",
"0.7550795"... | 0.80118454 | 3 |
Returns all the examples from memory in a single batch. Batch is stored as a dict. Keys are the names of the different elements of an experience. Values are nested lists of the corresponding sampled elements. Elements are nested into episodes e.g. batch = { | def mvm2(YKHO, JMPy='np'):
if JMPy == 'np':
Wc9F = {G1Hx: oyIN.array(getattr(YKHO, G1Hx)) for G1Hx in YKHO.data_keys}
elif JMPy == 'tensor':
Wc9F = {G1Hx: ht2j.tensor(getattr(YKHO, G1Hx)) for G1Hx in YKHO.data_keys}
else:
Wc9F = {G1Hx: getattr(YKHO, G1Hx) for G1Hx in YKHO.data_keys}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u: Optional[int]=None) -> bDy6[cuzp[str, list]]:\n nPrm = YKHO.data.copy()\n Ep8u = Ep8u if Ep8u is not None else YKHO.batch_size\n while len(nPrm):\n Ep8u = min(Ep8u, len(nPrm))\n QrKT = oRi_(lambda: [])\n for bGrB in range(Ep8u):\n mvm2 = nPrm.popleft()\... | [
"0.70755386",
"0.688722",
"0.6731061",
"0.6605615",
"0.63945466",
"0.6384442",
"0.6379848",
"0.6374698",
"0.63524276",
"0.62999356",
"0.61922306",
"0.61824113",
"0.6180489",
"0.61716354",
"0.6136673",
"0.6115923",
"0.61056185",
"0.6085713",
"0.6035002",
"0.6032507",
"0.603129... | 0.0 | -1 |
Wrap a model and return myself, with the model set. | def K5Au(YKHO, bi84):
YKHO.shell = AHyN(bi84)
return YKHO.shell | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5oA(YKHO, C3ST: 'Model') -> AzJI['Model', Ja2E]:\n raise NotImplementedError",
"def _yCA(YKHO):\n return YKHO()",
"def gjXZ(eHNT):\n\n @zaGL(eHNT)\n def h3Xc(YKHO, *qIxc, **B2fa):\n if YKHO.model is None:\n raise ValueError('Wrapper {} has no model yet'.format(YKHO))\n ... | [
"0.7295023",
"0.69700813",
"0.6961007",
"0.6915314",
"0.6796196",
"0.6516672",
"0.64451873",
"0.63360643",
"0.6333972",
"0.6292303",
"0.62803",
"0.6242822",
"0.6232767",
"0.6219158",
"0.6160892",
"0.6155065",
"0.61445606",
"0.6116029",
"0.6113597",
"0.6081451",
"0.60440695",
... | 0.58292913 | 37 |
Test case for destiny2_get_clan_weekly_reward_state | def Ifwe(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(YKHO, QTBn, XeOP, AUO5):\n pass",
"def A3Vt(QTBn):\n BWXx = QTBn.reward\n return BWXx",
"def Jc_J(YKHO):\n pass",
"def Jc_J(YKHO):\n pass",
"def KFoJ(YKHO, QTBn):\n return YKHO.reward[QTBn]",
"def xyVK(YKHO, QTBn, XeOP, rxHc):\n SLdk.abstract()",
"def xyVK(YKHO, AJEJ):\n ... | [
"0.6312585",
"0.6304048",
"0.62625796",
"0.62625796",
"0.6195744",
"0.61727774",
"0.6152119",
"0.61288357",
"0.6096326",
"0.60721225",
"0.6052194",
"0.6033694",
"0.6011821",
"0.60066175",
"0.59959424",
"0.5972249",
"0.5962683",
"0.5931117",
"0.58407193",
"0.5818203",
"0.58107... | 0.95481414 | 0 |
Test case for destiny2_get_public_milestones | def FVgY(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DoPK(YKHO):\n pass",
"def _zux(YKHO, ekCf):\n try:\n kGys = YKHO.client.send_get('get_milestones/%d' % ekCf)\n RhGk = {'contents': kGys, 'errorMsg': '', 'errorCode': '200'}\n except Exception as e:\n G9jH.debug(tTpl)\n tTpl = str(tTpl)\n RhGk = {'contents': [], 'er... | [
"0.7765338",
"0.71961665",
"0.65879005",
"0.65603626",
"0.6549613",
"0.6414468",
"0.6412404",
"0.6349976",
"0.6263691",
"0.6208026",
"0.61513084",
"0.60823184",
"0.59589523",
"0.59544945",
"0.59500176",
"0.59405696",
"0.59237987",
"0.5898802",
"0.58944386",
"0.5801829",
"0.58... | 0.9488601 | 0 |
Returns the current throttle. | def rFvA(YKHO):
return YKHO._throttle | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWw8(YKHO):\n return YKHO.fraction * 2 - 1",
"def fr6B(YKHO):\n W8Ay = f'{YKHO.scope_prefix}.{YKHO.scope}'\n try:\n return YKHO.THROTTLE_RATES[W8Ay]\n except KeyError:\n raise rqaQ(f'No default throttle rate set for {W8Ay} scope')",
"def fr6B(YKHO):\n if not getattr(YKHO, 'scop... | [
"0.70697206",
"0.6897255",
"0.66797894",
"0.6549723",
"0.653533",
"0.64822704",
"0.64723444",
"0.6345539",
"0.6326592",
"0.6305193",
"0.61926454",
"0.6192322",
"0.61445284",
"0.61007416",
"0.6050915",
"0.60508823",
"0.6042184",
"0.6040908",
"0.60212773",
"0.6002634",
"0.59816... | 0.88527685 | 0 |
Maps input value between 1 and 1 to an integer 0255, suitable for use as an RGB color code. | def YDzg(wEf2):
K785 = SlZZ(wEf2, -1, 1, 0, 255)
return int(K785) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def BsIq(BWXx):\n if BWXx < 0.2:\n BWXx = 0.2\n elif BWXx >... | [
"0.7928529",
"0.79130626",
"0.7856165",
"0.71164197",
"0.70755124",
"0.69075423",
"0.6873933",
"0.6842765",
"0.68026376",
"0.6722616",
"0.6515493",
"0.65012366",
"0.64591724",
"0.6457636",
"0.6450711",
"0.6340332",
"0.6239605",
"0.621037",
"0.6207479",
"0.6204987",
"0.6165932... | 0.78243405 | 3 |
Return the state as the current tariff. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n QTBn = dict(YKHO.__dict__)\n QTBn['tar_fs'] = {}\n return QTBn",
"def GBfH(YKHO):\n return YKHO.transposed",
"def fF1A(YKHO):\n return YKHO.t",
"def k8jS(YKHO):\n return bVUc.dumps(YKHO)",
"def vHkF(YKHO):\n return YKHO.current_state",
"def Bal5(YKHO):\n return Y... | [
"0.61407363",
"0.60391444",
"0.582971",
"0.582715",
"0.57038796",
"0.56487554",
"0.56478274",
"0.5643958",
"0.56334573",
"0.56099814",
"0.56099814",
"0.56099814",
"0.56099814",
"0.5593737",
"0.5593501",
"0.55911046",
"0.5586175",
"0.557957",
"0.5548741",
"0.5547587",
"0.55348... | 0.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
if YKHO._tariffs:
return {Mv_y: YKHO._tariffs} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Initialize the Deck with 52 Cards Both the Suits and Ranks are integers | def uIcm(YKHO):
for iCfd in range(4):
for fdMZ in range(1, 14):
YKHO.add_card(F1Hz(iCfd, fdMZ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nb33(YKHO):\n KCHu = 8\n MKlR = 0\n Z9rn = 0\n Csk6 = 0\n if YKHO.suits == 2:\n KCHu = 4\n MKlR = 4\n elif YKHO.suits == 4:\n KCHu = 2\n MKlR = 2\n Z9rn = 2\n Csk6 = 2\n for YRbF in Ni9Y(KCHu):\n for r845 in Ni9Y(1, 14):\n YKHO._d... | [
"0.78247046",
"0.7645113",
"0.76402366",
"0.76129127",
"0.76015306",
"0.7579568",
"0.7525745",
"0.7507755",
"0.74945563",
"0.74298143",
"0.7397278",
"0.7386214",
"0.7313009",
"0.72691935",
"0.72572565",
"0.72387975",
"0.7238658",
"0.7232784",
"0.72197485",
"0.7205252",
"0.716... | 0.75866246 | 5 |
Add the Card to the end of the list | def lACn(YKHO, dxhl):
YKHO.append(dxhl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AZnT(YKHO, dxhl):\n YKHO.cards.insert(0, dxhl)",
"def lACn(YKHO, F1Hz):\n YKHO.cards.insert(0, F1Hz)",
"def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)",
"def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)",
"def lACn(YKHO, dxhl):\n YKHO._list_card.append(dxhl)",
"def lACn(YKHO, dxhl):\n ... | [
"0.79566616",
"0.78823024",
"0.7853404",
"0.7853404",
"0.78001827",
"0.776878",
"0.7737596",
"0.77152234",
"0.77152187",
"0.7704322",
"0.76859546",
"0.76858884",
"0.7683851",
"0.76677895",
"0.76027095",
"0.7574803",
"0.7572713",
"0.7572713",
"0.7572713",
"0.7572713",
"0.75727... | 0.8025324 | 0 |
wrapper for Conv2D for readability | def zp5N(YKHO, g4y1, KUnM, mWFP, WZcn=(3, 3), YDYE='relu'):
WKvO = yHwh(KUnM, WZcn, activation=YDYE, kernel_initializer='he_normal', name=mWFP)(g4y1)
if YKHO.batch_normalisation:
WKvO = GVKG()(WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)",
"def c7pY(DYuh: int, tYiq: int):\n return U78l.Conv2d(DYuh, tYiq, 2, 2)",
"def sGrN(KUnM, Ot1W, **B2fa):\n return ZylS.keras.layers.Conv2D(filters=K... | [
"0.79468924",
"0.73035914",
"0.7272058",
"0.72619104",
"0.72619104",
"0.7233991",
"0.7233991",
"0.7210597",
"0.7187014",
"0.7187014",
"0.7187014",
"0.7172521",
"0.7145243",
"0.7144007",
"0.7121406",
"0.7093843",
"0.707801",
"0.70622516",
"0.70324945",
"0.70147914",
"0.6983475... | 0.7213592 | 7 |
Returns nonlinear transformations of the raw covariates. When the transformed covariates are observed in place of the true covariates, both propensity score and outcome regression models become misspecified. | def L5Cy(YKHO) -> oyIN.ndarray:
o4D3, ajwV, rNcn, SzKB = oyIN.hsplit(YKHO.covariates, 4)
return oyIN.hstack([oyIN.exp(o4D3 / 2.0), ajwV / (1 + oyIN.exp(o4D3)) + 10.0, oyIN.power(o4D3 * rNcn / 25 + 0.6, 3), oyIN.square(ajwV + SzKB + 20.0)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJK1():\n vb7U = G5WP()\n vb7U, bGrB, bGrB = NkkI(vb7U)\n return vb7U",
"def thjn(YKHO, nPrm):\n ireP = nPrm.copy()\n ireP[:, :-1] = (ireP[:, :-1] + YKHO.yAwareMeans) / YKHO.yAwareCoef\n return ireP",
"def _Z6s(YKHO):\n if YKHO.verbosity > 0:\n print('[AutoML] Analysing co-linea... | [
"0.5850157",
"0.5561072",
"0.5495951",
"0.5493194",
"0.5418035",
"0.539309",
"0.53805995",
"0.53779566",
"0.5326967",
"0.53101194",
"0.5302017",
"0.527789",
"0.52531683",
"0.5242828",
"0.5239457",
"0.52357787",
"0.52283126",
"0.5225747",
"0.5208559",
"0.5201331",
"0.5186923",... | 0.63636404 | 0 |
Regresionstyle check to the integration routine using a predefined mockup matrix element. Checks that the result is within 3 sigmas of the true result | def CenK():
from madflow.tests.mockup_debug_me import Matrix_1_gg_ttx, model_params
SppC = Matrix_1_gg_ttx()
kzAT = IX9l('NNPDF31_nnlo_as_0118/0', dirname=pAdI)
Ylbp, P1dF = XAnI(SppC, model_params, pdf=kzAT, flavours=(0,), out_masses=[173.0, 173.0])
Qi43 = 103.4
assert oyIN.fabs(Qi43 - Ylbp) < ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZeT():\n jzdc, Fg_i, uVKC = KQ5r(is_diag=True)\n for NKcE in [qEAY, mwn1]:\n ghWM = NKcE(jzdc, Fg_i)\n oyIN.testing.assert_almost_equal(ghWM, uVKC)",
"def CenK(l9Ur, aEqx):\n assert U6P5(l9Ur) == aEqx",
"def DNKJ(YKHO):\n E3D9 = 8\n JfyU = lambda YRbF: oyIN.sin(YRbF) ** 2\n ... | [
"0.59617895",
"0.58964914",
"0.58831406",
"0.58804315",
"0.5768187",
"0.5758723",
"0.57476443",
"0.57476443",
"0.5711684",
"0.56980443",
"0.5669048",
"0.5637212",
"0.5624354",
"0.561881",
"0.56073874",
"0.56063473",
"0.5592292",
"0.5592144",
"0.55913204",
"0.55826336",
"0.557... | 0.6827395 | 0 |
Generate a random string of fixed length | def TJC9(FVpJ=20) -> str:
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 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 |
._init_app should Applicaion.run_tests if is_test is in the alembic config. | def qYFF(YKHO, QrAJ, dsqU, gPVE):
QrAJ.config.get_main_option.return_value = False
gPVE._init_app()
dsqU.run_command.assert_called_once_with()
QrAJ.config.get_main_option.assert_called_once_with('is_test', False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kd2K(YKHO, QrAJ, dsqU, gPVE):\n QrAJ.config.get_main_option.return_value = True\n gPVE._init_app()\n dsqU.run_tests.assert_called_once_with()\n QrAJ.config.get_main_option.assert_called_once_with('is_test', False)",
"def FCbF(YKHO):\n YKHO.app = LUif(test_config='config.TestingConfig')\n YK... | [
"0.8475481",
"0.7314112",
"0.72772545",
"0.72763747",
"0.7271514",
"0.71987957",
"0.71044654",
"0.7091678",
"0.70791405",
"0.7030544",
"0.6999314",
"0.69919384",
"0.69789964",
"0.6957847",
"0.6938195",
"0.6936261",
"0.6923967",
"0.6923967",
"0.6923967",
"0.6923967",
"0.692396... | 0.8547219 | 0 |
Format (an instance of datetime.datetime) to YYYYMMDD | def vgJc(_c1T):
return _c1T.strftime('%Y-%m-%d') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pD9Z(WKvO) -> str:\n WKvO = rLdf.to_datetime(WKvO)\n WKvO = WKvO.strftime('%Y-%m-%d')\n return WKvO",
"def pbww(bXW8):\n return qcWV.strptime(bXW8, '%Y%m%d').date().isoformat()",
"def pbww(Csk6):\n return qcWV.strftime(Csk6, '%Y-%m-%d')",
"def Zb98(JRYC):\n return V8MO.format(Gfg6(JRYC)... | [
"0.75487554",
"0.73366004",
"0.7318007",
"0.72181267",
"0.7194191",
"0.716519",
"0.7144578",
"0.71154255",
"0.70453507",
"0.70453507",
"0.7032155",
"0.7021588",
"0.69924474",
"0.69500303",
"0.6947642",
"0.6935119",
"0.68587565",
"0.6857711",
"0.6843524",
"0.6835087",
"0.68129... | 0.67765874 | 23 |
This function uses a slightly altered version of the seive of eratosthenes to find unique prime factors of a given number n, instead of creating a boolean array that stores whether a number is prime, we create an integer list that stores the smallest prime factors of all integers upto n | def u57p(exwG):
LwFL = list(range(0, exwG + 1))
for YRbF in range(2, int(epAf.sqrt(exwG)) + 1):
if LwFL[YRbF] == YRbF:
for r845 in range(2 * YRbF, exwG + 1, YRbF):
if LwFL[r845] == r845:
LwFL[r845] = YRbF
quFX = [LwFL[exwG]]
while exwG > 1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KX6O(exwG):\n Llmz = []\n return sorted(Llmz)",
"def OvlX(exwG):\n YRbF = 2\n Llmz = []\n while YRbF * YRbF <= exwG:\n if exwG % YRbF:\n YRbF += 1\n else:\n exwG //= YRbF\n Llmz.append(YRbF)\n if exwG > 1:\n Llmz.append(exwG)\n Llmz =... | [
"0.84800583",
"0.84676737",
"0.8387293",
"0.8311793",
"0.8307696",
"0.82837474",
"0.82406175",
"0.8226684",
"0.819438",
"0.8177835",
"0.81777006",
"0.81772697",
"0.81660724",
"0.8152168",
"0.81442195",
"0.81348014",
"0.81062555",
"0.8095156",
"0.8089404",
"0.8086183",
"0.8085... | 0.88858354 | 0 |
r""" Returns the number of GPUs available on this system. | def OqkM():
u95O = iJGD.list_local_devices()
return [WKvO.name for WKvO in u95O if WKvO.device_type == 'GPU'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_O6() -> int:\n return ht2j.cuda.device_count()",
"def hgX6() -> int:\n return mUUR() if sBQW else 0",
"def VkyA() -> None:\n print('Number of GPUs Available: ', len(ZylS.config.experimental.list_physical_devices('GPU')))",
"def OpZU() -> int:\n aK0T = [ZlUL._normalize_device_name(mWFP) for ... | [
"0.83903813",
"0.83063686",
"0.8294055",
"0.8269996",
"0.8232459",
"0.8156122",
"0.81434244",
"0.81136584",
"0.8042213",
"0.80343276",
"0.79711586",
"0.7950079",
"0.7817515",
"0.7684882",
"0.7545839",
"0.7433706",
"0.7290506",
"0.720655",
"0.71385276",
"0.71125305",
"0.710352... | 0.6833194 | 32 |
The tenant id for the Azure Active Directory organization. | def mLXZ(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get... | [
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.82222",
"0.8128624",
... | 0.7809689 | 64 |
The client secret for credentials to query the Azure APIs. | def Cxz5(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'client_secret') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxz5(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO):\n return YKHO.properties.get('clientSecret', None)",
"def Cxz5(YKHO):\n return YKHO._client_secret",
"def Cxz5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.79983276",
"0.7970746",
"0.78898644",
"0.75321895",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.750441",
"0.750441",
"0.7404744",
"0.7404744",
"0.7282635",
"0.72128594",
"0.720994",
"0.70801806",
"0.7074334",
"0.7049584",
"0.70303... | 0.7222938 | 15 |
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. | def _63S(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get... | [
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7163555",
"0.7069311",
"0.70378655",
"0.70378655",
"0.703786... | 0.70942545 | 18 |
The client secret for credentials to query the Azure APIs. | def Cxz5(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'client_secret') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxz5(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO):\n return YKHO.properties.get('clientSecret', None)",
"def Cxz5(YKHO):\n return YKHO._client_secret",
"def Cxz5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.79983276",
"0.7970746",
"0.78898644",
"0.75321895",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.750441",
"0.750441",
"0.7404744",
"0.7404744",
"0.7282635",
"0.72128594",
"0.720994",
"0.70801806",
"0.7074334",
"0.7049584",
"0.70303... | 0.7222938 | 17 |
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. | def _63S(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get... | [
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7163555",
"0.7069311",
"0.70378655",
"0.70378655",
"0.703786... | 0.70942545 | 21 |
The tenant id for the Azure Active Directory organization. | def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get... | [
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.82222",
"0.8128624",
... | 0.7837094 | 41 |
The client secret for credentials to query the Azure APIs. | def Cxz5(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'client_secret') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxz5(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO):\n return YKHO.properties.get('clientSecret', None)",
"def Cxz5(YKHO):\n return YKHO._client_secret",
"def Cxz5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_secret')",
"def Cxz5(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.79983276",
"0.7970746",
"0.78898644",
"0.75321895",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.75169677",
"0.750441",
"0.750441",
"0.7282635",
"0.7222938",
"0.7222938",
"0.7222938",
"0.7222938",
"0.7222938",
"0.7222938",
"0.72128594",
"0.72099... | 0.7404744 | 12 |
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. | def _63S(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get... | [
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.7340078",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.72723615",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7199698",
"0.7163555",
"0.70942545",
"0.70942545",
"0.70942545",
"0.70942... | 0.6913943 | 47 |
The tenant id for the Azure Active Directory organization. | def mLXZ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get... | [
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.83298594",
"0.82222",
"0.8128624",
... | 0.7999035 | 29 |
Use this for boolean options, regular bool is always treated as True. | def likR(Ty9i):
return Ty9i.lower() in ('yes', 'y', 'true', 't', '1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bool(mWFP):\n return pifZ(mWFP)",
"def bool(YKHO):\n KCHu = YKHO.value\n if KCHu:\n KCHu = KCHu.lower()\n exwG = len(KCHu)\n if KCHu == '1' or KCHu == 'on' or KCHu == 'true'[:exwG] or (KCHu == 'yes'[:exwG]):\n return True\n if KCHu == '0' or KCHu == 'off'[:exwG... | [
"0.7784383",
"0.76915133",
"0.7407021",
"0.7385753",
"0.7323196",
"0.72567403",
"0.724243",
"0.72326374",
"0.7231965",
"0.72115827",
"0.71668065",
"0.7155807",
"0.71557915",
"0.7152628",
"0.7106277",
"0.7099379",
"0.708038",
"0.70396197",
"0.70351595",
"0.7003967",
"0.6989163... | 0.68346816 | 50 |
Generate ID for artifacts that only exist in a bundle This ID is only unique per release. We use the name of the release file because it is also the key for lookups in ArtifactIndex. To prevent any urlencode confusion, we base64 encode it. | def ydv4(YEnM):
if YEnM.id:
return str(YEnM.id)
if YEnM.name:
y43X = ''
if YEnM.dist_id:
y43X = Y69N.objects.get(pk=YEnM.dist_id).name
return Xbr4(f'{y43X}_{YEnM.name}'.encode()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dIdM(YKHO):\n return 'RepoVersion' + '.'.join((str(YKHO.app_config_id), YKHO.path, YKHO.version_id))",
"def Kn3U(YKHO) -> str:\n return str(len(YKHO.metadata['files'].keys()))",
"def srZh(Ut3v: dict) -> str:\n return str(W8vU(TXvk, BkfT(f'{Ut3v['source_file']}{Ut3v['source_row_number']}')))",
"d... | [
"0.6705865",
"0.6582943",
"0.6444914",
"0.64439493",
"0.6417911",
"0.6403962",
"0.63759595",
"0.6345656",
"0.62994206",
"0.6244842",
"0.6241356",
"0.623669",
"0.61867124",
"0.6179857",
"0.6176062",
"0.6171112",
"0.6167164",
"0.61458045",
"0.6142925",
"0.6095558",
"0.6089799",... | 0.71978 | 0 |
View function for home page of site. | def d6pt(QePW):
J9Ox = Wqvn.objects.count()
derQ = msfn.objects.count()
mOgm = L9Jq.objects.count()
U7NO = JEbg.objects.count()
TsCi = qZuN.objects.count()
QpfX = {'num_users': J9Ox, 'num_products': derQ, 'num_orders': mOgm, 'num_shoppingcarts': U7NO, 'num_categories': TsCi}
return _1tc(QePW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n ... | [
"0.8521128",
"0.8379754",
"0.8353459",
"0.83415544",
"0.83415544",
"0.83171177",
"0.830583",
"0.8298624",
"0.8296122",
"0.8263442",
"0.8224959",
"0.8217078",
"0.8206788",
"0.81901366",
"0.81901366",
"0.8182092",
"0.8176577",
"0.81756383",
"0.8147583",
"0.81347877",
"0.8134787... | 0.0 | -1 |
Constructs a multi directed graph from a list of edges. | def P1dp(mC4V: List[Tuple[str, str, Any]]) -> YKoi:
Oa1e = YKoi()
for yKcO, Os4s, H5ew in mC4V:
Oa1e.add_edge(yKcO, Os4s, key=H5ew)
return Oa1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eVVj(l25F):\n yvY1 = jHsn.DiGraph()\n yvY1.add_edges_from(l25F)\n return yvY1",
"def GUDm(Emd4, mC4V: Edges) -> Q1Kq:\n pass",
"def GUDm(Emd4, mC4V: Edges) -> Q1Kq:\n return Emd4(contents=bj8e(source=mC4V))",
"def GUDm(Emd4, mC4V: Edges) -> Q1Kq:\n return Emd4(contents=bj8e(source=mC4V)... | [
"0.75531954",
"0.7298434",
"0.72282195",
"0.72282195",
"0.72282195",
"0.6760833",
"0.66656166",
"0.6633968",
"0.663267",
"0.655753",
"0.6555715",
"0.6522707",
"0.64716685",
"0.64473015",
"0.6429228",
"0.63712674",
"0.63487774",
"0.633938",
"0.6287555",
"0.62369424",
"0.620182... | 0.84380704 | 0 |
Get list of wells affected. | def PAR5(qmWM: Well, xMux: int) -> x1iM[xhNg]:
if xMux > 1 and (not k_uE(qmWM)):
pANw = qmWM.well_name[1:]
O4M4 = [yzQ0 for yzQ0 in qmWM.parent.columns_by_name()[pANw]]
assert qmWM in O4M4, 'Well is not inside column'
else:
O4M4 = [qmWM]
return O4M4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f17t(YKHO):\n ekz8 = YKHO.descendants(yECg)\n return ekz8",
"def ekz8(YKHO, *qIxc) -> x1iM[xhNg]:\n if not qIxc:\n Ylbp = YKHO._wells\n elif isinstance(qIxc[0], int):\n Ylbp = [YKHO._wells[or8S] for or8S in qIxc]\n elif isinstance(qIxc[0], str):\n Ylbp = [YKHO.wells_by_nam... | [
"0.68648577",
"0.6397481",
"0.6144329",
"0.6092384",
"0.59886163",
"0.5935156",
"0.56902516",
"0.56600744",
"0.56600744",
"0.5622253",
"0.54782075",
"0.54729086",
"0.54672956",
"0.54441327",
"0.5400828",
"0.5386652",
"0.53783643",
"0.536591",
"0.5358075",
"0.5349595",
"0.5311... | 0.70933074 | 0 |
Reset object to default configuration | def eCGt(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.__init__(YKHO.config)",
"def SiRx(YKHO):\n YKHO.clear()\n dict.update(YKHO, YKHO.defaults)",
"def YFEa(YKHO):\n YKHO._attributes = YKHO._default_properties",
"def SiRx(YKHO):\n YKHO.__init__()",
"def SiRx(YKHO):\n YKHO.__init__()",
"def SiRx(YKHO):\n YKHO.__ini... | [
"0.8488179",
"0.78734165",
"0.7784027",
"0.7732509",
"0.7732509",
"0.7732509",
"0.7717295",
"0.7713157",
"0.77029335",
"0.76954186",
"0.76670843",
"0.75113",
"0.7502942",
"0.7498168",
"0.7495121",
"0.7485627",
"0.74270684",
"0.7406145",
"0.7406145",
"0.7406145",
"0.7389319",
... | 0.0 | -1 |
Creates a range iterable of dates between two dates. For consistency with the builtin range() function this iteration stops before reaching the end_date. | def HMl6(kepv, KhBf):
for exwG in range(int((KhBf - kepv).days)):
yield (kepv + qcWV.timedelta(exwG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cz6S(yKcO, Os4s):\n yKcO += qcWV.timedelta(days=1)\n while yKcO <= Os4s:\n yield yKcO\n yKcO += qcWV.timedelta(days=1)",
"def HMl6(YKHO, kepv, KhBf):\n for VVMx in range(kepv.toordinal(), KhBf.toordinal()):\n yield _c1T.fromordinal(VVMx)",
"def HMl6(kepv, KhBf):\n for exwG ... | [
"0.8292099",
"0.8243231",
"0.8182896",
"0.81741333",
"0.8022049",
"0.8016498",
"0.7976969",
"0.79692626",
"0.7885953",
"0.78461015",
"0.77620775",
"0.7731821",
"0.7689462",
"0.76718605",
"0.76658726",
"0.7647231",
"0.76209205",
"0.75665724",
"0.75337815",
"0.75311786",
"0.752... | 0.81197476 | 4 |
Runs the Gauss elimination algorithm on the equation system. | def CT6c(YKHO):
for YRbF in range(len(YKHO) - 1):
zXjM = YRbF
for r845 in range(YRbF + 1, len(YKHO)):
aKJm = YKHO[zXjM][YRbF]
is0a = YKHO[r845][YRbF]
if is0a != 0 and (aKJm == 0 or abs(is0a) < abs(aKJm)):
zXjM = r845
if YKHO[zXjM][YRbF] != ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dt7i(YKHO):\n YRbF = 0\n while YRbF < YKHO.n:\n r845 = YRbF + 1\n while r845 < YKHO.n:\n if abs(YKHO.matrix[YRbF][YRbF]) < abs(YKHO.matrix[r845][YRbF]):\n G1Hx = 0\n while G1Hx < YKHO.n + 1:\n YKHO.matrix[YRbF][G1Hx], YKHO.matrix[r... | [
"0.66940904",
"0.641419",
"0.64112854",
"0.6358409",
"0.63233787",
"0.6313243",
"0.6295046",
"0.6251966",
"0.61819994",
"0.6181918",
"0.61647725",
"0.6112931",
"0.6077132",
"0.6065583",
"0.60497546",
"0.6049056",
"0.60432446",
"0.60370743",
"0.60308063",
"0.60251045",
"0.5992... | 0.0 | -1 |
Swaps two equations in the system. | def b3SJ(YKHO, YRbF: int, r845: int):
YKHO._equations[YRbF], YKHO._equations[r845] = (YKHO._equations[r845], YKHO._equations[YRbF]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g7E1(cJsZ, hbUd, BzON):\n bGrB.CNOT(BzON, hbUd)\n bGrB.H(BzON)\n bGrB.T(cJsZ)\n bGrB.T(hbUd)\n bGrB.T(BzON)\n bGrB.CNOT(hbUd, cJsZ)\n bGrB.CNOT(BzON, hbUd)\n bGrB.CNOT(cJsZ, BzON)\n bGrB.Tinv(hbUd)\n bGrB.T(BzON)\n bGrB.CNOT(cJsZ, hbUd)\n bGrB.Tinv(cJsZ)\n bGrB.Tinv(hbUd)... | [
"0.6504362",
"0.6448435",
"0.6356983",
"0.6219837",
"0.6174426",
"0.61445755",
"0.6141511",
"0.61372626",
"0.6125955",
"0.6114533",
"0.6083084",
"0.60765785",
"0.6046202",
"0.6044714",
"0.60171145",
"0.5980626",
"0.59745497",
"0.59714764",
"0.5966426",
"0.5937027",
"0.593632"... | 0.6248542 | 3 |
Checks whether given values solve the equation system. | def B24F(YKHO, GERS: Sequence[float]) -> bool:
return all((cIT_.is_solution(GERS) for cIT_ in YKHO._equations)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dd1_(YKHO, hkxX):\n jzdc = hkxX.get(YKHO.operand1)\n Fg_i = hkxX.get(YKHO.operand2)\n Z9rn = hkxX.get(YKHO.symbol)\n dd1_ = len(list(filter(lambda bGrB: bGrB is not None, (jzdc, Fg_i, Z9rn)))) >= 2\n return dd1_",
"def Yprr(hkxX):\n vMy3 = [FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) ==... | [
"0.7284508",
"0.68379635",
"0.669133",
"0.6543552",
"0.6511556",
"0.6452606",
"0.6381444",
"0.62982166",
"0.62890756",
"0.627942",
"0.6235487",
"0.62177485",
"0.6140109",
"0.6134354",
"0.60999024",
"0.6039016",
"0.6039016",
"0.60145473",
"0.59913063",
"0.5971338",
"0.5943378"... | 0.60234505 | 17 |
Compute the squared distance between points pt1 and pt2 | def TJdz(YKHO, X3qZ, ZYCo):
F1K7 = X3qZ - ZYCo
return oyIN.dot(F1K7, F1K7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(X3qZ, ZYCo):\n return oyIN.sqrt(sum((X3qZ - ZYCo) ** 2))",
"def Ayfi(X3qZ, ZYCo):\n return epAf.sqrt((ZYCo[0] - X3qZ[0]) ** 2 + (ZYCo[1] - X3qZ[1]) ** 2)",
"def XftR(X3qZ, ZYCo):\n return epAf.sqrt((ZYCo[1] - X3qZ[1]) ** 2 + (ZYCo[0] - X3qZ[0]) ** 2)",
"def pImw(X3qZ: np.ndarray, ZYCo: np.n... | [
"0.8383823",
"0.8255276",
"0.810733",
"0.8096707",
"0.7976469",
"0.7974267",
"0.79459",
"0.79146725",
"0.7914177",
"0.7867269",
"0.78642994",
"0.78576905",
"0.78501326",
"0.7846242",
"0.7837214",
"0.7832363",
"0.7832156",
"0.7827152",
"0.7819802",
"0.7806024",
"0.7802746",
... | 0.78136915 | 19 |
Initialize ourselves on a git objects directory | def FIMM(YKHO, mSqg):
super(dXz1, YKHO).__init__(mSqg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zTfP):\n YKHO.git_dir = zTfP",
"def FIMM(YKHO, v5Of):\n if not Hy7s.path.isdir(v5Of):\n raise lmtD('Path ' + v5Of + ' is not a directory')\n YKHO.root_dir = YKHO.find_repo_root(v5Of)\n YKHO.submodules = YKHO.find_submodules()",
"def FIMM(YKHO, sWmO):\n YKHO._cwd = sWmO\n ... | [
"0.78485215",
"0.72150224",
"0.71505976",
"0.70566714",
"0.7020328",
"0.7002858",
"0.68412364",
"0.6811055",
"0.67653674",
"0.6740507",
"0.67043775",
"0.6667371",
"0.66599256",
"0.6640256",
"0.65762216",
"0.6560652",
"0.65360606",
"0.6489345",
"0.6459793",
"0.6417395",
"0.638... | 0.69498044 | 6 |
Creates a new TableTop card asset object and fills with information from card class. There should only exist on card asset template for each unique card. Therefor cards with quantity > 1 do only get one card asset. Asset matching is done with insertion order of asset objects. Order in the ContainedObjects, DeckID's mus... | def _jlq(YKHO, dxhl: ScryfallCard):
jOXS = _qLf(A6s6)
jOXS['FaceURL'] = dxhl.image_url
jOXS['BackURL'] = YKHO.card_back_url
YKHO.custom_deck[str(YKHO.current_card_asset_id)] = jOXS
YKHO.current_card_asset_id += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IapR(YKHO, dxhl: ScryfallCard):\n BdZq = _qLf(JhG_)\n BdZq['CardID'] = YKHO.current_card_id\n BdZq['Nickname'] = dxhl.tabletop_name\n for bGrB in range(dxhl.quantity):\n YKHO.contained_objects.append(BdZq)\n YKHO.deck_ids.append(YKHO.current_card_id)\n YKHO.current_card_id += 100",... | [
"0.5959707",
"0.5408054",
"0.5398369",
"0.5393348",
"0.5269068",
"0.5258575",
"0.52334523",
"0.5230643",
"0.5215007",
"0.5207474",
"0.5183915",
"0.5151286",
"0.5149097",
"0.5149097",
"0.5137998",
"0.51368934",
"0.5136004",
"0.51037216",
"0.50863343",
"0.5069076",
"0.50665396"... | 0.6138292 | 0 |
Test a camera stream expiration and refresh. | async def test_refresh_expired_stream_token(ajET, Jpbe):
wzkt = wj6w()
d3gJ = wzkt + qcWV.timedelta(seconds=90)
hobb = wzkt + qcWV.timedelta(seconds=180)
kz8t = wzkt + qcWV.timedelta(seconds=360)
Jpbe.responses = [Ws1T(d3gJ, token_num=1), Ws1T(hobb, token_num=2), Ws1T(kz8t, token_num=3)]
await X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_stream_response_already_expired(ajET, Jpbe):\n wzkt = wj6w()\n d3gJ = wzkt + qcWV.timedelta(seconds=-90)\n hobb = wzkt + qcWV.timedelta(seconds=+90)\n Jpbe.responses = [Ws1T(d3gJ, token_num=1), Ws1T(hobb, token_num=2)]\n await X1V4(ajET, lKBo, auth=Jpbe)\n assert len(ajET.states.as... | [
"0.7664581",
"0.7294956",
"0.6882978",
"0.6746694",
"0.6624331",
"0.6305",
"0.6164257",
"0.6030181",
"0.60280424",
"0.5944513",
"0.5941056",
"0.59331995",
"0.5921544",
"0.57541317",
"0.5752565",
"0.57464373",
"0.5745333",
"0.57343775",
"0.57125354",
"0.56996214",
"0.5697523",... | 0.76969695 | 0 |
Test fallback to stream on failure to create an image url. | async def test_generate_event_image_url_failure(ajET, Jpbe):
dnK9 = await X1V4(ajET, lKBo, auth=Jpbe)
assert len(ajET.states.async_all()) == 1
assert ajET.states.get('camera.my_camera')
await dnK9.async_receive_event(DHDm())
await ajET.async_block_till_done()
Jpbe.responses = [piYe.web.Response(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hY8k(YKHO):\n YKHO.assertRaises(uRlK.error.HTTPError, uRlK.request.urlopen, YKHO.url + 'assets/non-image.jpg')",
"def ysZB(YKHO):\n YKHO.assertRaises(IOError, KdlT.pil_image, aKaX(b'not an image'))",
"def Umjn(YKHO):\n M3Rw = 'invalid url inside'\n RzMs = RTsP(M3Rw)\n YKHO.assertFailure(RzMs... | [
"0.6972067",
"0.67840886",
"0.6734752",
"0.6625035",
"0.6227236",
"0.6171186",
"0.61618674",
"0.6147457",
"0.61469513",
"0.6132108",
"0.61193234",
"0.6061477",
"0.6060328",
"0.60503507",
"0.6048838",
"0.60411847",
"0.602993",
"0.60203415",
"0.60127383",
"0.593998",
"0.5928362... | 0.6567398 | 4 |
Get parameters for ``crop`` for a random crop. | def W6RH(VXjJ, a6Jb):
yzQ0, MKlR = VXjJ.size
idx7, q53Q = a6Jb
if yzQ0 == q53Q and MKlR == idx7:
return (0, 0, MKlR, yzQ0)
LFlW = tuKI.randint(0, MKlR - idx7)
tlxW = tuKI.randint(0, yzQ0 - q53Q)
return (LFlW, tlxW, LFlW + q53Q, tlxW + idx7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZc6(YKHO, ty0s):\n bq77 = 1\n Uuy6 = 1\n for _N6A, vRBi in ty0s.items():\n if _N6A == 'height_range' and type(vRBi) is float and (vRBi <= 1):\n bq77 = vRBi\n if _N6A == 'width_range' and type(vRBi) is float and (vRBi <= 1):\n Uuy6 = vRBi\n return (bq77, Uuy6)",
... | [
"0.7121393",
"0.6897501",
"0.68748343",
"0.6598984",
"0.6506302",
"0.6415847",
"0.63885576",
"0.6335157",
"0.6330147",
"0.6322074",
"0.62802553",
"0.62672573",
"0.61741173",
"0.60897326",
"0.6074588",
"0.60287714",
"0.60099894",
"0.597735",
"0.5956263",
"0.59500664",
"0.59249... | 0.5206149 | 96 |
Find all the orthogonal lines. Orthogonal lines are lines that fall within the angle_threshold of horizontal or vertical. | def jgJh(YKHO, Nqlg, f4IJ):
tVUM = []
ZQDo = []
for zFiD in Nqlg:
oZuG, q7In = zFiD[0]
ABxu = epAf.degrees(q7In)
if ABxu % 180 < YKHO.angle_threshold or abs(ABxu % 180 - 180) < YKHO.angle_threshold:
tVUM.append([oZuG, q7In])
elif (ABxu - 90) % 180 < YKHO.angle_thr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwHf(YKHO, Nqlg):\n wlaL = 5\n XpEJ = []\n vKHY = []\n for zFiD in Nqlg:\n o4D3, si3g, ajwV, skBL = zFiD[0]\n KpkG = 0\n fIO0 = -90\n YylR = oyIN.rad2deg(oyIN.arctan2(skBL - si3g, ajwV - o4D3))\n if KpkG - wlaL <= YylR <= KpkG + wlaL:\n XpEJ.append([o4D... | [
"0.6574847",
"0.63578045",
"0.6285979",
"0.6214174",
"0.6140759",
"0.61403227",
"0.6067607",
"0.60096896",
"0.59744334",
"0.5956818",
"0.5953067",
"0.59365445",
"0.58863",
"0.5880086",
"0.58729357",
"0.5843018",
"0.5838614",
"0.58259",
"0.58223754",
"0.5822283",
"0.58176136",... | 0.703801 | 0 |
Find the intersection of two lines given their normal form | def Peiw(YKHO, J1b4, n2Q1, CYjz, SpII):
XOOk, kYGz = (epAf.cos(n2Q1), epAf.sin(n2Q1))
pHXX, ftz7 = (epAf.cos(SpII), epAf.sin(SpII))
WKvO = (ftz7 * J1b4 - kYGz * CYjz) / (XOOk * ftz7 - pHXX * kYGz)
LVAh = (J1b4 - WKvO * XOOk) / kYGz
return (int(round(WKvO, 0)), int(round(LVAh, 0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aeht(cnXz, Ijzj):\n Zwdi = oyIN.cross(cnXz, Ijzj)\n Zwdi = Zwdi.astype(float)\n Zwdi /= Zwdi[2]\n return Zwdi[0:2]",
"def gEFC(XOOk, pHXX, kYGz, ftz7):\n SG6Y = pHXX - XOOk\n NCls = ftz7 - kYGz\n TifC = XOOk - kYGz\n cSRC = VE0C(SG6Y)\n ciZM = oyIN.dot(cSRC, NCls)\n mLGw = oyIN.... | [
"0.81921655",
"0.8123798",
"0.79410976",
"0.79063356",
"0.7874164",
"0.78507894",
"0.7844844",
"0.7802561",
"0.77807087",
"0.77807087",
"0.77807087",
"0.77052635",
"0.77052253",
"0.7691345",
"0.7683202",
"0.7618158",
"0.76163673",
"0.75641155",
"0.75582844",
"0.7536002",
"0.7... | 0.68518525 | 66 |
If a form is submitted but could not be validated, the routing passes the form and this method returns all form errors (form.errors) as flash messages. | def _Y2O(L03z):
for Jyyj, UAju in list(L03z.errors.items()):
for tTpl in UAju:
Dwep(tTpl, 'error') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUxj(L03z):\n for Jyyj in L03z:\n if Jyyj.errors:\n for P1dF in Jyyj.errors:\n Dwep(u'{}: {}'.format(Jyyj.label.text, P1dF), 'danger')",
"def T3yL(L03z):\n for Jyyj, UAju in L03z.errors.items():\n for P1dF in UAju:\n Dwep(u'Error in the %s field - %s' ... | [
"0.73879427",
"0.722238",
"0.68794304",
"0.68794304",
"0.68794304",
"0.68794304",
"0.6875265",
"0.6875265",
"0.6875265",
"0.6875265",
"0.6875265",
"0.68682224",
"0.68517065",
"0.68517065",
"0.68470854",
"0.6843453",
"0.66510737",
"0.65832454",
"0.6569656",
"0.65302306",
"0.65... | 0.7524528 | 0 |
Get TenantId by making a GET call to "/data/foundation/schemaregistry/stats" | def rXoj(midh, MOPg):
mBsA = HNPp('get', midh, MOPg)
mLXZ = '_' + qQXR.loads(mBsA)['tenantId']
S0MI.debug('tenant_id = %s', mLXZ)
return mLXZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Uua(QePW):\n cE3R = {'token_id': QePW.GET.get('token_id'), 'remotehost': QePW.GET.get('remotehost'), 'tenantId': QePW.GET.get('tenantId')}\n sdCG = ['X-Auth-Token: %s' % cE3R.get('token_id')]\n gwhp = {'servername': cE3R.get('remotehost'), 'port': 35357, 'uri': '/v2.0/tenants/%(tenantId)s' % {'tenant... | [
"0.6433044",
"0.6231097",
"0.6195548",
"0.6166174",
"0.6116884",
"0.60862565",
"0.6041155",
"0.6036272",
"0.6032256",
"0.6032256",
"0.6023504",
"0.60183895",
"0.600861",
"0.59556895",
"0.5954829",
"0.5898305",
"0.5898305",
"0.5898305",
"0.5898305",
"0.5898305",
"0.5898305",
... | 0.6239877 | 1 |
Since 'slug' is not a required field for userinput, set it before saving. | def xkzz(YKHO, *qIxc, **B2fa):
if not YKHO.path:
YKHO.path = '/'
if not YKHO.slug:
def JpJy(KCHu, y0cW):
return KCHu[len(y0cW):] if KCHu.startswith(y0cW) else KCHu
YKHO.slug = eIIt(YKHO.netloc + YKHO.path)
YKHO.slug = JpJy(YKHO.slug, 'https')
YKHO.slug = JpJy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qg9R(YKHO):\n if not YKHO.slug:\n YKHO.slug = eIIt(YKHO.title)",
"def xkzz(YKHO, *qIxc, **B2fa):\n if not YKHO.slug:\n YKHO.slug = eIIt(YKHO.title)\n super().save(*qIxc, **B2fa)",
"def rcMo(YKHO):\n if not YKHO.slug:\n YKHO.slug = eIIt(YKHO.title)",
"def rcMo(YKHO):\n ... | [
"0.7840546",
"0.7732875",
"0.7661991",
"0.764253",
"0.7472862",
"0.74498713",
"0.73781353",
"0.7336129",
"0.72695476",
"0.72530246",
"0.72126955",
"0.72041816",
"0.7202113",
"0.71924126",
"0.7177332",
"0.71496075",
"0.7120327",
"0.7120327",
"0.7108755",
"0.7069698",
"0.706911... | 0.66329503 | 40 |
Absolute URL for this object. | def hlzF(YKHO):
return gxEw('planet:website-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n qvg3 = f'{YKHO.base_url}{YKHO.path}'\n return qvg3",
"def hlzF(YKHO):\n return YKHO.obj.get_absolute_url()",
"def bD7m(YKHO):\n return YKHO.get_absolute_url()",
"def hlzF(YKHO):\n return YKHO.name",
"def bD7m(YKHO):\n return YKHO.full()",
"def bD7m(YKHO):\n return Y... | [
"0.8458164",
"0.84318566",
"0.83740705",
"0.81662905",
"0.80546266",
"0.80193496",
"0.80193496",
"0.8014975",
"0.80050665",
"0.79932797",
"0.7937068",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.79260... | 0.0 | -1 |
Template for a function that calculates the score given the current status of the flight In this example the score is just the negative height so it decreases as the rocket gets further from the ground | def SUPN(LM0r):
return LM0r.position[-1][1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDl2(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n xzj7 = BH3N.get_opponent(oyg0)\n hjNY = len(BH3N.get_legal_moves(oyg0)) - len(BH3N.get_legal_moves(xzj7))\n kFbH = Zuf9(BH3N, oyg0) - Zuf9(BH3N, BH3N.get_opponent(o... | [
"0.6822773",
"0.67150754",
"0.6685517",
"0.664452",
"0.6612824",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6607432",
"0.6589773",
"0.6589773",
"0.6563347",
"0.65315956",
"0.65315956",
"0.65315956",
... | 0.65088457 | 80 |
Converts int to onehot vector representing value | def LQDo(mLGw: int, zNig: int) -> ht2j.tensor:
aFAW = ht2j.zeros(zNig)
aFAW[mLGw] = 1
return aFAW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(WKvO):\n WKvO[oyIN.where(WKvO)[0]] = 1\n return WKvO",
"def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]",
"def KLLm(FGW3, E0wO):\n Fg_i = oyIN.zeros(E0wO, dtype=float)\n Fg_i[FGW3] = 1.0\n return Fg_i",
"def KLLm(WKvO):\n if isinstance(WKvO, str):\n Q6uT = WKvO\n ... | [
"0.8180444",
"0.8078396",
"0.8047797",
"0.80291593",
"0.796741",
"0.7959621",
"0.79181373",
"0.79082507",
"0.7874113",
"0.7871138",
"0.78619075",
"0.78614205",
"0.78581095",
"0.78428686",
"0.7840925",
"0.78375983",
"0.7830117",
"0.78143615",
"0.7799944",
"0.7788647",
"0.77791... | 0.74058986 | 67 |
Internal method that overrides the base class method. Strips out spaces, nonnumeric characters, and breaks the input apart into a series of twodigit numbers. Called by the decrypt method. | def DUAp(YKHO):
S06t = []
eN4h = None
for hcXw in YKHO.ciphertext:
if hcXw in ph4P[26:]:
if eN4h:
S06t.append(eN4h + hcXw)
eN4h = None
else:
eN4h = hcXw
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1Jm(YKHO, _qpg):\n NW6v = ''\n for hcXw in _qpg:\n CsNe = ord(hcXw) - 48\n if CsNe < 0 or CsNe > 9:\n NW6v += hcXw\n else:\n NW6v += chr(CsNe + 8320)\n return NW6v",
"def hXK1(YKHO):\n l4ct = YKHO._block_input()\n for hcXw in l4ct:\n mLGw = (i... | [
"0.6144625",
"0.5909737",
"0.5892009",
"0.58793426",
"0.5861469",
"0.5856263",
"0.58530426",
"0.5763464",
"0.5759533",
"0.5756586",
"0.5729979",
"0.57032096",
"0.57031024",
"0.5665904",
"0.5650193",
"0.56493205",
"0.5643076",
"0.56335723",
"0.5624786",
"0.5597228",
"0.5588812... | 0.5091505 | 87 |
returns even if integer is even, odd if integer is odd | def ebpd(FGW3):
if type(FGW3) is not int:
raise TypeError('Argument must be an integer.')
if FGW3 % 2 == 0:
return 'even'
else:
return 'odd' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTzf(kAne):\n return kAne % 2 == 0",
"def ubP8(kAne):\n return kAne % 2 == 0",
"def vf3I(WKvO):\n return int(WKvO) % 2 == 0",
"def kYZq(WKvO):\n return WKvO % 2",
"def C_CQ(WKvO):\n return not int(WKvO) % 2 == 0",
"def ubP8(WKvO):\n return WKvO % 2 == 0",
"def ubP8(WKvO):\n ret... | [
"0.87339246",
"0.84164673",
"0.83341515",
"0.8278667",
"0.8270126",
"0.8157927",
"0.8157927",
"0.8155267",
"0.81469786",
"0.81449896",
"0.81195766",
"0.80900687",
"0.8086614",
"0.8068655",
"0.8068655",
"0.8068655",
"0.8068655",
"0.80613524",
"0.80607736",
"0.80607736",
"0.803... | 0.796927 | 24 |
Call the Output methods and return self.OutputedPointer (self by default) | def rdlD(YKHO, bsvt, **xudj):
mOoo = YKHO
wrCu = dict({'RowingStr': bsvt}, **xudj)
YKHO.TabularedRowedTuplesList = []
YKHO.IsRowingBool = True
YKHO.calibrate(bsvt)
for AeIf in ['Before', 'After']:
yZE5 = 'row' + AeIf
if yZE5 in YKHO.__class__.HookingMethodStrToMethodsListDict:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlel(YKHO):\n return YKHO._output",
"def hlel(YKHO):\n return YKHO._output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__... | [
"0.7657363",
"0.7657363",
"0.7522801",
"0.7522801",
"0.7522801",
"0.7522801",
"0.7522801",
"0.7522801",
"0.7499579",
"0.74436057",
"0.72624964",
"0.7262011",
"0.72454304",
"0.72454304",
"0.72454304",
"0.72454304",
"0.72454304",
"0.72454304",
"0.72431463",
"0.72431463",
"0.722... | 0.0 | -1 |
Tests that empty entity name raises an exception | def p5kf(YKHO):
with YKHO.assertRaises(EKZl):
Sfg_('') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ozHT(YKHO):\n dQbu = Sfg_('stratton')\n YKHO.assertEqual(str(dQbu), 'stratton')",
"def CzTI(YKHO):\n with YKHO.assertRaises(dnrQ.BadValueError):\n QamC.Template.create(name='', title='test', body='test')",
"def yLAE(YKHO):\n YKHO.assertRaises(OuEm, lambda: dysn(md0D.NamedNode(' \\t')))",... | [
"0.70432055",
"0.6980768",
"0.6948796",
"0.68964136",
"0.6888014",
"0.681932",
"0.6618384",
"0.6607737",
"0.6571688",
"0.6553373",
"0.6541864",
"0.6526815",
"0.64987504",
"0.6488863",
"0.64886516",
"0.6483975",
"0.64682037",
"0.64655346",
"0.64586616",
"0.6457038",
"0.6447280... | 0.82588184 | 0 |
Initialize the ship and its starting position | def FIMM(YKHO, IMTv):
YKHO.screen = IMTv.screen
YKHO.screen_rect = IMTv.screen.get_rect()
YKHO.image = a9eO.image.load('Images/spaceship.png')
YKHO.image_rect = YKHO.image.get_rect()
YKHO.image_rect.midbottom = YKHO.screen_rect.midbottom | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tJm0, Vjhr):\n super(riCe, YKHO).__init__()\n YKHO.screen = Vjhr\n YKHO.ai_settings = tJm0\n YKHO.image = a9eO.image.load('images/ship.bmp')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.screen_rect = Vjhr.get_rect()\n YKHO.rect.centerx = YKHO.screen_rect.centerx\n YKHO.rect.bot... | [
"0.72601575",
"0.7205419",
"0.71714497",
"0.71600246",
"0.7144003",
"0.7135343",
"0.7101114",
"0.7093067",
"0.7073616",
"0.7073269",
"0.7072287",
"0.70713514",
"0.7058208",
"0.7037238",
"0.7016016",
"0.70100725",
"0.69964474",
"0.69878787",
"0.6970558",
"0.69663984",
"0.69528... | 0.0 | -1 |
Check if we are still getting the same good dep tree output. | def dZO0(YKHO):
rUT2 = YKHO._get_cmd(YKHO.TEST_RULE)
NRWD = Xz3D(rUT2)
MZf5 = YEiJ.get_temp_file(suffix='dep_tree_output')
YEiJ.write_file(MZf5, NRWD.stdout.read())
assert NRWD.returncode == 0
assert CCTV(YKHO.TEST_RULE_EXPECTED_OUT_FILE, MZf5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZLj1(YKHO):\n [WwZt, cRHd, Dd4n, Q9PW, qNXp] = YKHO.stronglyConnectedSubGraphs(False)\n for PCpl in WwZt:\n if len(PCpl) > 1:\n return False\n return True",
"def aAVN(YKHO):\n return YKHO.sh('git diff --quiet')",
"def kxxC(YKHO):\n boHx = YKHO.copy_units(True, False, False)... | [
"0.6027486",
"0.5988456",
"0.5878681",
"0.5870438",
"0.58679163",
"0.5850533",
"0.5827907",
"0.58149004",
"0.5802128",
"0.5764852",
"0.5762011",
"0.57416755",
"0.57318103",
"0.5729225",
"0.5728306",
"0.57142925",
"0.5689287",
"0.56881964",
"0.56832594",
"0.5673971",
"0.566834... | 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 |
Draws the game on the screen. | def JmFt(YKHO, iBIi, p1kx, _ysM, bW5R, eK5b, KvvM, XeOP, zPlS=False):
YKHO._display.fill(GPtr.BACKGROUND_COLOR)
for YRbF in range(len(iBIi)):
for r845 in range(len(iBIi[YRbF])):
if iBIi[YRbF][r845] != GPtr.EMPTY:
WKvO = r845 * GPtr.CELL_SIZE + GPtr.RIGHT_PADDING
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wwi1(YKHO):\n YKHO._main_window.fill((255, 255, 255, 255))\n YKHO._game.on_draw(YKHO._main_window)\n a9eO.display.flip()",
"def JmFt(YKHO):\n YKHO._display.display_game(YKHO._game_logic.get_player().get_position())\n YKHO._display.display_moves(YKHO._game_logic.get_player().moves_remaining())"... | [
"0.85482657",
"0.8497612",
"0.8422865",
"0.84136456",
"0.83252656",
"0.82962865",
"0.8262394",
"0.824574",
"0.82269186",
"0.8209301",
"0.8188998",
"0.8166101",
"0.8149594",
"0.8140841",
"0.81060505",
"0.8102434",
"0.8057325",
"0.8031115",
"0.8014893",
"0.80139875",
"0.8013388... | 0.0 | -1 |
true if each goal has a box, false otherwise | def ZZQq(YKHO):
ftQ2 = sum([0 if xi3E in YKHO.boxes else 1 for xi3E in YKHO.goals])
return ftQ2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fa6j(YKHO, QTBn):\n return QTBn.target_left == 0",
"def LiYl(YKHO):\n for FlUN in YKHO.boxes:\n if FlUN.tile.goal is not True:\n return False\n return True",
"def _ohD(YKHO):\n for FlUN in YKHO.boxes:\n if YKHO.point in FlUN:\n return True\n return False",... | [
"0.7380859",
"0.7315856",
"0.69604015",
"0.68008155",
"0.6789652",
"0.67795587",
"0.6768176",
"0.6728671",
"0.6716972",
"0.6711237",
"0.6691217",
"0.6679052",
"0.6668964",
"0.66636366",
"0.6661915",
"0.6654247",
"0.664539",
"0.65665364",
"0.6562927",
"0.65517724",
"0.65138686... | 0.70964247 | 2 |
The original box coordinate output is normalized, i.e [0, 1]. This converts it back to the original coordinate based on the image size. | def h1D9(YKHO, oUSw, H2v2, TVTK):
Z_jk = oyIN.zeros_like(oUSw)
Z_jk[:, 0] = oUSw[:, 0] * H2v2
Z_jk[:, 1] = oUSw[:, 1] * TVTK
Z_jk[:, 2] = oUSw[:, 2] * H2v2
Z_jk[:, 3] = oUSw[:, 3] * TVTK
return Z_jk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V26d(FlUN, N0ky):\n o4D3, si3g, ajwV, skBL = FlUN\n XcU5, C7Ls = nU6V(N0ky)\n FlUN = (o4D3 / XcU5, si3g / C7Ls, ajwV / XcU5, skBL / C7Ls)\n return FlUN",
"def i1YS(LNo8, FlUN):\n h3cg, BQGg, Z3uP, bYzl = FlUN\n nbX2, t4ML = LNo8.shape[:2]\n assert BQGg <= bYzl, 'xmin is greater than xmax... | [
"0.68884534",
"0.68812823",
"0.6876871",
"0.6757162",
"0.67020303",
"0.6614227",
"0.6596192",
"0.65686065",
"0.64836913",
"0.64389646",
"0.64245707",
"0.64210826",
"0.6414526",
"0.64111274",
"0.6386945",
"0.638375",
"0.63534737",
"0.6344118",
"0.6290459",
"0.62859774",
"0.628... | 0.0 | -1 |
Update the policy VPN. Requires version 6.3.x SMC or skipped | def G1Kz(YKHO, eHpk):
llHi = False
try:
Mr4Y = eHpk.vpn_mappings
except uX3G:
return llHi
X87n = eHpk.vpn.internal_gateway
for HSB4 in YKHO.policy_vpn:
zfrD = YKHO.cache.get('vpn', HSB4.get('name'))
MCIH = Mr4Y.get(vpn_ref=zfrD.href)
if MCIH:
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQby():\n ZSQ1 = {'Content-Type': 'application/json;charset=utf-8'}\n UzPC = G4JS.session()\n UzPC.post(url=lk1x, data=yXNl, headers=MOPg, verify=False, timeout=5)\n hFLc = UzPC.cookies.get_dict()\n ZSQ1.update(hFLc)\n geh0 = UzPC.post(JNMw, verify=False, headers=ZSQ1, data=qQXR.dumps(pzPW), ... | [
"0.641207",
"0.6204346",
"0.6062237",
"0.5960402",
"0.5914578",
"0.58605283",
"0.5845421",
"0.58354014",
"0.5771365",
"0.571981",
"0.57012105",
"0.56675065",
"0.5661444",
"0.5614097",
"0.5591359",
"0.556746",
"0.55334806",
"0.55226743",
"0.55108976",
"0.54947305",
"0.5488064"... | 0.6770728 | 0 |
Adds a key to the counter | def H2v5(YKHO, H5ew, Ilxn):
YKHO.counter.setdefault(H5ew, NCjo(0.005))
YKHO.counter[H5ew].add(str(Ilxn)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZ6p(YKHO, H5ew):\n pass",
"def jZ6p(YKHO, H5ew):\n YKHO.stats[H5ew] += 1",
"def jZ6p(YKHO, H5ew):\n YKHO.stats[H5ew] += 1",
"def jZ6p(YKHO, H5ew):\n YKHO.stats[H5ew] += 1",
"def jZ6p(YKHO, H5ew: str) -> None:\n if H5ew in YKHO.map:\n YKHO.map[H5ew] += 1\n else:\n YKHO.m... | [
"0.8268026",
"0.77886",
"0.77886",
"0.77886",
"0.77512634",
"0.77365977",
"0.7663411",
"0.76467717",
"0.76452076",
"0.7463054",
"0.739936",
"0.7387762",
"0.73163027",
"0.72554314",
"0.7197563",
"0.7192244",
"0.715692",
"0.7128865",
"0.71258855",
"0.7085432",
"0.69927645",
"... | 0.77422684 | 5 |
KL Divergence between 2 bernoulli distributions | def t1lM(WKvO, LVAh):
if LVAh == 1:
return oyIN.inf
if WKvO == 0:
return oyIN.log(1 / (1 - LVAh))
else:
return WKvO * oyIN.log(WKvO / LVAh) + (1 - WKvO) * oyIN.log((1 - WKvO) / (1 - LVAh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzAH(ZUyv: np.array, S_1T: np.array) -> float:\n qmLP.filterwarnings('ignore', category=RuntimeWarning)\n iArr = ZUyv * oyIN.log2(S_1T / ZUyv)\n qmLP.filterwarnings('default', category=RuntimeWarning)\n iArr = oyIN.nan_to_num(iArr)\n return -iArr.sum()",
"def BEPg(YKHO, LdFJ, np54):\n f2rf ... | [
"0.70620525",
"0.7008753",
"0.70072275",
"0.69046247",
"0.6848693",
"0.68368924",
"0.6826018",
"0.6776176",
"0.6771772",
"0.67173696",
"0.6681786",
"0.66741186",
"0.66206867",
"0.661939",
"0.65749156",
"0.6570847",
"0.65680313",
"0.6561541",
"0.6549889",
"0.6548035",
"0.65388... | 0.0 | -1 |
Enable greaterthanorequal comparison between version objects. | def Zcf_(YKHO, Elif):
return NxUk(YKHO, '>=', Elif) if type(YKHO) is type(Elif) else NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return YKHO.major > Elif.major or (YKHO.major == Elif.major and YKHO.minor > Elif.minor) or (YKHO.major == Elif.major and YKHO.minor == Elif.minor and (YKHO.patch > Elif.patch))",
"def cP1c(YKHO):\n hQHm = moxu.parse('2a1')\n jlSq = moxu.parse('2b1')\n YKHO.assertTrue(hQHm < j... | [
"0.70361036",
"0.68093026",
"0.67880917",
"0.67335266",
"0.666942",
"0.66511333",
"0.6629366",
"0.66219366",
"0.6620192",
"0.66049284",
"0.6593844",
"0.6587052",
"0.6587052",
"0.6587052",
"0.65850407",
"0.65729374",
"0.65137225",
"0.6512047",
"0.6510719",
"0.6509676",
"0.6502... | 0.7051337 | 0 |
This function returns X coordinate of Pole. | def nIKw(YKHO):
return YKHO.x_coord | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIKw(YKHO):\n return YKHO._coordinate.get_x()",
"def mRpp(YKHO):\n return YKHO._x_coord",
"def xXkp(YKHO):\n return int(YKHO._x)",
"def a2wL(YKHO):\n return YKHO._coord_x",
"def nIKw(YKHO):\n return YKHO.get_position(0) / 8 * 0.0025",
"def HPWF(YKHO):\n return YKHO._position[1]",
... | [
"0.7734949",
"0.7475407",
"0.74749047",
"0.7378964",
"0.7221235",
"0.721754",
"0.7179666",
"0.71540487",
"0.7120638",
"0.7113534",
"0.71098906",
"0.7098761",
"0.707306",
"0.7066239",
"0.7066239",
"0.70193934",
"0.7000335",
"0.69583595",
"0.69522786",
"0.69345456",
"0.6878242"... | 0.763925 | 1 |
Given a list of record arrays of the same length, with unique fields, join them into a single record array | def zl4c(Sk_F):
Mjhm = sum((jzdc.dtype.descr for jzdc in Sk_F), [])
m631 = oyIN.empty(len(Sk_F[0]), dtype=Mjhm)
for jzdc in Sk_F:
for mWFP in jzdc.dtype.names:
m631[mWFP] = jzdc[mWFP]
return m631 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8FG(YKHO, J2us):\n return list(Hs6x.chain.from_iterable(J2us))",
"def AkFi(tyNF, xAfl, Ejic):\n cdLC = []\n vsnM = None\n for rdlD in tyNF:\n gAQa = {G1Hx: [Ty9i] if G1Hx in Ejic else Ty9i for G1Hx, Ty9i in rdlD.items()}\n if not vsnM:\n vsnM = gAQa\n continue... | [
"0.6476031",
"0.64442086",
"0.6044835",
"0.59668535",
"0.5849605",
"0.5783613",
"0.56068957",
"0.5553284",
"0.5551922",
"0.55155736",
"0.5506254",
"0.54995334",
"0.54913646",
"0.5489802",
"0.5467447",
"0.54414433",
"0.54037803",
"0.53767246",
"0.53742874",
"0.53614825",
"0.53... | 0.72330165 | 0 |