query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns the namespace of the message collection. | def W5fH(YKHO):
return YKHO.NAMESPACE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO):\n return YKHO._namespace",
"def _63S(YKHO):\n return YKHO._namespace",
"def _63S(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('namespace'))",
"def _63S(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('namespace'))",
"def _63S(YKHO) -> str:\n return la... | [
"0.70429724",
"0.70429724",
"0.69827807",
"0.69827807",
"0.69827807",
"0.69681895",
"0.6948459",
"0.6914516",
"0.68967825",
"0.6887672",
"0.68697506",
"0.68697506",
"0.68697506",
"0.68697506",
"0.68697506",
"0.68697506",
"0.68697506",
"0.6819346",
"0.68034357",
"0.68034357",
... | 0.67667985 | 24 |
Get the directory that contains the python file that is calling this function. | def BGCq():
eHNT = HwRy._current_frames().values()[0]
GbKm = eHNT.f_back.f_globals['__file__']
jNha, IznC = Hy7s.path.split(GbKm)
return jNha | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jCjv():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def kn2R():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))",
"def OyQC():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))",
"def TCZx():\n return Hy7s.path.dirname(xAKo)",
"def TCZx():\n return Hy7s.path.dirname(xAK... | [
"0.8620258",
"0.8177862",
"0.8168815",
"0.81612974",
"0.81612974",
"0.8128962",
"0.7992167",
"0.7948146",
"0.78915715",
"0.78475225",
"0.780738",
"0.7770532",
"0.77282953",
"0.7720216",
"0.7712446",
"0.7677571",
"0.7673048",
"0.7673048",
"0.76477087",
"0.7647075",
"0.76442647... | 0.7337316 | 42 |
Get a random user agent string. | def ZwH4(YKHO):
return tuKI.choice(YKHO.get_data('user_agents.txt', tj58)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZwH4():\n return tuKI.choice(['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'])",
"def ZwH4():\n return tuKI.choice(g9nt)",
"def ZwH4():\n return tuKI.choice(oV0X())",
"def ZwH4(YKHO):\n return tuKI.choice(YKHO.__get_data('... | [
"0.8742558",
"0.87341744",
"0.8625723",
"0.86179596",
"0.85397685",
"0.8449496",
"0.8433443",
"0.83011353",
"0.81678826",
"0.8150516",
"0.8104249",
"0.79446423",
"0.78122234",
"0.7782795",
"0.76284367",
"0.7346913",
"0.7341547",
"0.7153102",
"0.7142808",
"0.7074744",
"0.70578... | 0.85485727 | 4 |
Testing DiffXWriter.write_preamble after new_change + write_meta | def KbqJ(YKHO):
wOb_, WJI9 = YKHO._create_writer()
WJI9.new_change()
WJI9.write_meta({'key': 'value'})
Ol8d = 'write_preamble() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file()'
with YKHO.assertRaisesMessage(U1Xi, Ol8d):
WJI9.write_preamble('text... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxQE(YKHO):\n wOb_, WJI9 = YKHO._create_writer()\n WJI9.new_change()\n WJI9.write_preamble('text')\n Ol8d = 'write_preamble() cannot be called at this stage (after write_preamble()). Expected one of: new_file(), write_meta()'\n with YKHO.assertRaisesMessage(U1Xi, Ol8d):\n WJI9.write_pream... | [
"0.7721104",
"0.7711078",
"0.7581772",
"0.75166285",
"0.71924627",
"0.6902954",
"0.6693054",
"0.66417414",
"0.6605472",
"0.65110075",
"0.6412348",
"0.6403108",
"0.63770795",
"0.63187593",
"0.63182515",
"0.6280563",
"0.6277595",
"0.61555624",
"0.61055815",
"0.6032093",
"0.5998... | 0.8092579 | 0 |
Testing DiffXWriter.write_preamble after new_change + write_preamble | def WxQE(YKHO):
wOb_, WJI9 = YKHO._create_writer()
WJI9.new_change()
WJI9.write_preamble('text')
Ol8d = 'write_preamble() cannot be called at this stage (after write_preamble()). Expected one of: new_file(), write_meta()'
with YKHO.assertRaisesMessage(U1Xi, Ol8d):
WJI9.write_preamble('text') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbqJ(YKHO):\n wOb_, WJI9 = YKHO._create_writer()\n WJI9.new_change()\n WJI9.write_meta({'key': 'value'})\n Ol8d = 'write_preamble() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file()'\n with YKHO.assertRaisesMessage(U1Xi, Ol8d):\n WJI9.write_pre... | [
"0.76485",
"0.75366247",
"0.7451797",
"0.7283772",
"0.7131287",
"0.70695966",
"0.6890336",
"0.6717066",
"0.63457125",
"0.63074493",
"0.62219536",
"0.61524284",
"0.6104569",
"0.6009665",
"0.59894836",
"0.59716547",
"0.5907416",
"0.5893988",
"0.5834446",
"0.58146536",
"0.580141... | 0.80689234 | 0 |
Find all files beneath path with file name suffix. Note that a path may contain further subdirectories and those subdirectories may also contain further subdirectories. There are no limit to the depth of the subdirectories can be. | def A99F(ZI14, pmON):
RRlC = []
if len(pmON) == 0 or len(ZI14) == 0:
return None
try:
for YRbF in Hy7s.listdir(pmON):
wQzQ = Hy7s.path.join(pmON, YRbF)
if Hy7s.path.isfile(wQzQ) and wQzQ.endswith('.c'):
RRlC.append(wQzQ)
elif Hy7s.path.isdi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(ZI14, pmON):\n Zg0d = gzes(Odyn, pmON)\n if vtfo(Zg0d) == False:\n return []\n MXwC = []\n\n def uaUC(acAb):\n if EFYe(acAb) == True:\n if acAb.endswith(ZI14) == True:\n MXwC.append(PsRC(acAb, Odyn))\n else:\n for S3Wb in U9eF(acAb):\n ... | [
"0.8309219",
"0.8206116",
"0.81924736",
"0.8181102",
"0.8148852",
"0.8134471",
"0.8127843",
"0.8127348",
"0.81256175",
"0.80854714",
"0.8058201",
"0.8046688",
"0.8032143",
"0.802676",
"0.7991301",
"0.79891014",
"0.798673",
"0.79748464",
"0.7921795",
"0.7899055",
"0.78229976",... | 0.7463236 | 36 |
Initialize the parallel random forest. | def FIMM(YKHO, Sw_P=1, N5XC=10, i9hE=10, OPAs='gini', AJtZ=2):
YKHO.n_cores = Sw_P
YKHO.n_estimators = N5XC
YKHO.total_estimators = i9hE
YKHO.criterion = OPAs
YKHO.forest = wEmI(n_estimators=N5XC, criterion=OPAs, min_samples_split=AJtZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHQe():\n from sklearn.ensemble import RandomForestClassifier\n return RandomForestClassifier(n_estimators=30, random_state=1)",
"def FIMM(YKHO, AHQ7, yokr, qi10, qonS, iOGD):\n YKHO.num_trees = AHQ7\n YKHO.max_depth = qi10\n YKHO.min_size = qonS\n YKHO.sample_percentage = iOGD\n oyIN.ra... | [
"0.72202843",
"0.6600657",
"0.63827837",
"0.6380827",
"0.6351873",
"0.63396794",
"0.6262606",
"0.62493926",
"0.6246534",
"0.62455505",
"0.6222042",
"0.61886775",
"0.6183413",
"0.6137574",
"0.6136358",
"0.61351556",
"0.61190146",
"0.60774356",
"0.60661423",
"0.6059901",
"0.605... | 0.65350765 | 2 |
Signal when the game is over. color is the color of the winner or None is the game ended in a draw. board is the final state of the board. | def yXR3(YKHO, qfpW: Optional[Color], iBIi: Board):
YKHO._on_game_over(qfpW, iBIi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v3zs(YKHO, qfpW: Optional[Color], iBIi: Board):\n ...",
"def xXpf(YKHO, qfpW, iBIi):\n YKHO.board = iBIi\n YKHO.color = qfpW\n YKHO.turn_number = 0",
"def hFIV(YKHO):\n YKHO._board_labels()\n YKHO.redraw.emit()",
"def vOQM(YKHO, bHVe):\n if YKHO._myColor == bHVe:\n print(YKHO.... | [
"0.8111928",
"0.6671165",
"0.64112294",
"0.63123643",
"0.63123643",
"0.63022965",
"0.6292237",
"0.6247455",
"0.62401134",
"0.6216893",
"0.621271",
"0.6086107",
"0.60771495",
"0.60650283",
"0.60392463",
"0.5993194",
"0.5991295",
"0.59771085",
"0.59665745",
"0.5963886",
"0.5954... | 0.7996058 | 1 |
Creates and loads pretrained deeplab model. | def FIMM(YKHO, qIxc):
YKHO.graph = ZylS.Graph()
r8JX = ZylS.GraphDef()
with open(qIxc.model_pb, 'rb') as eHNT:
r8JX.ParseFromString(eHNT.read())
if r8JX is None:
raise RuntimeError('Cannot find inference graph in tar archive.')
with YKHO.graph.as_default():
ZylS.import_graph_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO) -> None:\n YKHO.model = ADDA(encoder_name='resnet34', activation='sigmoid')\n YKHO.model.load_state_dict(ht2j.load(f'{Odyn}/model/seg_model.pt'))\n YKHO.model.eval()",
"def uyMl():\n NtnT = cvxQ.DeviceOption()\n NtnT.device_type = cvxQ.CPU\n RzlV = 'out/model_init.pb'\n U94V =... | [
"0.7648836",
"0.71454567",
"0.7105731",
"0.70605075",
"0.7048734",
"0.70357805",
"0.70135975",
"0.698738",
"0.6972397",
"0.6947987",
"0.6947987",
"0.69337046",
"0.6923191",
"0.6895573",
"0.688701",
"0.6884813",
"0.6876558",
"0.68761164",
"0.68481755",
"0.68375784",
"0.6836809... | 0.0 | -1 |
It should cast columns that contain numeric data to the proper numeric types. | def j7Gj(YKHO):
vexM = YKHO.query.metrics('pageviews').daily('2014-07-01', '2014-07-02')
u3tA = vexM.get()
for exwG in u3tA['pageviews']:
YKHO.assertIsInstance(exwG, int) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGu_(YKHO):\n zCiL = YKHO.create_ColumnConversions_class(yzX6())\n zCiL.to_numeric(_t7E)\n assert False not in [isinstance(wEf2, oyIN.float64) for wEf2 in zCiL.df[_t7E].values]",
"def FVKI(jQ3Z, Dc34):\n for YRbF in Dc34:\n jQ3Z.loc[:, YRbF] = rLdf.to_numeric(jQ3Z[YRbF], errors='coerce')\n... | [
"0.8256278",
"0.79733306",
"0.7782449",
"0.7737197",
"0.7718229",
"0.771047",
"0.75758696",
"0.7533609",
"0.7307566",
"0.7307566",
"0.72905713",
"0.7271069",
"0.72379696",
"0.7223491",
"0.72044605",
"0.7199768",
"0.7171747",
"0.71387327",
"0.70876455",
"0.705719",
"0.7032699"... | 0.0 | -1 |
It should cast columns containing dates to proper date objects. | def y3zF(YKHO):
vexM = YKHO.query.metrics('pageviews').daily('2014-07-01', '2014-07-02')
u3tA = vexM.get()
for _c1T in u3tA['date']:
YKHO.assertIsInstance(_c1T, qcWV.date) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h8C4(LUcQ: pd.DataFrame, wrKi: List[str]=vHqO) -> rLdf.DataFrame:\n for Nl3a in wrKi:\n LUcQ[Nl3a] = rLdf.to_datetime(LUcQ[Nl3a])\n return LUcQ",
"def AHNc(iVRZ):\n\n def TvuN(_c1T):\n try:\n return qcWV.datetime.strptime(_c1T, '%Y-%m-%d')\n except TypeError:\n ... | [
"0.73431927",
"0.7258266",
"0.7177117",
"0.7080059",
"0.6993",
"0.69432056",
"0.6900978",
"0.68778116",
"0.6794364",
"0.6745045",
"0.6731855",
"0.6706207",
"0.669471",
"0.6509055",
"0.6499997",
"0.6479855",
"0.6474116",
"0.6425961",
"0.64244443",
"0.63908815",
"0.6361268",
... | 0.68811905 | 7 |
Finds the relevant key_path in a json object. If list encountered, this function will return a list of values, one for each match in each of the list's elements (using the rest of the keys) | def Xk8d(D__j, zgjV):
return TYou(D__j, zgjV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPkX(cK_b, H5ew, pmON=None):\n if pmON is None:\n pmON = H5ew\n else:\n pmON = '{}:{}'.format(pmON, H5ew)\n U5bT = []\n for jR8u, wEf2 in cK_b.items():\n if jR8u == H5ew:\n U5bT.append({pmON: wEf2})\n if isinstance(wEf2, list):\n for ZfUD in wEf2:\n... | [
"0.77065253",
"0.68431085",
"0.6829912",
"0.6824285",
"0.6824285",
"0.6824285",
"0.6824285",
"0.6824285",
"0.68184656",
"0.68184656",
"0.68180525",
"0.6812529",
"0.6808696",
"0.6806615",
"0.6650893",
"0.6622436",
"0.6610998",
"0.66007817",
"0.65445787",
"0.6508871",
"0.646917... | 0.67624587 | 14 |
Returns the firstname plus the last_name, and a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.title() + ' ' + zp3f.title()\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).... | [
"0.8242202",
"0.8176985",
"0.81769085",
"0.8167066",
"0.81401265",
"0.81028026",
"0.8090208",
"0.8084983",
"0.8081817",
"0.8081593",
"0.8078625",
"0.8078625",
"0.80772156",
"0.8068329",
"0.8066195",
"0.8066195",
"0.80524135",
"0.8029571",
"0.8028608",
"0.8014973",
"0.8014696"... | 0.79086447 | 50 |
Return all the stats limits (dict). Default behavor is to export all the limits if metric_list is provided, only export limits of given metric (list) | def Upvf(YKHO, ABBE=None):
if ABBE is None:
ABBE = YKHO._metrics
return {XP5J: YKHO._metrics[XP5J].limits for XP5J in ABBE} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u0K4(YKHO):\n return [YKHO._metrics[XP5J].limits for XP5J in YKHO._metrics]",
"def REiP(aO51):\n import logging\n logging.basicConfig(filename='number_manipulation_log.txt', format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')\n if len(aO51) == 1:\n logging.warning('Your list ... | [
"0.65848833",
"0.6063889",
"0.59414893",
"0.5823453",
"0.5810792",
"0.5798641",
"0.57925546",
"0.57757276",
"0.57731473",
"0.5741602",
"0.5725098",
"0.5725098",
"0.56487167",
"0.5523205",
"0.55045295",
"0.5499135",
"0.5498064",
"0.54600894",
"0.54533696",
"0.5452806",
"0.5444... | 0.8301099 | 0 |
Plots a boxplot based on tradeoff table data | def L7RL(CLhQ, xkzz=False):
nPrm = rLdf.read_csv(CLhQ, delimiter='\t').dropna()
LZpg, aNZO = QrM1.subplots(figsize=(8, 6))
vI3f = aNZO.boxplot(nPrm, patch_artist=True)
for Po4F in vI3f['boxes']:
Po4F.set(facecolor='cyan')
aNZO.set_ylabel('Trade-off Score')
DRe6 = oyIN.linspace(1.5, 4.5, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WL4f():\n kj9G = [int(exwG[10]) for exwG in nPrm if exwG[10] != 'Total']\n QrM1.boxplot(kj9G)\n QrM1.show()",
"def c5tg(P4t4, jQ3Z, WfCS):\n qfpW = ['hsl(' + str(MKlR) + ',50%,70%)' for MKlR in oyIN.linspace(0, 270, max(len(WfCS), 7))]\n zgsA = []\n e8uw = [_R2e.Br(), _R2e.Img(src=P4t4.get_... | [
"0.7008857",
"0.68857527",
"0.65900433",
"0.657833",
"0.654601",
"0.6530654",
"0.6516059",
"0.6467291",
"0.646206",
"0.64446795",
"0.63884217",
"0.63250595",
"0.63233984",
"0.62917995",
"0.62805605",
"0.62742096",
"0.62691987",
"0.6208152",
"0.6180993",
"0.61603427",
"0.61466... | 0.6540502 | 5 |
Build a list of kpoints with the structure [[k1_x,k1_y,k1_z,w1],...[kn_x,kn_y,kn_z,wn]], where wi is the weight of the ith kpoint. | def oMsc(F0Ql, NTEj=None):
if NTEj is None:
NTEj = [1 for QyVM in range(len(F0Ql))]
SRyZ = []
for QyVM, G1Hx in enumerate(F0Ql):
SRyZ.append(G1Hx.tolist() + [NTEj[QyVM]])
return SRyZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JfY9(LTIa: List[Point], qoqK: Integer) -> x1iM[PvyL]:\n eqhu = [ZfUD.x for ZfUD in LTIa]\n Zpb3 = [ZfUD.y for ZfUD in LTIa]\n return [PvyL(x=tuKI.uniform(min(eqhu), max(eqhu)), y=tuKI.uniform(min(Zpb3), max(Zpb3))) for bGrB in range(qoqK)]",
"def F0Ql(YKHO):\n xXQH = YKHO._xml.get_kpoints()\n ... | [
"0.6761943",
"0.66991305",
"0.6687321",
"0.66346407",
"0.64814323",
"0.63624465",
"0.6342448",
"0.6316505",
"0.6229093",
"0.62102544",
"0.61666167",
"0.616327",
"0.61152226",
"0.60910064",
"0.60795003",
"0.60504633",
"0.60390234",
"0.5985792",
"0.5980005",
"0.5955236",
"0.593... | 0.76292866 | 0 |
Make sure that the app has all the paths specified by paths Use identity and origin in the error message if path couldn't ve found | def uC8l(YKHO, P4t4, U34r):
ckRy, _E99, hLRM = U34r
for pmON in ckRy:
try:
P3T9(P4t4, pmON)
except oEgM as error:
raise Rfs9(origin=hLRM, path=P1dF.path, base=P1dF.base, identity=_E99, found=P1dF.found) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s9hQ():\n for pmON in qIxc.filepaths:\n if not Hy7s.path.exists(pmON):\n print(f'path: {pmON} does not exist, exiting.')\n exit(1)",
"def kmO7(YKHO):\n for XZBf in YKHO.get_mounts():\n mWFP = XZBf['name']\n pmON = XZBf['path']\n if not Hy7s.path.isabs(p... | [
"0.6396527",
"0.6308601",
"0.62979394",
"0.61250144",
"0.60692954",
"0.60439575",
"0.60330904",
"0.6012411",
"0.59822685",
"0.59568954",
"0.59358156",
"0.5903189",
"0.58855134",
"0.5877466",
"0.58500654",
"0.58402497",
"0.58314455",
"0.58148175",
"0.5798835",
"0.5783985",
"0.... | 0.64683354 | 0 |
Returns the total number of parameters. | def iWCi(YKHO):
M0zs = 0
for XP5J in YKHO.parameters():
M0zs += XP5J.data.view(-1).size(0)
return M0zs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bXZ1(YKHO):\n UHFx = 0\n for mWFP, xqoZ in YKHO.named_parameters():\n UHFx += xqoZ.numel()\n return UHFx",
"def M0zs(YKHO):\n return sum((xqoZ.numel() for xqoZ in YKHO.parameters()))",
"def M0zs(YKHO):\n return sum((XP5J.numel() for XP5J in YKHO.parameters()))",
"def M0zs(YKHO):\n ... | [
"0.88852805",
"0.884359",
"0.8803774",
"0.8803774",
"0.867782",
"0.867782",
"0.85430914",
"0.85430914",
"0.8518593",
"0.8411665",
"0.8405808",
"0.83604795",
"0.8278366",
"0.82699525",
"0.8248592",
"0.82176983",
"0.8196563",
"0.81856173",
"0.81856173",
"0.8144348",
"0.8144238"... | 0.84941655 | 9 |
Test case for change_password Update the password for a user. | def GD_U(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3cX(YKHO):\n nPrm = {'old_password': YKHO.password, 'new_password1': 'pw', 'new_password2': 'pw'}\n geh0 = YKHO.auth_api.password_change(nPrm)\n YKHO.assertTrue(geh0.success)\n YKHO.logout()\n YKHO.password = 'pw'\n YKHO.assertTrue(YKHO.login())",
"def vfst():\n CBIr = mv1M('testuser', ... | [
"0.88292897",
"0.86147606",
"0.8533294",
"0.8482955",
"0.84453636",
"0.8360804",
"0.825355",
"0.82018167",
"0.8189456",
"0.8134866",
"0.8126919",
"0.81205463",
"0.81139505",
"0.81008846",
"0.8058151",
"0.80358636",
"0.803064",
"0.8029171",
"0.7992686",
"0.7941684",
"0.7933171... | 0.8795018 | 1 |
Test case for list_tokens Retrieves the list of access tokens for a user | def Eb0a(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXtR(YKHO) -> None:\n s2mk = YKHO.client.access_tokens_list()\n LAOT = ['expiry_time', 'token_prefix', 'description', 'max_age_seconds', 'extend_when_used', 'last_used_time', 'last_ip', 'last_user_agent']\n YKHO.print_response(s2mk, json=YKHO.args.json, table_layout=LAOT)",
"def AjWR(YKHO):\n ret... | [
"0.8331005",
"0.7668056",
"0.71252036",
"0.69566536",
"0.6897701",
"0.6829908",
"0.68067735",
"0.67998034",
"0.6737636",
"0.67356837",
"0.6691707",
"0.66914535",
"0.65546036",
"0.6517332",
"0.65036476",
"0.6491077",
"0.6487769",
"0.64588344",
"0.645423",
"0.6407806",
"0.63813... | 0.63158303 | 22 |
Builds Airbrake notice from the exception. | def kSt6(YKHO, XObx):
vTGh = dict(errors=YKHO._build_errors(XObx), context=YKHO._build_context(), params=dict(sys_executable=HwRy.executable, sys_path=HwRy.path))
return vTGh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _48o(YKHO, tTpl: BaseException) -> FdCF:\n tO9_ = FdCF()\n O34j.marshall(tO9_.delta.new_element.exception, tTpl)\n return tO9_",
"def LIX_(x0hE):\n try:\n print('*** Generating an error...')\n crFx = '/' + tBNI + '/' + mgrR.BUNDLES_PATH + '/' + 'bozo'\n x0hE.get_bundle(href=c... | [
"0.56263417",
"0.56090915",
"0.54243463",
"0.5420107",
"0.5408747",
"0.53259534",
"0.52678263",
"0.52446884",
"0.5202131",
"0.519985",
"0.51754725",
"0.5117561",
"0.51016206",
"0.5094698",
"0.50893027",
"0.5049205",
"0.5046674",
"0.5026943",
"0.50204164",
"0.49977934",
"0.499... | 0.604179 | 0 |
Checks if user is a the owner, or an admin of the board. Admin and owners are considered to be the same in this case. This is to get around the multiboard implementation, where each user has to have a current board set. If the person owns the board but is not the current user, set it as their default. | def jJ7x(CBIr, q9zX):
ZYUI = cQ68.objects.get(name=q9zX.slug).user_set.all()
if q9zX.created_by == CBIr:
CBIr.user_detail.company = q9zX
CBIr.user_detail.save()
elif not CBIr in ZYUI:
return 0
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjmL(CBIr, YEnM, Xguo=False):\n try:\n qsJ6 = getattr(YEnM, 'owner')\n S4wN = getattr(YEnM, 'authorized_editors')\n except AttributeError:\n return Xguo\n tJFz = []\n if S4wN is not None:\n tJFz = [UVzH.id for UVzH in S4wN.all()]\n if not qsJ6 and (not tJFz):\n ... | [
"0.6919693",
"0.67195016",
"0.66966826",
"0.664775",
"0.6607675",
"0.6607528",
"0.6513161",
"0.6436462",
"0.64302295",
"0.6389098",
"0.6280988",
"0.6279657",
"0.6246434",
"0.6162747",
"0.60039735",
"0.5997588",
"0.59810495",
"0.59470135",
"0.5922897",
"0.59196746",
"0.5912022... | 0.0 | -1 |
Fetch list of members for a board instance. Seperates and specifies admins for the board. | def DgAC(QePW, ympV):
q9zX = Iofl(s9HI, slug=ympV)
if not jJ7x(QePW.user, q9zX):
return G2TX()
qsJ6 = J0qS.objects.filter(company=q9zX, user=q9zX.created_by)
DgAC = J0qS.objects.filter(company=q9zX).exclude(user=qsJ6[0].user_id)
iOAQ = sP9u.objects.filter(company_id=q9zX.id)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmpy(YKHO, kBYg: str) -> dict:\n try:\n Aofo = YKHO.trello.boards.get_member(board_id=kBYg)\n except VrQA as httpe:\n print(f'[!] {EP2x.response.status_code}: Unable to get board members.')\n raise Kgqc\n else:\n return Aofo",
"def hfrA() -> laHg.List:\n iBIi = Ygs8()\... | [
"0.6861649",
"0.6754769",
"0.65342057",
"0.65283066",
"0.6482665",
"0.64396185",
"0.64388055",
"0.64105344",
"0.6403114",
"0.6369886",
"0.63687795",
"0.6367222",
"0.6360984",
"0.63234156",
"0.63165647",
"0.6309906",
"0.6287267",
"0.6286769",
"0.6276584",
"0.62725586",
"0.6259... | 0.0 | -1 |
List of all categories for a specific company instance. | def VJUP(QePW, ympV):
q9zX = Iofl(s9HI, slug=ympV)
if not jJ7x(QePW.user, q9zX):
return G2TX()
return _1tc(QePW, 'category_list.html', {'company': q9zX}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k7q7(YKHO):\n return YKHO._list_categories(entity=UqUV)",
"def rNmM():\n return qZuN.objects.all()",
"def N3tc(YKHO):\n geh0 = (yield YKHO._api_client.getRequest('site.json'))\n raise rtVo.Return(geh0['categories'])",
"def DKTQ(YKHO, LEXu=None):\n bD7m = YKHO.url.format(url='{type}/categor... | [
"0.75899976",
"0.7315626",
"0.7175255",
"0.7165064",
"0.7107461",
"0.70927286",
"0.70927286",
"0.70625305",
"0.69583184",
"0.68900776",
"0.6874516",
"0.6781227",
"0.67778164",
"0.67776746",
"0.6740401",
"0.6730132",
"0.6720798",
"0.6705003",
"0.6694433",
"0.6672502",
"0.66549... | 0.62461746 | 66 |
Time when the previous alert was created due to this policy. | def bZt2(YKHO):
return YKHO._creation_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZpyY(YKHO):\n return YKHO.time",
"def q5my(YKHO):\n return YKHO._original_time",
"def LV8w(YKHO):\n return YKHO._trigger_time",
"def kNWg(YKHO):\n return YKHO.__remaining_hold_time",
"def kNWg(YKHO):\n return YKHO.__remaining_hold_time",
"def OkYY(YKHO):\n return YKHO.end_date - rIA... | [
"0.6737758",
"0.64049804",
"0.6370124",
"0.6313619",
"0.6313619",
"0.6255299",
"0.61675864",
"0.6118284",
"0.6114686",
"0.61101806",
"0.61050624",
"0.60756487",
"0.60718966",
"0.6051075",
"0.60444367",
"0.6042296",
"0.60350007",
"0.6024805",
"0.60183275",
"0.60183275",
"0.600... | 0.0 | -1 |
Returns the bounds (xmin, xmax, ymin, ymax, zmin, zmax) of an object. This method assumes that no transformations are applied to the object. | def _GIH(YEnM):
BQGg, h3cg, Viww = tuple(YEnM.data.vertices[0].co)
bYzl, Z3uP, zXLc = (BQGg, h3cg, Viww)
for AU8u in YEnM.data.vertices:
WKvO, LVAh, epBp = tuple(AU8u.co)
if WKvO < BQGg:
BQGg = WKvO
elif WKvO > bYzl:
bYzl = WKvO
if LVAh < h3cg:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pt2S(YEnM):\n if YEnM is None:\n return (lNLu((-1, -1, -1)), lNLu((1, 1, 1)))\n Tp3V = list(YEnM.matrix_world @ lNLu(YEnM.bound_box[0]))\n VwW0 = list(Tp3V)\n for XP5J in YEnM.bound_box:\n XP5J = YEnM.matrix_world @ lNLu(XP5J)\n Tp3V[0] = min(Tp3V[0], XP5J[0])\n Tp3V[1] ... | [
"0.83266395",
"0.7784868",
"0.7663795",
"0.76179516",
"0.75866103",
"0.75060725",
"0.7441934",
"0.73830175",
"0.73348266",
"0.72781914",
"0.7227492",
"0.72013974",
"0.7167941",
"0.71625686",
"0.71524054",
"0.71278507",
"0.7104874",
"0.7101998",
"0.7094383",
"0.7094245",
"0.70... | 0.8581059 | 0 |
The value of the tag as a (list of) python object(s) | def BWXx(YKHO):
return YKHO._tag.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MxXn(YKHO):\n lGpU = []\n for ZfUD in YKHO.split:\n if zFwU.is_inst(ZfUD):\n lGpU.append(ZfUD.json())\n else:\n lGpU.append(str(ZfUD))\n return lGpU",
"def ivr0(YKHO, TZ9E, Rzhy=None):\n pass",
"def hkxX(YKHO) -> x1iM[ImMB]:\n bCES = YKHO._get()\n retur... | [
"0.73151106",
"0.7129496",
"0.6992768",
"0.6947195",
"0.6947195",
"0.67517024",
"0.6683162",
"0.6611727",
"0.65650475",
"0.6559838",
"0.65597165",
"0.6524654",
"0.6512193",
"0.65055716",
"0.65054387",
"0.64395696",
"0.641646",
"0.64009714",
"0.63957953",
"0.63957953",
"0.6395... | 0.63574725 | 25 |
The value of the tag as a (list of) string(s) | def JF3C(YKHO):
return YKHO._tag.raw_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcsq(YKHO) -> Kt_s.List[str]:\n return YKHO.Value.split(',')",
"def _2DM(YKHO, BWXx):\n vIwR = ','.join([YKHO.encode(ZfUD) for ZfUD in BWXx])\n return '[%s]' % vIwR",
"def UeXn(YKHO) -> laHg.List[str]:\n return HEOD.get(YKHO, 'stringListValue')",
"def UeXn(YKHO) -> laHg.List[str]:\n return... | [
"0.7078633",
"0.6984812",
"0.69807214",
"0.69807214",
"0.69759625",
"0.6966379",
"0.6912591",
"0.6856271",
"0.67290425",
"0.672161",
"0.6663696",
"0.6592514",
"0.65870386",
"0.653602",
"0.653602",
"0.6527182",
"0.6491224",
"0.64016664",
"0.64016664",
"0.63983595",
"0.63958603... | 0.596644 | 86 |
Arn of the grant. | def jvwR(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'grant_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.6772925",
"0.66936034",
"0.65681916",
"0.65445954",
"0.65445954",... | 0.798378 | 0 |
License Arn for the grant. | def Y90Z(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'license_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def license(YKHO) -> str:\n return YKHO._license",
"def license(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'license')",
"def license():\n return print(e5kH.license)",
"def license(YKHO) -> qe4Y.Output[str]:\n return qe4Y.... | [
"0.72414064",
"0.6974321",
"0.6931438",
"0.692445",
"0.6886751",
"0.6844855",
"0.68142986",
"0.679637",
"0.6772515",
"0.675684",
"0.6676508",
"0.66736275",
"0.6671902",
"0.66567004",
"0.66564107",
"0.66544867",
"0.66544867",
"0.66506696",
"0.66018724",
"0.6570499",
"0.6560584... | 0.73288417 | 0 |
Test plans and plans_item_controller index method failure. | def hDnz(YKHO, Sdbo):
Sdbo.method = 'PUT'
YKHO.plans_controller.index()
YKHO.validate_test('The PUT method is not allowed' in zm4o.response)
Sdbo.method = 'POST'
YKHO.plans_item_controller.index()
YKHO.validate_test('The POST method is not allowed' in zm4o.response) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4fZ(YKHO):\n YKHO.plans_controller.index_options()\n YKHO.validate_test(bJnU.response.status == 204)\n YKHO.plans_item_controller.index_options()\n YKHO.validate_test(bJnU.response.status == 204)",
"def TLuV(YKHO, k0ZY):\n t3vy = ['group1', 'group2', 'group3']\n k0ZY.return_value = t3vy\n ... | [
"0.77200276",
"0.7294408",
"0.7031207",
"0.691719",
"0.6838174",
"0.6674026",
"0.6628703",
"0.6604483",
"0.6564841",
"0.65483606",
"0.65313464",
"0.6523187",
"0.6425234",
"0.6419471",
"0.6418207",
"0.6404829",
"0.6393868",
"0.6372084",
"0.63501155",
"0.6337689",
"0.63329786",... | 0.7304599 | 1 |
Test index_get method for plans and plans_item_controller. | def TLuV(YKHO, k0ZY):
t3vy = ['group1', 'group2', 'group3']
k0ZY.return_value = t3vy
geh0 = YKHO.plans_controller.index_get()
YKHO.validate_test(len(geh0) == 1)
YKHO.validate_test(len(geh0['plans']) == len(t3vy))
YKHO.validate_test(t3vy == geh0['plans'])
geh0 = YKHO.plans_item_controller.ind... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDnz(YKHO, Sdbo):\n Sdbo.method = 'PUT'\n YKHO.plans_controller.index()\n YKHO.validate_test('The PUT method is not allowed' in zm4o.response)\n Sdbo.method = 'POST'\n YKHO.plans_item_controller.index()\n YKHO.validate_test('The POST method is not allowed' in zm4o.response)",
"def o4fZ(YKHO... | [
"0.75526184",
"0.7365288",
"0.70997494",
"0.69984514",
"0.6977492",
"0.6878404",
"0.68590426",
"0.6837672",
"0.6824662",
"0.6814101",
"0.6784033",
"0.67342603",
"0.6723417",
"0.670446",
"0.668333",
"0.6672857",
"0.66551983",
"0.6634835",
"0.6618329",
"0.6607383",
"0.6604877",... | 0.7954887 | 0 |
Doing the cgmm_mvdr algorithm | def Yimi(D8Si, LWY6, NqYl):
s9L3 = a5bU()
s9L3.start('all')
s9L3.start('init')
PSwg = PEsK.complexGMM_mvdr(qoIa, t1Xc, nBBN, SiCl, QuYb)
OZMS, bGrB = gnPz.get_3dim_spectrum_from_data(D8Si, PSwg.fft_length, PSwg.fft_shift, PSwg.fft_length)
QXz3, STaf, xbqf = oyIN.shape(OZMS)
SQY5 = oyIN.zeros... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oREw(z3rX, Htse, r8hN):\n Ylbp = []\n We7B = 0\n for YRbF in range(len(Htse)):\n for r845 in range(YRbF + 1, len(Htse)):\n Ylbp.append(r8hN[YRbF, r845] * z3rX[We7B][0] + r8hN[r845, YRbF] * z3rX[We7B][1])\n We7B += 1\n return Ylbp",
"def Rexw(xXQH, Cba7):\n dIOD = g... | [
"0.6169133",
"0.60984015",
"0.60804385",
"0.60270584",
"0.59694654",
"0.5894202",
"0.584513",
"0.5840104",
"0.58056706",
"0.5799354",
"0.579165",
"0.57591194",
"0.57591194",
"0.5746166",
"0.570657",
"0.56962115",
"0.5672974",
"0.5665956",
"0.56399465",
"0.5622078",
"0.5599611... | 0.70729446 | 0 |
return all of a user's trades for a given ticker | def mLwc(YKHO, SYlA):
return N1k1.select_many_where('WHERE accounts_pk = ? AND ticker = ?', (YKHO.pk, SYlA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u0ep(YKHO, SYlA):\n qJWj = 'WHERE account_pk = %s AND ticker = %s'\n hkxX = (YKHO.pk, SYlA.upper())\n return N1k1.select_many(qJWj, hkxX)",
"def CPog(YKHO, ZPcb):\n return YKHO._private_call()",
"def Yq8x(YKHO, o61b: str):\n try:\n return YKHO.exchange.fetch_my_trades(symbol=o61b)\n ... | [
"0.79117554",
"0.6945967",
"0.681667",
"0.6719264",
"0.6634404",
"0.65973276",
"0.6541829",
"0.6523418",
"0.65130967",
"0.64846987",
"0.64439994",
"0.6431601",
"0.6431601",
"0.6430669",
"0.6411351",
"0.6401965",
"0.6373111",
"0.6361128",
"0.6356704",
"0.62498444",
"0.623531",... | 0.813129 | 0 |
Test case for datacenters_volumes_labels_get | def oLFR(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UxLz(YKHO):\n pass",
"def YIh5(YKHO):\n pass",
"def wC65(YKHO):\n pass",
"def AOhR(YKHO):\n pass",
"def O9Lr(YKHO):\n pass",
"def iJS5(YKHO):\n pass",
"def d1wU(YKHO):\n pass",
"def YP6S(YKHO):\n pass",
"def BMZv(YKHO):\n pass",
"def zrJr(YKHO):\n pass",
"def E... | [
"0.8753957",
"0.8276496",
"0.8174927",
"0.8132526",
"0.80805516",
"0.76756674",
"0.7602182",
"0.7577392",
"0.7359837",
"0.7343425",
"0.7337949",
"0.7250063",
"0.70507437",
"0.6832592",
"0.67472607",
"0.67281824",
"0.6723112",
"0.6685398",
"0.667467",
"0.6656031",
"0.66493267"... | 0.9583344 | 0 |
Test case for snapshots_labels_put | def oQ9Y(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MELx(YKHO):\n pass",
"def pe3l(YKHO):\n pass",
"def O9Lr(YKHO):\n pass",
"def L5Wt(YKHO):\n pass",
"def EbJg(YKHO):\n pass",
"def oLDm(YKHO):\n pass",
"def NE46(YKHO):\n pass",
"def yp8p(YKHO):\n pass",
"def Ryg5(YKHO):\n pass",
"def G4Gi(YKHO):\n pass",
"def N... | [
"0.82790107",
"0.7852336",
"0.7349664",
"0.7325929",
"0.72956634",
"0.7277633",
"0.7051221",
"0.70194376",
"0.7004686",
"0.6999442",
"0.6817609",
"0.67368096",
"0.66928226",
"0.64641684",
"0.6443056",
"0.641481",
"0.6350185",
"0.6310024",
"0.6175862",
"0.6115068",
"0.61119294... | 0.93580407 | 0 |
Strategy that finds the final value for the boxes with multiple possibilities that are the only ones within a given unit that can have that value | def rIvV(hkxX):
BHGE = '123456789'
for PXGI in G5Up:
for Ko6S in BHGE:
Yeey = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]]
if len(Yeey) == 1:
hkxX = zUz_(hkxX, Yeey[0], Ko6S)
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIvV(hkxX):\n for PXGI in y7cn:\n for Ko6S in '123456789':\n S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]]\n if len(S5Zo) == 1:\n hkxX = zUz_(hkxX, S5Zo[0], Ko6S)\n return hkxX",
"def rIvV(hkxX):\n for PXGI in dzni:\n for Ko6S in '123456789':... | [
"0.695976",
"0.68867767",
"0.67922074",
"0.67379576",
"0.6732697",
"0.6721261",
"0.66792935",
"0.6621568",
"0.66176605",
"0.661477",
"0.6606107",
"0.6468485",
"0.6458457",
"0.6447448",
"0.64001423",
"0.63895506",
"0.63597065",
"0.63522124",
"0.635052",
"0.63398576",
"0.633839... | 0.63748914 | 16 |
Eliminate the naked_twins from the values dictionary | def hEUi(hkxX, kk3A):
for K4sN in kk3A:
if len(hkxX[K4sN[0]]) == 2 and len(hkxX[K4sN[1]]) == 2:
for jYLz in K4sN[2]:
if jYLz != K4sN[0] and jYLz != K4sN[1]:
hkxX[jYLz] = hkxX[jYLz].replace(hkxX[K4sN[0]][0], '')
hkxX[jYLz] = hkxX[jYLz].repla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WqoA(hkxX):\n qAoR = []\n G1Hx = []\n Oa1e = hkxX.keys()\n XP5J = hkxX.values()\n r845 = len(hkxX)\n for YRbF in Oa1e:\n if len(hkxX[YRbF]) == 2:\n qAoR.append(YRbF)\n else:\n qAoR = qAoR\n for YRbF in qAoR:\n Csk6 = rYO3[YRbF]\n for tTpl i... | [
"0.7641458",
"0.7479508",
"0.7340726",
"0.72557396",
"0.71857595",
"0.71716285",
"0.7163278",
"0.71192604",
"0.7114141",
"0.71083224",
"0.7086423",
"0.70843023",
"0.706266",
"0.70454973",
"0.7038541",
"0.6988231",
"0.69844705",
"0.6983638",
"0.6977353",
"0.693304",
"0.6926528... | 0.73592263 | 2 |
compute the area of a triangle whose side lengths are the 3 input | def bzL8(YKHO, WKvO, LVAh, epBp):
XP5J = (WKvO + LVAh + epBp) / 2
return epAf.sqrt(XP5J * (XP5J - WKvO) * (XP5J - LVAh) * (XP5J - epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DGwt(zPAF, BsXG, t_of):\n KCHu = (zPAF + BsXG + t_of) / 2.0\n return epAf.sqrt(KCHu * (KCHu - zPAF) * (KCHu - BsXG) * (KCHu - t_of))",
"def cGOR(q1iG):\n return q1iG ** 2 * (epAf.sqrt(3) / 4)",
"def a1HB(hQHm, jlSq, bUZ8):\n jzdc = jlSq[0] - hQHm[0]\n Fg_i = bUZ8[0] - hQHm[0]\n Z9rn = jlS... | [
"0.84363025",
"0.8282368",
"0.8230204",
"0.8148716",
"0.8087828",
"0.8085217",
"0.8034067",
"0.80181116",
"0.7976661",
"0.7976661",
"0.77997804",
"0.7769406",
"0.77479124",
"0.7742856",
"0.7671399",
"0.7671399",
"0.76539177",
"0.7648677",
"0.7610324",
"0.7583693",
"0.7583693"... | 0.7040379 | 46 |
Load a PIL image and return it as a numpy array. For grayscale images, the return array is MxN. For RGB images, the return value is MxNx3. For RGBA images the return value is MxNx4 | def m3G8(UY5s):
def cxGG(Xn71, yDqo=oyIN.uint8):
"""Return a 1D array of dtype."""
if hasattr(Xn71, 'tobytes'):
auXY = Xn71.tobytes('raw', Xn71.mode)
else:
auXY = Xn71.tostring('raw', Xn71.mode)
WKvO = oyIN.fromstring(auXY, yDqo)
return WKvO
if UY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZ0a(Ux0P):\n VXjJ = hnIv.open(Ux0P)\n VXjJ.load()\n ezWE = oyIN.asarray(VXjJ, dtype=oyIN.uint8)\n return ezWE",
"def cE34(Ux0P):\n Xn71 = hnIv.open(Ux0P)\n eHh0 = \"imread only supports 'RGB' and 'L' modes, found '{}'\".format(Xn71.mode)\n assert Xn71.mode == 'RGB' or Xn71.mode == 'L', ... | [
"0.7758528",
"0.7754569",
"0.77005786",
"0.7693342",
"0.7693342",
"0.76810014",
"0.76513505",
"0.76305115",
"0.7627642",
"0.76208776",
"0.7605928",
"0.76058275",
"0.7562633",
"0.75525266",
"0.7546164",
"0.750949",
"0.7487684",
"0.746454",
"0.7461246",
"0.74310845",
"0.7405551... | 0.7564366 | 12 |
Return a 1D array of dtype. | def cxGG(Xn71, yDqo=oyIN.uint8):
if hasattr(Xn71, 'tobytes'):
auXY = Xn71.tobytes('raw', Xn71.mode)
else:
auXY = Xn71.tostring('raw', Xn71.mode)
WKvO = oyIN.fromstring(auXY, yDqo)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uzII(YKHO, *yDqo):\n qw7D = YKHO.array\n if not yDqo:\n return qw7D\n else:\n return qw7D.astype(yDqo[0], copy=False)",
"def uzII(YKHO, yDqo=None):\n ezWE = YKHO[:]\n if yDqo is not None:\n return ezWE.astype(yDqo)\n return ezWE",
"def l8LG(WKvO, yDqo=NUwF):\n retu... | [
"0.72131467",
"0.6858833",
"0.68106526",
"0.68080205",
"0.67595637",
"0.6694113",
"0.66599476",
"0.6652135",
"0.6644725",
"0.6521156",
"0.6440822",
"0.64368784",
"0.64368784",
"0.6401255",
"0.63900214",
"0.63685244",
"0.6360757",
"0.632834",
"0.62896484",
"0.6286914",
"0.6284... | 0.0 | -1 |
Given lat in degrees, return k0 | def kpuZ(QnmL):
HrCj = 0.0818191908426215
QnmL = oyIN.deg2rad(70)
HJ5k = oyIN.sqrt(oyIN.power(1.0 + HrCj, 1.0 + HrCj) * oyIN.power(1.0 - HrCj, 1.0 - HrCj))
a39M = (1.0 + oyIN.sin(QnmL)) / 2.0
ko7x = HJ5k / oyIN.sqrt(oyIN.power(1.0 + HrCj * oyIN.sin(QnmL), 1.0 + HrCj) * oyIN.power(1.0 - HrCj * oyIN.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JcnJ(rApN, pZud, e6zU):\n U7YL = oyIN.cos(e6zU * oyIN.pi / 180.0)\n fsgT = pZud * U7YL\n cEY3 = e6zU\n nf9E = rApN['kvf']\n WKvO = rApN['lon'][nf9E] * U7YL\n LVAh = rApN['lat'][nf9E]\n sqZK = (WKvO[1, :] - WKvO[0, :]) * (LVAh[2, :] - LVAh[0, :]) - (WKvO[2, :] - WKvO[0, :]) * (LVAh[1, :] - ... | [
"0.6690632",
"0.65819293",
"0.6479933",
"0.6420714",
"0.6386825",
"0.6376933",
"0.6327517",
"0.63274056",
"0.6320859",
"0.629401",
"0.62804997",
"0.6274259",
"0.6274119",
"0.6273895",
"0.6268674",
"0.6214069",
"0.61858785",
"0.6163273",
"0.61544615",
"0.61544615",
"0.61274654... | 0.87100846 | 0 |
This method returns all the control rules that apply to an actuator. A specific control rule only changes the state of one actuator | def O1Ye(YKHO, O4Zd):
hhbQ = []
for z5su in YKHO.plc_dict['Controls']:
if z5su['actuator_tag'].upper() == O4Zd.upper():
hhbQ.append(z5su)
return hhbQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mlup() -> a1PO.List[uPpz]:\n return uPpz.get_all()",
"def BX8i(YKHO):\n return YKHO.rules",
"def c_NS(YKHO):\n return YKHO.__rules",
"def BX8i(YKHO) -> x1iM[c4EF]:\n return YKHO.__rules",
"def c_NS(YKHO):\n return list(YKHO._rules)",
"def c_NS(YKHO):\n return YKHO._rules",
"def c_... | [
"0.6716654",
"0.6609839",
"0.6486899",
"0.64847344",
"0.64804536",
"0.6431752",
"0.6431752",
"0.6431752",
"0.64272517",
"0.6383301",
"0.6379539",
"0.6224158",
"0.6187887",
"0.61807287",
"0.61765736",
"0.6174449",
"0.6171219",
"0.61662865",
"0.6163474",
"0.6162116",
"0.6157596... | 0.7719505 | 0 |
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters. | def e7pw(YKHO):
return 'ESIPPS' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.82728356",
"0.82728356",
"0.79780805",
"0.79780805",
"0.7824303",
"0.76892626",
"0.76085204",
"0.76085204",
"0.76085204",
"0.76085204",
"0.76085204",
"0.76085204",
"0.75810254",
"0.75416493",
"0.751891",
"0.7507472",
"0.7503285",
"0.7503285",
"0.74843323",
"0.7327644",
"0.... | 0.0 | -1 |
Get dataset date as string in specified format. If no format is supplied, an ISO 8601 string is returned. | def B5eb(YKHO, x8us=None):
W1ym = YKHO.get_dataset_date_as_datetime()
if W1ym:
if x8us:
return W1ym.strftime(x8us)
else:
return W1ym.date().isoformat()
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvEs(_c1T):\n return _c1T.isoformat()",
"def JvEs(YKHO):\n if isinstance(YKHO.date, qcWV.datetime):\n AtJq = YKHO.date.replace(tzinfo=None)\n return AtJq.strftime('%Y-%m-%d')\n return YKHO.date",
"def JvEs(Csk6=None):\n if Csk6 is None:\n Csk6 = qcWV.utcnow()\n return Cs... | [
"0.7283436",
"0.70328265",
"0.6991302",
"0.6984562",
"0.693507",
"0.6906985",
"0.68931836",
"0.6890056",
"0.6831579",
"0.681933",
"0.6787639",
"0.6767945",
"0.67578137",
"0.6750025",
"0.6730601",
"0.6714296",
"0.66832215",
"0.66832215",
"0.66731346",
"0.6658206",
"0.66575843"... | 0.75423473 | 0 |
Return the dataset's location | def hbd3(YKHO):
TBEy = YKHO.data.get('groups', None)
if not TBEy:
return list()
return [_JMH.get_country_name_from_iso3(WKvO['name']) for WKvO in TBEy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl0D(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'data_location')",
"def c1ta(YKHO):\n return YKHO._dataset_path",
"def c1ta(YKHO) -> str:\n pass",
"def KHwQ(YKHO):\n if YKHO.smell is not None:\n sWmO = Hy7s.getcwd()\n uRP3 = YKHO.smell.getDatasetFileName()\n return Hy7s.... | [
"0.7975054",
"0.73854625",
"0.71635026",
"0.7141889",
"0.71100354",
"0.6897629",
"0.68171847",
"0.6787427",
"0.67653733",
"0.67581886",
"0.67581886",
"0.67474675",
"0.6746948",
"0.67386097",
"0.672036",
"0.6709176",
"0.67078996",
"0.67073953",
"0.66784847",
"0.66784847",
"0.6... | 0.0 | -1 |
Clicks the folder name link given in ``folder_name`` argument. | def mAnD(YKHO, YMBJ):
c1fK = (Q71O.XPATH, "//a[text()='" + YMBJ + "']")
YKHO._wait.until(V3xq.element_to_be_clickable(c1fK))
g09r(YKHO._driver, YKHO._driver.find_element(*c1fK))
YKHO._wait.until(V3xq.visibility_of_element_located(YKHO._file_list)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HOVb(YKHO, YMBJ):\n U6D_ = \"//div[@class='Folder']\"\n if YKHO.check_element_presence(sJYp.XPath, U6D_, RBcy.ELEMENT_PRESENCE_TIMEOUT.value):\n ylrM = YKHO.driver.find_elements_by_xpath(U6D_)\n for wisI in ylrM:\n ZMDl = wisI.find_element_by_xpath(\".//div[@class='Folder__name']... | [
"0.8092116",
"0.7392242",
"0.7346866",
"0.66484594",
"0.65473294",
"0.62191075",
"0.6116168",
"0.60128194",
"0.5988637",
"0.5984488",
"0.594804",
"0.5876516",
"0.5872317",
"0.5857165",
"0.5856607",
"0.58417976",
"0.5786072",
"0.5765631",
"0.5765419",
"0.57618785",
"0.57292753... | 0.8318534 | 0 |
Add raster 1 and raster2. Add raster1 and raster2, allowing nodata values in the rasters to propagate to the result or treating nodata as zero. | def _F2l(V7QI, eYDD, NWeG, Xc2n, lQDD, DazG, UXMl=False):
def dzh4(V7QI, NWeG):
"""Add raster1 and raster2 without removing nodata values."""
BmEm = ~XTiz.isclose(V7QI, eYDD) & ~XTiz.isclose(NWeG, Xc2n)
Aofo = XTiz.empty(V7QI.shape, dtype=XTiz.float32)
Aofo[:] = DazG
Aofo[Bm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzh4(V7QI, NWeG):\n BmEm = ~XTiz.isclose(V7QI, eYDD) & ~XTiz.isclose(NWeG, Xc2n)\n Aofo = XTiz.empty(V7QI.shape, dtype=XTiz.float32)\n Aofo[:] = DazG\n Aofo[BmEm] = V7QI[BmEm] + NWeG[BmEm]\n return Aofo",
"def SaB9(V7QI, NWeG):\n XTiz.place(V7QI, XTiz.isclose(V7QI, eYDD), [0])\n XTiz.pla... | [
"0.7560034",
"0.71866703",
"0.64545274",
"0.6215401",
"0.61425805",
"0.60775024",
"0.5985736",
"0.5954034",
"0.58797616",
"0.5844112",
"0.5839261",
"0.58126736",
"0.5811693",
"0.58067423",
"0.57751673",
"0.5769144",
"0.5764928",
"0.5757954",
"0.5757954",
"0.5749408",
"0.57283... | 0.7134858 | 2 |
Calculate latitude at the center of each pixel in a template raster. | def mEtO(y5L9, L_Uu):
mD0r.new_raster_from_base(y5L9, L_Uu, MDcw.GDT_Float32, [mwqg])
EqpX = MDcw.OpenEx(L_Uu, MDcw.OF_RASTER | MDcw.GA_Update)
O79T = EqpX.GetRasterBand(1)
RqoC = mD0r.get_raster_info(y5L9)
aopH = RqoC['geotransform']
for y9gw, Wlow in mD0r.iterblocks((y5L9, 1)):
pTzg = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO) -> float:\n return YKHO._tile.latitude",
"def jHjJ(YKHO):\n LD1b = 90.0 - VEDo.arccos(YKHO.zeros) * 180.0 / VEDo.pi\n return LD1b",
"def jHjJ(YKHO):\n LD1b = 90.0 - VEDo.arccos(YKHO.zeros) * 180.0 / VEDo.pi\n return LD1b",
"def HaYm(YKHO):\n jzdc, Fg_i, Z9rn = [CkYf(iArr) for... | [
"0.6417386",
"0.63126063",
"0.63126063",
"0.6255054",
"0.623528",
"0.623528",
"0.62157243",
"0.6143647",
"0.61102486",
"0.6100299",
"0.6082255",
"0.6078079",
"0.6076866",
"0.6071659",
"0.60489404",
"0.60457045",
"0.6015911",
"0.5995499",
"0.5982764",
"0.5918819",
"0.59140617"... | 0.82403827 | 0 |
Calculate average temperature from maximum and minimum temp. | def PH26(TWl1, eCok):
BmEm = ~XTiz.isclose(TWl1, jwiy) & ~XTiz.isclose(eCok, mmvD)
Z2Nq = XTiz.empty(TWl1.shape, dtype=XTiz.float32)
Z2Nq[:] = mwqg
Z2Nq[BmEm] = (TWl1[BmEm] + eCok[BmEm]) / 2.0
return Z2Nq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fftA(wAb4):\n s8eg = min(wAb4)\n lV6D = max(wAb4)\n d5Ot = round(JBMS(wAb4), 1)\n return (s8eg, lV6D, d5Ot)",
"def Cqgv(YKHO):\n ycBG = YKHO.channel.average\n return nPrm(YKHO.id, YKHO.code, 'average temperature', ycBG)",
"def zI4g(YKHO):\n JEB8 = 0\n ewCu = 0\n while ewCu < YKHO... | [
"0.77198625",
"0.74422383",
"0.71742725",
"0.70802456",
"0.70767325",
"0.7071683",
"0.70343024",
"0.702168",
"0.6861315",
"0.6804258",
"0.66818637",
"0.6557651",
"0.65492195",
"0.6435234",
"0.63785934",
"0.6369618",
"0.6336294",
"0.63217306",
"0.63178873",
"0.6309706",
"0.629... | 0.8344551 | 0 |
Calculate total flow of C out of a surface pool. The total potential flow of C out of a surface pool is calculated according to the decomposition factor and soil pH. The actual flow is limited by the availability of N and P. N and P may be supplied by the mineral source, or by the element (N or P) in the decomposing st... | def BXIU(jI04, cW8L, JJqs, oHcO, f7kG, _4gZ, t_sX, ytmB, TNkd, W6La):
BmEm = ~XTiz.isclose(jI04, eAus) & ~XTiz.isclose(cW8L, eAus) & ~XTiz.isclose(JJqs, eAus) & ~XTiz.isclose(oHcO, eAus) & ~XTiz.isclose(f7kG, eAus) & (_4gZ != qUko) & (t_sX != qUko) & (ytmB != qUko) & (TNkd != mwqg) & (W6La != qUko)
YS9_ = XTiz.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Z5r(YKHO):\n if YKHO.subCool:\n try:\n JRYC = YKHO.subCool.port.GetValue()\n if JRYC != None and JRYC > 0.0:\n for JmFt in YKHO.vapDraws.values() + YKHO.vapClones.values():\n JmFt.port.SetPropValue(Il4Z, 0.0, dYqB)\n except:\n ... | [
"0.6069227",
"0.5621845",
"0.5610246",
"0.5547559",
"0.5432606",
"0.5382688",
"0.53252006",
"0.5231398",
"0.52252036",
"0.5219899",
"0.5214494",
"0.5208729",
"0.5199398",
"0.5197724",
"0.5153898",
"0.514038",
"0.51396644",
"0.51269364",
"0.5089374",
"0.50767094",
"0.50598884"... | 0.0 | -1 |
Calculate the change in N or P in metabolic material in layer lyr. | def O1tQ(dxAp, j91j, FYIy, hL9J):
BmEm = (dxAp != qUko) & (j91j != qUko) & (FYIy != qUko) & (hL9J != qUko)
pA38 = XTiz.empty(dxAp.shape, dtype=XTiz.float32)
pA38[:] = qUko
pA38[BmEm] = j91j[BmEm] + FYIy[BmEm] - hL9J[BmEm]
return pA38 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zEz0(YKHO, veAa):\n return 0.35 * veAa + 0.42",
"def MROb(YKHO, XP5J, eJTR='lower'):\n jzdc = YKHO.q(XP5J, eJTR)\n jQ3Z = YKHO.density_df\n N77f = jQ3Z.loss\n TK2h = []\n wjRY = 0\n for vC9B in YKHO.line_names:\n vexM = YKHO.density_df.loss.iloc[oyIN.searchsorted(YKHO.density_df[f... | [
"0.60717267",
"0.5981033",
"0.5951189",
"0.5920455",
"0.5858281",
"0.5783237",
"0.57732326",
"0.5770107",
"0.5769997",
"0.5766936",
"0.5718356",
"0.5717822",
"0.57127815",
"0.5700768",
"0.5689228",
"0.56649137",
"0.56519437",
"0.5651263",
"0.5649115",
"0.56060135",
"0.5604265... | 0.0 | -1 |
Calculate average temperature from maximum and minimum temp. | def PH26(TWl1, eCok):
BmEm = ~XTiz.isclose(TWl1, jwiy) & ~XTiz.isclose(eCok, mmvD)
Z2Nq = XTiz.empty(TWl1.shape, dtype=XTiz.float32)
Z2Nq[:] = mwqg
Z2Nq[BmEm] = (TWl1[BmEm] + eCok[BmEm]) / 2.0
return Z2Nq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fftA(wAb4):\n s8eg = min(wAb4)\n lV6D = max(wAb4)\n d5Ot = round(JBMS(wAb4), 1)\n return (s8eg, lV6D, d5Ot)",
"def Cqgv(YKHO):\n ycBG = YKHO.channel.average\n return nPrm(YKHO.id, YKHO.code, 'average temperature', ycBG)",
"def zI4g(YKHO):\n JEB8 = 0\n ewCu = 0\n while ewCu < YKHO... | [
"0.7721038",
"0.74426574",
"0.7174686",
"0.7080087",
"0.70768267",
"0.7072169",
"0.70342207",
"0.70222336",
"0.68614495",
"0.6804903",
"0.6680885",
"0.65572935",
"0.6548416",
"0.64347494",
"0.6377071",
"0.63691413",
"0.6337101",
"0.6322351",
"0.63191366",
"0.63100195",
"0.629... | 0.83456606 | 1 |
Calculate shoot death due to water stress and shading. In months where senescence is not scheduled to occur, some shoot death may still occur due to water stress and shading. | def fgal(p04T, r2cw, CXbg, t6b1, nQB1):
BmEm = ~XTiz.isclose(p04T, eAus) & (r2cw != qUko) & (CXbg != mwqg) & (t6b1 != mwqg) & (nQB1 != mwqg)
vc9t = XTiz.empty(p04T.shape, dtype=XTiz.float32)
vc9t[:] = qUko
vc9t[BmEm] = CXbg[BmEm] * (1.0 - r2cw[BmEm])
MKev = (p04T > nQB1) & BmEm
vc9t[MKev] = vc9t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xb49(YKHO):\n YKHO._compute_death()\n if YKHO.sugar <= 0:\n YKHO.t_die = YKHO.calendar.now()\n if YKHO.die_event != None:\n YKHO.die_event = YKHO.calendar.resched(YKHO.die_event, YKHO.t_die)\n else:\n YKHO.die_event = YKHO.calendar.add(QRWf(YKHO.t_die, QRWf.DIE, YKHO, YKHO.die)... | [
"0.6462474",
"0.60006",
"0.57163364",
"0.5708546",
"0.56870615",
"0.5680422",
"0.5630808",
"0.561083",
"0.5598333",
"0.55948395",
"0.55595374",
"0.5533806",
"0.5522503",
"0.5511581",
"0.5502101",
"0.5484855",
"0.5478685",
"0.5472133",
"0.5468944",
"0.5454943",
"0.5436235",
... | 0.0 | -1 |
Calculate rumen degradable protein intake from the diet. Rumen degradable protein intake from the diet is calculated from total crude protein intake. If the diet is low in dry matter digestibility, the degradable protein in the diet is less than the intake of crude protein. | def dB96(PxPc, odiI):
BmEm = (PxPc != qUko) & (odiI != qUko)
CKcl = XTiz.empty(PxPc.shape, dtype=XTiz.float32)
CKcl[:] = qUko
CKcl[BmEm] = PxPc[BmEm] * XTiz.minimum(0.84 * odiI[BmEm] + 0.33, 1.0)
return CKcl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bCpz(Z1Ky, tji_, Nt1O, bAsP, CKcl, HzrZ, FVQr, iydq, dg7y, aXPi, ZJe_, Nk6w, ik4P, RtAj, fBqO, MHVi, KqhU, IpQH, SEh8, dzcy, xjcp, rD_Q, p0G1, g9kA, FPxw, NqMB, SIgl, KCg9, ZyGZ, Qt2M, VXo0, FHhZ, O5hO, fLYW, GtT8, FZ1y, rWyG, VdoI, mMsD, ctkN, ycZo, OKwc, y2bJ, Ab4m, sUth, s6RO, oMZq):\n BmEm = (Z1Ky != qU... | [
"0.6444076",
"0.5947905",
"0.5846171",
"0.582694",
"0.5796457",
"0.56678253",
"0.55682856",
"0.54580986",
"0.5428889",
"0.5372243",
"0.5349619",
"0.53085274",
"0.5304601",
"0.5294028",
"0.5193048",
"0.51906985",
"0.51823425",
"0.5143351",
"0.512734",
"0.5119183",
"0.51146",
... | 0.68582904 | 0 |
Calculate daily intake of this feed type by an individual animal. Intake of one feed type by one animal is calculated from the animal's maximum potential intake, the relative availability of the feed type, and the relative ingestibility of the feed type. With greater proportion of legume in the pasture, intake is incre... | def pByZ(BFYp, f3Fs, DzSV, PHeq, mulh, gUP9):
BmEm = ~XTiz.isclose(BFYp, vABM) & (f3Fs != mwqg) & (DzSV != qUko) & (PHeq != qUko) & (mulh != qUko) & (gUP9 != mwqg)
EWyE = XTiz.empty(BFYp.shape, dtype=XTiz.float32)
EWyE[:] = qUko
EWyE[BmEm] = f3Fs[BmEm] * DzSV[BmEm] * PHeq[BmEm] * (1.0 + gUP9[BmEm] * mul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oVQD(nSDi, tm_P, zdD8, _71q, I_RZ, E5lf, Jns1):\n\n def Qaf6(JJqs, HoHT, GE1m, iA3A):\n \"\"\"Calculate daily intake by one animal from fraction C removed.\n\n Convert the total fraction of C in one feed type removed by grazing to\n daily intake of that feed type by an individual animal... | [
"0.69185483",
"0.5838303",
"0.57244325",
"0.570568",
"0.56368214",
"0.5355158",
"0.5310246",
"0.5286021",
"0.51592094",
"0.51474005",
"0.50409776",
"0.50338984",
"0.5011949",
"0.49642324",
"0.4947863",
"0.4915613",
"0.4907847",
"0.48565194",
"0.48501825",
"0.4832274",
"0.4823... | 0.62093776 | 1 |
Get pixel area in ha from dataset in geographic coordinates. Calculate the approximate area in hectares of pixels in `raster_path`, assuming that one degree of latitude equals 111139 meters. Use the average latitude over the bounding box of `raster_path` to estimate the horizontal pixel length. | def Tmg5(suM_):
zyqw = mD0r.get_raster_info(suM_)
C1GJ = zyqw['bounding_box']
M5nU = (C1GJ[1] + C1GJ[3]) / 2.0
GlOT = abs(zyqw['pixel_size'][1]) * 111139.0
Ex11 = abs(zyqw['pixel_size'][0]) * XTiz.cos(XTiz.radians(M5nU)) * 111139.0
Fc37 = GlOT * Ex11 / 10000.0
return Fc37 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yd8O(ZHfW, kJxu):\n ZHfW[ZHfW >= 1] = 1\n KnTS = oyIN.sum(ZHfW)\n return KnTS * kJxu[0] * kJxu[1]",
"def i4J4(__n6: xr.Dataset) -> oyIN.ndarray:\n Jw7X, eUWA = JqXn(__n6)\n f0tD = Jw7X * eUWA\n return f0tD",
"def sAdl(AU8u, H2v2, TVTK, QSee='WGS 1984'):\n QnmL = AU8u.Y\n FDPT = AU8u... | [
"0.6475346",
"0.62451637",
"0.6146458",
"0.59700894",
"0.5965559",
"0.5800576",
"0.57629114",
"0.5760204",
"0.5757982",
"0.5736452",
"0.5731182",
"0.56869215",
"0.5591626",
"0.5540635",
"0.553206",
"0.55320126",
"0.55320126",
"0.55320126",
"0.55213714",
"0.5508588",
"0.549554... | 0.8784445 | 0 |
Get an instance of onefs.Client that points to Riptide. | def D_8M(yRgX):
if T0I1.ONEFS_RELEASES['8.0.0.0'] <= yRgX.revision() < T0I1.ONEFS_RELEASES['8.0.1.0']:
return yRgX
trZe.skip('The OneFS cluster is not running Riptide.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0hE():\n return i9zE()",
"def u1MJ():\n na1r.debug('Creating a new OneViewClient instance.')\n return F0Kd(W92f)",
"def x0hE():\n x0hE = i9zE()\n return x0hE",
"def q3XR():\n return JucT()",
"def x0hE(YKHO):\n return i9zE.clone(YKHO)",
"def x0hE(YKHO):\n if YKHO._args.host is... | [
"0.6582907",
"0.6569035",
"0.64038426",
"0.6346579",
"0.6289704",
"0.62585366",
"0.62220895",
"0.61909777",
"0.6181413",
"0.6170067",
"0.6138848",
"0.6138848",
"0.6080058",
"0.6079548",
"0.6056395",
"0.60425055",
"0.60415614",
"0.59988713",
"0.5990983",
"0.5965657",
"0.594876... | 0.6840446 | 0 |
Get a GID that may be used to create a new group. | def r7cU():
return XXEd() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def GfyU(YKHO):\n return YKHO._gid",
"def I4LO(uOe2, VxWB):\n try:\n return VxWB(uOe2).gr_gid\n except KeyError as err:\n raise UAju.ConfigurationError(\"Gr... | [
"0.7019443",
"0.7019443",
"0.70148677",
"0.70016474",
"0.6981432",
"0.6939491",
"0.6911787",
"0.68390197",
"0.68390197",
"0.6784411",
"0.6744128",
"0.67310697",
"0.67082137",
"0.67082137",
"0.67082137",
"0.67082137",
"0.67082137",
"0.67082137",
"0.67034227",
"0.6644872",
"0.6... | 0.7360349 | 0 |
Get a onefs.APIError exception. | def RIJx(LUXm):
return LUXm[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wo3K(YKHO, geh0: requests.Response):\n JBvl = geh0.status_code\n try:\n U34r = geh0.json()\n AJ5d = GCmr(http_status_code=JBvl, code=U34r.get('code', 'unknown'), message=U34r.get('message', 'unknown error'), id=U34r.get('id'), url=U34r.get('url'))\n except Exception:\n l5Ny = geh0... | [
"0.72140145",
"0.6885741",
"0.66728616",
"0.6604336",
"0.652225",
"0.6436399",
"0.63596845",
"0.6327918",
"0.6256374",
"0.6194806",
"0.61806047",
"0.6156357",
"0.61322457",
"0.61218864",
"0.6116005",
"0.6116005",
"0.6102098",
"0.6099564",
"0.6099564",
"0.6098535",
"0.6042313"... | 0.61347634 | 12 |
Get a OneFSFeature that is guaranteed to be supported. | def ptVx():
return T0I1.OneFSFeature.FOREVER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SVs3():\n\n class OneFSFakeFeature(bHD7):\n g4Hx = (float('inf'), 0)\n return WdvX.FAKE_FEATURE",
"def XhMO(YKHO) -> ATRv:\n bySB = ATRv(0)\n if YKHO.service.has(b8Vy.FAN_STATE_TARGET):\n bySB |= ATRv.FAN_MODE\n return bySB",
"def XhMO(YKHO):\n return YKHO._features",
"def... | [
"0.73647654",
"0.67460865",
"0.61978406",
"0.6173495",
"0.61338484",
"0.6101394",
"0.6101394",
"0.6101394",
"0.6101394",
"0.60884416",
"0.60869336",
"0.60869336",
"0.60869336",
"0.60869336",
"0.60869336",
"0.60741484",
"0.60741484",
"0.60741484",
"0.60741484",
"0.6062262",
"0... | 0.746257 | 0 |
Get a OneFSFeature that is guaranteed to be unsupported. | def SVs3():
class OneFSFakeFeature(bHD7):
g4Hx = (float('inf'), 0)
return WdvX.FAKE_FEATURE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptVx():\n return T0I1.OneFSFeature.FOREVER",
"def XhMO(YKHO) -> ATRv:\n bySB = ATRv(0)\n if YKHO.service.has(b8Vy.FAN_STATE_TARGET):\n bySB |= ATRv.FAN_MODE\n return bySB",
"def aVdN(YKHO, SGYn):\n jzdc = ZbWC.compile('NOFEATURE')\n return jzdc.search(YKHO.test_name) and (not SGYn)... | [
"0.7283647",
"0.6432928",
"0.6319152",
"0.6303897",
"0.6263027",
"0.60055983",
"0.5955196",
"0.59354144",
"0.5885998",
"0.5860739",
"0.5859233",
"0.5858641",
"0.5858641",
"0.5858641",
"0.5858641",
"0.584323",
"0.58422905",
"0.57942283",
"0.578097",
"0.578097",
"0.578097",
"... | 0.8247022 | 0 |
Imports a csv file and returns a list of dictionaries | def mkHa(qaEx):
with open(qaEx, 'r', encoding='utf-8') as eHNT:
hGN5 = eHNT.read().splitlines()
eHNT.close()
Q5mJ = []
for zFiD in hGN5:
Q5mJ.append(ukJE(zFiD))
return Q5mJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6Lp(VqRE):\n with open(VqRE, 'r') as z36O:\n N5Pj = m6_J.DictReader(z36O, delimiter=',')\n YDX_ = []\n for zFiD in N5Pj:\n YDX_.append(zFiD)\n return YDX_",
"def aW45(pmON):\n with open(pmON) as u9IA:\n return list(m6_J.DictReader(u9IA))",
"def HND1(Ux0P: st... | [
"0.81923723",
"0.8113751",
"0.784919",
"0.7848281",
"0.7846241",
"0.77186614",
"0.76887923",
"0.76752245",
"0.7673086",
"0.76420116",
"0.7639645",
"0.76113653",
"0.7574739",
"0.7563872",
"0.75457126",
"0.75320286",
"0.75079715",
"0.74978966",
"0.74902505",
"0.74853146",
"0.74... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
owdW = cmPJ.get('changedAtMs')
A5B5 = cmPJ.get('tempInMilliC')
return Emd4(owdW, A5B5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Identifies red lights in the incoming camera image and publishes the index of the waypoint closest to the red light's stop line to /traffic_waypoint | def u69M(YKHO, tO9_):
YKHO.has_image = True
YKHO.camera_image = tO9_
zhpB, QTBn = YKHO.process_traffic_lights()
gWEA = YKHO.switcher.get(QTBn, 'UNKNOWN')
sQC5.logwarn('light {} light_wp {} state {}'.format(gWEA, zhpB, JW6z(QTBn)))
'\n Publish upcoming red lights at camera frequency.\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X83s(YKHO):\n agxD = None\n v8uu = GPtr.light_positions\n if YKHO.pose is not None and YKHO.waypoints is not None:\n zhpB = YKHO.get_closest_waypoint(YKHO.pose.pose)\n pImw = -1\n VXjJ = YKHO.bridge.imgmsg_to_cv2(YKHO.camera_image, 'passthrough')\n ZHfW = YKHO.red_select(VXjJ)\n WfT... | [
"0.7827901",
"0.7262316",
"0.69887716",
"0.6980083",
"0.6979694",
"0.6899785",
"0.6823302",
"0.68225265",
"0.6808182",
"0.67773646",
"0.6762697",
"0.67153454",
"0.664522",
"0.6644425",
"0.66215956",
"0.66183525",
"0.65941465",
"0.6569338",
"0.6566219",
"0.6480853",
"0.6439476... | 0.570556 | 41 |
Returns list of fields provided by this loader | def V_D6(YKHO):
return YKHO.Item._fields | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnMw(YKHO) -> x1iM[str]:\n HJBv = list(YKHO.dict().keys())\n return HJBv",
"def Uj1j(YKHO):\n return [eHNT.name for eHNT in YKHO.fields]",
"def V_D6(Emd4):\n return []",
"def TnMw(YKHO):\n return [Jyyj for Jyyj in YKHO.__dict__]",
"def TnMw(Emd4):\n return [Jyyj['identifier'] for Jyyj... | [
"0.7956326",
"0.7912234",
"0.7890073",
"0.78472006",
"0.7708309",
"0.77054775",
"0.7666434",
"0.76648647",
"0.76427484",
"0.7633793",
"0.76198447",
"0.76197267",
"0.76197267",
"0.76197267",
"0.7610989",
"0.7586507",
"0.7586507",
"0.7547533",
"0.7547533",
"0.7538018",
"0.75380... | 0.73059034 | 39 |
Returns the speed vehicles are driving in a lane. Assumes that all vehicles are driving at the same speed. | def RkY6(N6Z1, tpB1):
for DDJ9, Hydg in N6Z1.items():
if Hydg[0].lane_id == tpB1 and DDJ9 != -1:
return Hydg[0].speed
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B9td(YKHO, J2l3):\n return YKHO._max_speeds[J2l3]",
"def CwaJ() -> float:\n pass",
"def B9td(YKHO, J2l3):\n return YKHO._ldm.getMaxSpeed(J2l3)",
"def ERGf(FMwV):\n y917 = FMwV.get_velocity()\n return 3.6 * epAf.sqrt(y917.x ** 2 + y917.y ** 2 + y917.z ** 2)",
"def ERGf(FMwV):\n y917 = ... | [
"0.6393296",
"0.6310075",
"0.628956",
"0.6288059",
"0.62471104",
"0.61563134",
"0.60996455",
"0.6039354",
"0.599183",
"0.5985509",
"0.5875564",
"0.5798489",
"0.5785078",
"0.5781368",
"0.5756331",
"0.5747653",
"0.5712544",
"0.57102907",
"0.5704182",
"0.56989366",
"0.5695263",
... | 0.677194 | 0 |
Slices an iterable into chunks of size n | def is_P(OxJJ, yOAJ):
QCjM = iter(OxJJ)
return Hs6x.takewhile(bool, (tuple(Hs6x.islice(QCjM, yOAJ)) for bGrB in Hs6x.count(0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yOAJ(oHE7, exwG):\n for YRbF in Ni9Y(0, len(oHE7), exwG):\n yield oHE7[YRbF:YRbF + exwG]",
"def eHxA(vC9B, exwG, zNig):\n for YRbF in range(0, zNig, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def AyNP(OxJJ, exwG):\n OxJJ = iter(OxJJ)\n while True:\n yield eNCK([next(OxJJ)], u... | [
"0.8400274",
"0.8343502",
"0.8295521",
"0.8225689",
"0.8204087",
"0.8202213",
"0.81848323",
"0.81833434",
"0.8164891",
"0.8164519",
"0.8157287",
"0.8149864",
"0.8149864",
"0.8149864",
"0.81326586",
"0.8126064",
"0.8117384",
"0.8098249",
"0.80952036",
"0.80888945",
"0.8084812"... | 0.0 | -1 |
Finds centroids in an image | def yHxN(nPrm, ZHfW=None):
yHxN, eQSh = YMjF.findStars(nPrm, ZHfW, None, YMjF.CCDInfo(2176, 19, 2.1), thresh=10, radMult=1.0, rad=None, verbosity=0, doDS9=False)
yvT9 = []
for e6ux in yHxN:
yvT9.append(e6ux.xyCtr[0])
yvT9.append(e6ux.xyCtr[1])
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwo4(YKHO, LNo8, drjq):\n bGrB, bGrB, bGrB, yHxN = XC5k.connectedComponentsWithStats(LNo8.astype(oyIN.uint8), XC5k.CV_32S)\n try:\n return yHxN[1]\n except:\n return yHxN",
"def e6ux(Xn71):\n return Bcwd(oyIN.asarray(Xn71))",
"def e6ux(VXjJ):\n VXjJ = oyIN.asanyarray(VXjJ)\n ... | [
"0.8141398",
"0.8063829",
"0.7948972",
"0.7761961",
"0.7709138",
"0.75625193",
"0.7499057",
"0.74239814",
"0.7314105",
"0.7247053",
"0.72135824",
"0.7144191",
"0.7141266",
"0.7125594",
"0.7082756",
"0.69859153",
"0.6982849",
"0.6972448",
"0.6968511",
"0.69618094",
"0.6950363"... | 0.71543354 | 11 |
Finds centroids in an image, with (0,0) at the center of the image | def VI0d(nPrm, ZHfW=None):
yHxN, eQSh = YMjF.findStars(nPrm, ZHfW, None, YMjF.CCDInfo(2176, 19, 2.1), thresh=10, radMult=1.0, rad=None, verbosity=0, doDS9=False)
yvT9 = []
for e6ux in yHxN:
yvT9.append(e6ux.xyCtr[0] - nPrm.shape[1] / 2)
yvT9.append(e6ux.xyCtr[1] - nPrm.shape[0] / 2)
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(Xn71):\n return Bcwd(oyIN.asarray(Xn71))",
"def e6ux(VXjJ):\n VXjJ = oyIN.asanyarray(VXjJ)\n KEH4 = tuple(range(VXjJ.ndim))\n eKGI = []\n for YRbF in KEH4:\n YT0d = tuple((WKvO for WKvO in KEH4 if WKvO != YRbF))\n zBIP = oyIN.nansum(VXjJ, axis=YT0d)\n assert zBIP.ndim... | [
"0.8261634",
"0.8183781",
"0.8014611",
"0.78749305",
"0.78540283",
"0.7770599",
"0.7760616",
"0.7737427",
"0.74829984",
"0.74498665",
"0.744518",
"0.74265224",
"0.7356572",
"0.7356124",
"0.7300772",
"0.7300737",
"0.72967976",
"0.7160564",
"0.71543425",
"0.712406",
"0.7123206"... | 0.72533125 | 17 |
Check to see if a string value is a valid float. | def ZPAH(KCHu):
try:
float(KCHu)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\n return False\n return True",
"def e5f3(vIwR):\n try:\n float(vIwR)\n return True\n ex... | [
"0.8801498",
"0.8751403",
"0.8715589",
"0.86934435",
"0.86934435",
"0.8677474",
"0.8655942",
"0.86106247",
"0.8604894",
"0.8599153",
"0.8598178",
"0.8553488",
"0.84996957",
"0.84996957",
"0.8471501",
"0.847045",
"0.847045",
"0.847045",
"0.847045",
"0.8463776",
"0.84164953",
... | 0.851259 | 12 |
Retrieve a list of requests. | def list(YKHO, qoqK=None, _5yy=None, gpXh=None, G852=None, aeup=False):
if qoqK is not None:
qoqK = int(qoqK)
KUnM = BfDw.common_filters(_5yy, qoqK, gpXh, G852)
pmON = ''
if aeup:
pmON += 'detail'
if KUnM:
pmON += '?' + '&'.join(KUnM)
if qoqK is None:
return YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKqp(YKHO):\n VT3I = 'SELECT * FROM requests'\n return YKHO.fetchAll(VT3I)",
"def xCU0():\n return ouvA().query(VNUm).all()",
"def NMoC(YKHO, QePW):\n return zVa7.list(request=QePW)",
"def G4JS(YKHO) -> 'outputs.ResourceRequestsResponse':\n return qe4Y.get(YKHO, 'requests')",
"def FEDw(Y... | [
"0.7699314",
"0.7332228",
"0.72421366",
"0.70307285",
"0.6959941",
"0.6899129",
"0.6899129",
"0.6852133",
"0.6813784",
"0.6813784",
"0.6813784",
"0.6807574",
"0.68003327",
"0.67994094",
"0.67877686",
"0.6775727",
"0.6775727",
"0.6775727",
"0.6775727",
"0.6775727",
"0.6775727"... | 0.0 | -1 |
Merge a collection of dictionaries | def vGZu(*fgcx):
im04 = dict()
for Csk6 in fgcx:
im04.update(Csk6)
return im04 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def roQF(fgcx):\n Aofo = {}\n for ZfUD in fgcx:\n Aofo.update(ZfUD)\n return Aofo",
"def roQF(*fgcx):\n return Lsmx({}, *fgcx)",
"def roQF(*GBaN):\n hlel = {}\n for qHj0 in GBaN:\n for G1Hx, Ty9i in qHj0.items():\n if not hlel.get(G1Hx):\n hlel[G1Hx] = ... | [
"0.7768428",
"0.7727638",
"0.7676397",
"0.7650472",
"0.7590562",
"0.7485867",
"0.74819374",
"0.7476439",
"0.7465781",
"0.74571085",
"0.7452743",
"0.7452542",
"0.7448684",
"0.7444011",
"0.7425665",
"0.74016225",
"0.7360614",
"0.7349547",
"0.73423797",
"0.73243296",
"0.73243296... | 0.7508006 | 5 |
Return a new dict with new key value pair New dict has d[key] set to value. Does not modify the initial dictionary. | def aq_w(Csk6, H5ew, BWXx):
Csk6 = Csk6.copy()
Csk6[H5ew] = BWXx
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gfS2(Csk6):\n AjzU = {}\n for XP5J in Csk6.keys():\n AjzU[XP5J] = Csk6[XP5J]\n return AjzU",
"def Lxz8(Csk6, QvpX, aRpU):\n if QvpX in Csk6:\n BWXx = Csk6.pop(QvpX)\n Csk6[aRpU] = BWXx\n return Csk6",
"def QdZT(YKHO, Csk6):\n for G1Hx, Ty9i in Csk6.iteritems():\n ... | [
"0.6959632",
"0.6671186",
"0.6595503",
"0.65796196",
"0.6539382",
"0.65305907",
"0.6423306",
"0.6365893",
"0.62626344",
"0.6243588",
"0.62417716",
"0.6202611",
"0.61700666",
"0.6136481",
"0.61276406",
"0.61214745",
"0.6116496",
"0.61129135",
"0.61066234",
"0.60779774",
"0.606... | 0.71133834 | 0 |
Update value in a (potentially) nested dictionary | def VKPg(Csk6, sjXb, eHNT):
assert len(sjXb) > 0
if len(sjXb) == 1:
return aq_w(Csk6, sjXb[0], eHNT(Csk6.get(sjXb[0], None)))
else:
return aq_w(Csk6, sjXb[0], VKPg(Csk6.get(sjXb[0], None), sjXb[1:], eHNT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NY2Y(jzdc, Fg_i, wEf2, J_Es):\n if J_Es.get(jzdc) is None:\n J_Es[jzdc] = {Fg_i: wEf2}\n else:\n J_Es[jzdc][Fg_i] = wEf2",
"def uQaL(Csk6: Dict[str, Any], Ty9i: Any):\n for G1Hx in Csk6:\n if isinstance(Csk6[G1Hx], dict):\n uQaL(Csk6[G1Hx], Ty9i)\n else:\n ... | [
"0.7550739",
"0.7501371",
"0.74302095",
"0.73539674",
"0.7240286",
"0.7160022",
"0.7110407",
"0.71004313",
"0.70983475",
"0.7085649",
"0.7058323",
"0.7055253",
"0.7044003",
"0.7040243",
"0.70144415",
"0.6967308",
"0.6966959",
"0.695625",
"0.6916186",
"0.6913716",
"0.69117916"... | 0.0 | -1 |
The constructor for the linked list nodes | def FIMM(YKHO, nPrm, appj=None):
YKHO.data = nPrm
YKHO.nextNode = appj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.head = Msxl()",
"def FIMM(YKHO):\n YKHO.nodes = []\n YKHO.head = YKHO._add_node()",
"def FIMM(YKHO):\n YKHO.head = o7DN()",
"def FIMM(YKHO):\n YKHO.head = o7DN()",
"def FIMM(YKHO):\n YKHO.head = o7DN(None)",
"def FIMM(YKHO):\n YKHO.head = Msxl()",
"def FIMM(Y... | [
"0.8064964",
"0.8010944",
"0.7994684",
"0.7994684",
"0.79639256",
"0.7938639",
"0.7918289",
"0.7912906",
"0.79098564",
"0.78743535",
"0.78743535",
"0.7871857",
"0.7846857",
"0.78102034",
"0.77886534",
"0.7743079",
"0.7737846",
"0.7730601",
"0.76961446",
"0.76805925",
"0.75747... | 0.0 | -1 |
Load the model from a file | def tyeH(YKHO, gIsw: str):
if YKHO.model is None:
YKHO.model = MLe2()
YKHO.model.load(gIsw)
YKHO.num_warmup_sample = -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)",
"def uyMl(YKHO, WJHQ):\n raise NotImplementedError",
"def uyMl(YKHO, gIsw):\n raise NotImplementedError",
"def tyeH(YKHO, SkYi: Path) -> None:\n pass",
"def tye... | [
"0.8897987",
"0.8709152",
"0.8646045",
"0.8636057",
"0.86093485",
"0.85981476",
"0.85528505",
"0.85528505",
"0.85528505",
"0.8497581",
"0.8480797",
"0.84806865",
"0.8468911",
"0.8338554",
"0.83344394",
"0.8245658",
"0.81964076",
"0.81377715",
"0.8062899",
"0.8056511",
"0.8005... | 0.0 | -1 |
graph_force Graphs the gravity force of the earth and moon acting on Photon along with the thrust force being produced by photo | def N81V(YRbF):
QrM1.figure(num=4, figsize=(8, 8), dpi=100)
QrM1.subplot(221)
QrM1.title('t, Photon Force Gravity Earth')
QrM1.plot(a1PO, mSU6.fg_earth, 'purple')
wfjZ(YRbF)
QrM1.subplot(222)
QrM1.title('t, Photon Force Gravity Moon')
QrM1.plot(a1PO, mSU6.fg_moon, 'purple')
wfjZ(YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1U1(YKHO):\n YKHO.total_energy = Csk6.Decimal(0)\n for dj9t in YKHO.network.nodes:\n MxXY = YKHO.network.get_node(dj9t)\n MxXY.force_x = Csk6.Decimal(0)\n MxXY.force_y = Csk6.Decimal(0)\n for UdN9 in YKHO.network.nodes:\n MxXY = YKHO.network.get_node(UdN9)\n for kYn... | [
"0.64610136",
"0.6418556",
"0.62974894",
"0.6246858",
"0.60826474",
"0.6054861",
"0.60225135",
"0.5930359",
"0.59178835",
"0.5917857",
"0.5916412",
"0.5864655",
"0.58573085",
"0.5827364",
"0.58143747",
"0.5811256",
"0.5771596",
"0.57384324",
"0.57315904",
"0.57247996",
"0.570... | 0.7280259 | 0 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8):
Q6kx, Dgny = YKHO.find(GIN8)
if Dgny != '':
YKHO.add(Q6kx, Dgny)
else:
Q6kx.next[''] = '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.89349246",
"0.8875727",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8786165",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.... | 0.8533781 | 60 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
Q6kx, Dgny = YKHO.find(GIN8)
if Dgny == '' and '' in Q6kx.next.keys():
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82732624",
"0.8268658",
"0.8264125",
"0.821515",
"0.8189247",
"0.8175716",
"0.8169006",
"0.8131675",
"0.79806894",
"0.7973416",
"0.79662687",
"0.7954484",
"0.78810614",
"0.78760433",
"0.7865884",
"0.7834661",
"0.7818698",
"0.7812765",
"0.78111285",
"0.7794079",
"0.77894574... | 0.7465695 | 68 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW):
Q6kx, Dgny = YKHO.find(y0cW)
if Dgny == '':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86418957",
"0.8439758",
"0.84152204",
"0.8414917",
"0.8406607",
"0.83812594",
"0.8369774",
"0.83355415",
"0.8326945",
"0.83266926",
"0.8239315",
"0.8228612",
"0.8172047",
"0.81602836",
"0.81522566",
"0.81466633",
"0.811517",
"0.80111045",
"0.79831576",
"0.79831576",
"0.795... | 0.8456077 | 1 |
Setup console logging by default if logfile is defined, log there too | def VdIj(ojRq=None):
if ojRq:
Ga6V = G9jH.FileHandler(ojRq)
CsU7 = G9jH.Formatter('%(asctime)s %(name)s: %(levelname)s %(message)s')
Ga6V.setFormatter(CsU7)
RKD7.addHandler(Ga6V)
else:
RKD7.addHandler(G9jH.StreamHandler())
RKD7.setLevel(G9jH.INFO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tqPq(zeeE: str) -> None:\n if zeeE is not None:\n bKv0(zeeE)\n else:\n n25I()",
"def VdIj(R5Jy='default.log', wiAm=G9jH.INFO):\n G9jH.basicConfig(filename=R5Jy, level=wiAm, format='[%(levelname)s] %(name)s %(funcName)s(): %(message)s')\n lWrn = G9jH.StreamHandler()\n APnX = G9jH.... | [
"0.78250194",
"0.7718816",
"0.766037",
"0.76481557",
"0.7628401",
"0.75980425",
"0.75478905",
"0.75006175",
"0.7486581",
"0.7450201",
"0.7449726",
"0.74476534",
"0.7434852",
"0.7416163",
"0.7362755",
"0.7355132",
"0.7337638",
"0.7331513",
"0.7328664",
"0.7306129",
"0.7302431"... | 0.7664709 | 2 |
widgetFromGraph(G, dimension=Dimension.Two, nodeScores=None, nodePartition=None, nodePalette=None, showIds=True, customSize=None) Creates a widget with a visualization of a given graph. The widget uses one of the supported plugins either Cytoscape (2D) or Plotly (3D). The returned widget already contains all nodes and ... | def BgIW(yvY1, e_2d=eOte.Two, MdJM=None, rEXb=None, dmpE=None, ogdR=True, MiZ6=None):
if e_2d == eOte.Two and (not Myqn):
raise HKdl('ipycytoscape')
if (e_2d == eOte.Three or e_2d == eOte.TwoForcePlotly) and (not cIG7):
raise HKdl('Plotly')
if MdJM is not None:
if rEXb is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OrQV(yvY1, Yfjz=None, Xuoo=None, Nhq3=None, pP96=True):\n if not EoN0:\n raise HKdl('ipycytoscape')\n if Yfjz is not None:\n if Xuoo is not None:\n raise Exception('Provide either node_scores or node_partition - not both.')\n if len(Yfjz) != yvY1.upperNodeIdBound():\n ... | [
"0.7900228",
"0.5810676",
"0.57083046",
"0.54466236",
"0.5375241",
"0.52961046",
"0.52532005",
"0.5246597",
"0.51436883",
"0.5106828",
"0.5073318",
"0.50239843",
"0.49973738",
"0.4991943",
"0.49692172",
"0.49637854",
"0.49257177",
"0.48999965",
"0.48766512",
"0.48512483",
"0.... | 0.8693968 | 0 |
Turns a dictionary of SegmentList objects into a dictionary of lists of Segment objects. (makes them easier to compare in tests). | def zThe(oYXS):
CFo4 = {}
for H5ew, wEf2 in oYXS.items():
CFo4[H5ew] = bqla(wEf2)
return CFo4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zT8f(PXIy):\n vEhX = {}\n for pG0V in PXIy:\n vEhX[PXIy.index(pG0V)] = pG0V\n return vEhX",
"def VK2k(Csk6):\n Mkmy = oRi_(list)\n for G1Hx, cmJd in Csk6.items():\n for Ty9i in cmJd:\n Mkmy[Ty9i].append(G1Hx)\n return Mkmy",
"def VK2k(Csk6):\n Mkmy = oRi_(list)... | [
"0.66994935",
"0.58217055",
"0.58217055",
"0.5796515",
"0.5616468",
"0.5610333",
"0.55860865",
"0.553413",
"0.55285704",
"0.5463299",
"0.5459077",
"0.54499066",
"0.54476583",
"0.5435862",
"0.54351795",
"0.5433218",
"0.5414637",
"0.5350214",
"0.53457767",
"0.5326668",
"0.53064... | 0.80855083 | 0 |
Returns True if the two lists hold the same set of segments, otherwise returns False. | def Ixb5(wNuL, Mlb1):
if len(wNuL) != len(Mlb1):
return False
wNuL.sort()
Mlb1.sort()
if wNuL is None:
if Mlb1 is not None:
return False
elif Mlb1 is None:
if wNuL is not None:
return False
for YRbF in range(len(wNuL)):
if wNuL[YRbF] != Mlb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, Elif):\n qAoR = ','.join([str(KCHu) for KCHu in YKHO.segments])\n wuLw = ','.join([str(KCHu) for KCHu in Elif.segments])\n return wuLw in qAoR",
"def FYXB(YKHO, hTWD):\n for KCHu in YKHO.segments:\n if KCHu.equals(hTWD):\n return True\n return False",
"def aPi6(Y... | [
"0.7180092",
"0.6885645",
"0.6840817",
"0.6779573",
"0.6742083",
"0.6715156",
"0.667939",
"0.66291237",
"0.6513686",
"0.6511516",
"0.6502689",
"0.64941555",
"0.6483962",
"0.6478969",
"0.6477197",
"0.64683676",
"0.64504415",
"0.64464384",
"0.64330107",
"0.6428791",
"0.6402727"... | 0.7589664 | 0 |
Find a `` or `` element in `pm` having the specified `name` attribute and return the element's value. Raise ValueError if no such data element is found. | def yLtf(TlDD, mWFP=None):
if mWFP is None:
ZWCE = [Csk6['name'] for Csk6 in TlDD(lambda TZ9E: TZ9E.name in ('Data', 'SimpleData') and 'name' in TZ9E.attrs)]
hkxX = yLtf(TlDD, ZWCE)
kgDL = list(zip(ZWCE, hkxX))
Op6c = {WKvO: LVAh for WKvO, LVAh in kgDL}
return Op6c if len(Op6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUhK(Oa1e, mWFP):\n for YRbF in Oa1e.value_info:\n if YRbF.name == mWFP:\n return YRbF\n return None",
"def mEyx(YKHO, mWFP):\n TZ9E = j7g_(mWFP)\n if TZ9E:\n return YKHO[TZ9E]\n return None",
"def KbZi(YKHO, mWFP):\n for tqKV in YKHO.item_attributes:\n if ... | [
"0.6273876",
"0.6206327",
"0.6140909",
"0.61366063",
"0.6131707",
"0.61171556",
"0.5990068",
"0.5948258",
"0.5942899",
"0.59310246",
"0.5925086",
"0.59026915",
"0.5866032",
"0.5860501",
"0.58358115",
"0.5787158",
"0.57802516",
"0.575718",
"0.5756009",
"0.57283217",
"0.5721513... | 0.65220934 | 0 |
Generate a random hash and returns the hex digest as a unicode string. | def pmwP(j9v1=28, rU7A=Hy7s.urandom, XJC0=jry1):
Mkmy = rU7A(j9v1)
return XJC0(Mkmy).decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcbv(u54L=32):\n return nPFT('hex')(rU7A(u54L // 2))[0].decode('utf-8')",
"def jfde():\n GMvP = '%s-%s-%s-%s-%s' % (MRxC.hexlify(Hy7s.urandom(4)), MRxC.hexlify(Hy7s.urandom(2)), MRxC.hexlify(Hy7s.urandom(2)), MRxC.hexlify(Hy7s.urandom(2)), MRxC.hexlify(Hy7s.urandom(6)))\n return GMvP",
"def pmwP(j... | [
"0.7788545",
"0.75746447",
"0.7552981",
"0.75476986",
"0.7192605",
"0.71734536",
"0.71113265",
"0.71077836",
"0.7080887",
"0.70469576",
"0.70332116",
"0.6955171",
"0.6946668",
"0.69454885",
"0.6940825",
"0.693007",
"0.6929261",
"0.69224817",
"0.69224817",
"0.6874558",
"0.6864... | 0.77261776 | 1 |
Make sure slug is unique. Takes a ``candidate`` value for a unique ``property_`` and iterates, appending an incremented integer until unique. | def LPaP(YKHO, xDcj, AZ9c, BWXx, SYxB=30, Ddq0=pmwP):
SkC9 = BWXx
exwG = 0
X_qS = ''
while True:
BWXx = f'{SkC9}{X_qS}'
Ys3F = None
JiLf = xDcj.filter(AZ9c == BWXx).all()
for KAOR in JiLf:
if KAOR != YKHO:
Ys3F = KAOR
break
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LPaP(YKHO, xDcj, AZ9c, BWXx, SYxB=30, Ddq0=None):\n if Ddq0 is None:\n Ddq0 = pmwP\n SkC9 = BWXx\n exwG = 0\n X_qS = ''\n while True:\n BWXx = u'{0}{1}'.format(SkC9, X_qS)\n Ys3F = None\n JiLf = xDcj.filter(AZ9c == BWXx).all()\n for KAOR in JiLf:\n i... | [
"0.6403732",
"0.6375869",
"0.6127119",
"0.59943503",
"0.5797572",
"0.5797572",
"0.5758444",
"0.5708976",
"0.5675919",
"0.5646567",
"0.5560845",
"0.5543849",
"0.55128765",
"0.54831225",
"0.5418505",
"0.53625464",
"0.5348789",
"0.5306585",
"0.52918786",
"0.5287319",
"0.52401423... | 0.6465465 | 0 |
Get or create a ``cls`` instance using the ``kwargs`` provided. | def cDO8(Emd4, **B2fa):
KAOR = Emd4.query.filter_by(**B2fa).first()
if not KAOR:
KAOR = Emd4(**B2fa)
return KAOR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDO8(Emd4, **B2fa):\n KAOR = Emd4.query.filter_by(**B2fa).first()\n if not KAOR:\n KAOR = Emd4(**B2fa)\n return KAOR",
"def cDO8(Emd4, B2fa=None, **xGFA):\n KAOR = Emd4.query.filter_by(**xGFA).first()\n if not KAOR:\n B2fa = B2fa or {}\n B2fa.update(xGFA)\n KAOR = E... | [
"0.78442943",
"0.7197302",
"0.710718",
"0.70735025",
"0.7029211",
"0.6991506",
"0.69875586",
"0.6928502",
"0.6896209",
"0.6852421",
"0.68255055",
"0.6784167",
"0.677054",
"0.67597413",
"0.67353934",
"0.6700763",
"0.6700763",
"0.6700763",
"0.6700763",
"0.6700763",
"0.6700763",... | 0.78791326 | 0 |
Returns the name of the attraction | def mGra(YKHO):
return YKHO.__attraction_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQh7(YKHO) -> str:\n return qe4Y.get(YKHO, 'action_name')",
"def mWFP(YKHO):\n mWFP = getattr(YKHO.action, '__name__', None)\n return mWFP if mWFP is not None else repr(YKHO.action)",
"def mWFP(YKHO) -> I2jr:\n return 'action_name'",
"def PQh7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YK... | [
"0.7673138",
"0.76660496",
"0.7593304",
"0.73057395",
"0.73057395",
"0.7177172",
"0.7175178",
"0.7157305",
"0.69811064",
"0.69395834",
"0.69355404",
"0.6897664",
"0.68570733",
"0.67941916",
"0.6787778",
"0.6787778",
"0.6787778",
"0.6787778",
"0.6787778",
"0.6787778",
"0.67497... | 0.8699433 | 0 |
Returns the ancestor destination of the attraction. | def Itlk(YKHO):
return YKHO.__data['ancestorDestination']['links']['self']['title'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJmu(Emd4):\n return None",
"def F_G6(YKHO):\n return YKHO",
"def AfJR(YKHO):\n return YKHO.node2",
"def Bqig(YKHO) -> PvyL:\n if YKHO.parent is None:\n return YKHO.parent.possition + YKHO.possition + YKHO.anchor\n else:\n return YKHO.possition + YKHO.anchor",
"def xzD1(YKH... | [
"0.61727464",
"0.614014",
"0.5976603",
"0.5909468",
"0.5899585",
"0.58800626",
"0.58592874",
"0.58466226",
"0.58444947",
"0.5813946",
"0.5810989",
"0.57946986",
"0.5781587",
"0.57090384",
"0.5707381",
"0.5707381",
"0.56858563",
"0.56858563",
"0.5675643",
"0.567148",
"0.564937... | 0.7481516 | 0 |
Returns a human readable name to be used to reference this specific asset manager. Once instance of its use may be in a Host's Preferences UI or logging. | def Sy3f(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return '%s-%s' % (YKHO.manager.name, YKHO.version)",
"def mWFP(Emd4):\n return Ee9n(Emd4.__name__).rstrip('_manager')",
"def mWFP(YKHO):\n return YKHO.__common_info.name",
"def mWFP(YKHO) -> str:\n return YKHO._helper.name",
"def ujht(YKHO):\n return YKHO.__name",
"def qQ... | [
"0.7381718",
"0.7120166",
"0.6782383",
"0.6780764",
"0.6777472",
"0.6771139",
"0.6766937",
"0.67331624",
"0.67198795",
"0.66685003",
"0.6644348",
"0.6592084",
"0.65913326",
"0.65880954",
"0.6569487",
"0.65658826",
"0.6547339",
"0.6547339",
"0.6526027",
"0.6526027",
"0.6520842... | 0.0 | -1 |
Clears any internal caches. Only applicable if the implementation makes use of any caching, otherwise it is a noop. In caching interfaces, this should cause any retained data to be discarded to ensure future queries are fresh. This should have no effect on any open transaction. | def oiAF(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ORNU(YKHO):\n YKHO.cache.clear()\n YKHO._cached_all = False",
"def Y7Bk(YKHO):\n if YKHO.doCache:\n YKHO.cache.clear()\n YKHO.expiredCache.clear()",
"def ORNU(YKHO):\n YKHO._query_cache.clear()",
"def dSBO(YKHO):\n wyyA.clear()\n hAVj = V5Lg('persistent')\n hAVj.flushall()"... | [
"0.8128648",
"0.80681956",
"0.8024025",
"0.79742837",
"0.7963974",
"0.79298925",
"0.79242975",
"0.7880908",
"0.7880908",
"0.7875643",
"0.7864115",
"0.7861357",
"0.7861357",
"0.7844358",
"0.77633536",
"0.77410287",
"0.7714609",
"0.77094895",
"0.76876384",
"0.7676343",
"0.76099... | 0.0 | -1 |
Returns the 'finalized' string represented by the entity_reference. When the entity_reference points to a sequence of files, the frame token should be preserved, and in the sptintf compatible syntax. This function should attempt to take into account the current Host/Context to ensure that any other substitution tokens ... | def dHcA(YKHO, gCCr, QpfX):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTsK(YKHO, gCCr, QpfX, vWQN=None):\n return gCCr",
"def SKT2(YKHO, bf9h):\n bf9h = QOiZ.name2codepoint.get(bf9h, None)\n if bf9h:\n YKHO.result += YKHO._savedecode(bf9h)",
"def E_DN(YKHO, gCCr, QpfX):\n return ''",
"def SKT2(YKHO, bf9h):\n nPrm = None\n if YKHO.convertHTMLEntitie... | [
"0.67032385",
"0.552937",
"0.5508107",
"0.5390793",
"0.5213487",
"0.51975536",
"0.5165773",
"0.5081508",
"0.50426394",
"0.5000785",
"0.4986875",
"0.49450868",
"0.48648718",
"0.4860621",
"0.4822121",
"0.47820538",
"0.47788206",
"0.47788206",
"0.4735546",
"0.47034487",
"0.46623... | 0.5591412 | 1 |
Creates a new relationship between the referenced entities. append bool, When True (default) new relationships will be added to any existing ones. If False, then any existing relationships with the supplied specification will first be removed. Though getRelatedReferences is an essential call, there is some asymetry her... | def CJAv(YKHO, gCCr, ONKQ, rMap, QpfX, SStx=True):
if not YKHO.entityExists(gCCr, QpfX):
raise Bx6I.InvalidEntityReference(entityReference=gCCr)
for Mkmy in rMap:
if not YKHO.entityExists(Mkmy, QpfX):
raise Bx6I.InvalidEntityReference(entityReference=Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cB7g(YKHO, fDTq, YEnM):\n if isinstance(fDTq, NNU2):\n fDTq = Qsf5(fDTq)\n Xarc = True\n if isinstance(YEnM, PGDx):\n YEnM = YEnM.uri\n Xarc = False\n elif (isinstance(YEnM, str) or isinstance(YEnM, jKi7.string_types)) and YEnM.startswith('info:fedora/'):\n Xarc = False\... | [
"0.58999234",
"0.56380236",
"0.56008047",
"0.557942",
"0.55370766",
"0.55290365",
"0.54914194",
"0.54871744",
"0.5471875",
"0.544584",
"0.5408161",
"0.53963995",
"0.53673655",
"0.5337341",
"0.5300368",
"0.5299598",
"0.52907264",
"0.5276351",
"0.5264315",
"0.52422804",
"0.5240... | 0.70660156 | 0 |
Splits a path into the various parts and returns a list | def KkWy(pmON):
SQ3m = []
RSBG, pmON = Hy7s.path.splitdrive(pmON)
while True:
e35S, J3uN = Hy7s.path.split(pmON)
if e35S == pmON:
assert not J3uN
if pmON:
SQ3m.append(pmON)
break
SQ3m.append(J3uN)
pmON = e35S
if RSBG:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFJQ(YKHO, pmON):\n AdfU = []\n while True:\n sdCG, J3uN = Hy7s.path.split(pmON)\n if J3uN == '':\n AdfU.append(sdCG)\n break\n AdfU.append(J3uN)\n pmON = sdCG\n return AdfU",
"def KkWy(pmON):\n vRv4 = []\n while pmON != '/':\n SQ3m = Hy... | [
"0.84678054",
"0.83147013",
"0.8269843",
"0.8227354",
"0.8155882",
"0.8106645",
"0.79867697",
"0.79867697",
"0.79634523",
"0.795633",
"0.794768",
"0.7888953",
"0.7858509",
"0.783322",
"0.78060395",
"0.779854",
"0.7747876",
"0.77463037",
"0.77166384",
"0.76968014",
"0.76812613... | 0.7580425 | 28 |
This function takes a Pandas data frame with ST data (Genes as columns and spots as rows) and returns a new data frame where only the top genes are kept by using the variance or the total count. | def pQ8Q(BWz1, KhC8, wjLZ='Variance'):
BWz1 = BWz1.transpose()
YWg6 = len(BWz1.index)
print('Removing {}% of genes based on the {}'.format(KhC8 * 100, wjLZ))
if wjLZ == 'Variance':
YsWM = BWz1.var(axis=1).quantile(KhC8)
if epAf.isnan(YsWM):
print('Computed variance is NaN! Ch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v2MH(ycBG: pd.DataFrame, dsCP: int=10) -> rLdf.DataFrame:\n _zZT = {}\n ycBG['temp_idx'] = oyIN.arange(len(ycBG))\n for G1Hx, Ty9i in ycBG[['sequence', 'fasta_index']].values:\n if G1Hx in _zZT:\n RE7Y = _zZT[G1Hx]\n if isinstance(Ty9i, set):\n RE7Y.update(T... | [
"0.6375635",
"0.60368353",
"0.6013337",
"0.5952451",
"0.58319396",
"0.57518137",
"0.5726697",
"0.56288445",
"0.56186736",
"0.5599253",
"0.55701244",
"0.55534935",
"0.55208087",
"0.5506549",
"0.5502298",
"0.54955965",
"0.5480829",
"0.54575145",
"0.5452508",
"0.5415845",
"0.541... | 0.7297299 | 0 |
performs forward propagation for a Deep RNN rnn_cells is a list of RNNCell instances of length l that will be used for the forward propagation l is the number of layers X is the data to be used, given as a numpy.ndarray of shape (t, m, i) t is the maximum number of time steps m is the batch size i is the dimensionality... | def dxiW(jdIq, EcVT, NgLN):
a1PO, r8hN, YRbF = EcVT.shape
vC9B, bGrB, MKlR = NgLN.shape
C7Ls = oyIN.zeros((a1PO + 1, vC9B, r8hN, MKlR))
C7Ls[0] = NgLN
for iter in range(1, a1PO + 1):
WtQF = NgLN
for fhcK in range(vC9B):
if fhcK == 0:
JnYf, LVAh = jdIq[fhcK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxiW(jdIq, EcVT, NgLN):\n a1PO, r8hN, YRbF = EcVT.shape\n vC9B, bGrB, MKlR = NgLN.shape\n C7Ls = oyIN.zeros((a1PO + 1, vC9B, r8hN, MKlR))\n C7Ls[0] = NgLN\n fuBA = []\n ewCu = 0\n for r845 in range(a1PO):\n ZbiE = EcVT[r845, :, :]\n ej_N = oyIN.zeros((vC9B, r8hN, MKlR))\n ... | [
"0.7113385",
"0.70948416",
"0.63048536",
"0.6222308",
"0.6179264",
"0.6117615",
"0.60686386",
"0.6016989",
"0.5958762",
"0.5933756",
"0.5932279",
"0.5909689",
"0.5862073",
"0.58620447",
"0.5858837",
"0.58040583",
"0.5785769",
"0.57683635",
"0.5766306",
"0.57548904",
"0.575390... | 0.70766604 | 2 |
Get the current bed temperature | def nz6q(YKHO):
Mkmy = YKHO.s.get(YKHO.base_address + '/api/printer/bed')
if Mkmy.status_code != 200:
raise Exception('Error: {code} - {content}'.format(code=Mkmy.status_code, content=Mkmy.content.decode('utf-8')))
nPrm = Mkmy.content.decode('utf-8').split('\n')
for zFiD in nPrm:
if 'tar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMHP(YKHO):\n if YKHO._sensor == fVsx:\n return YKHO._external_temp\n else:\n return YKHO._room_temp",
"def rcrL(YKHO):\n return YKHO.temperature",
"def WE3r(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n return YKHO.get_conv_val('ACTUAL_ROOM_TEMPERATURE_HC1')",
"... | [
"0.80519027",
"0.79955363",
"0.79721385",
"0.7939162",
"0.792621",
"0.7917993",
"0.7899577",
"0.789872",
"0.7892048",
"0.7885293",
"0.7875347",
"0.78424275",
"0.784123",
"0.7840471",
"0.7834737",
"0.78214645",
"0.78142065",
"0.7808051",
"0.78009725",
"0.77911496",
"0.77869004... | 0.83551157 | 0 |
Get the target extruder temperature in degrees celsius | def _TyQ(YKHO):
Mkmy = YKHO.s.get(YKHO.base_address + '/api/printer/tool')
if Mkmy.status_code != 200:
raise Exception('Error: {code} - {content}'.format(code=Mkmy.status_code, content=Mkmy.content.decode('utf-8')))
nPrm = Mkmy.content.decode('utf-8').split('\n')
for zFiD in nPrm:
if 'ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6n4(YKHO):\n return YKHO._details.for_code(YQCV.HaclCode.TARGET_TEMPERATURE).containers.for_id(YQCV.ContainerId.TEMPERATURE).number_value",
"def T6n4(YKHO):\n return YKHO._climate.get_target_temperature()",
"def T6n4(YKHO):\n return YKHO._fujitsu_device.adjust_temperature_degree",
"def T6n4(YKH... | [
"0.8164413",
"0.8122684",
"0.80717707",
"0.80711627",
"0.8015655",
"0.8010638",
"0.79620326",
"0.7954559",
"0.79343647",
"0.7932388",
"0.7925881",
"0.78921545",
"0.78875244",
"0.7884088",
"0.78715384",
"0.7866796",
"0.7866796",
"0.7866796",
"0.7866796",
"0.7866796",
"0.786679... | 0.830922 | 0 |