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 |
|---|---|---|---|---|---|---|
Get a dictionary with data from multiple tables. If a ``tables`` list is given, only load the indicated tables. Otherwise, load all the tables from this metadata. | def sDa_(YKHO, xU0C=None):
return {GTA_: YKHO.load_table(GTA_) for GTA_ in xU0C or YKHO.get_tables()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4pp(N1p7, *xU0C):\n lXgg = []\n for tyNF in xU0C:\n N1p7.execute(f'SELECT * FROM {tyNF};')\n nPrm = N1p7.fetchall()\n lXgg.append(nPrm)\n try:\n return lXgg if len(lXgg) > 1 else lXgg[0]\n except:\n return []",
"def sDa_(YKHO):\n if not len(YKHO._meta):\n ... | [
"0.6528968",
"0.6165072",
"0.6145485",
"0.61357963",
"0.60547894",
"0.59716797",
"0.58489496",
"0.58373743",
"0.58332884",
"0.5814303",
"0.58064365",
"0.57212013",
"0.56989026",
"0.56770927",
"0.56572306",
"0.5641059",
"0.5639461",
"0.5595813",
"0.5579743",
"0.5567074",
"0.55... | 0.74473447 | 0 |
Get a ``dict`` with the ``dtypes`` for each field of a given table. | def _TSe(YKHO, GTA_, A07C=False, UAju=None):
UAju = [] if UAju is None else UAju
m1c7 = dict()
KHoW = YKHO.get_table_meta(GTA_)
for mWFP, Jyyj in KHoW['fields'].items():
vF49 = Jyyj['type']
YYrW = Jyyj.get('subtype')
yDqo = YKHO._DTYPES.get((vF49, YYrW))
if not yDqo:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNeg(KHoW):\n m1c7 = dict()\n for mWFP, Jyyj in KHoW['fields'].items():\n vF49 = Jyyj['type']\n if vF49 == 'id' and Jyyj.get('subtype', 'integer') == 'string':\n m1c7[mWFP] = str\n return m1c7",
"def EDZJ(nPrm, KHoW):\n for mWFP, Jyyj in KHoW['fields'].items():\n v... | [
"0.67987114",
"0.6779612",
"0.65333456",
"0.64418864",
"0.638998",
"0.6302129",
"0.62453437",
"0.6204387",
"0.6203673",
"0.6092654",
"0.60632783",
"0.605545",
"0.5997926",
"0.5938379",
"0.5924489",
"0.592412",
"0.58567226",
"0.58298707",
"0.58231306",
"0.5808817",
"0.5735598"... | 0.7376008 | 0 |
Create and return a new ``rdt.HyperTransformer`` instance for a table. First get the ``dtypes`` and ``pii fields`` from a given table, then use those to build a transformer dictionary to be used by the ``HyperTransformer``. | def ossi(YKHO, GTA_):
m1c7 = YKHO.get_dtypes(GTA_)
ICzn = YKHO._get_pii_fields(GTA_)
mcj5 = YKHO._get_transformers(m1c7, ICzn)
return wWhu(field_transformers=mcj5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(YKHO, GTA_, nPrm):\n YVGG = YKHO._hyper_transformers.get(GTA_)\n if YVGG is None:\n YVGG = YKHO._load_hyper_transformer(GTA_)\n V_D6 = list(YVGG.transformers.keys())\n YVGG.fit(nPrm[V_D6])\n YKHO._hyper_transformers[GTA_] = YVGG\n YVGG = YKHO._hyper_transformers.get(GT... | [
"0.6244833",
"0.58232886",
"0.58181757",
"0.57892895",
"0.5649662",
"0.5565955",
"0.5486023",
"0.54371905",
"0.53667235",
"0.53400356",
"0.5253508",
"0.5126489",
"0.507082",
"0.5066768",
"0.5051716",
"0.504689",
"0.4984964",
"0.4981889",
"0.4979985",
"0.4939528",
"0.49351802"... | 0.76064014 | 0 |
Get a dict representation of this metadata. | def MNRr(YKHO):
return jth9.deepcopy(YKHO._metadata) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hati(YKHO):\n return YKHO._data",
"def _fYl(YKHO):\n return dict(YKHO.as_OD())",
"def MNRr(YKHO):\n return dict(YKHO.__data)",
"def oUlR(YKHO):\n return {}",
"def _fYl(YKHO):\n return dict(YKHO._d)",
"def yIVm(YKHO) -> dict:\n return YKHO._metadata",
"def hati(YKHO):\n return",... | [
"0.8048202",
"0.8043872",
"0.804037",
"0.8039867",
"0.80089813",
"0.7966518",
"0.79466915",
"0.7941678",
"0.7900131",
"0.78628224",
"0.7856073",
"0.78538454",
"0.78473145",
"0.78473145",
"0.78473145",
"0.78473145",
"0.78473145",
"0.78473145",
"0.78473145",
"0.7837404",
"0.783... | 0.83734834 | 0 |
Return a relative version of a path | def PsRC(pmON, yKcO=Hy7s.path.curdir):
if not pmON:
raise ValueError('no path specified')
W8qs = Hy7s.path.abspath(yKcO).split(Hy7s.path.sep)
BTLB = Hy7s.path.abspath(pmON).split(Hy7s.path.sep)
YRbF = len(Hy7s.path.commonprefix([W8qs, BTLB]))
a4wQ = [Hy7s.path.pardir] * (len(W8qs) - YRbF) + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)",
"def sueC(pmON: str):\n return gzes('.', pmON)",
"def vT7J(pmON):\n iQZE = ToLc(pmON)\n return iQZE[-1]",
"def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())",
"def PsRC(pmON):\n return Hy7s.p... | [
"0.7916205",
"0.77834916",
"0.77383643",
"0.765349",
"0.7530642",
"0.7522436",
"0.7415771",
"0.7404095",
"0.729165",
"0.72837",
"0.7279967",
"0.723366",
"0.7217335",
"0.71864855",
"0.7178365",
"0.7105353",
"0.7092798",
"0.70900303",
"0.70873284",
"0.70858437",
"0.70681816",
... | 0.6645015 | 67 |
Determine if an instancemethod is a classmethod. | def lnV2(Ja3b):
return isinstance(Ja3b, ZpAm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAgC(JfyU):\n return tq_1.ismethod(JfyU) and tq_1.isclass(JfyU.__self__)",
"def zkx9(object):\n if isinstance(object, classmethod):\n return True\n eJh7 = STrU(object)\n return isinstance(eJh7, classmethod)",
"def CyqB(JfyU):\n return tq_1.ismethod(JfyU) and (not tq_1.isclass(JfyU.__s... | [
"0.8289466",
"0.80914414",
"0.73406345",
"0.71501476",
"0.6694424",
"0.6512561",
"0.64570767",
"0.6446485",
"0.6407424",
"0.63292104",
"0.6198845",
"0.61335665",
"0.6073957",
"0.59742606",
"0.58597153",
"0.58566",
"0.58469933",
"0.58355445",
"0.58355445",
"0.58355445",
"0.583... | 0.8521102 | 0 |
Makes a pandas.Timestamp from separate date/time columns | def LNSP(rdlD, T_zh='sampledate', fo1q='sampletime', gvM6=False):
pw0l = CwDs.Timestamp('1901-01-01 00:00')
if rdlD[T_zh] is None or CwDs.isnull(rdlD[T_zh]):
D8mJ = True
else:
D8mJ = False
try:
_c1T = CwDs.Timestamp(rdlD[T_zh]).date()
except ValueError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4XS(jQ3Z):\n jQ3Z['datetime'] = rLdf.to_datetime(jQ3Z[['year', 'month', 'day']])\n return jQ3Z.drop(['year', 'month', 'day'], axis=1)",
"def JA_9(jQ3Z, r1Ih):\n yKcO = rLdf.to_datetime(jQ3Z[r1Ih].iloc[0])\n jQ3Z['timestamp'] = jQ3Z[r1Ih].map(lambda TexU: round(rLdf.Timedelta(rLdf.to_datetime(Tex... | [
"0.6704169",
"0.6348494",
"0.63431937",
"0.6339834",
"0.63293004",
"0.6276006",
"0.62625486",
"0.60891914",
"0.6071224",
"0.6056047",
"0.60558647",
"0.60459244",
"0.5997766",
"0.5963852",
"0.5887086",
"0.5873021",
"0.5871804",
"0.58452016",
"0.5842066",
"0.5835369",
"0.582520... | 0.68139815 | 0 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(igSk, GgQG, TGuP, tk0B):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
q5XV = 6367 * Z9rn
return q5XV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.81450045",
"0.7863265",
"0.76322985",
"0.76064754",
"0.75978696",
"0.75965863",
"0.75944835",
"0.75720793",
"0.75630087",
"0.7555095",
"0.7528691",
"0.7517629",
"0.7492963",
"0.7467739",
"0.7452678",
"0.7434477",
"0.73914117",
"0.7357736",
"0.73484355",
"0.73318124",
"0.73... | 0.0 | -1 |
Compute crossentropy loss for each meaningful tokens. Mask padded tokens. | def N77f(YKHO, Crrw, KeL5, ZHfW=None):
N8L0 = ZylS.nn.softmax_cross_entropy_with_logits(ZylS.one_hot(Crrw, depth=KeL5.shape[-1]), KeL5, axis=-1)
TIRP = ZHfW
N77f = ZylS.reduce_mean(ZylS.boolean_mask(N8L0, TIRP))
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ElV2(ItAd, SRbu):\n Dv0y = sum(ItAd.values())\n CqbS = 0\n kr7Q = []\n for u8Mh in ItAd:\n if SRbu.score(u8Mh[-1], list(u8Mh[0:3])) == 0 or Dv0y == 0:\n VAJu = oyIN.mean(kr7Q) if len(kr7Q) > 0 else oyIN.log2(0.287)\n else:\n VAJu = SRbu.logscore(u8Mh[-1], list(u8... | [
"0.68517584",
"0.6792142",
"0.670545",
"0.6694029",
"0.6651434",
"0.66461945",
"0.6644646",
"0.6644646",
"0.6644646",
"0.66034156",
"0.6459853",
"0.6421803",
"0.6406869",
"0.63361883",
"0.62785214",
"0.62050843",
"0.6177554",
"0.61557704",
"0.6135562",
"0.60815305",
"0.604350... | 0.6068272 | 20 |
Return True iff a node is within a given region (and region is specified). | def ElqT(Q6kx, CbMw=None, jNOo=None):
(Q6uT, BHsk), UECO = Q6kx
if CbMw and Q6uT != CbMw:
return False
if jNOo and BHsk < jNOo[0]:
return False
if jNOo and BHsk > jNOo[1]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bre9(AU8u, fLbe):\n if AU8u[0] >= fLbe[0] and AU8u[0] < fLbe[1] and (AU8u[1] >= fLbe[2]) and (AU8u[1] < fLbe[3]):\n return True\n else:\n return False",
"def cYla(Rci7, zn0c):\n Z9rn = PPwE(Rci7, zn0c)\n if Z9rn % 2 == 1:\n return True\n else:\n return False",
"de... | [
"0.7497887",
"0.7207402",
"0.71981275",
"0.681518",
"0.6700083",
"0.6549555",
"0.6470701",
"0.64154464",
"0.63749754",
"0.6371608",
"0.63354194",
"0.63082546",
"0.6283306",
"0.61995304",
"0.61958104",
"0.6170806",
"0.6169217",
"0.6161878",
"0.61574614",
"0.613822",
"0.6126415... | 0.69047827 | 3 |
Define the equal operator. Two records are equal if they have the same id. | def xa14(YKHO, Elif):
return int(YKHO.id) == int(Elif.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.id == Elif.id",
"def xa14(YKHO, Elif):\n return YKHO.__id == Elif.get_id()",
"def g_Z3(YKHO, Elif):\n return YKHO.id == Elif.getIdent()",
"def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO.id == Elif.id",
"def xa14(YKHO, Elif):\n if not isin... | [
"0.7627095",
"0.74276555",
"0.72621286",
"0.72477275",
"0.71944785",
"0.71252626",
"0.7114959",
"0.71076214",
"0.70485914",
"0.70191073",
"0.7006052",
"0.7000478",
"0.69906247",
"0.6954639",
"0.68877083",
"0.6800893",
"0.67967874",
"0.6789688",
"0.67714435",
"0.67189115",
"0.... | 0.75839216 | 1 |
Gets the foreign keys for the key and time provided. | def XbAV(YKHO, vkFH, H5ew=None):
return [YKHO.select(vkFH, 'foreign_edges', H5ew)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oIBR(YKHO, _AKB, aUGN):\n nmZj = []\n for mWFP, Jyyj in YKHO.get_fields(aUGN).items():\n bf9h = Jyyj.get('ref')\n if bf9h and bf9h['table'] == _AKB:\n nmZj.append(mWFP)\n return nmZj",
"def oIBR(YKHO):\n YKHO.db._refresh_types_internal([w4Cq])\n return YKHO.find(type_c... | [
"0.6656787",
"0.6610269",
"0.63572264",
"0.6314893",
"0.60704213",
"0.6001471",
"0.59741664",
"0.58700275",
"0.5781416",
"0.5309382",
"0.5279823",
"0.5252607",
"0.5033911",
"0.5015082",
"0.49459943",
"0.49356586",
"0.488678",
"0.48856026",
"0.48165056",
"0.48121664",
"0.47988... | 0.5459232 | 9 |
API to get all questions for a specific task (most recent questions first) | def N9jI(QePW, _TKD):
try:
D5gV = o2Vr.objects.get(id=_TKD)
except o2Vr.DoesNotExist:
return oGir(status=jGRS.HTTP_404_NOT_FOUND)
if QePW.method == 'GET':
WlEx = Y4Gy.objects.filter(task=D5gV).all().order_by('-timestamp')
ZMzz = aWwH(WlEx, many=True)
return oGir(ZMzz.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n CBIr = teIG()\n Mh_N = cMkG()\n xCjU = ltTF().values()\n xCjU = [a1PO for a1PO in xCjU if not (a1PO['state'] == 'SUCCESS' or a1PO['state'] == 'FAILURE' or a1PO['state'] == 'REVOKED')]\n k4RR = {vexM.id: [] for vexM in Mh_N}\n for a1PO in xCjU:\n if not a1PO['args']:\n ... | [
"0.68669504",
"0.6673215",
"0.66464144",
"0.6609911",
"0.6099163",
"0.6065348",
"0.60219306",
"0.6006912",
"0.60028034",
"0.5978108",
"0.5973894",
"0.5928266",
"0.59108436",
"0.58817655",
"0.58649176",
"0.58649176",
"0.5861504",
"0.5850198",
"0.5848015",
"0.58369744",
"0.5826... | 0.78517354 | 0 |
API to update a specific review | def WKFp(QePW, oOW1):
try:
Slbv = E1cg.objects.get(id=oOW1)
except E1cg.DoesNotExist:
return oGir(status=jGRS.HTTP_404_NOT_FOUND)
if QePW.method == 'PUT':
nPrm = qQXR.loads(QePW.body)
Slbv.rating = nPrm.get('rating', '')
Slbv.content = nPrm.get('content', '')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnEA(oOW1):\n fZOT = QePW.get_json()\n if fZOT is None:\n eTsH(400, {'message': 'Not a JSON'})\n YEnM = S8SU.get(E1cg, oOW1)\n if YEnM is None:\n eTsH(404)\n for G1Hx, Ty9i in fZOT.items():\n if G1Hx not in ['id', 'user_id', 'place_id', 'created_at', 'updated_at']:\n ... | [
"0.79613566",
"0.7928031",
"0.79056853",
"0.7835451",
"0.77626014",
"0.72917026",
"0.7255775",
"0.7045848",
"0.6987645",
"0.6983477",
"0.696466",
"0.6771411",
"0.656052",
"0.64195645",
"0.63901234",
"0.6382885",
"0.63326174",
"0.63322145",
"0.63267905",
"0.63197744",
"0.63111... | 0.74679214 | 5 |
index page of our web app | def d6pt():
return TvZl('home.jinja2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n pass",
"def d6pt():\n return TvZl('inde... | [
"0.8523637",
"0.85071117",
"0.8495395",
"0.8494247",
"0.8449254",
"0.84243447",
"0.8403479",
"0.8383722",
"0.8383722",
"0.8346859",
"0.8346859",
"0.8284392",
"0.8277338",
"0.82252026",
"0.81853265",
"0.81853265",
"0.81853265",
"0.81853265",
"0.81853265",
"0.81853265",
"0.8185... | 0.0 | -1 |
Register a direction of optimization problem to a study. | def El4R(YKHO, V6BW: int, XSoh: study.StudyDirection) -> None:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gr_i(YKHO, sqQC):\n YKHO.optim = sqQC",
"def gr_i(YKHO, sqQC):\n YKHO.optim = sqQC",
"def AaPv(YKHO, Rci7, mWFP):\n YKHO.problems[Rci7] = mWFP",
"def gr_i(YKHO, *, C3ST, K0do, OPAs, **B2fa):\n raise NotImplementedError()",
"def sf9l(mWFP, y7GR):\n if mWFP in kZOM:\n raise ValueErr... | [
"0.6380942",
"0.6380942",
"0.59776676",
"0.587496",
"0.54008913",
"0.538581",
"0.538358",
"0.51357985",
"0.5074247",
"0.50576466",
"0.49817315",
"0.489983",
"0.48843044",
"0.48520148",
"0.48497537",
"0.48089805",
"0.48088917",
"0.4806613",
"0.4746979",
"0.4744744",
"0.4738205... | 0.47239172 | 21 |
Read an optunainternal attributes of a specified trial. | def eqd8(YKHO, NpEQ: int) -> cuzp[str, ImMB]:
return YKHO.get_trial(NpEQ).system_attrs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCak(YKHO, NpEQ: int) -> cuzp[str, ImMB]:\n return YKHO.get_trial(NpEQ).user_attrs",
"def x4ug(YKHO, NpEQ: int) -> cuzp[str, ImMB]:\n return YKHO.get_trial(NpEQ).params",
"def fCb6(Wt9E, xC3W):\n if KQGe.Gaudi.Utils.hasProperty(Wt9E._itool, xC3W):\n return hDr6.Bindings.iProperty.__getattr_... | [
"0.6030085",
"0.5411599",
"0.5397705",
"0.5393058",
"0.53124696",
"0.52919483",
"0.5285464",
"0.51552814",
"0.5152264",
"0.5136184",
"0.505921",
"0.50552475",
"0.5037601",
"0.49758515",
"0.49742138",
"0.49383375",
"0.4932983",
"0.49046662",
"0.49007452",
"0.48978448",
"0.4896... | 0.6263643 | 0 |
Get a datetime object or a int() Epoch timestamp and return a pretty string like 'an hour ago', 'Yesterday', '3 months ago', 'just now', etc | def xi16(ITS7=False):
wzkt = qcWV.now(rIAI.utc)
if type(ITS7) is int:
yk4i = wzkt - qcWV.fromtimestamp(ITS7)
elif isinstance(ITS7, qcWV):
yk4i = wzkt - ITS7
elif not ITS7:
yk4i = wzkt - wzkt
TJQv = yk4i.seconds
QyvJ = yk4i.days
if QyvJ < 0:
return ''
if Qy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NV8A(E3oo=False):\n wzkt = qcWV.now()\n yk4i = wzkt - qcWV.fromtimestamp(E3oo)\n TJQv = yk4i.seconds\n QyvJ = yk4i.days\n if QyvJ < 0:\n return ''\n if QyvJ == 0:\n if TJQv < 10:\n return 'just now'\n if TJQv < 60:\n return str(int(TJQv)) + ' seconds... | [
"0.78832227",
"0.77368337",
"0.7709011",
"0.7691796",
"0.76486737",
"0.75154054",
"0.71026635",
"0.6906214",
"0.68917185",
"0.6841173",
"0.6821396",
"0.6655869",
"0.6655468",
"0.6654383",
"0.6621224",
"0.65869296",
"0.65537095",
"0.65284306",
"0.6513822",
"0.6502716",
"0.6468... | 0.6811348 | 11 |
A pytest fixture that creates a dataset in a temp working dir. Deletes directory after test | def Uj1K():
CAYp, aOxl = NEzD()
with Po4F.object(y8cn, 'find_default_config', lambda YKHO: CAYp):
Xn71 = gh7U(CAYp)
oxOY = Xn71.create_dataset(KE0A, KE0A, 'dataset-1', description='my dataset 1', storage_type='gigantum_object_v1')
yield (oxOY, aOxl, oxOY.git.repo.head.commit.hexsha)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2hO(HSm4) -> GkAb:\n Bm71 = GkAb(HSm4.mktemp('data'))\n yield Bm71\n RDuA.rmtree(str(Bm71))",
"def FCbF(YKHO):\n YKHO.directory = gbPf.TemporaryDirectory()\n YKHO.dataset = YKHO.dataset_cls(cache_root=YKHO.directory.name)",
"def gBOd(tETI):\n return",
"def nzu_():\n ycBG = D6l3 / 't... | [
"0.74893934",
"0.7433642",
"0.7281445",
"0.7201816",
"0.71706927",
"0.71120745",
"0.70982593",
"0.6985421",
"0.695064",
"0.6912915",
"0.6902213",
"0.6880684",
"0.6871937",
"0.68630135",
"0.68506384",
"0.68356025",
"0.68293184",
"0.6740891",
"0.6731251",
"0.6729769",
"0.672974... | 0.7543531 | 0 |
Gets all the issues and pullrequests (GH treats PRs like issues in the api) Needs to use pagination because of 100 perrequest api limit | def Cl6S():
W5Ak = []
Td9y = 1
qaHk = 1
while qaHk != 0:
FWll = G4JS.get('https://api.github.com/repos/greenelab/covid19-review/issues?state=all&per_page=50&page=' + str(Td9y), headers=MOPg)
bvah = qQXR.loads(FWll.text)
W5Ak = W5Ak + bvah
qaHk = len(bvah)
Td9y += ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def njD0():\n global issue_data\n dZPi = {'stevex196x': 0, 'TheSchaft': 0, 'melxtru': 0, 'aylish19': 0, 'connormlewis': 0, 'tsukkisuki': 0}\n ZXqQ = 0\n while ZXqQ == 0:\n bD7m = 'https://api.github.com/repos/connormlewis/idb/issues?state=all&filter=all&per_page=100'\n nPrm = G4JS.get(bD7... | [
"0.75191945",
"0.70823777",
"0.69576883",
"0.6862858",
"0.68420386",
"0.68368286",
"0.6801333",
"0.6709925",
"0.66549814",
"0.66260296",
"0.6606031",
"0.6560733",
"0.65242815",
"0.6512636",
"0.64799726",
"0.6318883",
"0.6236998",
"0.62366486",
"0.623531",
"0.62190455",
"0.620... | 0.76822037 | 0 |
Adds a new column to a sourcesDF with the link to any relevant PR that has that DOI | def IYJX(BflM, F5hi):
def zDXL(rdlD):
cN36 = []
RHKR = str(rdlD.doi)
if len(RHKR) < 1:
return
else:
for JNiH in F5hi:
if RHKR in JNiH['diff']:
cN36.append(JNiH['pull_request_link'])
DSDi = ','.join(cN36)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUh5(DiwD, YAgj, mWFP):\n jQ3Z = YAgj.to_frame(name=mWFP)\n J4ql = DiwD.merge(jQ3Z, left_on='customerId2', right_index='customerId2', how='left')\n return J4ql",
"def u5DQ(jQ3Z, j5sR):\n _CS_ = ['Phase', 'Deleted', 'Client ID', 'Estimating ID', 'Survey ID', 'Block ID', 'Profile', 'Sample', 'Sampl... | [
"0.56533253",
"0.54130363",
"0.53972644",
"0.537795",
"0.5345844",
"0.51319844",
"0.49862748",
"0.49704045",
"0.4949029",
"0.49124697",
"0.48719484",
"0.48636305",
"0.48544875",
"0.484515",
"0.48333427",
"0.4790987",
"0.47886905",
"0.47681534",
"0.47484967",
"0.47476792",
"0.... | 0.6960343 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(KQya, YKHO).__init__(*qIxc, **c_sp)
if YKHO.s_x is None:
YKHO.s_x = 0
if YKHO.s_y is None:
YKHO.s_y = 0
if YKHO.f_x is None:
YKHO.f_x = 0
if YKHO.f_y is None:
YKHO.f_y = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77937967",
"0.77195275",
"0.77195275",
"0.7685702",
"0.762502",
"0.7562939",
"0.74384665",
"0.7416083",
"0.73515767",
"0.73078126",
"0.7280228",
"0.723719",
"0.72265446",
"0.72230625",
"0.72230625",
"0.7218876",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
... | 0.0 | -1 |
Retrieve a specific document from the index | def WjZY(YKHO, oFUB, xAU6=None):
pmON = uRlK.quote_plus(str(oFUB))
try:
Aofo = YKHO.request(pmON, yAxE.request.Request.GET, query=xAU6).data
except yAxE.exception.ResponseException:
raise yAxE.exception.NotFoundException('Document with id %s not found.' % oFUB)
if Aofo['found'] is None o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WjZY(YEnM):\n try:\n return n72w.get(index=YEnM.get_index_name(), doc_type=YEnM.get_document_type(), id=YEnM.pk)\n except mgaz:\n raise UsdG(YEnM.get_index_name(), YEnM.pk)",
"def C1Ik(YKHO, d6pt):\n assert YKHO.pk, 'Object must have a primary key before being indexed.'\n x0hE = bxb... | [
"0.7713414",
"0.7631978",
"0.75813437",
"0.72717667",
"0.7215716",
"0.7148653",
"0.7040545",
"0.7008266",
"0.69897026",
"0.6925545",
"0.6896944",
"0.6778739",
"0.6767422",
"0.6755266",
"0.6744117",
"0.6677857",
"0.6663726",
"0.6628045",
"0.6572391",
"0.6570605",
"0.6554164",
... | 0.6257833 | 34 |
class that creates new profile | def FCbF(YKHO):
YKHO.maya = mv1M(username='Maya', email='maya123@gmail.com')
YKHO.maya = SYRW(user=YKHO.maya, user_id=1, bio="You're cute to think its about you", profile_photo='my.jpg') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XM26(YKHO):\n if YKHO.profile:\n return\n from soc.modules.gsoc.models.profile import GSoCProfile\n CBIr = YKHO.createUser()\n C9U5 = {'link_id': CBIr.link_id, 'student_info': None, 'user': CBIr, 'parent': CBIr, 'scope': YKHO.program, 'status': 'active'}\n YKHO.profile = M3S1.seed(GSoCPro... | [
"0.8224018",
"0.75450426",
"0.74577576",
"0.7404931",
"0.73734117",
"0.7317509",
"0.73055786",
"0.72973907",
"0.72822917",
"0.7279825",
"0.7274246",
"0.7245467",
"0.724498",
"0.7234686",
"0.7224593",
"0.71945584",
"0.7144791",
"0.71250415",
"0.709916",
"0.7085715",
"0.7083276... | 0.0 | -1 |
Routine to convert UTC to NZ time zone. | def z2rf(a1PO):
from dateutil import tz
MHXl = tz.gettz('UTC')
pCFC = tz.gettz('Pacific/Auckland')
return [xTkX.replace(tzinfo=MHXl).astimezone(pCFC) for xTkX in rLdf.to_datetime(a1PO)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _meq():\n return 'UTC'",
"def KCz9(tUMc, rIAI):\n MvAv = wvEv.parse(tUMc)\n mz4v = FXGE.timezone(rIAI)\n eGZQ = mz4v.localize(MvAv)\n Ihgv = FXGE.utc.normalize(eGZQ)\n return Ihgv",
"def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=YKHO)\n return s... | [
"0.64015675",
"0.6337772",
"0.6237993",
"0.61282647",
"0.61282647",
"0.61227304",
"0.5949234",
"0.5947592",
"0.59453845",
"0.5945015",
"0.5883102",
"0.58338535",
"0.5796723",
"0.57557344",
"0.5744395",
"0.5728599",
"0.5710501",
"0.57091844",
"0.56924844",
"0.5685395",
"0.5676... | 0.7007069 | 0 |
Transform X to a clusterdistance space. In the new space, each dimension is the distance to the cluster centers. Note that even if X is sparse, the array returned by `transform` will typically be dense. | def SZFh(YKHO, EcVT):
mrZR(YKHO)
EcVT = YKHO._check_test_data(EcVT)
return YKHO._transform(EcVT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSyl(YKHO, EcVT):\n return AifU(EcVT, YKHO.cluster_centers_)",
"def yuq1(YKHO, EcVT):\n TaUL = oyIN.zeros((EcVT.shape[0], YKHO.n_clusters))\n print(TaUL.shape)\n for YRbF, e6ux in enumerate(YKHO.centroids):\n TaUL[:, YRbF] = oyIN.linalg.norm(EcVT - e6ux, axis=1)\n return TaUL",
"def S... | [
"0.7807338",
"0.7132903",
"0.7032089",
"0.6872973",
"0.6307288",
"0.6093125",
"0.59657264",
"0.59578246",
"0.5936482",
"0.5882001",
"0.58444095",
"0.5826819",
"0.5802967",
"0.5790434",
"0.57563066",
"0.57295996",
"0.56299007",
"0.56056845",
"0.559342",
"0.5568789",
"0.5566537... | 0.0 | -1 |
Load model states from a previously saved checkpoint. | def c21X(C3ST, Ux0P, TZ9E, lPeH=True):
assert Hy7s.path.exists(Ux0P)
if lPeH:
vauY = ht2j.load(Ux0P)
else:
vauY = ht2j.load(Ux0P, map_location=lambda S8SU, hksT: S8SU)
C3ST.load_state_dict(vauY[TZ9E]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _GZP(YKHO, vauY):\n raise NotImplementedError()",
"def Nh79(YKHO, C3ST):\n print(f'load model {YKHO.save_model_path}')\n C3ST.load_state_dict(ht2j.load(YKHO.save_model_path))",
"def Nh79(C3ST, gXgy):\n C3ST.load_state_dict(ht2j.load(gXgy))",
"def kuXl(YKHO, pmON: str):\n aqBD = ht2j.load(p... | [
"0.8494202",
"0.8281548",
"0.81373066",
"0.7791614",
"0.77544695",
"0.773334",
"0.7692545",
"0.7673317",
"0.7671424",
"0.7585864",
"0.7570133",
"0.75642973",
"0.75380903",
"0.7462652",
"0.744102",
"0.7432889",
"0.7428681",
"0.742438",
"0.7416525",
"0.7416525",
"0.739329",
"... | 0.7659332 | 9 |
Load model states from a previously saved checkpoint. | def XkL7(PKko, p5VS, GoyH, C3ST, Ux0P, TZ9E, lPeH=True):
assert Hy7s.path.exists(p5VS)
assert Hy7s.path.exists(Ux0P)
if lPeH:
vauY = ht2j.load(Ux0P)
else:
vauY = ht2j.load(Ux0P, map_location=lambda S8SU, hksT: S8SU)
PKko.load_state_dict(vauY[GoyH])
C3ST.load_state_dict(vauY[TZ9E]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _GZP(YKHO, vauY):\n raise NotImplementedError()",
"def Nh79(YKHO, C3ST):\n print(f'load model {YKHO.save_model_path}')\n C3ST.load_state_dict(ht2j.load(YKHO.save_model_path))",
"def Nh79(C3ST, gXgy):\n C3ST.load_state_dict(ht2j.load(gXgy))",
"def kuXl(YKHO, pmON: str):\n aqBD = ht2j.load(p... | [
"0.8494969",
"0.82812047",
"0.8136796",
"0.7792039",
"0.7754337",
"0.7732072",
"0.76922876",
"0.7672868",
"0.76710117",
"0.7660182",
"0.758522",
"0.7569757",
"0.7563508",
"0.7538504",
"0.7462623",
"0.7440334",
"0.74319917",
"0.7428191",
"0.7424297",
"0.7416124",
"0.7416124",
... | 0.0 | -1 |
Converts seconds to minutes and seconds | def yqKO(KCHu):
r8hN = epAf.floor(KCHu / 60)
KCHu -= r8hN * 60
return '%dm %ds' % (r8hN, KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QBVI(a1PO):\n O66n = int(a1PO / 60)\n C6wh = int(a1PO - 60 * O66n)\n return (O66n, C6wh)",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n * 60 + C6wh",
"def dMqu(C6wh):\n return '%d:%d' % divmod(C6wh, 60)",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6w... | [
"0.81685877",
"0.79047257",
"0.785517",
"0.7833231",
"0.7803818",
"0.7771472",
"0.7757349",
"0.7578673",
"0.75617844",
"0.7484286",
"0.7410756",
"0.7408472",
"0.73952025",
"0.73226804",
"0.73226804",
"0.72938204",
"0.726201",
"0.71847343",
"0.7180222",
"0.71647996",
"0.713650... | 0.6853293 | 37 |
Convert a sequence of words to a tensor of word indices. | def Cnml(aWuw, EJa0, cmPJ):
sNrK = ht2j.LongTensor(EJa0).zero_()
for YRbF in range(len(aWuw)):
if cmPJ.contains(aWuw[YRbF]):
sNrK[YRbF] = cmPJ.word2idx[aWuw[YRbF]]
return sNrK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UjqS(V22M, F3AJ):\n or8S = []\n for GIN8 in V22M:\n or8S.append(F3AJ[GIN8])\n return ht2j.from_numpy(oyIN.asarray(or8S))",
"def ZSDD(V22M, CtWL, Phg5):\n vhpA = ht2j.zeros(len(V22M), len(CtWL), Phg5)\n for YRbF, GIN8 in enumerate(V22M):\n for BDwY, sZqf in enumerate(GIN8):\n ... | [
"0.7419282",
"0.6858963",
"0.6628909",
"0.63809675",
"0.6306927",
"0.628214",
"0.62529355",
"0.62475055",
"0.62289304",
"0.61745054",
"0.6145104",
"0.6082612",
"0.60759807",
"0.6021381",
"0.60144186",
"0.60051095",
"0.5973791",
"0.59705955",
"0.5969561",
"0.5903706",
"0.58905... | 0.5794724 | 24 |
Create a concrete file name based on template and file number e.g. Calling the function with filename_${PBS_ARRAYID}.txt, 5 returns filename_5.txt | def jBU2(CQ4K, ro4G):
return CQ4K.replace('${PBS_ARRAYID}', str(ro4G)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(YRbF):\n voq6 = Hy7s.path.join(Hy7s.getcwd(), 'input-%d.txt' % YRbF)\n mXGw = Hy7s.path.join(Hy7s.getcwd(), 'input-%d.ref' % YRbF)\n return (voq6, mXGw)",
"def gIsw(id, leAC, eJTR='src'):\n XjzA = Fv2L.template_source_file_name\n if eJTR == 'tst':\n XjzA = Fv2L.template_test_file_n... | [
"0.7153712",
"0.69784194",
"0.6954508",
"0.6914099",
"0.6881896",
"0.67708176",
"0.673058",
"0.67254657",
"0.6708525",
"0.67016834",
"0.666754",
"0.6662606",
"0.66336036",
"0.6579183",
"0.65599793",
"0.65483403",
"0.65118694",
"0.6494432",
"0.6472382",
"0.64667094",
"0.646586... | 0.71496964 | 1 |
Given a document (represented as a string), return a list of all of the words in that document, in order. Process document by coverting all words to lowercase, and removing any punctuation or English stopwords. | def wr3U(C13M):
V22M = [GIN8.lower() for GIN8 in Dhdw.word_tokenize(C13M) if GIN8 not in vIwR.punctuation and GIN8 not in Dhdw.corpus.stopwords.words('english')]
return sorted(V22M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(C13M):\n Iras = [GIN8.lower() for GIN8 in Dhdw.word_tokenize(C13M) if GIN8.isalpha()]\n Iras = [GIN8.lower() for GIN8 in Iras]\n dsP0 = []\n for GIN8 in Iras:\n if GIN8 not in vIwR.punctuation and GIN8 not in Dhdw.corpus.stopwords.words('english'):\n dsP0.append(GIN8.lower())... | [
"0.7945455",
"0.7920988",
"0.7755041",
"0.77347577",
"0.7725208",
"0.76664394",
"0.7387016",
"0.7339664",
"0.72888803",
"0.72275144",
"0.7075368",
"0.7041337",
"0.70225614",
"0.70190245",
"0.70190245",
"0.6992113",
"0.6973064",
"0.69688004",
"0.6964989",
"0.69493914",
"0.6945... | 0.7898004 | 2 |
Sets the learning rate to the given value | def kVtO(K0do, tspZ):
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)",
"def yCHN(cuiw, _nen, BL_6, WVUz):\n cuiw.run(_nen, feed_dict={BL_6: WVUz})",
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num... | [
"0.80450565",
"0.75777924",
"0.7369227",
"0.726456",
"0.7237269",
"0.7214468",
"0.72116584",
"0.7119267",
"0.70937777",
"0.70937777",
"0.7089664",
"0.708559",
"0.7061882",
"0.70465815",
"0.7030721",
"0.70068645",
"0.7002885",
"0.6997488",
"0.6973235",
"0.6970918",
"0.69700533... | 0.70718735 | 13 |
Appends cell manager to the end of board. | def ypQs(YKHO, d6pt, VmPb):
if d6pt == len(YKHO._grid):
YKHO._grid.append([])
YKHO._grid[d6pt].append(VmPb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, VmPb):\n YKHO.cells.add(VmPb)\n VmPb.add_group(YKHO)",
"def U6Sy(YKHO, VmPb: Cell):\n assert isinstance(VmPb, riCw)\n YKHO.free_cell_list.append(VmPb)",
"def nIfX(YKHO, VmPb):\n if VmPb not in YKHO.cells:\n YKHO.cells.add(VmPb)\n if VmPb.block == 'A':\n YK... | [
"0.5738799",
"0.5701537",
"0.5656684",
"0.559196",
"0.55732447",
"0.55714214",
"0.5567353",
"0.55397666",
"0.55353886",
"0.55176216",
"0.54991436",
"0.54379004",
"0.5351723",
"0.53163594",
"0.5307111",
"0.5305361",
"0.530147",
"0.52916694",
"0.5283365",
"0.52541995",
"0.52386... | 0.60288405 | 0 |
Make y axis point right. Work on top left 3x3 subset of MV matrix. This was deduced by watching behaviour of MV matrix while manually | def S464(YKHO):
V9Fl = YKHO.MV
V9Fl[:3, 0] = (0, 1, 0)
V9Fl[1, 1] = 0
V9Fl[1, 2] = 0
jzdc = V9Fl[0, 1]
Fg_i = oyIN.sqrt(1 - jzdc ** 2)
if V9Fl[2, 1] < 0:
Fg_i = -Fg_i
V9Fl[2, 1] = Fg_i
V9Fl[0, 2] = Fg_i
V9Fl[2, 2] = -jzdc
YKHO.MV = V9Fl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAGU():\n QrM1.ylim(QrM1.ylim()[::-1])",
"def bjjd(YKHO):\n YKHO.yaw_motor.step_forward()",
"def IzfE(YKHO):\n YKHO.vertical = (YKHO.vertical * 2)[3:7]\n YKHO.horizontal[1] = YKHO.vertical[0]\n YKHO.horizontal[3] = YKHO.vertical[2]",
"def WaKS(YKHO):\n YKHO.change_x = 6",
"def WaKS(YK... | [
"0.5998346",
"0.5765761",
"0.5688608",
"0.5679647",
"0.5679647",
"0.56352144",
"0.56272876",
"0.5578424",
"0.55739796",
"0.5556038",
"0.5541406",
"0.551876",
"0.55143416",
"0.5470787",
"0.54636353",
"0.54250324",
"0.54239583",
"0.54147243",
"0.54140085",
"0.53795046",
"0.5370... | 0.7367503 | 0 |
Translate along view normal vector | def trlf(YKHO, HGCR):
Csk6 = YKHO.getDistance()
imdf = YKHO.getViewNormal()
imdf *= HGCR * Csk6
ShTw.glTranslatef(imdf[0], imdf[1], imdf[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aosq(z1Rg, vIfw, p1j0):\n imdf = vIfw.lerp(p1j0, 0.5) - z1Rg.matrix_world.translation\n imdf.normalize()\n return imdf",
"def mhAC(YKHO) -> Cd5b:\n return abs(YKHO.up_axis.cross(YKHO.forward()))",
"def qvqi(YKHO, P6bq, Ty9i, EmUK=True):\n P6bq = P6bq * mM0K\n Ty9i = Ty9i * KiGg\n WKvO ... | [
"0.71389234",
"0.7042153",
"0.6895338",
"0.6679227",
"0.6607681",
"0.65221083",
"0.6485948",
"0.64289105",
"0.64289105",
"0.6360593",
"0.6329387",
"0.63027",
"0.6276381",
"0.6269661",
"0.6251185",
"0.6249649",
"0.62177056",
"0.6216836",
"0.6203873",
"0.62004495",
"0.61948925"... | 0.0 | -1 |
Return sid of point at window coords x, y (bottom left origin), or first or multiple sids that fall within a square 2pb+1 pix on a side, centered on x, y. pb is the pixel border to include around x, y | def iEJi(YKHO, WKvO, LVAh, TRdr=2, ounV=False):
TVTK = YKHO.size().width()
H2v2 = YKHO.size().height()
if not (TRdr <= WKvO < TVTK - TRdr and TRdr <= LVAh < H2v2 - TRdr):
return
if YKHO.npoints > 2 ** 24 - 2:
raise OverflowError("Can't pick from more than 2**24-2 sids")
ShTw.glClearC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iEJi(YKHO, WKvO, LVAh, TRdr=2, ounV=False):\n TVTK = YKHO.size().width()\n H2v2 = YKHO.size().height()\n if not (TRdr <= WKvO < TVTK - TRdr and TRdr <= LVAh < H2v2 - TRdr):\n return\n if YKHO.npoints > 2 ** 24 - 2:\n raise OverflowError(\"Can't pick from more than 2**24-2 sids\")\n ... | [
"0.57821745",
"0.56050575",
"0.54738986",
"0.54188204",
"0.5393474",
"0.5364883",
"0.5358464",
"0.5312711",
"0.52876115",
"0.52711827",
"0.5267454",
"0.5266561",
"0.5255795",
"0.5253673",
"0.525232",
"0.524752",
"0.52386695",
"0.52201587",
"0.51808906",
"0.5174361",
"0.516500... | 0.57821745 | 0 |
Check if a given Pandas Series has the properties of a TokenSeries. | def E_18(KCHu: pd.Series) -> bool:
isRP = 'There are non-token cells (every cell should be a list of words/tokens) in the given Series. See help(hero.HeroSeries) for more information.'
def xCLK(VmPb):
return all((isinstance(WKvO, str) for WKvO in VmPb)) and isinstance(VmPb, (list, tuple))
if not xC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqu0(YKHO):\n return len(YKHO.columns) == 1 or len(YKHO.index) == 1",
"def TSw_(KCHu: pd.Series) -> AzJI[bool, str]:\n isRP = 'should be TokenSeries: there are non-token cells (every cell should be a list of words/tokens) in the given Series. See help(hero.HeroTypes) for more information.'\n\n def x... | [
"0.6585459",
"0.653638",
"0.6217491",
"0.61690974",
"0.58898103",
"0.57296133",
"0.55298156",
"0.5490258",
"0.5399716",
"0.5363592",
"0.53476226",
"0.534685",
"0.53361505",
"0.5318767",
"0.5305161",
"0.5261447",
"0.52152485",
"0.5205616",
"0.5194034",
"0.5186024",
"0.5103313"... | 0.70799375 | 0 |
Return the amount of RAM usage, in bytes, being consumed currently. | def Gp5a():
poLx = Eorv.getrusage(Eorv.RUSAGE_SELF).ru_maxrss
return poLx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ffIo():\n return int(a8Pe.bytetomb(O0k5.virtual_memory().total))",
"def OD_Z(YKHO) -> qe4Y.Output[float]:\n return qe4Y.get(YKHO, 'ram_size')",
"def cize(YKHO):\n return gTEQ('PrlStat_GetUsageRamSize', YKHO.handle)",
"def t5I6(YKHO):\n return YKHO.total_mem",
"def lhJG():\n return ffIo()... | [
"0.80505025",
"0.7942834",
"0.78569037",
"0.78410417",
"0.7785429",
"0.77579015",
"0.775512",
"0.7751444",
"0.7720074",
"0.76850504",
"0.76592183",
"0.7651345",
"0.75960094",
"0.75701505",
"0.7555924",
"0.75073797",
"0.748758",
"0.7457451",
"0.7457451",
"0.7422997",
"0.741751... | 0.662287 | 72 |
Given a 2D Array's subscripts, return it's flattened index | def oEnj(zbDt, Htse):
P2GO = 0
oq08 = 0
for LVAh in range(Htse[1]):
for WKvO in range(Htse[0]):
if zbDt[0] == WKvO and zbDt[1] == LVAh:
oq08 = P2GO
P2GO += 1
return oq08 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dLJf(rdlD, iVRZ, SppC):\n return rdlD * SppC.cols + iVRZ",
"def Gw6g(d6pt, Htse):\n zbDt = []\n P2GO = 0\n for LVAh in range(Htse[1]):\n for WKvO in range(Htse[0]):\n if d6pt == P2GO:\n zbDt = [WKvO, LVAh]\n P2GO += 1\n return zbDt",
"def aqNJ(jzdc... | [
"0.6290968",
"0.6287505",
"0.6055808",
"0.60286605",
"0.5933717",
"0.58552897",
"0.58297664",
"0.58140635",
"0.5797358",
"0.57935965",
"0.57285196",
"0.57280487",
"0.5710212",
"0.56275976",
"0.55889285",
"0.5580733",
"0.55734277",
"0.5572625",
"0.5537081",
"0.5536094",
"0.553... | 0.54326344 | 29 |
Tests if unauthenticated_user can upvote | def AdgQ(YKHO) -> None:
geh0 = YKHO.upvote_question()
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJ7P(YKHO) -> oGir:\n YKHO.force_authenticate_user()\n geh0 = YKHO.upvote_question()\n return geh0",
"def xmSY(Emd4, CBIr, Ol8d):\n pass",
"def xmSY(Emd4, CBIr, Ol8d):\n pass",
"def nJOZ(YKHO) -> None:\n geh0 = YKHO.downvote_question()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_4... | [
"0.7202969",
"0.706721",
"0.703263",
"0.6875775",
"0.66193813",
"0.66143787",
"0.6565651",
"0.6565257",
"0.6533324",
"0.65252024",
"0.628795",
"0.62317026",
"0.61636746",
"0.61328346",
"0.6118461",
"0.61105764",
"0.60780066",
"0.60585773",
"0.6050868",
"0.6025218",
"0.6022000... | 0.7876491 | 0 |
Call the fit and the transform method of this class. | def dSez(YKHO, EcVT, LVAh=None):
EcVT = YKHO._prepare(EcVT)
YKHO.fit(EcVT, LVAh)
return YKHO.transform(EcVT, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSez(YKHO, *qIxc, **B2fa):\n YKHO.fit(*qIxc, **B2fa)\n return YKHO.transform(*qIxc, **B2fa)",
"def dSez(YKHO, EcVT, LVAh=...):\n ...",
"def WgYu():\n pass",
"def dSez(YKHO, EcVT):\n YKHO.fit(EcVT)\n return YKHO.transform(EcVT)",
"def WgYu(YKHO):\n raise NotImplementedError",
"def... | [
"0.82714236",
"0.78433764",
"0.769472",
"0.75586903",
"0.7490966",
"0.745098",
"0.741859",
"0.73783123",
"0.7362362",
"0.7312829",
"0.7312829",
"0.7312829",
"0.7138373",
"0.7113836",
"0.7104539",
"0.7094822",
"0.70849156",
"0.70846874",
"0.70100576",
"0.7004825",
"0.7004825",... | 0.6978847 | 23 |
Download and extract kaggle competition dataset to fastai data folder and return path to files. get_kaggle_dataset(string) > Path | def UrSJ(EngI):
GPtr = PSrQ()
ragI = GkAb(GPtr.d['archive_path'])
w9BT = GkAb(GPtr.d['archive_path'] + '/' + EngI + '.zip')
if not w9BT.exists():
print(f'${w9BT} does not exist.')
try:
G1Hx.competition_download_files(EngI, path=ragI)
except:
raise Exceptio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCHG(Ux0P: str):\n if not Hy7s.path.isfile(Ux0P + '.zip') and (not Hy7s.path.isfile('test.csv')):\n Hy7s.system('kaggle competitions download -c ' + Ux0P)\n if not Hy7s.path.isfile('test.csv') and Hy7s.path.isfile(Ux0P + '.zip'):\n Hy7s.system('unzip ' + Ux0P + '.zip')\n Hy7s.system(... | [
"0.7220482",
"0.63381004",
"0.6334641",
"0.6333673",
"0.6237377",
"0.62287605",
"0.6217249",
"0.6154318",
"0.6083323",
"0.60777545",
"0.6043555",
"0.6031478",
"0.6009197",
"0.5994961",
"0.59883386",
"0.5975279",
"0.59363484",
"0.5931787",
"0.59146255",
"0.59141874",
"0.588766... | 0.82616544 | 0 |
Checks if all mines have been flagged. | def kTv5(YKHO):
return YKHO.mines_found == YKHO.mines | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imDs(YKHO, JnVq):\n for VmPb in JnVq:\n rdlD, fvDH = VmPb\n YKHO.mine_field[rdlD][fvDH] = 'x'\n YKHO.mines_left -= 1\n return",
"def Ukgb(YKHO):\n YKHO.mines",
"def mfk_(YKHO):\n oeNL, zJeG, nyyK = YKHO.perception\n if len(oeNL) > 0:\n return all(map(lambda WKvO: ... | [
"0.6493632",
"0.64380074",
"0.6267556",
"0.619421",
"0.5946347",
"0.5936858",
"0.5887166",
"0.5870911",
"0.5832574",
"0.5809238",
"0.57938457",
"0.5792846",
"0.5781423",
"0.576526",
"0.5747121",
"0.5709528",
"0.5687221",
"0.56182337",
"0.56159353",
"0.5607865",
"0.5598542",
... | 0.6783566 | 4 |
Returns the set of all cells in self.cells known to be mines. | def Ukgb(YKHO):
if len(YKHO.cells) == YKHO.count:
return YKHO.cells | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ukgb(YKHO):\n if len(YKHO.cells) == YKHO.count:\n return YKHO.cells\n return set()",
"def Ukgb(YKHO):\n if len(YKHO.cells) <= YKHO.count:\n return YKHO.cells\n return set([])",
"def Ukgb(YKHO):\n if len(YKHO.cells) == YKHO.count:\n return YKHO.cells\n else:\n r... | [
"0.8837728",
"0.87650234",
"0.82612735",
"0.7944578",
"0.7944578",
"0.76535374",
"0.76535374",
"0.7336784",
"0.71533304",
"0.6954018",
"0.68953633",
"0.67344165",
"0.6729412",
"0.671902",
"0.6691797",
"0.6594178",
"0.6469754",
"0.6462674",
"0.6419005",
"0.6399146",
"0.6356947... | 0.8293779 | 2 |
Returns the set of all cells in self.cells known to be safe. | def Gwny(YKHO):
if YKHO.count == 0:
return YKHO.cells | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gwny(YKHO):\n if YKHO.count == 0:\n return YKHO.cells\n return set()",
"def UVlc(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_solved_cells())",
"def UVlc(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_solved_cells())",
"def Gwny(YKHO):\n if YKHO.count == 0:\n return YKHO.cells\n ... | [
"0.82847035",
"0.82552475",
"0.82552475",
"0.80687535",
"0.7928026",
"0.7928026",
"0.77277315",
"0.76207685",
"0.7600992",
"0.7243239",
"0.71904856",
"0.7186764",
"0.70554197",
"0.69586575",
"0.6956118",
"0.6953336",
"0.6920734",
"0.6766556",
"0.6711878",
"0.6694441",
"0.6681... | 0.7376044 | 9 |
Converts a string object to a date object. | def RpRn(mbyn):
if mbyn.lower() == 'tomorrow':
return qcWV.date.today() + qcWV.timedelta(days=1)
elif mbyn.lower() == 'today':
return qcWV.date.today()
elif mbyn.lower() == 'yesterday':
return qcWV.date.today() + qcWV.timedelta(days=-1)
elif mbyn.lower() in mXwY:
return V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOAD(vIwR):\n NArs = vIwR.strip().split('-')\n lO87 = int(NArs[0])\n x0eS = int(NArs[1])\n CjKC = int(NArs[2])\n Csk6 = _c1T(lO87, x0eS, CjKC)\n return Csk6",
"def FLL4(YKHO, _c1T):\n return SKtv.date_parser(_c1T)",
"def HD4I(I7Da):\n ZMli = qcWV.datetime.strptime(I7Da, '%Y-%m-%d').... | [
"0.8153859",
"0.76520705",
"0.7423662",
"0.7314803",
"0.73024553",
"0.7272992",
"0.72690165",
"0.7264674",
"0.7260195",
"0.7246179",
"0.72405815",
"0.7222816",
"0.72051126",
"0.71863276",
"0.71771884",
"0.7163268",
"0.7141169",
"0.7138589",
"0.7084771",
"0.70825416",
"0.70739... | 0.69101864 | 29 |
Returns the replset name for a group of config server or null if it is not a replset | def Rwmk(YKHO, bV7d):
cb1Q = None
Z9rn = bV7d['admin'].command('getCmdLineOpts')['parsed']['sharding']['configDB']
for ZfUD in Z9rn.split(','):
if '/' in ZfUD:
cb1Q = ZfUD.partition('/')[0]
break
return cb1Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _df0(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_name')",
"def X0Pd(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'server_group_id')",
"def X0Pd(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'server_group_id')",
"def dn8D(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
... | [
"0.6949814",
"0.6801821",
"0.6801821",
"0.6179873",
"0.6078486",
"0.6078486",
"0.6078486",
"0.6078486",
"0.6078486",
"0.60696",
"0.60595644",
"0.6050754",
"0.6042594",
"0.5979926",
"0.5935725",
"0.59197354",
"0.5893577",
"0.58763546",
"0.58763546",
"0.58763546",
"0.58763546",... | 0.72248065 | 0 |
Returns the process name for the given Mongo connection. | def FOIM(YKHO, bV7d):
return bV7d['admin'].command('serverStatus')['process'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0oP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_name')",
"def o0oP(YKHO) -> str:\n return qe4Y.get(YKHO, 'connection_name')",
"def UNCy(YKHO):\n return YKHO._args.t",
"def RDp6(w2B8):\n mWFP = w2B8.repository.database_name\n w2B8.close()\n return mWFP",
"def o0oP(Y... | [
"0.6354651",
"0.62744397",
"0.6196157",
"0.6164515",
"0.6012407",
"0.597154",
"0.59383947",
"0.59230673",
"0.58393264",
"0.5753712",
"0.5752747",
"0.5684401",
"0.5677138",
"0.56732464",
"0.56664205",
"0.56514394",
"0.5645777",
"0.5634711",
"0.56333387",
"0.5625708",
"0.561572... | 0.5916951 | 8 |
Returns the version string for the given Mongo connection. | def ifRH(YKHO, bV7d):
return bV7d['admin'].command('serverStatus')['version'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IexU(YKHO):\n return YKHO.server_version",
"def vK74(UzPC):\n N1p7 = UzPC.cursor()\n N1p7.execute('SELECT ecs.versionTable.version FROM ecs.versionTable;')\n for fUpG in N1p7.fetchone():\n DpZH = fUpG\n N1p7.close()\n return DpZH",
"def gdCj(YKHO) -> qe4Y.Output[str]:\n return q... | [
"0.6790673",
"0.6739859",
"0.65836287",
"0.65762144",
"0.64592063",
"0.6402176",
"0.63639057",
"0.63372844",
"0.62821144",
"0.6278813",
"0.6277744",
"0.6277744",
"0.6277744",
"0.6277744",
"0.62558895",
"0.62359476",
"0.623059",
"0.6147216",
"0.61463666",
"0.6141588",
"0.61415... | 0.77018017 | 0 |
Returns the number of connections for the Mongo instance. | def Vzcc(YKHO, bV7d):
return bV7d.serverStatus()['connection']['current'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iT_a(YKHO):\n return YKHO.proxy.getconnectioncount()",
"def dVDm(YKHO):\n return len(YKHO._available_connections) + len(YKHO._in_use_connections)",
"def RDfO(YKHO):\n return len(YKHO._connections_openned)",
"def DUZc(YKHO):\n UzPC = YKHO.__get_database_connection()\n geh0 = YKHO.__make_req... | [
"0.75481665",
"0.7079306",
"0.68598616",
"0.68336433",
"0.66936713",
"0.6681873",
"0.66771907",
"0.6621267",
"0.65562326",
"0.651766",
"0.64295316",
"0.64184225",
"0.6388331",
"0.6348741",
"0.63372165",
"0.63312435",
"0.63281775",
"0.63146085",
"0.62214524",
"0.6213115",
"0.6... | 0.0 | -1 |
If ExplicitIntegrator is not symmetric, return a symmetrized version, else return original ExplicitIntegrator | def Hy4G(YKHO):
if YKHO.is_symmetric:
return YKHO
else:
return YKHO.append(YKHO.reverse()).squash().scale(0.5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dh96(Vhxs):\n sWvo = Vhxs[:-1] + [Vhxs[-1]] + Vhxs[:-1][::-1]\n lk9W = [0.5] * (len(Vhxs) - 1) + [1.0] + [0.5] * (len(Vhxs) - 1)\n return nqqn(lk9W, sWvo)",
"def KF2g(YKHO):\n Gp5u, CQdC = YKHO.coeff_totals()\n GUUu = [Z9rn for Z9rn in YKHO.coeff]\n for YRbF, P6bq in enumerate(YKHO.updates)... | [
"0.70425504",
"0.54611284",
"0.53737855",
"0.5328841",
"0.53064656",
"0.5274461",
"0.5245739",
"0.51810145",
"0.51406884",
"0.5112936",
"0.51113224",
"0.51077133",
"0.5064554",
"0.50553775",
"0.5008319",
"0.5005956",
"0.49735382",
"0.49044126",
"0.48550302",
"0.48476666",
"0.... | 0.5366264 | 3 |
Returns whether or not the contents scale with the widget size. | def gU01(YKHO):
return YKHO._scaled_contents | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XY00(YKHO):\n return YKHO._frame._root.resizable() == '1 1'",
"def RK6C(YKHO):\n return YKHO.HasFlag(YKHO.optionResizable)",
"def NXpY(YKHO, bGrB: Application) -> bool:\n return False",
"def dD2c(YKHO, JI1i):\n eHNT = 3\n TVTK, H2v2 = YKHO.getWidgetDims(JI1i)\n if TVTK < 100 and H2v2 < ... | [
"0.6982793",
"0.6705058",
"0.6661015",
"0.6605395",
"0.6408125",
"0.6339988",
"0.6288953",
"0.6257565",
"0.62486887",
"0.61337024",
"0.6064341",
"0.6057617",
"0.60505784",
"0.6047687",
"0.60130405",
"0.5972155",
"0.59524035",
"0.5949873",
"0.59490764",
"0.59288895",
"0.592868... | 0.54196966 | 63 |
Returns whether or not the image can be scaled greater than its natural size. | def MI1F(YKHO):
return YKHO._allow_upscaling | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh3b(Xn71):\n return Xn71.shape[0] >= Cnfp and Xn71.shape[1] >= Cnfp",
"def JSgu(YKHO):\n return YKHO._tag == 'image_size_exceeded'",
"def JSgu(YKHO):\n return YKHO._tag == 'image_size_exceeded'",
"def Inh_(zXzD: torch.Tensor, k8L3: torch.Tensor, SnCn: float) -> bool:\n ywwl, Nq1b, C7Ls, XcU5... | [
"0.7316716",
"0.687211",
"0.687211",
"0.6837902",
"0.67452604",
"0.6619837",
"0.6570156",
"0.64338475",
"0.6374968",
"0.6283305",
"0.6264557",
"0.62632304",
"0.6163545",
"0.61444837",
"0.60963696",
"0.60835826",
"0.6068221",
"0.6042492",
"0.6022507",
"0.6010536",
"0.6005554",... | 0.60856926 | 15 |
Prepare trades for the specified pair. | async def prepare_trades(YKHO, q2Xo: str):
if q2Xo not in YKHO.trades:
YKHO.trades[q2Xo] = {'last_open_time': 0.0, 'rebuy_count': 0, 'open': [], 'closed': []} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def prepare_states(YKHO, q2Xo: str):\n if q2Xo not in YKHO.pair_states:\n YKHO.pair_states[q2Xo] = {'enable_buy': True, 'enable_rebuy': True}",
"def WZsM(YKHO, kgDL):\n if isinstance(kgDL, (list, tuple, set)):\n kgDL = ','.join(kgDL)\n if not isinstance(kgDL, str):\n raise Val... | [
"0.6303787",
"0.57798696",
"0.5690601",
"0.5458961",
"0.5430335",
"0.5425993",
"0.5414648",
"0.53194153",
"0.51551205",
"0.5113173",
"0.5086814",
"0.504501",
"0.5043785",
"0.50348794",
"0.50036097",
"0.4989486",
"0.4926785",
"0.4918965",
"0.486187",
"0.48607042",
"0.48573363"... | 0.83309335 | 0 |
Register a "soft" stop for a pair. A soft stop enables a stop loss sell to occur for any open trades if the pair's value goes below the soft stop value. | async def soft_stop(YKHO, q2Xo: str, sBIM: str, HNvX: dict):
NArs = aM69.Detector.get_detection_params(sBIM, {'weight': 1.0, 'apply': None, 'ignore': None})
izFS = YKHO.market.adjusted_close_values[q2Xo][-1]
yIVm = HNvX.copy()
for IYUG in YKHO.trades[q2Xo]['open']:
if not YKHO._is_applied(IYUG, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def hard_stop(YKHO, q2Xo: str, sBIM: str, HNvX: dict):\n NArs = aM69.Detector.get_detection_params(sBIM, {'threshold': GPtr['trade_hard_stop_threshold'], 'apply': None, 'ignore': None})\n fL_P = []\n for d6pt, IYUG in enumerate(YKHO.trades[q2Xo]['open']):\n if not YKHO._is_applied(IYUG, NArs)... | [
"0.6125591",
"0.5801479",
"0.56289244",
"0.5435792",
"0.5297644",
"0.51102614",
"0.50352275",
"0.50145",
"0.49990484",
"0.49953175",
"0.49279547",
"0.4903554",
"0.49009603",
"0.48615938",
"0.4850873",
"0.4847711",
"0.47678837",
"0.47273237",
"0.47113404",
"0.46841943",
"0.468... | 0.66372 | 0 |
Garbage collect oldest trade to free balance if balance is low. | async def _garbage_collect_sim(YKHO, P8oC: str, iC1U: float, XhVQ: float):
if not GPtr['trade_garbage_collect']:
return
iwqU = await YKHO.market.get_base_mult(GPtr['trade_base'], P8oC)
mjzz = YKHO.balancer.sim_balances[P8oC] * iwqU - XhVQ
if mjzz >= iC1U:
return
ASBY = []
for q2X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _garbage_collect_live(YKHO, P8oC: str, iC1U: float, XhVQ: float):\n if not GPtr['trade_garbage_collect']:\n return\n wMl7 = await YKHO.api.get_balance(P8oC)\n if wMl7 is None:\n YKHO.log.error('Could not get available balance for {}!', P8oC)\n return\n iwqU = await YKHO.m... | [
"0.70994496",
"0.6172251",
"0.5927842",
"0.5764728",
"0.57133806",
"0.56579185",
"0.56091815",
"0.5591629",
"0.55722916",
"0.5540825",
"0.5488939",
"0.54813707",
"0.5473631",
"0.54673237",
"0.5452898",
"0.54447883",
"0.5375532",
"0.5363624",
"0.53193355",
"0.5312982",
"0.5288... | 0.65021116 | 1 |
Submit a limit buy for the specified currency pair. | async def _submit_limit_buy(YKHO, q2Xo: str, iC1U: float):
T7Ek = YKHO.market.adjusted_close_values[q2Xo][-1]
izFS = YKHO.market.close_values[q2Xo][-1]
jbgI = YKHO.market.min_trade_sizes[q2Xo] * (1.0 + GPtr['trade_min_safe_percent'])
if jbgI < YKHO.market.min_safe_trade_size:
jbgI = YKHO.market.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IU3N(YKHO, ex5I, mVUw, Z5kt):\n pass",
"def N8cx(YKHO, ex5I, Z5kt):\n n6xu = YKHO.rOrderBook(currency_pair=ex5I, field='asks')\n Iqps = []\n for QYWI in n6xu:\n if QYWI[1] < Z5kt:\n WEUc = YKHO.limitBuy(ex5I, rate=QYWI[0], amount=QYWI[1], ioc=True)\n Iqps.append(WEUc)... | [
"0.7505264",
"0.7179121",
"0.69183755",
"0.685156",
"0.6723597",
"0.65779155",
"0.6546296",
"0.6536287",
"0.6332699",
"0.6332035",
"0.61834246",
"0.6121239",
"0.60914934",
"0.6086903",
"0.6086757",
"0.60562277",
"0.604478",
"0.6044398",
"0.5998445",
"0.59902847",
"0.59807867"... | 0.7656179 | 0 |
Garbage collect oldest trade to free balance if balance is low. | async def _garbage_collect_live(YKHO, P8oC: str, iC1U: float, XhVQ: float):
if not GPtr['trade_garbage_collect']:
return
wMl7 = await YKHO.api.get_balance(P8oC)
if wMl7 is None:
YKHO.log.error('Could not get available balance for {}!', P8oC)
return
iwqU = await YKHO.market.get_ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _garbage_collect_sim(YKHO, P8oC: str, iC1U: float, XhVQ: float):\n if not GPtr['trade_garbage_collect']:\n return\n iwqU = await YKHO.market.get_base_mult(GPtr['trade_base'], P8oC)\n mjzz = YKHO.balancer.sim_balances[P8oC] * iwqU - XhVQ\n if mjzz >= iC1U:\n return\n ASBY = []... | [
"0.65021116",
"0.6172251",
"0.5927842",
"0.5764728",
"0.57133806",
"0.56579185",
"0.56091815",
"0.5591629",
"0.55722916",
"0.5540825",
"0.5488939",
"0.54813707",
"0.5473631",
"0.54673237",
"0.5452898",
"0.54447883",
"0.5375532",
"0.5363624",
"0.53193355",
"0.5312982",
"0.5288... | 0.70994496 | 0 |
Return a string of ``inp`` random characters (if ``inp`` is an int) or ``len(inp)`` random characters (if ``inp`` is a string). | def Jv62(pKvt):
if isinstance(pKvt, int):
exwG = pKvt
elif isinstance(pKvt, str):
exwG = len(pKvt)
else:
raise ValueError('Invalid input (must be str or int)')
gLiZ = vIwR.ascii_letters + vIwR.digits + '_-'
return ''.join(tuKI.sample(gLiZ, exwG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(input: list):\n mLGw = ADdS.randint(0, len(input) - 1)\n return input[mLGw]",
"def j9F_(gLiZ=vIwR.ascii_lowercase + vIwR.digits, len=16) -> str:\n return ''.join(tuKI.choices(gLiZ, k=len))",
"def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9",... | [
"0.71874756",
"0.68576896",
"0.68551457",
"0.6786324",
"0.6760722",
"0.6744315",
"0.67420435",
"0.67103565",
"0.6706592",
"0.66216844",
"0.6619481",
"0.6614052",
"0.65959305",
"0.65912175",
"0.65737206",
"0.657078",
"0.6569865",
"0.6566596",
"0.6552312",
"0.65507954",
"0.6550... | 0.8489642 | 0 |
Calculate the grouped mean, grouping the students by the 'Group' column. | def l0ey(YKHO):
qJi5 = xR4a.writers.GradesFile(YKHO.fname)
qJi5.table.compute_grouped_mean('Group')
qJi5.table_format = 'org'
YKHO.check_output(YKHO.output_str2, qJi5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZDAZ(chuG):\n XjQM = chuG.groupby('Clusters').mean()\n return XjQM",
"def aulE(YKHO):\n qJi5 = xR4a.writers.GradesFile(YKHO.fname)\n qJi5.table.compute_mean()\n qJi5.table_format = 'org'\n YKHO.check_output(YKHO.output_str3, qJi5, div_on=('Group', 'Test 1'))",
"def JBMS(YKHO):\n return... | [
"0.6498009",
"0.6410816",
"0.6310002",
"0.6235998",
"0.62062985",
"0.60804003",
"0.6075459",
"0.6045031",
"0.5973278",
"0.591921",
"0.58432835",
"0.58132386",
"0.5753136",
"0.5749456",
"0.5709212",
"0.56754595",
"0.56564426",
"0.56564426",
"0.5630145",
"0.5628637",
"0.5618211... | 0.68366724 | 0 |
Update two dicts of dicts recursively, if either mapping has leaves that are nondicts, the second's leaf overwrites the first's. | def PPYP(AjzU, _sQW):
for G1Hx, Ty9i in AjzU.copy().items():
if G1Hx in _sQW:
if all((isinstance(tTpl, ZrSl) for tTpl in (Ty9i, _sQW[G1Hx]))):
_sQW[G1Hx] = c7yn.deep_merge(Ty9i, _sQW[G1Hx])
if G1Hx == '*':
for tT41, MJJ3 in _sQW.items():
if all... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kXYH(jzdc, Fg_i):\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):\n kXYH(jzdc[H5ew], Fg_i[H5ew])\n else:\n jzdc[H5ew] = Fg_i[H5ew]\n else:\n jzdc[H5ew] = Fg_i[H5ew]",
"de... | [
"0.78138524",
"0.7660244",
"0.76234084",
"0.7427001",
"0.73883605",
"0.7242871",
"0.7235648",
"0.717247",
"0.71297306",
"0.7058001",
"0.70549005",
"0.70441306",
"0.7036268",
"0.70232666",
"0.6986809",
"0.69688934",
"0.6964415",
"0.69374996",
"0.6927056",
"0.6926401",
"0.69023... | 0.69621336 | 17 |
Return the version number. | def s4n3(DpZH, Iqy_=''):
if not Iqy_:
Iqy_ = Hy7s.environ.get('KOMBI_VERSION_PATTERN', nkcu)
_IVb = b9E7(Iqy_)
return str(DpZH)[len(_IVb['prefix']):len(_IVb['prefix']) + len(_IVb['padding'])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNGv() -> int:\n return 0",
"def kaPv(YKHO):\n return YKHO.versions[0].number",
"def xhfZ(YKHO):\n return YKHO.get('Version', type='numeric')",
"def kaPv():\n return '%d.%d.%d' % bFMd",
"def DpZH(YKHO):\n bGrB, TBsA = YKHO.request('/', 'GET')\n return TBsA.get('version', None)",
"de... | [
"0.866707",
"0.84448445",
"0.8407531",
"0.8395337",
"0.8298357",
"0.8286713",
"0.8252668",
"0.81848735",
"0.81636876",
"0.81636876",
"0.8137443",
"0.81337935",
"0.80725837",
"0.8056344",
"0.8016573",
"0.8015949",
"0.8006926",
"0.80007255",
"0.79672366",
"0.79329914",
"0.79329... | 0.0 | -1 |
Return a resolved version string using the version pattern. | def bLJr(DpZH, Iqy_):
_IVb = b9E7(Iqy_)
return _IVb['prefix'] + str(DpZH).zfill(len(_IVb['padding'])) + _IVb['suffix'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4n3(DpZH, Iqy_=''):\n if not Iqy_:\n Iqy_ = Hy7s.environ.get('KOMBI_VERSION_PATTERN', nkcu)\n _IVb = b9E7(Iqy_)\n return str(DpZH)[len(_IVb['prefix']):len(_IVb['prefix']) + len(_IVb['padding'])]",
"def kaPv():\n return '%d.%d.%d' % bFMd",
"def zvqz():\n IJ4N, cbKy, KrIv, Po4F, TZ9E, ... | [
"0.6638231",
"0.6628819",
"0.6587026",
"0.65764296",
"0.6532974",
"0.65056735",
"0.6479244",
"0.6379202",
"0.6378431",
"0.6360932",
"0.6311935",
"0.63044775",
"0.6275836",
"0.6259283",
"0.62442243",
"0.61885077",
"0.61834174",
"0.61818045",
"0.61490685",
"0.61287165",
"0.6127... | 0.7373739 | 0 |
Return the latest version found under the versions path. In case none version is found, it returns 0 by default. | def t_DH(VlWA, Iqy_):
DpZH = 0
_IVb = b9E7(Iqy_)
Rek8 = '^' + _IVb['prefix'] + '[0-9]{' + str(len(_IVb['padding'])) + ',}' + _IVb['suffix'] + '$'
if Hy7s.path.exists(VlWA):
for AGPF in Hy7s.listdir(VlWA):
if ZbWC.match(Rek8, AGPF):
DpZH = max(int(s4n3(AGPF, Iqy_)), Dp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffdn(L6MF):\n qX77 = 0\n for DpZH in L6MF:\n DpZH = BvuR(DpZH)\n if DpZH > qX77:\n qX77 = DpZH\n return qX77",
"def JzWA(YKHO):\n if len(YKHO.versions) > 0:\n Ty9i = sorted(YKHO.versions, key=lambda Ty9i: int(Ty9i['id']))[len(YKHO.versions) - 1]\n return YKH... | [
"0.79425573",
"0.74380994",
"0.7402063",
"0.72433233",
"0.72161674",
"0.7153446",
"0.7126764",
"0.710236",
"0.7097837",
"0.70716316",
"0.7015666",
"0.70069826",
"0.68844354",
"0.68827003",
"0.6853726",
"0.6744041",
"0.6742762",
"0.66958433",
"0.6694762",
"0.6626284",
"0.66133... | 0.8141444 | 0 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
Q6kx = YKHO.root
for hcXw in GIN8:
if hcXw not in Q6kx:
return False
Q6kx = Q6kx[hcXw]
return YKHO.end_of_word in Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.83865196",
"0.81508374",
"0.81230605",
"0.7856601",
"0.77940327",
"0.77934295",
"0.77646786",
"0.7753958",
"0.77473944",
"0.7710694",
"0.76809704",
"0.7676685",
"0.76646334",
"0.7651102",
"0.76339287",
"0.7628116",
"0.76110476",
"0.75783044",
"0.75697243",
"0.7559936",
"0.... | 0.7830601 | 4 |
Convert coordinates in the output image to r, theta coordinates. The r coordinate is scaled to range from 0 to 1. The theta coordinate is scaled to range from 0 to 1. A Nx2 array is returned with r being the first column and theta being the second. | def jpnj(jNOo):
GWxz = jNOo[:, 0] - oLRV[1] / 2
JCr6 = jNOo[:, 1] - oLRV[0] / 2
Mkmy = oyIN.sqrt(GWxz ** 2 + JCr6 ** 2)
q7In = oyIN.arctan2(JCr6, GWxz)
kKyN, aJtA = (oLRV[1] / 2, oLRV[0] / 2)
t53J = oyIN.sqrt(kKyN ** 2 + aJtA ** 2)
Mkmy = Mkmy / t53J
q7In = (q7In + oyIN.pi) / (2 * oyIN.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2Tu(UmjB):\n Mkmy, q7In = (UmjB[:, 0], UmjB[:, 1])\n q7In = q7In - oyIN.floor(q7In)\n IA3S, dCLF = (GhuM[1] - 1, GhuM[0] - 1)\n fUYa = q7In * IA3S\n bEXe = (1 - Mkmy) * dCLF\n return oyIN.hstack((fUYa, bEXe))",
"def DIqL(YKHO, W0Eb) -> oyIN.ndarray:\n q3uz = YKHO.T @ (W0Eb - YKHO.O)\n ... | [
"0.71357757",
"0.67818785",
"0.61476976",
"0.6021302",
"0.59315306",
"0.59013677",
"0.5893568",
"0.58432734",
"0.5776385",
"0.5742603",
"0.5731501",
"0.57189953",
"0.5699567",
"0.567863",
"0.5660297",
"0.56585747",
"0.565261",
"0.5647902",
"0.56353873",
"0.5618455",
"0.559032... | 0.7289032 | 0 |
Sets the document_name of this NotaryJournal. | def dgIl(YKHO, dgIl):
YKHO._document_name = dgIl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def goSK(YKHO, dgIl):\n YKHO.set_value_into_input_field(YKHO.document_name_locator, dgIl)",
"def M1rn(YKHO, M1rn):\n YKHO._journal_name = M1rn",
"def wkjW(YKHO, GtII):\n dgIl = GtII + YKHO.random_string_generator(6)\n YKHO.set_value_into_input_field(YKHO.document_name_text_field_locator, dgIl)\n ... | [
"0.74345607",
"0.7245551",
"0.7177776",
"0.7113452",
"0.63904274",
"0.61373276",
"0.60234064",
"0.60234064",
"0.59368086",
"0.5926138",
"0.58770764",
"0.5866895",
"0.5847449",
"0.58348185",
"0.58132046",
"0.5762171",
"0.575283",
"0.575283",
"0.5752074",
"0.57235503",
"0.57169... | 0.85598785 | 1 |
Sets the notary_journal_id of this NotaryJournal. | def HXVD(YKHO, HXVD):
YKHO._notary_journal_id = HXVD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1rn(YKHO, M1rn):\n YKHO._journal_name = M1rn",
"def jBat(YKHO, jBat):\n YKHO._notary_journal_meta_data = jBat",
"def jBat(YKHO, jBat):\n YKHO._notary_journal_meta_data = jBat",
"def Kd3h(YKHO, Kd3h):\n YKHO._referent_id = Kd3h",
"def HMFB(YKHO, HMFB):\n YKHO._loan_id = HMFB",
"def W2t... | [
"0.64491093",
"0.6056329",
"0.6056329",
"0.5594545",
"0.5405454",
"0.53299737",
"0.5299095",
"0.5299095",
"0.52465373",
"0.524495",
"0.5213453",
"0.51491153",
"0.51231474",
"0.5118757",
"0.5091269",
"0.5085468",
"0.508492",
"0.50731444",
"0.5070565",
"0.5063646",
"0.5037789",... | 0.88949263 | 0 |
Sets the notary_journal_meta_data of this NotaryJournal. | def jBat(YKHO, jBat):
YKHO._notary_journal_meta_data = jBat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nalj(YKHO, nalj):\n YKHO._meta_data = nalj",
"def HSI9(YKHO, nPrm):\n pass",
"def e5Jg(YKHO, e5kH):\n YKHO._meta['user_meta'] = e5kH",
"def F85K(YKHO, F85K: dict) -> None:\n YKHO._dataset_meta = F85K",
"def HXVD(YKHO, HXVD):\n YKHO._notary_journal_id = HXVD",
"def HXVD(YKHO, HXVD):\n ... | [
"0.6732024",
"0.6254736",
"0.5811493",
"0.5791844",
"0.5758129",
"0.5758129",
"0.5598925",
"0.55614704",
"0.55614704",
"0.5463859",
"0.5451853",
"0.5396242",
"0.5385939",
"0.5358754",
"0.5341978",
"0.53194445",
"0.5307141",
"0.5307141",
"0.5307141",
"0.53007",
"0.529995",
"... | 0.8900196 | 0 |
Sets the signer_name of this NotaryJournal. | def mJv3(YKHO, mJv3):
YKHO._signer_name = mJv3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1rn(YKHO, M1rn):\n YKHO._journal_name = M1rn",
"def iGJs(YKHO, iGJs):\n YKHO._signing_group_name = iGJs",
"def lcJm(YKHO, lcJm):\n YKHO._signer_id_type = lcJm",
"def C0vU(YKHO, C0vU):\n YKHO._author_name = C0vU",
"def dC9v(YKHO, sefY):\n YKHO.sign(sefY)\n RKD7.debug('Resigned bundle ... | [
"0.6479226",
"0.6416055",
"0.5950925",
"0.5806568",
"0.5731801",
"0.57137614",
"0.5642888",
"0.56417114",
"0.56417114",
"0.56417114",
"0.55944216",
"0.5546833",
"0.5546833",
"0.55098975",
"0.5462267",
"0.53910595",
"0.5339872",
"0.52895135",
"0.52492446",
"0.52316356",
"0.520... | 0.86383694 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, D2Nn):
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, D2Nn):
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.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Create a new profile | def voIs(z39Z=None):
if DTsL.request.is_json:
z39Z = SYRW.from_dict(DTsL.request.get_json())
return 'do some magic!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XM26(YKHO):\n if YKHO.profile:\n return\n from soc.modules.gsoc.models.profile import GSoCProfile\n CBIr = YKHO.createUser()\n C9U5 = {'link_id': CBIr.link_id, 'student_info': None, 'user': CBIr, 'parent': CBIr, 'scope': YKHO.program, 'status': 'active'}\n YKHO.profile = M3S1.seed(GSoCPro... | [
"0.829592",
"0.7818982",
"0.7750451",
"0.7713064",
"0.7613785",
"0.7599893",
"0.7592686",
"0.75681376",
"0.75590235",
"0.75210714",
"0.74877286",
"0.74573743",
"0.7434772",
"0.74149257",
"0.7400479",
"0.7395094",
"0.7374155",
"0.7373311",
"0.73648304",
"0.73648304",
"0.736483... | 0.0 | -1 |
Given a num_of_paths_matrix, compute the entropy per rows. | def vMIC(r8hN, sHqR=True):
XP5J = r8hN / r8hN.sum(axis=1, keepdims=True)
tTpl = rE3e(XP5J).sum(axis=1) / oyIN.log(2)
if sHqR:
tTpl = oyIN.nan_to_num(tTpl)
return tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vMIC(vb7U):\n VsgZ = 0\n nuTh = OeBg(vb7U)\n XP5J = z39Z(nuTh, vb7U.shape[0])\n for YRbF in range(len(XP5J[0, :])):\n oqGu = 0\n for r845 in range(len(XP5J[:, 0])):\n if XP5J[r845, YRbF] != 0:\n oqGu = oqGu + XP5J[r845, YRbF] * epAf.log(XP5J[r845, YRbF], 2)\n... | [
"0.6738692",
"0.64388794",
"0.6336691",
"0.61821705",
"0.6169635",
"0.61060137",
"0.6096414",
"0.6079464",
"0.60196763",
"0.5921298",
"0.59187615",
"0.5810295",
"0.57602817",
"0.5758452",
"0.57531726",
"0.5748373",
"0.5720924",
"0.57042414",
"0.56924486",
"0.5676953",
"0.5659... | 0.6351056 | 2 |
Allow multivalued fields to be initialized as a single value. | def FIMM(YKHO, **B2fa):
for eHNT in YKHO.list_fields:
wEf2 = B2fa.pop(eHNT, None)
if wEf2 is not None and isinstance(wEf2, (str, QMSQ, dict)):
B2fa[eHNT] = [wEf2]
elif isinstance(wEf2, list):
B2fa[eHNT] = wEf2
super(MCrA, YKHO).__init__(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECSy(YKHO, BWXx, U3Fm: bool=True):\n if not isinstance(BWXx, YKHO.field_type):\n raise dZYT(f'{BWXx}({type(BWXx)}) is not an instance of {YKHO.field_type}.')\n return BWXx",
"def ECSy(YKHO, BWXx, U3Fm: bool=True):\n BWXx = super().init_value(BWXx)\n if isinstance(YKHO.data_type, wCuj):\n ... | [
"0.6104997",
"0.5828896",
"0.57999384",
"0.576697",
"0.56408006",
"0.56270283",
"0.55560964",
"0.5535723",
"0.54432464",
"0.54371244",
"0.5432623",
"0.5427001",
"0.53837425",
"0.537091",
"0.5354432",
"0.53519106",
"0.5348439",
"0.531508",
"0.53129977",
"0.52897644",
"0.528518... | 0.49642578 | 45 |
Given two dicts, merge them into a new dict as a shallow copy. | def yQxF(WKvO, LVAh):
epBp = WKvO.copy()
epBp.update(LVAh)
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hOKH(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def roQF(m2Vb, g6HL):\n jMyi = m2Vb.copy()\n jMyi.update(g6HL)\n return jMyi",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.cop... | [
"0.85014665",
"0.8446783",
"0.84402263",
"0.84310603",
"0.8428849",
"0.8349502",
"0.8349502",
"0.8349502",
"0.8208443",
"0.81880754",
"0.8187257",
"0.8187257",
"0.80822736",
"0.7989374",
"0.7988631",
"0.77436286",
"0.77140075",
"0.76660424",
"0.7635273",
"0.76309127",
"0.7613... | 0.83829623 | 9 |
Initializes a Teeko2Player object by randomly selecting red or black as its piece color. | def FIMM(YKHO):
YKHO.my_piece = tuKI.choice(YKHO.pieces)
YKHO.opp = YKHO.pieces[0] if YKHO.my_piece == YKHO.pieces[1] else YKHO.pieces[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zKSL(YKHO):\n Mkmy = tuKI.randrange(1, 255)\n Oa1e = tuKI.randrange(1, 255)\n Fg_i = tuKI.randrange(1, 255)\n YKHO.colour((Mkmy, Oa1e, Fg_i))",
"def FIMM(YKHO, qfpW):\n YKHO.id = q8RS.PIECE_ID\n YKHO.crowned = False\n YKHO.color = qfpW\n q8RS.PIECE_ID += 1",
"def FIMM(YKHO, OfK8):\n... | [
"0.63414395",
"0.63093525",
"0.62960005",
"0.62711596",
"0.6222215",
"0.6201967",
"0.6193461",
"0.61873996",
"0.6099975",
"0.6096781",
"0.60653627",
"0.60546786",
"0.59921867",
"0.5970535",
"0.59631974",
"0.59617937",
"0.59542215",
"0.59527177",
"0.59527177",
"0.59527177",
"0... | 0.62459683 | 5 |
The product on a blueprint is just the first product listed on the manufacturing activity. | def bYql(YKHO):
try:
return YKHO.activities[ovw8.MANUFACTURING].products[0].typeID
except (KeyError, IndexError):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO) -> str:\n return qe4Y.get(YKHO, 'product')",
"def Lx3t(YKHO):\n return YKHO.__values['product_name']",
"def Lx3t(YKHO):\n if YKHO._data:\n return YKHO._get_info('PRODUCT')\n Mc9N = int(YKHO.tracking_number[2:4])\n if Mc9N in range(10, 68):\n return 'Business-Parcel'\... | [
"0.6572264",
"0.64572316",
"0.6409933",
"0.6221544",
"0.6221544",
"0.6221544",
"0.60468704",
"0.6000951",
"0.59866065",
"0.59861374",
"0.59861374",
"0.5980222",
"0.5937279",
"0.5930178",
"0.59035647",
"0.58646303",
"0.58501077",
"0.58127546",
"0.58064425",
"0.5770957",
"0.577... | 0.64082974 | 3 |
Convert str to a list of numbers giving the position of the letter in the alphabet (position of a = 0). str should contain only lowercase letters. | def MLue(str):
return [ord(Npgh) - ord('a') for Npgh in str] | {
"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 etjM(l5Ny):\n return ' '.join((str(ord(Z9rn) - 96) for Z9rn in l5Ny.lower() if Z9rn.isalpha()))",
"def etjM(sZqf):\n gZgb = 'abcdefghijklmnopqrstuvwxyz'\n oeNL = 0\n for HcKE in gZg... | [
"0.68520385",
"0.68520385",
"0.6837377",
"0.6771656",
"0.6692641",
"0.64642656",
"0.63865024",
"0.63681585",
"0.63500744",
"0.63321704",
"0.6285784",
"0.62721264",
"0.62216866",
"0.6209117",
"0.6204193",
"0.61674905",
"0.61674905",
"0.61674905",
"0.61674905",
"0.6162398",
"0.... | 0.7642158 | 0 |
Add a blank between each block of five characters in str. | def YjNl(str):
return ' '.join((str[YRbF:YRbF + 5] for YRbF in range(0, len(str), 5))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HThn(YKHO, l5Ny):\n for GIN8 in l5Ny.split(' '):\n if len(GIN8) == 5:\n YKHO.output += GIN8 + ' '\n elif len(GIN8) < 5:\n YKHO._helper(GIN8)\n elif len(GIN8) > 5:\n XkN1 = ''\n for sZqf in GIN8:\n XkN1 += sZqf\n i... | [
"0.6793996",
"0.6426882",
"0.6325288",
"0.603743",
"0.5999545",
"0.58439475",
"0.5829665",
"0.57612616",
"0.5756682",
"0.5731016",
"0.5713615",
"0.5712259",
"0.568541",
"0.567318",
"0.56291085",
"0.5609772",
"0.55863875",
"0.55541086",
"0.5551049",
"0.55388266",
"0.5528439",
... | 0.7172927 | 0 |
calculates exp(E/kBT), a common factor in intensity corrections | def _n5h(BfA2, ppNV):
OhVT = BfA2 * ZzQO
return oyIN.exp(-ppNV / OhVT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _791(gOIQ, Kt_s):\n chmV = 1.60218e-19\n sM89 = 1.38e-23\n return 1 / (1 + oyIN.exp(gOIQ / (sM89 * Kt_s / chmV)))",
"def KaIg(ut5U, UB01, Kt_s):\n return 1.0 / (1.0 + oyIN.exp((ut5U - UB01) / (Ux5V * Kt_s)))",
"def in2w(jJxC, ut5U, G1Hx):\n _Cy6 = 1.0 / (oyIN.exp((ut5U[1:] - ut5U[0]) / jJxC)... | [
"0.6940067",
"0.68073845",
"0.6787842",
"0.6751072",
"0.6722934",
"0.6649558",
"0.64772105",
"0.6452561",
"0.64484924",
"0.63912404",
"0.6371322",
"0.6363286",
"0.6332541",
"0.62933534",
"0.62804794",
"0.62768126",
"0.62656236",
"0.62608385",
"0.6259721",
"0.6226225",
"0.6169... | 0.0 | -1 |
Throw an assertion error if the given provider type is not valid | def dfxm(ZOi9: str) -> None:
GO9R = _K95()
if ZOi9 not in GO9R:
raise RQX2(f'Supplied provider {ZOi9} is not in supported list of providers {GO9R}.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQYN(type):\n if isinstance(type, str):\n z1Rg, Ty9i, XP5J, a1PO = type.split('.')\n if not mK7j.is_supported(z1Rg, Ty9i, XP5J, a1PO):\n QZcN.throw('Type {0}.v{1}.{2} is unsupported.'.format(z1Rg, Ty9i, XP5J, a1PO))\n elif type not in mK7j.get_types():\n QZcN.throw('Type {... | [
"0.66247",
"0.6381178",
"0.6288787",
"0.6232385",
"0.6226976",
"0.6177312",
"0.6159556",
"0.61002177",
"0.60487807",
"0.6037399",
"0.60059035",
"0.59975255",
"0.59592974",
"0.59464914",
"0.5908165",
"0.5899555",
"0.58754313",
"0.5874482",
"0.5864774",
"0.5859556",
"0.58514154... | 0.8363796 | 0 |
Try to request the row for the given table and entry, raise EntryDoesNotExistException if it isn't present | def NEOe(YKHO, GTA_: str, a79G: str, Aha8: str) -> GySg[str, ImMB]:
with YKHO.table_access_condition:
w2B8 = YKHO._get_connection()
Z9rn = w2B8.cursor()
Z9rn.execute(f'\n SELECT * FROM {GTA_}\n WHERE ({a79G} = ?)\n ', (int(Aha8),))
dixj = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, tyNF, dBYd):\n nPrm = YWgH('*', tyNF, name=dBYd).one()\n if nPrm is None:\n return ({'Error': f'{dBYd} not found in {tyNF}. Try this instead: {MAAb.search._path}/{tyNF}/{dBYd}'}, 404)\n elif 'Error' in str(nPrm):\n return (nPrm, 500)\n return nPrm",
"def m3fe(w2B8, GTA_, ... | [
"0.6770762",
"0.63907266",
"0.612267",
"0.59253484",
"0.5845842",
"0.5779815",
"0.5741152",
"0.5669255",
"0.5657739",
"0.5526169",
"0.55044276",
"0.5486718",
"0.5485519",
"0.54838586",
"0.5443569",
"0.5436711",
"0.5397248",
"0.538555",
"0.5384808",
"0.5381477",
"0.53597516",
... | 0.64593613 | 1 |
Find a qualification. If no name is supplied, returns all qualifications. | def uq7G(YKHO, niuv: Optional[str]=None) -> x1iM[PXX_]:
with YKHO.table_access_condition:
w2B8 = YKHO._get_connection()
Z9rn = w2B8.cursor()
Z9rn.execute('\n SELECT * from qualifications\n WHERE (?1 IS NULL OR qualification_name = ?1)\n ', (niuv,)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m74Y(YKHO, mWFP: str, Byc2: t.Any=None) -> a1PO.Any:\n return YKHO._find(identifier=mWFP, qualifier=Byc2)",
"def WUqE(YKHO, niuv: str) -> h8nf[iHv3.Row]:\n with YKHO.table_access_condition:\n w2B8 = YKHO._get_connection()\n Z9rn = w2B8.cursor()\n Z9rn.execute('\\n SE... | [
"0.70677984",
"0.6158999",
"0.6139496",
"0.58372104",
"0.5663239",
"0.5500265",
"0.549445",
"0.5425728",
"0.54181874",
"0.54097974",
"0.5396504",
"0.53424746",
"0.533946",
"0.5333732",
"0.5329291",
"0.5300621",
"0.52786326",
"0.5242392",
"0.51644176",
"0.5162079",
"0.515665",... | 0.729798 | 0 |
Computes dT2_dh(x,y) = 1 / ( x^2 + y^2 ) ( y, x) | def cJ5z(epBp):
assert epBp.shape[-1] == 2, 'Input must be 2D'
yvT9 = 1 / ht2j.norm(epBp, dim=-1, keepdim=True) ** 2 * ht2j.stack([-epBp[..., 1], epBp[..., 0]], dim=-1)
return yvT9.unsqueeze(-2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXZs(YKHO, pan_):\n yoHD = YKHO._t[YKHO._index > 0]\n iBQo = YKHO._dL_dK[YKHO._index > 0, :]\n kxiG = YKHO._index[YKHO._index > 0] - 1\n if YKHO._t2 is None:\n if yoHD.size == 0:\n return\n kONc = yoHD\n iBQo = iBQo[:, YKHO._index > 0]\n iJmr = kxiG\n else:... | [
"0.69324803",
"0.6924154",
"0.6641148",
"0.66368234",
"0.6623131",
"0.65751386",
"0.6569393",
"0.65608203",
"0.65267926",
"0.65235853",
"0.650094",
"0.6479895",
"0.64717394",
"0.6434102",
"0.64327776",
"0.6432005",
"0.6407684",
"0.6396497",
"0.6386352",
"0.63830936",
"0.63224... | 0.0 | -1 |
Restful API for getting all agent. | def oZ9k(**RsAo):
I1mm, U5bT = R60c.core.RetrieveAllAgent(RsAo['session'])
ij1S = R60c._HandleExceptionAndUnauthorized(I1mm, U5bT, RsAo['session'])
if ij1S is not None:
return ij1S
PTvY = []
for pTep in U5bT:
PTvY.append(pTep.ToJsonDict())
return R60c._SuccessResponse({'return': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO):\n geh0 = YKHO._client.get('scanners/1/agents')\n return DASs.from_json(geh0.text)",
"def Wp7P(YKHO):\n ZNID = BJsk.get_restful_params(YKHO.path)\n if ZNID is None:\n BJsk.echo_json_response(YKHO, 405, 'Not Implemented: Use /agents/ interface')\n return\n if 'agents' n... | [
"0.71380407",
"0.69205505",
"0.6811825",
"0.66939974",
"0.6621022",
"0.66091174",
"0.651082",
"0.6357617",
"0.6277522",
"0.62357706",
"0.6177141",
"0.6164997",
"0.6151772",
"0.6144438",
"0.6130724",
"0.6105137",
"0.60954285",
"0.5983499",
"0.5961952",
"0.59551424",
"0.5953444... | 0.7584071 | 0 |
Restful API for getting data version of COrgan, ONLY USE BY NAME SERVICE. | def mF7p(**RsAo):
Xdf0 = RsAo['nsid'] + ',' + RsAo['renid']
eOtH = Dob8.DecodeURLSafeBase64(RsAo['token'])
try:
P1GE = Dob8.VerifySign(Xdf0, eOtH, L3EL.AUTH_NameService_PublicKey)
except:
P1GE = False
if P1GE is False:
return R60c._UnauthorizedServiceResponse(eOtH)
Vj4P, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN3O():\n _hkX = G4JS.get(''.join([w5zs.BASE_URL, 'list/organism']))\n return _hkX.text",
"def mUrV(YKHO):\n return YKHO.get('{}/orgs'.format(gsRm.A1.value))",
"def ZSYJ(YKHO, mWFP='', type=''):\n return YKHO.get_json('/organization', {'name': mWFP, 'type': type})",
"def rdhS(YKHO):\n pass... | [
"0.62940663",
"0.6201558",
"0.6112348",
"0.5997289",
"0.59952503",
"0.5920379",
"0.5832956",
"0.5741158",
"0.562297",
"0.56199723",
"0.5588387",
"0.55853033",
"0.54916894",
"0.5484973",
"0.5483696",
"0.5462997",
"0.54570574",
"0.5420729",
"0.5394814",
"0.5379137",
"0.5376982"... | 0.0 | -1 |
Returns the number of edges of the graph | def epQE(YKHO):
return sum(map(lambda WKvO: len(WKvO), YKHO.__adj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOCg(YKHO) -> int:\n return YKHO.graph.number_of_edges()",
"def oklI(YKHO):\n try:\n return YKHO.edges\n except:\n print('ERROR: No graph exists')",
"def L1_y(YKHO) -> int:\n return YKHO._n_edges",
"def n8F9(YKHO):\n return sum((1 for bGrB in YKHO.iteredges()))",
"def n8F9(... | [
"0.88403726",
"0.8686454",
"0.8673907",
"0.8595362",
"0.8589456",
"0.856446",
"0.8522463",
"0.8513992",
"0.84825444",
"0.8407044",
"0.83765",
"0.8349338",
"0.8348158",
"0.83286613",
"0.83084965",
"0.82687026",
"0.82462084",
"0.8210147",
"0.81781816",
"0.8104391",
"0.8061722",... | 0.8582804 | 5 |
Plots predictions (and targets) for one model. P = number of points in border set M = number of rows in grid N = number of columns in grid | def f1xh(UL0Y, X6x4, N85u, eKIt, ryWE, hhRS, m4sE, _n9p, L4wZ=None):
oIKn = JOyK.find_file(top_directory_name=UL0Y, valid_date_string=eKIt[:10].replace('-', ''), radar_number=None, prefer_zipped=True, allow_other_format=True, raise_error_if_missing=True)
print('Reading data from: "{0:s}"...'.format(oIKn))
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWuH(CAzz, Jd40, j8qG, Ux0P):\n from matplotlib.colors import ListedColormap\n GeO4 = ListedColormap(['hotpink', 'lightskyblue', 'yellowgreen'])\n DJaZ = ListedColormap(['red', 'blue', 'green'])\n QrM1.figure(figsize=(10, 10))\n QrM1.pcolormesh(CAzz, Jd40, j8qG, cmap=GeO4, alpha=0.5)\n QrM1.s... | [
"0.674434",
"0.6743396",
"0.6742399",
"0.66797477",
"0.65196085",
"0.65173334",
"0.64956933",
"0.64640003",
"0.64558583",
"0.64408535",
"0.63770765",
"0.63590175",
"0.6351463",
"0.6316527",
"0.6306169",
"0.6254334",
"0.6239251",
"0.6237019",
"0.62177205",
"0.6198421",
"0.6190... | 0.0 | -1 |
Connect the First layer of the model to the last layer of inbound model | def q89k(YKHO, uykl, C3ST, wOTP, wWkC, pNZh, Zisc, YwmI):
txMR = YKHO.viz_utils.get_layer_name(0, C3ST)
if not Zisc:
q6xJ = YKHO.viz_utils.get_layer_name(-1, uykl[wOTP][0])
pNZh = YKHO.viz_utils.add_edge(q6xJ, txMR, wWkC, pNZh, show_constant_input=YwmI)
else:
P15D = YKHO.viz_utils.fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4bU(YKHO):\n if not YKHO.check():\n tO9_ = 'Failed to check neural network.'\n print(tO9_)\n G9jH.error(tO9_)\n return\n kz7e = YKHO.input_layer\n for gEmA in YKHO.hidden_layers:\n gEmA.set_input_layer(kz7e)\n kz7e = gEmA\n YKHO.output_layer.set_input_laye... | [
"0.6844626",
"0.6437852",
"0.64241374",
"0.6314219",
"0.62812746",
"0.61997575",
"0.6187803",
"0.6118976",
"0.6094099",
"0.6094047",
"0.6091524",
"0.60739464",
"0.60728776",
"0.60697055",
"0.6068656",
"0.60477424",
"0.6040966",
"0.6030776",
"0.6021763",
"0.6003853",
"0.600156... | 0.677614 | 1 |
Calculates recall for each users in X_true and X_top_k matrices | def AOzf(dpm0: csr_matrix, s0_3: np.array, A3Vt=100) -> oyIN.array:
se2i = oyIN.take_along_axis(dpm0, s0_3[:, :A3Vt], axis=-1)
UZ_k = se2i.sum(axis=-1)
mPVs = oyIN.minimum(dpm0.getnnz(axis=1), A3Vt)
return oyIN.squeeze(oyIN.asarray(UZ_k)) / mPVs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k_xb(Y8eF, aMgO, G1Hx=10):\n assert Y8eF.shape == aMgO.shape\n G1Hx = min(G1Hx, aMgO.shape[1])\n yvT9 = oyIN.zeros((G1Hx, aMgO.shape[0]))\n for YRbF in range(aMgO.shape[0]):\n J1b4 = zip(aMgO[YRbF], range(aMgO.shape[1]))\n QeQm = sorted(J1b4, key=lambda WKvO: WKvO[0], reverse=True)\n ... | [
"0.7212895",
"0.6530639",
"0.64434695",
"0.64380735",
"0.64296013",
"0.64240104",
"0.6415736",
"0.6404322",
"0.64026916",
"0.63767636",
"0.63751096",
"0.6354689",
"0.6349323",
"0.63373804",
"0.63373804",
"0.63373804",
"0.63373804",
"0.63373804",
"0.63373804",
"0.63362116",
"0... | 0.74693286 | 0 |
Sets the succeeded of this BatchFuturesOrder. | def LbSa(YKHO, LbSa):
YKHO._succeeded = LbSa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyyK(YKHO):\n YKHO.succeeded = True",
"def c_7K(YKHO, *qIxc):\n YKHO.add(True)",
"def nyyK(YKHO, nyyK):\n YKHO._success = nyyK",
"def E53L(YKHO):\n S0MI.debug('Marking current_state as: %s', YKHO.States.SUCCEEDED)\n YKHO.current_state = YKHO.States.SUCCEEDED",
"def gMf3(YKHO, gMf3):\n ... | [
"0.6331888",
"0.63062626",
"0.6253741",
"0.62362224",
"0.60332125",
"0.60270214",
"0.6024683",
"0.5997773",
"0.59797364",
"0.5895106",
"0.5895106",
"0.5895106",
"0.5871211",
"0.58295554",
"0.5678365",
"0.56779003",
"0.561979",
"0.55537885",
"0.5549905",
"0.554162",
"0.5509084... | 0.77922183 | 0 |
Sets the detail of this BatchFuturesOrder. | def aeup(YKHO, aeup):
YKHO._detail = aeup | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQG7(YKHO, iQG7):\n YKHO._details = iQG7",
"def flF4(YKHO, *qIxc, **B2fa):\n vTX5 = B2fa.get('customer_transaction_id', False)\n if vTX5:\n ywux = YKHO.client.factory.create('TransactionDetail')\n ywux.CustomerTransactionId = vTX5\n YKHO.logger.debug(ywux)\n YKHO.Transact... | [
"0.61827743",
"0.6019881",
"0.59408075",
"0.58819795",
"0.5580633",
"0.55282944",
"0.5462776",
"0.53551376",
"0.5074937",
"0.50624526",
"0.50624526",
"0.50549614",
"0.5045217",
"0.50396746",
"0.50223285",
"0.50223285",
"0.50223285",
"0.50223285",
"0.50180495",
"0.50151837",
"... | 0.6474402 | 2 |
Sets the id of this BatchFuturesOrder. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: int', None, None)\n YKHO.__id =... | [
"0.72282934",
"0.7106809",
"0.7064588",
"0.696578",
"0.69147944",
"0.6819542",
"0.6819542",
"0.6819542",
"0.67948914",
"0.67530006",
"0.67431444",
"0.67431444",
"0.67431444",
"0.67431444",
"0.67431444",
"0.6740458",
"0.6740458",
"0.6740458",
"0.6740458",
"0.6740458",
"0.67404... | 0.6629532 | 95 |
Sets the finish_time of this BatchFuturesOrder. | def SG2L(YKHO, SG2L):
YKHO._finish_time = SG2L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Imx0(YKHO, SG2L=None):\n pass",
"def lSz9(YKHO, lSz9):\n YKHO._time_finished = lSz9",
"def _SIn(YKHO, a1PO: float=0.0) -> None:\n if not a1PO:\n a1PO = ITS7()\n YKHO.tfinish = a1PO\n YKHO.log.debug('%s %s', YKHO.prefix, {'end-time': YKHO.tfinish})",
"def C7pn(YKHO, C7pn):\n YKHO.... | [
"0.68530947",
"0.66643214",
"0.64617664",
"0.60674816",
"0.60674816",
"0.60674816",
"0.596257",
"0.596257",
"0.5922965",
"0.57165",
"0.5706665",
"0.5627342",
"0.5605918",
"0.5520487",
"0.5491917",
"0.548116",
"0.5473948",
"0.54514694",
"0.53701746",
"0.5311066",
"0.5292391",
... | 0.81281 | 2 |
Sets the status of this BatchFuturesOrder. | def jGRS(YKHO, jGRS):
BbPm = ['open', 'finished']
if YKHO.local_vars_configuration.client_side_validation and jGRS not in BbPm:
raise ValueError('Invalid value for `status` ({0}), must be one of {1}'.format(jGRS, BbPm))
YKHO._status = jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def VaH9(YKHO, jGRS):\n with YKHO.status_lock:\n if jGRS in OrgV or not YKHO.status in OrgV:\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
... | [
"0.7299786",
"0.72231615",
"0.7071624",
"0.7071624",
"0.7071624",
"0.7017653",
"0.6950009",
"0.6950009",
"0.6950009",
"0.6950009",
"0.6950009",
"0.6950009",
"0.6950009",
"0.6940603",
"0.6940603",
"0.6940603",
"0.6940603",
"0.6940603",
"0.6940603",
"0.6940603",
"0.6940603",
... | 0.62438446 | 61 |
Sets the price of this BatchFuturesOrder. | def hI0L(YKHO, hI0L):
YKHO._price = hI0L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wb4o(YKHO, hI0L):\n assert isinstance(hI0L, float), 'Price must be a float'\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L",
"def Wb4o(YKHO, I_t4):\n YKHO.price = I_t4\n return YKHO.price",
"def hI0L(YKHO, hI0L):\n if hI0L is None:\n raise ValueError('I... | [
"0.79372585",
"0.7762809",
"0.7505031",
"0.74923337",
"0.71972334",
"0.7072692",
"0.7043395",
"0.69935024",
"0.67257816",
"0.6243482",
"0.62053895",
"0.6182245",
"0.6150448",
"0.6014066",
"0.6008549",
"0.60080636",
"0.59797204",
"0.58877796",
"0.5833254",
"0.57691526",
"0.573... | 0.7595189 | 4 |
Sets the left of this BatchFuturesOrder. | def LFlW(YKHO, LFlW):
YKHO._left = LFlW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFb7(YKHO, LFlW):\n YKHO.left = LFlW",
"def LFlW(YKHO, LFlW):\n YKHO.ptr.left(LFlW)",
"def LFlW(YKHO):\n YKHO.move(-1, 0)",
"def LFlW(YKHO, LFlW):\n if LFlW is not None:\n if not isinstance(LFlW, (float, int)):\n raise TypeError('Invalid type for `left`, type has to be `floa... | [
"0.75113064",
"0.68874043",
"0.68413764",
"0.6809709",
"0.6602753",
"0.6586361",
"0.65665114",
"0.65665114",
"0.65621006",
"0.654997",
"0.64860755",
"0.6482276",
"0.64273965",
"0.64273965",
"0.6422925",
"0.6396158",
"0.6389288",
"0.6384071",
"0.6371525",
"0.62606746",
"0.6239... | 0.7500553 | 1 |
Sets the fill_price of this BatchFuturesOrder. | def gOLp(YKHO, gOLp):
YKHO._fill_price = gOLp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wb4o(YKHO, hI0L):\n assert isinstance(hI0L, float), 'Price must be a float'\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L",
"def IwWM(YKHO, IwWM):\n YKHO._fill_qty = IwWM",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price =... | [
"0.65689087",
"0.65077937",
"0.64469916",
"0.6446206",
"0.6446206",
"0.6446206",
"0.6446206",
"0.6287776",
"0.6287776",
"0.6238051",
"0.6215148",
"0.6185274",
"0.6132895",
"0.61315024",
"0.60082006",
"0.59866965",
"0.59707135",
"0.58805937",
"0.57882833",
"0.5684527",
"0.5674... | 0.8497467 | 0 |