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 the euclidean distance between two lat/long points | def zG70(igSk, PNCc, TGuP, v7YJ):
WKvO = 69.1 * (TGuP - igSk)
LVAh = 69.1 * (v7YJ - PNCc) * epAf.cos(igSk / 57.3)
pImw = epAf.sqrt(WKvO * WKvO + LVAh * LVAh)
return pImw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gvwv(fZEQ, sgoH):\n return epAf.sqrt(sum([(jzdc - Fg_i) ** 2 for jzdc, Fg_i in zip(fZEQ, sgoH)]))",
"def eve5(igSk, GgQG, TGuP, tk0B):\n return PZ77.WGS84.Inverse(igSk, GgQG, TGuP, tk0B)['s12']",
"def Dm2A(wc9i, p3Lo):\n igSk, GgQG = wc9i.centroid\n TGuP, tk0B = p3Lo.centroid\n return PZyS((... | [
"0.798512",
"0.7874965",
"0.784562",
"0.78367096",
"0.7788775",
"0.77831024",
"0.7747436",
"0.77269596",
"0.76895297",
"0.7688702",
"0.7679215",
"0.7666751",
"0.76459885",
"0.7643038",
"0.7623515",
"0.7619535",
"0.7593095",
"0.7542804",
"0.75427014",
"0.7525883",
"0.75246805"... | 0.7703224 | 8 |
Produces a list of serialized tf.Examples from transformed data. | def W0ds(nPrm: Tuple[pa.RecordBatch, Dict[str, pa.Array]], clKE: example_coder.RecordBatchToExamplesEncoder) -> x1iM[bytes]:
Tirs, bGrB = nPrm
return clKE.encode(Tirs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9Lq(YKHO):\n bySB = []\n for ttfM, PU1l in enumerate(YKHO.examples):\n X_Sv = PU1l.taskname\n YaCa = YKHO.tokenizer.text_to_ids(X_Sv)\n m_u7 = PU1l.processor\n if ttfM % 10000 == 0:\n G9jH.info(f'Writing example {ttfM} of {len(YKHO.examples)}')\n cY2j = m_u7... | [
"0.6958016",
"0.6748986",
"0.67361456",
"0.6658963",
"0.6565882",
"0.64636815",
"0.6402347",
"0.63523936",
"0.63523936",
"0.62863874",
"0.62848586",
"0.62824947",
"0.6211674",
"0.6141158",
"0.6094538",
"0.6080663",
"0.6076335",
"0.60522515",
"0.60453117",
"0.60183996",
"0.600... | 0.5945353 | 26 |
get dot product of Xhat and M | def Gqye(YKHO, E3D9):
if 0:
pass
else:
KcAH = oyIN.dot(YKHO.Xstar().T, E3D9)
return KcAH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(YKHO, Elif):\n return YKHO.x0 * Elif.x0 + YKHO.x1 * Elif.x1 + YKHO.x2 * Elif.x2",
"def iVXA(jzdc, Fg_i):\n return oyIN.einsum('ijk,ikl->ijl', jzdc, Fg_i)",
"def uYbU(WKvO, WZcn):\n return nMvt.squeeze(nMvt.dot(WKvO, nMvt.expand_dims(WZcn)), axis=-1)",
"def BJ1H(*MaUq):\n ywwl = MaUq[0]\n... | [
"0.69523966",
"0.69397277",
"0.69012904",
"0.6813258",
"0.6764509",
"0.6756571",
"0.66334325",
"0.6627931",
"0.6619186",
"0.66163886",
"0.6605976",
"0.66051376",
"0.659309",
"0.6584659",
"0.65646136",
"0.6548301",
"0.65213996",
"0.65202147",
"0.65202147",
"0.65202147",
"0.652... | 0.7308769 | 0 |
Return a layout ID given a human layout name. | def ghTC(DuqQ, BWXx):
Wn1Y = MrTh()
return Wn1Y.layout_id(DuqQ, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4tV(*qIxc):\n return _VfD.parseLayoutId(*qIxc)",
"def mLJR(YKHO):\n return _VfD.Layout_getId(YKHO)",
"def vYwt(YKHO, COkh: str) -> int:\n raise NotImplementedError",
"def ZqOw(LAOT):\n Cx0t = {'sidebar': 'pages/content/content_post.html'}\n return Cx0t[LAOT]",
"def WTYN(YKHO):\n retu... | [
"0.63957036",
"0.6245028",
"0.5935354",
"0.56690013",
"0.56520665",
"0.5636896",
"0.5571918",
"0.55609185",
"0.55458844",
"0.5537595",
"0.5529953",
"0.55228305",
"0.5483279",
"0.53768206",
"0.53530204",
"0.5348442",
"0.5312475",
"0.53113043",
"0.53012615",
"0.5286641",
"0.528... | 0.68512195 | 0 |
Computes the opcode for an instruction | def vH91(OUVF, *qIxc):
kuMQ = r2t3[OUVF]
e5kH = Xxq9[OUVF]
assert len(qIxc) == len(e5kH) - 1 + e5kH[0], 'Invalid number of\n\t\targuments for `%s`' % OUVF
HkJz = 128
for YRbF in Ni9Y(1, len(e5kH)):
assert 1 <= len(e5kH[YRbF]) <= 2, 'Invalid number of possible\n\t\t\t\targument types. Check `... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlvI(YKHO, Wxnj):\n kuMQ = int(str(Wxnj)[-2:])\n return kuMQ",
"def kuMQ(YKHO):\n if YKHO.op is None:\n return None\n return YKHO.op.value",
"def Mdrt(YKHO) -> int:\n vgXP = YKHO.current_address - YKHO.STARTING_ADDRESS\n if YKHO.insight:\n YKHO.insight.opcode(YKHO.rom_data, ... | [
"0.7358185",
"0.7126087",
"0.70924646",
"0.7036129",
"0.689643",
"0.65232813",
"0.64296293",
"0.6384594",
"0.63250726",
"0.6122396",
"0.6010467",
"0.59943783",
"0.597373",
"0.5923755",
"0.5896763",
"0.5881855",
"0.5849642",
"0.577331",
"0.5756591",
"0.5743583",
"0.5733374",
... | 0.5333134 | 41 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
while True:
j5sA = input('Are you from Washington, New York City or Chicago: ').lower()
if j5sA in gysO:
break
print('You selected: ', j5sA)
while True:
x0eS = input('Which month would you like to filte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671029",
"0.65359104",
"0.6458688",
"0.63752216",
"0.6348333",
"0.6310136",
"0.6286666",
"0.6259401",
"0.6232757",
"0.6214305",
"0.6204918",
"0.6181069",
"0.61726975",
"0.6168352",
"0.61584324",
"0.61533356",
"0.6144159",
"0.6131992",
"0.61047643",
"0.6102517",
"0.6091326... | 0.61581767 | 15 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['dow'] = jQ3Z['Start Time'].dt.weekday
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
if x0eS != 'all':
x0eS = X_bn.index(x0e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7384618 | 96 |
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.loc[:, 'month'].mode()
print('The most common month is: ', hFPs)
RrEU = jQ3Z.loc[:, 'dow'].mode()
print('The most common day of the week is: ', RrEU)
daHl = jQ3Z.loc[:, 'hour'].mode()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.74459285 | 40 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Z35k = jQ3Z.loc[:, 'Start Station'].mode()
print('The most started location is: ', Z35k)
XJvd = jQ3Z.loc[:, 'End Station'].mode()
print('The most common used end station is: ', XJvd)
p9F2 = jQ3Z... | {
"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 print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.78160274",
"0.7661919",
"0.75536317",
"0.7491503",
"0.7474813",
"0.74461776",
"0.7431465",
"0.74235755",
"0.7417586",
"0.7400262",
"0.73873377",
"0.73855174",
"0.7365086",
"0.7359132",
"0.73566383",
"0.7355021",
"0.735213",
"0.7351353",
"0.73503",
"0.73420906",
"0.73405164... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
UGNE = jQ3Z['Trip Duration'].sum()
print('The total travel time is: ', UGNE)
Jj87 = jQ3Z['Trip Duration'].mean()
print('The average time travelled is: ', Jj87)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8142488",
"0.802504",
"0.8003995",
"0.7949535",
"0.7937111",
"0.793114",
"0.7926624",
"0.79147255",
"0.7913882",
"0.7907699",
"0.79052943",
"0.7900545",
"0.78914416",
"0.7889074",
"0.7886493",
"0.7884836",
"0.7884105",
"0.78822976",
"0.78735834",
"0.7868467",
"0.7866015",
... | 0.77027464 | 69 |
Gets the dashboard_url of this ServiceResponse. | def MOIE(YKHO) -> str:
return YKHO._dashboard_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUDn(YKHO):\n bD7m = 'http://127.0.0.1/horizon'\n WKvO = KVWQ(YKHO.url)\n bD7m = '%s://%s/horizon' % (WKvO.scheme, WKvO.netloc.split(':')[0])\n return bD7m",
"def UkHq(YKHO):\n Aofo = YKHO._client.get('{}/dashboard'.format(dh8u.api_endpoint), model=YKHO)\n return Aofo['url']",
"def a1uJ(Y... | [
"0.674965",
"0.6657662",
"0.6464404",
"0.63082314",
"0.61133635",
"0.6092367",
"0.60873324",
"0.6078956",
"0.6078956",
"0.60252345",
"0.5958921",
"0.5958921",
"0.5872743",
"0.5845644",
"0.5787881",
"0.5768059",
"0.5744298",
"0.57284445",
"0.5711765",
"0.5704383",
"0.5704383",... | 0.7959196 | 0 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
while True:
print('-' * 40)
j5sA = str(input('choose the City : chicago, new york city, washington\n'))
j5sA = j5sA.lower()
if j5sA == 'chicago' or j5sA == 'new york city' or j5sA == 'washington':
break... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671029",
"0.65359104",
"0.6458688",
"0.63752216",
"0.6348333",
"0.6310136",
"0.6286666",
"0.6259401",
"0.6232757",
"0.6214305",
"0.6204918",
"0.6181069",
"0.61726975",
"0.6168352",
"0.61584324",
"0.61581767",
"0.61533356",
"0.6144159",
"0.6131992",
"0.61047643",
"0.610251... | 0.0 | -1 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'none':
X_bn = ['january', 'february', 'march', 'april', 'may... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81323016",
"0.8109424",
"0.80464303",
"0.8042689",
"0.8009603",
"0.8007148",
"0.7999635",
"0.7998743",
"0.79891264",
"0.7979305",
"0.7974435",
"0.7961534",
"0.79565644",
"0.79476094",
"0.7946865",
"0.7908892",
"0.7908559",
"0.7904986",
"0.79014856",
"0.7893825",
"0.7889581... | 0.764529 | 74 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
sve5 = jQ3Z['month'].mode()[0]
print('The most common month : {}'.format(sve5))
jQ3Z['day'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.7269479 | 60 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
OKpj = jQ3Z['Start Station'].mode()[0]
print('The most common start station:', OKpj)
kx1k = jQ3Z['End Station'].mode()[0]
print('The most common end station:', kx1k)
bBtM = jQ3Z['Start Station']... | {
"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 print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.69770056 | 78 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
qZ1g = jQ3Z['Trip Duration'].sum()
print(qZ1g)
Are6 = jQ3Z['Trip Duration'].mean()
print(Are6)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8142488",
"0.802504",
"0.8003995",
"0.7949535",
"0.7937111",
"0.793114",
"0.7926624",
"0.79147255",
"0.7913882",
"0.7907699",
"0.79052943",
"0.7900545",
"0.78914416",
"0.7889074",
"0.7886493",
"0.7884836",
"0.78822976",
"0.78735834",
"0.7868467",
"0.7866015",
"0.786337",
... | 0.7884105 | 16 |
Returns nodes in nodeList which are also found from visible items. | def WELa(YKHO, iYGA):
HTBj = []
for FtpQ in YKHO.currentState.findall('/*'):
if FtpQ in iYGA:
HTBj.append(FtpQ)
return HTBj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OFd4(YKHO):\n return (WKvO for WKvO in YKHO.iterall() if WKvO.visible)",
"def b5LT(YKHO, O9mr, ha5J):\n Mh0j = ha5J['bottom_left']\n lOGt = ha5J['top_right']\n ZYyd = []\n for Q6kx in O9mr:\n if Q6kx.serial != -1:\n aa7P = YKHO.original_graph.get_node_by_serial(Q6kx.serial)\n... | [
"0.6191649",
"0.61300296",
"0.60132754",
"0.598446",
"0.5973058",
"0.5911363",
"0.5887036",
"0.58628905",
"0.5779087",
"0.5678764",
"0.5678676",
"0.5658043",
"0.5653297",
"0.56324023",
"0.55945534",
"0.55945534",
"0.55945534",
"0.5585437",
"0.5577762",
"0.5574191",
"0.5565452... | 0.7329222 | 0 |
Checks if point is inside the area. | def KFpJ(YKHO, AU8u, f0tD):
zmMM, obag = AU8u
NiNm, AyRx, ushD, ABoz = f0tD
if (zmMM >= NiNm and zmMM <= NiNm + ushD) and (obag >= AyRx and obag <= AyRx + ABoz):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p4_Z(wF0t, raMf, Y6Km, qMXf, iH7q, RS0L):\n return Y6Km <= wF0t < Y6Km + iH7q and qMXf <= raMf < qMXf + RS0L",
"def TZ92(AU8u, f0tD):\n WKvO = AU8u.real\n LVAh = AU8u.imag\n exwG = len(f0tD)\n bJYl = False\n jlZt = f0tD[0].real\n lCWw = f0tD[0].imag\n for YRbF in range(1, exwG + 1):\n... | [
"0.8483719",
"0.78407776",
"0.7824319",
"0.7771701",
"0.7771701",
"0.7686129",
"0.758811",
"0.7577771",
"0.7577771",
"0.7560199",
"0.7516724",
"0.7450646",
"0.744459",
"0.7415352",
"0.7395527",
"0.7382229",
"0.7298693",
"0.72819895",
"0.7265682",
"0.72601587",
"0.7232983",
... | 0.8778676 | 0 |
Checks if item is under status bar node. | def Lery(YKHO, f3fv):
LNo8 = None
if '/' in f3fv:
LNo8 = YKHO._getImage(f3fv)
elif '.png' in f3fv:
LNo8 = f3fv
if LNo8:
Ziit = YKHO.currentState.findall('//image-widget[@visible="true" and contains(@image,"%s") and @is-in-statusbar="true"]' % LNo8)
if len(Ziit) > 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WzJ6(YKHO):\n import wx\n if not VYHF.isalive(YKHO.parent):\n return False\n if isinstance(YKHO.widget, wx.MenuItem):\n return VYHF.isalive(YKHO.menu)\n else:\n return VYHF.isalive(YKHO.widget)",
"def oXiV(YKHO):\n return YKHO.is_element_visible(YKHO.status_dropdown_locato... | [
"0.5974627",
"0.5483455",
"0.54815763",
"0.54495716",
"0.54417586",
"0.5412946",
"0.53623086",
"0.5341424",
"0.5324679",
"0.528243",
"0.5275967",
"0.5260092",
"0.52555823",
"0.5240228",
"0.52298415",
"0.5217563",
"0.52022046",
"0.5173356",
"0.5172482",
"0.5138362",
"0.5133562... | 0.747749 | 0 |
Returns height of statusbar | def x3om(YKHO):
if YKHO.currentState:
DETm = YKHO.currentState.find('//statusbar')
if DETm:
YKHO.statusbarHeight = int(DETm.getAttribute('coords').split(',')[3])
else:
YKHO.statusbarHeight = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO) -> int:\n return YKHO.screen.getmaxyx()[0]",
"def H2v2(YKHO):\n return YKHO.SCREEN_H",
"def BQAq(YKHO):\n VAXr = YKHO.widget.layout().menuBar()\n if VAXr is None:\n Ylbp = 0\n else:\n try:\n C4tQ = isinstance(VAXr.style(), CsJA.QMacStyle)\n except A... | [
"0.73934215",
"0.7146507",
"0.71461445",
"0.70575523",
"0.7004772",
"0.6976503",
"0.6719888",
"0.66348976",
"0.65250176",
"0.64741915",
"0.6467096",
"0.64663297",
"0.64663297",
"0.64663297",
"0.64311516",
"0.64189225",
"0.64119846",
"0.6395655",
"0.6395655",
"0.6395655",
"0.6... | 0.85646474 | 0 |
Clear text using backspacebutton in virtual keyboard | def OjlP(YKHO, FGW3=0, GvQA=False):
if YKHO.phone.isFullBlackBox():
if not YKHO.blackBoxVkb:
YKHO.blackBoxVkb = wI9P(YKHO.phone)
YKHO.blackBoxVkb.backspace(times=FGW3)
return
if not GvQA:
YKHO.phone.comment('clear.backspace(%s)' % (FGW3 != 0 and str(FGW3) or ''))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OjlP(bTKY):\n bTKY.delete_symbol()",
"def APs5(l5Ny):\n \"\"\" if the user try to delete an empty line it will not allowed him:)\"\"\"\n if len(l5Ny.getText()) < 1:\n l5Ny.setText('')\n return l5Ny\n else:\n l5Ny.setText(l5Ny.getText()[:-10])\n return l5Ny",
"def EKI... | [
"0.731943",
"0.72025913",
"0.6991595",
"0.6904566",
"0.68431103",
"0.6823535",
"0.6741616",
"0.66630244",
"0.66280085",
"0.65944254",
"0.65479076",
"0.6547558",
"0.65420705",
"0.6522866",
"0.65187603",
"0.64621216",
"0.64558315",
"0.6447901",
"0.64295787",
"0.64269745",
"0.64... | 0.7045059 | 2 |
internal function to retrieve a matching job id for job_name celery task (e.g., hs_core.tasks.create_bag_by_irods) from a specified celery job dictionary including active jobs, reserved jobs, and scheduled jobs. Active jobs and reserved jobs have the same dictionary format, while schedule jobs have a bit different form... | def Ps7f(wxIh, fxE9, mstC):
if mstC:
fHUa = list(mstC.keys())
for i4ai in fHUa:
for oCfW in mstC[i4ai]:
if 'name' in oCfW:
if oCfW['name'] == wxIh:
if fxE9 in oCfW['args']:
return oCfW['id']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TekU(wxIh, fxE9):\n UbNP = p9Uq.active()\n rjee = Ps7f(wxIh, fxE9, UbNP)\n if not rjee:\n VOBs = p9Uq.reserved()\n rjee = Ps7f(wxIh, fxE9, VOBs)\n if not rjee:\n iwnq = p9Uq.scheduled()\n rjee = Ps7f(wxIh, fxE9, iwnq)\n return rjee",
"def q3vm(YKHO):\n ... | [
"0.749015",
"0.6708669",
"0.6498497",
"0.64466274",
"0.6325868",
"0.62780076",
"0.6270872",
"0.62649655",
"0.626479",
"0.626263",
"0.6256141",
"0.62498057",
"0.61558545",
"0.6142982",
"0.6138941",
"0.6131001",
"0.61172235",
"0.611006",
"0.6107953",
"0.6101227",
"0.61002624",
... | 0.75484824 | 0 |
r"""Call the list operations method over HTTP. | def nrOS(YKHO, QePW: operations_pb2.ListOperationsRequest, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Optional[float]=None, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.ListOperationsResponse:
Zgvv: x1iM[cuzp[str, str]] = [{'method': 'get', 'uri': '/v3beta1/{name=projects/*}/operations'}, {'method': 'get', 'u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qnba(YKHO, **B2fa):\n return YKHO._make_request(**B2fa)",
"def d6pt():\n return WKUg(KVu0)",
"def list(YKHO):\n return YKHO.request('GET')",
"def list(YKHO, QePW):\n NuCn = ['Uses action (list, create, reteieve, update, partial_update)', 'Automatically maps the urls using routers', 'provide m... | [
"0.750394",
"0.72345656",
"0.71966034",
"0.6960108",
"0.6957731",
"0.68971574",
"0.68971574",
"0.68971574",
"0.68971574",
"0.68971574",
"0.6850885",
"0.6850885",
"0.6829171",
"0.68089885",
"0.677977",
"0.67791873",
"0.67576295",
"0.67576295",
"0.67576295",
"0.67576295",
"0.67... | 0.0 | -1 |
Test the MsgVersion wire encode and decode for various protocol versions. | def kiYe():
TNXa = A7Xu()
TNXa.disableRelayTx = True
w_Ri = Yyq4()
w_Ri[-1] = 0
ETK8 = A7Xu()
lfdS = [(ETK8, ETK8, Yyq4()), (TNXa, TNXa, w_Ri)]
for zddB, Guxk, n_Bk in lfdS:
Fg_i = zddB.btcEncode(UsS3.ProtocolVersion)
assert Fg_i == n_Bk
tO9_ = uN12.MsgVersion.btcDeco... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def epYi():\n zlkh = 60002\n K7io = qpHa()\n ojwn = K7io\n rny6 = '/' + 't' * (uN12.MaxUserAgentLen - 8 + 1) + ':0.0.1/'\n ojwn.userAgent = rny6\n uPXm = UsS3.writeVarInt(zlkh, len(rny6))\n bB5d = QcZw()\n axZS = A5SK()\n axZS += bB5d[0:80]\n axZS += uPXm\n axZS += rny6.encode()\n ... | [
"0.69109744",
"0.6527795",
"0.6516498",
"0.6410709",
"0.6257993",
"0.6255722",
"0.6222077",
"0.60945845",
"0.5988695",
"0.59852314",
"0.5916656",
"0.59074855",
"0.59034663",
"0.58952665",
"0.58038473",
"0.57968503",
"0.5784908",
"0.57691354",
"0.5767198",
"0.57452035",
"0.574... | 0.81781876 | 0 |
FETCHES the account balance for the authenticated user. | def u0LD(YKHO):
return int(YKHO.request('get', 'fort/accounts')['balance']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rCkj(YKHO):\n return YKHO._call_account_method('getBalance')",
"def f6xC(YKHO, oYNL):\n YAq3 = YKHO.request('get', Rwy4('fort/accounts/{:hex}', oYNL))\n return int(YAq3['balance'])",
"def rCkj(YKHO):\n Mkmy = G4JS.get(YvxU(YKHO.base_url, None, 'balance', ''), auth=OF86(n527, XmI_))\n if Mkmy... | [
"0.8052141",
"0.7940275",
"0.78531647",
"0.77831286",
"0.7749752",
"0.77109885",
"0.760394",
"0.7587497",
"0.755387",
"0.7504781",
"0.7497455",
"0.74822396",
"0.7480355",
"0.7480355",
"0.7476885",
"0.7447644",
"0.74198925",
"0.7395723",
"0.7389904",
"0.7372493",
"0.7343405",
... | 0.800162 | 1 |
Creates Vingd user (profile & account), links it with the provided identities (to be verified later), and sets the delegateuser permissions (creator being the delegate). Returns Vingd user's `huid` (hashed user id). | def vLkU(YKHO, G6Ug=None, OZ65=None, w0rQ=None):
return YKHO.request('post', 'id/users/', qQXR.dumps({'identities': G6Ug, 'primary_identity': OZ65, 'delegate_permissions': w0rQ})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(YKHO, *qIxc, **B2fa):\n CBIr = mv1M.objects.create_user(*qIxc, **B2fa)\n return Bgf_(CBIr)",
"def lYUQ(YKHO):\n return mv1M.objects.create_user(**YKHO.user_data)",
"def CfQI(YKHO):\n NtEF = 'pseudo'\n D3lj = 'carole@tests.com'\n jTXt = '00000000'\n M2Xw = YKHO.user.objects.create_... | [
"0.67311174",
"0.6689909",
"0.6633557",
"0.65546554",
"0.63425624",
"0.6307033",
"0.6301859",
"0.62907606",
"0.62854505",
"0.62796086",
"0.6278003",
"0.6274424",
"0.62621355",
"0.6259391",
"0.6257665",
"0.62495583",
"0.62495583",
"0.62495583",
"0.62495583",
"0.62495583",
"0.6... | 0.66911 | 1 |
Compute the entropy for a diagonal Gaussian distribution. | def q0fN(ZOOq):
return ZylS.reduce_sum(ZOOq + 0.5 * oyIN.log(2.0 * oyIN.pi * oyIN.e), axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqGu(YKHO, EcVT):\n if isinstance(EcVT, oyIN.ndarray):\n EcVT = rLdf.DataFrame(EcVT, index=[str(YRbF) for YRbF in range(len(EcVT))])\n nMvt = YKHO._posterior_covariance(EcVT)\n aPd6 = oyIN.linalg.cholesky(nMvt)\n lWPh = len(EcVT)\n return oyIN.sum(oyIN.log(oyIN.diag(aPd6))) + 0.5 * lWPh *... | [
"0.731719",
"0.7224839",
"0.7193137",
"0.7116031",
"0.71132463",
"0.7058452",
"0.7058318",
"0.7029189",
"0.7007923",
"0.7004425",
"0.7003803",
"0.68979144",
"0.68430084",
"0.68120617",
"0.6781213",
"0.67537737",
"0.6745347",
"0.673312",
"0.6730439",
"0.66950405",
"0.6677064",... | 0.6839386 | 13 |
Generates an OpenID Connect ID token for a service account. | def tXMZ(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO):\n return YKHO.rpc.call(OMwV.AuthTokenGenerate)['token']",
"def LQUb(YKHO):\n YKHO.__get_auth_token_and_secret()\n return YKHO.get_token()",
"def LQUb():\n return kxTZ()",
"def X6p5(YKHO):\n try:\n pB3N = {'exp': qcWV.utcnow() + fCoM(days=0, minutes=30), 'iat': qcWV.utcno... | [
"0.68125063",
"0.6705326",
"0.6651493",
"0.66225535",
"0.66192704",
"0.6555587",
"0.6555587",
"0.6542291",
"0.64926434",
"0.6455185",
"0.64372045",
"0.642733",
"0.6404041",
"0.6340431",
"0.6311988",
"0.62692636",
"0.62690085",
"0.62594205",
"0.62009066",
"0.6153982",
"0.61015... | 0.6514958 | 8 |
Get current storage backend | def JvXs(YKHO):
return YKHO.client.info()['Driver'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JLXL():\n return FPFf",
"def JLXL():\n return xcLg._BACKEND",
"def DDLl(YKHO):\n return YKHO._backend",
"def lvCQ(YKHO):\n return YKHO.storage",
"def gaMH(YKHO):\n return YKHO.header['BACKEND']",
"def JLXL():\n global _ACTIVE_BACKEND\n if not zCVy:\n zCVy = qoEw(gCuF.SITE_... | [
"0.77245086",
"0.7543244",
"0.74643683",
"0.7432564",
"0.735667",
"0.7270066",
"0.7269592",
"0.71957856",
"0.71957856",
"0.71764857",
"0.71272814",
"0.7117252",
"0.7117252",
"0.71169734",
"0.7092117",
"0.7064129",
"0.70309263",
"0.70110196",
"0.6972989",
"0.6957128",
"0.69541... | 0.9084762 | 0 |
Get the container storage volume path | def Ri07(YKHO, Xzzh, sdpN):
if sdpN == 'devicemapper':
pyU2 = YKHO.api.inspect_container(Xzzh)['GraphDriver']['Data']['DeviceName']
with open('/proc/mounts') as W2XT:
W2XT = W2XT.read()
tDsb = ZbWC.compile('{} (\\S*)'.format(pyU2))
cXlw = ZbWC.search(tDsb, W2XT).g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return YKHO._container_dir",
"def Fusb(pan_=False):\n SPBB = Xas7(target=pan_)\n H8QG = Ni8F(target=pan_)\n ITdu = SPBB.get('storage_path')\n if ITdu and ITdu is not H8QG:\n raise yaBs('The property resource_config.storage_path is no longer supported.')\n KAOR = WFkT(ta... | [
"0.7043579",
"0.68259627",
"0.68091404",
"0.6743419",
"0.6702445",
"0.6684674",
"0.66223526",
"0.66191924",
"0.65854675",
"0.64409286",
"0.6435755",
"0.64066064",
"0.6361269",
"0.6315192",
"0.63143784",
"0.6300697",
"0.6281968",
"0.6219981",
"0.6210668",
"0.61079556",
"0.6021... | 0.72967154 | 0 |
Get arguments from CLI | def rwTO():
wvEv = j1Jz.ArgumentParser(description='Run standard tree inference using raxml-light/examl')
wvEv.add_argument('--phylip', required=True, type=Nz4g, action=QX2E, help='The phylip file you want to run raxml against.')
wvEv.add_argument('--output', required=True, action=Hi4N, help='The output dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbGV(YKHO):\n pass",
"def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc",
"def Ugfm():\n wvEv = j1Jz.ArgumentParser(description='list all installed packages')\n wvEv.add_argument('-v', '--verbose', help='increase output verbosity', action='store_true')\n wvEv.add_arg... | [
"0.83995515",
"0.7696954",
"0.7674078",
"0.7656369",
"0.75491726",
"0.7546294",
"0.7523218",
"0.7521475",
"0.7514517",
"0.75119865",
"0.74877495",
"0.74807847",
"0.74693704",
"0.7466727",
"0.74665916",
"0.74520636",
"0.74513096",
"0.7427955",
"0.7422721",
"0.74211824",
"0.740... | 0.0 | -1 |
AWS account ID for the launch permission. | def Z31E(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'account_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E():\n return x0hE.get_caller_identity()['Account']",
"def lGQ2():\n if 'AWS_ACCOUNT_ID' in Hy7s.environ:\n return Hy7s.environ['AWS_ACCOUNT_ID']\n w2B8 = WJfo()\n aese = [lambda: w2B8.get_user().get('get_user_response').get('get_user_result').get('user').get('arn'), lambda: w2B8.list_r... | [
"0.673061",
"0.653453",
"0.65023845",
"0.65023845",
"0.64847326",
"0.64200807",
"0.6393889",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.634139",
"0.62974966",
"0.62974966",
"0.62974966",
"0.6277477",
"0.6... | 0.61912537 | 26 |
ARN of an organization for the launch permission. | def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'organization_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8... | [
"0.74722975",
"0.66299325",
"0.66204137",
"0.66204137",
"0.6266184",
"0.6190465",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",... | 0.74086875 | 2 |
ARN of an organizational unit for the launch permission. | def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'organizational_unit_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def F_GW(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_account_arn')",
"def GyV3(YKHO) -> h8nf[qe4... | [
"0.7529855",
"0.6542091",
"0.6378845",
"0.63642734",
"0.63642734",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
... | 0.74494874 | 1 |
AWS account ID for the launch permission. | def Z31E(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'account_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E():\n return x0hE.get_caller_identity()['Account']",
"def lGQ2():\n if 'AWS_ACCOUNT_ID' in Hy7s.environ:\n return Hy7s.environ['AWS_ACCOUNT_ID']\n w2B8 = WJfo()\n aese = [lambda: w2B8.get_user().get('get_user_response').get('get_user_result').get('user').get('arn'), lambda: w2B8.list_r... | [
"0.673061",
"0.653453",
"0.65023845",
"0.65023845",
"0.64847326",
"0.64200807",
"0.6393889",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.63512766",
"0.634139",
"0.62974966",
"0.62974966",
"0.62974966",
"0.6277477",
"0.6... | 0.61912537 | 27 |
ARN of an organization for the launch permission. | def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'organization_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8... | [
"0.7473029",
"0.6631884",
"0.66223997",
"0.66223997",
"0.62663496",
"0.61895424",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",
"0.6129466",... | 0.7409483 | 1 |
ARN of an organizational unit for the launch permission. | def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'organizational_unit_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def F_GW(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_account_arn')",
"def GyV3(YKHO) -> h8nf[qe4... | [
"0.7529855",
"0.6542091",
"0.6378845",
"0.63642734",
"0.63642734",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
... | 0.74494874 | 2 |
AWS account ID for the launch permission. | def Z31E(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'account_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E():\n return x0hE.get_caller_identity()['Account']",
"def lGQ2():\n if 'AWS_ACCOUNT_ID' in Hy7s.environ:\n return Hy7s.environ['AWS_ACCOUNT_ID']\n w2B8 = WJfo()\n aese = [lambda: w2B8.get_user().get('get_user_response').get('get_user_result').get('user').get('arn'), lambda: w2B8.list_r... | [
"0.6730583",
"0.6533911",
"0.6502176",
"0.6502176",
"0.6484676",
"0.64200604",
"0.6394042",
"0.63513505",
"0.63513505",
"0.63513505",
"0.63513505",
"0.63513505",
"0.63513505",
"0.63513505",
"0.63513505",
"0.6341447",
"0.6296946",
"0.6296946",
"0.6296946",
"0.6277986",
"0.6210... | 0.6117754 | 46 |
ARN of an organization for the launch permission. | def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'organization_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def GyV3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8nf[qe4Y.... | [
"0.74086875",
"0.74086875",
"0.66299325",
"0.66204137",
"0.66204137",
"0.6266184",
"0.6190465",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224",
"0.6129224"... | 0.74722975 | 0 |
ARN of an organizational unit for the launch permission. | def cDt5(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'organizational_unit_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def cDt5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organizational_unit_arn')",
"def GyV3(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_arn')",
"def F_GW(YKHO) -> qe4... | [
"0.74494874",
"0.74494874",
"0.6542091",
"0.6378845",
"0.63642734",
"0.63642734",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61301076",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
"0.61252874",
... | 0.7529855 | 0 |
Return a custom 404 error. | def m7kB(tTpl):
return ('Sorry, nothing at this URL.', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf():\n return c1Bu(404)",
"def RQdI(P1dF):\n return '404 Error'",
"def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'",
"def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)",
"def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)",
"def m7kB(XObx):\... | [
"0.8115719",
"0.8041123",
"0.7739078",
"0.7737266",
"0.7717824",
"0.7688764",
"0.76704776",
"0.7609715",
"0.7602159",
"0.75695056",
"0.75528574",
"0.7545411",
"0.7518652",
"0.7474878",
"0.74580294",
"0.7454448",
"0.745401",
"0.74501854",
"0.74424785",
"0.7428265",
"0.7405453"... | 0.72666657 | 35 |
A generator of currentlyavailable actions for a particular player (assists validation). | def HU0t(YKHO, OfK8):
rp_U = YKHO.throws[OfK8]
jM9i = str.islower if OfK8 == 'lower' else str.isupper
if rp_U < 9:
Zihr = -1 if OfK8 == 'lower' else 1
owyQ = ((Mkmy, vexM) for Mkmy, vexM in YKHO._SET_HEXES if Zihr * Mkmy >= 4 - rp_U)
for WKvO in owyQ:
for KCHu in 'rps':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovgf(YKHO):\n if YKHO.player == vMjN:\n return []\n elif YKHO.player == K5h9:\n if YKHO.phase == maPv:\n return [eax5(deal=[YRbF, r845, G1Hx, vC9B]) for YRbF in range(52) for r845 in range(52) for G1Hx in range(52) for vC9B in range(52) if len(set([YRbF, r845, G1Hx, vC9B])) == 4]... | [
"0.72856957",
"0.6969715",
"0.69145465",
"0.6902022",
"0.6820994",
"0.6800434",
"0.6715368",
"0.66105497",
"0.6574056",
"0.65657026",
"0.655319",
"0.6543289",
"0.6537551",
"0.6512378",
"0.642604",
"0.63484806",
"0.6338106",
"0.6338106",
"0.6336906",
"0.630493",
"0.630493",
... | 0.6279755 | 25 |
Returns the base farmer reward at a certain block height. The base fee reward is 1/10 of total block reward Returns the coinbase reward at a certain block height. These halving events will not be hit at the exact times (3 years, etc), due to fluctuations in difficulty. They will likely come early, if the network space ... | def CFrn(H2v2: uint32) -> oevr:
if H2v2 == 0:
return oevr(int(1 / 10 * 21000062 * e43x))
elif H2v2 < 3 * J8VM:
return oevr(int(1 / 10 * 20 * e43x))
elif H2v2 < 6 * J8VM:
return oevr(int(1 / 10 * 10 * e43x))
elif H2v2 < 9 * J8VM:
return oevr(int(1 / 10 * 5 * e43x))
eli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CFrn(H2v2: uint32) -> oevr:\n if H2v2 == 0:\n return oevr(int(1 / 8 * 21000000 * K78e))\n elif H2v2 < 3 * J8VM:\n return oevr(int(1 / 8 * 2 * K78e))\n elif H2v2 < 6 * J8VM:\n return oevr(int(1 / 8 * 1 * K78e))\n elif H2v2 < 9 * J8VM:\n return oevr(int(1 / 8 * 0.5 * K78e)... | [
"0.7680895",
"0.6885281",
"0.63283885",
"0.6262758",
"0.61395097",
"0.59923863",
"0.59444034",
"0.58058274",
"0.5794616",
"0.57711864",
"0.5696624",
"0.5672393",
"0.55876935",
"0.5580621",
"0.5568555",
"0.55141014",
"0.5490306",
"0.5452737",
"0.5429339",
"0.54144615",
"0.5411... | 0.771491 | 0 |
Reset arrays and the stored histogram | def UyJw(YKHO):
super().reset_arrays()
YKHO.bins = YKHO.bin_array
YKHO.occs = oyIN.zeros(len(YKHO.bins), dtype=int) if oyIN.size(YKHO.bins) else [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.buffer = oyIN.zeros(YKHO.nBins)\n YKHO.counter = 0",
"def SiRx(YKHO):\n YKHO.table[:, :] = 0\n YKHO.counts[:] = 0\n YKHO.names = []\n YKHO.hashesperid.resize(0)\n YKHO.dirty = True",
"def SiRx(YKHO):\n YKHO.curr_idx = 0\n tuKI.shuffle(YKHO.idx)\n for YRbF, w... | [
"0.76720494",
"0.7507554",
"0.7450933",
"0.7355342",
"0.7341363",
"0.73234266",
"0.7300021",
"0.729677",
"0.7249146",
"0.7171039",
"0.7020832",
"0.6990799",
"0.698375",
"0.6976004",
"0.6950951",
"0.69494426",
"0.693136",
"0.6918292",
"0.6911276",
"0.68780595",
"0.68557477",
... | 0.7758622 | 0 |
Returns X,Y partioned into test and train sets as row vectors. | def UlWi(h_xa, lpha=1.0):
exwG = 123 * 41
eUr9 = SC2F.glob(h_xa + '/positive_set/*.png')
M8js = SC2F.glob(h_xa + '/negative_set/*.png')
WKvO = oyIN.zeros((exwG, len(eUr9) + len(M8js)))
for G1Hx in range(len(eUr9)):
WKvO[:, G1Hx] = oyIN.reshape(VXjJ.imread(eUr9[G1Hx]), (exwG,))
for G1Hx i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIU7(Lcqa, Z5wO, QGnf, JhrZ):\n mRk0 = []\n y3LE = []\n for YRbF, EvQg in enumerate(Lcqa):\n mRk0.append([])\n y3LE.append([])\n for d6pt in EvQg:\n mRk0[YRbF].append(QGnf[d6pt])\n y3LE[YRbF].append(JhrZ[d6pt])\n Qw5v = []\n INhf = []\n for YRbF, QOe... | [
"0.6941707",
"0.6861946",
"0.6844256",
"0.67182714",
"0.6681799",
"0.66439235",
"0.6640851",
"0.65880394",
"0.65516865",
"0.6549463",
"0.6549463",
"0.65432405",
"0.6425558",
"0.64175075",
"0.6388559",
"0.6382048",
"0.6360777",
"0.6338826",
"0.633753",
"0.633238",
"0.6299577",... | 0.0 | -1 |
run the steep gradient descent and updates the feature vector accordingly_ | def sxhz(H6go, rcrN, UU3d, Cwt5, q7In):
exwG = UU3d
QRFO = oyIN.dot(q7In, H6go.transpose())
QRFO -= rcrN
print('pro: data_x', QRFO.shape, H6go.shape)
rqLy = oyIN.dot(QRFO, H6go)
print('总梯度的值:', rqLy.shape)
q7In = q7In - Cwt5 / exwG * rqLy
return q7In | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWqU(YKHO, EcVT, RHJb, yJiH, iter):\n aden = []\n tSJp = [EcVT]\n dfHy = 0\n BESI = aDi_.diff(YKHO.gdfunc)\n WKvO = aDi_.Symbol('x')\n BESI = aDi_.lambdify(WKvO, BESI)\n Xsfr = RHJb\n Wr3h = EcVT\n kNbz = Wr3h - Xsfr * BESI(Wr3h)\n tSJp.append(kNbz)\n for YRbF in range(iter):\n... | [
"0.6919268",
"0.6835989",
"0.6796515",
"0.678801",
"0.66550475",
"0.6613581",
"0.65443027",
"0.6537473",
"0.6522454",
"0.64984685",
"0.64665616",
"0.6432475",
"0.6415778",
"0.6399757",
"0.6389926",
"0.63830435",
"0.63788575",
"0.635993",
"0.63427454",
"0.633885",
"0.63318604"... | 0.70412004 | 0 |
Returns the complete filename of the gppkg | def yFjF(YKHO):
return YKHO.get_package_name() + '-' + YKHO.os + '-' + YKHO.arch + UAGg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n XEdf = '\\nPkgName: ' + YKHO.name + '\\nVersion: ' + YKHO.version + '\\nGPDBVersion: ' + YKHO.gpdbversion + '\\nDescription: Temporary Test Package\\nOS: ' + YKHO.os + '\\nArchitecture: ' + YKHO.arch\n return XEdf",
"def y3gu(YKHO):\n return YKHO._return_if('_bkg_file')",
"def OVoQ(Y... | [
"0.6836651",
"0.67604595",
"0.6589166",
"0.6589166",
"0.6387277",
"0.6356686",
"0.62559867",
"0.61791956",
"0.61769843",
"0.60773635",
"0.6065828",
"0.6019408",
"0.6016466",
"0.59988505",
"0.59789366",
"0.59729147",
"0.59323245",
"0.5927042",
"0.5916175",
"0.5909429",
"0.5898... | 0.7743649 | 0 |
Returns the rpm spec file as a string | def zAg0(YKHO):
fs4o = '\n\n%define _topdir %(pwd)\n%define __os_install_post %{nil}\n\nSummary: Temporary test package\nLicense: GPLv2\nName: ' + YKHO.name + '\nVersion: ' + YKHO.version + '\nRelease: ' + YKHO.release + '\nGroup: Development/Tools\nPrefix: /te... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFjF(YKHO):\n return YKHO.get_package_name() + '.' + mLx_ + '.rpm'",
"def zAg0(YKHO):\n XEdf = '\\nPkgName: ' + YKHO.name + '\\nVersion: ' + YKHO.version + '\\nGPDBVersion: ' + YKHO.gpdbversion + '\\nDescription: Temporary Test Package\\nOS: ' + YKHO.os + '\\nArchitecture: ' + YKHO.arch\n return XEd... | [
"0.6670639",
"0.6433855",
"0.6353967",
"0.62925345",
"0.6057277",
"0.59381396",
"0.58980983",
"0.5856129",
"0.5855957",
"0.5761062",
"0.57462275",
"0.572442",
"0.5670036",
"0.56660885",
"0.56569576",
"0.56569576",
"0.56569576",
"0.56569576",
"0.56569576",
"0.56569576",
"0.565... | 0.71635324 | 0 |
Whether this message should be encrypted. So far the criteria used to determine if the message should be encrypted is the pii information. Include additional criteria if necessary. | def CtsH(YKHO):
if YKHO._should_be_encrypted_state is not None:
return YKHO._should_be_encrypted_state
YKHO._should_be_encrypted_state = YKHO.contains_pii
return YKHO._should_be_encrypted_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPPD(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'encrypted')",
"def jPPD(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'encrypted')",
"def jPPD(YKHO):\n return YKHO.encryption_type is not None",
"def mUpy(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'aes_encryption')",
"def EkI... | [
"0.7377962",
"0.7377962",
"0.70198",
"0.6152012",
"0.6102135",
"0.58753145",
"0.5825344",
"0.5818908",
"0.5801561",
"0.56906086",
"0.5685876",
"0.5551533",
"0.53881675",
"0.5369593",
"0.5367249",
"0.5364299",
"0.5364299",
"0.53150374",
"0.52829695",
"0.5232581",
"0.5224748",
... | 0.7440046 | 0 |
The kafka offset, partition, and key of the message if it was consumed from kafka. This is expected to be None for messages on their way to being published. | def fl_m(YKHO):
return YKHO._kafka_position_info | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmv1(YKHO, O7Jy, vgXP):\n try:\n return YKHO.topics[O7Jy][vgXP]\n except Exception:\n return None",
"def ALbs(x0hE, rlUa, Qrt_, ejTi=None):\n try:\n gQVb, = x0hE.send_offset_request([d2vb(rlUa, Qrt_, -1, 1)])\n except Exception:\n if ejTi:\n ejTi.dump_logs()... | [
"0.6046713",
"0.6001563",
"0.5965681",
"0.57896656",
"0.55021614",
"0.5459544",
"0.54533",
"0.5337713",
"0.5303417",
"0.5292401",
"0.52535343",
"0.5164686",
"0.5152776",
"0.50953954",
"0.507616",
"0.50486326",
"0.5042511",
"0.5042511",
"0.5042511",
"0.5042511",
"0.5042511",
... | 0.68136567 | 0 |
Index page for the app | def d6pt(QePW):
V002 = npda
return _1tc(QePW, 'presentation/index.html', {'form': V002}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html', title='Home')",
"def d6pt():\n... | [
"0.8653464",
"0.8653358",
"0.86374354",
"0.8622797",
"0.8622797",
"0.859077",
"0.8581437",
"0.8549043",
"0.85386735",
"0.84793085",
"0.84552985",
"0.84552985",
"0.8448752",
"0.84476846",
"0.8410628",
"0.83971375",
"0.8384841",
"0.83448076",
"0.8324336",
"0.8324336",
"0.832433... | 0.0 | -1 |
Return string representation of this feed. | def wHJl(YKHO):
return '<{}(home={}, url={}, radius={}, categories={})>'.format(YKHO.__class__.__name__, YKHO._home_coordinates, YKHO._url, YKHO._filter_radius, YKHO._filter_categories) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def zAg0(YKHO):\n return '\\n\\n'.join((str(ZfUD) for ZfUD in YKHO._data))",
"def gTzM(YKHO):\n return '\\n'.join((str(bTKY) for bTKY in YKHO))",
"def Napc(YKHO):\n return str(YKHO)",
"def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())",
"def ... | [
"0.7537189",
"0.7309406",
"0.7297117",
"0.7213547",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"0.7208946",
"... | 0.0 | -1 |
Return the attribution of this entry. | def JfWl(YKHO) -> h8nf[str]:
return v7XK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjPa(YKHO, bTKY):\n U34r = super().info_from_entry(bTKY)\n return U34r",
"def efYC(JfWl):\n JfWl, ahXE, CLes = JfWl\n luIU = '\\n'.join(('<p>%s</p>' % hkS8 for hkS8 in CLes))\n return '<div class=\"attribution\"><p>%s</p><p>%s</p>%s</div>' % (JfWl, ahXE, luIU)",
"def i5iS(YKHO):\n return ... | [
"0.6198795",
"0.60048234",
"0.57248205",
"0.5623329",
"0.5612462",
"0.5612462",
"0.5612462",
"0.5599379",
"0.5599379",
"0.55584157",
"0.55193067",
"0.5516732",
"0.5495592",
"0.5487727",
"0.5481997",
"0.5469272",
"0.54482573",
"0.5447004",
"0.5441253",
"0.54380405",
"0.5429029... | 0.7242756 | 0 |
Return the title of this entry. | def leAC(YKHO) -> str:
return YKHO._search_in_properties(NtSI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n return YKHO.get(YKHO._names['title'])",
"def leAC(YKHO):\n return YKHO.get(YKHO._names['title'])",
"def Upwb(YKHO):\n return YKHO._title",
"def leAC(YKHO):\n return YKHO.__values['title']",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",... | [
"0.8345656",
"0.8345656",
"0.828738",
"0.82715714",
"0.82695913",
"0.82695913",
"0.82695913",
"0.82653916",
"0.8215805",
"0.8206808",
"0.8196051",
"0.8188343",
"0.8188343",
"0.8188343",
"0.8188343",
"0.8188343",
"0.8188343",
"0.8185289",
"0.81744504",
"0.81744504",
"0.8174450... | 0.7946449 | 52 |
Return the description of this entry. | def JBZA(YKHO) -> str:
return YKHO._search_in_properties(tJZA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> str:\n return YKHO.data['description']",
"def t5do(YKHO):\n return HYW6(YKHO._description)",
"def JBZA(YKHO):\n return YKHO._get_field('description')",
"def KUG7(YKHO):\n return YKHO.description",
"def JBZA(YKHO) -> str:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(... | [
"0.84376496",
"0.8392307",
"0.8352454",
"0.83094186",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
"0.8307878",
... | 0.8202629 | 83 |
Return the location of this entry. | def Rci7(YKHO) -> str:
return YKHO._search_in_description(ZKKX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbd3(YKHO):\n return YKHO.__location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO) -> tuple:\n return YKHO.__location",
"def Rci7(YKHO):\n return YKHO._location",
"def Rci7(YKHO):\n return YKHO._location",
"def hbd3(YKHO):\n return YKHO.location",
"def Rci7(YKHO) -> ... | [
"0.7792907",
"0.7715424",
"0.77057266",
"0.7695005",
"0.7695005",
"0.765127",
"0.763714",
"0.763714",
"0.763714",
"0.7567372",
"0.75660497",
"0.75515634",
"0.7517319",
"0.73380685",
"0.7302129",
"0.72863",
"0.7280259",
"0.7268651",
"0.7259221",
"0.71796286",
"0.7110518",
"0... | 0.6693567 | 81 |
Return the council area of this entry. | def hd2i(YKHO) -> str:
return YKHO._search_in_description(xO9m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAdl(YKHO):\n return YKHO._area",
"def f0tD(YKHO):\n return bMU8.wall_area(YKHO.__wall_id)",
"def sAdl(YKHO):\n raise NotImplementedError()",
"def f0tD(YKHO) -> _ABP.FloatingValue:\n return IPme.GeoArea(YKHO).to_expr()",
"def drdQ(YKHO):\n return None",
"def drdQ(YKHO):\n return Non... | [
"0.7380801",
"0.71887845",
"0.68477094",
"0.6807041",
"0.67806876",
"0.67806876",
"0.67181325",
"0.6661454",
"0.65517133",
"0.6455968",
"0.64031446",
"0.6386417",
"0.63736993",
"0.6370824",
"0.6364866",
"0.6357767",
"0.6349171",
"0.6324751",
"0.6314489",
"0.6304576",
"0.62982... | 0.85226274 | 0 |
Return the status of this entry. | def jGRS(YKHO) -> str:
return YKHO._search_in_description(Sxnp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO.get(YKHO._names['status'])",
"def VLTN(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO._data['status']",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def QtQ8(YKHO):... | [
"0.8414215",
"0.83891696",
"0.838711",
"0.8359924",
"0.8359924",
"0.8359924",
"0.8318561",
"0.8292346",
"0.82902974",
"0.8283693",
"0.8279153",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.82775193",
"0.827... | 0.0 | -1 |
Return the type of this entry. | def type(YKHO) -> str:
return YKHO._search_in_description(_2yD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO._getValue('type')",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YKHO):\n return YKHO._type",
"def YwLH(YKHO):\n return YKHO.type_",
"def YwLH(YKHO):\n return YKHO.type",
... | [
"0.8208737",
"0.8076819",
"0.8076819",
"0.8058446",
"0.8058446",
"0.8012878",
"0.8008621",
"0.7983586",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"0.7974285",
"... | 0.0 | -1 |
Return if this entry represents a fire or not. | def _7VR(YKHO) -> bool:
return YKHO._search_in_description(zUye) == 'Yes' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vPog(YKHO):\n return YKHO == ZB18.ALARMING_FIRE_SMOKE",
"def ClkV(YKHO):\n SYPA = False\n if YKHO.state > 0 and YKHO.state <= 5:\n SYPA = True\n return SYPA",
"def vlQw(YKHO) -> bool:\n return YKHO in (YKHO.off, YKHO.off_pro)",
"def AkkT(YKHO):\n return YKHO.frequency < ITS7.time... | [
"0.6493008",
"0.6328547",
"0.617806",
"0.60281575",
"0.5973896",
"0.58901846",
"0.58683324",
"0.58683324",
"0.58485836",
"0.5756447",
"0.5751365",
"0.5699225",
"0.56945336",
"0.5691683",
"0.5641908",
"0.5633904",
"0.5630512",
"0.56003684",
"0.5577606",
"0.5566234",
"0.5562791... | 0.7300664 | 0 |
Return the size of this entry. | def zNig(YKHO) -> str:
return YKHO._search_in_description(YaJA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO) -> int:\n B2mP = 0\n for bTKY in YKHO.__entries:\n B2mP += bTKY.get_size()\n return B2mP",
"def pCBL(YKHO):\n return len(YKHO.entries)",
"def jiw9(YKHO) -> int:\n return YKHO.__size",
"def zNig(YKHO) -> int:\n return YKHO._size",
"def zNig(YKHO) -> int:\n return Y... | [
"0.8634911",
"0.83259577",
"0.82743067",
"0.8247986",
"0.8247986",
"0.8247986",
"0.8247986",
"0.8247986",
"0.82321244",
"0.82321244",
"0.82321244",
"0.82321244",
"0.82321244",
"0.82185453",
"0.8208262",
"0.8208262",
"0.8208262",
"0.8208262",
"0.8208262",
"0.8208262",
"0.82082... | 0.0 | -1 |
Return the responsible agency of this entry. | def EsFY(YKHO) -> str:
return YKHO._search_in_description(DF9Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y3mf(YKHO):\n return YKHO._honorific",
"def cJQ3(YKHO, WmM4=None):\n return YKHO.data.get('agency', WmM4)",
"def MYUC(YKHO):\n return YKHO.ag",
"def eRCJ(YKHO) -> EDCT:\n return YKHO.owner",
"def ijOB(YKHO):\n return YKHO.accidental",
"def FdFT(YKHO):\n raise e6xC()",
"def NLaX(YK... | [
"0.6425821",
"0.61815757",
"0.6042167",
"0.60309654",
"0.59888965",
"0.5944114",
"0.5929823",
"0.580151",
"0.57670677",
"0.5756494",
"0.56476384",
"0.5611111",
"0.56085956",
"0.55958444",
"0.5577956",
"0.55708975",
"0.5561138",
"0.55135924",
"0.54881936",
"0.5473718",
"0.5460... | 0.75301427 | 0 |
takes a list of integers as input and returns True if the there is no duplicate items otherwise return False | def aApz(aPd6):
for YRbF in range(len(aPd6)):
for r845 in range(len(aPd6)):
if YRbF != r845 and aPd6[YRbF] == aPd6[r845]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xscp(list):\n for YRbF in list:\n if list.count(YRbF) > 1:\n return True\n else:\n return False",
"def xscp(DumB):\n DumB = list()\n DumB.sort()\n for YRbF in range(len(DumB) - 1):\n if DumB[YRbF] == DumB[YRbF + 1]:\n return True\n return F... | [
"0.83352244",
"0.8143923",
"0.8136132",
"0.8080558",
"0.79697365",
"0.7839335",
"0.7833106",
"0.7818876",
"0.76987725",
"0.7673785",
"0.7671918",
"0.7667635",
"0.7601926",
"0.753676",
"0.7516659",
"0.7422831",
"0.74044794",
"0.7296918",
"0.7197087",
"0.71513706",
"0.7135888",... | 0.69132817 | 33 |
Check that ``x`` has no duplicate elements. | def aApz(WKvO):
return len(set(WKvO)) == len(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G2n2(_73Q):\n return len(_73Q) == len(set(_73Q))",
"def NGn5(aPd6):\n return len(aPd6) != len(set(aPd6))",
"def xscp(vC9B):\n return len(set(vC9B)) < len(vC9B)",
"def ckk1(WKvO: List[dict], H5ew):\n return len(WKvO) == len(set([Ty9i[H5ew] for Ty9i in WKvO]))",
"def obGi(YKHO, xYvp: List[int... | [
"0.70385677",
"0.6670744",
"0.6655209",
"0.64610076",
"0.63938445",
"0.62859946",
"0.6235868",
"0.62077695",
"0.6196898",
"0.6180783",
"0.61386204",
"0.61061513",
"0.6094813",
"0.6061544",
"0.60269463",
"0.5977905",
"0.59601",
"0.5952945",
"0.5924422",
"0.59243673",
"0.591593... | 0.7788755 | 0 |
Test case for array_of_enums | def u2Cm(YKHO):
from petstore_api.model import array_of_enums, string_enum
w2IS = YKHO.api.array_of_enums
assert w2IS.openapi_types['array_of_enums'] == (array_of_enums.ArrayOfEnums,)
assert w2IS.settings['response_type'] == (array_of_enums.ArrayOfEnums,)
with Po4F.object(XLPn, 'request') as liu6:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k6U0(YKHO):\n pass",
"def qmuu(YKHO):\n pass",
"def KJB6(YKHO) -> None:\n AGPF = Hy7s.path.join(FJXQ, 'enum_payloads')\n l87X = 'NULL'\n\n def unpH(kN9s: Dict[str, str]) -> int:\n \"\"\"A helper function to improve test case readability.\"\"\"\n return int(kN9s[f'{l87X}_id'])\n... | [
"0.83671737",
"0.7173962",
"0.7173662",
"0.6967338",
"0.6788053",
"0.67861116",
"0.67525107",
"0.6480592",
"0.64801264",
"0.6460698",
"0.64120245",
"0.6377749",
"0.6335385",
"0.6285813",
"0.6264646",
"0.62335694",
"0.62104416",
"0.6157218",
"0.6126124",
"0.6087212",
"0.608158... | 0.7533772 | 1 |
Return whether `other` is equal to `self`. | def aPi6(YKHO, Elif: Schema) -> bool:
if not isinstance(Elif, Ve9k):
raise TypeError(f'invalid equality comparison between Schema and {type(Elif)}')
return YKHO.__cached_equals__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n if Elif != None:\n return YKHO == Elif\n else:\n return False",
"def xa14(YKHO, Elif):\n if Elif != None:\n return YKHO == Elif\n else:\n return ... | [
"0.86491597",
"0.86491597",
"0.854738",
"0.854738",
"0.8474165",
"0.84631306",
"0.8452681",
"0.8449483",
"0.84473795",
"0.84290755",
"0.84290755",
"0.84053004",
"0.83532363",
"0.8346449",
"0.83375067",
"0.83325887",
"0.8330618",
"0.8330618",
"0.8329669",
"0.8322861",
"0.83128... | 0.0 | -1 |
Return the name of a schema column at position `i`. | def p4Cb(YKHO, YRbF: int) -> str:
CN9P = len(YKHO.names) - 1
if not 0 <= YRbF <= CN9P:
raise ValueError(f'Column index must be between 0 and {CN9P:d}, inclusive')
return YKHO.names[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yg6c(YKHO, YRbF):\n return YKHO.__column_list[YRbF]",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def p4Cb(YKHO, YRbF: int) -> str:\n return YKHO.names[YRbF]",
"def GClg(YKHO):\n ... | [
"0.7554233",
"0.6253363",
"0.6253363",
"0.6199214",
"0.6171738",
"0.61690795",
"0.60926527",
"0.60854715",
"0.60502803",
"0.5991299",
"0.5967933",
"0.596589",
"0.5952607",
"0.59414124",
"0.5929768",
"0.5908907",
"0.58810186",
"0.5862473",
"0.5850232",
"0.5824398",
"0.58039063... | 0.75307804 | 1 |
Returns index of a bin where xs belongs, where x is a list of bins | def NVX5(WKvO, fUYa):
WKvO = ht2j.cat((ht2j.tensor([-10.0]), WKvO, ht2j.tensor([10000.0])))
QyVM = 0
for YRbF in range(1, len(WKvO) - 1):
if WKvO[YRbF - 1] < fUYa and fUYa <= WKvO[YRbF]:
return YRbF - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1XJ(Gaon, Pyrc):\n d6pt = 0\n for Ty9i in ZV13:\n if Gaon > Ty9i:\n return d6pt\n d6pt += 1\n return d6pt - 1",
"def aMgg(YKHO, ltnu):\n return epL4(ltnu, YKHO.nbins, YKHO.padding)",
"def S9XX(UY63, EopV=None, KQ7o=20):\n if EopV is None:\n EopV = []\n ... | [
"0.7391426",
"0.71688503",
"0.70027405",
"0.68782103",
"0.6870763",
"0.6785535",
"0.6691197",
"0.65543705",
"0.6503112",
"0.64792454",
"0.64708",
"0.64376825",
"0.64133316",
"0.63161343",
"0.6266589",
"0.62574714",
"0.6239283",
"0.6239283",
"0.60969806",
"0.6019304",
"0.60163... | 0.54970753 | 81 |
Sample random value from a von Mises distribution fitted to a histogram | def t65l(KY3n, YRbF, Lsv_=8, t3eI=1):
oyIN.random.seed(t3eI)
RQ1X = ht2j.linspace(-oyIN.pi, oyIN.pi, 36)
B7_f = ht2j.sum(RQ1X * KY3n[0, 1:, 0, YRbF])
tpcm = ht2j.sum(KY3n[0, 1:, 0, YRbF] * (RQ1X - B7_f) ** 2)
AxDO = 1 / tpcm
FmoX = z2yf.rvs(kappa=Lsv_ * AxDO, loc=B7_f)
if FmoX < -oyIN.pi:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MhI4(YKHO):\n KCHu = oyIN.random.uniform(-1.35, 0.5, 5000)\n QrM1.hist(KCHu, 30, density=False)\n QrM1.xlabel('Interlayer point energy [eV]')\n QrM1.ylabel('Frequency')\n QrM1.show()",
"def ts7d(YKHO):\n KCHu = oyIN.random.normal(-0.42, 0.55, 5000)\n QrM1.hist(KCHu, 30, density=False)\n ... | [
"0.6963822",
"0.65853703",
"0.62960523",
"0.62359047",
"0.62278897",
"0.61735314",
"0.6134931",
"0.6064081",
"0.5946754",
"0.5934482",
"0.59331197",
"0.59005064",
"0.5896745",
"0.5893346",
"0.58801866",
"0.5874006",
"0.5851217",
"0.58503485",
"0.58426416",
"0.58408666",
"0.58... | 0.0 | -1 |
Copy the model training history file as a csv file. | def TttQ(z36O, kUd4, hBFO):
with open('history.csv', 'wb') as LtY3:
yzQ0 = m6_J.writer(LtY3)
yzQ0.writerows(hBFO.items())
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVrP(_OwX, FLXQ, z36O):\n Te0u = m6_J.writer(z36O, delimiter=',', quotechar='|', quoting=m6_J.QUOTE_MINIMAL)\n for YRbF in range(len(FLXQ.history['loss'])):\n IoNj = [YRbF + 1, FLXQ.history['loss'][YRbF], FLXQ.history['acc'][YRbF], FLXQ.history['val_loss'][YRbF], FLXQ.history['val_acc'][YRbF]]\n ... | [
"0.7263024",
"0.7244534",
"0.7088507",
"0.70264167",
"0.6847479",
"0.66824704",
"0.65927535",
"0.643109",
"0.64199144",
"0.63582534",
"0.63496315",
"0.62587714",
"0.6228208",
"0.6134749",
"0.6042544",
"0.6006235",
"0.596098",
"0.59586155",
"0.5953686",
"0.59426624",
"0.592853... | 0.0 | -1 |
Simple function to get a list of stripped lines from a file. | def RdVV(Ux0P):
z1Rg = []
with open(Ux0P, 'r') as o36Q:
for vC9B in o36Q:
if vC9B.strip() != '':
z1Rg.append(vC9B.strip())
return z1Rg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXJo(AesY):\n with open(AesY, 'r') as eHNT:\n return [vC9B.strip() for vC9B in eHNT.readlines()]",
"def gU2l(OZKa):\n A155 = []\n for zFiD in OZKa:\n ZNmB = zFiD.find(B29D)\n if ZNmB != -1:\n A155.append(zFiD[:ZNmB])\n else:\n A155.append(zFiD)\n ... | [
"0.72306424",
"0.7225609",
"0.71439695",
"0.7085142",
"0.7079666",
"0.70322967",
"0.7013946",
"0.6966945",
"0.69557065",
"0.69428813",
"0.6937935",
"0.6912145",
"0.69058216",
"0.68987983",
"0.68588674",
"0.68529654",
"0.68398416",
"0.67880785",
"0.6784584",
"0.6772384",
"0.67... | 0.8031707 | 0 |
Return the number of documents in the collection. | def szAg(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WPSX(YKHO):\n return YKHO.index.collection.count()",
"def JIEM(YKHO, zk5o):\n UHFx = zk5o.find().count()\n return UHFx",
"def DUZc(YKHO):\n UzPC = YKHO.__get_database_connection()\n geh0 = YKHO.__make_request(UzPC, '/%s' % YKHO.database_name)\n return geh0.get('doc_count', 0)",
"def Xfk... | [
"0.84596354",
"0.8087985",
"0.79813987",
"0.7949894",
"0.7917015",
"0.77300704",
"0.76995903",
"0.7632099",
"0.760615",
"0.74925363",
"0.7487783",
"0.7323223",
"0.72955585",
"0.72351533",
"0.71950835",
"0.71930176",
"0.7161616",
"0.71081674",
"0.70914626",
"0.70383906",
"0.70... | 0.0 | -1 |
Assign a custom ``_get_measurable_outputs`` dispatch function to a measurable variable instance. The node is cloned and a custom `Op` that's a copy of the original node's `Op` is created. That custom `Op` replaces the old `Op` in the cloned node, and then a custom dispatch implementation is created for the clone `Op` i... | def v8ne(Q6kx: Apply, pa58: Callable=LOah, j6Vb: str='Unmeasurable') -> XyCi:
Esd_ = Q6kx.clone()
GOAn = type(Esd_.op)
if GOAn in FlBV.registry.keys() and isinstance(GOAn, p2mh):
if FlBV.registry[GOAn] != pa58:
raise ValueError(f'The type {GOAn.__name__} with hash value {hash(GOAn)} has ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yAnr(khtY: Op, Q6kx: Apply) -> x1iM[iQnE]:\n if isinstance(khtY, hEDd):\n return FlBV(khtY, Q6kx)\n else:\n return []",
"def yJYF(YKHO, khtY: Callable, hlel, DwBa: List[int]) -> ImMB:\n ZVNA = YKHO._get_cur_seen_q_op_info()\n if ZVNA.is_reference_op_at_inference:\n _jIC = ZVN... | [
"0.52684104",
"0.5164222",
"0.51494336",
"0.5086142",
"0.49548742",
"0.48555547",
"0.4839307",
"0.48031414",
"0.46365583",
"0.46242976",
"0.4612498",
"0.46020856",
"0.4562273",
"0.45573407",
"0.455493",
"0.44791928",
"0.44696432",
"0.44373396",
"0.44041702",
"0.44010442",
"0.... | 0.79359454 | 0 |
Create a mapping from the probe and electrode id to the row number of the electrodes table. This is used in the construction of the DynamicTableRegion that indicates what rows of the electrodes table correspond to the data in an ElectricalSeries. | def _AnY(Da4y):
return {(Da4y['group'][or8S].device.name, Da4y['id'][or8S]): or8S for or8S in range(len(Da4y))} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HLRz(YKHO, oxaU):\n VroC = []\n for r8hN in YKHO.component1.marks:\n MVFv = oxaU.get(r8hN)\n if MVFv == None:\n if len(oxaU) == 0:\n MVFv = 0\n else:\n MVFv = max(oxaU.values()) + 1\n oxaU[r8hN] = MVFv\n VroC.append(MVFv)... | [
"0.5856929",
"0.56331146",
"0.56234837",
"0.5523431",
"0.5404992",
"0.53718156",
"0.53213555",
"0.5294005",
"0.5292453",
"0.5270366",
"0.5077577",
"0.5061778",
"0.50615317",
"0.5028123",
"0.50062793",
"0.4999126",
"0.49976575",
"0.49920195",
"0.4984181",
"0.4984181",
"0.49734... | 0.642383 | 0 |
Take a single argument, groups, a list of groups, which is a list of cards. Return a Boolean indicating whether all groups are valid or not | def ugzl(moMn):
if len(moMn) == 0:
return True
else:
for khoC in moMn:
if SF8A(khoC) < 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OouW(YKHO, moMn):\n for uOe2 in moMn:\n if not YKHO._check_group(uOe2):\n return False\n return True",
"def pglV(YKHO, moMn=()):\n cNRB = set(YKHO.df[YKHO.col_group].unique())\n for uOe2 in moMn:\n assert uOe2 in cNRB, 'Group %s is not in the dataset provided' % uOe2",
... | [
"0.78189325",
"0.71907336",
"0.6966542",
"0.6851445",
"0.65457386",
"0.62960017",
"0.6272189",
"0.62270635",
"0.6130827",
"0.6126155",
"0.61214006",
"0.61156225",
"0.61077696",
"0.6086979",
"0.6072103",
"0.6036542",
"0.6018033",
"0.59044975",
"0.586869",
"0.5854905",
"0.58371... | 0.83428794 | 0 |
Returns the left subtree of the Tree self | def gEGd(YKHO):
return YKHO.__left | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEGd(YKHO):\n return bBBw.or_none(YKHO.left)",
"def pFfe(YKHO):\n return YKHO.left_child(YKHO.virtual_root)",
"def NsVL(YKHO):\n if YKHO.left_child == None:\n SWAg = YKHO.get_lowest_right_parent()\n if SWAg.parent == None:\n return ieC3(frac=(0, 1))\n else:\n ... | [
"0.83547115",
"0.82174784",
"0.80674964",
"0.79695034",
"0.7849064",
"0.78173876",
"0.78173876",
"0.777684",
"0.7746514",
"0.7699593",
"0.76538014",
"0.7639311",
"0.76253617",
"0.75613594",
"0.7476358",
"0.74613243",
"0.7400087",
"0.7375694",
"0.73369706",
"0.7307113",
"0.729... | 0.81442285 | 2 |
Returns the right subtree root of the Tree self | def J9ur(YKHO):
return YKHO.__right | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J9ur(YKHO):\n return bBBw.or_none(YKHO.right)",
"def NuPf(YKHO):\n if YKHO.right_child == None:\n gXTX = YKHO.get_lowest_left_parent()\n if gXTX.parent == None:\n return ieC3(frac=(1, 0))\n else:\n return gXTX.parent\n else:\n return YKHO.right_child... | [
"0.77633584",
"0.76370984",
"0.72768205",
"0.7249799",
"0.72038996",
"0.7160854",
"0.71579593",
"0.7150772",
"0.6994499",
"0.6969119",
"0.6961638",
"0.6961638",
"0.6893926",
"0.6855626",
"0.67882234",
"0.6628811",
"0.66220385",
"0.65893465",
"0.6582339",
"0.6554152",
"0.65219... | 0.73606575 | 2 |
Returns the amount of nodes in the Tree self | def Kytq(YKHO):
if YKHO.is_empty():
return 0
elif YKHO.is_leaf():
return 1
elif YKHO.get_left():
if YKHO.get_right():
return 1 + YKHO.get_left().count_nodes() + YKHO.get_right().count_nodes()
else:
return 1 + YKHO.get_left().count_nodes()
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return YKHO.__tree.node_count",
"def Kytq(YKHO):\n if YKHO.children is None:\n return 0\n pcsc = 0\n for aUGN in YKHO.children:\n if aUGN is None:\n return 0\n KSzm = aUGN.count_nodes()\n pcsc = pcsc + KSzm\n return pcsc + 1",
"def tIln(YK... | [
"0.8338416",
"0.8294335",
"0.82845664",
"0.8269646",
"0.8234724",
"0.82194054",
"0.8160795",
"0.8112656",
"0.8109075",
"0.8103326",
"0.8044327",
"0.80437356",
"0.80437356",
"0.8041613",
"0.80054057",
"0.79791635",
"0.79675114",
"0.79567266",
"0.7927568",
"0.79252064",
"0.7918... | 0.8445941 | 0 |
Returns the number of leaf in the tree self | def I38q(YKHO):
if YKHO.is_empty():
return 0
elif YKHO.is_leaf():
return 1
elif YKHO.get_left():
if YKHO.get_right():
return 0 + YKHO.get_left().count_leaf() + YKHO.get_right().count_leaf()
else:
return 0 + YKHO.get_left().count_leaf()
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n return sum([WKvO.leaf_count() for WKvO in YKHO.children])",
"def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return YKHO.count_leaves_helper(YKHO.root)",
"def W8Ya(a1PO: Tree) -> int:\n if a1PO... | [
"0.8412103",
"0.78919804",
"0.784241",
"0.7780788",
"0.75118184",
"0.73116416",
"0.7215212",
"0.71880996",
"0.7176737",
"0.70690155",
"0.7054718",
"0.70193857",
"0.6964752",
"0.69204676",
"0.68890953",
"0.68821776",
"0.6874985",
"0.685049",
"0.68296224",
"0.6817744",
"0.68149... | 0.8442853 | 0 |
Splits a Pandas dataframe into three subsets (train, val, and test). Function uses train_test_split (from sklearn) and stratify to receive the same ratio response (y, target) in each splits. Args data (dataframe) | def UofQ(PhAF='Kind of offensive language', _9ZE=0.6, hhSR=0.2, fQv8=0.2, t3eI=101):
nPrm = rLdf.read_csv('cleaned_data.csv', header=0)
if _9ZE + hhSR + fQv8 != 1.0:
raise ValueError(f'Sum of train, validate and test is not 1.0')
if PhAF not in nPrm.columns:
raise ValueError(f'{PhAF} is not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWSc(jQ3Z):\n from sklearn.model_selction import train_test_split\n EvQg, QOe9 = train_test_split(jQ3Z, train_size=0.8, test_size=0.2, random_state=42)\n EvQg, wEf2 = train_test_split(EvQg, train_size=0.7, val_size=0.3)\n print(EvQg.shape, wEf2.shape, QOe9.shape)\n return (EvQg, wEf2, QOe9)",
... | [
"0.78385437",
"0.78236824",
"0.7683612",
"0.7671954",
"0.7671804",
"0.7634413",
"0.7595588",
"0.75761956",
"0.7526507",
"0.75093204",
"0.7496346",
"0.7489588",
"0.74887574",
"0.74218714",
"0.740286",
"0.7400825",
"0.7392323",
"0.73499936",
"0.73310477",
"0.7288859",
"0.724243... | 0.74819833 | 13 |
Plot confusion matrix with part of 1 value | def F1vm(YKHO):
QrM1.figure(figsize=(10, 10), facecolor='w')
Bcwd = YsYU(YKHO.y_val, YKHO.y_pred)
F2Jk = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
bOjG = rLdf.DataFrame(F2Jk)
uuEx.heatmap(bOjG, annot=True, cmap='Blues', cbar=False)
QrM1.xlabel('Predicted label')
QrM1.ylabel('T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def YsYU(Y8eF, aMgO):\n uN_p.plot_confusion_matrix(Y8eF, aMgO, normalize=True)\n QrM1.show()",
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cm... | [
"0.807526",
"0.79772776",
"0.773161",
"0.77096397",
"0.76746887",
"0.7660477",
"0.76536644",
"0.76535493",
"0.7641164",
"0.76361",
"0.7630391",
"0.76110554",
"0.75915366",
"0.757789",
"0.757789",
"0.75776225",
"0.756955",
"0.756352",
"0.75554216",
"0.7549354",
"0.75433826",
... | 0.7554634 | 19 |
Overwrites the nil_slot (first row) of the input Tensor with zeros. The nil_slot is a dummy slot and should not be trained and influence the training algorithm. | def DLEy(a1PO, mWFP=None):
with ZylS.op_scope([a1PO], mWFP, 'zero_nil_slot') as mWFP:
a1PO = ZylS.convert_to_tensor(a1PO, name='t')
KCHu = ZylS.shape(a1PO)[1]
epBp = ZylS.zeros(ZylS.pack([1, KCHu]))
return ZylS.concat(0, [epBp, ZylS.slice(a1PO, [1, 0], [-1, -1])], name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLEy(a1PO, mWFP=None):\n with ZylS.name_scope(mWFP, 'zero_nil_slot', [a1PO]) as mWFP:\n a1PO = ZylS.convert_to_tensor(a1PO, name='t')\n KCHu = ZylS.shape(a1PO)[1]\n epBp = ZylS.zeros(ZylS.pack([1, KCHu]))\n return ZylS.concat(0, [epBp, ZylS.slice(a1PO, [1, 0], [-1, -1])], name=mW... | [
"0.78301525",
"0.77138686",
"0.7585104",
"0.65659636",
"0.62051386",
"0.6193775",
"0.61050993",
"0.60971063",
"0.6095118",
"0.6093879",
"0.60226727",
"0.5921219",
"0.5920391",
"0.5907843",
"0.59039694",
"0.58477336",
"0.58266574",
"0.58228636",
"0.57792306",
"0.57587",
"0.573... | 0.7400565 | 3 |
Predicts answers as onehot encoding. | def YEmv(YKHO, cepN, l633, H5Ky):
kdJa = {YKHO._stories: cepN, YKHO._queries: l633, YKHO._memory_value: H5Ky}
return YKHO._sess.run(YKHO.predict_op, feed_dict=kdJa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(Crrw, jTqs=10):\n svPB = Crrw.shape[0]\n ERVO = oyIN.zeros((svPB, jTqs))\n ERVO[oyIN.arange(svPB), Crrw[oyIN.arange(svPB)]] = 1\n return ERVO",
"def vzTG(nPrm):\n MnDN = nu0g()\n LVAh = MnDN.fit_transform(nPrm)\n return LVAh",
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_... | [
"0.7311093",
"0.7238229",
"0.7204466",
"0.71682787",
"0.7158428",
"0.7137401",
"0.70853174",
"0.7067548",
"0.70258194",
"0.70258194",
"0.69965976",
"0.69881845",
"0.69770586",
"0.6960524",
"0.69590366",
"0.6917453",
"0.69133615",
"0.6876499",
"0.6872374",
"0.6869748",
"0.6865... | 0.0 | -1 |
Change the food by the given value. Food will always stay between 0 and the specified maximum | def BrH2(YKHO, pvZU: int):
YKHO.food += pvZU
if YKHO.food < 0:
YKHO.food = 0
elif YKHO.food > YKHO.max_food:
YKHO.food = YKHO.max_food
YKHO.update_color() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhaF(YKHO):\n YKHO.remaining_food['Herbivore'] = YKHO.parameters['f_max']",
"def AhaF(YKHO):\n YKHO.remaining_food['Herbivore'] += YKHO.parameters['alpha'] * (YKHO.parameters['f_max'] - YKHO.remaining_food['Herbivore'])",
"def SjaV(H2v5, BWXx):\n global HUNGERVAL\n if H2v5 == True:\n qjw... | [
"0.703781",
"0.6796669",
"0.6548812",
"0.65128",
"0.63354886",
"0.6242799",
"0.61964136",
"0.61938757",
"0.5987412",
"0.59449065",
"0.5935209",
"0.59231365",
"0.592164",
"0.5900679",
"0.5859077",
"0.5859077",
"0.5796393",
"0.57765955",
"0.5776306",
"0.5752443",
"0.57498616",
... | 0.8031711 | 0 |
Yield each element in seq 'n' times | def wPFE(Q6uT, exwG):
for tTpl in Q6uT:
for bGrB in range(exwG):
yield tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7ij(Q6uT, exwG):\n d6pt = 0\n while d6pt + exwG <= len(Q6uT):\n yield Q6uT[d6pt:d6pt + exwG]\n d6pt = d6pt + 1",
"def Y8pi(aWuw: Sequence[T], exwG: int) -> x1iM[Kt_s]:\n for YRbF in range(len(aWuw) - (exwG - 1)):\n yield aWuw[YRbF:YRbF + exwG]",
"def Z0az(Q6uT, exwG):\n wh... | [
"0.795374",
"0.78914726",
"0.7532351",
"0.75000155",
"0.7488252",
"0.7472996",
"0.74396497",
"0.7395618",
"0.73442787",
"0.72995883",
"0.7240473",
"0.7221729",
"0.71742934",
"0.71742934",
"0.71742934",
"0.7168575",
"0.7142056",
"0.71336323",
"0.71290034",
"0.71177083",
"0.710... | 0.8648718 | 0 |
Yield len(seq)/n groups of `n` elements each | def Fq7B(Q6uT, exwG):
for YRbF in range(0, len(Q6uT), exwG):
yield Q6uT[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0cw(OxJJ, exwG):\n for YRbF in range(0, len(OxJJ), exwG):\n yield OxJJ[YRbF:YRbF + exwG]",
"def E0cw(OxJJ, exwG):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(uOgj(WhY1, exwG))\n if not yOAJ:\n return\n yield yOAJ",
"def E0cw(exwG, OxJJ):\n WhY1 = ite... | [
"0.7918132",
"0.7808769",
"0.7777516",
"0.7749238",
"0.77438915",
"0.7721282",
"0.7660002",
"0.7573865",
"0.7557007",
"0.75196964",
"0.74485946",
"0.7437376",
"0.7429672",
"0.7426785",
"0.7391765",
"0.7384071",
"0.73655576",
"0.735789",
"0.7357394",
"0.7335495",
"0.7332234",
... | 0.8345066 | 0 |
Function for returning single residual model for TF2 framework, set trainable=False for BNs | def g34i():
g4y1 = ZylS.keras.Input(shape=(16, 16, 3))
WKvO = ZylS.keras.layers.Conv2D(16, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65, trainable=False)(WKvO)
WKvO = ZylS.nn.relu(WKvO)
WKvO = ZylS.keras.layers.MaxPool2D()(WKvO)
uuHL = WKvO
uuHL = ZylS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYJ():\n return FYrf.resnet152(pretrained=True)",
"def EFn7():\n g4y1 = ZylS.keras.Input(shape=(16, 16, 3))\n WKvO = ZylS.keras.layers.Conv2D(16, (3, 3))(g4y1)\n WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65)(WKvO)\n WKvO = ZylS.nn.relu(WKvO)\n WKvO = ZylS.keras.la... | [
"0.662754",
"0.662469",
"0.62581784",
"0.62232774",
"0.61601293",
"0.611893",
"0.60739577",
"0.6072617",
"0.6051283",
"0.6051283",
"0.6051283",
"0.6051283",
"0.6051283",
"0.6047257",
"0.6044592",
"0.60218793",
"0.60096407",
"0.6009477",
"0.60060614",
"0.59928435",
"0.59586936... | 0.6992582 | 0 |
Function for returning a basic keras model | def g2Ui():
C3ST = ileL([yHwh(8, (2, 2), input_shape=(16, 16, 3)), GVKG(momentum=0.3, epsilon=0.65), VG5k(), YMbS(), GVKG(momentum=0.4, epsilon=0.25), yHwh(4, (2, 2), activation=ZylS.nn.tanh, kernel_regularizer=ZylS.keras.regularizers.l2(0.5)), D2Bo(), l6ZH(2, activation='softmax', name='keras_model')])
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n YRbF = YKHO.keras.Input(YKHO.s)\n return bdPE.Model(inputs=[YRbF], outputs=YKHO.call(YRbF))",
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1)... | [
"0.76437753",
"0.7640163",
"0.76081395",
"0.75866526",
"0.7486154",
"0.74785733",
"0.7457932",
"0.7415851",
"0.7364802",
"0.7344194",
"0.73270446",
"0.728348",
"0.7271681",
"0.7271681",
"0.7261854",
"0.72530466",
"0.7244245",
"0.7237374",
"0.7232534",
"0.7220538",
"0.7155339"... | 0.73471385 | 9 |
Function for returning basic keras model defined functionally | def DH9F():
LT6S = ZylS.compat.v1.placeholder_with_default(ZylS.constant(True), shape=(), name='is_training')
g4y1 = ZylS.keras.Input(shape=(32, 32, 3))
WKvO = ZylS.keras.layers.Conv2D(32, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65)(WKvO, training=True)
with... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n YRbF = YKHO.keras.Input(YKHO.s)\n return bdPE.Model(inputs=[YRbF], outputs=YKHO.call(YRbF))",
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1)... | [
"0.7587582",
"0.74962825",
"0.73077875",
"0.72659576",
"0.72103715",
"0.7195533",
"0.7178475",
"0.7140276",
"0.713921",
"0.7132312",
"0.71265304",
"0.71158606",
"0.71065485",
"0.7102432",
"0.709709",
"0.7059756",
"0.7057202",
"0.70516694",
"0.7042335",
"0.7039617",
"0.7039617... | 0.67202765 | 73 |
Function for returning basic keras model defined functionally | def bn0_():
g4y1 = ZylS.keras.Input(shape=(32, 32, 3))
WKvO = ZylS.keras.layers.Conv2D(32, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65)(WKvO, training=True)
with ZylS.compat.v1.variable_scope('scope_1'):
WKvO = ZylS.keras.layers.Conv2D(16, (2, 2), activat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n YRbF = YKHO.keras.Input(YKHO.s)\n return bdPE.Model(inputs=[YRbF], outputs=YKHO.call(YRbF))",
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1)... | [
"0.758793",
"0.74959815",
"0.730791",
"0.72657603",
"0.72104347",
"0.71964765",
"0.71785706",
"0.7140501",
"0.71394145",
"0.71323156",
"0.712738",
"0.71146363",
"0.7106462",
"0.71020836",
"0.7097706",
"0.7059861",
"0.70576423",
"0.705031",
"0.70420724",
"0.70385784",
"0.70385... | 0.0 | -1 |
Function for returning basic keras model defined functionally using non fused batchnorms | def R4NI():
LT6S = ZylS.compat.v1.placeholder_with_default(ZylS.constant(True), shape=(), name='is_training')
g4y1 = ZylS.keras.Input(shape=(32, 32, 3))
WKvO = ZylS.keras.layers.Conv2D(32, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65, fused=False)(WKvO, training=T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1), Ofph(24, (3, 3), padding='same', activation='relu', strides=1), BzBX(pool_size=(3, 3)), Ofph(24, (3, 3), padding='same'... | [
"0.72460485",
"0.7180563",
"0.71505797",
"0.7091714",
"0.707617",
"0.70401675",
"0.69312024",
"0.6845208",
"0.6845069",
"0.68114585",
"0.6792505",
"0.67674506",
"0.67468256",
"0.67193425",
"0.6713662",
"0.6700302",
"0.66972274",
"0.66827524",
"0.66806763",
"0.6608428",
"0.659... | 0.751841 | 0 |
Function for returning basic keras model defined functionally using non fused batchnorms | def E0a9():
g4y1 = ZylS.keras.Input(shape=(32, 32, 3))
WKvO = ZylS.keras.layers.Conv2D(32, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65, fused=False)(WKvO, training=True)
with ZylS.compat.v1.variable_scope('scope_1'):
WKvO = ZylS.keras.layers.Conv2D(16, (2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4NI():\n LT6S = ZylS.compat.v1.placeholder_with_default(ZylS.constant(True), shape=(), name='is_training')\n g4y1 = ZylS.keras.Input(shape=(32, 32, 3))\n WKvO = ZylS.keras.layers.Conv2D(32, (3, 3))(g4y1)\n WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65, fused=False)(WKvO, t... | [
"0.7518251",
"0.72461975",
"0.71498674",
"0.7092196",
"0.70750827",
"0.7040043",
"0.69309676",
"0.6844964",
"0.6844376",
"0.6809523",
"0.67918116",
"0.67668504",
"0.6746332",
"0.671806",
"0.6711712",
"0.6700095",
"0.6697618",
"0.6682618",
"0.66794235",
"0.6610182",
"0.6591126... | 0.7180594 | 2 |
Function for returning basic tf slim model | def Rb9F(pKvt):
LT6S = ZylS.compat.v1.placeholder_with_default(ZylS.constant(True), shape=(), name='is_training')
Zxma = Fz20.conv2d(pKvt, 32, [3, 3])
Zxma = Fz20.batch_norm(Zxma, decay=0.7, epsilon=0.65, is_training=True)
Zxma = Fz20.conv2d(Zxma, 16, [2, 2])
Zxma = Fz20.batch_norm(Zxma, decay=0.6, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3Q7():\n ZylS.reset_default_graph()\n with ZylS.Session() as cb_Q:\n WKvO = ZylS.placeholder('float', shape=(None, 3), name='Input')\n epBp = ZylS.placeholder('float', shape=(), name='ScalarMultiple')\n r8hN = ZylS.Variable([1.0, 1.0, 1.0], name='Slopes')\n LVAh = r8hN * WKvO... | [
"0.6880595",
"0.6578509",
"0.64890146",
"0.64533836",
"0.64473027",
"0.6386423",
"0.63638157",
"0.6362654",
"0.63295364",
"0.632647",
"0.6324851",
"0.6320358",
"0.62942344",
"0.62878156",
"0.6284024",
"0.6266783",
"0.62547916",
"0.6206871",
"0.62033635",
"0.618771",
"0.614674... | 0.7561886 | 0 |
Function for returning tf slim model ending in softmax | def ebIm(pKvt):
Zxma = Fz20.conv2d(pKvt, 32, [3, 3])
Zxma = Fz20.batch_norm(Zxma, decay=0.7, epsilon=0.65, is_training=False)
Zxma = Fz20.conv2d(Zxma, 16, [2, 2])
Zxma = Fz20.batch_norm(Zxma, decay=0.6, epsilon=0.25, is_training=False)
Zxma = Fz20.softmax(Zxma)
return Zxma | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO, mWFP):\n with ZylS.name_scope(mWFP):\n o4Jx = ZylS.nn.softmax(WKvO)\n return o4Jx",
"def Rb9F(pKvt):\n LT6S = ZylS.compat.v1.placeholder_with_default(ZylS.constant(True), shape=(), name='is_training')\n Zxma = Fz20.conv2d(pKvt, 32, [3, 3])\n Zxma = Fz20.batch_norm(Zxma, d... | [
"0.7411287",
"0.6945972",
"0.6899645",
"0.6607712",
"0.6600624",
"0.6563268",
"0.6555997",
"0.6538027",
"0.6415555",
"0.6386957",
"0.6386957",
"0.6362761",
"0.6313569",
"0.63130826",
"0.62917715",
"0.62917715",
"0.62790555",
"0.62778884",
"0.6271752",
"0.6251279",
"0.6250553"... | 0.74869424 | 0 |
Returns a keras model with a dropout module (also tests identity op, which is how dropout is represented when model is in inference mode | def ZuWV():
g4y1 = ZylS.keras.Input(shape=(10, 10, 3))
WKvO = ZylS.keras.layers.Conv2D(16, (3, 3))(g4y1)
WKvO = ZylS.keras.layers.Dropout(rate=0.4)(WKvO)
WKvO = ZylS.identity(WKvO)
WKvO = ZylS.keras.layers.Conv2D(8, (2, 2))(WKvO)
WKvO = ZylS.keras.layers.Flatten()(WKvO)
o4Jx = ZylS.keras.lay... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNrP(UW8s: bool=True, yokr: Optional[int]=None):\n wH3T = 'channels_last'\n if yokr is not None:\n ZylS.random.set_seed(yokr)\n MuED = ZylS.keras.initializers.GlorotNormal(seed=yokr)\n C3ST = ZylS.keras.models.Sequential([ZylS.keras.layers.Conv2D(32, kernel_size=(3, 3), activation='relu', da... | [
"0.73568845",
"0.71900946",
"0.7141542",
"0.6981366",
"0.6824949",
"0.6686897",
"0.6536798",
"0.6511875",
"0.64862555",
"0.6456973",
"0.64535743",
"0.64240146",
"0.63769925",
"0.63667345",
"0.6309021",
"0.62845486",
"0.627255",
"0.6261135",
"0.6250607",
"0.6242668",
"0.623889... | 0.7909604 | 0 |
Returns a slim model with a dropout module (also tests identity op, which is how dropout is represented when model is in inference mode | def ZSYm():
g4y1 = ZylS.keras.Input(shape=(10, 10, 3))
WKvO = Fz20.conv2d(g4y1, 16, [3, 3])
WKvO = Fz20.dropout(WKvO, keep_prob=0.6)
WKvO = ZylS.identity(WKvO)
WKvO = Fz20.conv2d(WKvO, 8, [2, 2])
WKvO = Fz20.flatten(WKvO)
o4Jx = Fz20.fully_connected(WKvO, num_outputs=10, activation_fn=ZylS.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZuWV():\n g4y1 = ZylS.keras.Input(shape=(10, 10, 3))\n WKvO = ZylS.keras.layers.Conv2D(16, (3, 3))(g4y1)\n WKvO = ZylS.keras.layers.Dropout(rate=0.4)(WKvO)\n WKvO = ZylS.identity(WKvO)\n WKvO = ZylS.keras.layers.Conv2D(8, (2, 2))(WKvO)\n WKvO = ZylS.keras.layers.Flatten()(WKvO)\n o4Jx = Zy... | [
"0.6848946",
"0.6599165",
"0.64668447",
"0.6460733",
"0.64514124",
"0.64273036",
"0.62774396",
"0.6269653",
"0.62046486",
"0.61761427",
"0.6105486",
"0.60369855",
"0.59742624",
"0.5956661",
"0.59543097",
"0.5834335",
"0.5828955",
"0.5825602",
"0.5797621",
"0.57884353",
"0.577... | 0.7782718 | 0 |
Returns a model with depthwise conv2d | def Im2I():
g4y1 = ZylS.keras.Input(shape=(10, 10, 3))
WKvO = ZylS.keras.layers.Conv2D(16, (1, 1))(g4y1)
WKvO = ZylS.keras.layers.SeparableConv2D(10, (2, 2))(WKvO)
WKvO = ZylS.keras.layers.DepthwiseConv2D(3, (1, 1))(WKvO)
WKvO = ZylS.keras.layers.Conv2D(8, (1, 1))(WKvO)
WKvO = ZylS.keras.layers.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NwVq(YKHO, khtY):\n return YKHO.convert_conv(khtY, 'depthwise')",
"def rAPv(*qIxc, **B2fa):\n uWcO = {'padding': 'valid' if B2fa.get('strides') == (2, 2) else 'same'}\n uWcO.update(B2fa)\n return uZt1(*qIxc, **uWcO)",
"def qkdo(C3ST, rb7a):\n C3ST.add(Ofph(rb7a, 3, 3, subsample=(1, 1)))",
... | [
"0.7023286",
"0.70131654",
"0.69815767",
"0.6686101",
"0.656228",
"0.65223813",
"0.64888674",
"0.6486378",
"0.64477164",
"0.64250845",
"0.62616694",
"0.62139136",
"0.62050277",
"0.61900514",
"0.61831915",
"0.6152637",
"0.610802",
"0.6088378",
"0.6070657",
"0.60691243",
"0.606... | 0.879231 | 0 |
Function for returning basic keras model defined functionally | def iRto():
g4y1 = ZylS.keras.Input(shape=(8, 8, 3))
WKvO = ZylS.keras.layers.Conv2D(8, (3, 3))(g4y1)
with ZylS.name_scope('upsample'):
IoLu = ZylS.unstack(WKvO, axis=-1)
VNqG = ZylS.zeros_like(IoLu[0])
HFkI = 0
for d6pt in [0, 3, 4, 6, 7, 8, 9, 11]:
while HFkI < ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n YRbF = YKHO.keras.Input(YKHO.s)\n return bdPE.Model(inputs=[YRbF], outputs=YKHO.call(YRbF))",
"def YrZb():\n C3ST = ileL([Zlsf(NkkI, input_shape=(66, 200, 3)), Ofph(16, (3, 3), padding='same', activation='relu', strides=2), Ofph(16, (3, 3), padding='same', activation='relu', strides=1)... | [
"0.7587431",
"0.74962693",
"0.7307769",
"0.7266487",
"0.72124827",
"0.7195843",
"0.71787834",
"0.71410406",
"0.7139803",
"0.71338177",
"0.71274555",
"0.7116693",
"0.71080786",
"0.71027094",
"0.7097857",
"0.7060618",
"0.70570135",
"0.7052396",
"0.70423514",
"0.70387477",
"0.70... | 0.0 | -1 |
Return model with three conv layers | def PXsR():
g4y1 = ZylS.keras.Input(shape=(8, 8, 3))
WKvO = ZylS.keras.layers.Conv2D(8, (2, 2))(g4y1)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0.3, epsilon=0.65, trainable=False)(WKvO)
WKvO = ZylS.keras.layers.Conv2D(6, (2, 2))(WKvO)
WKvO = ZylS.keras.layers.BatchNormalization(momentum=0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ge5p(YKHO):\n C3ST = ileL()\n C3ST.add(VIRZ(32, (3, 3, 3), activation='relu', input_shape=YKHO.input_shape))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))\n C3ST.add(VIRZ(64, (3, 3, 3), activation='relu'))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))\n C3ST.add(VIRZ(128... | [
"0.823467",
"0.80127525",
"0.75505674",
"0.7149952",
"0.7043507",
"0.7031587",
"0.6967831",
"0.6942951",
"0.69189304",
"0.68562496",
"0.68421",
"0.6762046",
"0.67572063",
"0.67469764",
"0.6726462",
"0.67199254",
"0.6710771",
"0.6640113",
"0.66141677",
"0.65729237",
"0.655072"... | 0.81089973 | 1 |
Return model with leaky relu op | def LiFL():
g4y1 = ZylS.keras.Input(shape=(8, 8, 3))
WKvO = ZylS.keras.layers.Conv2D(8, (2, 2))(g4y1)
WKvO = ZylS.nn.leaky_relu(WKvO, alpha=0.4)
WKvO = ZylS.keras.layers.Conv2D(4, (2, 2))(WKvO)
WKvO = ZylS.keras.layers.Flatten()(WKvO)
o4Jx = ZylS.keras.layers.Dense(10, activation=ZylS.nn.softmax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbpM(Zxma: nn.Module, aqpm: float=0.2) -> U78l.Module:\n\n def GU8I(r8hN: nn.Module) -> U78l.Module:\n if isinstance(r8hN, U78l.ReLU):\n return U78l.LeakyReLU(aqpm, r8hN.inplace)\n return r8hN\n return Md1J(Zxma, GU8I)",
"def oqm5(YKHO):\n ZylS.compat.v1.reset_default_graph(... | [
"0.7041776",
"0.6772096",
"0.64300394",
"0.6305881",
"0.6265149",
"0.6253542",
"0.6209827",
"0.6195602",
"0.6169411",
"0.6154429",
"0.60378766",
"0.60292816",
"0.60175157",
"0.6001708",
"0.59910387",
"0.5987967",
"0.59866804",
"0.598009",
"0.59780985",
"0.5947829",
"0.5924888... | 0.7106728 | 0 |