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 |
|---|---|---|---|---|---|---|
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, arqe):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time'])
jQ3Z['month_start'] = jQ3Z['Start Time'].dt.month
jQ3Z['month_end'] = jQ3Z['End Time'].dt.month
jQ3Z['day_start'] = jQ3Z['S... | {
"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.8131557",
"0.8108646",
"0.80456805",
"0.8041907",
"0.8008996",
"0.80066293",
"0.799892",
"0.79980177",
"0.79883647",
"0.79786384",
"0.7973428",
"0.79604656",
"0.7955707",
"0.7946914",
"0.79457873",
"0.7907952",
"0.79078037",
"0.79041624",
"0.7900135",
"0.7892769",
"0.78888... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, x0eS, arqe):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if x0eS == 7:
kgXa = jQ3Z['month_start'].mode()[0]
a5KY = X_bn[kgXa - 1].title()
FJVd = jQ3Z['month_end'].mode()[0]
ceUe = X_bn[FJVd - 1].title()
if a5KY != ce... | {
"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.80235124",
"0.80223495",
"0.7914819",
"0.78260994",
"0.7821642",
"0.78139323",
"0.77653635",
"0.7739615",
"0.77358055",
"0.7733576",
"0.7686211",
"0.7667902",
"0.76510555",
"0.76440334",
"0.76391727",
"0.7636328",
"0.7624661",
"0.7622607",
"0.76119757",
"0.7599401",
"0.758... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
WeaF = jQ3Z['Start Station'].mode()[0]
print('The most popular START STATION for renting a bike is {}. '.format(WeaF))
Lc6V = jQ3Z['End Station'].mode()[0]
print('The most popular END STATION for re... | {
"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.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
sSHf = (jQ3Z['End Time'] - jQ3Z['Start Time']).sum()
print('The total travel time for all trips within the selected data set is {} (hh:mm:ss).'.format(sSHf))
fFaH = (jQ3Z['End Time'] - jQ3Z['Start Time']).mean()
print('... | {
"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.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7584329 | 93 |
I rebalance the tree. | def cZTi(YKHO, Q6kx):
while Q6kx != None:
Q6kx.updateHeight()
_AKB = Q6kx.parent
if Q6kx.balanceFactor == 2:
if Q6kx.right.balanceFactor == 1:
YKHO.rotateLeft(Q6kx)
else:
YKHO.rotateRight(Q6kx.right)
YKHO.rotateLeft(Q6kx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wh1x(YKHO):\n v6F4 = YKHO._height\n YKHO._height = YKHO.height()\n if YKHO._unbalanced():\n if YKHO.full():\n if YKHO._leftchild._height > YKHO._rightchild._height:\n YKHO._restructure_leftchild()\n else:\n YKHO._restructure_rightchild()\n ... | [
"0.7963739",
"0.7918383",
"0.78662556",
"0.75338566",
"0.73955345",
"0.7141099",
"0.7101765",
"0.68558115",
"0.67163277",
"0.66535354",
"0.65619683",
"0.6451634",
"0.63025844",
"0.62915564",
"0.6283278",
"0.626441",
"0.6260662",
"0.6244254",
"0.62398833",
"0.62159663",
"0.621... | 0.75646424 | 3 |
A utility function to test if two atoms are the same regardless of their IDs. | def xa14(YKHO, Elif):
if type(YKHO) != type(Elif):
return False
else:
return YKHO.name == Elif.name and YKHO.value == Elif.value and (YKHO.time == Elif.time) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _lok(YKHO):\n return YKHO.a == YKHO.b or YKHO.a == YKHO.c or YKHO.b == YKHO.c",
"def IzcV(YKHO, jzdc, Fg_i):\n return jzdc is Fg_i",
"def Ec_X(jzdc, Fg_i, GqHa):\n U9Z3 = (id(jzdc), id(Fg_i))\n if U9Z3 in GqHa:\n return True\n GqHa.add(U9Z3)\n return False",
"def g7eP(*qIxc):\n ... | [
"0.6669723",
"0.6570769",
"0.6536498",
"0.65263814",
"0.64910364",
"0.648458",
"0.64796185",
"0.64715624",
"0.6441356",
"0.6433267",
"0.6431419",
"0.64223903",
"0.63988644",
"0.6378566",
"0.63738555",
"0.6373344",
"0.636345",
"0.6360412",
"0.6356157",
"0.6347841",
"0.63342994... | 0.0 | -1 |
Get time zone offset. | def hKsq(YKHO, rIAI):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)",
"def Y894():\n if ITS7.localtime().tm_isdst and ITS7.daylight:\n return -ITS7.altzone\n else:\n return -ITS7.timezone",
"def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n return fCoM.total_seconds()",
"def CHDc(... | [
"0.8114098",
"0.7687836",
"0.76663375",
"0.763602",
"0.7618972",
"0.75373244",
"0.75334746",
"0.7246631",
"0.72184235",
"0.720433",
"0.7117189",
"0.7107194",
"0.70973885",
"0.7074649",
"0.7069205",
"0.7056303",
"0.7024507",
"0.7002665",
"0.6923286",
"0.6848891",
"0.6834723",
... | 0.7916148 | 1 |
Reset the encoder values to zero | def qG6B(YKHO):
for YRbF in range(3):
YKHO.fd_channel[YRbF].write(b'\x00\x00\x00')
AiF7.ioctl(YKHO.fd_channel[YRbF], YKHO.LOAD_CMD_REG, YKHO.TRAN_PR_CNTR)
YKHO.read_pos[YRbF] = 0
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.enc_len = None\n YKHO.precomputed_enc_h = None\n YKHO.mask = None",
"def SiRx(YKHO):\n YKHO.enc_len = None\n YKHO.precomputed_enc_h = None\n YKHO.mask = None\n YKHO.prev_attn = None",
"def SiRx(YKHO):\n YKHO.values = None\n YKHO.keys = None\n YKHO.mask = Non... | [
"0.7715912",
"0.7498753",
"0.7079342",
"0.69441664",
"0.69384253",
"0.6871477",
"0.68487144",
"0.68310565",
"0.6801526",
"0.6756597",
"0.6753875",
"0.6745159",
"0.6740667",
"0.6717318",
"0.67017263",
"0.6696437",
"0.668092",
"0.6667224",
"0.66662085",
"0.6658621",
"0.6647675"... | 0.6548937 | 33 |
Stage position frame in the Tk GUI. Defines buttons and their location | def rvBV(YKHO):
YKHO.frame = LQRw(YKHO.master, relief=SSCU, bd=4)
YKHO.frame.grid(row=0, column=1, rowspan=2, columnspan=2)
gLaC = seYU(YKHO.frame, text='Stage Control', relief=YZF3, bd=2, width=24, bg='light yellow', font=('Times', 16))
gLaC.grid(row=0, column=1)
YKHO.encoder_text = []
YKHO.coo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XqH7(YKHO):\n v9Lt = YKHO.container\n VpYH = R08O.Frame(v9Lt)\n VpYH.grid(row=10, column=0, sticky='ew')\n TB58.prepare_centering(VpYH)\n aFmW = R08O.Frame(VpYH)\n aFmW.grid(row=1, column=1)\n _Cnz = R08O.Style()\n _Cnz.configure('ACS.TButton', font=E6Ah.button_regular_font_tuple())\n ... | [
"0.6765841",
"0.6737861",
"0.6707397",
"0.6681542",
"0.6503716",
"0.65012497",
"0.6474421",
"0.6459724",
"0.6450532",
"0.64097995",
"0.6407992",
"0.640231",
"0.63891834",
"0.6373193",
"0.63693386",
"0.6295125",
"0.6282915",
"0.62717146",
"0.62624186",
"0.6261977",
"0.622761",... | 0.6772856 | 0 |
Add a job title with system defined category and program id, the program id , category and job title makes a unique set. | def m8z6(YKHO, QePW):
gCuF.LOGGER.info('JobTitleView >> post >> request: {}'.format(QePW.POST))
try:
ZMzz = ebca(data=QePW.data)
if ZMzz.is_valid():
ZMzz.save()
gCuF.LOGGER.info('JobTitleView >> post >> response: {}'.format(ZMzz.data))
ZMzz = o0sE(instance=ZMz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A9wq(YKHO):\n uDRR = 'title:engineer not title:programmer'\n M_lQ = 'find job engineer not position programmer'\n YKHO._compare_searches(uDRR, M_lQ)",
"def yAgF(bNKA, JBZA):\n jWZT = open(Hy7s.path.join('Anemone', 'templates', 'namegen.html')).readlines()\n ONqL = 'Quick.' + tuKI.choice(jWZT)[... | [
"0.5473698",
"0.54642886",
"0.5456923",
"0.54051816",
"0.53663737",
"0.5351387",
"0.5318119",
"0.52990985",
"0.5296978",
"0.5265019",
"0.5242906",
"0.5203784",
"0.51732147",
"0.51128894",
"0.5091719",
"0.50734794",
"0.5058318",
"0.50224304",
"0.50088704",
"0.4998208",
"0.4989... | 0.0 | -1 |
Gets the displayed name of this AI. | def Q0HP(YKHO):
return 'Antiyoy AI' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, ... | [
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84242225",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223",
"0.84184223"... | 0.0 | -1 |
Retrieve the EFO term label. | def UXqs(b3Zb):
bD7m = 'https://www.ebi.ac.uk/ols/api/ontologies/efo/terms?iri=http://www.ebi.ac.uk/efo/' + b3Zb
try:
geh0 = G4JS.get(bD7m).json()
except:
return ''
if 'error' in geh0.keys():
return ''
return geh0['_embedded']['terms'][0]['label'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(SzeM):\n return y9rB(SzeM)[1]",
"def WWqE(YKHO, yGdP):\n MMe4 = YKHO._load_entities()\n return MMe4[yGdP]['label']",
"def nscJ(YKHO):\n return YKHO.label",
"def DeTJ(YKHO):\n return YKHO.attrs.get(YKHO.AttributeNames.LABEL, None)",
"def DeTJ(YKHO):\n return YKHO.label",
"def De... | [
"0.6996399",
"0.679516",
"0.6789283",
"0.669412",
"0.6662217",
"0.66592497",
"0.66592497",
"0.66592497",
"0.66592497",
"0.66532314",
"0.6617111",
"0.6614944",
"0.6613897",
"0.6613897",
"0.6613897",
"0.6601244",
"0.6580295",
"0.6564287",
"0.6562638",
"0.6562638",
"0.6562638",
... | 0.79824245 | 0 |
Fetch the cluster configuration details. | def yiFO(K1dT):
GPtr = K1dT.cluster.get_cluster()
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yiFO(YKHO, c0yN: str) -> dict:\n try:\n geh0 = YKHO.session.get(url=f'{YKHO.url}/{c0yN}', headers=YKHO._get_request_header(), timeout=YKHO._timeout_config)\n except BI6M as conn_err:\n Ol8d = str(aNrS) + ' Connection error, WCS cluster info was not fetched.'\n raise type(aNrS)(Ol8d).... | [
"0.736589",
"0.7346189",
"0.71583754",
"0.6833823",
"0.67531306",
"0.65792304",
"0.6477731",
"0.64691406",
"0.64297867",
"0.6385467",
"0.63468",
"0.6320102",
"0.63129514",
"0.6277506",
"0.6277506",
"0.6247529",
"0.62389594",
"0.6229865",
"0.6214853",
"0.62041736",
"0.614486",... | 0.72812015 | 2 |
Get default parameters and setting. These setting are predefined for common analysis. For an alternate setup, generate \"RNAseq_pipeline_defaults.txt\" under home folder and/or run path. Predefined parameters are superseded by \"RNAseq_pipeline_defaults.txt\" file under home path and that, in turn, is superseded by the... | def c3_8():
with open(Hy7s.path.join(bZGm.__path__[0], 'defaults', 'RNAseq_pipeline_defaults.txt')) as _yv9:
muwo = {}
for zFiD in _yv9.readlines():
if zFiD.strip():
muwo[zFiD.split(',')[0].strip()] = zFiD.split(',')[1].strip()
try:
with open(Hy7s.path.join(Hy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OFRI():\n with kmAA.open_file(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'defaults.yml')) as FfMS:\n Aofo = eJb6.load(FfMS, Loader=sEyC)\n return Aofo",
"def TvGp() -> GkAb:\n return z42u() / 'pyflow' / 'conf' / cJ0e",
"def I8ix():\n GPtr = {'samples': vOG6, 'channel': 'all', 'rate': vWTh, ... | [
"0.70365804",
"0.66658",
"0.6646884",
"0.66009355",
"0.6429898",
"0.6395395",
"0.63865936",
"0.6361334",
"0.6339925",
"0.630356",
"0.62843144",
"0.6280962",
"0.62805986",
"0.6258651",
"0.62187433",
"0.62183136",
"0.6203209",
"0.6195272",
"0.61935234",
"0.6158887",
"0.61224854... | 0.74645346 | 0 |
>>> p = {2, 3, 5, 7, 11, 13, 17, 19} >>> tests = (prime(n) == (n in p) ... for n in range(2, 21) ... ) >>> all(tests) True >>> prime(9973) True >>> prime(9997) False | def ffYW(exwG: int) -> bool:
Llmz = huPo(lambda YRbF: exwG % YRbF == 0, range(2, int(epAf.sqrt(exwG) + 1)))
return len(list(Llmz)) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(exwG):\n QarS = rPed(exwG + 1)\n return exwG in QarS",
"def T1qg(exwG):\n LyE1 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]\n if exwG in LyE1:\n return True\n Csk6 = exwG - 1\n KCHu = 0\n while not Csk6 & 1:\n Csk6 = Csk6 >> 1\n KCHu += 1\n for jzdc in LyE1... | [
"0.7799041",
"0.74937814",
"0.7493588",
"0.7408851",
"0.73645663",
"0.7317609",
"0.73126787",
"0.7255527",
"0.723234",
"0.7148987",
"0.7141445",
"0.7141022",
"0.71347225",
"0.71173453",
"0.70990604",
"0.7090064",
"0.70712626",
"0.70701075",
"0.7060674",
"0.7060552",
"0.705128... | 0.68508613 | 56 |
>>> p = {2, 3, 5, 7, 11, 13, 17, 19} >>> tests = (prime_t(n) == (n in p) ... for n in range(2, 21) ... ) >>> all(tests) True >>> prime_t(9973) True >>> prime_t(9997) False | def Fz37(exwG: int) -> bool:
lfdS = set(range(2, int(epAf.sqrt(exwG) + 1)))
UQUA = set(KcVV(lambda YRbF: exwG % YRbF != 0, lfdS))
return lfdS == UQUA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(exwG):\n QarS = rPed(exwG + 1)\n return exwG in QarS",
"def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False",
"def T1qg(exwG):\n LyE1 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]\n if exwG in LyE1:\n return True\n Csk6 = exwG - 1\n KCHu ... | [
"0.7313725",
"0.72568756",
"0.72117835",
"0.70340055",
"0.69727284",
"0.69264084",
"0.69167405",
"0.6908247",
"0.68976057",
"0.68683493",
"0.6834534",
"0.68313044",
"0.6809433",
"0.6806866",
"0.67972153",
"0.6794178",
"0.67930144",
"0.6732481",
"0.6723465",
"0.67158353",
"0.6... | 0.70916456 | 4 |
>>> p = {2, 3, 5, 7, 11, 13, 17, 19} >>> tests = (prime_any(n) == (n in p) ... for n in range(2, 21) ... ) >>> all(tests) True >>> prime_any(9973) True >>> prime_any(9997) False | def Jehm(exwG: int) -> bool:
lfdS = range(2, int(epAf.sqrt(exwG) + 1))
CCfQ = any((exwG % a1PO == 0 for a1PO in lfdS))
return not CCfQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(exwG):\n QarS = rPed(exwG + 1)\n return exwG in QarS",
"def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False",
"def T1qg(exwG):\n LyE1 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]\n if exwG in LyE1:\n return True\n Csk6 = exwG - 1\n KCHu ... | [
"0.7181846",
"0.6898149",
"0.68793786",
"0.68543464",
"0.67247844",
"0.668284",
"0.6675213",
"0.666668",
"0.6655934",
"0.6623585",
"0.6618737",
"0.6592692",
"0.65831786",
"0.65795034",
"0.65768504",
"0.65621936",
"0.65424985",
"0.6538722",
"0.6531022",
"0.65181994",
"0.648928... | 0.7146152 | 1 |
>>> list(primeset(range(2, 21))) [2, 3, 5, 7, 11, 13, 17, 19] | def rV5K(JZXy: Iterable[int]) -> bDy6[int]:
for YRbF in JZXy:
if ffYW(YRbF):
yield YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b1g3(FGW3):\n Yn7t = set()\n for YRbF in range(2, FGW3 + 1):\n for r845 in Yn7t:\n if YRbF % r845 == 0:\n break\n else:\n Yn7t.add(YRbF)\n return Yn7t",
"def slx7(qoqK=10000):\n kbGe = set(range(2, qoqK))\n rPed = []\n while len(kbGe) > 0:\... | [
"0.8338889",
"0.7561285",
"0.75049454",
"0.748565",
"0.7357091",
"0.73143554",
"0.72272825",
"0.713704",
"0.7135844",
"0.7130501",
"0.7106237",
"0.7105116",
"0.71001226",
"0.7083318",
"0.7052981",
"0.7044474",
"0.69936013",
"0.69803995",
"0.6978609",
"0.6977743",
"0.6919769",... | 0.7484329 | 4 |
Return an ordering of the nbit integers by increasing bit count. | def Ew_Y(exwG):
Ylbp = [0]
UOyk = 2 ** exwG - 1
for YRbF in range(1, exwG):
for r845 in range(1, UOyk):
if b_VQ(r845) == YRbF:
Ylbp.append(r845)
Ylbp.append(UOyk)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UOVU(exwG):\n eiCK = URnP()\n fZxG = _jM2(exwG, eiCK)\n STXI = 0\n while fZxG != STXI:\n exwG = exwG + 1\n STXI = _jM2(exwG, eiCK)\n return exwG",
"def jV6y(ywwl, nvWN=8):\n return [ywwl >> G1Hx & 1 for G1Hx in range(nvWN)]",
"def KIer(exwG):\n return [exwG >> YRbF & 1 fo... | [
"0.6160015",
"0.6099676",
"0.5974707",
"0.59488124",
"0.5914475",
"0.58844227",
"0.58460546",
"0.5804653",
"0.5740673",
"0.57353914",
"0.57286286",
"0.568372",
"0.56732494",
"0.5668087",
"0.5661544",
"0.5660755",
"0.5653851",
"0.56387144",
"0.56386966",
"0.5618264",
"0.561682... | 0.7632072 | 0 |
Takes file path as string; returns text as string. Takes a string that is a file path, opens the file, and Turns the file's contents as one string of text. | def OcVp(qaEx):
kGys = open(qaEx).read()
return kGys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n SFw1 = OwN0.read()\n return SFw1",
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n LFxn = OwN0.read()\n OwN0.close()\n return LFxn",
"def Wwj6(VqRE):\n with open(VqRE, 'r') as eHNT:\n return eHNT.read()",
"def cHUw(VqRE):\n assert JC7M(VqRE), 'fi... | [
"0.83131844",
"0.8230455",
"0.8229315",
"0.81497365",
"0.81140405",
"0.80929667",
"0.8035107",
"0.79442555",
"0.7939859",
"0.7872458",
"0.7834842",
"0.7826561",
"0.7807666",
"0.78003234",
"0.7738249",
"0.7610164",
"0.75931025",
"0.7563546",
"0.75231177",
"0.74875945",
"0.7438... | 0.77900875 | 14 |
Get cached cairo surface. | def HV9K(**B2fa):
_G4g = zkdz()
for H5ew, BWXx in B2fa.items():
_G4g.__setattr__(H5ew, BWXx)
return _G4g.get_surface() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7Ty(Ux0P, TVTK, H2v2):\n J20S = PNwX.PDFSurface(Ux0P, TVTK, H2v2)\n return J20S",
"def G_wZ(YKHO):\n return PNwX.Context(YKHO._s)",
"def ybon(J20S):\n QpfX = PNwX.Context(J20S)\n QpfX.scale(npZ0(1), npZ0(1))\n return QpfX",
"def W5IO(J20S):\n Fg_i = aKaX()\n J20S.write_to_png(Fg_... | [
"0.6860621",
"0.642825",
"0.6160079",
"0.6106446",
"0.6083988",
"0.60276634",
"0.59859467",
"0.5962177",
"0.584543",
"0.5700429",
"0.55785954",
"0.5509315",
"0.5405318",
"0.5405318",
"0.5399263",
"0.53562206",
"0.5313273",
"0.5228028",
"0.52064884",
"0.5190411",
"0.5182306",
... | 0.58941996 | 8 |
Calculate the Hamming distance between two bit strings | def E_DB(j93S, Nqp_):
return sum((dg7v != iYf1 for dg7v, iYf1 in zip(j93S, Nqp_))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_DB(lULz, ChBB):\n if len(lULz) != len(ChBB):\n raise ValueError('Length of input1 and input2 are not equal.')\n lULz = Joh0(wD35(lULz))\n ChBB = Joh0(wD35(ChBB))\n hlel = EEU7(lULz, ChBB)\n Ayfi = 0\n for YB8B in hlel:\n for YRbF in range(8):\n jBIq = 1 << YRbF\n ... | [
"0.86581886",
"0.8609805",
"0.83848983",
"0.8360063",
"0.83254594",
"0.8282518",
"0.81959116",
"0.815917",
"0.8092042",
"0.8089088",
"0.80491406",
"0.8043047",
"0.8019958",
"0.8018021",
"0.8009184",
"0.7942804",
"0.7872873",
"0.782325",
"0.77714366",
"0.77687335",
"0.7726213"... | 0.8044223 | 11 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew):
d6pt = H5ew % YKHO.size
DpUl = YKHO.bucket[d6pt]
while DpUl:
if DpUl.key == H5ew:
return DpUl.val
DpUl = DpUl.next
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]",
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ... | [
"0.8003586",
"0.79090834",
"0.762897",
"0.7564004",
"0.7556298",
"0.7529827",
"0.7525957",
"0.74929136",
"0.73735875",
"0.7294219",
"0.7293118",
"0.72221535",
"0.7215888",
"0.7180873",
"0.7177207",
"0.7161431",
"0.69811606",
"0.6928305",
"0.6784603",
"0.6756287",
"0.6732945",... | 0.6393806 | 31 |
Turn byte string or unicode string into a unicode string (PRIVATE). | def Zpaj(KCHu):
if isinstance(KCHu, str):
return KCHu
return T_Uj.latin_1_decode(KCHu)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dMvu(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu.decode('utf-8', 'replace')\n else:\n return KCHu",
"def zX3X(vIwR):\n return ii9h('', vIwR)",
"def CMS7(vIwR):\n if HwRy.version < '3' and isinstance(vIwR, str):\n return QMSQ(vIwR.decode('utf-8'))\n return vIwR",
... | [
"0.79828906",
"0.7899803",
"0.78666604",
"0.7707591",
"0.7692861",
"0.76289684",
"0.7614199",
"0.75872463",
"0.756025",
"0.7552921",
"0.7516569",
"0.74821585",
"0.747283",
"0.7453585",
"0.7435766",
"0.74259853",
"0.74032134",
"0.73785543",
"0.73785543",
"0.73448074",
"0.73062... | 0.74650633 | 13 |
Checks if a product is in stock | def iMNw(EBx_):
PKko = '#app > div.page-content > div.page-section > div > div > div.row-side > div.product-buy-box > div.product-flag > div > div > span'
LpID = EBx_.html.find(PKko, first=True)
if LpID == None:
return True
if LpID.text == 'OUT OF STOCK':
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_in_stock(Emd4, Lx3t: Product, cuiw: ClientSession) -> bool:\n if not Emd4.is_expected_fqdn(Lx3t.fqdn):\n raise B7UE\n _hkX = await cuiw.request(method='GET', url=Lx3t.url, raise_for_status=True)\n try:\n return Emd4._is_in_stock(await _hkX.text())\n except:\n raise",
... | [
"0.8031233",
"0.7914503",
"0.7534334",
"0.7272875",
"0.7244365",
"0.72259575",
"0.7126557",
"0.69856846",
"0.6984308",
"0.68941766",
"0.6754919",
"0.6637641",
"0.66218525",
"0.6571009",
"0.6522367",
"0.6493364",
"0.64595187",
"0.64439434",
"0.6424697",
"0.62896127",
"0.627917... | 0.7837728 | 2 |
Special initialization of certain model weights. | def tnre(YKHO):
if YKHO.cfg.initial_forget_bias is not None:
YKHO.hindcast_lstm.bias_hh_l0.data[YKHO.cfg.hidden_size:2 * YKHO.cfg.hidden_size] = YKHO.cfg.initial_forget_bias | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vJuA(YKHO):\n raise NotImplementedError",
"def C0Lv(YKHO):\n pass",
"def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)",
"def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def v... | [
"0.8807841",
"0.8478919",
"0.8317759",
"0.8259904",
"0.81699884",
"0.8132161",
"0.8086595",
"0.8037357",
"0.8011198",
"0.7983077",
"0.79621196",
"0.79621196",
"0.7953538",
"0.7951533",
"0.79456466",
"0.7940514",
"0.782644",
"0.77934897",
"0.7766713",
"0.7761337",
"0.77286774"... | 0.0 | -1 |
Perform a forward pass on the MultiheadForecastLSTM model. | def KVH6(YKHO, nPrm: Dict[str, torch.Tensor]) -> cuzp[str, ht2j.Tensor]:
FEZH = YKHO.hindcast_embedding_net(nPrm)
sh7x = YKHO.forecast_embedding_net(nPrm)
a0W1, (j7sm, hPir) = YKHO.hindcast_lstm(input=FEZH)
a0W1 = a0W1.transpose(0, 1)
K4bc = YKHO.hindcast_head(YKHO.dropout(a0W1))
j7sm = j7sm.tra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n ZFAA = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n Segk = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n yvT9, bGrB = YKHO.lstm(WKvO, (ZFAA, Segk))\n yvT9 = U78l.Softmax(dim=2)(YKHO.fc(yvT9))\n return yv... | [
"0.6934581",
"0.6786432",
"0.67352366",
"0.6726805",
"0.66073835",
"0.65423995",
"0.64748937",
"0.64720213",
"0.64686567",
"0.64573485",
"0.64095575",
"0.63642955",
"0.636062",
"0.636062",
"0.6357213",
"0.63501835",
"0.63420254",
"0.6290306",
"0.62771",
"0.6203052",
"0.619438... | 0.5738834 | 81 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, gYny):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Given an input directed graph, returns its reverse. | def EU2y(pNZh):
PWgb = lambda vC9B: [ZfUD for XuXy in vC9B for ZfUD in XuXy]
Ziit = set(pNZh.keys()).union(set(PWgb(pNZh.values())))
ZIHS = {Q6kx: [] for Q6kx in Ziit}
for rdlD in pNZh:
eab2 = pNZh[rdlD]
for D70y in eab2:
ZIHS[D70y].append(rdlD)
return ZIHS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mzaA(zncu):\n reversed = zncu.__class__()\n for YRbF in zncu.get_vertices().keys():\n reversed.add_vertex(YRbF)\n for YRbF in zncu.get_vertices().keys():\n SLBp = zncu.get_vertex(YRbF)\n for r845 in SLBp.get_heads():\n reversed.add_edge(r845.get_label(), YRbF)\n retu... | [
"0.79482424",
"0.7650989",
"0.69474876",
"0.6856863",
"0.66126597",
"0.6611828",
"0.6580383",
"0.64982295",
"0.64140075",
"0.63691974",
"0.6364908",
"0.6309494",
"0.62161905",
"0.62152755",
"0.61902934",
"0.6189799",
"0.6161129",
"0.6149108",
"0.6112712",
"0.608629",
"0.60351... | 0.7047143 | 2 |
Must always have at least one user with the Admin role (and anon doesn't count). | def tqAj(YKHO):
Mkmy = YKHO.app.get('/admin/groups/')
Im9K = Mkmy.html.find('table', {'id': 'usergroup_admin'}).findAll('tr')[1]
c4M2 = Im9K['data-group']
DW23 = Im9K.find('ul', {'class': 'users'}).findAll('li', {'class': 'deleter'})
assert len(DW23) == 1
Mkmy = YKHO.app.post('/admin/groups/remo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4un():\n if not c5ow.is_admin:\n eTsH(403)",
"def l4un():\n if not c5ow.is_admin:\n eTsH(403)",
"def l4un():\n if not c5ow.is_admin:\n eTsH(403)",
"def l4un():\n if not c5ow.is_admin:\n eTsH(403)",
"def nCBc():\n c5ow = Er1K.get_doc('User', Er1K.session.user)... | [
"0.67763656",
"0.67606527",
"0.67606527",
"0.66570437",
"0.66285825",
"0.6553558",
"0.65198165",
"0.6474044",
"0.6470885",
"0.64612126",
"0.6449902",
"0.64238375",
"0.6338849",
"0.6288632",
"0.6272081",
"0.62683195",
"0.62599576",
"0.62138915",
"0.61945766",
"0.6191175",
"0.6... | 0.5927007 | 60 |
Indicates if Reeborg is facing North (top of the screen) or not. | def dC7Z():
return VwDX._is_facing_north_() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dC7Z(YKHO):\n return VwDX._UR.is_facing_north_(YKHO.body)",
"def ksCR(YKHO) -> bool:\n return YKHO.x == 0 and YKHO.y == 0",
"def a6KQ(YKHO):\n if YKHO.pupils_located:\n return YKHO.is_right() is not True and YKHO.is_left() is not True",
"def LiA1(YKHO):\n if YKHO.rect.top <= 0:\n ... | [
"0.7919203",
"0.6518342",
"0.62704915",
"0.61221063",
"0.605618",
"0.6022997",
"0.59548485",
"0.586084",
"0.5789783",
"0.5760996",
"0.56978303",
"0.5693609",
"0.5672032",
"0.5656589",
"0.5638894",
"0.55956614",
"0.5560494",
"0.5521336",
"0.547523",
"0.54616797",
"0.5453688",
... | 0.77814716 | 1 |
Indicates if Reeborg is facing North (top of the screen) or not. | def dC7Z(YKHO):
return VwDX._UR.is_facing_north_(YKHO.body) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dC7Z():\n return VwDX._is_facing_north_()",
"def ksCR(YKHO) -> bool:\n return YKHO.x == 0 and YKHO.y == 0",
"def a6KQ(YKHO):\n if YKHO.pupils_located:\n return YKHO.is_right() is not True and YKHO.is_left() is not True",
"def LiA1(YKHO):\n if YKHO.rect.top <= 0:\n YKHO.target_di... | [
"0.77814716",
"0.6518342",
"0.62704915",
"0.61221063",
"0.605618",
"0.6022997",
"0.59548485",
"0.586084",
"0.5789783",
"0.5760996",
"0.56978303",
"0.5693609",
"0.5672032",
"0.5656589",
"0.5638894",
"0.55956614",
"0.5560494",
"0.5521336",
"0.547523",
"0.54616797",
"0.5453688",... | 0.7919203 | 0 |
Implement the linear part of a layer's backward propagation dW[l] = (dZ[l]A[l1].T)/m db[l] = (np.sum(dZ, axis=1, keepdims=True))/m dA[l1] = W[l].T dZ[l] | def E8Hi(R5Nm: np.array, wyyA: Tuple) -> AzJI:
etIE, XcU5, Fg_i = wyyA
r8hN = etIE.shape[1]
HFON = oyIN.dot(R5Nm, etIE.T) / r8hN
NCls = oyIN.sum(R5Nm, axis=1, keepdims=True) / r8hN
wQ6z = oyIN.dot(XcU5.T, R5Nm)
return (wQ6z, HFON, NCls) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0bj(R5Nm, ZEXP):\n etIE, XcU5, Fg_i = ZEXP\n GPal = etIE.shape[1]\n HFON = oyIN.multiply(oyIN.dot(R5Nm, etIE.T), 1 / GPal)\n NCls = oyIN.multiply((oyIN.sum(R5Nm, axis=1, keepdims=True), 1 / GPal))\n wQ6z = oyIN.dot(XcU5.T, R5Nm)\n return (wQ6z, HFON, NCls)",
"def E8Hi(R5Nm, wyyA, vtMg):\n ... | [
"0.7908602",
"0.76593405",
"0.7646032",
"0.7582416",
"0.752185",
"0.74883837",
"0.7454244",
"0.7352305",
"0.7216037",
"0.712672",
"0.71181947",
"0.69684166",
"0.69647133",
"0.6905091",
"0.6904065",
"0.6897094",
"0.6870892",
"0.68291605",
"0.68221414",
"0.67836654",
"0.6755764... | 0.7314945 | 8 |
Determine if the species has look for functional group attachments that could cause molecule instabilities | def _Sdk(qWQH, HF9P=True):
_0gM = _hBH.geom.inchi(_hBH.zmat.geometry(qWQH))
kn1E = MhT9(_0gM, stereo=HF9P)
if kn1E is not None:
zW4N = tuple((_hBH.inchi.zmatrix(_0gM) for _0gM in kn1E))
else:
zW4N = None
return zW4N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WfLv(YKHO):\n SQgB = YKHO.find_frames('science')\n for YRbF in range(len(YKHO)):\n if not SQgB[YRbF]:\n continue\n if len(YKHO.calib_bitmask.flagged_bits(YKHO['calibbit'][YRbF])) > 1:\n YPtW.error('Science frames can only be assigned to a single calibration group.')",
... | [
"0.58665705",
"0.5796943",
"0.5576857",
"0.55763674",
"0.5548222",
"0.550208",
"0.5486317",
"0.5394382",
"0.537463",
"0.53571206",
"0.5311446",
"0.5302816",
"0.5292797",
"0.52856207",
"0.52853626",
"0.52630234",
"0.52620894",
"0.5251455",
"0.52503026",
"0.5244021",
"0.5230866... | 0.0 | -1 |
Determine if the species has look for functional group attachments that could cause molecule instabilities | def QOAK(I381, HF9P=True):
_Tdp = fzex(I381)
cFoQ = ()
for XUbj, YCmv in _Tdp.items():
if XUbj in zOau.DCT:
l0oJ = zOau.DCT[XUbj]
for C4gk in YCmv:
mbpo = _hBH.graph.inchi(C4gk, stereo=HF9P)
if mbpo in l0oJ:
gaMX = l0oJ[mbpo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WfLv(YKHO):\n SQgB = YKHO.find_frames('science')\n for YRbF in range(len(YKHO)):\n if not SQgB[YRbF]:\n continue\n if len(YKHO.calib_bitmask.flagged_bits(YKHO['calibbit'][YRbF])) > 1:\n YPtW.error('Science frames can only be assigned to a single calibration group.')",
... | [
"0.58681464",
"0.5795681",
"0.55763006",
"0.5575406",
"0.55502933",
"0.55019075",
"0.5485602",
"0.5396502",
"0.53750575",
"0.5358191",
"0.53118396",
"0.53025126",
"0.52932537",
"0.52866656",
"0.5286499",
"0.52617234",
"0.526155",
"0.52516264",
"0.5251058",
"0.52441525",
"0.52... | 0.0 | -1 |
get the original position of the axes. | def Lags(YKHO, MPlV, pFW3):
if YKHO._locator is None:
cviu = MPlV.get_position(original=True)
else:
cviu = YKHO._locator(MPlV, pFW3)
return cviu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOec():\n return gCuF.controller.axes_position()",
"def hLRM(YKHO):\n return (YKHO.ox, YKHO.oy, YKHO.oz)",
"def dQgj(YKHO):\n return YKHO._position.copy()",
"def TwAD(YKHO) -> tuple:\n return YKHO.rect.center",
"def Qs8N(YKHO):\n Mkmy = YKHO.rect.x % 30\n if Mkmy != 0:\n if Mkm... | [
"0.73908794",
"0.66588074",
"0.6495541",
"0.64886403",
"0.64827746",
"0.6476158",
"0.6462129",
"0.6457132",
"0.6457132",
"0.64547294",
"0.64399457",
"0.64179224",
"0.64134413",
"0.6401671",
"0.6401671",
"0.6386918",
"0.63582605",
"0.63582605",
"0.6358202",
"0.63515997",
"0.63... | 0.7750258 | 0 |
Remove any entries in the assets table that are not used at all. By not used we mean to look at all foreign key relations and find assets that have None. | def lml2(DHLr: 'DBCursor') -> None:
RKD7.debug('Deleting unused asset ids')
DHLr.execute('\n WITH unique_assets AS (SELECT DISTINCT asset FROM(\n SELECT currency AS asset FROM timed_balances UNION\n SELECT asset1 AS asset FROM aave_events UNION\n SELECT asset2 AS asset FROM aave_events U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEOe():\n xUbb.objects.all().delete()",
"def uV45(YKHO, qsJ6):\n YKHO.filter(owner=qsJ6, documents__isnull=True).delete()",
"def HySU(YKHO):\n for tyNF in filter(lambda WKvO: YKHO.cmd.exists(WKvO, silent=RKD7.level < Ke5A), YKHO.tables):\n RKD7.info('MLoad', \"Dropping table '{}'...\".forma... | [
"0.5879156",
"0.5840521",
"0.57857317",
"0.5750976",
"0.56536585",
"0.56527066",
"0.56154335",
"0.557533",
"0.5513993",
"0.5511471",
"0.5506803",
"0.55001974",
"0.5465322",
"0.5454954",
"0.5443343",
"0.5395343",
"0.53822976",
"0.53752315",
"0.5337691",
"0.53269213",
"0.531330... | 0.70332074 | 0 |
Check whether the last two received numbers are nonconsecutive. | def BhyR(YWSi):
return YWSi.received[-1] - YWSi.received[-2] != 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZOZ(KCHu):\n for WKvO, LVAh in Zu14(sorted(KCHu)):\n if LVAh - WKvO != 1:\n return False\n return True",
"def MSbe(JTgH):\n izFS = JTgH[0] - 1\n for FGW3 in JTgH:\n izFS += 1\n if izFS != FGW3:\n return False\n return True",
"def LRK5(PVOR):\n i... | [
"0.67791176",
"0.66806567",
"0.6586815",
"0.64163715",
"0.62057024",
"0.6157683",
"0.6146303",
"0.5973882",
"0.59391135",
"0.5878017",
"0.5726122",
"0.56979746",
"0.5680733",
"0.5675066",
"0.56688035",
"0.566431",
"0.5597228",
"0.558718",
"0.55736417",
"0.5534394",
"0.5510732... | 0.8001332 | 0 |
Return the value of this CorrelationId object. The return value | def BWXx(YKHO):
aETW = YKHO.type()
if aETW == MMGk.INT_TYPE or aETW == MMGk.AUTOGEN_TYPE:
return YKHO.__asInteger()
elif aETW == MMGk.OBJECT_TYPE:
return YKHO.__asObject()
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kssU(YKHO):\n return YKHO._correlation_id",
"def OSd1(YKHO):\n return YKHO.company_id_value",
"def type(YKHO):\n return hYym.CorrelationId_type(YKHO)",
"def pijK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cen_id')",
"def id(YKHO) -> str:\n return YKHO.value",
"def vdO1(YKHO):\... | [
"0.78683627",
"0.7146154",
"0.7000599",
"0.68124014",
"0.6782479",
"0.6676294",
"0.664208",
"0.664208",
"0.6460984",
"0.6459618",
"0.6458681",
"0.6434835",
"0.6426785",
"0.6373151",
"0.6354108",
"0.6348844",
"0.6345221",
"0.63205653",
"0.6289468",
"0.62798357",
"0.62758815",
... | 0.79887307 | 0 |
Check if user is authenticated. If not, display login form. | def NLCy(YKHO, tO9_=''):
if YKHO.request.user:
return True
else:
w7Gw = YKHO.server.templating
b301 = YKHO.server.templating_path
YKHO.server.set_templating('pystache')
YKHO.server.set_templating_path('.')
NArs = {'hidden_fields': YKHO.request.params}
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1PP():\n c5ow = XN37.get_current_user()\n if c5ow is None:\n return TvZl('login.html')\n else:\n return vKnz('/')",
"def d6pt(YKHO):\n CBIr = bUpI()\n if not CBIr:\n return _1tc('/login_form.html')\n vKnz('/')",
"def MC83(QePW):\n if QePW.user.is_authenticated:\n ... | [
"0.78474724",
"0.7216996",
"0.7205118",
"0.7175319",
"0.71743643",
"0.71643996",
"0.71580863",
"0.71243757",
"0.71041775",
"0.7068835",
"0.7056636",
"0.7045808",
"0.70366496",
"0.70366496",
"0.70366496",
"0.70366496",
"0.70366496",
"0.70366496",
"0.70366496",
"0.7023175",
"0.... | 0.6866582 | 34 |
Reads file into list (should be new line delimited text) If no file supplied then reads from stdin | def k1T_(RRlC):
kGys = []
try:
kGys = [zFiD.strip() for zFiD in el7G.input(files=RRlC if RRlC else ('-',))]
except IOError as error:
print('Operation failed: %s' % P1dF)
return kGys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mkmy(Nqlg=1, idDS=None):\n eKbg = []\n for YRbF in range(Nqlg):\n vC9B = HwRy.stdin.readline()\n if vC9B:\n eKbg.append(vC9B)\n else:\n exit()\n return eKbg",
"def fF4P(E0cB):\n for wAVY in E0cB:\n try:\n with open(wAVY) as KmJz:\n ... | [
"0.65973467",
"0.6563652",
"0.65068",
"0.64773744",
"0.64717317",
"0.645057",
"0.6346151",
"0.63253254",
"0.6301627",
"0.62897915",
"0.6281566",
"0.62520397",
"0.6250286",
"0.6248348",
"0.6237774",
"0.61758024",
"0.6172925",
"0.61711705",
"0.6145559",
"0.61320275",
"0.6106155... | 0.7058677 | 0 |
Return all of the variables list | def INiC(YKHO):
with YKHO.graph.as_default():
P4tS = YKHO.sess.run(ZylS.trainable_variables())
return P4tS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return [YKHO.item]",
"def lSnF(YKHO):\n yvT9 = []\n for YRbF in YKHO.items:\n yvT9 += YRbF.get_all_variables()\n return yvT9",
"def lSnF(YKHO):\n yvT9 = []\n for YRbF in YKHO.items:\n yvT9 += YRbF.get_all_variables()\n ret... | [
"0.86639255",
"0.8356203",
"0.827432",
"0.827432",
"0.827432",
"0.8121574",
"0.8021741",
"0.79662204",
"0.7918375",
"0.7914313",
"0.78248435",
"0.78092563",
"0.77733177",
"0.77483755",
"0.77109617",
"0.7668621",
"0.765079",
"0.76274604",
"0.7603272",
"0.75680745",
"0.7535275"... | 0.0 | -1 |
Residual unit with 2 sub layers with preactivation, plan A shortcut. | def HT95(YKHO, WKvO, Ot1W, juHT, gmUL, _0fC):
fhcK = []
with ZylS.name_scope('residual_v2') as wOkA:
if YKHO._activate_before_residual:
WKvO, Rye2 = YKHO._batch_norm(WKvO)
WKvO = YKHO._relu(WKvO)
oN8J = WKvO
else:
oN8J = WKvO
WKvO, Rye2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7e8(Mkmy, eqPG, CJGY=False):\n with ZylS.variable_scope('TrResidual') as rrBf:\n if CJGY:\n rrBf.reuse_variables()\n Cwt5 = KNur('alpha', [ajU0])\n PkFu = ZylS.multiply(Cwt5, eqPG)\n if mc0T:\n RUR1 = 1 / (1 + ZylS.exp(-PkFu * Mkmy))\n return (RU... | [
"0.62530804",
"0.6176443",
"0.60826874",
"0.60223293",
"0.5935545",
"0.586518",
"0.58475554",
"0.58371454",
"0.5743737",
"0.57398796",
"0.56810236",
"0.5650603",
"0.5631074",
"0.55462927",
"0.55322427",
"0.5505697",
"0.54484993",
"0.5438758",
"0.5437032",
"0.5410188",
"0.5379... | 0.50384545 | 49 |
A logged in user can post a comment | def AWhd(YKHO):
YKHO.assertEqual(YKHO.response.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO):\n Fi3q = int(YKHO.request.get('post_id'))\n m8z6 = f5si.get_by_id(Fi3q)\n aM_I = YKHO.request.get('comment')\n bSab = YKHO.get_active_user().key().id()\n if bSab:\n aM_I = TYFT(post_id=Fi3q, content=aM_I, submitter_id=bSab)\n aM_I.put()\n YKHO.redirect('/%s' % st... | [
"0.72726786",
"0.7083539",
"0.7056021",
"0.6976553",
"0.6960496",
"0.6815414",
"0.6794364",
"0.67624235",
"0.6759909",
"0.67432654",
"0.66097116",
"0.66097116",
"0.66097116",
"0.65501034",
"0.65484995",
"0.65457463",
"0.65126354",
"0.64925885",
"0.64914393",
"0.64914393",
"0.... | 0.0 | -1 |
Call to clean up this socket after it's closed. | def HySU(YKHO):
if hasattr(YKHO, 'reply_channel'):
del YKHO.factory.reply_protocols[YKHO.reply_channel] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HySU(YKHO):\n try:\n YKHO.socket.close()\n except:\n pass\n YKHO.socket = None\n YKHO.current_host_and_port = None",
"def HySU(YKHO):\n YKHO.sock.close()",
"def HySU(YKHO):\n YKHO._socket.close()\n Hy7s.remove(BNAK())",
"def KdYG(YKHO, iG42):\n iG42.close()",
"def ... | [
"0.86428857",
"0.858198",
"0.83295333",
"0.8249067",
"0.8102506",
"0.8058096",
"0.80420256",
"0.80420256",
"0.8002572",
"0.8002572",
"0.8002572",
"0.8002572",
"0.8002572",
"0.8002572",
"0.79910225",
"0.7935088",
"0.79158396",
"0.7868217",
"0.78605616",
"0.7852479",
"0.7843671... | 0.0 | -1 |
Tokenizer function that removes stopwords, lowers case, tags part of speech, and lemmatizes. Takes a text string. Returns fully tokenized and normalized words. | def wr3U(l5Ny):
s2mk = dFss(l5Ny)
V22M = [eOtH for eOtH in s2mk if ZbWC.match('[a-zA-Z0-9]', eOtH)]
STkf = [GIN8 for GIN8 in V22M if GIN8 not in di0c.words('english')]
BD47 = [GIN8.lower() for GIN8 in STkf]
sb1u = kdPk(BD47)
oNFO = [GFnk().lemmatize(GIN8, pos=DoiO(oeNL)) for GIN8, oeNL in sb1u]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n s2mk = dFss(l5Ny)\n vDyF = list(set(di0c.words('english')))\n s2mk = [eOtH for eOtH in s2mk if len(eOtH) > 2]\n s2mk = [eOtH for eOtH in s2mk if eOtH not in vDyF]\n LkXt = GFnk()\n zKDd = []\n for w2fL in s2mk:\n NM_J = LkXt.lemmatize(w2fL).lower().strip()\n zKD... | [
"0.8144719",
"0.80365914",
"0.80356145",
"0.80100876",
"0.7982211",
"0.797575",
"0.79722714",
"0.79560703",
"0.7953729",
"0.79098463",
"0.7899802",
"0.78523004",
"0.7843829",
"0.7843829",
"0.7812445",
"0.7779404",
"0.77729505",
"0.7721257",
"0.77035236",
"0.7671604",
"0.75994... | 0.7798043 | 15 |
Aggregate a list of payloads | def Qemi(vCWU: Any, QePW: Union[prediction_pb2.SeldonMessageList, List, Dict], l3I3: SeldonMetrics) -> uLKX[zjzj.SeldonMessage, x1iM, cuzp]:
def wJ2X(mC01):
dJ1p = {}
UlOX = {}
for e5kH in mC01:
if e5kH:
dJ1p.update(e5kH.get('tags', {}))
UlOX.upda... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qemi(YKHO, fUYa: List[Tensor]):\n if YKHO.aggr == 'concat':\n return ht2j.cat(fUYa, dim=-1)\n WKvO = ht2j.stack(fUYa, dim=-1)\n if YKHO.aggr == 'add':\n return WKvO.sum(dim=-1)\n elif YKHO.aggr == 'mean':\n return WKvO.mean(dim=-1)\n elif YKHO.aggr == 'max':\n return ... | [
"0.62345374",
"0.6157526",
"0.5969577",
"0.59140444",
"0.58655035",
"0.5787762",
"0.5783028",
"0.57733506",
"0.57340163",
"0.5613827",
"0.5600419",
"0.55803525",
"0.5571247",
"0.5553955",
"0.553424",
"0.55071336",
"0.5486156",
"0.5481604",
"0.547303",
"0.54587793",
"0.5439284... | 0.5167526 | 40 |
Returns True if the file containing the memoized function has not been updated since the cache was last saved. | def ifBp(YKHO):
if YKHO.get_last_update() > YKHO.timestamp:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWZe(YKHO, LeuP):\n return YKHO._read_sha(LeuP) != LeuP.hash",
"def ImCi(YKHO):\n return False",
"def NVNH(YKHO):\n return Hy7s.path.exists(YKHO._cache_key)",
"def YCas(YKHO):\n if Hy7s.path.isfile(YKHO.cache_filename):\n uMSR = Hy7s.path.getmtime(YKHO.cache_filename)\n vHj7 = I... | [
"0.7081418",
"0.70619285",
"0.6996564",
"0.69775736",
"0.6964032",
"0.693055",
"0.6901986",
"0.68997246",
"0.68702114",
"0.682337",
"0.6818252",
"0.676197",
"0.66992855",
"0.6692315",
"0.6649667",
"0.66095525",
"0.6605537",
"0.65723443",
"0.6541651",
"0.6532446",
"0.6496958",... | 0.6844574 | 9 |
Initialize name and cuisine attributes. | def FIMM(YKHO, mWFP, TdJL):
YKHO.name = mWFP
YKHO.cuisine = TdJL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YKHO.type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0.title()\n YKHO.cuisine_type = N4Ku",
"def E14P(YKHO, **c_sp):\n mWFP = c_... | [
"0.66150117",
"0.65564877",
"0.6555645",
"0.6543713",
"0.6510778",
"0.64852613",
"0.64852613",
"0.64852613",
"0.6406553",
"0.63760173",
"0.6343019",
"0.63210416",
"0.63017946",
"0.63017946",
"0.6272533",
"0.6252154",
"0.6252154",
"0.62420285",
"0.6219914",
"0.6219914",
"0.620... | 0.7851757 | 1 |
Compute the least common multiple of a and b | def BsJX(jzdc, Fg_i):
if jzdc == Fg_i == 0:
return 0
return jzdc * Fg_i // ML2l(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h9pL(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def vwzu(gdXy, DWMs):\n return gdXy * DWMs // epAf.gcd(gdXy, DWMs)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // d9dQ(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def BsJX(jzdc: int, Fg_i: i... | [
"0.80964017",
"0.74694085",
"0.7422334",
"0.73100525",
"0.72879106",
"0.7285635",
"0.7285635",
"0.7279704",
"0.7249829",
"0.72487193",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72239035",
"0.72151035",
"... | 0.72382534 | 10 |
TIME_ZONE = 'Asia/Shanghai' TIME_ZONE = 'UTC' Return the default time zone as a tzinfo instance. This is the time zone defined by settings.TIME_ZONE. | def Vsdc(MbZJ=''):
return FXGE.timezone(MbZJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n return ITS7.timezone",
"def _meq():\n return 'UTC'",
"def Vsdc():\n Anoe = QePW.args.get('timezone')\n if Anoe in FXGE.all_timezones:\n return Anoe\n else:\n raise FXGE.exceptions.UnknownTimeZoneError\n QTiD = QePW.args.get('login_as')\n Anoe = DW23[int(QTiD)]['... | [
"0.74292964",
"0.7415964",
"0.73699343",
"0.72567254",
"0.69658935",
"0.69086796",
"0.6902996",
"0.6864516",
"0.68626535",
"0.6834895",
"0.67096496",
"0.66948265",
"0.6691175",
"0.6656783",
"0.66406924",
"0.66121846",
"0.65706974",
"0.6557447",
"0.6552792",
"0.6551581",
"0.65... | 0.71925354 | 4 |
Helper function that reads in an image as a | def q5aE(pmON):
LNo8 = XC5k.imread(pmON)
return XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2RGB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(pmON):\n VXjJ = uqom.imread(pmON)\n return VXjJ",
"def q5aE(p4m8):\n VXjJ = hiw8.imread(uri=p4m8)\n return VXjJ",
"def q5aE(pmON: str):\n return hnIv.open(pmON, mode='r')",
"def cE34(pmON):\n with open(pmON, 'rb') as eHNT:\n with uGYG.Image.open(eHNT) as VXjJ:\n r... | [
"0.7616772",
"0.75648016",
"0.7546724",
"0.75342935",
"0.7479038",
"0.74596316",
"0.74519426",
"0.7415104",
"0.74105406",
"0.7398279",
"0.7366668",
"0.7277692",
"0.7252496",
"0.72470164",
"0.72344834",
"0.7201172",
"0.7190662",
"0.71878093",
"0.71499544",
"0.71432304",
"0.714... | 0.70335525 | 31 |
Returns a list of Enums to be generated | def YDSF(C9U5):
aVkO = {}
for AZ9c in C9U5:
if AZ9c['field_template'] in ('keyword', 'multi_keyword') and len(AZ9c['include_paths']) == 0:
qQ1Y = bHD7(AZ9c['type_name'], AZ9c['keywords'], is_set=AZ9c['field_template'] == 'multi_keyword')
if AZ9c['field_template'] == 'multi_keywor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVkO(YKHO):\n return YKHO._enums",
"def EcKA(p5ux: Type[Enum]) -> x1iM[str]:\n return [f'{YRbF}: {Ty9i}' for YRbF, Ty9i in enumerate(p5ux)]",
"def hkZ0(YKHO):\n return [qQ1Y.name for qQ1Y in YKHO]",
"def VSTX(YKHO):\n YHhm = []\n zcTP = set()\n RfhR = oRi_(set)\n for qQ1Y in YKHO.enu... | [
"0.7330478",
"0.72526973",
"0.7199668",
"0.71159345",
"0.6931589",
"0.69005865",
"0.6823371",
"0.6605916",
"0.6593142",
"0.6567007",
"0.65318644",
"0.64688665",
"0.64278346",
"0.64026964",
"0.6381322",
"0.63707",
"0.6286862",
"0.62492687",
"0.62078077",
"0.61956257",
"0.61344... | 0.57811064 | 44 |
Create the field used for an inheritance fast path from an independent CSS property, and return the Field object. | def IFKQ(AZ9c):
oAJ7 = LMDn(AZ9c['name_for_methods'], 'is', 'inherited')
return wsY0('inherited_flag', oAJ7, property_name=AZ9c['name'], type_name='bool', wrapper_pointer_name=None, field_template='primitive', size=1, default_value='true', custom_copy=False, custom_compare=False, mutable=False, getter_method_na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcLi(AZ9c, IFpB):\n oAJ7 = AZ9c['name_for_methods']\n assert AZ9c['default_value'] is not None, 'MakeComputedStyleBase requires an default value for all fields, none specified for property ' + AZ9c['name']\n if AZ9c['field_template'] in IFpB:\n VKtK = AZ9c['field_template']\n for Jyyj in... | [
"0.61445683",
"0.6040924",
"0.5959548",
"0.58931154",
"0.56643975",
"0.5626869",
"0.5624341",
"0.5596164",
"0.557545",
"0.5547095",
"0.5470982",
"0.5463084",
"0.5443062",
"0.532899",
"0.5317446",
"0.5310176",
"0.53058094",
"0.530033",
"0.5281374",
"0.5281374",
"0.5279827",
... | 0.57364804 | 4 |
Extract word features for a string x. Words are delimited by whitespace characters only. | def F6qj(WKvO):
ycBG = WKvO.split(',')
return ycBG[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6qj(WKvO):\n jzdc = mBkc(WKvO.split())\n return dict(jzdc)",
"def F38S(l5Ny, CX35):\n V22M = dFss(l5Ny)\n bySB = {}\n for yzQ0 in CX35:\n bySB[yzQ0] = yzQ0 in V22M\n return bySB",
"def dBqc(WKvO, TuL6, w5Ur, eU7V):\n bySB = oyIN.zeros((len(WKvO), eU7V, TuL6.vector_size))\n f... | [
"0.70785135",
"0.65954065",
"0.6439349",
"0.6315796",
"0.6276663",
"0.61085737",
"0.60919505",
"0.6076143",
"0.60335547",
"0.6032559",
"0.60224724",
"0.6022351",
"0.6007156",
"0.6004211",
"0.5999093",
"0.5999053",
"0.59722906",
"0.5948896",
"0.5948854",
"0.59055066",
"0.58796... | 0.7816759 | 0 |
Generate a dataframe with a fixed ratio of positives to negatives by requiring all new edges in label_graph to appear in the dataframe. | def QYMP(YKHO, Xde1, Sg7f=0.5, Pzl_=True, GSgx=False):
kgDL = []
nj3n = oRi_(bool)
mC4V = 0
if Sg7f == 0:
for P6bq, Ty9i in Xde1.nx_graph.edges_iter():
if GSgx:
if P6bq not in YKHO.embeddings or Ty9i not in YKHO.embeddings:
continue
mC4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X7nw(YKHO, Crrw=None):\n WJBc = CwDs.DataFrame([], columns=['low', 'medium', 'high'])\n WJBc.loc[:, 'low'] = 1.0 * (Crrw['damage_grade'].values == 1)\n WJBc.loc[:, 'medium'] = 1.0 * (Crrw['damage_grade'].values == 2)\n WJBc.loc[:, 'high'] = 1.0 * (Crrw['damage_grade'].values == 3)\n return WJBc"... | [
"0.5935969",
"0.5926544",
"0.5922692",
"0.5867431",
"0.58212125",
"0.5566528",
"0.55638695",
"0.55370736",
"0.54879844",
"0.5443996",
"0.5403039",
"0.5362388",
"0.5328311",
"0.53151023",
"0.5299417",
"0.5291811",
"0.5288095",
"0.52510726",
"0.52311814",
"0.52310884",
"0.52198... | 0.4872858 | 63 |
Initialize by grabbing annotated attributes from `dictionary`. | def FIMM(YKHO, cmPJ: dict[str, t.Any]) -> None:
A1Ag = YKHO.__annotations__.keys() - cmPJ.keys()
if A1Ag:
raise KeyError(f'Fetched object lacks expected keys: {A1Ag}')
for ICn2 in YKHO.__annotations__:
setattr(YKHO, ICn2, cmPJ[ICn2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGpS(YKHO, dict):\n for H5ew in dict:\n YKHO.__dict[H5ew] = dict[H5ew]\n YKHO.__nonzero = True",
"def Xgzr(YKHO, cmPJ):\n for H5ew in cmPJ:\n YKHO.__setattr__(H5ew, cmPJ.get(H5ew))",
"def FIMM(YKHO, **azoT):\n for H5ew, BWXx in azoT.items():\n setattr(YKHO, H5ew, BWXx)",
... | [
"0.7230297",
"0.6992777",
"0.69840556",
"0.6982737",
"0.6823576",
"0.67974263",
"0.6732983",
"0.6731098",
"0.6689794",
"0.6618808",
"0.6609053",
"0.6603291",
"0.65694875",
"0.6496791",
"0.6468408",
"0.6468408",
"0.64332145",
"0.6413084",
"0.63765424",
"0.6340011",
"0.632222",... | 0.78623635 | 0 |
Return string representing encripted message. | def mmG7(YKHO, Ol8d):
return YKHO._transform(Ol8d, YKHO._encoder) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mmG7(YKHO, Ol8d):\n return str.translate(Ol8d, YKHO._encoder)",
"def kLcZ(YKHO, Ol8d):\n return Ol8d.encode()",
"def KCNH(YKHO) -> bytes:\n return YKHO.compile_message().serialize()",
"def zspY(YKHO, Ol8d):\n eHNT = jbpC(YKHO.key)\n return eHNT.encrypt(Ol8d.encode())",
"def CFN4(YKHO, Ol... | [
"0.7271884",
"0.7218929",
"0.6881216",
"0.68299156",
"0.6805144",
"0.67404187",
"0.67016965",
"0.666928",
"0.6644596",
"0.6619317",
"0.6617966",
"0.65562344",
"0.64658695",
"0.6451686",
"0.64401907",
"0.6422529",
"0.64206177",
"0.63834715",
"0.6368615",
"0.6338247",
"0.633662... | 0.61440647 | 33 |
Gets the BillingAccountId from config | def xkPa():
if Hy7s.path.exists(Hy7s.getenv('GOOGLE_APPLICATION_CREDENTIALS')):
Rci7 = Hy7s.getenv('GOOGLE_APPLICATION_CREDENTIALS')
with open(Rci7) as eHNT:
Rci7 = qQXR.load(eHNT)
zsGy = Rci7['Config'][0]['Authentication']
RKD7.info(f'Retrieved Billing Account Id locatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E(YKHO):\n return YKHO.config.account_id",
"def e7s3():\n pwBQ = iVGz.client('organizations')\n geh0 = pwBQ.describe_organization()\n return geh0['Organization']['MasterAccountId']",
"def GLga(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -... | [
"0.71688056",
"0.71417135",
"0.64892083",
"0.64892083",
"0.6446725",
"0.6446725",
"0.6446725",
"0.6439616",
"0.6439616",
"0.6409565",
"0.6387285",
"0.6362755",
"0.6362755",
"0.6362755",
"0.6362755",
"0.6362755",
"0.6362755",
"0.6362755",
"0.6362755",
"0.63025385",
"0.63025385... | 0.6538082 | 2 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093693",
"0.8092711",
"0.79585856",
"0.7851594",
"0.7842797",
"0.78244835",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
"0.78108114",
... | 0.77476996 | 32 |
Ensure that two different PQGram Profile are actually the same. Used in later tests to compare dynamically created Profiles against preset Profiles. | def wzoE(YKHO, eyXC, nAOv):
if len(eyXC) != len(nAOv) or len(eyXC[0]) != len(nAOv[0]):
return False
for ZLDn in eyXC:
sjXf = False
for YsF0 in nAOv:
if ZLDn == YsF0:
sjXf = True
break
if sjXf == False:
return False
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzoE(YKHO, eyXC, nAOv):\n if len(eyXC) != len(nAOv) or len(eyXC[0]) != len(nAOv[0]):\n return False\n for ZLDn in eyXC:\n sjXf = False\n for YsF0 in nAOv:\n if ZLDn == YsF0:\n sjXf = True\n break\n if sjXf == False:\n return ... | [
"0.7173993",
"0.6805735",
"0.67792714",
"0.6097838",
"0.58692485",
"0.5791827",
"0.5638295",
"0.5503221",
"0.54368395",
"0.54029185",
"0.536762",
"0.53675735",
"0.535671",
"0.53444594",
"0.5341146",
"0.53021646",
"0.5295202",
"0.5286622",
"0.5228899",
"0.5227843",
"0.52238405... | 0.7128818 | 1 |
Initializes an Oracle to be used for the given sentence. Minimally, it initializes a member variable `actions`, a list that will be updated every time `__call__` is called and a new action is generated. | def FIMM(YKHO, aeQa: Sequence[Dep]):
YKHO.actions = []
YKHO.features_list = []
YKHO.connected_childs = set()
YKHO.dependencies = oRi_(set)
for kbO9 in aeQa:
YKHO.dependencies[kbO9.head].add(kbO9.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN():\n nhfz(query=uz1h['cr_tweet'])\n nhfz(query=uz1h['cr_sentiment'])",
"def FIMM(YKHO, mu5m='', Q_vG=None):\n YKHO.id = ''\n YKHO.searchPhrase = mu5m\n YKHO.intent_actions = Q_vG\n YKHO.es = kXUa()",
"def FIMM(YKHO, Rhv4):\n YKHO._sentences = Rhv4\n YKHO._sentences_processed = ... | [
"0.58447737",
"0.5824861",
"0.5448768",
"0.54443306",
"0.53099823",
"0.5280382",
"0.526281",
"0.524834",
"0.5238433",
"0.5182305",
"0.5171382",
"0.5166722",
"0.51649356",
"0.5087058",
"0.50843054",
"0.5075466",
"0.50646484",
"0.5017349",
"0.49746752",
"0.49718636",
"0.4955755... | 0.0 | -1 |
Draw an ellipse with a given position and covariance | def A40V(dQgj, _IBo, aNZO=None, **B2fa):
aNZO = aNZO or QrM1.gca()
if _IBo.shape == (2, 2):
KkY2, KCHu, UNkU = oyIN.linalg.svd(_IBo)
YylR = oyIN.degrees(oyIN.arctan2(KkY2[1, 0], KkY2[0, 0]))
TVTK, H2v2 = 2 * oyIN.sqrt(KCHu)
else:
YylR = 0
TVTK, H2v2 = 2 * oyIN.sqrt(_I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A40V(dQgj, _IBo, aNZO=None, **B2fa):\n if _IBo.shape == (2, 2):\n KkY2, KCHu, UNkU = oyIN.linalg.svd(_IBo)\n YylR = oyIN.degrees(oyIN.arctan2(KkY2[1, 0], KkY2[0, 0]))\n TVTK, H2v2 = 2 * oyIN.sqrt(KCHu)\n else:\n YylR = 0\n TVTK, H2v2 = 2 * oyIN.sqrt(_IBo)\n for HVUZ ... | [
"0.840408",
"0.83872885",
"0.83385664",
"0.8117954",
"0.7819908",
"0.7780715",
"0.7749703",
"0.7740195",
"0.77339417",
"0.7724917",
"0.771405",
"0.7710944",
"0.7593914",
"0.7255161",
"0.7168584",
"0.71576935",
"0.7078389",
"0.6957663",
"0.69198805",
"0.69095415",
"0.69095415"... | 0.8376353 | 2 |
Compute my distance from the origin | def JpbV(YKHO):
return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def CD5L(YKHO):\n return oyIN.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
"def JpbV(YKHO) -> float:\n return YKHO._distance_from_origin",
"def OZF0(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def Z4u2(YKHO):\n return (YKHO.x ** 2... | [
"0.8565058",
"0.84973544",
"0.8323514",
"0.8296796",
"0.8215572",
"0.7732662",
"0.74226093",
"0.7381035",
"0.7292783",
"0.7264896",
"0.72594285",
"0.7255858",
"0.72473836",
"0.7230952",
"0.7207537",
"0.7149636",
"0.7141725",
"0.71386373",
"0.7136102",
"0.7132502",
"0.71323717... | 0.85663384 | 5 |
Tokenize each row using spaCy and lemmatize all tokens | def w3WG(vIwR: str) -> str:
A97Q = K9NE(vIwR)
st9m = ' '.join([eOtH.lemma_ for eOtH in A97Q if not eOtH.is_stop])
return st9m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUeN(J2us):\n kGys = map(lambda AIu6: AIu6[uwaB.TEXT], J2us)\n FcOa = [dFss(AIu6.lower()) for AIu6 in kGys]\n oO4N = ydeT(FcOa)\n oNFO = list()\n for IxDu in oO4N:\n oNFO.extend(IxDu)\n return oNFO",
"def TdB_(bOBl):\n K9NE = SrFi()\n b0j5 = K9NE.Defaults.create_tokenizer(K9NE)... | [
"0.701306",
"0.6986097",
"0.6865209",
"0.68044204",
"0.67631567",
"0.674077",
"0.6737134",
"0.6729966",
"0.67211527",
"0.67189413",
"0.67109805",
"0.6655042",
"0.6649198",
"0.6634464",
"0.6613286",
"0.6567289",
"0.65643615",
"0.6542479",
"0.6536254",
"0.6516325",
"0.6516325",... | 0.0 | -1 |
read data into pandas dataframe | def ZAQi(eHKs):
NmfV = list(eHKs.iterdir())
for Ux0P in NmfV:
Slbv = rLdf.read_csv(str(Ux0P), sep='\t', encoding='utf-8')
jQ3Z = rLdf.DataFrame(Slbv)
jQ3Z.columns = ['label', 'text']
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fIqG():\n jQ3Z = rLdf.read_csv('data/data.csv', header=0)\n return jQ3Z",
"def ZAQi(YKHO) -> rLdf.DataFrame:\n nPrm = rLdf.read_csv(YKHO.data_path)\n assert isinstance(nPrm, rLdf.DataFrame)\n return nPrm",
"def ZAQi(YKHO) -> rLdf.DataFrame:\n nPrm = rLdf.read_csv(YKHO.data_path)\n asse... | [
"0.7317912",
"0.7204458",
"0.7204458",
"0.7179978",
"0.7019588",
"0.7015765",
"0.69683903",
"0.69651395",
"0.6956185",
"0.6956185",
"0.6956185",
"0.69033307",
"0.68813056",
"0.6867566",
"0.68612397",
"0.68612397",
"0.68385285",
"0.6784176",
"0.6747188",
"0.67383355",
"0.67313... | 0.6361832 | 65 |
Get mailbox config from SSM paramater store | def iObY(YKHO):
YKHO.log_object.write_log('MESH0001', None, {'mailbox': YKHO.mailbox, 'environment': YKHO.environment})
qyzH = hYTz.get_ssm_params(f'/{YKHO.environment}/mesh')
iRYT = hYTz.get_ssm_params(f'/{YKHO.environment}/mesh/mailboxes/{YKHO.mailbox}')
YKHO.params = {**qyzH, **iRYT} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g15C(GPtr):\n VNGN = GPtr\n ScZo = list(VNGN.keys())\n K3od = iVGz.client('ssm')\n S0MI.info(f'Loading configurations from Parameter Store for {GPtr}')\n for Qbjn in ScZo:\n v1gB = VNGN[Qbjn]\n Aofo = K3od.get_parameter(Name=v1gB, WithDecryption=True)\n VNGN[Qbjn] = Aofo['Pa... | [
"0.6167825",
"0.59346735",
"0.59311837",
"0.59073704",
"0.58579004",
"0.58362454",
"0.5784848",
"0.57751316",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396",
"0.5709396... | 0.0 | -1 |
Generate MESH Authorization header for mailboxid. | def NGAg(YKHO, bEAa: str=None, wvUd: int=0):
if not bEAa:
bEAa = str(qxeD.uuid4())
E3oo = qcWV.datetime.now().strftime('%Y%m%d%H%M')
rFux = f'{YKHO.mailbox}:{bEAa}:{str(wvUd)}:' + f'{YKHO.params[BOwm.MAILBOX_PASSWORD]}:{E3oo}'
uq1P = W7gX.HMAC(YKHO.params[BOwm.MESH_SHARED_KEY].encode(), rFux.enc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D02B(YKHO):\n if YKHO.key:\n wISU = YKHO.user + b':' + YKHO.key\n else:\n wISU = YKHO.user + b':'\n zon4 = QMfv(wISU)\n qUPE = zon4.decode('ascii')\n YKHO.basicAuthHeader = {'Authorization': 'Basic ' + qUPE}",
"async def gen_headers(xxQp):\n return {'Authorization': f'Basic {s... | [
"0.67031866",
"0.66252786",
"0.6533902",
"0.6345725",
"0.6195944",
"0.6177111",
"0.61637753",
"0.61637753",
"0.60105246",
"0.5996904",
"0.5980559",
"0.59759873",
"0.5972992",
"0.5958031",
"0.59421545",
"0.59193486",
"0.58982885",
"0.5879134",
"0.58532155",
"0.5847732",
"0.579... | 0.7292366 | 0 |
Returns lists of length batch_size. This can be used on any iterator, for example to batch up SeqRecord objects from Bio.SeqIO.parse(...), or to batch Alignment objects from Bio.AlignIO.parse(...), or simply lines from a file handle. This is a generator function, and it returns lists of the entries from the supplied it... | def se9W(oHE7, Ep8u):
bTKY = True
while bTKY:
Wc9F = []
while len(Wc9F) < Ep8u:
try:
bTKY = next(oHE7)
except StopIteration:
bTKY = None
if bTKY is None:
break
Wc9F.append(bTKY)
if Wc9F:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def se9W(oHE7, Ep8u):\n bTKY = True\n while bTKY:\n Wc9F = []\n while len(Wc9F) < Ep8u:\n try:\n bTKY = oHE7.__next__()\n except StopIteration:\n bTKY = None\n if bTKY is None:\n break\n Wc9F.append(bTKY)\n... | [
"0.7465705",
"0.74528027",
"0.67078733",
"0.66925323",
"0.66754067",
"0.65960926",
"0.6524206",
"0.6478166",
"0.6445739",
"0.6421101",
"0.6420285",
"0.6330645",
"0.62611824",
"0.61926645",
"0.6163195",
"0.6143574",
"0.6098119",
"0.6073899",
"0.6062207",
"0.6034692",
"0.603204... | 0.7410526 | 2 |
Return [timestamp] as [format_time] GMT string. If [timestamp] is None then use current time. | def Tn0Z(E3oo: int=None, ct8j: str=whFJ):
return ITS7.strftime(ct8j, ITS7.gmtime(E3oo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(E3oo=None, format='%Y%m%d-%H%M%S'):\n jmHs = ITS7.strftime(format, ITS7.localtime(E3oo if E3oo else ITS7.time()))\n return jmHs",
"def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')",
"def Rrvb(YKHO, E3oo):\n return ITS7.strftime('%Y%m%d-%H%M%S-%Z', ITS7.localtime(E3oo... | [
"0.77732444",
"0.73521465",
"0.7316761",
"0.7313386",
"0.7092045",
"0.70525587",
"0.7049738",
"0.7035316",
"0.6904726",
"0.68232393",
"0.68192536",
"0.67859054",
"0.67232364",
"0.6686349",
"0.6661031",
"0.6648096",
"0.6648096",
"0.6620401",
"0.66183484",
"0.66183484",
"0.6618... | 0.7519722 | 1 |
Returns the embedding of a grid graph. | def WMcY(r8hN, yDqo=oyIN.float32):
E3D9 = r8hN ** 2
WKvO = oyIN.linspace(0, 1, r8hN, dtype=yDqo)
LVAh = oyIN.linspace(0, 1, r8hN, dtype=yDqo)
CAzz, Jd40 = oyIN.meshgrid(WKvO, LVAh)
epBp = oyIN.empty((E3D9, 2), yDqo)
epBp[:, 0] = CAzz.reshape(E3D9)
epBp[:, 1] = Jd40.reshape(E3D9)
return e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nhS3(YKHO, C3ST):\n wjQX = []\n for Q6kx in range(len(YKHO.graph.nodes())):\n wjQX.append(list(C3ST[str(Q6kx)]))\n wjQX = oyIN.array(wjQX)\n return wjQX",
"def IP7V(YKHO, nPrm):\n ACia = nPrm['cat']\n return YKHO.one_hot_embed(ACia)",
"def eFKZ(YKHO):\n with ZylS.name_scope('Emb... | [
"0.62898034",
"0.62191874",
"0.60477537",
"0.5886965",
"0.58596414",
"0.577232",
"0.5757991",
"0.57542133",
"0.5753683",
"0.57471174",
"0.57323354",
"0.56826603",
"0.5663495",
"0.5634725",
"0.56186706",
"0.54839605",
"0.5480838",
"0.5466624",
"0.5463585",
"0.54391503",
"0.543... | 0.0 | -1 |
If a batch has been loaded, returns a Spark Dataframe containing the data within the loaded batch | def bOBl(YKHO) -> atdS.DataFrame:
if YKHO.batch_manager.active_batch_data is None:
raise ValueError('Batch has not been loaded - please run load_batch() to load a batch.')
return YWvJ(a7M0, YKHO.batch_manager.active_batch_data).dataframe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdJp(HrP9):\n return rLdf.read_sql('select * from churn_model.churn_data;', HrP9)",
"def q8ny(YKHO, wOb_):\n nJ0e = super(TZoo, YKHO).load_stream(wOb_)\n import pyarrow as Xugt\n for Wc9F in nJ0e:\n yield [YKHO.arrow_to_pandas(Z9rn) for Z9rn in Xugt.Table.from_batches([Wc9F]).itercolumns()... | [
"0.61941147",
"0.6190219",
"0.6132202",
"0.6109516",
"0.60395706",
"0.5971409",
"0.5963812",
"0.5911073",
"0.5855866",
"0.58475465",
"0.5794236",
"0.5790668",
"0.5781664",
"0.57514507",
"0.57109165",
"0.5697456",
"0.5695474",
"0.56728345",
"0.5665782",
"0.56521374",
"0.564270... | 0.72456676 | 0 |
Uses a DataFrame and Domain kwargs (which include a row condition and a condition parser) to obtain and/or query a Batch of data. Returns in the format of a Spark DataFrame along with Domain arguments required for computing. If the Domain \ is a single column, this is added to 'accessor Domain kwargs' and used for late... | def cbIR(YKHO, nf4a: dict, e9Yr: Union[str, MetricDomainTypes], bDt5: Optional[Iterable[str]]=None) -> AzJI['pyspark.DataFrame', dict, dict]:
"""
# TODO: <Alex>Docusaurus run fails, unless "pyspark.DataFrame" type hint above is enclosed in quotes.
This may be caused by it becoming great_expectations... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEqY(YKHO, nf4a: dict) -> 'pyspark.DataFrame':\n \"\"\"\n # TODO: <Alex>Docusaurus run fails, unless \"pyspark.DataFrame\" type hint above is enclosed in quotes.\n This may be caused by it becoming great_expectations.compatibility.not_imported.NotImported when pyspark is not installed.\n ... | [
"0.8120844",
"0.6048707",
"0.5950215",
"0.59367865",
"0.5845206",
"0.57713306",
"0.5685307",
"0.5671637",
"0.5649757",
"0.564466",
"0.56275374",
"0.55908084",
"0.5550703",
"0.55055475",
"0.54911",
"0.5481735",
"0.547521",
"0.54710567",
"0.54465115",
"0.54464406",
"0.5393636",... | 0.586721 | 4 |
Construct an Account object for the given owner, given number, and initial balance, in US Dollars (defaults to $0.00). | def FIMM(YKHO, qsJ6, VKNh=0.0):
tHSi.count += 1
YKHO.owner = qsJ6
YKHO.account_number = '%sXY-%s-%08d' % (tHSi.division, tHSi.branch, tHSi.count)
YKHO.balance = VKNh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _8Iw(Z5kt: int):\n return ak03(Z5kt)",
"def FIMM(YKHO, lb7m: str, pl8n: str, KAc2: float):\n super().__init__(lb7m)\n YKHO.bank_name = pl8n\n YKHO.starting_balance = KAc2\n YKHO.current_balance = KAc2",
"def qKg6(Z5kt: float):\n eORF = int(Z5kt * pow(10, 9))\n return ak03(eORF)",
"de... | [
"0.65885645",
"0.6419395",
"0.63592315",
"0.63263553",
"0.6301358",
"0.6292732",
"0.6246223",
"0.6176988",
"0.60891277",
"0.60864514",
"0.6052209",
"0.60520595",
"0.5938293",
"0.59314173",
"0.59303683",
"0.5909801",
"0.58845013",
"0.58335406",
"0.582221",
"0.5797057",
"0.5773... | 0.7403893 | 0 |
To format the expiry ``datetime`` object at your convenience. | def ALTM(iWzb):
DAsM = pHus.EXPIRY_DATETIME_FORMAT
return reci(format=DAsM).to_representation(iWzb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ad72(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_date')",
"def Zb98(YKHO, qcWV):\n return qcWV.isoformat()",
"def jT2f() -> qcWV.datetime:\n return qcWV.datetime.now()",
"def Hrl5(YKHO):\n return YKHO.expiration_date",
"def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.st... | [
"0.6517516",
"0.6467586",
"0.623119",
"0.62275183",
"0.62108237",
"0.61739767",
"0.604218",
"0.6036547",
"0.6026883",
"0.6015831",
"0.6007692",
"0.5996553",
"0.59707093",
"0.5965397",
"0.5957163",
"0.59537226",
"0.5951729",
"0.5924716",
"0.5923562",
"0.59153813",
"0.590324",
... | 0.8084522 | 1 |
To format the expiry ``datetime`` object at your convenience. | def ALTM(iWzb):
DAsM = pHus.EXPIRY_DATETIME_FORMAT
return reci(format=DAsM).to_representation(iWzb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ad72(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_date')",
"def Zb98(YKHO, qcWV):\n return qcWV.isoformat()",
"def jT2f() -> qcWV.datetime:\n return qcWV.datetime.now()",
"def Hrl5(YKHO):\n return YKHO.expiration_date",
"def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.st... | [
"0.6516496",
"0.6465693",
"0.6231666",
"0.6226281",
"0.62099564",
"0.6174253",
"0.6043273",
"0.60352904",
"0.6026429",
"0.6016754",
"0.60084593",
"0.5995285",
"0.59714377",
"0.5962992",
"0.5957824",
"0.5952545",
"0.59524095",
"0.592313",
"0.5922375",
"0.5915873",
"0.5903521",... | 0.8083992 | 0 |
Converts an array of position indices to onehot representation. | def HKfX(FBNX: numpy.ndarray, vdln: int) -> XTiz.ndarray:
Yhla = len(FBNX)
Aofo = XTiz.zeros((Yhla, vdln))
Aofo[XTiz.arange(Yhla), FBNX] = 1
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]",
"def W99O(P680, jTqs=10):\n svPB = P680.shape[0]\n whV7 = oyIN.arange(svPB) * jTqs\n xZkh = oyIN.zeros((svPB, jTqs))\n xZkh.flat[whV7 + P680.ravel()] = 1\n return xZkh",
"def UPru(nPrm, Ybg9):\n ... | [
"0.79452485",
"0.7939188",
"0.7938422",
"0.7938422",
"0.7938422",
"0.7938422",
"0.79127043",
"0.785616",
"0.7756704",
"0.7512997",
"0.74612385",
"0.7460429",
"0.7460429",
"0.74508077",
"0.7430489",
"0.7349784",
"0.7300275",
"0.7295092",
"0.7292091",
"0.72907954",
"0.72596645"... | 0.7977776 | 0 |
Creates variables in fp32, then casts to fp16 if necessary. This function is a custom getter. A custom getter is a function with the same signature as tf.get_variable, except it has an additional getter parameter. Custom getters can be passed as the `custom_getter` parameter of tf.variable_scope. Then, tf.get_variable ... | def IaWP(YKHO, gJdh, mWFP, ROpF=None, *qIxc, **B2fa):
if YKHO.dtype in zLAv:
SRYB = gJdh(mWFP, ROpF, ZylS.float32, *qIxc, **B2fa)
return ZylS.cast(SRYB, dtype=YKHO.dtype, name=mWFP + '_cast')
else:
return gJdh(mWFP, ROpF, YKHO.dtype, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcmx(gJdh, mWFP, ROpF=None, yDqo=None, MuED=None, R5ZC=None, XJsN=True, *qIxc, **B2fa):\n rS67 = ZylS.float32 if XJsN else yDqo\n Es0b = gJdh(mWFP, ROpF, *qIxc, dtype=rS67, initializer=MuED, regularizer=R5ZC, trainable=XJsN, **B2fa)\n if XJsN and yDqo != ZylS.float32:\n Es0b = ZylS.cast(Es0b, y... | [
"0.77795357",
"0.67778546",
"0.67778546",
"0.6704484",
"0.61997455",
"0.60959065",
"0.5969402",
"0.5952168",
"0.59272265",
"0.5917217",
"0.5720231",
"0.5573573",
"0.5573573",
"0.5479989",
"0.5459602",
"0.54420453",
"0.5352729",
"0.5308366",
"0.5292199",
"0.52698094",
"0.52146... | 0.67645115 | 3 |
Initialize weights and bias | def uIcm(YKHO, BzIi='none'):
IddF = YKHO.num_channels * oyIN.prod(YKHO.filter_size)
XNhq = YKHO.num_filters * oyIN.prod(YKHO.filter_size)
muAO = oyIN.sqrt(6.0 / (IddF + XNhq))
yphq = (YKHO.num_filters, YKHO.num_channels) + YKHO.filter_size
YKHO.filters = e89i.shared(oyIN.asarray(oyIN.random.uniform(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO) -> None:\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)",
"def sTi3(YKHO, dIoi, wdin):\n h0Df = [[YKHO.input_size, YKHO.hidden_size[0]], [YKHO.hidden_size[0], YKHO.hidden_size[1]], [YKHO.hidden_size[1], YKHO.output_size]]\n X9xv = [[1, YKHO.hidden_size[0]], [1, ... | [
"0.84367526",
"0.8411315",
"0.83398384",
"0.83388233",
"0.83295226",
"0.82616276",
"0.82555413",
"0.8243034",
"0.8234309",
"0.8220086",
"0.8220086",
"0.8220086",
"0.8199937",
"0.8199937",
"0.8188938",
"0.81879956",
"0.81849605",
"0.8162607",
"0.8162607",
"0.8162607",
"0.81495... | 0.0 | -1 |
Apply argmax on 4D tensor | def dRO0(YKHO, EcVT):
return Kt_s.cast(Kt_s.ge(EcVT, YKHO.relex_level * Kt_s.max(EcVT, axis=1, keepdims=True)), dtype='float32') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1NN(vhpA):\n raise NotImplementedError",
"def max(vhpA, jDK_=None):\n raise NotImplementedError",
"def JtYu(WKvO):\n qC1Y = nMvt.ndim(WKvO)\n if qC1Y == 2:\n return nMvt.softmax(WKvO)\n elif qC1Y == 3:\n tTpl = nMvt.exp(WKvO - nMvt.max(WKvO, axis=-1, keepdims=True))\n K... | [
"0.80028886",
"0.72310567",
"0.6891589",
"0.68120944",
"0.6809317",
"0.67051727",
"0.6588987",
"0.6587543",
"0.6571777",
"0.64923203",
"0.64859015",
"0.64535475",
"0.6448377",
"0.6428148",
"0.64255667",
"0.6404201",
"0.6389808",
"0.638407",
"0.6340535",
"0.6340378",
"0.631562... | 0.0 | -1 |
Testing the Product class' object | def PSBn(YKHO):
YKHO.assertEquals(YKHO.prod_1.pk, 1)
YKHO.assertEquals(YKHO.prod_1.ean, '3350033118072')
YKHO.assertEquals(YKHO.prod_1.name, 'test 1')
YKHO.assertEquals(YKHO.prod_1.nutriscore, 'u')
YKHO.assertEquals(YKHO.prod_1.category, 'cat 1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aeVF(YKHO):\n YKHO.assertEqual(YKHO.test_product.name, YKHO.test_product_name)\n YKHO.assertEqual(YKHO.test_product.price, YKHO.test_product_price)",
"def s3Ci(YKHO):\n QRFO = msfn(name='New Product', price=100, weight=60, flammability=0.9)\n YKHO.assertEqual(QRFO.explode(), '...BABOOM!!')\n Y... | [
"0.83845466",
"0.8000843",
"0.75062335",
"0.74242795",
"0.7416258",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7412037",
"0.7408712",
"0.7372206",
"0.7230011",
"0.7210395",
"0.71079427",... | 0.83841574 | 1 |
Check if there are tiles that are sliding. | def QHNB(YKHO):
for YRbF in range(YKHO.tiles_len):
WKvO, LVAh = YKHO.tilepos[YRbF]
EcVT, fuBA = YKHO.tilePOS[YKHO.tiles[YRbF]]
if WKvO != EcVT or LVAh != fuBA:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gWWQ(YKHO):\n for rdlD in range(Sfqr.rows):\n for fvDH in range(Sfqr.columns):\n if YKHO.board[rdlD][fvDH] == 0:\n return False\n return True",
"def hX51(YKHO):\n PttE = []\n for YRbF in range(len(YKHO.tiles)):\n for r845 in range(len(YKHO.tiles)):\n ... | [
"0.65930706",
"0.638862",
"0.62965345",
"0.61245984",
"0.6120127",
"0.607347",
"0.6063839",
"0.60553825",
"0.60170245",
"0.6007903",
"0.5990519",
"0.5931457",
"0.59222656",
"0.58895385",
"0.58627856",
"0.58527035",
"0.58461946",
"0.5832893",
"0.58315253",
"0.58312386",
"0.582... | 0.8055036 | 0 |
Concatenates all the observable sequences. 1 res = Observable.concat(xs, ys, zs) 2 res = Observable.concat([xs, ys, zs]) Returns an observable sequence that contains the elements of each given sequence, in sequential order. | def ENFq(*qIxc: Union[ObservableBase, Iterable[ObservableBase]]) -> nkvd:
from ..operators.observable.concat import ENFq
return ENFq(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENFq(*Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)",
"def ENFq(Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)",
"def kehB(YKHO, *qIxc):\n if isinstance(qIxc[0], list):\n DumB = qIxc[0]\n else:\n DumB = list(qIxc)\n DumB.insert(0, YKHO)\n return cBwQ.concat(DumB)",
"def E... | [
"0.7238332",
"0.7167098",
"0.7099569",
"0.7039833",
"0.68583626",
"0.6615508",
"0.63579917",
"0.6185098",
"0.6071459",
"0.6019094",
"0.60180134",
"0.6014045",
"0.6009036",
"0.58560336",
"0.58487153",
"0.5834083",
"0.5810778",
"0.58014554",
"0.57798594",
"0.57755494",
"0.57755... | 0.776197 | 0 |
Convert a marble diagram string to an observable sequence, using an optional scheduler to enumerate the events. | def ko45(vIwR: str) -> nkvd:
from ..testing.marbles import ko45
return ko45(vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dixs(qoup: str) -> x1iM[P_ka]:\n return [P_ka(direction=DkWr[0], dist=int(DkWr[1:])) for DkWr in qoup.split(',')]",
"def WC_0(TcPZ):\n bVA9 = PRXd()\n Nqlg = [zFiD.strip() for zFiD in TcPZ.split('\\n')]\n bVA9.transitions = [j7A7(*zFiD.split()) for zFiD in Nqlg[:-1]]\n bVA9.final_states = Nqlg... | [
"0.5569698",
"0.531187",
"0.50459725",
"0.48425665",
"0.48415402",
"0.48367253",
"0.4784225",
"0.4708554",
"0.46952093",
"0.46904787",
"0.4686589",
"0.46717924",
"0.4660843",
"0.4582461",
"0.457833",
"0.45755085",
"0.45656914",
"0.45643985",
"0.45558202",
"0.45454064",
"0.453... | 0.5335665 | 1 |
Returns a nonterminating observable sequence. Such a sequence can be used to denote an infinite duration (e.g. when using reactive joins). Returns an observable sequence whose observers will never get called. | def RSmo() -> nkvd:
from ..operators.observable.never import RSmo
return RSmo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VHuv(YKHO) -> nkvd:\n JZXy = YKHO\n\n def FxIp(LiTy, IesV=None):\n\n def T7oM(BWXx):\n return BWXx.accept(LiTy)\n return JZXy.subscribe_(T7oM, LiTy.on_error, LiTy.on_completed, IesV)\n return GFfw(FxIp)",
"def lsmZ() -> nkvd:\n from ..operators.observable.empty import lsm... | [
"0.54305434",
"0.5403069",
"0.5254239",
"0.52189046",
"0.5106923",
"0.5026279",
"0.4979283",
"0.4974927",
"0.4895316",
"0.48185128",
"0.47756532",
"0.4716944",
"0.4610369",
"0.45916033",
"0.45808548",
"0.45804575",
"0.45765635",
"0.45746127",
"0.45565483",
"0.4554189",
"0.454... | 0.5548675 | 0 |
Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime. | def BEic(EW6X, fRVt) -> nkvd:
from ..operators.observable.using import BEic
return BEic(EW6X, fRVt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MAQ7(AXe8, Tl0b):\n\n @OBr8\n def p_z1(*qIxc):\n Eorv = AXe8(*qIxc)\n try:\n yield Eorv\n finally:\n Tl0b(Eorv)\n return p_z1",
"def ntd0(fRVt: Callable[[Any], ObservableBase]) -> nkvd:\n from ..operators.observable.defer import ntd0\n return ntd0(fRV... | [
"0.55955094",
"0.5593514",
"0.51814985",
"0.51694787",
"0.5079011",
"0.5000184",
"0.49541306",
"0.4931269",
"0.48444688",
"0.4838977",
"0.47772145",
"0.4764979",
"0.47647765",
"0.47512844",
"0.4751263",
"0.47417977",
"0.47372416",
"0.4735242",
"0.4718308",
"0.47150412",
"0.46... | 0.656926 | 0 |
Calculates the Euclidean distance between two points. | def usGr(o4D3, si3g, ajwV, skBL):
Ayfi = epAf.sqrt((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2)
return Ayfi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))",
"def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)",
"def usGr(lCHq, ANJu):\n return oyIN.linalg.norm(oyIN.array(lCHq) - oyIN.array(ANJu))",
"def usGr(o4D3, ajwV):\n return oyIN.sqrt... | [
"0.8550962",
"0.84894866",
"0.842017",
"0.83857816",
"0.836532",
"0.83231467",
"0.8293594",
"0.8259977",
"0.8207562",
"0.8182812",
"0.8158064",
"0.8147019",
"0.8116608",
"0.8050444",
"0.8009833",
"0.7977984",
"0.79753816",
"0.7974776",
"0.7961696",
"0.7955595",
"0.79395825",
... | 0.8295445 | 6 |
Converts the given path into a list of PoseStamped. | def Anbw(_yGr, pmON):
YwlG = []
sQC5.loginfo('Converting path to poses.')
JxeK = mawC(0, 0, 0)
JxeK = R5H8(JxeK[0], JxeK[1], JxeK[2], JxeK[3])
for YRbF in range(len(pmON) - 1):
tO9_ = _WUr()
tO9_.pose.position = fW7F.grid_to_world(_yGr, pmON[YRbF][0], pmON[YRbF][1])
JxeK = ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HTzx(pmON):\n Gcbu = open(pmON)\n a1PO = list()\n for zFiD in Gcbu:\n a1PO += ZOi3(zFiD)\n return a1PO",
"def hNWb(KhKn):\n HANU = KhKn.split(Hy7s.pathsep)\n mmBX = '\\n'.join(HANU)\n return mmBX",
"def BhNN(i0XC):\n dF1J = Hy7s.path.join(i0XC, 'oxts', 'timestamps.txt')\n ... | [
"0.61401564",
"0.5921927",
"0.5751967",
"0.56722283",
"0.5638672",
"0.55092335",
"0.5509118",
"0.5502879",
"0.5502604",
"0.54711443",
"0.54691726",
"0.54654634",
"0.54320896",
"0.54027",
"0.5391929",
"0.5376734",
"0.5361043",
"0.53476495",
"0.53406185",
"0.52886033",
"0.52816... | 0.6523746 | 0 |
Get a string by an user input, if the str is a valid number, return it in num type. | def mkJm():
while True:
j_gG = input('Digite um número para saber o seu fatorial: ').strip()
if j_gG.isnumeric():
return int(j_gG)
else:
print('Valor inválido.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLGw(KCHu: str):\n try:\n return int(KCHu)\n except ValueError:\n return float(KCHu)",
"def E_Xl(tO9_='Provide a number: ', PkJu=int):\n while True:\n try:\n mLGw = PkJu(input(tO9_))\n except ValueError:\n print(f'Whoops!! Please enter a correct numb... | [
"0.72740763",
"0.7191368",
"0.6927254",
"0.68119746",
"0.6803667",
"0.6755699",
"0.6736005",
"0.6728184",
"0.6666828",
"0.6636448",
"0.6605236",
"0.65901506",
"0.65672904",
"0.6513722",
"0.65135723",
"0.64867276",
"0.643773",
"0.6418368",
"0.6395508",
"0.6381024",
"0.63436806... | 0.72914976 | 0 |
Computes a log likelihood ratio testing whether the bins to the left of a position x and to the right of x are drawn from the same poisson distribution. Note, there is no filtering of outliers. And this includes GC correction. | def ZbF9(LVAh, Y7fn, Nv_M=200, zHch=5, CnkA=HwRy.stdout.write):
KgFd = loVk(LVAh)
IqU_ = LVAh.mean()
xrA5 = int(oyIN.round(Nv_M / IqU_)) if IqU_ > 0 else KgFd + 1
if xrA5 > KgFd:
HwRy.stderr.write('look = %d, exceeds MAX_LOOK %d\n' % (xrA5, KgFd))
xrA5 = oyIN.clip(xrA5, zHch, KgFd)
CnkA(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KxcE(YKHO, jQ3Z, Buqe, KQ7o=10):\n Q3Ge = jQ3Z['selected_jig'].values == 1\n range = (n4X5['uae'], n4X5['rec'])\n f3QE = Buqe['mueff_av'].values\n IOe_ = Buqe['rec_arcsec'].values\n W061, Yoxg, PUr8 = oyIN.histogram2d(f3QE, IOe_, range=range, bins=KQ7o)\n fSeS = jQ3Z['uae_obs_jig'].values[Q3G... | [
"0.6233618",
"0.59912854",
"0.5950113",
"0.58592075",
"0.58513784",
"0.5808643",
"0.5651975",
"0.56376",
"0.55860555",
"0.5582757",
"0.55753636",
"0.55621666",
"0.5521014",
"0.5520791",
"0.55127317",
"0.5488472",
"0.5455218",
"0.5441517",
"0.54263043",
"0.5417107",
"0.5406383... | 0.0 | -1 |
Return the specified commit as a symbolic link to commitsbyhash | def yOta(YKHO, jSYO):
return Hy7s.path.join(YKHO.mount, 'commits-by-hash', YKHO._hash_updir(jSYO), jSYO) + '/' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zRB1(N1sj: lmdb.Environment, SZsr: str) -> str:\n GU0_ = fE6q().begin_reader_txn(N1sj)\n ZPyN = AM3B(SZsr)\n with GU0_.cursor() as N1p7:\n Zzpc = N1p7.set_range(ZPyN)\n if Zzpc is True:\n csGm = N1p7.key()\n FERq = ljR3(csGm)\n N1p7.next()\n N1... | [
"0.6456598",
"0.6315783",
"0.62166786",
"0.61285615",
"0.6127595",
"0.60412914",
"0.6023898",
"0.59878755",
"0.59829354",
"0.5933174",
"0.5929886",
"0.5911038",
"0.5872372",
"0.58675146",
"0.58482885",
"0.5842916",
"0.5753739",
"0.5649349",
"0.5647317",
"0.55816686",
"0.55813... | 0.7983223 | 0 |
Creates a matrix of zeroes. | def ZnYu(H2v2, TVTK):
Oa1e = [[0.0 for bGrB in range(TVTK)] for IaaG in range(H2v2)]
return aLMY(Oa1e) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZnYu(H2v2, TVTK):\n Oa1e = [[0.0 for bGrB in range(TVTK)] for IaaG in range(H2v2)]\n return aLMY(Oa1e)",
"def gI_H(YKHO, usx6, WfCS):\n YJrM = []\n for YRbF in range(usx6):\n jbXL = [0 for r845 in range(WfCS)]\n YJrM.append(jbXL)\n return YJrM",
"def fmpe(YKHO, usx6, WfCS):\n ... | [
"0.816446",
"0.8115332",
"0.8112645",
"0.8058636",
"0.7998705",
"0.7998705",
"0.7991481",
"0.7961953",
"0.7903478",
"0.7851954",
"0.7753049",
"0.77253217",
"0.76235515",
"0.75657403",
"0.75162",
"0.7456788",
"0.74495494",
"0.73435724",
"0.73126847",
"0.72773176",
"0.7277003",... | 0.8253079 | 0 |
Take the name of a product and return an object containing the specifications of this product | def CPgS(Lx3t):
Lx3t = '%' + Lx3t + '%'
N1p7.execute('USE openfoodfacts;')
N1p7.execute('SELECT Food.id, Food.name, categories_id, nutri_score, url, stores FROM Food INNER JOIN Categories ON Food.categories_id LIKE Categories.name WHERE Food.name LIKE %s;', Lx3t)
Lx3t = N1p7.fetchone()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, Lx3t, uAHC):\n YKHO.name = mWFP\n YKHO.product = Lx3t\n YKHO.production_volume = uAHC\n YKHO.suppliers = []\n YKHO.costumers = []\n YKHO.production_drop = 0\n YKHO.market_shrinkage = 0\n YKHO.sale_drop = 0\n YKHO.out_edge_capacity_drop = {}\n YKHO.in_edge_capacity... | [
"0.62322193",
"0.6150904",
"0.61288106",
"0.6059199",
"0.59283185",
"0.59100634",
"0.58770084",
"0.58761024",
"0.5846379",
"0.5839438",
"0.5831475",
"0.5829391",
"0.57825124",
"0.57489556",
"0.5742759",
"0.57335204",
"0.5722515",
"0.5627878",
"0.562765",
"0.5610689",
"0.56016... | 0.5812697 | 12 |
Examples >>> round_run_time("59s") '59.0 s' >>> round_run_time("60s") '1.0 m' >>> round_run_time("3599s") '60.0 m' >>> round_run_time("3600s") '1.0 h' | def q5Ct(NDe8):
jFwo = float(NDe8[:-1])
if jFwo < 60:
return f'{jFwo} s'
elif jFwo >= 60 and jFwo < 3600:
return f'{round(jFwo / 60, 1)} m'
else:
return f'{round(jFwo / 3600, 1)} h' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2Xk(kRsb):\n if kRsb < 60:\n return str(kRsb) + ' sec'\n elif kRsb < 60 * 60:\n return str(kRsb / 60) + ' min'\n else:\n return str(kRsb / (60 * 60)) + ' hr'",
"def ZhNM(ITS7):\n XXcz = ITS7.minute % 5\n W3xo = ITS7.second\n oLQB = ITS7.microsecond\n ITS7 = ITS7 - f... | [
"0.63636315",
"0.632777",
"0.62821156",
"0.6234266",
"0.6174446",
"0.60945106",
"0.60767066",
"0.60504675",
"0.603428",
"0.6029421",
"0.6019505",
"0.5986841",
"0.59820724",
"0.59751606",
"0.5960361",
"0.5955153",
"0.59423447",
"0.5929967",
"0.5892549",
"0.5845084",
"0.5804397... | 0.8500661 | 0 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73499966",
"0.7173421",
"0.7126833",
"0.65602446",
"0.64204013",
"0.64052176",
"0.63422555",
"0.6290186",
"0.6282746",
"0.625262",
"0.62499267",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0... | 0.6067737 | 69 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",... | 0.58509433 | 40 |
Converts an ``InputExample`` to token ids and segment ids. twofold inputs 1. [CLS] para [SEP] q [SEP] a 0 0 0 1 1 1 2. [CLS] evidence [SEP] 0 0 0 | def BtrF(ttfM, PU1l, G8d9, msCm, b0j5):
if ttfM < 5:
print('*** Example {} ***'.format(ttfM))
print('qid: {}'.format(PU1l.qid))
Jajo = PU1l.qid
Ec4B = PU1l.evidence
OObJ, PkXt = ([], [])
for DMW6 in Ec4B:
LgXY = b0j5.tokenize(DMW6)
LgXY = LgXY[:msCm - 2]
xcYd,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BtrF(ttfM, PU1l, G8d9, msCm, b0j5):\n if ttfM < 5:\n print('*** Example {} ***'.format(ttfM))\n print('qid: {}'.format(PU1l.qid))\n Jajo = PU1l.qid\n Ec4B = PU1l.ante_evidence\n OObJ, PkXt = ([], [])\n for DMW6 in Ec4B:\n LgXY = b0j5.tokenize(DMW6)\n LgXY = LgXY[:msCm... | [
"0.70893425",
"0.6897168",
"0.68141216",
"0.6357156",
"0.63081753",
"0.63081753",
"0.6199592",
"0.6127808",
"0.61205286",
"0.60528535",
"0.6020083",
"0.60095656",
"0.5896903",
"0.5857811",
"0.5852545",
"0.58286536",
"0.58014333",
"0.58014333",
"0.57913035",
"0.5787212",
"0.57... | 0.7179579 | 0 |
Create a TransferRequestFinisher component. config A dictionary of required configuration values. logger The object the transfer_request_finisher should use for logging. | def FIMM(YKHO, GPtr: Dict[str, str], bo34: Logger) -> None:
super(ByDh, YKHO).__init__('transfer_request_finisher', GPtr, bo34)
YKHO.work_retries = int(GPtr['WORK_RETRIES'])
YKHO.work_timeout_seconds = float(GPtr['WORK_TIMEOUT_SECONDS']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GPtr: Dict[str, str], bo34: Logger) -> None:\n super(YZhh, YKHO).__init__('bundler', GPtr, bo34)\n YKHO.file_catalog_client_id = GPtr['FILE_CATALOG_CLIENT_ID']\n YKHO.file_catalog_client_secret = GPtr['FILE_CATALOG_CLIENT_SECRET']\n YKHO.file_catalog_rest_url = GPtr['FILE_CATALOG_REST_UR... | [
"0.5395955",
"0.5386604",
"0.5328198",
"0.52133393",
"0.518532",
"0.51649624",
"0.5073543",
"0.50508004",
"0.5049396",
"0.5035001",
"0.50187546",
"0.5010802",
"0.4950966",
"0.49137738",
"0.49060217",
"0.48976278",
"0.48858225",
"0.48811722",
"0.48586753",
"0.48498413",
"0.482... | 0.7259807 | 0 |
Create Pipeline instance from dictionary data structure, containing at least "id" and "runs" keys. The "runs" key must have a list of dict, and each dict is parsed using Run.from_data. Raises KeyError if a required key is missing. | def HZHS(Emd4, nPrm):
JjgC = nPrm['runs']
aOxl = nPrm['working_dir']
v3OK = nPrm.get('apps_dir')
NHhN = nPrm.get('tau_profiling', False)
lrbx = nPrm.get('tau_tracing', False)
for Zohj in JjgC:
dADj = Zohj.get('working_dir')
if dADj is None:
dADj = aOxl
elif no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'PipelineDefinition':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd4, nPrm):\n fA3L = {G1Hx: Ty9i for G1Hx, Ty9i in nPrm['params']['requirements'].items()}\n return Emd4(fA3L)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def jG8h(YKHO, nP... | [
"0.62826705",
"0.5836043",
"0.57351434",
"0.5706999",
"0.56834847",
"0.5664038",
"0.56130713",
"0.5518909",
"0.55022204",
"0.54202926",
"0.5388858",
"0.5361477",
"0.52798754",
"0.52520746",
"0.5250068",
"0.52363145",
"0.5198829",
"0.5178344",
"0.5171866",
"0.51331735",
"0.512... | 0.71467227 | 0 |