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 |
|---|---|---|---|---|---|---|
The file position corresponding to this node, expressed as a string | def eNPz(YKHO):
U34r = []
e5FY = YKHO.lineNumber
if e5FY is not None:
U34r.append(str(e5FY))
Cqfc = YKHO.columnNumber
if Cqfc is not None:
U34r.append(str(Cqfc))
return ':'.join(U34r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _up6(YKHO):\n return '%s:%d' % (YKHO.filename, YKHO.line)",
"def uKWF(YKHO):\n YKHO.position_index = YKHO.file_obj.tell()\n return YKHO.position_index",
"def dQgj(YKHO) -> str:\n return YKHO.__position",
"def Iuzb(YKHO):\n YKHO.pos = YKHO.f.tell()\n return YKHO.pos",
"def dQgj(YKHO):\... | [
"0.8049187",
"0.752967",
"0.739177",
"0.7273014",
"0.7230223",
"0.70724386",
"0.70555615",
"0.6884031",
"0.68399036",
"0.67252886",
"0.6700021",
"0.6660264",
"0.66239405",
"0.6614688",
"0.6613097",
"0.65887696",
"0.65887696",
"0.6583525",
"0.6552173",
"0.65517795",
"0.6551779... | 0.7707391 | 1 |
Test get_report_by_id() for various cases. | def _I00(FKL1, RZ0O):
CBIr = c8H2(permission_codenames=FKL1)
if RZ0O:
with trZe.raises(wPvU):
IndJ('test-report', CBIr)
else:
assert IndJ('test-report', CBIr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3tA(YKHO, U7VB):\n return YKHO.api_get(f'/api/report/{U7VB}')",
"def dRh_(YKHO, VJS0, BNW8=False):\n return YKHO.get(YKHO.api_host, '/reports/{}'.format(VJS0), {'extended': BNW8})",
"def cUYk(x0hE, VJS0):\n lU_C = '/reports/' + uRlK.parse.quote(VJS0.encode('utf-8'))\n _hkX = x0hE.http_request(... | [
"0.6998225",
"0.69971335",
"0.6980387",
"0.6964712",
"0.6858094",
"0.67372197",
"0.6612871",
"0.65973496",
"0.65783477",
"0.65783477",
"0.65783477",
"0.65783477",
"0.6564298",
"0.64927703",
"0.6265741",
"0.6252836",
"0.6196126",
"0.61882883",
"0.61682975",
"0.6160864",
"0.612... | 0.68932605 | 4 |
Save user information into database | def IMdO(fZOT):
if fZOT['phone']:
bWtk = ''.join((mLGw for mLGw in fZOT['phone'] if mLGw.isdigit()))
XtVk = '+' + bWtk
else:
XtVk = fZOT['phone']
Q5YQ = mv1M(first_name=fZOT['firstName'], last_name=fZOT['lastName'], password=fZOT['password'], email=fZOT['email'], phone=XtVk)
NCls... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQaj(CBIr):\n CBIr.save_user_details()",
"def qQaj(YKHO):\n B0Ry = \"\\n INSERT INTO users(username, firstname, lastname, phone, email, password, passportUrl, isPolitician, othername, isAdmin) VALUES(\\n '{}', '{}', '{}', '{}', '{}', '{}', '{}', '{}', '{}', '{}'\\n )\".format(Y... | [
"0.83136344",
"0.8217039",
"0.8187149",
"0.8008058",
"0.79777795",
"0.79777795",
"0.79777795",
"0.79756284",
"0.79098475",
"0.78884566",
"0.78884566",
"0.7744772",
"0.77412736",
"0.770018",
"0.76501954",
"0.75699174",
"0.7441565",
"0.7428139",
"0.74110126",
"0.73005253",
"0.7... | 0.0 | -1 |
View function for home page of site. | def d6pt(QePW):
z3Eu = dl5x.objects.all().count()
Ep5Y = dfSM.objects.all().count()
M58r = dfSM.objects.filter(status__exact='a').count()
nM65 = o763.objects.count()
RTwz = QePW.session.get('num_visits', 1)
QePW.session['num_visits'] = RTwz + 1
QpfX = {'num_books': z3Eu, 'num_instances': Ep5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n ... | [
"0.8521128",
"0.8379754",
"0.8353459",
"0.83415544",
"0.83415544",
"0.83171177",
"0.830583",
"0.8298624",
"0.8296122",
"0.8263442",
"0.8224959",
"0.8217078",
"0.8206788",
"0.81901366",
"0.81901366",
"0.8182092",
"0.8176577",
"0.81756383",
"0.8147583",
"0.81347877",
"0.8134787... | 0.0 | -1 |
Creates the placeholders for the tensorflow session. | def ajAQ(jOu6, GKv7, dtin, TFPw):
EcVT = ZylS.placeholder(ZylS.float32, shape=[None, jOu6, GKv7, dtin])
fuBA = ZylS.placeholder(ZylS.int32, shape=[None, jOu6, GKv7, TFPw])
return (EcVT, fuBA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajAQ(YKHO):\n YKHO.user_list = ZylS.placeholder(ZylS.int32, [None], name='user_list_placeholder')\n YKHO.prod_list = ZylS.placeholder(ZylS.int32, [None], name='product_list_placeholder')\n YKHO.label_list = ZylS.placeholder(ZylS.float32, [None, 1], name='label_list_placeholder')\n YKHO.treatment_pr... | [
"0.7913667",
"0.75698566",
"0.75386786",
"0.75360644",
"0.7528334",
"0.7514339",
"0.7508823",
"0.74458563",
"0.73841095",
"0.7383416",
"0.7373823",
"0.7333247",
"0.7266518",
"0.7261225",
"0.72566026",
"0.72531605",
"0.72456115",
"0.7227042",
"0.720735",
"0.71915203",
"0.71863... | 0.68110913 | 47 |
Get an album's browseId based on its audioPlaylistId | def KO5e(YKHO, fkqo: str) -> str:
NArs = {'list': fkqo}
geh0 = YKHO._send_get_request(WTeJ + '/playlist', NArs)
hHld = ZbWC.findall('\\"MPRE.+?\\"', geh0.text)
wNbo = None
if len(hHld) > 0:
wNbo = hHld[0].encode('utf8').decode('unicode-escape').strip('"')
return wNbo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m81Q(YKHO, wEf2):\n return YKHO._get_id(YKHO._by_album, wEf2)",
"def bZQz(l1sc):\n pass",
"def Nhr8(YKHO, BU8C):\n for wphz in YKHO._albums:\n if wphz.id == BU8C:\n return wphz\n return None",
"def z5Mp(FJN7):\n if AY4k.search(FJN7, 1)['tracks']['items']:\n x9qt = ... | [
"0.70690733",
"0.64728963",
"0.62603045",
"0.6235152",
"0.6219651",
"0.6217574",
"0.6150815",
"0.6056205",
"0.60420406",
"0.59608006",
"0.5886931",
"0.5854274",
"0.5847093",
"0.58078456",
"0.58017397",
"0.57795113",
"0.5766119",
"0.5758085",
"0.57577306",
"0.57476777",
"0.573... | 0.8152988 | 0 |
CORS Preflight response code | def xAU6(YKHO):
YKHO.set_status(200)
YKHO.finish() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mk9p(geh0, *qIxc, **B2fa):\n geh0.set_header('Access-Control-Allow-Origin', '*')",
"def DfZl(YKHO, QePW):\n MOPg = QePW.headers\n hLRM = MOPg.get('Origin', '')\n NKcE = MOPg.get('Access-Control-Request-Method', '').upper()\n if NKcE and NKcE in YKHO.accepted_methods:\n return jA2G.Respo... | [
"0.7004737",
"0.6999523",
"0.69945073",
"0.6926629",
"0.69018924",
"0.68830603",
"0.68616927",
"0.6851121",
"0.68305737",
"0.6824218",
"0.680453",
"0.68001395",
"0.6772074",
"0.6760897",
"0.67172915",
"0.66978824",
"0.66837615",
"0.6674107",
"0.6602508",
"0.65967023",
"0.6559... | 0.0 | -1 |
get pretrained model list from cls_PRETRAINED_MODEL_ARCHIVE_LIST | def wZJO():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSIt() -> h8nf[x1iM[sWYP]]:\n return None",
"def tLPo(YKHO) -> cuzp[str, str]:\n try:\n _N0S = '{}_{}_pretrained_models'.format(YKHO.task, YKHO.model_format)\n exec('from .pretrained_models import {}'.format(_N0S))\n FYrf = U8Lr(locals()[_N0S])\n except Exception as e:\n ... | [
"0.7120224",
"0.68675673",
"0.63308597",
"0.62999284",
"0.6291697",
"0.628296",
"0.6274071",
"0.6195216",
"0.6194509",
"0.6194509",
"0.6194509",
"0.6113829",
"0.60968953",
"0.60272187",
"0.59815013",
"0.5977703",
"0.59441996",
"0.59175014",
"0.5869355",
"0.5830137",
"0.582938... | 0.6534919 | 2 |
get pretrained model list from cls.pretrained_init_configuration | def NFqK():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSIt() -> h8nf[x1iM[sWYP]]:\n return None",
"def tLPo(YKHO) -> cuzp[str, str]:\n try:\n _N0S = '{}_{}_pretrained_models'.format(YKHO.task, YKHO.model_format)\n exec('from .pretrained_models import {}'.format(_N0S))\n FYrf = U8Lr(locals()[_N0S])\n except Exception as e:\n ... | [
"0.76428694",
"0.7172571",
"0.6853946",
"0.6853946",
"0.6853946",
"0.67816174",
"0.6599865",
"0.65464944",
"0.65016764",
"0.6498357",
"0.6488039",
"0.62913907",
"0.6245311",
"0.6222192",
"0.62199885",
"0.6206094",
"0.618039",
"0.61680496",
"0.6167274",
"0.61555684",
"0.612549... | 0.0 | -1 |
Take all float/integer columns and join to new dataframe | def u5ge(g9YC=PoTD, qXz5=tqS9, sa6n=IHG9):
qXz5 = qXz5.reindex(g9YC.index)
from math import log10, floor
for dy_H in g9YC:
if g9YC.dtypes[dy_H].name == 'int64' or g9YC.dtypes[dy_H].name == 'float64':
qXz5[dy_H] = g9YC[dy_H].copy()
else:
continue
return qXz5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOOY(tei0, PjZ9, jQ3Z):\n jQ3Z[tei0] = jQ3Z[tei0].astype('int32')\n jQ3Z[PjZ9] = jQ3Z[PjZ9].astype('float32')",
"def R1Wa(jQ3Z):\n for H5ew in RUms:\n jQ3Z[H5ew] = jQ3Z[H5ew].astype(float)\n return jQ3Z",
"def MvOq(jQ3Z):\n uqC_ = jQ3Z.copy()\n JlvM = jQ3Z.select_dtypes(include=['i... | [
"0.6710516",
"0.66203403",
"0.65816176",
"0.6567905",
"0.65118587",
"0.64856845",
"0.6451284",
"0.6385882",
"0.6358247",
"0.63543504",
"0.6331265",
"0.631586",
"0.61849797",
"0.6116238",
"0.6115979",
"0.6109499",
"0.6046056",
"0.59749097",
"0.5932165",
"0.5932165",
"0.5901720... | 0.6368598 | 8 |
Take all float/integer columns and join to new dataframe | def u5ge(g9YC=PoTD, qXz5=tqS9, sa6n=IHG9):
qXz5 = qXz5.reindex(g9YC.index)
from math import log10, floor
for dy_H in g9YC:
if g9YC.dtypes[dy_H].name == 'int64' or g9YC.dtypes[dy_H].name == 'float64':
qXz5[dy_H] = g9YC[dy_H].copy()
else:
continue
return qXz5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOOY(tei0, PjZ9, jQ3Z):\n jQ3Z[tei0] = jQ3Z[tei0].astype('int32')\n jQ3Z[PjZ9] = jQ3Z[PjZ9].astype('float32')",
"def R1Wa(jQ3Z):\n for H5ew in RUms:\n jQ3Z[H5ew] = jQ3Z[H5ew].astype(float)\n return jQ3Z",
"def MvOq(jQ3Z):\n uqC_ = jQ3Z.copy()\n JlvM = jQ3Z.select_dtypes(include=['i... | [
"0.6710516",
"0.66203403",
"0.65816176",
"0.6567905",
"0.65118587",
"0.64856845",
"0.6451284",
"0.6385882",
"0.6368598",
"0.6358247",
"0.63543504",
"0.6331265",
"0.61849797",
"0.6116238",
"0.6115979",
"0.6109499",
"0.6046056",
"0.59749097",
"0.5932165",
"0.5932165",
"0.590172... | 0.631586 | 12 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665067",
"0.7684247",
"0.72099316",
"0.69695336",
"0.6875455",
"0.6853435",
"0.6750787",
"0.6750787",
"0.67278194",
"0.67196035",
"0.6668564",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.64316285",
"0.6425204",
"0.6368609",
"0.6366865... | 0.65216684 | 20 |
Create an instance of V1TFJob from a dict | def jG8h(Emd4, YEnM: dict) -> Rf8y:
if YEnM is None:
return None
if type(YEnM) is not dict:
return Rf8y.parse_obj(YEnM)
UTAq = Rf8y.parse_obj({'kind': YEnM.get('kind') if YEnM.get('kind') is not None else 'tfjob', 'clean_pod_policy': YEnM.get('cleanPodPolicy'), 'scheduling_policy': kKCc.from... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, nMY2: str) -> Rf8y:\n return Emd4.from_dict(qQXR.loads(nMY2))",
"def jG8h(Emd4, YEnM: dict) -> Jnke:\n if YEnM is None:\n return None\n if type(YEnM) is not dict:\n return Jnke.parse_obj(YEnM)\n UTAq = Jnke.parse_obj({'kind': YEnM.get('kind') if YEnM.get('kind') is not No... | [
"0.80366045",
"0.7497089",
"0.74594456",
"0.7404249",
"0.73587734",
"0.72441953",
"0.71945333",
"0.71081394",
"0.69573396",
"0.68958426",
"0.68400866",
"0.6799333",
"0.679124",
"0.6620221",
"0.65894085",
"0.65867835",
"0.65743935",
"0.65570396",
"0.65455556",
"0.64993984",
"0... | 0.8244631 | 0 |
flatten a list of lists | def PWgb(ZIkc):
return [WKvO for A3OT in ZIkc for WKvO in A3OT] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in X... | [
"0.8769213",
"0.85355073",
"0.85355073",
"0.85355073",
"0.8494217",
"0.8488516",
"0.84780353",
"0.84780353",
"0.84780353",
"0.8461394",
"0.84504247",
"0.8449729",
"0.8445357",
"0.844094",
"0.8403989",
"0.8396269",
"0.8382797",
"0.83824486",
"0.834725",
"0.8318616",
"0.8293876... | 0.78670007 | 62 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
print('------- Popular times of travel -------')
XYie = jQ3Z['month'].mode()[0]
print('Most common month: ' + uwPW[XYie].title())
xt_g = jQ3Z['day_of_week'].mode()[0]
print('most common day of we... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.760457 | 35 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('------- Popular stations and trip -------')
bTuL = jQ3Z['Start Station'].mode()[0]
print('most common start station: ' + bTuL)
Nj0t = jQ3Z['End Station'].mode()[0]
print('most common end ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.72450495 | 65 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('------- Trip duration -------')
bJiw = jQ3Z['Trip Duration'].sum()
print('Total travel time: ' + str(bJiw))
RB_u = jQ3Z['Trip Duration'].mean()
print('Average travel time: ' + str(RB_u))
print('\nThis too... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82516754",
"0.8146482",
"0.8095984",
"0.80120844",
"0.79869586",
"0.7983244",
"0.7978337",
"0.7969659",
"0.7964662",
"0.7963039",
"0.79611284",
"0.7960862",
"0.79516",
"0.7948492",
"0.79436684",
"0.793671",
"0.79231024",
"0.79199594",
"0.7919324",
"0.7918097",
"0.7917122",... | 0.78142315 | 86 |
Given a run path, return the parent directory for its experiment. | def YmlT(YKHO, jHU4):
_AKB = gmqI(jHU4)
if Hy7s.path.basename(_AKB) == gHCP.TRASH_FOLDER_NAME:
return gmqI(_AKB)
return _AKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, pmON):\n return Hy7s.path.dirname(pmON)",
"def psZw():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), Hy7s.path.pardir))",
"def I1N9(AesY):\n return Hy7s.path.dirname(AesY)",
"def slOJ(pmON):\n YRHf = pmON.split('/')\n if len(YRHf) > 2:\n NmVZ = '/'.jo... | [
"0.72881293",
"0.72680455",
"0.71497333",
"0.7088042",
"0.70466834",
"0.69878536",
"0.6955093",
"0.69176364",
"0.6912612",
"0.68781626",
"0.68768096",
"0.6831955",
"0.6769467",
"0.67480713",
"0.6702258",
"0.66559094",
"0.6632416",
"0.6607782",
"0.66002476",
"0.656307",
"0.655... | 0.81606334 | 0 |
Returns the array arr sorted using the quick sort algorithm >>> import random >>> unordered = [i for i in range(5)] >>> random.shuffle(unordered) >>> quick_sort(unordered) [0, 1, 2, 3, 4] | def lguw(ezWE):
HFDh = []
InF8 = []
_5Kr = []
if len(ezWE) < 1:
return ezWE
csQL = ezWE[len(ezWE) // 2]
for mLGw in ezWE:
if mLGw < csQL:
HFDh.append(mLGw)
elif mLGw == csQL:
InF8.append(mLGw)
elif mLGw > csQL:
_5Kr.append(mLGw)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vdyO(ezWE):\n return CnOE(ezWE, 0, len(ezWE))",
"def lguw(ezWE):\n if ezWE is None:\n return\n exwG = len(ezWE)\n if exwG <= 1:\n return\n uXoo.do_quick_sort(ezWE, 0, exwG - 1)",
"def gvsU(ezWE):\n from Sorting.QuickSorting import QuickSort\n vdyO = QuickSort(ezWE)\n v... | [
"0.84821844",
"0.8295894",
"0.81022036",
"0.80501",
"0.7834053",
"0.7808921",
"0.7691824",
"0.76900244",
"0.7662836",
"0.76246595",
"0.7616341",
"0.75801826",
"0.7557638",
"0.75480396",
"0.750962",
"0.74949527",
"0.7478996",
"0.746888",
"0.74508786",
"0.7446082",
"0.7426422",... | 0.7459227 | 18 |
test_add_and_update_attributes Tests that attributes can be added and updated to an instance | def dHG9(YKHO):
YEnM = YKHO.new_inst
YKHO.assertFalse(hasattr(YEnM, 'number'))
YEnM.number = 90
YEnM.name = 'game'
YKHO.assertEqual(YKHO.new_inst.name, 'game')
YKHO.assertTrue(hasattr(YKHO.new_inst, 'number'))
YEnM.name = 'fun game'
YKHO.assertEqual(YKHO.new_inst.name, 'fun game')
de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUDI(YKHO):\n pass",
"def oZWf(YKHO):\n pass",
"def zqv4(YKHO):\n zDmb = {'name': 'Betty', 'last': 'Holberton', 'age': 40}\n bWRQ = cKBo()\n for H5ew, BWXx in zDmb.items():\n setattr(bWRQ, H5ew, BWXx)\n for H5ew, BWXx in zDmb.items():\n YKHO.assertTrue(hasattr(bWRQ, H5ew))\n... | [
"0.7779104",
"0.74627846",
"0.7102494",
"0.70238227",
"0.68553585",
"0.681108",
"0.66685647",
"0.66685647",
"0.6645845",
"0.6645845",
"0.65674543",
"0.65537107",
"0.65308094",
"0.6485622",
"0.6448829",
"0.6443791",
"0.64270014",
"0.63959885",
"0.6383126",
"0.6367572",
"0.6358... | 0.7527789 | 1 |
Create a device client from a connection string | def GxJQ(nKh8, m4gH, EkEF=None):
if DTsL.request.is_json:
EkEF = GIX6.from_dict(DTsL.request.get_json())
return HUL9.create_from_connection_string_sync(nKh8, m4gH, EkEF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkWQ(YtR6):\n return aF_H(iT8m.parse(YtR6))",
"def kkWQ(Emd4, YtR6: str, *, clva: Union[str, ApiVersion]=RDNu, **B2fa: Any) -> 'DeviceProvisioningClient':\n bwWd = RMI6(YtR6)\n for G1Hx in ['hostname', 'sharedaccesskeyname', 'sharedaccesskey']:\n if not bwWd.get(G1Hx):\n raise Valu... | [
"0.82400787",
"0.7190445",
"0.6645795",
"0.6597394",
"0.657964",
"0.6491231",
"0.64871883",
"0.6468186",
"0.6354422",
"0.6314115",
"0.6283885",
"0.62674206",
"0.625128",
"0.62275296",
"0.62221396",
"0.6121921",
"0.61148643",
"0.6085466",
"0.60602504",
"0.6027644",
"0.6024142"... | 0.7120976 | 2 |
Accessor method to return the value of the F product. If k is specified, return F_{mk} (product over all but k), else return F_{m} (product over all k). If update=True, recalculate F before returning the result and cache the new matrix. Returned array is one row per observation. | def XugF(YKHO, G1Hx=None, QdZT=False):
if not YKHO.latents:
return 1
if QdZT:
wHcb = YKHO.Nframe['unit']
rxEN = YKHO.Nframe['time']
Y7fn = YKHO.nodes['segmodel'].nodes['z'].z[1]
EhIg = YKHO.nodes['fr_latents'].expected_x()
if G1Hx is not None:
Ud7_ = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def noX1(k0lF, G1Hx):\n tjUW = VJPh(k0lF)\n for YRbF in range(len(k0lF)):\n for r845 in range(len(k0lF[0])):\n tjUW[YRbF][r845] *= G1Hx\n return tjUW",
"def E_tF(YKHO, G1Hx):\n return YKHO.multiply(G1Hx)",
"def DkiE(YKHO):\n jzdc = oyIN.asfortranarray(oyIN.random.randn(E3D9, yw... | [
"0.58484954",
"0.56681037",
"0.5659262",
"0.56578064",
"0.56417793",
"0.55594265",
"0.5543763",
"0.54629344",
"0.54447865",
"0.5422079",
"0.5379939",
"0.53756547",
"0.53673244",
"0.5351118",
"0.5336557",
"0.5309058",
"0.5308866",
"0.528333",
"0.5280842",
"0.5211229",
"0.52069... | 0.7063014 | 0 |
Return lcm of args. | def BsJX(*qIxc):
return Pusg(mvDe, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(*qIxc):\n return Pusg(FlPi, qIxc)",
"def EIJH(*qIxc):\n \"\"\"Return lcm of args.\"\"\"\n return Pusg(BsJX, qIxc)",
"def BsJX(YKHO, FiiE):\n Aofo = epAf.lcm(FiiE)\n return YKHO.convert_int(Aofo)",
"def EIJH(*qIxc):\n return Pusg(BsJX, qIxc)",
"def EIJH(*qIxc):\n return Pusg(Bs... | [
"0.8637843",
"0.84039664",
"0.8352499",
"0.8100082",
"0.80659294",
"0.80659294",
"0.80659294",
"0.80659294",
"0.80347955",
"0.8025947",
"0.78631073",
"0.77310413",
"0.7437174",
"0.72637033",
"0.72541976",
"0.72505105",
"0.7136359",
"0.71211827",
"0.7101193",
"0.6971853",
"0.6... | 0.84988964 | 1 |
Add edges to board | def Vt3M(iBIi: numpy.ndarray, UHFx: int) -> XTiz.ndarray:
exwG = iBIi.shape[0]
tjUW = -XTiz.ones((exwG + 2 * UHFx, exwG + 2 * UHFx), dtype=int)
tjUW[UHFx:exwG + UHFx, UHFx:exwG + UHFx] = iBIi
tjUW[:UHFx, :] = 0
tjUW[-UHFx:, :] = 0
tjUW[:, :UHFx] = 1
tjUW[:, -UHFx:] = 1
tjUW[:UHFx, :UHFx]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6gY(YKHO):\n for YRbF in range(1, 8):\n for r845 in range(1, 8):\n tlxW = YKHO.board[YRbF - 1][r845]\n LFlW = YKHO.board[YRbF][r845 - 1]\n _tIi = YKHO.board[YRbF][r845 + 1]\n es2x = YKHO.board[YRbF + 1][r845]\n A_IW = [tlxW, LFlW, _tIi, es2x]\n ... | [
"0.75347567",
"0.7362338",
"0.7362338",
"0.7361334",
"0.7267965",
"0.70366096",
"0.6996196",
"0.6893501",
"0.68645954",
"0.68437153",
"0.684174",
"0.6819052",
"0.67961836",
"0.67758036",
"0.6745643",
"0.6701699",
"0.66945875",
"0.6681264",
"0.66795874",
"0.6599932",
"0.656721... | 0.71186924 | 5 |
Clean a first name. | def aSeI(c9ua):
return XKrx(c9ua.decode()).capitalize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ej3S(YKHO):\n BWXx = YKHO.cleaned_data.get('firstname', '')\n BWXx = BWXx.strip()\n return BWXx",
"def Butt(YKHO):\n c9ua = YKHO.cleaned_data.get('first_name')\n if c9ua:\n if any([sZqf for sZqf in c9ua if not sZqf.isalpha() and (not sZqf.isspace())]):\n raise H6V6.Validation... | [
"0.79799545",
"0.7927974",
"0.7852392",
"0.75662047",
"0.7502701",
"0.734553",
"0.71590984",
"0.7143765",
"0.7119246",
"0.7096832",
"0.7094436",
"0.7091297",
"0.7087772",
"0.7067576",
"0.7067161",
"0.701907",
"0.69572145",
"0.6941658",
"0.69269365",
"0.6905173",
"0.6893299",
... | 0.78257 | 3 |
Add jitter to matrix of data, proportional to standard deviation of each column, with scale factor r. | def bHg_(WKvO, Mkmy=0.1):
return WKvO + oyIN.random.rand(*WKvO.shape) * oyIN.std(WKvO)[None, :] * Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2Ai(jQ3Z, bHg_):\n return abs(jQ3Z + oyIN.random.normal(jQ3Z, bHg_, size=len(jQ3Z)))",
"def G_t3(jQ3Z, iVRZ, bHg_=1):\n jQ3Z[iVRZ] += oyIN.random.uniform(-bHg_, bHg_, size=len(jQ3Z))",
"def bHg_(exwG, yGTL=0, WTkW=0.1):\n return exwG + oyIN.random.normal(yGTL, WTkW, 1)",
"def cL6U(WKvO, WTkW, y... | [
"0.66484326",
"0.6036848",
"0.58950764",
"0.5861898",
"0.57222396",
"0.57043165",
"0.56229097",
"0.5585625",
"0.5551941",
"0.55094707",
"0.54572326",
"0.5445121",
"0.54046834",
"0.5388191",
"0.5376978",
"0.53764033",
"0.5310789",
"0.52484125",
"0.5239982",
"0.5237044",
"0.520... | 0.7570146 | 0 |
Pack contours into lists that can be sent to jython overlay_contours | def TMus(Iowl):
HNC5 = [(0.5 + Z9rn).T.tolist() for Z9rn in Iowl]
return HNC5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWvP(YKHO) -> x1iM[rSWe]:\n hLRM, ZHfW = (YKHO.origin, YKHO.data)\n if BdCl(XC5k.__version__) >= BdCl('4.0.0'):\n Iowl, mAm6 = XC5k.findContours(ZHfW.astype(oyIN.uint8), mode=XC5k.RETR_CCOMP, method=XC5k.CHAIN_APPROX_SIMPLE)\n else:\n bGrB, Iowl, mAm6 = XC5k.findContours(ZHfW.astype(oyIN... | [
"0.6710401",
"0.6685556",
"0.6590295",
"0.6555233",
"0.6459963",
"0.6428706",
"0.63254935",
"0.63254935",
"0.6245566",
"0.62295157",
"0.61119956",
"0.5999368",
"0.59748983",
"0.59466827",
"0.5941014",
"0.5917581",
"0.59049845",
"0.59010005",
"0.58867663",
"0.5875907",
"0.5835... | 0.77729046 | 0 |
Apply a function that expects 2D input to the trailing two dimensions of an array. The function must output an array whose shape depends only on the input shape. | def Y8sO(eHNT, ezWE, *qIxc, **B2fa):
MKlR, yzQ0 = ezWE.shape[-2:]
rGCG = ezWE.reshape((-1, MKlR, yzQ0))
l4Mt = []
for f4IJ in rGCG:
l4Mt += [eHNT(f4IJ, *qIxc, **B2fa)]
oLRV = ezWE.shape[:-2] + l4Mt[0].shape
return oyIN.array(l4Mt).reshape(oLRV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ior9(ezWE):\n if ezWE.ndim > 1:\n return ezWE\n else:\n return ezWE[:, oyIN.newaxis]",
"def cuDt(ezWE):\n if ezWE.ndim == 0:\n return ezWE[oyIN.newaxis, oyIN.newaxis]\n elif ezWE.ndim == 1:\n return ezWE[oyIN.newaxis, :]\n elif ezWE.ndim == 2:\n return ezWE\n... | [
"0.6584515",
"0.65664357",
"0.6540939",
"0.64607835",
"0.6388328",
"0.62437946",
"0.62057364",
"0.61733997",
"0.61248803",
"0.6113571",
"0.59756947",
"0.5926141",
"0.58925056",
"0.5883619",
"0.5883619",
"0.5876323",
"0.5865842",
"0.57995003",
"0.57983047",
"0.5790586",
"0.578... | 0.0 | -1 |
Alternative to scipy.stats.skew() Computes the skewness of the supplied series or DataFrame Returns a float or a series | def kbKl(Mkmy):
j1mm = Mkmy - Mkmy.mean()
arj7 = Mkmy.std(ddof=0)
kLQb = (j1mm ** 3).mean()
return kLQb / arj7 ** 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbKl(zgsA):\n from scipy.stats import skew\n Kxs4 = skew(zgsA)\n return Kxs4",
"def kbKl(qw7D):\n\n def lwh6(KCHu):\n exwG = len(KCHu)\n fijz = 0.0\n d4eW = 0.0\n WzCH = 0.0\n for WKvO in KCHu:\n fijz += WKvO\n d4eW += WKvO ** 2\n ... | [
"0.77930456",
"0.7390358",
"0.730167",
"0.72120863",
"0.71744317",
"0.71118313",
"0.7058571",
"0.70103115",
"0.6917583",
"0.68518066",
"0.68417877",
"0.6818662",
"0.6730159",
"0.6550524",
"0.6545448",
"0.65227383",
"0.635601",
"0.6347618",
"0.6306303",
"0.62836826",
"0.626634... | 0.70906496 | 6 |
Add two integer NumPy arrays elementwise. | def SEiB(WKvO, LVAh):
return BUrr.np_int32_add_wrap(WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(WKvO, LVAh):\n return oyIN.add(WKvO, LVAh)",
"def NRJ7(WKvO, LVAh):\n if len(WKvO) != len(LVAh):\n raise ValueError('Both arrays must have the same length.')\n epBp = []\n for A3mO, ijL8 in zip(WKvO, LVAh):\n epBp.append(A3mO + ijL8)\n return epBp",
"def NRJ7(i3LB, fQvb):\... | [
"0.7231448",
"0.7197345",
"0.7119008",
"0.7073683",
"0.6896912",
"0.68561816",
"0.68229914",
"0.6736029",
"0.6729683",
"0.6714523",
"0.6696362",
"0.6676487",
"0.66117567",
"0.6593151",
"0.6585819",
"0.6585819",
"0.6585819",
"0.6504243",
"0.6468447",
"0.6430037",
"0.6399719",
... | 0.7608404 | 0 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO._start_state",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n r... | [
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.74344724",
"0.742334",
"0.7328245",
"0.72898334",
"0.72821885",
"0.72821885",
"0.7278382",
"0.7248571",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
... | 0.0 | -1 |
Returns set of all possible actions (i, j) available on the board. | def xASv(iBIi):
wN_a = set()
for YRbF in range(3):
for r845 in range(3):
if iBIi[YRbF][r845] == KAvf:
wN_a.add((YRbF, r845))
return wN_a | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp",
"def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe... | [
"0.8078164",
"0.7935423",
"0.7917879",
"0.7912585",
"0.78729856",
"0.7766741",
"0.77509874",
"0.77447766",
"0.7738995",
"0.7731153",
"0.7730132",
"0.7709082",
"0.77006704",
"0.76862395",
"0.7676969",
"0.76713663",
"0.7665846",
"0.7642262",
"0.7634384",
"0.7632887",
"0.7630382... | 0.7654127 | 17 |
Returns the winner of the game, if there is one. | def bHVe(iBIi):
for rdlD in iBIi:
if rdlD.count(EcVT) == 3:
return EcVT
elif rdlD.count(LTX_) == 3:
return LTX_
mtCH = 3 * [3 * [0]]
for YRbF in range(3):
for r845 in range(3):
mtCH[YRbF][r845] = iBIi[r845][YRbF]
for r845 in range(3):
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None",
"def ND5o(YKHO):\n return YKHO.win_conditions()[0]",
"def bHVe(YKHO):\n return YKHO.board.winner()",
"def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\... | [
"0.84205395",
"0.83575505",
"0.82868236",
"0.81987756",
"0.81987756",
"0.8168628",
"0.81224376",
"0.805871",
"0.7971006",
"0.79522294",
"0.7909224",
"0.789483",
"0.78946227",
"0.78887254",
"0.78633344",
"0.7850654",
"0.7850211",
"0.78320843",
"0.7811322",
"0.7769718",
"0.7765... | 0.0 | -1 |
Returns 1 if X has won the game, 1 if O has won, 0 otherwise. | def f7Dd(iBIi):
if bHVe(iBIi) == EcVT:
return 1
elif bHVe(iBIi) == LTX_:
return -1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL",
"def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +... | [
"0.77431494",
"0.7665777",
"0.7627669",
"0.76235044",
"0.74548364",
"0.744333",
"0.7343317",
"0.73383707",
"0.73096186",
"0.7305894",
"0.7282681",
"0.7275687",
"0.7244229",
"0.72328174",
"0.7207191",
"0.7182036",
"0.71798617",
"0.71759605",
"0.7175524",
"0.7167598",
"0.715218... | 0.6856987 | 68 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 19 |
Stops an InferRxNorm inference job in progress. | def vBCd(EUd7=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9uF(EUd7=None):\n pass",
"def XTJp(YKHO):\n YKHO.it.stop_training()",
"def JCyR(YKHO):\n YKHO._input_stream.stop()\n YKHO._visualizer.stop()\n YKHO.fps.stop()\n if YKHO.config.SPLIT_MODEL and YKHO.config.MODEL_TYPE is 'od':\n YKHO._gpu_worker.stop()\n YKHO._cpu_worker.stop(... | [
"0.70667195",
"0.6876917",
"0.67415255",
"0.6695693",
"0.6522574",
"0.64129764",
"0.6393592",
"0.6269105",
"0.6253218",
"0.623035",
"0.62293154",
"0.6228",
"0.6184674",
"0.6163708",
"0.6152167",
"0.6152167",
"0.6117432",
"0.6108651",
"0.60981584",
"0.60981584",
"0.60981584",
... | 0.83135 | 0 |
sorts an array or list using the recursive quick sort algorithm. | def vk7q(OVm8):
exwG = len(OVm8)
YmaP(OVm8, 0, exwG - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(UrXw):\n pass",
"def lguw(ezWE, LFlW, _tIi):\n if LFlW < _tIi:\n BBAP = Qrt_(ezWE, LFlW, _tIi)\n lguw(ezWE, LFlW, BBAP - 1)\n lguw(ezWE, BBAP + 1, _tIi)",
"def lguw(ezWE):\n if ezWE is None:\n return\n exwG = len(ezWE)\n if exwG <= 1:\n return\n uXo... | [
"0.82212275",
"0.8037967",
"0.7965187",
"0.7916027",
"0.78854823",
"0.7868787",
"0.7859128",
"0.7855497",
"0.78201413",
"0.7800995",
"0.77944887",
"0.7778882",
"0.77780354",
"0.7743267",
"0.7740781",
"0.77359617",
"0.76678514",
"0.76441824",
"0.76309496",
"0.75999486",
"0.759... | 0.719958 | 72 |
This function converts the quantify number of the main plate to a letter in the alphabet. This is done, because the name of an AVL surface cannot contain any digits. 0 converts to A, 1 to B etc. | def qNm0(kAne):
gZgb = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
return gZgb[kAne] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C85s(mLGw):\n return chr(yHOz + mLGw - 1)",
"def KCQ5(FGW3):\n return chr(FGW3 + 96)",
"def KCQ5(FGW3):\n return chr(FGW3 + 96)",
"def Vwl1(hxyp):\n hlel = ''\n if hxyp == 0:\n pass\n else:\n while hxyp > 0:\n hxyp = hxyp - 1\n hlel += chr(hxyp % 26 +... | [
"0.6815469",
"0.67889667",
"0.67889667",
"0.6707104",
"0.6514811",
"0.6416656",
"0.63528085",
"0.6334892",
"0.630799",
"0.62942797",
"0.628551",
"0.6266395",
"0.62582",
"0.6238879",
"0.62317604",
"0.6228601",
"0.6223984",
"0.6207478",
"0.62070787",
"0.6204574",
"0.6193549",
... | 0.6223342 | 17 |
This attribute calculates the reference area of the spoiler. This is simply the area of the spoiler main plate. | def iiux(YKHO):
return YKHO.spoiler.spoiler_chord * YKHO.spoiler.spoiler_span | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO.sl ** 2",
"def f0tD(YKHO):\n return super().area()",
"def f0tD(YKHO):\n return super().area()",
"def fJGW(YKHO):\n return YKHO.constants['S']",
"def f0tD(YKHO):\n pass",
"def f0tD(YKHO):\n if YKHO._area == None:\n YKHO._area = YKHO._n / 2 * YKHO.side... | [
"0.72830015",
"0.72475237",
"0.72475237",
"0.7236105",
"0.7176218",
"0.7151023",
"0.7070349",
"0.70516205",
"0.70155007",
"0.70155007",
"0.70155007",
"0.7004022",
"0.6982145",
"0.6980744",
"0.6980032",
"0.697767",
"0.6975817",
"0.6975817",
"0.6975817",
"0.6975817",
"0.6975817... | 0.7739859 | 0 |
Converts a snake case file name into a kCamelCase variable name. | def drTt(pmON):
gIsw = Hy7s.path.splitext(Hy7s.path.split(pmON)[1])[0]
return 'k' + Vx8y(gIsw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hr_R(M_u8):\n M_u8 = M_u8.split('_')\n A7fK = ''\n for GIN8 in M_u8:\n if GIN8 != M_u8[0]:\n A7fK += GIN8.title()\n else:\n A7fK += GIN8\n return A7fK",
"def kCQi(mWFP):\n if isinstance(mWFP, str):\n QWQX = mWFP.split('_')\n return QWQX[0] + ''... | [
"0.76481366",
"0.7437654",
"0.7355849",
"0.73549956",
"0.73240775",
"0.72302634",
"0.7152828",
"0.7103475",
"0.7086145",
"0.70850194",
"0.70799834",
"0.7076024",
"0.70643556",
"0.7059232",
"0.70465374",
"0.7020101",
"0.70012635",
"0.6999181",
"0.6991237",
"0.6988884",
"0.6982... | 0.7357911 | 2 |
n is a number in any base in the range [2, 36]. base is the base in which n is currently represented. Assumes n only contains digits in the range 0..9 and letters of the English alphabet. Returns the decimal representation of n (as a int). | def AdVw(exwG: str, P8oC: int) -> int:
if not exwG:
raise ValueError('n cannot be an empty string or None')
if P8oC > 36 or P8oC < 2:
raise ValueError('not base >= 2 and base <= 36')
return wUkF(exwG, P8oC, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VKYG(exwG, P8oC):\n BHGE = '0123456789abcdefghijklmnopqrstuvwxyz'\n try:\n exwG = int(exwG)\n P8oC = int(P8oC)\n except:\n return ''\n if exwG < 0 or P8oC < 2 or P8oC > 36:\n return ''\n KCHu = ''\n while 1:\n Mkmy = exwG % P8oC\n KCHu = BHGE[Mkmy] + ... | [
"0.8191614",
"0.78493553",
"0.78089815",
"0.7754917",
"0.7700511",
"0.76897144",
"0.76897144",
"0.76897144",
"0.7661584",
"0.76615465",
"0.76521313",
"0.76357585",
"0.7632177",
"0.7613515",
"0.7579299",
"0.7567293",
"0.75299704",
"0.7486699",
"0.74845934",
"0.7452739",
"0.744... | 0.8181544 | 1 |
Whether this factor has a complex derivation window. A complex derivation window is a window of derived factors whose firstlevel derivations are themselves considered complex. | def SPeR(YKHO) -> bool:
if not isinstance(YKHO, xiM1):
return False
KnxT = YKHO.first_level.window
return KnxT.width > 1 or KnxT.stride > 1 or YWvJ(int, KnxT.start) > 0 or KnxT.is_complex | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZi(YKHO) -> bool:\n return YKHO.width > 1 or YKHO.stride > 1 or YKHO.first_factor.has_complex_window",
"def RfrO(YKHO):\n return oyIN.issubdtype(YKHO.dtype, oyIN.complexfloating)",
"def GfZi(YKHO) -> bool:\n return YKHO._is_complex",
"def GfZi(YKHO) -> bool:\n return True",
"def RfrO(YKHO... | [
"0.76567996",
"0.70663863",
"0.69748914",
"0.6793454",
"0.6752614",
"0.64378667",
"0.6304298",
"0.63012314",
"0.62963504",
"0.624574",
"0.61548615",
"0.61483055",
"0.5972306",
"0.5964729",
"0.5956975",
"0.59155184",
"0.5908203",
"0.5849467",
"0.5774729",
"0.57364064",
"0.5706... | 0.83913225 | 0 |
A view to return the about page | def vsuQ(QePW):
return _1tc(QePW, 'about/about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ(QePW):\n return SGJU('about.html')",
"def vsuQ(QePW):\n return _1tc(QePW, 'about.html', {})",
"def cGKp():\n return TvZl('about.html')",
"def vsuQ(QePW):\n return SGJU('about.html')",
"def cD8n(QePW):\n return {}",
"def vsuQ():\n bo34.info('User visited the about page.')\n r... | [
"0.8774228",
"0.86685187",
"0.8634381",
"0.85671693",
"0.84411365",
"0.84383744",
"0.84231853",
"0.839121",
"0.8353086",
"0.8348169",
"0.8341117",
"0.833323",
"0.8312576",
"0.83036774",
"0.8299799",
"0.829175",
"0.829175",
"0.829175",
"0.829175",
"0.829175",
"0.829175",
"0.... | 0.8161413 | 61 |
Internal utility method; retrieve a subobject from a JSON object/array; returns an empty object if key is not present | def lQ2n(YKHO, qQXR, H5ew):
rRmI = {}
if qQXR is not None:
rRmI = qQXR.get(H5ew, {})
return rRmI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJdB(Rf_J, H5ew, WmM4):\n if H5ew == []:\n raise ValueError('key list cannot be empty')\n if H5ew[0] not in Rf_J:\n return WmM4\n elif not isinstance(Rf_J, dict):\n raise TypeError\n elif len(H5ew) == 1:\n return Rf_J[H5ew[0]]\n else:\n return eJdB(Rf_J[H5ew[0]... | [
"0.6661329",
"0.64746976",
"0.64430094",
"0.63703156",
"0.618672",
"0.6152394",
"0.6136041",
"0.61232424",
"0.6085856",
"0.6085856",
"0.6085856",
"0.6085856",
"0.606474",
"0.6040805",
"0.6008563",
"0.6005777",
"0.6005583",
"0.6005583",
"0.6005583",
"0.6005583",
"0.6005583",
... | 0.58933306 | 31 |
Normalize the data to fit the hand sign inout data | def Q7gV(nPrm: List[List]) -> x1iM[x1iM]:
return [[WKvO / Wl2e, LVAh / dVi8] for bGrB, bGrB, WKvO, LVAh in nPrm] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)",
"def NkkI(nPrm):\n nPrm = nPrm / oyIN.max(nPrm)\n return nPrm",
"def jnV4(YKHO, nPrm):\n rCiM = (nPrm - min(nPrm)) / (max(nPrm) - min(nPrm))\n return rCiM",
"def Q7gV(YKHO):\n print('Normal... | [
"0.75179964",
"0.7468738",
"0.7353978",
"0.7348958",
"0.7346946",
"0.7268116",
"0.725691",
"0.7243858",
"0.7243757",
"0.7203449",
"0.7198363",
"0.7159482",
"0.71493345",
"0.71423584",
"0.71331",
"0.7100684",
"0.7093899",
"0.70812255",
"0.7053003",
"0.7050043",
"0.70194346",
... | 0.0 | -1 |
Given two polygons it returns area of union. | def iKn5(ptT_, bf9h):
s9o6 = ptT_.area
nJDE = bf9h.area
return s9o6 + nJDE - EIgG(ptT_, bf9h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ea8g(hRYE, WjCt):\n if not hRYE.intersects(WjCt):\n RjuK = 0\n else:\n try:\n wpbH = hRYE.intersection(WjCt).area\n jwoo = hRYE.area + WjCt.area - wpbH\n RjuK = float(wpbH) / jwoo\n except LBWB.geos.TopologicalError:\n print('shapely.geos.T... | [
"0.7673707",
"0.7553422",
"0.7438093",
"0.7438093",
"0.74087095",
"0.7353471",
"0.72659516",
"0.7252603",
"0.7161031",
"0.71607715",
"0.71327835",
"0.71325165",
"0.7077732",
"0.7022173",
"0.7013299",
"0.69686604",
"0.6968253",
"0.6967284",
"0.6881553",
"0.68648523",
"0.686295... | 0.6878946 | 19 |
Given two polygons it returns the IOU value. IOU value is the ratio between the area of the intersection of the two polygons divided by the area of their union. | def Gvnp(ptT_, bf9h):
try:
iQin = EIgG(ptT_, bf9h)
b65I = iKn5(ptT_, bf9h)
return iQin / b65I
except:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPYF(hRYE, WjCt):\n jzdc = rSWe(hRYE.reshape([hRYE.shape[0], 2])).buffer(0)\n Fg_i = rSWe(WjCt.reshape([WjCt.shape[0], 2])).buffer(0)\n jwoo = jzdc.union(Fg_i).area\n if jwoo == 0:\n return 0\n return jzdc.intersection(Fg_i).area / jwoo",
"def ea8g(hRYE, WjCt):\n if not hRYE.intersec... | [
"0.8842937",
"0.86409104",
"0.86409104",
"0.86397076",
"0.8137268",
"0.81075716",
"0.80168587",
"0.78429127",
"0.7792674",
"0.7757159",
"0.76923007",
"0.7683026",
"0.767637",
"0.7671782",
"0.76488453",
"0.76349133",
"0.7631978",
"0.76182985",
"0.76103014",
"0.76103014",
"0.75... | 0.0 | -1 |
Given two polygons it returns area of intersection. | def EIgG(ptT_, bf9h):
C5WR = ptT_ & bf9h
f0tD = C5WR.area
return f0tD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zu8G(U9Jw, cpNR):\n EBgd = U9Jw.polygon\n HpuQ = cpNR.polygon\n Lq8X = EBgd.intersection(HpuQ)\n return Lq8X.area",
"def zRv5(jzdc, Fg_i):\n BQGg = max(jzdc[0], Fg_i[0])\n h3cg = max(jzdc[1], Fg_i[1])\n bYzl = min(jzdc[2], Fg_i[2])\n Z3uP = min(jzdc[3], Fg_i[3])\n if BQGg < bYzl an... | [
"0.794063",
"0.77813554",
"0.75483096",
"0.75461143",
"0.754518",
"0.750945",
"0.7416683",
"0.72343457",
"0.7155015",
"0.7094119",
"0.70920926",
"0.70274633",
"0.7009495",
"0.6994829",
"0.6990422",
"0.69307053",
"0.6924257",
"0.69023174",
"0.68734574",
"0.6856688",
"0.6855356... | 0.6357393 | 68 |
Plot a single frame TimeDistance Diagram on physical axes. This function uses mpl NonUniformImage to plot a image using x and y arrays, it will also optionally over plot in contours beta lines. | def YxYd(nPrm, WKvO, LVAh, MPlV=None, UqYS=None, bmgf='', iMGt=QrM1.get_cmap('RdBu'), MynD=None, n4wC=None, PZw2=True, jOEs=False, **B2fa):
if MPlV is None:
MPlV = QrM1.gca()
WKvO = WKvO[:N98b]
nPrm = nPrm[:, :N98b]
Xn71 = Qyu_(MPlV, interpolation='nearest', extent=[WKvO.min(), WKvO.max(), LVAh.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1g1(VXjJ, S7TI, z3J9, Ek7H, M3Mb=3.0, HiE9=1, AwSU=None, UyTG=None, cuQU=1.0, kyIY=''):\n BoSe = M3Mb * S7TI\n oTfE = J2Wx(VXjJ, z3J9[1], z3J9[0], BoSe)\n NlKY = oyIN.array([-M3Mb, M3Mb, -M3Mb, M3Mb])\n QrM1.figure(num=HiE9, figsize=(9, 4))\n QrM1.clf()\n QrM1.suptitle(kyIY)\n LZpg, aNZO ... | [
"0.58198196",
"0.5818922",
"0.58140105",
"0.5719553",
"0.56514436",
"0.564433",
"0.56329095",
"0.55851865",
"0.5551881",
"0.5543264",
"0.54999804",
"0.5493193",
"0.5478247",
"0.54638916",
"0.54583365",
"0.5443188",
"0.542234",
"0.54203016",
"0.5395224",
"0.53912044",
"0.53825... | 0.5708494 | 4 |
Given a list of curves, prune_trajectories(curves) returns a sublist of curves where the outlying curves (in terms of length) are removed | def y9YK(kGZp):
zgRc = lambda Z9rn: oyIN.log(Z9rn.shape[1])
AljP = map(zgRc, kGZp)
AljP.sort()
CvuK = len(kGZp)
vgqV = AljP[CvuK / 4]
S5cL = AljP[3 * CvuK / 4]
n0b6 = S5cL - vgqV
iCQ1 = lambda Z9rn: zgRc(Z9rn) > vgqV - 1.5 * n0b6 or zgRc(Z9rn) < S5cL + 1.5 * n0b6
return filter(iCQ1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VQq_(J_Es, W3Da):\n for iYfI in W3Da:\n J_Es = G_34(J_Es, iYfI)\n return J_Es",
"def mMMK(HqKa, qJbC):\n mE0J = []\n for YRbF in HqKa:\n LVAh = HqKa[YRbF][0] * 3000 + HqKa[YRbF][1]\n if (LVAh < -500) | (LVAh > 500):\n mE0J.append(YRbF)\n for YRbF in mE0J:\n ... | [
"0.58029044",
"0.5708197",
"0.5620829",
"0.5552832",
"0.54997224",
"0.5493939",
"0.543368",
"0.53964245",
"0.53651345",
"0.5274268",
"0.52352345",
"0.52344275",
"0.5217769",
"0.5210279",
"0.51908606",
"0.51894957",
"0.51888824",
"0.5179992",
"0.5169324",
"0.51663077",
"0.5140... | 0.8034696 | 0 |
Create and return a new `PersistentQueryExample` instance, given the validated data. | def eLpg(YKHO, vGfb):
bABc = AUNq(user_id=str(YKHO.context['request'].user.id), content=vGfb['content'] if 'content' in vGfb else None, name=vGfb['name'] if 'name' in vGfb else None)
GL0X.upsert(bABc, YKHO.context['request'].user)
if 'templates' in vGfb:
bABc.templates.set(vGfb['templates'])
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, vGfb):\n bABc = AUNq(user_id=vGfb['user_id'], content=vGfb['content'] if 'content' in vGfb else None, name=vGfb['name'] if 'name' in vGfb else None)\n GL0X.upsert(bABc, YKHO.context['request'].user)\n if 'templates' in vGfb:\n bABc.templates.set(vGfb['templates'])\n return bABc",
... | [
"0.72158",
"0.6096603",
"0.60706395",
"0.5926411",
"0.5926411",
"0.59263194",
"0.58759063",
"0.5859176",
"0.5811726",
"0.5673197",
"0.565094",
"0.5619238",
"0.5614937",
"0.56136686",
"0.55578095",
"0.5512911",
"0.5493164",
"0.5486613",
"0.54849464",
"0.54750115",
"0.5441246",... | 0.7383693 | 0 |
Update and return an existing `PersistentQueryExample` instance, given the validated data. | def QdZT(YKHO, bABc, vGfb):
bABc.content = vGfb.get('content', bABc.content)
bABc.name = vGfb.get('name', bABc.name)
GL0X.upsert(bABc, YKHO.context['request'].user)
if 'templates' in vGfb:
bABc.templates.set(vGfb['templates'])
return bABc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ih5P(bABc, CBIr):\n bABc.save()\n return bABc",
"def iClz(YKHO, SB7a, EZ2Z, scn9, Y1kK, VLaI=None, vCkf=None):\n sI3h = '/v1/environments/{0}/collections/{1}/training_data' + '/{2}/examples/{3}'\n pPAA = sI3h.format(SB7a, EZ2Z, scn9, Y1kK)\n NArs = {'version': YKHO.version}\n nPrm = {'docum... | [
"0.65316546",
"0.6408059",
"0.6165107",
"0.6055701",
"0.6043385",
"0.60331327",
"0.59953475",
"0.593816",
"0.5850958",
"0.58251894",
"0.57835287",
"0.57064915",
"0.565275",
"0.5636509",
"0.56107914",
"0.56107914",
"0.5586005",
"0.5584209",
"0.5576685",
"0.55714786",
"0.556335... | 0.68552995 | 0 |
Create and return a new `PersistentQueryExample` instance, given the validated data. | def eLpg(YKHO, vGfb):
bABc = AUNq(user_id=vGfb['user_id'], content=vGfb['content'] if 'content' in vGfb else None, name=vGfb['name'] if 'name' in vGfb else None)
GL0X.upsert(bABc, YKHO.context['request'].user)
if 'templates' in vGfb:
bABc.templates.set(vGfb['templates'])
return bABc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, vGfb):\n bABc = AUNq(user_id=str(YKHO.context['request'].user.id), content=vGfb['content'] if 'content' in vGfb else None, name=vGfb['name'] if 'name' in vGfb else None)\n GL0X.upsert(bABc, YKHO.context['request'].user)\n if 'templates' in vGfb:\n bABc.templates.set(vGfb['templates']... | [
"0.73858273",
"0.6098065",
"0.6070745",
"0.5927711",
"0.59260964",
"0.59260964",
"0.5877921",
"0.58609724",
"0.58108926",
"0.5675279",
"0.5650527",
"0.5620705",
"0.56155485",
"0.5614072",
"0.55584157",
"0.55139965",
"0.54932016",
"0.5487065",
"0.54859626",
"0.5475277",
"0.544... | 0.7217899 | 1 |
Convert the joint angle data to cartesian position | def EdwJ(YKHO):
QnHV = [0, 0, 0]
BaFl = [1, 0, 0, 0]
vexM = dict()
for r845 in YKHO.urdf_model.joints:
if r845.type != 'fixed':
vexM[r845.name] = _3l1[r845.name][1] * YKHO.joint_angle[_3l1[r845.name][0]]
vexM['root_X'] = QnHV[0]
vexM['root_Y'] = QnHV[1]
vexM['root_Z'] = Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xY7c():\n WKvO = oyIN.array([0, j4jS.L[0] * oyIN.cos(j4jS.q[0]), j4jS.L[0] * oyIN.cos(j4jS.q[0]) + j4jS.L[1] * oyIN.cos(j4jS.q[0] + j4jS.q[1]), j4jS.L[0] * oyIN.cos(j4jS.q[0]) + j4jS.L[1] * oyIN.cos(j4jS.q[0] + j4jS.q[1]) + j4jS.L[2] * oyIN.cos(oyIN.sum(j4jS.q))]) + KnxT.width / 2\n LVAh = oyIN.array([0,... | [
"0.6594564",
"0.65926135",
"0.6459858",
"0.6401131",
"0.6381341",
"0.6365901",
"0.6359646",
"0.62845576",
"0.6260013",
"0.6260013",
"0.6260013",
"0.6256207",
"0.62060964",
"0.61948454",
"0.6110042",
"0.60666937",
"0.60666937",
"0.6029743",
"0.6013916",
"0.6013916",
"0.5998941... | 0.7034405 | 0 |
Add gaussian noise to a copy of input data X | def SZFh(YKHO, EcVT):
yvT9 = EcVT + oyIN.random.normal(YKHO.mean, YKHO.sigma, EcVT.shape)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r5hI(YKHO, EcVT, ARTs, IAWS=False):\n if IAWS:\n OM2X = EcVT + oyIN.random.normal(loc=0.0, scale=0.5, size=EcVT.shape)\n else:\n assert ARTs <= 0.4, 'noise should be not be greater than 0.4'\n or8S = oyIN.random.choice(EcVT.shape[1], size=int(EcVT.shape[1] * ARTs))\n OM2X = Ec... | [
"0.7937585",
"0.78554994",
"0.7641449",
"0.74456066",
"0.74257815",
"0.7375871",
"0.7267288",
"0.7205745",
"0.7178579",
"0.71761894",
"0.71718776",
"0.7104787",
"0.7022641",
"0.6987318",
"0.6980737",
"0.6962477",
"0.68864006",
"0.68278825",
"0.6805071",
"0.6796739",
"0.679350... | 0.677185 | 25 |
returns a function that takes a vector and computes the distance between that vector and v | def Yz7A(Ty9i):
def PJEO(yzQ0):
"""distance between vectors v and w"""
def dgGv(YRbF):
"""square of difference between elements in ith position of vectors v and w"""
return (Ty9i[1][YRbF][1] - yzQ0[YRbF][1]) ** 2
return PZyS(sum(map(dgGv, range(len(Ty9i[1])))))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re27(P6bq, Ty9i):\n return u5Ow(vEJa(P6bq, Ty9i))",
"def Ayfi(Ty9i: Vector, yzQ0: Vector) -> float:\n return epAf.sqrt(lkZx(Ty9i, yzQ0))",
"def Ayfi(Ty9i: Vector, yzQ0: Vector) -> float:\n return epAf.sqrt(lkZx(Ty9i, yzQ0))",
"def TZLK(YKHO, iArr):\n return YKHO.position.distance_to(iArr)",
... | [
"0.8234317",
"0.78685015",
"0.7778778",
"0.76211375",
"0.7606456",
"0.75207925",
"0.7506316",
"0.74841267",
"0.7417095",
"0.73863614",
"0.7343125",
"0.7301357",
"0.72549677",
"0.72437656",
"0.7204326",
"0.7201411",
"0.71901536",
"0.7175693",
"0.7167458",
"0.71346563",
"0.7122... | 0.73321724 | 11 |
square of difference between elements in ith position of vectors v and w | def dgGv(YRbF):
return (Ty9i[1][YRbF][1] - yzQ0[YRbF][1]) ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lkZx(Ty9i, yzQ0):\n return Lzxs(C5K3(Ty9i, yzQ0))",
"def lkZx(Ty9i: Vector, yzQ0: Vector) -> float:\n return Lzxs(wncN(Ty9i, yzQ0))",
"def lkZx(Ty9i, yzQ0):\n return Lzxs(C5K3(Ty9i, yzQ0))",
"def lkZx(Ty9i, yzQ0):\n return Lzxs(C5K3(Ty9i, yzQ0))",
"def lkZx(Ty9i, yzQ0):\n return Lzxs(C5K... | [
"0.8344476",
"0.82448614",
"0.8144525",
"0.8144525",
"0.8144525",
"0.81443125",
"0.81443125",
"0.8070669",
"0.78231496",
"0.7730212",
"0.7711355",
"0.76467925",
"0.76222414",
"0.75346076",
"0.7534086",
"0.7511543",
"0.74934053",
"0.7469052",
"0.7469052",
"0.74403954",
"0.7402... | 0.79425615 | 8 |
Gets the address that will be queries for the JSON. | def UoCS(xAU6, HNpj=True, **B2fa):
if HNpj:
iquo = 'https'
else:
iquo = 'http'
ayrW = xAU6.hostname
bIwZ = xAU6.port
if not xAU6.metric is None:
AcYW = xAU6.metric
else:
AcYW = ''
if xAU6.arguments:
Ltpw = '/' + '/'.join([WKvO for WKvO in URgV.split(xA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UTX6(YKHO):\n return YKHO.data.get('address')",
"def vAkW(YKHO):\n return YKHO.http_get(OrYn.ADDRESS_URL).get('address')",
"def vAkW(YKHO):\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.address",
"def UTX6(YKHO) -> str:\n return qe4Y... | [
"0.78546166",
"0.77851355",
"0.7600691",
"0.7600691",
"0.7600691",
"0.75260246",
"0.75260246",
"0.74994844",
"0.74994844",
"0.74994844",
"0.74994844",
"0.74994844",
"0.74630797",
"0.745056",
"0.7438285",
"0.74339086",
"0.7390442",
"0.7356058",
"0.7356058",
"0.7356058",
"0.733... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The container %s does not contain %s %s!' % (YKHO.name, YKHO.dsn, YKHO.version)
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8822351",
"0.880771",
"0.880771",
"0.88049537",
"0.8764303",
"0.8746531",
"0.8653403",
"0.8652482",
"0.86482155",
"0.8647993",
"0.85234916",
"0.85234916",
"0.85234916",
"0.8511659",
"0.8506423",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The container %s contains the dataset of the version %s %s!' % (YKHO.name, YKHO.dsn, YKHO.version)
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The container %s already contains %s %s!' % (YKHO.name, YKHO.dsn, YKHO.version)
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The container %s had a previous version which was updated to %s version %s!' % (YKHO.name, YKHO.dsn, YKHO.version)
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The container %s contains a higher dataset version of the dataset %s %s!' % (YKHO.name, YKHO.dsn, YKHO.version)
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8822351",
"0.880771",
"0.880771",
"0.88049537",
"0.8764303",
"0.8746531",
"0.8653403",
"0.8652482",
"0.86482155",
"0.8647993",
"0.85234916",
"0.85234916",
"0.85234916",
"0.8511659",
"0.8506423",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
"0.8506342",
... | 0.0 | -1 |
Delete the object from the session. | def Kocp(YEnM):
BcI7.db.session.delete(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGQz(Emd4, cuiw, YEnM):\n cuiw.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n YKHO.__session.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n if YEnM:\n YKHO.__session.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n if YEnM:\n YKHO.__session.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n... | [
"0.88667077",
"0.8273815",
"0.8183172",
"0.8183172",
"0.8183172",
"0.8183172",
"0.8183172",
"0.8183172",
"0.81409484",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80768454",
"0.80296564",
"0.8028715",
"0.7847179",
"0.78... | 0.72768193 | 37 |
Return a readable network name for current network | def xq7M(I3VB) -> str:
return Z580[I3VB] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO):\n pass",
"def Nj26(YKHO):\n return YKHO._net_name",
"def mWFP(YKHO):\n return YKHO._network_name",
"def vqtv(YKHO):\n try:\n return knfI[YKHO.network_device]\n except Exception:\n RKD7.error(YKHO.user.id, 'Cannot find network device')",
"def tvqd(w2B8, hbFX, jeG... | [
"0.83057773",
"0.81888324",
"0.81552434",
"0.77001107",
"0.76647073",
"0.76049346",
"0.7496077",
"0.7496077",
"0.7496077",
"0.7496077",
"0.7496077",
"0.7496077",
"0.74695385",
"0.7464146",
"0.73794615",
"0.73794615",
"0.73759615",
"0.7298198",
"0.7186377",
"0.7186377",
"0.714... | 0.0 | -1 |
Return a readable network name for current network for eth2depositcli library | def hz5d(I3VB) -> str:
if I3VB == 1:
return 'mainnet'
if I3VB == 5:
return 'prater'
if I3VB == 3:
return 'mainnet' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO):\n pass",
"def tvqd(YKHO):\n with YKHO.top_level_cmd() as jdOK:\n return f'{jdOK.project.name}_default'",
"def eVVj(YKHO) -> str:\n return qe4Y.get(YKHO, 'network')",
"def eVVj(YKHO) -> str:\n return qe4Y.get(YKHO, 'network')",
"def eVVj(YKHO) -> str:\n return qe4Y.get(... | [
"0.760205",
"0.7417151",
"0.74049413",
"0.74049413",
"0.74049413",
"0.74049413",
"0.74049413",
"0.74049413",
"0.73513937",
"0.7183575",
"0.7183575",
"0.7133485",
"0.7126688",
"0.6996361",
"0.6996361",
"0.69931304",
"0.6984895",
"0.6959746",
"0.6959746",
"0.69473624",
"0.68995... | 0.655526 | 43 |
Tranverse dataFrame into hour data | def iGBX(jQ3Z, ENeO=9):
koNC = []
for rdlD in range(0, jQ3Z.shape[0], 18):
for gqtN in range(ENeO):
nPrm = []
for RDhP in range(18):
LjyZ = jQ3Z.loc[rdlD + RDhP][gqtN + 2]
if LjyZ == 'NR':
LjyZ = 0
elif type(LjyZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dT5j(jQ3Z):\n jzdc = rLdf.to_datetime(jQ3Z['date'], format='%Y-%m-%d')\n HNQD, fXGn = (min(jzdc), max(jzdc))\n fXGn = fXGn + JRYC.timedelta(hours=23)\n w0do = rLdf.date_range(HNQD, fXGn, freq='h')\n jieH = w0do.strftime('%Y-%m-%d')\n qaAi = rLdf.DataFrame(data={'date_hour': w0do, 'date': jieH... | [
"0.6929859",
"0.68451566",
"0.6300394",
"0.62597233",
"0.62168765",
"0.62071145",
"0.6142051",
"0.6141206",
"0.6043335",
"0.6002304",
"0.5971517",
"0.59196633",
"0.5889961",
"0.5856034",
"0.58337516",
"0.58305764",
"0.5822005",
"0.5806247",
"0.58051133",
"0.57771736",
"0.5777... | 0.0 | -1 |
Return the alias for the dimension if it exists, None otherwise. | def vbQv(YKHO) -> h8nf[str]:
return YKHO._dimension_dict['references'].get('alias') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNQ8(YKHO, mWFP):\n for tpio in YKHO.dimension:\n if tpio.name == mWFP:\n return tpio\n return None",
"def Y6cM(YKHO, aDi_):\n if aDi_ in YKHO.aliases:\n return YKHO.aliases[aDi_]\n return None",
"def Y5BJ(YKHO, OXAZ):\n try:\n return super()._get_alias(OXAZ)\... | [
"0.686969",
"0.67224205",
"0.6683976",
"0.6645016",
"0.6631731",
"0.6496749",
"0.6496749",
"0.6496749",
"0.6447385",
"0.6444169",
"0.6224067",
"0.6186552",
"0.61306536",
"0.60818076",
"0.6079153",
"0.6077995",
"0.60716707",
"0.6044975",
"0.60266715",
"0.6012986",
"0.6000863",... | 0.7924841 | 0 |
List of selected categories specified for this dimension. | def aJNe(YKHO) -> AzJI[cuzp, ...]:
aJNe = YKHO._dimension_dict['references'].get('selected_categories')
return tuple(aJNe) if aJNe else () | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n YKHO.cursor.execute(YKHO.sql_select_cmds['select_categories'])\n return YKHO.cursor.fetchall()",
"def LeZt(YKHO):\n return QcoP(YKHO.type.get('categories').values())",
"def zG33(YKHO):\n return YKHO.categoryList",
"def LU07(Emd4):\n return LeZt",
"def LeZt(YKHO) -> x1iM[str... | [
"0.7978917",
"0.7499422",
"0.741099",
"0.73127407",
"0.7275892",
"0.7241652",
"0.7241652",
"0.7241652",
"0.7241652",
"0.7241652",
"0.72292244",
"0.7224804",
"0.7200672",
"0.71585864",
"0.71574605",
"0.71451813",
"0.7139677",
"0.7099164",
"0.707996",
"0.7071702",
"0.702525",
... | 0.75985134 | 1 |
List of insertion dicts included in the dimension view. | def xp0i(YKHO) -> x1iM[h8nf[cuzp]]:
tTee = YKHO._dimension_dict.get('references', {}).get('view') or {}
onWm = tTee.get('transform', {}).get('insertions', [])
return onWm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zO7v(YKHO):\n return {uOe2: [zCVd(YKHO.get_table_name(uOe2), iz5W) for iz5W in R63N] for uOe2, R63N in YKHO.get_selects().items()}",
"def sjXb(YKHO):\n return YKHO.insert_order",
"def fgcx(YKHO):\n pass",
"def AafT(YKHO):\n return []",
"def list(YKHO):\n return [YKHO.dimension]",
"def ... | [
"0.6277249",
"0.62113273",
"0.61840063",
"0.60782766",
"0.5766761",
"0.5639856",
"0.5594967",
"0.55160004",
"0.55017495",
"0.5490428",
"0.5458891",
"0.5454024",
"0.5421789",
"0.54200375",
"0.54079926",
"0.5402236",
"0.54002637",
"0.54002637",
"0.54002637",
"0.54002637",
"0.53... | 0.8351887 | 0 |
str displayname for this element. This value is the empty string when no value has been specified or display of the name has been suppressed. | def UXqs(YKHO) -> str:
return YKHO._str_representation_for('name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO):\n if 'displayName' in YKHO._prop_dict:\n return YKHO._prop_dict['displayName']\n else:\n return None",
"def qQNS(YKHO):\n if 'displayName' in YKHO._prop_dict:\n return YKHO._prop_dict['displayName']\n else:\n return None",
"def qQNS(YKHO):\n if 'displa... | [
"0.8009536",
"0.8009536",
"0.8009536",
"0.79469645",
"0.79469645",
"0.7886719",
"0.78845704",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7847665",
"0.7846994",
"0.7846994",
"0.77968234",
"0.7795165",
"0.7791855",
"0.7791855",... | 0.0 | -1 |
True if this element represents missing data. False if this category or subvariable represents valid (collected) data. | def v3uw(YKHO) -> bool:
return bool(YKHO._element_dict.get('missing')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4KR(YKHO):\n if hasattr(YKHO, 'type'):\n return False\n if hasattr(YKHO, 'certainty'):\n return False\n return True",
"def FBfn(YKHO):\n if YKHO.data:\n return False\n return True",
"def eRwN(YKHO):\n return not YKHO._data.empty",
"def dB8R(YKHO):\n return True ... | [
"0.7085077",
"0.6992218",
"0.69563276",
"0.6956115",
"0.6939047",
"0.68651146",
"0.68651146",
"0.6849664",
"0.6847987",
"0.6839468",
"0.68007016",
"0.6799998",
"0.6781733",
"0.67801243",
"0.6777706",
"0.6744696",
"0.6744696",
"0.67325735",
"0.67217416",
"0.67217416",
"0.67181... | 0.739876 | 0 |
Optional str displayname for this element (None if not specified). | def mWFP(YKHO) -> h8nf[str]:
if 'name' not in YKHO._element_transforms_dict:
return None
mWFP = YKHO._element_transforms_dict['name']
return str(mWFP) if mWFP else '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQN... | [
"0.78861004",
"0.78861004",
"0.78861004",
"0.78861004",
"0.78861004",
"0.78861004",
"0.78861004",
"0.78861004",
"0.7878941",
"0.7878941",
"0.7878941",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
"0.77216846",
... | 0.0 | -1 |
Initializes friction and acceleration model | def FIMM(YKHO, CksC=2, oxUE=4, sgTf=16, QTg7=10, r1VO=10, ycCc=200):
super(CSmO, YKHO).__init__(freq=QTg7)
YKHO.acc = sgTf
YKHO.fric_max = oxUE
YKHO.fric_min = CksC
YKHO.speed = 0
YKHO.r = r1VO
YKHO.max_speed = ycCc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(YKHO):\n YKHO.add_input('SurfaceVelocity', 1.0, desc='Velocity of the friction pad.')\n YKHO.add_input('Temperature', 1.0, desc='Temperature of the friction pad.')\n YKHO.add_output('FrictionCoefficient', 0.45, desc='Friction Coefficient of the friction pad')",
"def C8gw(YKHO):\n if YKHO.spe... | [
"0.6781784",
"0.6615007",
"0.6592771",
"0.63763374",
"0.63740003",
"0.63696134",
"0.625517",
"0.6253967",
"0.6243791",
"0.62424225",
"0.62391186",
"0.62364155",
"0.6232003",
"0.6155897",
"0.6142217",
"0.61304",
"0.6116584",
"0.61140454",
"0.61109906",
"0.6106457",
"0.6101192"... | 0.63070834 | 6 |
Gets name of the resource that is unique within a resource group. This name can be used to access the resource. | def mWFP(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def mWFP(YKHO):\n return YKHO._resource_name",
"def kFeU(YKHO):\n return YKHO.__resource_name",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y... | [
"0.8228233",
"0.8228233",
"0.81583387",
"0.80425686",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
"0.8029221",
... | 0.0 | -1 |
The transport protocol for the endpoint. Possible values are 'Udp' or 'Tcp' or 'All'. | def iquo(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'protocol') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mo8Z(YKHO):\n try:\n return YKHO._transportprotocol\n except Exception as e:\n raise tTpl",
"def RIHx(YKHO):\n return YKHO._protocol",
"def EPKQ(YKHO):\n try:\n return YKHO._siptransportprotocol\n except Exception as e:\n raise tTpl",
"def Iz3D(YKHO):\n retur... | [
"0.7846246",
"0.7599025",
"0.7420634",
"0.7269719",
"0.72205436",
"0.6971233",
"0.6922818",
"0.69078445",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.6886583",
"0.686456",
"0.68534696",
... | 0.6457066 | 53 |
Predict class for X. The predicted class of an input sample is a vote by the trees in the forest, weighted by their probability estimates. That is, the predicted class is the one with highest mean probability estimate across the trees. | def YEmv(YKHO, EcVT, Hw9C=0.5, FYhU=True):
if YKHO._model == 'svc_lin':
from sklearn.base import clone
from sklearn.calibration import CalibratedClassifierCV
M_NZ = CalibratedClassifierCV(clone(YKHO._estimator).set_param(**YKHO._estimator.get_param()))
OJCd = YKHO._Xtrain[[YKHO._rate... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, EcVT):\n return YKHO.classify(YKHO.tree_, EcVT)",
"def YEmv(YKHO, EcVT):\n XP5J = EcVT * YKHO.feature_log_prob_.T + YKHO.class_log_prior_\n return YKHO.classes_[oyIN.argmax(XP5J, axis=1)]",
"def yUsv(YKHO, WKvO):\n return oyIN.argmax(YKHO.predict(WKvO), 1)",
"def YEmv(YKHO, EcVT):\... | [
"0.7820229",
"0.7743836",
"0.77012426",
"0.76934516",
"0.7678457",
"0.76280975",
"0.7622581",
"0.76207924",
"0.7575859",
"0.7549856",
"0.752735",
"0.7510308",
"0.7505174",
"0.75037867",
"0.7484861",
"0.7478349",
"0.74720913",
"0.7460414",
"0.7446202",
"0.74181336",
"0.7391967... | 0.0 | -1 |
Measure the l2norm (Euclidean distance) between the leading edge and the trailing edge. | def E89N(YKHO):
YKHO._update_edges()
return oyIN.linalg.norm(YKHO.leading_edge - YKHO.trailing_edge) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsvu(YKHO):\n return oyIN.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y)",
"def htgw(YKHO, hQHm, jlSq):\n return oyIN.linalg.norm(oyIN.array(hQHm) - oyIN.array(jlSq))",
"def gqfd(YKHO, EBgd, HpuQ):\n return oyIN.linalg.norm(EBgd - HpuQ)",
"def KtDG(J_Es):\n K3B_ = rMQE(J_Es)\n return oyIN.sqrt(su... | [
"0.69423676",
"0.6752375",
"0.67382944",
"0.66956496",
"0.6688346",
"0.665702",
"0.6587811",
"0.65830123",
"0.6528064",
"0.6525446",
"0.64967024",
"0.64075303",
"0.63739425",
"0.6372592",
"0.6344394",
"0.6329709",
"0.6301588",
"0.6294368",
"0.6293603",
"0.62902856",
"0.628923... | 0.0 | -1 |
Return the magnitude of the airfoil's maximum camber. Camber is defined as the distance between the chord line and the mean camber line, and is measured along the line perpendicular to the chord line. | def iePI(YKHO, y9i9=500):
YKHO.compute_chord_line(n_interpolated_points=y9i9)
YKHO.compute_camber_line(n_interpolated_points=y9i9)
KR0Q = YKHO.camber_line[0].size
K4Xv = oyIN.zeros(KR0Q)
for YRbF in range(KR0Q):
K4Xv[YRbF] = oyIN.linalg.norm(YKHO.chord_line[:, YRbF] - YKHO.camber_line[:, YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWJY(YKHO):\n return YKHO.mfd.max_mag",
"def WebE(YKHO):\n YKHO.M_max = x5nF(YKHO.D_o)",
"def SWJY(YKHO, WKvO, LVAh):\n pass",
"def YXbZ(YKHO):\n YXbZ = YKHO._get_magnitude()\n return YXbZ.mag",
"def FOSW(YKHO):\n YXbZ = (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5\n return YXbZ",
"def OlC... | [
"0.71486664",
"0.69220036",
"0.6856546",
"0.6789495",
"0.6701549",
"0.6669809",
"0.6525321",
"0.6525321",
"0.64765644",
"0.64765644",
"0.64645374",
"0.6461587",
"0.6405121",
"0.63752306",
"0.63317955",
"0.62811655",
"0.6279771",
"0.6256297",
"0.6252758",
"0.62358344",
"0.6226... | 0.662012 | 6 |
Create an input dictionary of ``input_ids`` and ``attention_mask`` for BERTScore calculation. | def Pz4d(Pha6: List[Tensor], TaYf: List[Tensor]) -> cuzp[str, llWB]:
return {'input_ids': ht2j.cat(Pha6), 'attention_mask': ht2j.cat(TaYf)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rBD5(Pha6, SfnJ, UXqs):\n return ({'input_ids': Pha6, 'attention_mask': SfnJ}, UXqs)",
"def rBD5(Pha6, SfnJ, blF9, UXqs):\n return ({'input_ids': Pha6, 'token_type_ids': blF9, 'attention_mask': SfnJ}, UXqs)",
"def pOv4(YKHO, g4y1):\n yGqS, MD8Z, TaYf = jPbk.unpack_inputs(g4y1)\n I4TW = YKHO.que... | [
"0.7571793",
"0.7216989",
"0.6226201",
"0.616578",
"0.6075656",
"0.60359466",
"0.60053355",
"0.6001191",
"0.59669334",
"0.59655154",
"0.59655154",
"0.59263724",
"0.5878625",
"0.5838943",
"0.58378124",
"0.5820813",
"0.5820759",
"0.5758418",
"0.5746017",
"0.57284707",
"0.569464... | 0.76099706 | 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 rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def vGUt(YKHO):\n return x3i3.get_train_inputs(YKHO)",
"def rNg5(YKHO):\n return YKHO.dataset.get_train_examples()",
"def rNg5(YKHO):\n return YKHO.get_dialog_examples('train')",
"def rNg5(YKHO):\n return YKHO.get_dialog_examples('... | [
"0.81951743",
"0.760114",
"0.74244404",
"0.7340222",
"0.7340222",
"0.7215933",
"0.71737236",
"0.71737236",
"0.6989413",
"0.6848554",
"0.66177475",
"0.65863574",
"0.6586135",
"0.65694183",
"0.6561308",
"0.6561308",
"0.65018874",
"0.6441707",
"0.64212453",
"0.64110005",
"0.6381... | 0.6203035 | 80 |
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) -> x1iM[xeAK]:\n raise NotImplementedError",
"def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()",
"def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result... | [
"0.80899024",
"0.71504563",
"0.70351374",
"0.6909079",
"0.67522305",
"0.6676925",
"0.6550554",
"0.6550554",
"0.64557886",
"0.64557886",
"0.64255226",
"0.64255226",
"0.6423698",
"0.6423698",
"0.6352287",
"0.6290681",
"0.6288263",
"0.6257267",
"0.62408787",
"0.6229795",
"0.6212... | 0.5915469 | 87 |
Gets the list of labels for this data set. | def Te1x(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return YKHO.label_list",
"def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels",
"def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw",
"def Crrw():\n return list(uzmd)",
"def Te1x(YKHO):\n return YKHO._labels",
... | [
"0.87927794",
"0.8719027",
"0.8699092",
"0.8547313",
"0.8484899",
"0.8469711",
"0.8465322",
"0.8461357",
"0.8436369",
"0.8436369",
"0.8436369",
"0.8436369",
"0.8436369",
"0.84090835",
"0.8381433",
"0.83657837",
"0.83645195",
"0.83240074",
"0.83240074",
"0.8265762",
"0.8265762... | 0.0 | -1 |
Reads a tab separated value file. | def sYUC(Emd4, eZ_W, jaFg=None):
with open(eZ_W, 'r', encoding='utf-8') as eHNT:
N5Pj = m6_J.reader(eHNT, quotechar=jaFg)
Nqlg = []
for zFiD in N5Pj:
if HwRy.version_info[0] == 2:
zFiD = list((QMSQ(VmPb, 'utf-8') for VmPb in zFiD))
if len(zFiD) == 2:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zHv1(pmON):\n with open(pmON, 'r') as eHNT:\n return list(m6_J.DictReader(eHNT, delimiter='\\t'))",
"def sYUC(Emd4, eZ_W, jaFg=None):\n return _rvh(eZ_W)",
"def iboE(YKHO):\n rsAY = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]\n O4Hj = '1\\t2\\t3\\n4\\t5\\t6\\n7\\t8\\t9'\n pmON... | [
"0.70737004",
"0.7028278",
"0.68697673",
"0.6847422",
"0.6838464",
"0.6838464",
"0.6838464",
"0.6838464",
"0.68270725",
"0.6821829",
"0.6821829",
"0.6821829",
"0.6795045",
"0.6789502",
"0.67819524",
"0.6755904",
"0.6752967",
"0.6729939",
"0.67247856",
"0.6711635",
"0.6710559"... | 0.6214917 | 60 |
detect "humps" in 1D array and return the ranges at which they occur in y. | def Ogms(LVAh, iqFZ):
Nfn9 = []
aGtr = None
Wc5J = [None] * len(LVAh)
MxDL = iqFZ
for YRbF, wEf2 in enumerate(LVAh):
if abs(wEf2 - MxDL) > 150:
if wEf2 > iqFZ:
if wEf2 > MxDL:
LVAh[YRbF - 1] = iqFZ
else:
LVAh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wpni(LVAh: torch.Tensor):\n LVAh = YjaW(LVAh)\n _rhd = []\n for YRbF in range(0, LVAh.shape[1]):\n dCLF = ht2j.max(LVAh[:, YRbF]) * 1.2\n LChT = ht2j.min(LVAh[:, YRbF]) * 1.2\n OV1s = (LChT.item(), dCLF.item())\n _rhd.append(OV1s)\n return _rhd",
"def Sp0G(LVAh):\n ... | [
"0.6631257",
"0.61465096",
"0.61235505",
"0.6115809",
"0.5999691",
"0.5837036",
"0.57907355",
"0.57501894",
"0.5740323",
"0.5714883",
"0.57054365",
"0.5660624",
"0.5660624",
"0.5658309",
"0.5621102",
"0.56082463",
"0.56071496",
"0.55938756",
"0.5579285",
"0.5570071",
"0.55665... | 0.6989165 | 0 |
A parser for a tf dataset. Please note that the helium dataset is inhouse and not publicly available. | def txVr(WKvO, qIxc):
if 'helium' in qIxc.dataset.lower():
VXjJ = ZylS.io.decode_raw(WKvO['imgs'], out_type=ZylS.float32)
VXjJ = ZylS.reshape(VXjJ, [qIxc.real_img_size, qIxc.real_img_size, qIxc.img_channels])
else:
VXjJ = WKvO['image']
VXjJ = ZylS.image.convert_image_dtype(VXjJ, dtyp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hCzz(YKHO, BWXx):\n yJc9 = {'image/encoded': ZylS.FixedLenFeature((), ZylS.string, ''), 'image/format': ZylS.FixedLenFeature((), ZylS.string, 'jpeg'), 'image/class/label': ZylS.FixedLenFeature([], ZylS.int64, -1), 'image/class/text': ZylS.FixedLenFeature([], ZylS.string, ''), 'image/object/bbox/xmin': ZylS.... | [
"0.72875905",
"0.71641904",
"0.7093512",
"0.68478566",
"0.6824805",
"0.6783998",
"0.6761029",
"0.6756683",
"0.6747466",
"0.6708264",
"0.6698424",
"0.6688144",
"0.6602719",
"0.65493643",
"0.6521331",
"0.64680403",
"0.64610386",
"0.6436037",
"0.6412634",
"0.6390804",
"0.6375079... | 0.6428073 | 18 |
Create tensors to be used as inputs for prediction/linearity losses. | def JL0M(nPrm, qmWu):
pOAl = nPrm.shape[1] - qmWu
sPGO = []
for r845 in range(qmWu):
sPGO.append(nPrm[:, r845 + 1:r845 + 1 + pOAl, :])
Yane = oyIN.concatenate(sPGO, axis=1)
return Yane | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DszH(YKHO, g4y1):\n if g4y1.shape.ndims == 3:\n g4y1 = ZylS.reshape(g4y1, [-1, g4y1.shape.dims[1].value * g4y1.shape.dims[2].value])\n return YKHO.activation_function(YKHO.linear(g4y1))",
"def DHaV(YKHO):\n hIM3 = YKHO.encoded_data_train['input_ids']\n _LAC = YKHO.encoded_data_train['atten... | [
"0.6940402",
"0.69236815",
"0.673658",
"0.6637528",
"0.6550877",
"0.6511403",
"0.6509934",
"0.64907247",
"0.64612883",
"0.64234614",
"0.6414636",
"0.6406279",
"0.6384024",
"0.6380432",
"0.63610417",
"0.6360109",
"0.635824",
"0.6349717",
"0.63359433",
"0.6332712",
"0.63170326"... | 0.0 | -1 |
String representation of an instance | def zAg0(YKHO):
return str(YKHO.info) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '<{} instance>'.format(type(YKHO).__name__)",
"def gTzM(YKHO, KAOR):\n raise NotImplementedError",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n ... | [
"0.82816315",
"0.81873006",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017",
"0.81438017"... | 0.0 | -1 |
Initialize a linked list. | def FIMM(YKHO, DumB: list=[]):
for ZfUD in DumB:
YKHO.append(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._linkedlist = _sfu()\n YKHO.head = YKHO._linkedlist.head\n YKHO._length = YKHO._linkedlist._length\n YKHO.tail = None",
"def FIMM(YKHO, list=None):\n YKHO.head = None\n YKHO.len = 0\n if list:\n YKHO.head = o7DN(list[0])\n kMLo = YKHO.head\n YKHO.l... | [
"0.7943539",
"0.78545475",
"0.780999",
"0.7769403",
"0.77626354",
"0.7722486",
"0.7699254",
"0.76780915",
"0.7659028",
"0.76115036",
"0.7593325",
"0.758232",
"0.7544616",
"0.75253385",
"0.7499995",
"0.74824774",
"0.7476124",
"0.7421049",
"0.7387997",
"0.73308396",
"0.7329652"... | 0.0 | -1 |
Return the length of the linked list | def szAg(YKHO):
return YKHO.__count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n exwG += 1\n AsCw = AsCw.next\n return exwG",
"def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L +=... | [
"0.88489676",
"0.88250977",
"0.8721501",
"0.8707652",
"0.8637493",
"0.86231464",
"0.862281",
"0.8601214",
"0.86006045",
"0.8572659",
"0.85479087",
"0.853322",
"0.85068625",
"0.8504088",
"0.8503848",
"0.8463252",
"0.84600514",
"0.84501994",
"0.84218884",
"0.8418049",
"0.841701... | 0.0 | -1 |
Return the head of the linked list | def sdCG(YKHO):
return YKHO._head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO) -> Msxl:\n raise NotImplementedError",
"def qHHo(YKHO):\n return YKHO.head",
"def cntZ(YKHO):\n return YKHO.head.next",
"def tmL8(YKHO):\n return YKHO.head_node",
"def cntZ(YKHO):\n if YKHO.head is None:\n return None\n else:\n return YKHO.head",
"def g8tW(Y... | [
"0.8015322",
"0.79725796",
"0.7869255",
"0.78658825",
"0.7843377",
"0.77757937",
"0.761011",
"0.75806046",
"0.7503745",
"0.7439476",
"0.7439476",
"0.7401479",
"0.7367072",
"0.7340899",
"0.73219657",
"0.7316086",
"0.7235313",
"0.7222706",
"0.7086854",
"0.70665336",
"0.7050385"... | 0.7327302 | 16 |
Set the head of the linked list | def sdCG(YKHO, Q6kx=None):
if Q6kx:
assert type(Q6kx) == o7DN
YKHO._head = Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NWbf(YKHO, kMLo):\n kMLo.next = YKHO.head\n kMLo.previous = None\n if YKHO.head is not None:\n YKHO.head.previous = kMLo\n YKHO.head = kMLo\n if YKHO.end is None:\n YKHO.end = YKHO.head",
"def sdCG(YKHO, Q6kx):\n YKHO._head = Q6kx",
"def teR8(YKHO, Q6kx):\n if Q6kx in YKH... | [
"0.82164514",
"0.8112556",
"0.80967027",
"0.7540408",
"0.744107",
"0.7376725",
"0.72871834",
"0.7249186",
"0.7245145",
"0.72032",
"0.7152685",
"0.71157825",
"0.7106062",
"0.7104639",
"0.7104639",
"0.7104639",
"0.7099554",
"0.7070705",
"0.70553386",
"0.70441103",
"0.7039401",
... | 0.7531885 | 4 |
Return the tail of the linked list | def J3uN(YKHO):
return YKHO._tail | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3uN(YKHO):\n if YKHO._head == None:\n return None\n else:\n Q6kx = YKHO._head\n while not Q6kx.is_tail:\n Q6kx = Q6kx.next\n return Q6kx",
"def J3uN(YKHO) -> Msxl:\n raise NotImplementedError",
"def wtAD(sdCG: 'SALBnode') -> 'SALBnode':\n ZbOB = sdCG.next... | [
"0.8488116",
"0.8297449",
"0.80715257",
"0.8033724",
"0.79644555",
"0.79355884",
"0.79355884",
"0.7846922",
"0.7719719",
"0.76139957",
"0.76057833",
"0.75154036",
"0.7498515",
"0.7417308",
"0.7392893",
"0.7379344",
"0.72850883",
"0.72838444",
"0.72699034",
"0.72063446",
"0.71... | 0.7644499 | 9 |
Ensure valid access token. | def wC2y(JfyU: Callable) -> YrBT:
@xBlr.wraps(JfyU)
def NKcE(*qIxc, **B2fa) -> cuzp[str, ImMB]:
global TOKEN
if not rjWG:
GQl3()
try:
return JfyU(*qIxc, **B2fa)
except yiLL as error:
jGRS, Ol8d = P1dF.args
if jGRS == O6qs['Unauthor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JKQx(YKHO):\n XdDx = {'Authorization': 'OAuth ' + YKHO.access_token}\n geh0 = G4JS.get(Wt9L, headers=XdDx)\n if geh0.ok:\n return\n YKHO.get_twitch_app_access_token()",
"def JKQx(YKHO, hJxb, eOtH, QePW):\n raise NotImplementedError('Subclasses must implement this function.')",
"def Un... | [
"0.7452929",
"0.7380824",
"0.72197884",
"0.72160393",
"0.7214943",
"0.7072306",
"0.70060897",
"0.6896968",
"0.6855188",
"0.68523115",
"0.68334264",
"0.6818731",
"0.6806871",
"0.67387646",
"0.6719332",
"0.67036235",
"0.6691971",
"0.66912055",
"0.6664601",
"0.666339",
"0.663991... | 0.0 | -1 |
Inserts new value into the leaves | def _jXH(YKHO, Ey19):
nZuS = Ey19 - YKHO.tree[YKHO.pin]
YKHO.tree[YKHO.pin] = Ey19
YKHO.siftup(YKHO.pin, nZuS)
YKHO.pin += 1
if YKHO.pin >= len(YKHO.tree):
YKHO.pin = YKHO.leaves - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, wEf2, LOks):\n YKHO.branches[wEf2] = LOks",
"def JPHp(YKHO, BWXx):\n Esd_ = YKHO.find(BWXx, ignore_matches=True)\n KFM5 = Esd_[1]\n PXRv = Esd_[2]\n if len(YKHO.free_spots) > 0:\n KFM5 = YKHO.free_spots.pop()\n YKHO.tree[KFM5] = [BWXx, None, None, PXRv, 1, 0]\n else... | [
"0.72770715",
"0.71845037",
"0.71370167",
"0.7090712",
"0.70506173",
"0.7035053",
"0.70270073",
"0.70007175",
"0.6980251",
"0.6954759",
"0.69470626",
"0.693956",
"0.6930155",
"0.6925871",
"0.6923434",
"0.69124067",
"0.691112",
"0.6911047",
"0.68943274",
"0.6871412",
"0.683933... | 0.0 | -1 |
Gets one leaf accorting to priority. | def NMoC(YKHO, UixF):
return YKHO.descend(0, UixF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, Ey19):\n J_Es = YKHO.tree\n zNig = len(J_Es)\n _AKB = 0\n while True:\n cdj0 = 2 * _AKB + 1\n esTa = cdj0 + 1\n if cdj0 >= zNig:\n kjp6 = _AKB\n break\n elif Ey19 <= J_Es[cdj0]:\n _AKB = cdj0\n else:\n Ey19 -=... | [
"0.74128044",
"0.70563704",
"0.68945396",
"0.6856826",
"0.6651565",
"0.6611041",
"0.64933026",
"0.6415365",
"0.63934404",
"0.6370011",
"0.631759",
"0.6289278",
"0.627918",
"0.62708527",
"0.62678206",
"0.6235221",
"0.62256914",
"0.6192634",
"0.6178239",
"0.61638075",
"0.615704... | 0.0 | -1 |
Get a config instance with the default files. | def tBzm(Emd4):
return Emd4([Hy7s.path.join(Hy7s.path.dirname(xAKo), 'hathi-mpi.yml'), '~/.hathi-mpi.yml']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8Ew():\n Fv2L = kwpV(interpolation=Wst3(), converters={'path': k2IV})\n return yZuO(Fv2L, yiHd)",
"def yDgW(YKHO):\n CAYp = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'ext.conf')\n return GPtr.read(CAYp)",
"def UiCc():\n lqQH = str(JKCy.files(SfGk) / 'config.yaml')\n with open(lqQH, 'r') as... | [
"0.77656776",
"0.77551657",
"0.7401394",
"0.7307137",
"0.7233786",
"0.70917445",
"0.7083927",
"0.70678335",
"0.7013286",
"0.69355094",
"0.6930479",
"0.6928088",
"0.6900774",
"0.68962187",
"0.6886891",
"0.6869883",
"0.68377924",
"0.6805287",
"0.68048733",
"0.6795115",
"0.67425... | 0.0 | -1 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665067",
"0.7684247",
"0.72099316",
"0.69695336",
"0.6875455",
"0.6853435",
"0.6750787",
"0.6750787",
"0.67278194",
"0.67196035",
"0.6668564",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.64316285",
"0.6425204",
"0.6368609",
"0.6366865... | 0.65216684 | 18 |
Create an instance of BalanceResponse from a dict | def jG8h(Emd4, YEnM: dict) -> _VwB:
if YEnM is None:
return None
if not isinstance(YEnM, dict):
return _VwB.parse_obj(YEnM)
UTAq = _VwB.parse_obj({'available': [rLXY.from_dict(Ghgm) for Ghgm in YEnM.get('available')] if YEnM.get('available') is not None else None, 'cashout_retention_amount':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'BalanceResponse':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd4, qHj0) -> 'ResponseGetBalanceModel':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def pktP(Emd4, nMY2: str) -> _VwB:\n return Emd4.from_dict(qQXR.loads(nMY2))",
"def jG8h(Emd4, qHj0) -> 'Account... | [
"0.8415336",
"0.7752323",
"0.7361852",
"0.69399506",
"0.6757246",
"0.67221665",
"0.66597337",
"0.6647955",
"0.6631716",
"0.6598172",
"0.6571693",
"0.6510867",
"0.64766693",
"0.64766693",
"0.64766693",
"0.6466156",
"0.64637816",
"0.64393926",
"0.6434468",
"0.6427887",
"0.64187... | 0.8133215 | 1 |
Sets the name of this ProjectCreateParameters. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP",
"def WZrJ(YKHO, mWFP=''):\n YKHO.set_property('name', mWFP)",
"def WZrJ(YKHO, mWFP: str) -> None:\n YKHO.set_properties({YKHO.NAME_STR: mWFP})",
"def WZrJ(YKHO, mWFP: str):\n YKHO.nam... | [
"0.69751495",
"0.69751495",
"0.69726104",
"0.6965256",
"0.6954429",
"0.6943715",
"0.6917646",
"0.6911324",
"0.6911324",
"0.6911324",
"0.6911324",
"0.6911324",
"0.6911324",
"0.6911324",
"0.69099605",
"0.6897749",
"0.6889322",
"0.6889322",
"0.6817604",
"0.6808558",
"0.6808502",... | 0.0 | -1 |