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 |
|---|---|---|---|---|---|---|
Sets the force_symmetric of this OneOfSolidNumericsSolver. | def NJ0y(YKHO, NJ0y):
YKHO._force_symmetric = NJ0y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgsP(YKHO, DHvX):\n YKHO.store['force'] = DHvX",
"def tagd(YKHO, Iky4):\n return zRLp.HypreSmoother_SetOperatorSymmetry(YKHO, Iky4)",
"def vuzH(YKHO):\n YKHO.command_stack.do(C3ST.structure.ApplySymmetry(YKHO._structure))",
"def FioC(YKHO):\n return YKHO.args[0].is_symmetric()",
"def q0MJ(Y... | [
"0.59803796",
"0.57306653",
"0.5726712",
"0.57097393",
"0.5703765",
"0.5702506",
"0.55567485",
"0.54915965",
"0.54616463",
"0.5420816",
"0.5402628",
"0.5160185",
"0.51129544",
"0.507831",
"0.50758404",
"0.5062904",
"0.505149",
"0.50375086",
"0.49710798",
"0.49707735",
"0.4942... | 0.84967124 | 0 |
Sets the precision_singularity_detection of this OneOfSolidNumericsSolver. | def nkLu(YKHO, nkLu):
YKHO._precision_singularity_detection = nkLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().monoid().filter(rhd_)",
"def w7FW(YKHO, w7FW):\n YKHO._sparkline_decimal_precision = w7FW",
"def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YKHO.input_equatio... | [
"0.59821254",
"0.57778054",
"0.5626338",
"0.5590415",
"0.54841596",
"0.5385266",
"0.5230607",
"0.5179348",
"0.51617527",
"0.51497173",
"0.5103238",
"0.50146294",
"0.48979315",
"0.46964014",
"0.46956527",
"0.46843532",
"0.45929563",
"0.45886877",
"0.45724285",
"0.4555075",
"0.... | 0.83565986 | 0 |
Sets the stop_if_singular of this OneOfSolidNumericsSolver. | def hyql(YKHO, hyql):
YKHO._stop_if_singular = hyql | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RB_p(YKHO, JCyR):\n if JCyR:\n YKHO._stopsim = True",
"def AAYJ(YKHO):\n YKHO.timer.stop = True\n FXyc = 'Time %s: Interrupted %s' % (YKHO.sim.timestr(), YKHO.timer.func.__name__)\n YKHO._close(FXyc)",
"def pm1c(KG9w):\n KG9w.StopNow = True",
"def Sc35(YKHO):\n if int(YKHO.vx) !=... | [
"0.5197008",
"0.4675085",
"0.4581584",
"0.45118767",
"0.44749933",
"0.44173616",
"0.4408216",
"0.43689603",
"0.4366131",
"0.43661186",
"0.4325135",
"0.43114015",
"0.42906848",
"0.4277394",
"0.42624864",
"0.42460838",
"0.42369586",
"0.42285982",
"0.42273188",
"0.42148164",
"0.... | 0.78414893 | 0 |
Sets the memory_percentage_for_pivoting of this OneOfSolidNumericsSolver. | def S_gB(YKHO, S_gB):
YKHO._memory_percentage_for_pivoting = S_gB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riZQ(UBoY: float):\n nwKK, q4r9 = Eorv.getrlimit(Eorv.RLIMIT_AS)\n print('Memory Hard Limit: ' + str(q4r9) + ' Soft Limit: ' + str(nwKK) + ' Maximum of percentage of memory use: ' + str(UBoY))\n Eorv.setrlimit(Eorv.RLIMIT_AS, (_8x6() * 1024 * UBoY, q4r9))",
"def iW6K(YKHO, iW6K):\n YKHO._utilizat... | [
"0.5484547",
"0.5347334",
"0.53430045",
"0.5321619",
"0.5263387",
"0.5226872",
"0.5226872",
"0.52249676",
"0.5197713",
"0.5197713",
"0.5197713",
"0.5197713",
"0.5189362",
"0.50953305",
"0.5085735",
"0.5083942",
"0.5058034",
"0.49903232",
"0.49559012",
"0.49338302",
"0.4904175... | 0.86614805 | 0 |
Sets the matrix_filtering_threshold of this OneOfSolidNumericsSolver. | def _Zz0(YKHO, _Zz0):
YKHO._matrix_filtering_threshold = _Zz0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OB7A(YKHO, gwAu):\n pass",
"def W5dH(YKHO, CBvc, gwAu, ulrI=False):\n NArs = locals()\n del NArs['self']\n T6S7 = zgsA = GlJs(YKHO.focus[CBvc])\n if not isinstance(ulrI, bool):\n QyVM = YKHO.filt.grab_filt(ulrI, CBvc) & ~oyIN.isnan(T6S7)\n else:\n QyVM = ~oyIN.isnan(T6S7)\n ... | [
"0.54082084",
"0.5271619",
"0.5186315",
"0.5175228",
"0.5175228",
"0.5175228",
"0.5175228",
"0.5175228",
"0.51253873",
"0.5086968",
"0.49856767",
"0.49345338",
"0.49310824",
"0.4822208",
"0.48154563",
"0.48080784",
"0.4805389",
"0.47949004",
"0.47773662",
"0.47509274",
"0.474... | 0.85339105 | 0 |
Sets the single_precision of this OneOfSolidNumericsSolver. | def g3Vp(YKHO, g3Vp):
YKHO._single_precision = g3Vp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().monoid().filter(rhd_)",
"def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YKHO.input_equation(YKHO.equation)\n print(f'Precision: {rhd_}')",
"def oYtw(YKHO,... | [
"0.59180766",
"0.5558505",
"0.5555847",
"0.53544706",
"0.53195286",
"0.5231838",
"0.5208907",
"0.5093977",
"0.50499856",
"0.50241125",
"0.50184566",
"0.501102",
"0.50092643",
"0.5000527",
"0.49923727",
"0.49709862",
"0.48887622",
"0.48566163",
"0.481582",
"0.4788341",
"0.4780... | 0.81512314 | 0 |
Sets the distributed_matrix_storage of this OneOfSolidNumericsSolver. | def SXkk(YKHO, SXkk):
YKHO._distributed_matrix_storage = SXkk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HH1h():\n qIxc = rwTO()\n m0SM = ht2j.cuda.device_count()\n if ht2j.distributed.is_initialized():\n if qIxc.rank == 0:\n print('torch distributed is already initialized, skipping initialization ...', flush=True)\n qIxc.rank = ht2j.distributed.get_rank()\n qIxc.world_siz... | [
"0.56007403",
"0.50806534",
"0.49683917",
"0.49654037",
"0.49493432",
"0.4947964",
"0.48905843",
"0.4884855",
"0.48576596",
"0.48379427",
"0.48239097",
"0.48217082",
"0.48182186",
"0.48145774",
"0.48071262",
"0.477266",
"0.4763774",
"0.46926704",
"0.46869937",
"0.46805042",
"... | 0.83973974 | 0 |
Sets the max_iterations of this OneOfSolidNumericsSolver. | def CoQy(YKHO, CoQy):
if YKHO.local_vars_configuration.client_side_validation and CoQy is not None and (CoQy < 0):
raise ValueError('Invalid value for `max_iterations`, must be a value greater than or equal to `0`')
YKHO._max_iterations = CoQy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZvL(YKHO, exwG):\n YKHO.maximum_iterations = exwG\n return",
"def v7ut(YKHO, SYxB):\n return zRLp.HypreFGMRES_SetMaxIter(YKHO, SYxB)",
"def v7ut(YKHO, SYxB):\n return zRLp.HypreAME_SetMaxIter(YKHO, SYxB)",
"def v7ut(YKHO, SYxB):\n return zRLp.HypreGMRES_SetMaxIter(YKHO, SYxB)",
"def v7u... | [
"0.7254863",
"0.7109892",
"0.70228654",
"0.70005035",
"0.69306284",
"0.6886336",
"0.67247343",
"0.66506165",
"0.62541664",
"0.6229508",
"0.62243074",
"0.61504996",
"0.6127112",
"0.61162484",
"0.6110617",
"0.6110617",
"0.6110232",
"0.59537834",
"0.59391195",
"0.59193784",
"0.5... | 0.7312067 | 0 |
Sets the convergence_threshold of this OneOfSolidNumericsSolver. | def eU0E(YKHO, eU0E):
if YKHO.local_vars_configuration.client_side_validation and eU0E is not None and (eU0E < 0):
raise ValueError('Invalid value for `convergence_threshold`, must be a value greater than or equal to `0`')
YKHO._convergence_threshold = eU0E | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OB7A(YKHO, gwAu):\n pass",
"def vm5J(YKHO, gwAu):\n YKHO._threshold = gPW0('threshold', gwAu)",
"def OB7A(YKHO, Ty9i):\n YKHO._set(threshold=Ty9i)\n return YKHO",
"def OB7A(YKHO, Ty9i):\n YKHO._set(threshold=Ty9i)\n return YKHO",
"def OB7A(YKHO, Ty9i):\n YKHO._set(threshold=Ty9i)\n... | [
"0.5830455",
"0.56818306",
"0.55826205",
"0.55826205",
"0.55826205",
"0.55826205",
"0.55826205",
"0.5542767",
"0.54838496",
"0.53655994",
"0.53081685",
"0.52762955",
"0.5272556",
"0.52196765",
"0.5199777",
"0.51962775",
"0.5178573",
"0.5148943",
"0.5129967",
"0.51293653",
"0.... | 0.7302193 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, unLg):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, unLg):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.8... | 0.0 | -1 |
Remueve las stopwords de del documento | def aUcs(C13M):
return list(filter(lambda WKvO: WKvO not in adN7.words, C13M)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def g8pp(C13M):\n hwHU = di0c.words('english')\n hwHU = set(hwHU + MO_b)\n return [eOtH for eOtH in C13M if eOtH not in hwHU]",
"def aUcs(l5... | [
"0.85952926",
"0.82386243",
"0.78232485",
"0.7807035",
"0.7775806",
"0.7771344",
"0.765445",
"0.76541865",
"0.7637416",
"0.7618049",
"0.75633353",
"0.75508624",
"0.7519818",
"0.7519818",
"0.7519818",
"0.7519818",
"0.7510415",
"0.7508168",
"0.75046253",
"0.74946064",
"0.746464... | 0.7879066 | 2 |
Assign gt to bboxes. This method assign a gt bbox to every point, each bbox will be assigned with 0, or a positive number. 0 means negative sample, positive number is the index (1based) of assigned gt. The assignment is done in following steps, the order matters. 1. assign every points to 0 2. for each gt box, we find ... | def bD1G(YKHO, LTIa, k7s1, Ddho, maxY):
MfHy, UoOD = (Ddho.shape[0], LTIa.shape[0])
if UoOD == 0 or MfHy == 0:
uxgn = LTIa.new_ones((UoOD,), dtype=ht2j.long)
AeEO = LTIa.new_zeros((UoOD, 2), dtype=ht2j.float32)
Lbv3 = ht2j.nonzero(uxgn == 0, as_tuple=False).squeeze(-1).unique()
C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD1G(YKHO, c8oy, s424, pJb0, dnMe, k7s1, fn6L=None, C2jC=None):\n HZqk = 100000000\n c8oy = c8oy[:, :4]\n dnMe = dnMe.detach()\n pJb0 = pJb0.detach()\n Mg9c, e5Re = (k7s1.size(0), c8oy.size(0))\n PZIW = YKHO.iou_calculator(dnMe, k7s1)\n R2eE = ht2j.sigmoid(pJb0[:, C2jC])\n assert R2eE.s... | [
"0.66563284",
"0.6305584",
"0.5949687",
"0.5739721",
"0.5664677",
"0.5658408",
"0.5322915",
"0.5291147",
"0.5261393",
"0.52487814",
"0.5246882",
"0.5220316",
"0.5220175",
"0.521454",
"0.5165517",
"0.5159504",
"0.51479286",
"0.5141534",
"0.5131374",
"0.51162636",
"0.51148117",... | 0.67144775 | 0 |
Create a session with Spark. | def Yu9h():
ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').getOrCreate()
return ujem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hv6k():\n return lBG2.builder.appName('Transforming the historical parking occupancy and blockface datasets').getOrCreate()",
"def Yu9h():\n return lBG2.builder.appName('Dataframe Reader').master('local[*]').getOrCreate()",
"def Yu9h():\n ujem = lBG2.builder.config('spark.jars.packages', 'org.apac... | [
"0.86121714",
"0.8366601",
"0.83318555",
"0.83279526",
"0.8275977",
"0.8275977",
"0.8275977",
"0.8275977",
"0.8242653",
"0.81792605",
"0.809464",
"0.8083293",
"0.8015839",
"0.79131514",
"0.78531665",
"0.7842353",
"0.7833517",
"0.78273815",
"0.77935976",
"0.77886695",
"0.77674... | 0.82442313 | 15 |
Places a buy order in a given market. | def IU3N(YKHO, ex5I, mVUw, Z5kt):
return YKHO.api_query('buy', {'CurrencyPair': ex5I, 'rate': mVUw, 'amount': Z5kt}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEaR(YKHO, o61b: Symbol, cTRz: str, MF_n: Optional[int]):\n return YKHO.new_order(o61b, w0RK.BUY, MHBt.MARKET, cTRz, price=None, receive_window=MF_n)",
"def PytO(YKHO):\n hI0L = QePW.form['price']\n FL53 = QePW.form['stocks']\n YTrB = QePW.form['trader_id']\n YKHO.market.place_buy_order(YTrB, ... | [
"0.7768029",
"0.76021147",
"0.7571626",
"0.7368429",
"0.72024375",
"0.7189186",
"0.7091368",
"0.70486635",
"0.7031931",
"0.70301086",
"0.6886766",
"0.68735737",
"0.6861968",
"0.6793604",
"0.67739433",
"0.67641896",
"0.67445296",
"0.6724305",
"0.6683134",
"0.6671896",
"0.66227... | 0.6244504 | 44 |
Places a sell order in a given market. | def ZBqQ(YKHO, ex5I, mVUw, Z5kt):
return YKHO.api_query('sell', {'currencyPair': ex5I, 'rate': mVUw, 'amount': Z5kt}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CWUa(YKHO):\n hI0L = QePW.form['price']\n FL53 = QePW.form['stocks']\n YTrB = QePW.form['trader_id']\n YKHO.market.place_sell_order(YTrB, hI0L, FL53)\n return ''",
"def m4yi(YKHO, o61b: Symbol, cTRz: str, MF_n: Optional[int]):\n return YKHO.new_order(o61b, w0RK.SELL, MHBt.MARKET, cTRz, pric... | [
"0.7672995",
"0.765107",
"0.7438841",
"0.7228994",
"0.71784186",
"0.7139579",
"0.711239",
"0.7109477",
"0.7061465",
"0.7054314",
"0.7021705",
"0.70019287",
"0.68489563",
"0.681182",
"0.6802025",
"0.6764315",
"0.67248905",
"0.6724642",
"0.662788",
"0.65546346",
"0.65487665",
... | 0.6335414 | 32 |
Helper for getting layer output tensor | def Kt_s(gEmA):
return pNZh.get_tensor_by_name('import/%s:0' % gEmA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out",
"def QEIX(YKHO, d6pt):\n T8hE = YKHO.model.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.model.get_tensor(T8hE['index']))\n return vhpA",
"def QDxD(YKHO, d6pt):\n T8hE = YKHO._interpreter.get... | [
"0.8122319",
"0.7690273",
"0.74574167",
"0.7428024",
"0.7426893",
"0.7324966",
"0.7305548",
"0.7291128",
"0.7252027",
"0.7252027",
"0.7252027",
"0.7233804",
"0.72127616",
"0.72018754",
"0.70702916",
"0.7044988",
"0.7025361",
"0.6995671",
"0.68668705",
"0.6855417",
"0.6846428"... | 0.6478305 | 48 |
Returns a function that gives the learning rate for this epoch taking as input the current epoch | def wFQK(YKHO, lPqs, NqED):
YKHO.lr_decay_schedules = ['constant', 'multiplication', 'exponential', 'power']
assert lPqs in YKHO.lr_decay_schedules, 'Learning rate schedule {0!r} not implemented. Choose one of the following: {1}'.format(lPqs, YKHO.lr_decay_schedules)
assert type(NqED) is HqRf or Jw7o, 'Lear... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.po... | [
"0.86763686",
"0.8509561",
"0.8509561",
"0.83330375",
"0.8294967",
"0.8059454",
"0.7870473",
"0.76855266",
"0.7606353",
"0.73940045",
"0.72747815",
"0.72708565",
"0.72522473",
"0.7216726",
"0.7181385",
"0.7169139",
"0.7169139",
"0.7169139",
"0.7169139",
"0.7152491",
"0.714897... | 0.0 | -1 |
Returns the traing gradient used in the optimizer | def zGcg(YKHO, OjI7, q7In):
q7In.set_value(OjI7, borrow=True)
ZzLi = [YKHO.batch_grad(YRbF, YKHO.n_train) for YRbF in Ni9Y(YKHO.n_train_batches)]
FvhA = [YKHO.get_batch_size(YRbF, YKHO.n_train) for YRbF in Ni9Y(YKHO.n_train_batches)]
return oyIN.average(ZzLi, weights=FvhA, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Plpn(YKHO):\n if YKHO._gradient is not None:\n return YKHO._gradient\n ICX2 = bWeC.flatten(bWeC.grads_of(YKHO._model.parameters()))\n YKHO._gradient = ICX2\n return ICX2",
"def K0do(YKHO):\n sfqc = YKHO.model.input\n RshI = nMvt.placeholder(shape=(None, 1))\n eeSD = YKHO.model.out... | [
"0.7405421",
"0.7381362",
"0.7146367",
"0.7146367",
"0.6987022",
"0.68998915",
"0.6878462",
"0.6854539",
"0.67637867",
"0.6739467",
"0.67282",
"0.67263603",
"0.67226493",
"0.6702495",
"0.6692243",
"0.6685572",
"0.6660238",
"0.66578424",
"0.66564786",
"0.6650672",
"0.6637952",... | 0.0 | -1 |
Return an alphanumeric string of size | def wPWn(Emd4, zNig):
return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits + '-_') for bGrB in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def omrF(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig)))",
"def mkg7(zNig, gLiZ=vIwR.ascii_uppercase + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))",
"def eHHU(YKHO, zNig, gLiZ=None):\n return ''.join((tuKI.choice(gLiZ or ... | [
"0.75828403",
"0.6994148",
"0.6916131",
"0.6910274",
"0.68924946",
"0.68841475",
"0.68585885",
"0.6802914",
"0.67789626",
"0.67113",
"0.66842073",
"0.66685",
"0.6652431",
"0.6648947",
"0.6615725",
"0.6574817",
"0.6569797",
"0.65653116",
"0.6555975",
"0.6555409",
"0.65460736",... | 0.0 | -1 |
Return the package configuration. | def GPtr(YKHO) -> PSrQ:
if YKHO._config is None:
YKHO._config = PSrQ(GkAb.cwd())
return YKHO._config | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def GPtr(YKHO):\n return YKHO.namespace['config']",
"def GPtr():\n return viqz",
"def tgzD():\n return viqz",
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD():\n return X8Rg",
"def GPtr(YKHO):\n return YKHO._cfg",
"def GPtr(YKHO)... | [
"0.7558377",
"0.7558198",
"0.75417763",
"0.7503818",
"0.74983215",
"0.74817383",
"0.7476002",
"0.73667294",
"0.73342305",
"0.73252636",
"0.7290176",
"0.72715724",
"0.72715724",
"0.7261279",
"0.7261279",
"0.7261279",
"0.72519976",
"0.72519976",
"0.72519976",
"0.72519976",
"0.7... | 0.0 | -1 |
Return the current value of this HyperParameter. | def NMoC(YKHO, mWFP):
WqI2 = YKHO._get_name(mWFP)
if WqI2 in YKHO.values:
if YKHO._conditions_are_active():
return YKHO.values[WqI2]
else:
raise ValueError('Conditional parameter {} is not currently active'.format(WqI2))
dduI = False
eHMM = YKHO._get_name(mWFP, in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(YKHO):\n return _VfD.Parameter_getValue(YKHO)",
"def BWXx(YKHO) -> any:\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def Zmkp(YKHO):\n return YKHO.value",
"def Zmkp(YKHO):\n... | [
"0.75921154",
"0.7110586",
"0.70929563",
"0.70929563",
"0.7060442",
"0.7024598",
"0.7024598",
"0.7024598",
"0.6980508",
"0.6946661",
"0.6930716",
"0.69265795",
"0.69265795",
"0.69158775",
"0.6914908",
"0.6914908",
"0.6914908",
"0.69118506",
"0.691128",
"0.6904845",
"0.6904845... | 0.0 | -1 |
Set the directory in which Spark is installed on the executors in Mesos. | def YoMA(YKHO, vxZ3):
YKHO.sparkProperties[KcXP.SPARK_MESOS_EXECUTOR_HOME] = vxZ3
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uraL(v3ub):\n if v3ub:\n global sc, sqlContext\n Sa_m = XYQe()\n CRBj = aMqU(Sa_m)",
"def PJay(YKHO):\n XP5J = YKHO.params\n if XP5J.task_name:\n RMDd = XP5J.task_name + '_' + XP5J.name + '_multi_inputs'\n else:\n RMDd = XP5J.name + '_multi_inputs'\n YKHO._pr... | [
"0.5687636",
"0.550482",
"0.53286695",
"0.532663",
"0.5311964",
"0.5241732",
"0.52097964",
"0.5204703",
"0.5178969",
"0.51278526",
"0.51192296",
"0.50927633",
"0.50631905",
"0.50212556",
"0.4989",
"0.497186",
"0.49664629",
"0.49584767",
"0.49395975",
"0.4932763",
"0.49209318"... | 0.58402574 | 0 |
Give the position in PPM for a peak dimension | def geUb(NEFO):
OACa = NEFO.dataDimRef
dQgj = NEFO.position
if OACa:
dQgj += NEFO.numAliasing * OACa.dataDim.numPointsOrig
return dQgj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qauj(NEFO):\n OACa = NEFO.dataDimRef\n if OACa:\n return MQtV(geUb(NEFO), NEFO.dataDimRef)\n else:\n return NEFO.position",
"def v0JC(YKHO):\n return YKHO.compute_PSF(oyIN.zeros(YKHO.N_zern))",
"def H3gW(NEFO, Votg=None, uCp8=None):\n if not Votg:\n Votg = [AbxR(NEFO)]\n... | [
"0.7710361",
"0.6560327",
"0.6419816",
"0.62910396",
"0.62728465",
"0.6176478",
"0.606386",
"0.6034404",
"0.6021505",
"0.601426",
"0.6014214",
"0.5995218",
"0.59804785",
"0.59800863",
"0.5979235",
"0.59677833",
"0.5943407",
"0.593342",
"0.5920231",
"0.58159405",
"0.5807891",
... | 0.6535363 | 2 |
Returns the directory path for the given package or module. | def NjQx(mWFP):
return Hy7s.path.dirname(Hy7s.path.abspath(tF99(mWFP).__file__)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p3ri():\n return Hy7s.path.dirname(xAKo)",
"def Cui_(sKYw):\n IznC = M7QU.get_loader(sKYw).get_filename()\n TLI7 = khtY.dirname(IznC)\n TLI7 = khtY.abspath(khtY.join(TLI7, '..'))\n return TLI7",
"def YO0r(B5hb):\n tk5Y = apVC.get_package_root(B5hb)\n if dZ_K(B5hb):\n ax6Y = Hy7s... | [
"0.7849074",
"0.7761461",
"0.76768786",
"0.7623733",
"0.7619922",
"0.76142037",
"0.74755335",
"0.74605346",
"0.7371198",
"0.72105306",
"0.7194626",
"0.7164281",
"0.7147668",
"0.70908695",
"0.70873696",
"0.7031189",
"0.70070046",
"0.6982635",
"0.696865",
"0.6942843",
"0.694018... | 0.6859669 | 26 |
Separated from validate_test because urls are not required anywhere. We know a url is incorrect if it is empty or does not start with a "/" character. There is no validation done to ensure the url conforms to the suggested url specifications, although those suggestions are presented if a url fails validation here. | def BjOQ(MpXb, zbsz):
hODq = {'json_url': '/json', 'db_url': '/mysql/db', 'query_url': '/mysql/queries?queries= or /mysql/queries/', 'fortune_url': '/mysql/fortunes', 'update_url': '/mysql/updates?queries= or /mysql/updates/', 'plaintext_url': '/plaintext', 'cached_query_url': '/mysql/cached_queries?queries= o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSw8(YKHO):\n pass",
"def zXKa():\n assert gmoQ('') is None\n assert gmoQ('abc xyz') is None\n assert gmoQ('asb#abc') is None\n assert gmoQ('Яндекс.рф') is not None\n assert gmoQ('google.blog') is not None\n assert gmoQ('http//google.com') is None\n assert gmoQ('http://user@pass:examp... | [
"0.77858895",
"0.7421229",
"0.7240036",
"0.7166649",
"0.71234936",
"0.712027",
"0.71186316",
"0.7089189",
"0.70786023",
"0.70730996",
"0.70358413",
"0.6870198",
"0.68590987",
"0.68437743",
"0.67860436",
"0.6766074",
"0.67206806",
"0.6712979",
"0.66956604",
"0.6661353",
"0.664... | 0.7361694 | 2 |
Returns an `flattrclient.api.FlattrApi` object, initialized with a session object of `requests.session.Session`. | def NMoC(rxBR):
cuiw = G4JS.Session()
cuiw.headers.update({'Accept': 'application/json', 'Authorization': 'Bearer %s' % rxBR})
return dwig(cuiw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, cuiw):\n super(dwig, YKHO).__init__(cuiw)\n YKHO.things = PnU_(cuiw)\n YKHO.users = vQ13(cuiw)\n YKHO.authenticated = xAh1(cuiw)",
"def E3zR():\n return G4JS.Session()",
"def cuiw():\n KCHu = G4JS.Session()\n pgFO = YCx3(total=5, backoff_factor=0.5)\n KCHu.mount('http://'... | [
"0.6981677",
"0.655661",
"0.6489899",
"0.6425714",
"0.642133",
"0.63802415",
"0.6366018",
"0.63562685",
"0.6330811",
"0.6273063",
"0.62316275",
"0.6165928",
"0.61319834",
"0.603433",
"0.5995882",
"0.5941252",
"0.5934109",
"0.5933255",
"0.5921951",
"0.5895072",
"0.5817055",
... | 0.65899205 | 1 |
For each unique first index in the category labels, scale the frequency matrix (to get rough probabilities) | def QpWV(YKHO):
FtBq = YKHO._frequency_matrix.sum(axis=1)
X8Dr = YKHO._frequency_matrix / FtBq[:, oyIN.newaxis]
return X8Dr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _dYl(EcVT, Vexz=True, Q7Be=False):\n \"\"\"CASES X1, X5, X12-X23: Scale large data values by indices. How these\n should be scaled is up for debate though the default is mean=0, std=1\"\"\"\n jzdc = [0, 4, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]\n for YRbF in jzdc:\n if Vexz:\n ... | [
"0.6226115",
"0.6200018",
"0.58010566",
"0.5782561",
"0.5782561",
"0.56518835",
"0.56172836",
"0.56092787",
"0.55946463",
"0.55512685",
"0.55476946",
"0.55470145",
"0.55413216",
"0.5516437",
"0.5506422",
"0.55003345",
"0.5493902",
"0.5493894",
"0.54884267",
"0.54877716",
"0.5... | 0.0 | -1 |
Normalize a list of paths relative to a parent directory. | def Nzdq(ckRy: Sequence[str], _AKB: str=Hy7s.curdir) -> list[str]:
assert isinstance(ckRy, list), ckRy
return [s5sT(XP5J, _AKB) for XP5J in ckRy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G0bE(pmON, K5Fv):\n if not Hy7s.path.isabs(pmON):\n pmON = Hy7s.path.join(K5Fv, pmON)\n return Hy7s.path.normpath(Hy7s.path.abspath(pmON))",
"def PqXl(YKHO, pmON):\n XVAW = None\n pmON = Hy7s.path.normpath(pmON)\n while pmON != XVAW:\n XVAW = pmON\n pmON = pmON.lstrip(Hy7s... | [
"0.65121686",
"0.62769693",
"0.6229018",
"0.59720194",
"0.59307325",
"0.59153193",
"0.59092635",
"0.5733712",
"0.5719236",
"0.56979245",
"0.5690638",
"0.54466045",
"0.543413",
"0.54007214",
"0.5367129",
"0.53292114",
"0.53259087",
"0.5317183",
"0.5304007",
"0.52978164",
"0.52... | 0.7942311 | 0 |
3 cases have 2 different prefixes returns cases from both prefixes. | def KWWL(YKHO):
YKHO.create_testdata()
Ylbp = YKHO.filter([u'pre', u'moz'])
YKHO.assertEqual(fHNa([WKvO.name for WKvO in Ylbp.all()]), fHNa(['CV 1', 'CV 3', 'CV 4'])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yeTp(ZnkW, DMz8):\n if DMz8[:len(ZnkW)] == ZnkW:\n return 1\n else:\n return None",
"def uzU3(j93S, Nqp_):\n if not j93S or not Nqp_:\n return None\n BJsk = CVpQ.commonprefix((j93S, Nqp_))\n if BJsk:\n return BJsk\n else:\n return None",
"def IEms(YKHO):... | [
"0.65687835",
"0.6411265",
"0.6146359",
"0.60651755",
"0.6054403",
"0.592349",
"0.58835757",
"0.58705837",
"0.58183616",
"0.5771966",
"0.5759704",
"0.57453704",
"0.5683855",
"0.56282353",
"0.56097084",
"0.55911493",
"0.5589562",
"0.55790496",
"0.55576724",
"0.5556584",
"0.555... | 0.635913 | 2 |
Get a user defined field adapted to a `zope.schema` field. | def mRgO(Jyyj):
return vgsW.schema.interfaces.IField(Jyyj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def giXL(Ybrw, Jyyj):\n return '\"{name}\" {type_}'.format(name=Jyyj.name, type_='\"' + Ybrw + '\".\"' + Jyyj.domain + '\"' if isinstance(Jyyj.domain, str) else YwLH(Jyyj.domain))",
"def xPKf(Emd4, eHNT, WmM4=kJnf.CharField):\n Aofo = WmM4\n if isinstance(eHNT, (gBn6.ComplexDateTimeField, gBn6.DateTimeF... | [
"0.67718256",
"0.65424377",
"0.6503643",
"0.6446948",
"0.64030343",
"0.6358043",
"0.63319963",
"0.63187206",
"0.6299583",
"0.62577426",
"0.62561023",
"0.6247458",
"0.6244731",
"0.62442166",
"0.62132555",
"0.6205281",
"0.62051755",
"0.6202928",
"0.61870193",
"0.6164145",
"0.61... | 0.75402015 | 0 |
Get the root folder of the ZODB. | def iLzh(Aq7H):
for UzPC in lCYW(Aq7H, 'root_folder'):
yield UzPC.rootFolder | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRgc():\n return fLhs.rootFolder",
"def jNha(YKHO):\n pmON = YKHO.config_path()\n if pmON:\n jNha = Hy7s.path.dirname(pmON)\n if not jNha.endswith('/'):\n jNha += '/'\n return jNha\n return None",
"def zX1T(YKHO, uUrB=False):\n return YKHO.get_zonepath(uUrB) +... | [
"0.79615635",
"0.7092427",
"0.70292354",
"0.6901644",
"0.68842787",
"0.6807161",
"0.67929024",
"0.6709074",
"0.6649462",
"0.66464394",
"0.65799767",
"0.65799767",
"0.65771",
"0.65689844",
"0.6566771",
"0.65598",
"0.65480137",
"0.652011",
"0.6507459",
"0.6492672",
"0.64850044"... | 0.7427007 | 1 |
`Field` fulfills the `IField` interface. | def wE08():
vgsW.interface.verify.verifyObject(khHy, wsY0()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jyyj(YKHO):\n return YKHO.__field",
"def mRgO(Jyyj):\n return vgsW.schema.interfaces.IField(Jyyj)",
"def Jyyj(YKHO, Jyyj):\n return YKHO.__getitem__(Jyyj)",
"def wsY0(Emd4, mWFP=None, JBZA=None, c_xl=None, jeGQ=False):\n return maau.Field(Emd4._meta.output, args=Emd4._meta.arguments, resolver... | [
"0.6774219",
"0.6745625",
"0.66470087",
"0.6585491",
"0.6512139",
"0.6462271",
"0.6462271",
"0.6462271",
"0.6462271",
"0.6404394",
"0.63897264",
"0.6355141",
"0.6322434",
"0.6220974",
"0.617906",
"0.6174519",
"0.6125568",
"0.61231345",
"0.60930866",
"0.6088446",
"0.60712117",... | 0.5959247 | 30 |
`(Persistent)Entities.getEntities()` returns entities sorted. The sort order is defined in the sort order storage. | def G_Gs(Nf5F, QpCb):
tTpl = QpCb
assert [tTpl.cat, tTpl.kwack, tTpl.duck] == tTpl.entities.getEntities() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f7WM(YKHO):\n DFI_ = oRi_(set)\n for tTpl, bySB in YKHO.top_level_features.items():\n aeQa = {Oa1e.hash(): Oa1e for eHNT in bySB for Oa1e in YKHO.feature_dependencies[eHNT.hash()]}\n for Csk6 in aeQa.values():\n bGrB, Am6m = YKHO.entityset.find_path(tTpl, Csk6.entity.id, include_... | [
"0.68057364",
"0.60913485",
"0.60164005",
"0.5996694",
"0.58923537",
"0.5891691",
"0.5888653",
"0.5882377",
"0.5848912",
"0.5816706",
"0.5714627",
"0.57073295",
"0.56831414",
"0.56564736",
"0.5624643",
"0.558696",
"0.5583958",
"0.5569291",
"0.55691963",
"0.5565983",
"0.556552... | 0.5711995 | 11 |
`name` raises a ValueError if no class name is set. | def iM6j(TThx):
LEXu = ahCL(None, JslR, None)
with trZe.raises(ValueError):
LEXu.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvYj(YKHO, mWFP):\n raise NotImplementedError",
"def WZrJ(YKHO, mWFP):\n YKHO.class_name = mWFP",
"def W0tD(mWFP, _2sc):\n if mWFP:\n return mWFP\n if not _2sc:\n raise O_Ze('name or class_name must be provided')\n if isinstance(_2sc, type):\n return _2sc.__name__\n r... | [
"0.7340684",
"0.7292049",
"0.7229786",
"0.7223256",
"0.6931874",
"0.68843013",
"0.68202245",
"0.6599133",
"0.6556592",
"0.6530314",
"0.6467892",
"0.6467892",
"0.644715",
"0.6429616",
"0.6429308",
"0.63990724",
"0.63922334",
"0.6389287",
"0.6379979",
"0.63726336",
"0.6359888",... | 0.0 | -1 |
`getRawFields` sorts fields missing in sort order to the end. | def diHh(xKA5, Jyyj):
LEXu = xKA5
LEXu.setFieldOrder([Jyyj.__name__, 'dummy'])
assert [Jyyj.__name__, 'dummy', 'dummy2'] == [WKvO[0] for WKvO in LEXu.getRawFields()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qeJZ(xKA5, Jyyj):\n LEXu = xKA5\n LEXu.setFieldOrder(['dummy2', 'Field', 'dummy'])\n assert [('dummy', JslR['dummy']), ('dummy2', JslR['dummy2']), (Jyyj.__name__, Jyyj)] == list(LEXu.getRawFields(sorted=False))",
"def KcVM(YKHO):\n pass",
"def BvGC(xKA5, Jyyj):\n LEXu = xKA5\n LEXu.setFie... | [
"0.6502745",
"0.63278985",
"0.62677133",
"0.62463695",
"0.6055766",
"0.5979338",
"0.59521765",
"0.59045285",
"0.5855424",
"0.58279073",
"0.58148974",
"0.5697809",
"0.56686926",
"0.56629145",
"0.5486784",
"0.54450834",
"0.5442381",
"0.53470707",
"0.53358936",
"0.5306128",
"0.5... | 0.6630689 | 0 |
`getRawFields` returns the fields sorted by the field order. | def BvGC(xKA5, Jyyj):
LEXu = xKA5
LEXu.setFieldOrder(['dummy2', Jyyj.__name__, 'dummy'])
assert [('dummy2', JslR['dummy2']), (Jyyj.__name__, Jyyj), ('dummy', JslR['dummy'])] == list(LEXu.getRawFields()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def diHh(xKA5, Jyyj):\n LEXu = xKA5\n LEXu.setFieldOrder([Jyyj.__name__, 'dummy'])\n assert [Jyyj.__name__, 'dummy', 'dummy2'] == [WKvO[0] for WKvO in LEXu.getRawFields()]",
"def w4X0(YKHO):\n return sorted(YKHO.schema.fields, key=lambda eHNT: eHNT.name)",
"def KcVM(YKHO):\n pass",
"def qeJZ(x... | [
"0.6848613",
"0.6814263",
"0.67888033",
"0.67626786",
"0.67161185",
"0.67050755",
"0.6540219",
"0.6519001",
"0.6437888",
"0.6421792",
"0.6182378",
"0.61282635",
"0.6100307",
"0.60257566",
"0.6010388",
"0.59650236",
"0.5948307",
"0.59001577",
"0.5890742",
"0.5883165",
"0.58831... | 0.6505599 | 8 |
`getFieldValues` returns all fields as `zope.schema` in order. | def tH21(xKA5, mRgO):
LEXu = xKA5
LEXu.setFieldOrder(['dummy2', mRgO.__name__, 'dummy'])
assert [JslR['dummy2'], mRgO, JslR['dummy']] == LEXu.getFieldValues() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w4X0(YKHO):\n return sorted(YKHO.schema.fields, key=lambda eHNT: eHNT.name)",
"def JSyk(YKHO):\n return YKHO.proto.field_values",
"async def get_fields(YKHO) -> x1iM[wsY0]:\n uPxI = await YKHO.get_schema()\n V_D6 = []\n if uPxI:\n TfCC = YKHO._parse(qQXR.loads(uPxI))\n for Jyyj... | [
"0.7208896",
"0.7144569",
"0.67633945",
"0.6686484",
"0.64398354",
"0.63567495",
"0.62770915",
"0.62325126",
"0.6227115",
"0.6197299",
"0.6178864",
"0.61726266",
"0.6171284",
"0.6145268",
"0.61445844",
"0.6137857",
"0.61373854",
"0.61225593",
"0.61043847",
"0.60963035",
"0.60... | 0.5780654 | 43 |
`getField` can return a `zope.schema` field. | def IuPL(LEXu):
assert JslR['dummy2'] == LEXu.getField('dummy2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bi3L(K_Sa):\n vC9B = [Csk6 for Csk6 in Pdb4 if Csk6.doctype == 'DocField' and Csk6.fieldname == K_Sa]\n return vC9B and vC9B[0] or None",
"def ePgp(xKA5, mRgO):\n assert mRgO == xKA5.getField(mRgO.__name__)",
"def mRgO(Jyyj):\n return vgsW.schema.interfaces.IField(Jyyj)",
"def zxDy(YKHO, Emd4... | [
"0.68624765",
"0.67590296",
"0.67567647",
"0.66617405",
"0.6548466",
"0.6532272",
"0.6424736",
"0.6422297",
"0.6391313",
"0.637264",
"0.63143796",
"0.62470806",
"0.62470806",
"0.6232048",
"0.61930776",
"0.61913586",
"0.61454654",
"0.61317796",
"0.61297697",
"0.6100841",
"0.60... | 0.0 | -1 |
`getField` can return a user defined field as `zope.schema` field. | def ePgp(xKA5, mRgO):
assert mRgO == xKA5.getField(mRgO.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mRgO(Jyyj):\n return vgsW.schema.interfaces.IField(Jyyj)",
"def bi3L(K_Sa):\n vC9B = [Csk6 for Csk6 in Pdb4 if Csk6.doctype == 'DocField' and Csk6.fieldname == K_Sa]\n return vC9B and vC9B[0] or None",
"def heVU(YKHO, p7vV: str, IhhE: bool=False) -> h8nf[yuoA]:\n bGrB, bGrB = rwe3(p7vV)\n re... | [
"0.6978108",
"0.64445883",
"0.64408034",
"0.629065",
"0.6244611",
"0.6236785",
"0.61651355",
"0.61438185",
"0.60696095",
"0.6043545",
"0.6040789",
"0.6040789",
"0.60373497",
"0.6025747",
"0.59871656",
"0.596057",
"0.5957779",
"0.59564656",
"0.591051",
"0.5898512",
"0.58935016... | 0.6443976 | 2 |
`getRawField` can return a `zope.schema` field. | def dWBF(LEXu):
assert JslR['dummy2'] == LEXu.getRawField('dummy2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OOlh(xKA5, Jyyj):\n assert Jyyj == xKA5.getRawField(Jyyj.__name__)",
"def mRgO(Jyyj):\n return vgsW.schema.interfaces.IField(Jyyj)",
"def Jyyj(YKHO):\n return YKHO.__field",
"def heVU(YKHO, p7vV: str, IhhE: bool=False) -> h8nf[yuoA]:\n bGrB, bGrB = rwe3(p7vV)\n return YKHO._GetField(p7vV, ... | [
"0.72386074",
"0.6283662",
"0.6181036",
"0.61084485",
"0.6086996",
"0.60611045",
"0.6011716",
"0.60065466",
"0.59443843",
"0.5911444",
"0.5898219",
"0.58873636",
"0.58452797",
"0.58452797",
"0.58452797",
"0.58452797",
"0.58309734",
"0.5801356",
"0.57850444",
"0.57621896",
"0.... | 0.6125109 | 3 |
`getRawField` can return a user defined field. | def OOlh(xKA5, Jyyj):
assert Jyyj == xKA5.getRawField(Jyyj.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gJdh(YKHO):\n if hasattr(YKHO, g6D8):\n return getattr(YKHO, g6D8)\n return Jyyj.from_raw(Jyyj.default)",
"def QTMT(YKHO, Jyyj):\n return YKHO.extra_fields[Jyyj]",
"def QTMT(Emd4, mWFP):\n if mWFP not in Emd4.get_field_names():\n mWFP = Emd4.get_field_name(mWFP)\n return getatt... | [
"0.6454515",
"0.62662596",
"0.6141444",
"0.6138856",
"0.60825974",
"0.60769933",
"0.6073568",
"0.60483915",
"0.6027442",
"0.6017592",
"0.5997831",
"0.5996397",
"0.59933925",
"0.59694356",
"0.59403336",
"0.58887535",
"0.5837791",
"0.57839626",
"0.5769151",
"0.57586586",
"0.574... | 0.7145104 | 0 |
`tagged_values` is actually a copy of the kwargs dict. Tagged values not modifiable by modifying the returned dict. | def zKuR():
tTpl = ahCL(u'Dummy', JslR, 'Dummy', a=1, b='asdf')
tTpl.tagged_values['a'] = 2
assert dict(a=1, b='asdf') == tTpl.tagged_values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qc2q(Csk6):\n return {'values': Csk6.get('values', None)}",
"def ufSs(YKHO, hkxX):\n if not getattr(YKHO, 'tags', None):\n YKHO.tags = {}\n dJ1p = oRi_(list)\n for TZ9E in hkxX:\n dJ1p[TZ9E['Key']].append(TZ9E['Value'])\n YKHO.tags.update(dJ1p)\n YKHO._transform_known_tags()",... | [
"0.6022419",
"0.59656966",
"0.588645",
"0.5618702",
"0.5536971",
"0.5514367",
"0.54506415",
"0.5388559",
"0.5371937",
"0.53519124",
"0.532181",
"0.52868825",
"0.52771527",
"0.52542967",
"0.5230774",
"0.5218715",
"0.5159425",
"0.5112058",
"0.51006275",
"0.50756925",
"0.5054362... | 0.5769426 | 3 |
Compute number of edges in a graph from its adjacency list | def L1_y(nrg5):
mC4V = {}
for id, odbI in enumerate(nrg5):
for exwG in odbI:
mC4V[max(exwG, id), min(exwG, id)] = id
return len(mC4V) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ann4(pNZh):\n return sum([len(pNZh[J078].keys()) for J078 in pNZh.keys()]) / 2",
"def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))",
"def n8F9(YKHO):\n return sum((len(Ty9i.adj) for Ty9i in YKHO.vertices.values()))",
"def L1_y(YKHO):\n return int(sum((YKHO.degree(Q6kx) fo... | [
"0.8279214",
"0.8122576",
"0.7761939",
"0.768518",
"0.74773186",
"0.74187654",
"0.7331205",
"0.7314173",
"0.7234503",
"0.7155408",
"0.71542233",
"0.7153205",
"0.71226156",
"0.712203",
"0.7114409",
"0.7097456",
"0.70652944",
"0.7015251",
"0.7003939",
"0.69998693",
"0.69857776"... | 0.7686066 | 3 |
Given a runlength encoded list, return whether this list is "1" at the specified time. | def sBjl(tTpl, a1PO):
lGE9 = 0
for vC9B, WKvO in tTpl:
n2Q1 = lGE9 + vC9B
if a1PO > lGE9 and a1PO < n2Q1:
return WKvO
lGE9 = n2Q1
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fkab(YKHO) -> bool:\n return YKHO.times > 1",
"def LRK5(PVOR):\n if set(oyIN.diff(PVOR)) == set([1]):\n return True\n else:\n return False",
"def gYQK(YKHO, oMjx):\n return oMjx <= YKHO.stop_time",
"def WX7Z(xrLX):\n pbT6 = False\n WKvO = 0\n dQgj = ''\n while WKvO <... | [
"0.60582906",
"0.5825736",
"0.55792814",
"0.5486618",
"0.5436249",
"0.5396429",
"0.53646666",
"0.5351701",
"0.53062254",
"0.53047866",
"0.5258286",
"0.52397746",
"0.5222359",
"0.5189693",
"0.5172989",
"0.5147782",
"0.51347107",
"0.51101476",
"0.5108565",
"0.5106364",
"0.50971... | 0.5109081 | 18 |
Show an index page. | def t7ng():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j4m5():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html', title='Index')",
"def d6pt():\n return TvZl('pages/index.html', isNav=True)",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')... | [
"0.8531908",
"0.80338854",
"0.7943412",
"0.77842605",
"0.77842605",
"0.7766452",
"0.7744886",
"0.76850814",
"0.76816297",
"0.7678797",
"0.7672546",
"0.7672546",
"0.7657335",
"0.76573086",
"0.7628134",
"0.76141024",
"0.76105523",
"0.75957036",
"0.75957036",
"0.75957036",
"0.75... | 0.7667954 | 13 |
Set the value of the APIKey input for this Choreo. ((required, string) The API Key provided by Tumblr (AKA the OAuth Consumer Key).) | def HzlC(YKHO, BWXx):
super(cbs6, YKHO)._set_input('APIKey', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)",
"def rJDA(YKHO, rJDA):\n if rJDA is None:\n raise ValueError('Invalid value for `api_key`, must not be `None`')\n YKHO._api_key = rJDA... | [
"0.78898466",
"0.78898466",
"0.77514654",
"0.7252826",
"0.7249392",
"0.72452533",
"0.70671475",
"0.7000636",
"0.67730814",
"0.672917",
"0.67123455",
"0.66907054",
"0.6634002",
"0.65785503",
"0.65154743",
"0.64451134",
"0.63818157",
"0.63348293",
"0.63276637",
"0.6326619",
"0.... | 0.6493754 | 15 |
Set the value of the SecretKey input for this Choreo. ((required, string) The Secret Key provided by Tumblr (AKA the OAuth Consumer Secret).) | def q8S0(YKHO, BWXx):
super(cbs6, YKHO)._set_input('SecretKey', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDug(YKHO, wEf2):\n YKHO.__secret_key = wEf2",
"def nlZL(YKHO, BWXx):\n super(cbs6, YKHO)._set_input('AccessTokenSecret', BWXx)",
"def Crw7(IMGh):\n return h4N1.getsecretforkey(IMGh)",
"def ky71(eOtH):\n if not isinstance(eOtH, jUrF):\n raise Bx6I.ConfigurationError('Expected string va... | [
"0.5987977",
"0.5480287",
"0.54182595",
"0.5386243",
"0.53860015",
"0.5298941",
"0.52083564",
"0.5205812",
"0.5205812",
"0.51457125",
"0.50655764",
"0.50338715",
"0.50238633",
"0.5012662",
"0.5011126",
"0.49644002",
"0.4939996",
"0.49322814",
"0.49291348",
"0.4925039",
"0.488... | 0.57303417 | 1 |
Retrieve the value for the "Response" output from this Choreo execution. (The response from Tumblr. Default is JSON, can be set to XML by entering 'xml' in ResponseFormat.) | def _O3m(YKHO):
return YKHO._output.get('Response', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_2m(YKHO):\n Aofo = YKHO.get_response_impl()\n if YKHO.log_dest is not None:\n WOls, geh0 = Aofo\n if WOls:\n geh0 = '? ' + geh0\n else:\n geh0 = '= ' + geh0\n YKHO._log('<< ', geh0.rstrip())\n return Aofo",
"def geh0(YKHO):\n return YKHO._respon... | [
"0.68180877",
"0.6647456",
"0.65542877",
"0.65010643",
"0.63733447",
"0.63468",
"0.6287826",
"0.6217553",
"0.62120235",
"0.61746615",
"0.6165452",
"0.6071253",
"0.6045179",
"0.60425425",
"0.6020206",
"0.5977374",
"0.59503627",
"0.5888492",
"0.5875516",
"0.5864143",
"0.5859959... | 0.785358 | 8 |
Parse a font directory resource, return as font directory entries. Return an empty tuple if parsing failed. | def TMHL(nPrm):
G9jH.debug('Parsing font directory')
try:
SjDv = _45p.from_bytes(nPrm)
nPrm = nPrm[_45p.size:]
if len(nPrm) >= SjDv.usnFonts * vm9i.size:
DZvC = vm9i
else:
DZvC = m6qZ
VECZ = DZvC.array(SjDv.usnFonts).from_bytes(nPrm)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o5w0(xtX7=None):\n jUiS = {}\n if xtX7:\n HCmI = ['fc-scan', '--format', '\"%{file}:%{family}:style=%{style}\\n\"', xtX7]\n else:\n HCmI = ['fc-list', ':', 'file', 'family', 'style']\n for zFiD in Yn3K.check_output(HCmI).decode('utf-8').split('\\n'):\n bo34.debug(zFiD)\n ... | [
"0.6200644",
"0.6149879",
"0.6149879",
"0.57939285",
"0.5236595",
"0.51685995",
"0.51301706",
"0.5113807",
"0.5071675",
"0.507126",
"0.5052928",
"0.5052928",
"0.50036967",
"0.4920582",
"0.48989677",
"0.48547408",
"0.4853345",
"0.4837448",
"0.4835108",
"0.48265684",
"0.4814672... | 0.7073485 | 0 |
Convert OS/2 font properties to monobit properties. | def vqGq(hXHu):
Wbxz = hXHu.pMetrics
if Wbxz.usCodePage in (0, 850):
tZ2K = 'ibm-ugl'
elif Wbxz.usCodePage == 65400:
tZ2K = ''
else:
tZ2K = f'ibm-{Wbxz.usCodePage}'
tnvH = []
if Wbxz.fsSelectionFlags.FM_SEL_OUTLINE:
tnvH.append('outline')
if Wbxz.fsSelectionFl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRSN(ZpFR):\n LNPJ = ZpFR.xlfd_props.pop('FONT', '')\n ZpFR.xlfd_props = {tT41: str(MJJ3) for tT41, MJJ3 in ZpFR.xlfd_props.items()}\n lhy8 = TQEi(ZpFR.xlfd_props, LNPJ)\n lhy8.update(dict(default_char=thoV(ZpFR.default_char)))\n if hasattr(ZpFR, 'bdf_acc_props'):\n lhy8.update(dict(ascen... | [
"0.5851031",
"0.58017015",
"0.5733241",
"0.55621856",
"0.55519253",
"0.55476743",
"0.5529082",
"0.54757166",
"0.53243303",
"0.5309281",
"0.53073746",
"0.5260817",
"0.51661456",
"0.5154588",
"0.5152867",
"0.5146602",
"0.5120568",
"0.5120568",
"0.5120568",
"0.51168793",
"0.5104... | 0.80052733 | 0 |
Initialize agent with given index. | def FIMM(YKHO, d6pt):
YKHO.index = d6pt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, d6pt):\n YKHO._index = d6pt",
"def ef5r(YKHO):\n raise NotImplementedError",
"def wgGB(YKHO):\n pass",
"def FIMM(YKHO, d6pt=None):\n YKHO.index = d6pt or {}",
"def ef5r(YKHO, V_s1):\n return tTFA(YKHO, V_s1)",
"def OM8D(YKHO, d6pt, BWXx):\n YKHO.setvalue(d6pt, BWXx)",
"... | [
"0.6891143",
"0.67932534",
"0.67318374",
"0.67028016",
"0.64364475",
"0.6378175",
"0.63778377",
"0.6315742",
"0.6264946",
"0.6241573",
"0.621033",
"0.61126333",
"0.6095461",
"0.60742384",
"0.60587025",
"0.5988518",
"0.59874564",
"0.5960871",
"0.5935628",
"0.5935495",
"0.58887... | 0.66131073 | 5 |
Return the food you're meant to eat. This is in the form of a matrix where m[x][y]=true if there is food you can eat (based on your team) in that square. | def xlfn(YKHO, YimI):
if YKHO.red:
return YimI.get_blue_food()
else:
return YimI.get_red_food() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEgX(YKHO, YimI):\n if YKHO.red:\n return YimI.get_red_food()\n else:\n return YimI.get_blue_food()",
"def TFGd(YKHO, Ov5A):\n if YKHO.red:\n return Ov5A.getBlueFood()\n else:\n return Ov5A.getRedFood()",
"def rN7T():\n ycBG = [tuKI.randint(0, 7), tuKI.randint(0, ... | [
"0.595225",
"0.5865188",
"0.5804668",
"0.5803418",
"0.5654143",
"0.56472737",
"0.5628335",
"0.5477392",
"0.54658544",
"0.5416987",
"0.5415101",
"0.5414272",
"0.53787327",
"0.53677124",
"0.5307978",
"0.5262083",
"0.52482414",
"0.5223146",
"0.517632",
"0.51502633",
"0.5125814",... | 0.61166674 | 0 |
Return the food you're meant to protect. i.e., the food that your opponent is supposed to eat. This is in the form of a matrix where m[x][y]=true if there is food at (x,y) that your opponent can eat. | def XEgX(YKHO, YimI):
if YKHO.red:
return YimI.get_red_food()
else:
return YimI.get_blue_food() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M71c(YKHO, Ov5A):\n pvZU = YKHO.dangerousFood\n oUFT = YKHO.getCurrentObservation().getAgentState(YKHO.index).getPosition()\n if len(pvZU) > 0:\n kZIt = 9999\n Ku81 = pvZU[0]\n for jzdc in pvZU:\n ycBG = YKHO.getMazeDistance(oUFT, jzdc)\n if ycBG < kZIt:\n ... | [
"0.63937265",
"0.6125176",
"0.5940247",
"0.58825344",
"0.5867708",
"0.582706",
"0.5778363",
"0.5597919",
"0.55908704",
"0.5546694",
"0.54811597",
"0.53577757",
"0.53576154",
"0.52819675",
"0.5254829",
"0.52048343",
"0.5194051",
"0.5187963",
"0.5165283",
"0.5134859",
"0.513281... | 0.59260803 | 3 |
Return agent indices of your opponents. This is the list of the numbers of the agents (e.g., red might be "1,3,5") | def yE7X(YKHO, YimI):
if YKHO.red:
return YimI.get_blue_team_indices()
else:
return YimI.get_red_team_indices() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bb91(qw7D):\n fuOf = oyIN.argwhere(qw7D != 0)\n return fuOf",
"def MXWT(YKHO, Ov5A):\n if YKHO.red:\n return Ov5A.getBlueTeamIndices()\n else:\n return Ov5A.getRedTeamIndices()",
"def n2Kv(Ov5A, d6pt, rb7a):\n if d6pt == Ov5A.getNumAgents():\n return [rb7a - 1, 0]\n e... | [
"0.67775023",
"0.67104214",
"0.66005355",
"0.64461",
"0.63500863",
"0.6142723",
"0.6096185",
"0.60506815",
"0.601233",
"0.57591033",
"0.57538366",
"0.568752",
"0.5636327",
"0.563423",
"0.5619768",
"0.55825144",
"0.5576896",
"0.5562943",
"0.5562462",
"0.5519714",
"0.55060816",... | 0.6859574 | 0 |
Return agent indices of your team. This is the list of the numbers of the agents (e.g., red might be the list of 1,3,5) | def zjbk(YKHO, YimI):
if YKHO.red:
return YimI.get_red_team_indices()
else:
return YimI.get_blue_team_indices() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bb91(qw7D):\n fuOf = oyIN.argwhere(qw7D != 0)\n return fuOf",
"def n2Kv(Ov5A, d6pt, rb7a):\n if d6pt == Ov5A.getNumAgents():\n return [rb7a - 1, 0]\n else:\n return [rb7a, d6pt]",
"def Kvqe(YKHO):\n return tuple(YKHO.agent_locs.T)",
"def PsvZ(qw7D, Tpgu):\n fuOf = oyIN.arg... | [
"0.7201936",
"0.7010852",
"0.6865199",
"0.68359524",
"0.64972436",
"0.62874496",
"0.62658924",
"0.623388",
"0.612129",
"0.596773",
"0.59599155",
"0.5899746",
"0.5868237",
"0.58598524",
"0.58592105",
"0.5817717",
"0.5817605",
"0.5809372",
"0.57841516",
"0.5776882",
"0.57589805... | 0.6262408 | 7 |
Return how much you are beating the other team by. This is in the form of a number that is the difference between your score and the opponents score. This number is negative if you're losing. | def hckV(YKHO, YimI):
if YKHO.red:
return YimI.get_score()
else:
return YimI.get_score() * -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.team1.get_cur_hp() / YKHO.team1.get_total_hp() - YKHO.team2.get_cur_hp() / YKHO.team2.get_total_hp()",
"def Jc_J(YKHO, Uhr4, qhbw):\n return Uhr4 - qhbw",
"def xdA4(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n ... | [
"0.7527441",
"0.72999656",
"0.70430803",
"0.6966716",
"0.69587827",
"0.69503456",
"0.69392496",
"0.69379425",
"0.6799346",
"0.6736964",
"0.66633713",
"0.6658763",
"0.6647026",
"0.66443455",
"0.66443455",
"0.66443455",
"0.66393805",
"0.6630664",
"0.6581241",
"0.6579812",
"0.65... | 0.60757625 | 84 |
Initialize agent with given index. | def FIMM(YKHO, d6pt):
YKHO.index = d6pt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, d6pt):\n YKHO._index = d6pt",
"def ef5r(YKHO):\n raise NotImplementedError",
"def wgGB(YKHO):\n pass",
"def FIMM(YKHO, d6pt=None):\n YKHO.index = d6pt or {}",
"def ef5r(YKHO, V_s1):\n return tTFA(YKHO, V_s1)",
"def OM8D(YKHO, d6pt, BWXx):\n YKHO.setvalue(d6pt, BWXx)",
"... | [
"0.6891143",
"0.67932534",
"0.67318374",
"0.67028016",
"0.64364475",
"0.6378175",
"0.63778377",
"0.6315742",
"0.6264946",
"0.6241573",
"0.621033",
"0.61126333",
"0.6095461",
"0.60742384",
"0.60587025",
"0.5988518",
"0.59874564",
"0.5960871",
"0.5935628",
"0.5935495",
"0.58887... | 0.66131073 | 4 |
The set of arguments for constructing a DropletSnapshot resource. | def FIMM(Ro_8, *, b0xw: pulumi.Input[str], mWFP: Optional[pulumi.Input[str]]=None):
qe4Y.set(Ro_8, 'droplet_id', b0xw)
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: DropletSnapshotArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def nRpd(YKHO, **B2fa):\n Ppmp = qQXR.dumps({'snapshot': B2fa})\n _hkX, TBsA = YKHO.post('snapshots', Ppmp)\n TBsA = qQXR.loads(TBsA)\n YKHO.validate_response(uPxI.create_snapshot, _hkX, TBs... | [
"0.7634257",
"0.5844861",
"0.5617854",
"0.54508436",
"0.5436717",
"0.54206216",
"0.5411752",
"0.5408402",
"0.5399191",
"0.53711754",
"0.5351368",
"0.5351029",
"0.5345687",
"0.53428435",
"0.53414357",
"0.53167534",
"0.52876705",
"0.5279676",
"0.522568",
"0.5218407",
"0.521562"... | 0.0 | -1 |
The ID of the Droplet from which the snapshot will be taken. | def b0xw(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'droplet_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0xw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.... | [
"0.76439667",
"0.74081326",
"0.7386014",
"0.73606974",
"0.73606974",
"0.69739026",
"0.69739026",
"0.69012725",
"0.66806585",
"0.66806585",
"0.66806585",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.667... | 0.7608756 | 1 |
The ID of the Droplet from which the snapshot will be taken. | def b0xw(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'droplet_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0xw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YK... | [
"0.76439667",
"0.7608756",
"0.7386014",
"0.73606974",
"0.73606974",
"0.69739026",
"0.69739026",
"0.69012725",
"0.66806585",
"0.66806585",
"0.66806585",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673733",
"0.6673... | 0.74081326 | 2 |
The ID of the Droplet from which the snapshot will be taken. | def b0xw(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'droplet_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0xw(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'droplet_id')",
"def b0xw(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.g... | [
"0.7609317",
"0.7408659",
"0.73866266",
"0.73613805",
"0.73613805",
"0.6973464",
"0.6973464",
"0.69012123",
"0.66803586",
"0.66803586",
"0.66803586",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
"0.66747636",
... | 0.7644475 | 0 |
Initializes a new trie node. | def FIMM(YKHO):
YKHO.children = [None for YRbF in range(P0uS)]
YKHO.is_end_of_word = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = YKHO.TrieNode(None)",
"def FIMM(YKHO):\n YKHO.root = YKHO.TrieNode(0)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO)... | [
"0.8165057",
"0.8151141",
"0.81002945",
"0.81002945",
"0.80884635",
"0.80884635",
"0.80721563",
"0.7980621",
"0.7951292",
"0.7944938",
"0.79431003",
"0.79431003",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"... | 0.0 | -1 |
Initializes a new trie node. | def lLBP(YKHO):
return ep_x() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = YKHO.TrieNode(None)",
"def FIMM(YKHO):\n YKHO.root = YKHO.TrieNode(0)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO):\n YKHO.trie = ep_x()",
"def FIMM(YKHO)... | [
"0.8165057",
"0.8151141",
"0.81002945",
"0.81002945",
"0.80884635",
"0.80884635",
"0.80721563",
"0.7980621",
"0.7951292",
"0.7944938",
"0.79431003",
"0.79431003",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"0.79112715",
"... | 0.653305 | 69 |
Converts given character to array index of size 26 between 0 to 25. | def Fhmz(YKHO, Npgh):
return ord(Npgh) - ord('a') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq",
"def uHqD(YKHO, hcXw):\n return ord(hcXw) - ord('A') - 32",
"def aqIr(YKHO, bseI):\n n1EG = 65\n d6pt = ord(bseI) - n1EG\n return d6pt",
"def Phws(YRbF):\n if 0 <= YRbF <= 25:\n ... | [
"0.69545704",
"0.69545704",
"0.6758797",
"0.66760194",
"0.6570866",
"0.6522729",
"0.6491486",
"0.6491486",
"0.6380858",
"0.6336831",
"0.6290919",
"0.62019247",
"0.6161552",
"0.6154644",
"0.6147104",
"0.61442935",
"0.6130627",
"0.61083347",
"0.6025066",
"0.6008139",
"0.5977366... | 0.7433565 | 0 |
Return virtual name of the module. | def HtF2():
if not A2FN:
return (False, 'The requests python module cannot be imported')
return 'serverdensity_device' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LCet(YKHO):\n return YKHO.name()",
"def LCet(YKHO):\n return YKHO.name",
"def duDm(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'virtual_name')",
"def duDm(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'virtual_name')",
"def LCet(YKHO):\n return YKHO.lib.get_module_name()",
"def mWFP(Emd4... | [
"0.7317779",
"0.71667564",
"0.71403897",
"0.71403897",
"0.7074597",
"0.6958964",
"0.6764629",
"0.6720403",
"0.67155313",
"0.6652842",
"0.66398466",
"0.6598107",
"0.65599465",
"0.6549642",
"0.65483487",
"0.6541775",
"0.6535651",
"0.64378756",
"0.6422203",
"0.641961",
"0.641427... | 0.0 | -1 |
Fit the data to the model and then transform. This method is meant to be used for unsupervised learning models for clustering and dimensionality reduction. The models can be fit and tranformed through the load script or through chart expressions in Qlik. The load_script flag needs to be set accordingly for the correct ... | def dSez(YKHO, SDPf=False):
pXq9 = ['strData', 'strData']
OwFn = ['model_name', 'n_features']
vUJ8 = 1
if SDPf:
pXq9 = ['strData', 'strData', 'strData']
OwFn = ['model_name', 'key', 'n_features']
vUJ8 = 2
YKHO.request_df = BfDw.request_df(YKHO.request, pXq9, OwFn)
YKHO.mo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSez(YKHO, nPrm):\n YKHO.fit(nPrm)\n return YKHO.transform(nPrm)",
"def dSez(YKHO, nPrm):\n return YKHO.transform(nPrm)",
"def dSez(YKHO, EcVT, LVAh=...):\n ...",
"def dSez(YKHO, nPrm):\n if not YKHO._transformers:\n return YKHO._preprocess(nPrm)\n sXdH = YKHO._preprocess(nPrm)\n... | [
"0.7373762",
"0.7175083",
"0.7094516",
"0.7025241",
"0.70091665",
"0.6980565",
"0.6940824",
"0.6895464",
"0.6880259",
"0.6765671",
"0.67572343",
"0.6704943",
"0.6677159",
"0.6655772",
"0.6622422",
"0.66209435",
"0.6617927",
"0.6617927",
"0.6617927",
"0.654767",
"0.6535734",
... | 0.7448178 | 0 |
Return history previously saved while fitting a Keras model. The history is avaialble as a DataFrame from the estimator. It provides metrics such as loss for each epoch during each run of the fit method. Columns will be ['iteration', 'epoch', 'loss'] and any other metrics calculated during training. | def jEiW(YKHO):
YKHO._get_model_by_name()
assert YKHO.model.using_keras, 'Loss history is only available for Keras models'
YKHO.response = YKHO.model.pipe.named_steps['estimator'].histories.copy()
YKHO.response.insert(0, 'model_name', YKHO.model.name)
YKHO._send_table_description('keras_history')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zs1R(YKHO) -> lbsH:\n pass",
"def RqaR(YKHO):\n if YKHO.validation:\n return (YKHO.iterations, (YKHO.losses, YKHO.valid_losses), YKHO.weights, (YKHO.misclass_rate, YKHO.valid_misclass_rate))\n return (YKHO.iterations, YKHO.losses, YKHO.weights, YKHO.misclass_rate)",
"def oUkS(C3ST, ppBc, JC... | [
"0.7052501",
"0.7024363",
"0.68790054",
"0.67894495",
"0.66416717",
"0.6634576",
"0.6626705",
"0.64849234",
"0.64661545",
"0.6421644",
"0.6334768",
"0.6317504",
"0.6294859",
"0.626471",
"0.6231158",
"0.61654013",
"0.61529607",
"0.6126438",
"0.61168253",
"0.6104604",
"0.608392... | 0.7479026 | 0 |
Get a previously saved model using the model_name | def v_Xm(YKHO):
pXq9 = ['strData']
OwFn = ['model_name']
YKHO.request_df = BfDw.request_df(YKHO.request, pXq9, OwFn)
YKHO.model = n1ni()
YKHO.model.name = YKHO.request_df.loc[0, 'model_name']
YKHO._get_model()
if YKHO.model.debug:
YKHO._print_log(3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(ZGE9):\n LCet = 'strain.models.strain_' + ZGE9.lower()\n iwaC = ANWz.import_module(LCet)\n YEnM = getattr(iwaC, ZGE9)\n return YEnM",
"def iw1F(YKHO, ZGE9):\n GZBz('Geting model :' + ZGE9)\n C3ST = BHGX.get(model_name=ZGE9)\n return C3ST",
"def dRFu(YKHO, ZGE9):\n dmwd = K0MH.g... | [
"0.8108165",
"0.80199933",
"0.78389883",
"0.78304183",
"0.7805023",
"0.7591601",
"0.7434781",
"0.74062765",
"0.7391169",
"0.7380402",
"0.7357562",
"0.7356144",
"0.73012525",
"0.72587013",
"0.72187316",
"0.7194881",
"0.71618253",
"0.71618253",
"0.71618253",
"0.71618253",
"0.71... | 0.69779015 | 31 |
Get the model from the class model cache or disk. Update the cache if loading from disk. Return the model. | def _8gI(YKHO, XyVJ=True):
if XyVJ and YKHO.model.name in YKHO.__class__.model_cache:
YKHO.model = YKHO.__class__.model_cache[YKHO.model.name]
if YKHO.model.using_keras and hasattr(YKHO.model, 'pipe'):
YKHO._keras_refresh()
if YKHO.model.debug:
YKHO._print_log(6)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6RQ(EDTX, B1Wx):\n global __model_cache\n H5ew = (EDTX, int(B1Wx))\n if H5ew not in wPZF:\n return\n if not UIeZ(EDTX):\n try:\n del wPZF[H5ew]\n except KeyError:\n pass\n return\n C5Ki = str(Hy7s.path.getmtime(EDTX))\n if C5Ki not in wPZF.ge... | [
"0.7514631",
"0.7319304",
"0.71419984",
"0.7105838",
"0.7055894",
"0.69622266",
"0.69525516",
"0.6899827",
"0.6894719",
"0.68889356",
"0.6858668",
"0.6824142",
"0.67444676",
"0.67267084",
"0.67156494",
"0.6692661",
"0.66700596",
"0.6645254",
"0.65619755",
"0.6560703",
"0.6507... | 0.7746074 | 0 |
Initialize restaurant name and cuisine type attributes | def FIMM(YKHO, zqv0, N4Ku):
YKHO.restaurant_name = zqv0
YKHO.cuisine_type = N4Ku | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YKHO.type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0.title()\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.... | [
"0.8867893",
"0.88307756",
"0.8777077",
"0.86650914",
"0.8590518",
"0.854975",
"0.854975",
"0.8524922",
"0.85144866",
"0.84030193",
"0.84030193",
"0.8368049",
"0.83221966",
"0.83221966",
"0.8252662",
"0.8079612",
"0.7813271",
"0.78129244",
"0.78112715",
"0.7777169",
"0.736069... | 0.87326837 | 4 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
gieh = oyIN.exp(WKvO)
N789 = sum(gieh)
nwKK = gieh / N789
return nwKK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.69533145 | 93 |
r""" Return basis of a dual lattice. | def NhWJ(tux7, QYBQ: bool=True):
QnmL = tXD2(tux7, QYBQ)
Csk6 = oyIN.linalg.inv(QnmL @ QnmL.T) @ QnmL
if not QYBQ:
Csk6 = Csk6.T
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOkE(ftIh, tux7):\n return oyIN.dot(ftIh.T, tux7.inv_matrix.T)",
"def bTT2(YKHO):\n return YKHO.__basis",
"def S_Lx(YKHO) -> 'matrix':\n return qw7D(list((svPQ(YKHO.domain, YKHO.n, or8S) for or8S in range(YKHO.n + 1))))",
"def J8sz(YKHO, a1PO):\n return (oyIN.vstack([YKHO._Phi[:, a1PO], YKHO.... | [
"0.6748819",
"0.6397307",
"0.63326174",
"0.6097201",
"0.60450804",
"0.59411657",
"0.58349526",
"0.58246356",
"0.581243",
"0.581029",
"0.5800209",
"0.5782128",
"0.5759019",
"0.5695544",
"0.5691236",
"0.5668706",
"0.565275",
"0.56439495",
"0.56283873",
"0.5596489",
"0.5592591",... | 0.61514 | 3 |
Given a pandas series in row, scale it to have 0 mean and var 1 using feat_mean and feat_std Inputs | def VanB(rdlD, D7ZM, IpIa):
IpIa = 0.001 if IpIa == 0 else IpIa
cg6H = (rdlD - D7ZM) / IpIa
return cg6H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2ri(jQ3Z):\n return jQ3Z.apply(lambda iVRZ: (iVRZ - iVRZ.mean()) / iVRZ.std())",
"def jb40(dy_H):\n return (dy_H - dy_H.mean()) / (dy_H.max() - dy_H.min())",
"def cyDQ(YKHO, RDhP):\n for aVmR in range(YKHO.data_shape[0]):\n RDhP[aVmR] = (RDhP[aVmR] - YKHO.feature_mean[aVmR]) / YKHO.feature... | [
"0.7132766",
"0.6608479",
"0.65137404",
"0.64793396",
"0.64694476",
"0.6302778",
"0.61978567",
"0.61772144",
"0.61592174",
"0.61483914",
"0.61185974",
"0.61144966",
"0.60863996",
"0.6074662",
"0.60632867",
"0.60632867",
"0.6023182",
"0.6020025",
"0.6007148",
"0.59990513",
"0.... | 0.7326219 | 0 |
Compute mean absolute percentage error (MAPE) | def ZDrO(Y8eF, aMgO):
Y8eF, aMgO = (oyIN.array(Y8eF), oyIN.array(aMgO))
return oyIN.mean(oyIN.abs((Y8eF - aMgO) / Y8eF)) * 100 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVPQ(n5sN: np.ndarray, PjQx: np.ndarray):\n return oyIN.mean(oyIN.abs(LwJx(n5sN, PjQx)))",
"def SkyM(Y8eF, aMgO):\n if len(Y8eF.shape) > 1 or len(aMgO.shape) > 1:\n raise TypeError('Arrays need to be one-dimensional.')\n aVPQ = oyIN.mean(oyIN.abs((Y8eF - aMgO) / Y8eF)) * 100.0\n return aVP... | [
"0.7936617",
"0.76534235",
"0.74976116",
"0.74901175",
"0.73194784",
"0.7313486",
"0.7270717",
"0.7173098",
"0.70893383",
"0.70797884",
"0.70488787",
"0.7028908",
"0.70101976",
"0.70088273",
"0.7007062",
"0.7006196",
"0.7004329",
"0.69965374",
"0.69923925",
"0.6976094",
"0.68... | 0.7017722 | 12 |
Create the dict of parameters for logging. | def HvhC(SvDd, wiAm='INFO'):
try:
if not Hy7s.path.exists(SvDd):
Hy7s.mkdir(SvDd)
except OSError:
(print >> HwRy.stderr, 'Cannot create {0} folder'.format(SvDd))
(print >> HwRy.stderr, 'Exiting...')
HwRy.exit(-1)
beik = {'version': 1, 'disable_existing_loggers': F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIqJ(YKHO):\n pmON = YKHO.output / (str(YKHO.run_id) + '__' + YKHO.name + '.json')\n pmON.parent.mkdir(parents=True, exist_ok=True)\n SGPK = vars(YKHO).copy()\n for H5ew, BWXx in SGPK.items():\n try:\n qQXR.dumps(BWXx)\n except TypeError:\n SGPK[H5ew] = str(BWXx)... | [
"0.72127557",
"0.69871384",
"0.68431616",
"0.6807128",
"0.67623013",
"0.6729825",
"0.67139083",
"0.66924495",
"0.6653894",
"0.6628314",
"0.65715736",
"0.65579814",
"0.6510451",
"0.65023583",
"0.64967895",
"0.6490254",
"0.64677465",
"0.6424179",
"0.64182466",
"0.641284",
"0.64... | 0.0 | -1 |
Example view demonstrating rendering a simple HTML page. | def udMp():
with open(dLQw.TRANSCRIPT_HTML_PATH) as eHNT:
_R2e = eHNT.read()
A97Q = zYos(_R2e)
QpfX = {'doc': A97Q}
return Yxsy(TvZl('copydoc.html', **QpfX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n YKHO.render('view.html')",
"def Wzeq():\n return TvZl('index.html')",
"def Wzeq():\n return TvZl('hello.html')",
"def l3JJ(QePW):\n return _1tc(QePW, 'home_demo.html')",
"def NMoC(YKHO, QePW):\n return igJ6('This is a demo page... | [
"0.82181305",
"0.7517457",
"0.7275192",
"0.7262132",
"0.719313",
"0.7124594",
"0.7073872",
"0.70624375",
"0.7048777",
"0.70286745",
"0.7027904",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.7004205",
"0.6983125",
"0.69557106",
"0.69523466",
"0.6946... | 0.0 | -1 |
Example view demonstrating rendering a simple HTML page. | def aUGN():
QpfX = ACzc()
return Yxsy(TvZl('child.html', **QpfX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n YKHO.render('view.html')",
"def Wzeq():\n return TvZl('index.html')",
"def Wzeq():\n return TvZl('hello.html')",
"def l3JJ(QePW):\n return _1tc(QePW, 'home_demo.html')",
"def NMoC(YKHO, QePW):\n return igJ6('This is a demo page... | [
"0.821791",
"0.75176954",
"0.72749573",
"0.7261973",
"0.7192465",
"0.71233886",
"0.70735615",
"0.7061879",
"0.7048055",
"0.7027845",
"0.70275414",
"0.7005511",
"0.7005511",
"0.7005511",
"0.7005511",
"0.7005511",
"0.70037985",
"0.6982495",
"0.69556683",
"0.6951724",
"0.6945805... | 0.0 | -1 |
Example view demonstrating rendering a simple HTML page. | def d6pt():
QpfX = ACzc()
return Yxsy(TvZl('parent.html', **QpfX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n YKHO.render('view.html')",
"def Wzeq():\n return TvZl('index.html')",
"def Wzeq():\n return TvZl('hello.html')",
"def l3JJ(QePW):\n return _1tc(QePW, 'home_demo.html')",
"def NMoC(YKHO, QePW):\n return igJ6('This is a demo page... | [
"0.82181305",
"0.7517457",
"0.7275192",
"0.7262132",
"0.719313",
"0.7124594",
"0.7073872",
"0.70624375",
"0.7048777",
"0.70286745",
"0.7027904",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.7004205",
"0.6983125",
"0.69557106",
"0.69523466",
"0.6946... | 0.0 | -1 |
Example view demonstrating rendering a simple HTML page. | def LPxM():
QpfX = ACzc()
return Yxsy(TvZl('parent.html', **QpfX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n YKHO.render('view.html')",
"def Wzeq():\n return TvZl('index.html')",
"def Wzeq():\n return TvZl('hello.html')",
"def l3JJ(QePW):\n return _1tc(QePW, 'home_demo.html')",
"def NMoC(YKHO, QePW):\n return igJ6('This is a demo page... | [
"0.82181305",
"0.7517457",
"0.7275192",
"0.7262132",
"0.719313",
"0.7124594",
"0.7073872",
"0.70624375",
"0.7048777",
"0.70286745",
"0.7027904",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.7004205",
"0.6983125",
"0.69557106",
"0.69523466",
"0.6946... | 0.0 | -1 |
Initialises a new 'Card' instance. | def FIMM(YKHO, AXYx='', dPbC='', zvTx='', Qa24='', AOhM=None, *qIxc, **lcZy):
YKHO.cvNumber = AXYx
YKHO.expiryDate = dPbC
YKHO.pan = zvTx
YKHO.accountHolderName = Qa24
YKHO._Tender = None
YKHO.Tender = AOhM
super(F1Hz, YKHO).__init__(*qIxc, **lcZy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxhl(YKHO):\n return F1Hz(YKHO)",
"def dxhl(YKHO):\n return F1Hz(YKHO)",
"def dxhl(YKHO, S5Ok):\n return F1Hz(YKHO, S5Ok)",
"def FIMM(YKHO, khoC):\n YKHO.cards = khoC",
"def FIMM(YKHO):\n YKHO._cards = []\n for iCfd in F1Hz.SUITS:\n for fdMZ in F1Hz.RANKS:\n Z9rn = F... | [
"0.7595477",
"0.7595477",
"0.75220245",
"0.73043734",
"0.7297351",
"0.711586",
"0.70074624",
"0.6916885",
"0.69013155",
"0.689829",
"0.6874861",
"0.68229765",
"0.6746718",
"0.67043597",
"0.6690313",
"0.66680276",
"0.66432744",
"0.6631094",
"0.6617398",
"0.65881944",
"0.658157... | 0.6368037 | 33 |
Retrieve a dictionary of all the initial savers for the models. | def DH8G(hic2=None, fCvZ=None):
if hic2 is None:
return None
dDca = {}
for H5ew, rrBf in hic2.items():
DjqK = [Ty9i for Ty9i in ZylS.trainable_variables() if Ty9i.op.name.startswith(rrBf)]
yUkU = []
if not fCvZ:
d9X6 = None
else:
d9X6 = fCvZ.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KnGo(YKHO):\n ZqX8 = dict()\n for YRbF in range(YKHO.bootstraps):\n ZqX8[f'forward_model_{YRbF}'] = YKHO.forward_models[YRbF]\n ZqX8[f'forward_model_optim_{YRbF}'] = YKHO.forward_model_optims[YRbF]\n return ZqX8",
"def KnGo(YKHO):\n ZqX8 = dict()\n ZqX8['encoder'] = YKHO.encoder\... | [
"0.7220556",
"0.68799424",
"0.6786313",
"0.66161346",
"0.6426652",
"0.6191279",
"0.59106165",
"0.59010965",
"0.5895657",
"0.5767955",
"0.57111275",
"0.5704965",
"0.5664016",
"0.55205977",
"0.5519148",
"0.550118",
"0.5498998",
"0.5492102",
"0.54644394",
"0.54613525",
"0.541442... | 0.58454967 | 9 |
Get a Config object for this API client. Broken out into a seperate method so that the test client can easily mock it up. | def wLv7(YKHO, B2fa):
return PSrQ(config_file=B2fa.pop('config_file', None), env=B2fa.pop('env', None), overrides=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD() -> PSrQ:\n return k7py('config', PnaH)",
"def tgzD() -> PSrQ:\n dLQw = Hy7s.environ.get('APP_CONFIG', 'ProductionConfig')\n sLOJ = ANWz.import_module('.'.join(f'magma.fluentd_client.config.{dLQw}'.split('.')[:-1]))\n suDX = getattr(sLOJ, dLQw.split('.')[-1])\n return suDX()",
"def tgz... | [
"0.76499104",
"0.7580057",
"0.75240105",
"0.74937093",
"0.7415436",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
"0.7369667",
... | 0.0 | -1 |
Return an annotation file name. | def VQM8(N1df=None, Ncq3=None):
if N1df is None:
N1df = Hy7s.path.dirname(ckRy.sppas)
if Ncq3 is None:
Ncq3 = 'newfile.xra'
QN9E = None
DwPX = s6RI('All files', eysH.src.anndata.aio.extensions_out)
DwPX += '|' + s6RI('SPPAS', eysH.src.anndata.aio.ext_sppas)
DwPX += '|' + s6RI('Pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sODO(YKHO):\n y0cW = 'instances' if 'test' not in YKHO.image_set else 'image_info'\n return Hy7s.path.join(YKHO.data_path, 'annotations', y0cW + '_' + YKHO.image_set + '.json')",
"def P_c5(YKHO):\n y0cW = 'person_keypoints' if 'test' not in YKHO.image_set else 'image_info'\n return Hy7s.path.join... | [
"0.7418841",
"0.68435615",
"0.682097",
"0.66299987",
"0.656887",
"0.6557899",
"0.6556182",
"0.65302604",
"0.64878166",
"0.647368",
"0.64341724",
"0.64009744",
"0.64009744",
"0.63951856",
"0.6353541",
"0.6316454",
"0.63093704",
"0.6307422",
"0.6298539",
"0.62940073",
"0.628640... | 0.0 | -1 |
Return an audio file name. | def Hcmc(N1df=None, Ncq3=None):
if N1df is None:
N1df = Hy7s.path.dirname(ckRy.sppas)
if Ncq3 is None:
Ncq3 = 'newfile.wav'
QN9E = None
DwPX = s6RI('All files', eysH.src.audiodata.aio.extensions)
DwPX += '|' + s6RI('Wave', eysH.src.audiodata.aio.ext_wav)
DwPX += '|' + s6RI('SunAu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NYvG(uePu):\n Ux0P = uePu.rsplit('\\\\')[-1]\n Wo3y = Ux0P.split('.')[0]\n YAX6 = Wo3y.split('_')\n return (YAX6[0], YAX6[1])",
"def lMaj(YKHO, AGPF=None):\n return YKHO.make_path(AGPF, '.wav')",
"async def filename_generator(YKHO):\n gLiZ = list(vIwR.ascii_letters + vIwR.digits)\n mWF... | [
"0.7163907",
"0.7151597",
"0.7086605",
"0.7004378",
"0.69046944",
"0.68545365",
"0.68324274",
"0.682576",
"0.6728781",
"0.6726534",
"0.6720378",
"0.6610018",
"0.6576102",
"0.6570494",
"0.6541448",
"0.651236",
"0.65009606",
"0.64982784",
"0.64948183",
"0.64736646",
"0.6453473"... | 0.0 | -1 |
Compare prediction boxes and ground truths, convert ground truths to network output tensors | def qVsV(YKHO, TdCN, Fv2L, Emd4, yLaY, ZXIx, DBnx):
X1ie = len(yLaY)
BJo2 = YKHO.num_anchors
DRiY = BJo2 * ZXIx * DBnx
JEir = ZXIx * DBnx
begE = TdCN.device
QmNn = ht2j.zeros(X1ie, BJo2, ZXIx * DBnx, requires_grad=False, device=begE)
m185 = ht2j.ones(X1ie, BJo2, ZXIx * DBnx, requires_grad=Fa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(YKHO, Zxma, nPrm, o3Uj, w75t):\n L39K = o3Uj['output']\n Wc9F = gnPz.shape(L39K)[0]\n o3Uj = ZylS.reshape(L39K, (Wc9F, YKHO.num_cells, YKHO.num_cells, YKHO.num_anchors, 4 + 1 + YKHO.num_classes))\n XLl_, Wowf, DZ2k = ZylS.split(o3Uj, [4, 1, YKHO.num_classes], axis=-1)\n Wowf = ZylS.nn.sigmo... | [
"0.67889076",
"0.6518005",
"0.6427023",
"0.6401813",
"0.638819",
"0.6374475",
"0.6349312",
"0.63418466",
"0.6236348",
"0.62105435",
"0.619718",
"0.61827886",
"0.61690557",
"0.6163719",
"0.6132844",
"0.61314994",
"0.60833293",
"0.60723686",
"0.60481024",
"0.60324675",
"0.60292... | 0.58071774 | 60 |
Compute 'Scaled Dot Product Attention' | def v2uf(xDcj, H5ew, ZHfW=None, PrhD=None):
d4TZ = xDcj.size(-1)
cCrA = ht2j.matmul(xDcj, H5ew.transpose(-2, -1)) / epAf.sqrt(d4TZ)
if ZHfW is not None:
cCrA = cCrA.masked_fill(ZHfW == 0, -1000000000.0)
qtro = ht2j.softmax(cCrA, dim=-1)
if PrhD is not None:
qtro = PrhD(qtro)
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * 1e-09\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmul(HfyR, Ty9i)... | [
"0.67412263",
"0.66336447",
"0.6571855",
"0.65150195",
"0.6505148",
"0.6504337",
"0.6503735",
"0.6503735",
"0.64900446",
"0.6464487",
"0.64103204",
"0.6387002",
"0.63768214",
"0.62903184",
"0.61006254",
"0.6056964",
"0.601408",
"0.5984356",
"0.595376",
"0.5942652",
"0.5925456... | 0.0 | -1 |
ROunds a tensor whose values are in [0,1] to a tensor with values in {0, 1}, using the straight through estimator for gradient. | def ELxP(WKvO):
Oa1e = ZylS.get_default_graph()
with IPme.name_scope('BinaryRound') as mWFP:
with Oa1e.gradient_override_map({'Round': 'Identity'}):
return ZylS.round(WKvO, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def af4H(WKvO):\n return WKvO",
"def ZTHV(WKvO):\n return ZylS.math.maximum(-1.0, ZylS.math.minimum(WKvO, 1.0))",
"def Yknt(YKHO, EcVT):\n EcVT[EcVT <= 0] = 0\n EcVT[EcVT > 0] = 1\n return EcVT",
"def APUW(YKHO):\n LVAh = YKHO.x\n LVAh[LVAh <= 0] = 0\n LVAh[LVAh > 0] = 1\n return L... | [
"0.69592494",
"0.66187894",
"0.6595226",
"0.6284046",
"0.62720966",
"0.6221529",
"0.6201836",
"0.6101813",
"0.6088306",
"0.6064112",
"0.60494924",
"0.6029087",
"0.59983575",
"0.59804493",
"0.5972279",
"0.5961465",
"0.5958991",
"0.59537625",
"0.58880985",
"0.58342624",
"0.5834... | 0.0 | -1 |
Sigmoid that uses identity function as its gradient | def B4RM(WKvO, VMex=1):
Oa1e = ZylS.get_default_graph()
with IPme.name_scope('PassThroughSigmoid') as mWFP:
with Oa1e.gradient_override_map({'Sigmoid': 'Identity'}):
return ZylS.sigmoid(WKvO, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efwP(WKvO):\n wEsz = m1Hg(WKvO)\n return oyIN.multiply(wEsz, 1 - wEsz)",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"d... | [
"0.82425267",
"0.80847204",
"0.80847204",
"0.8064086",
"0.8041086",
"0.8041086",
"0.8041086",
"0.8041086",
"0.8041086",
"0.8041086",
"0.80310744",
"0.80277723",
"0.80227524",
"0.8010798",
"0.80015695",
"0.7965877",
"0.79616094",
"0.79616094",
"0.7958036",
"0.7945106",
"0.7944... | 0.0 | -1 |
Sigmoid followed by a random sample from a bernoulli distribution according to the result (binary stochastic neuron). Uses the REINFORCE estimator. | def nsQa(WKvO, XQkR=True, j8rZ='loss_by_example'):
Oa1e = ZylS.get_default_graph()
with IPme.name_scope('BinaryStochasticREINFORCE'):
with Oa1e.gradient_override_map({'Sigmoid': 'BinaryStochastic_REINFORCE', 'Ceil': 'Identity'}):
XP5J = ZylS.sigmoid(WKvO)
THT3 = Oa1e.get_collecti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8d8(YKHO):\n MxcS = 1\n Aofo = YDYE.soft_sigmoid(MxcS)\n YKHO.assertEqual(Aofo, 0.6963549298238342)",
"def bIkA(YKHO, WErR):\n return ZylS.nn.relu(ZylS.sign(WErR - ZylS.random.uniform(WErR.shape)))",
"def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.exp(-WKvO))\n return hcL3\n pass",
"def... | [
"0.6788619",
"0.661523",
"0.65626025",
"0.65106994",
"0.6464587",
"0.645306",
"0.64352655",
"0.64330506",
"0.64265305",
"0.64265305",
"0.64251316",
"0.63954926",
"0.6392146",
"0.6391586",
"0.6384326",
"0.6384326",
"0.6384326",
"0.6384326",
"0.6384326",
"0.6384326",
"0.6370358... | 0.5914658 | 98 |
Create list with all positions of the bits represented by the bit field. | def UOVU(YKHO):
return list(range(YKHO.lsb, YKHO.msb + 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFWN(UOVU: int) -> list[DhiK]:\n FBNX = []\n for Mkmy in range(8):\n for Z9rn in range(8):\n ZHfW = hQWV(Mkmy, Z9rn)\n if UOVU & ZHfW > 0:\n FBNX.append(DhiK(Mkmy, Z9rn))\n return FBNX",
"def KIer(exwG):\n return [exwG >> YRbF & 1 for YRbF in range(7, -... | [
"0.8175614",
"0.72153026",
"0.70743394",
"0.6961602",
"0.68579984",
"0.6583331",
"0.6429662",
"0.64068633",
"0.6334687",
"0.62720686",
"0.62673223",
"0.6173341",
"0.615376",
"0.615376",
"0.6092991",
"0.6043566",
"0.59320277",
"0.5929743",
"0.59139615",
"0.5909586",
"0.5904987... | 0.7191359 | 2 |
Display a user friendly time from number of second. | def Qm2K(KCHu):
KCHu = int(KCHu)
if KCHu < 60:
return '{}s'.format(KCHu)
r8hN = KCHu // 60
KCHu = KCHu % 60
if r8hN < 60:
return '{}m {}s'.format(r8hN, KCHu)
MKlR = r8hN // 60
r8hN = r8hN % 60
if MKlR < 24:
return '{}h {}m {}s'.format(MKlR, r8hN, KCHu)
Csk6 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmHs(mLGw):\n if mLGw > 3600:\n return '%0.2f hrs' % (mLGw / 3600)\n elif mLGw > 60:\n return '%0.2f mins' % (mLGw / 60)\n else:\n return '%d seconds' % mLGw",
"def yIF9(a1PO):\n if a1PO < 2 * wKbE:\n return '%d seconds' % (a1PO / B5MA)\n if a1PO < 5 * sTwI:\n ... | [
"0.7702885",
"0.7260868",
"0.7231293",
"0.7144458",
"0.70752937",
"0.70528513",
"0.70471877",
"0.69600505",
"0.6946774",
"0.69319427",
"0.6925383",
"0.6920295",
"0.68728316",
"0.6869056",
"0.6839289",
"0.6837528",
"0.68244547",
"0.6815648",
"0.6775087",
"0.67601573",
"0.67386... | 0.6967122 | 7 |
Add a app to the database. | def FIoA(YKHO, P4t4: AppDefinition) -> None:
YKHO.db.insert_app(app=P4t4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIoA(YKHO, P4t4, p9bx):\n YKHO.add_app_sig(xG6T.from_app(P4t4, p9bx))",
"def FIoA(YKHO, P4t4, p9bx):\n YKHO.add_app_sig(xG6T.from_app(P4t4, p9bx))",
"def FIoA(YKHO, nPrm):\n B7c0 = str(qxeD.uuid4()).replace('-', '')\n try:\n YKHO._session.add(rIQl(id=B7c0, name=nPrm['name'], description=... | [
"0.81557506",
"0.81557506",
"0.79858816",
"0.77437276",
"0.7336584",
"0.7070419",
"0.68768734",
"0.6737575",
"0.64329773",
"0.6393965",
"0.63553363",
"0.6236789",
"0.62307894",
"0.62022716",
"0.616582",
"0.611664",
"0.6075109",
"0.603338",
"0.603338",
"0.6025594",
"0.6022432"... | 0.8988868 | 0 |
Compute stress and derivative of elasticity matrix. This assumes behavior is always viscoelastic. | def M034(YKHO, as6B, wE5l, N5oW, y4mS, THSk, a9vd, tWqO, Nci0, w8e4, pq1_):
import scipy.misc
fWIP = XTiz.array(a9vd, dtype=XTiz.float64)
iVQ_ = XTiz.array(as6B, dtype=XTiz.float64)
eQ8X = XTiz.array(tWqO, dtype=XTiz.float64)
YpP6 = XTiz.array(Nci0, dtype=XTiz.float64)
QBAw = XTiz.array(w8e4, dt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YAdk(YKHO):\n jmzt = YKHO.deviatoric_stress_tensor()\n YRqy = jmzt[0, 0]\n QG7k = jmzt[1, 1]\n zf6d = jmzt[2, 2]\n LACi = jmzt[0, 1]\n nULH = jmzt[0, 2]\n zeON = jmzt[1, 2]\n u9PV = 0.5 * (+YRqy ** 2 + QG7k ** 2 + zf6d ** 2) + LACi ** 2 + nULH ** 2 + zeON ** 2\n return u9PV",
"def ... | [
"0.6218858",
"0.59964424",
"0.58846176",
"0.58669984",
"0.582145",
"0.58073324",
"0.5766871",
"0.5762073",
"0.5660937",
"0.56476516",
"0.56444407",
"0.561541",
"0.55837595",
"0.5561357",
"0.5549641",
"0.55379343",
"0.5504817",
"0.5443423",
"0.54414934",
"0.5437416",
"0.543544... | 0.59200615 | 2 |
Creates and returns the test dataset. | def _Pkd(YKHO, HrkN):
tz7b = 'smp' in YKHO.model_params['architecture']
umwG = P5KH(tz7b)
qby3 = mS5Y(im_ids=HrkN, transforms=None, preprocessing=umwG, file_ending=YKHO.io_params['file_ending'])
return qby3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QOe9(YKHO) -> ZylS.contrib.data.Dataset:\n return YKHO.__test_dataset",
"def alxV():\n ZylS.logging.info('Create records..')\n EvQg, wEf2, QOe9 = gnPz.load_data(h_xa, vPBo['is_aug'])\n ZylS.logging.info('Dataset size: Train-{} Test-{} Val-{}'.format(len(EvQg), len(QOe9), len(wEf2)))\n return (... | [
"0.742971",
"0.72319597",
"0.71850467",
"0.71055573",
"0.70824",
"0.70562875",
"0.704636",
"0.69980824",
"0.6994394",
"0.6985985",
"0.6985392",
"0.6981336",
"0.6949997",
"0.6947164",
"0.68814176",
"0.6865364",
"0.68530613",
"0.6838767",
"0.6835561",
"0.68294686",
"0.68141043"... | 0.69013166 | 14 |
Get the full path to a data file. Returns the path to a file underneath the data directory (as defined by `get_data_path`). Equivalent to os.path.join(get_data_path(), path_segments). | def _eRz(*Desv):
return Hy7s.path.join(s8df(), *Desv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(i0XC):\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo)) + Hy7s.sep + i0XC",
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def F28p(Ux0P, pmON='Data/'):\n pmON = Hy7s.path.abspath(Hy7s.path.dirname(pmON))\n return Hy7s.path.join(pmON, Ux0P)",
"def s8df():\n pmON = Hy... | [
"0.72607946",
"0.7119141",
"0.7067157",
"0.70307446",
"0.6968667",
"0.69363314",
"0.6856017",
"0.6853482",
"0.6807814",
"0.67673206",
"0.67672586",
"0.6726451",
"0.6712626",
"0.6684106",
"0.6662318",
"0.6579254",
"0.6562185",
"0.652093",
"0.6484198",
"0.646809",
"0.6438099",
... | 0.8366851 | 0 |
Retrieve malstor data path This path is by default /../data/ in trunk and /usr/share/malstor in an installed version but this path is specified at installation time. | def s8df():
pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo), mkjs)
Eu4W = Hy7s.path.abspath(pmON)
if not Hy7s.path.exists(Eu4W):
raise iJw0
return Eu4W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'",
"def s8df():\n return fHZh[m1hO]",
"def lCFC():\n return '../data/'",
"def yLtf(pmON):\n return Hy7s.path.join(i5d9,... | [
"0.7547989",
"0.74351656",
"0.74136823",
"0.7373983",
"0.7277516",
"0.71793264",
"0.70989656",
"0.7083018",
"0.7026813",
"0.7022432",
"0.6990429",
"0.69896203",
"0.69415456",
"0.6915631",
"0.69149214",
"0.6911404",
"0.6906606",
"0.69063455",
"0.687315",
"0.68687177",
"0.68587... | 0.7571487 | 0 |
Get the full path of local module folder | def U3hP(b32v, LCet):
dMng = gmYT()
return Hy7s.path.join(dMng, b32v['groupId'].replace('.', '/'), LCet, b32v['releaseVersion']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))",
"def MJH2(YKHO):\n return YKHO.config['cwd']",
"def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def MJH2():\n try:\n oWVO = xAKo\n except NameError:\n PeNE = wVCK.extract_stack(... | [
"0.817398",
"0.7930023",
"0.78983164",
"0.7768528",
"0.77180034",
"0.7680845",
"0.7658833",
"0.7601667",
"0.75917286",
"0.7568644",
"0.74617666",
"0.7368266",
"0.7356213",
"0.73433405",
"0.7276671",
"0.72656554",
"0.7257367",
"0.723635",
"0.7219493",
"0.72036743",
"0.7187815"... | 0.0 | -1 |
Convert UTC date to milliseconds If using offset strings add "UTC" to date string e.g. "now UTC", "11 hours ago UTC" | def ACWr(mbyn):
qtWj = qcWV.utcfromtimestamp(0).replace(tzinfo=FXGE.utc)
Csk6 = mcOP.parse(mbyn)
if Csk6.tzinfo is None or Csk6.tzinfo.utcoffset(Csk6) is None:
Csk6 = Csk6.replace(tzinfo=FXGE.utc)
return int((Csk6 - qtWj).total_seconds() * 1000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QkJD(_c1T):\n return _c1T + (qcWV.utcnow() - qcWV.now())",
"def oZmq(VwNh):\n return VwNh + UJxm",
"def JyU8(UJxm):\n vgXP = abs(UJxm)\n ROt1 = str(vgXP // 3600)\n if len(ROt1) == 1:\n ROt1 = str(0) + ROt1\n yVtz = str(vgXP % 3600 // 60)\n if len(yVtz) == 1:\n yVtz = str(... | [
"0.64477664",
"0.63468456",
"0.6254665",
"0.6040414",
"0.60042995",
"0.598265",
"0.5965658",
"0.5949968",
"0.5902936",
"0.58564705",
"0.5855957",
"0.5819514",
"0.5818276",
"0.58011425",
"0.5786838",
"0.577368",
"0.5727744",
"0.56951255",
"0.5691665",
"0.56866693",
"0.56724995... | 0.5823514 | 12 |
Converts String to all uppercases | def CN9P(BWXx, exwG):
return BWXx.upper()[0:exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmjV(str):\n return str.upper()",
"def CN9P(vIwR):\n st9m = ''\n for hcXw in vIwR:\n if hcXw.isalpha() and (not hcXw.isupper()):\n hcXw = chr(ord(hcXw) - 32)\n if hcXw.isalnum() or hcXw == ' ':\n st9m += hcXw\n return st9m",
"def QmjV(vIwR):\n return str(v... | [
"0.81259036",
"0.8069639",
"0.8029967",
"0.78622484",
"0.76900023",
"0.7559602",
"0.73790437",
"0.72199166",
"0.7084664",
"0.69768184",
"0.6973606",
"0.6916794",
"0.6864883",
"0.68216723",
"0.67940587",
"0.6714895",
"0.6669458",
"0.66394484",
"0.66189635",
"0.6598447",
"0.658... | 0.57867795 | 94 |