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 |
|---|---|---|---|---|---|---|
Gets the state of the virtual dpad. | def l9ZH(YKHO):
KAzW = YKHO.microbit.accelerometer.get_x()
gj_f = YKHO.microbit.accelerometer.get_y()
Zb2Y = YKHO.sensitivity * -1
if KAzW < Zb2Y:
BNCX = ('Absolute', 16, -1)
elif KAzW > YKHO.sensitivity:
BNCX = ('Absolute', 16, 1)
else:
BNCX = ('Absolute', 16, 0)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return gTEQ('PrlVmInfo_GetState', YKHO.handle)",
"def dTIz(YKHO):\n return gTEQ('PrlSrvCfgDev_GetDeviceState', YKHO.handle)",
"def QTBn(YKHO):\n return YKHO.coordinator.data[upsu][YKHO.base_unique_id][Vjjj]",
"def QTBn(YKHO) -> 'outputs.DeviceStateResponse':\n return qe4Y.get(YK... | [
"0.71247375",
"0.70348924",
"0.68135566",
"0.6670066",
"0.6650468",
"0.66319525",
"0.65097106",
"0.6352869",
"0.6319689",
"0.63063043",
"0.6206376",
"0.620202",
"0.61804473",
"0.61751384",
"0.6173688",
"0.6146593",
"0.6144406",
"0.61177325",
"0.6111116",
"0.6110203",
"0.61092... | 0.0 | -1 |
Create decoder network, top half of plumnet. | def ITJE(WN_d, LCPF, gyd1, j63z=0.5, Sn2y=False):
QZNc = [(0, 'block5_conv4'), (0, 'block4_conv4'), (0, 'block3_conv4')]
S9TI = (gyd1, 0.0, 'block2_conv2')
return IPme.decoder(WN_d, QZNc, S9TI, instancenorm=False, upsample_method=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uww3(YKHO):\n YKHO.decoder = U78l.Sequential(U78l.Linear(YKHO.encoding_shape, 256), Rv6M((-1, 256, 1, 1)), U78l.SELU(), U78l.ConvTranspose2d(256, 64, 4), U78l.SELU(), U78l.ConvTranspose2d(64, 64, 4, 2, 1), U78l.SELU(), U78l.ConvTranspose2d(64, 32, 4, 2, 1), U78l.SELU(), U78l.ConvTranspose2d(32, 32, 4, 2, 1)... | [
"0.73102534",
"0.7261535",
"0.6880061",
"0.6485732",
"0.6403696",
"0.6255239",
"0.6252306",
"0.6240848",
"0.62361217",
"0.6171521",
"0.6152959",
"0.61515594",
"0.60870564",
"0.6065257",
"0.59899706",
"0.5960869",
"0.5944484",
"0.5937782",
"0.58944184",
"0.58939373",
"0.589001... | 0.56021464 | 55 |
Create torch dataloader from torch dataset. | def KWNw(__n6: Dataset, _Fei: trainer_configs.BaseDatasetConfig, Ep8u: int, *, QxcP: Optional[Callable[[List[Any]], Any]]=None) -> pVAc:
return pVAc(__n6, batch_size=Ep8u, shuffle=_Fei.shuffle, num_workers=_Fei.num_workers, drop_last=_Fei.drop_last, collate_fn=QxcP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxmE(__n6: 'torch.utils.data.Dataset') -> x3i3:\n return Zb6j(list(__n6))",
"def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)",
"def UgZ6(nPrm):\n Pha6 = ht2j.LongTensor([_dZy['input_ids'] for _dZy in nPrm])\n qV0r = ht2j.Lo... | [
"0.82925516",
"0.79915386",
"0.7926132",
"0.77298605",
"0.72732043",
"0.71640277",
"0.707363",
"0.69367343",
"0.6928608",
"0.68931335",
"0.68251014",
"0.68235946",
"0.68205565",
"0.6817058",
"0.67434347",
"0.6728299",
"0.6725044",
"0.67246693",
"0.6678549",
"0.6659566",
"0.66... | 0.6454544 | 32 |
Load a dictionary from a JSON file | def K5zN(YKHO, pmON):
YKHO.root = i8DB(' ')
hGN5 = T_Uj.open(pmON, 'r', 'utf-8').read()
nPrm = qQXR.loads(hGN5)
YKHO.root = i8DB()
YKHO.root.loadJSON(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ",
"def u6qZ(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n OE44 = qQXR.load(eHNT)\n return OE44",
"def lc9H(Ux0P: str) -> cuzp:\n with open(Ux0P, 'r') as wM3v:\n return qQXR.load(wM3v)",... | [
"0.81796145",
"0.81756043",
"0.81103545",
"0.810198",
"0.8025683",
"0.80000037",
"0.79209805",
"0.7854995",
"0.7847101",
"0.7837682",
"0.7832891",
"0.7826102",
"0.77649",
"0.7735069",
"0.76747024",
"0.76601076",
"0.7656784",
"0.7642736",
"0.76336455",
"0.7619829",
"0.7614993"... | 0.0 | -1 |
Loads parquet file into pandas dataframe | def tyeH(nUeQ):
return sqRO.read_table(nUeQ).to_pandas() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7db(pmON, *qIxc, **B2fa):\n try:\n jQ3Z = tZVM.instance.spark.read.parquet(pmON, *qIxc, **B2fa)\n except IOError as error:\n G9jH.error(P1dF)\n raise\n return jQ3Z",
"def w6La(KAfx):\n jQ3Z = rLdf.read_parquet(KAfx)\n return jQ3Z",
"def YUHd(YKHO, Ux0P):\n if Ux0P is... | [
"0.77056766",
"0.7632231",
"0.71489424",
"0.71328956",
"0.6953971",
"0.6713707",
"0.6627586",
"0.64559054",
"0.6446183",
"0.6426315",
"0.6402503",
"0.6397691",
"0.6387135",
"0.6380892",
"0.63558275",
"0.6339602",
"0.6321456",
"0.63107336",
"0.6305603",
"0.62834364",
"0.628343... | 0.7059969 | 4 |
Change a record list (usually from a REST API endpoint) to a column based dictionary (pandas dataframe). | def hqF9(ETu_, gzes=None, a4gM=None, DNHh=None, X9nh=None, SnBA=None):
if isinstance(ETu_, dict):
ETu_ = [ETu_]
if len(ETu_) == 0:
return ppXd()
if a4gM is None:
a4gM = ETu_[0].keys() if isinstance(ETu_, list) else ETu_.keys()
if DNHh is None:
DNHh = []
if X9nh is Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TENV(jQ3Z):\n return jQ3Z.to_dict('records')",
"def Xooo(YKHO, FuV7):\n if not FuV7:\n return None\n if YKHO.val_cols and YKHO.key_col:\n U5bT = []\n for ETu_ in FuV7:\n tbx9 = dict(((G1Hx, Ty9i) for G1Hx, Ty9i in zip(YKHO.val_cols, ETu_['data'])))\n tbx9[Y... | [
"0.6870809",
"0.6831673",
"0.66732347",
"0.656266",
"0.6525406",
"0.6458262",
"0.6368948",
"0.6308678",
"0.62108874",
"0.61974293",
"0.6151365",
"0.610822",
"0.6102326",
"0.6092888",
"0.60755765",
"0.60064256",
"0.59337145",
"0.5913062",
"0.5911421",
"0.59049517",
"0.58998716... | 0.0 | -1 |
Get all the contents of the file. | def ymqH(YKHO):
if not YKHO.exists():
raise IOError("File at '{}' does not exist.".format(YKHO.location))
with open(YKHO.location, 'r') as eHNT:
return eHNT.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGys(nUeQ):\n with open(nUeQ) as eHNT:\n return eHNT.read()",
"def nSzq(gIsw):\n eHNT = open(gIsw)\n Nqlg = eHNT.readlines()\n eHNT.close()\n return Nqlg",
"def aVot(gIsw):\n Kby8 = open(gIsw, 'r').readlines()\n return Kby8",
"def kGys(YKHO):\n if not YKHO._contents:\n ... | [
"0.74506706",
"0.7343296",
"0.72649115",
"0.72400385",
"0.7186092",
"0.7109437",
"0.708824",
"0.70775163",
"0.70344055",
"0.67526877",
"0.67281365",
"0.6709581",
"0.66471994",
"0.6645586",
"0.6641932",
"0.65975296",
"0.6591232",
"0.6589594",
"0.6588563",
"0.6569945",
"0.65552... | 0.74894214 | 0 |
Gets the dict built with self.feed(). Dict keys are tag kinds, values are lists of ctags_entry instances sporting that kind. | def yLtf(YKHO):
return YKHO.kinds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Es54(YKHO):\n return ({'name': 'tag', 'attrs': {'k': G1Hx, 'v': Ty9i}} for G1Hx, Ty9i in YKHO.tags.items())",
"def Apr3(YKHO):\n return YKHO.tag_dict",
"def g2aH(YKHO):\n g2aH = dict()\n for C13M in YKHO.documents:\n for TZ9E in C13M.tags:\n PNan = TZ9E['tag']\n g2a... | [
"0.64971703",
"0.6338285",
"0.6278399",
"0.61737776",
"0.617257",
"0.61501855",
"0.60420644",
"0.60289854",
"0.6026101",
"0.5831772",
"0.5826877",
"0.57666814",
"0.57443905",
"0.56703824",
"0.5646946",
"0.56228006",
"0.5618187",
"0.5601501",
"0.55903405",
"0.55847204",
"0.556... | 0.5371556 | 34 |
Create a ``Conv2d`` layer. | def FIMM(YKHO, amza, QJWG=3, FEri=1, u_ln=None, dvgN='SAME', wH3T='channels_first', fiu3=1, Q5Hy='glorot_uniform', yPTj=None, DYuh=None, mWFP=None):
super().__init__(mWFP, u_ln)
YKHO.n_filter = amza
YKHO.filter_size = ysdZ.normalize_2d_args('ksize', QJWG)
YKHO.strides = ysdZ.normalize_2d_args('strides',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xLcY(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')",
"def adXX(YKHO, g4y1, VqiK, Ot1W, mWFP, e5sz=False, FEri=1):\n if FEri > 1:\n g4y1 = ZylS.pad(g4y1, paddings=[[0, 0], [1, 0], [1, 0], [0, 0]], mode='CONSTANT')\n yIp6 = ZylS.layers.conv2d(inputs=g4y1... | [
"0.74791586",
"0.7381662",
"0.73599523",
"0.73505414",
"0.7339476",
"0.7292833",
"0.72889566",
"0.7175426",
"0.71629256",
"0.71383077",
"0.71236175",
"0.71145546",
"0.7113917",
"0.70776135",
"0.7033525",
"0.70172703",
"0.701693",
"0.70053244",
"0.6993083",
"0.6975555",
"0.697... | 0.0 | -1 |
Returns the number of days in the given month and year. Assumes that month 1 is January, month 2 is February, and so on. | def vhrV(x0eS, lO87):
if x0eS == 2:
if p1CF(lO87):
return 29
else:
return 28
elif x0eS == 4 or x0eS == 6 or x0eS == 9 or (x0eS == 11):
return 30
else:
return 31 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vhrV(lO87, x0eS):\n qE0M = wTnG(lO87, x0eS)[1]\n return qE0M",
"def utBZ(x0eS, lO87):\n if x0eS in [9, 4, 6, 11]:\n return 30\n elif x0eS == 2 and lO87 % 4 == 0 and (lO87 % 100 != 0 or lO87 % 400 == 0):\n return 29\n elif x0eS == 2:\n return 28\n else:\n return 3... | [
"0.8614313",
"0.8398347",
"0.8209615",
"0.82022953",
"0.8030093",
"0.800625",
"0.7987013",
"0.7985357",
"0.7968734",
"0.79539454",
"0.79398525",
"0.7912807",
"0.7912807",
"0.7912807",
"0.7911418",
"0.7847122",
"0.78415906",
"0.7626141",
"0.7566821",
"0.75537306",
"0.74636114"... | 0.80534256 | 4 |
Formats a one or two digit integer to fit in four spaces. Returns a string of the formatted number string. | def eY98(mLGw):
Aofo = ' ' + str(mLGw) + ' '
if mLGw < 10:
Aofo = Aofo + ' '
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(FGW3, TVTK=0):\n return str(FGW3).zfill(TVTK)",
"def fKfa(BWXx, zNig):\n return '{:0>{}}'.format(BWXx, zNig)",
"def format(FGW3):\n FGW3 = Xbam(FGW3)\n return ' '.join((FGW3[:2], FGW3[2:5], FGW3[5:8], FGW3[8:]))",
"def eY98(FGW3):\n return f'{FGW3:8,}'",
"def format(id, u54L=5):\n ... | [
"0.7063938",
"0.68645406",
"0.67753583",
"0.67275816",
"0.67236304",
"0.6648164",
"0.6632206",
"0.65615296",
"0.6498508",
"0.64488953",
"0.6448557",
"0.6431686",
"0.64126563",
"0.64041156",
"0.638862",
"0.6388164",
"0.6361103",
"0.63593596",
"0.629307",
"0.627362",
"0.6273511... | 0.6639525 | 6 |
Build a heap from the given list of items | def Npt8(YKHO, DumB):
for H5ew in DumB:
YKHO.insert(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUTP(YKHO, ybN4):\n YRbF = len(ybN4) // 2\n YKHO.currentSize = len(ybN4)\n YKHO.heapList = [0] + ybN4[:]\n while YRbF > 0:\n YKHO.percDown(YRbF)\n YRbF = YRbF - 1",
"def sEWy(DumB):\n _eVy.heapify(DumB)\n DumB[:] = [_eVy.heappop(DumB) for YRbF in range(len(DumB))]",
"def sEW... | [
"0.7312595",
"0.72688735",
"0.72688735",
"0.7239988",
"0.71944106",
"0.71628654",
"0.7153743",
"0.7129963",
"0.71176445",
"0.7108007",
"0.70677465",
"0.69977707",
"0.695483",
"0.68939006",
"0.68727845",
"0.68079054",
"0.68079054",
"0.6770989",
"0.6770568",
"0.6770503",
"0.675... | 0.794129 | 0 |
Insert a new element in the heap | def JPHp(YKHO, H5ew):
RCoS = YKHO._append(H5ew)
while RCoS > 0 and (not YKHO.invariant(YKHO.queue[YKHO._parent(RCoS)], YKHO.queue[RCoS])):
YKHO._swap(RCoS, YKHO._parent(RCoS))
RCoS = YKHO._parent(RCoS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, U6D_):\n if YKHO.size >= YKHO.maxsize:\n return\n YKHO.size += 1\n YKHO.heap[YKHO.size] = U6D_\n jvSB = YKHO.size\n while YKHO.heap[jvSB] < YKHO.heap[YKHO.parent(jvSB)]:\n YKHO.swap(jvSB, YKHO.parent(jvSB))\n jvSB = YKHO.parent(jvSB)",
"def JPHp(YKHO, U6D_):\n ... | [
"0.8297305",
"0.82871103",
"0.8199893",
"0.81939006",
"0.8155535",
"0.79592925",
"0.78542435",
"0.7835472",
"0.7772689",
"0.7750564",
"0.7728166",
"0.77275497",
"0.77172077",
"0.77158546",
"0.7702932",
"0.7698201",
"0.76740354",
"0.76547915",
"0.76503694",
"0.7601831",
"0.755... | 0.71757615 | 43 |
Gets the locale indicating the localization preferences in effect for this session. | def rDcu(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rDcu(YKHO):\n return YKHO.locale",
"def NCqB(YKHO):\n return YKHO.__locale",
"def rDcu():\n YqMg = iGdG.query.filter(iGdG.name == 'default_language').first()\n if YqMg is not None:\n return YqMg.value\n return 'en'",
"def eezK(YKHO) -> str:\n return YKHO.locale",
"def eezK(YKHO... | [
"0.7804468",
"0.7696088",
"0.74375224",
"0.7410962",
"0.7078228",
"0.70252097",
"0.6997546",
"0.6985966",
"0.6979193",
"0.6946607",
"0.6714051",
"0.6628206",
"0.66240716",
"0.6612936",
"0.6522948",
"0.65122175",
"0.6497172",
"0.6491735",
"0.6491735",
"0.64521194",
"0.6435846"... | 0.7092342 | 4 |
Gets the Id of the agent authenticated to this session. This is the agent for which credentials are used either acquired natively or via an OsidProxyManager. | def ecHI(YKHO):
raise bfHs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ILdH(YKHO):\n return YKHO._agent_id",
"def Z3cr(YKHO):\n return YKHO.agentID",
"def ILdH(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def ILdH(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(... | [
"0.7752986",
"0.7454657",
"0.7396336",
"0.7388006",
"0.71379083",
"0.6750845",
"0.629788",
"0.6269507",
"0.6031791",
"0.5958287",
"0.5906277",
"0.5901723",
"0.5881248",
"0.5858327",
"0.5829377",
"0.5829377",
"0.5817326",
"0.57355756",
"0.5733917",
"0.57338774",
"0.57230216",
... | 0.7519342 | 1 |
Gets the agent authenticated to this session. This is the agent for which credentials are used either acquired natively or via an OsidProxyManager. | def iLIl(YKHO):
raise bfHs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOC2(YKHO):\n return YKHO._agent_session",
"def YWSi(YKHO) -> ahCL:\n return YKHO.__agent",
"def YWSi(YKHO):\n return YKHO.__agent",
"def ecHI(YKHO):\n raise bfHs()",
"def KUn3(YKHO):\n return YKHO._authentication",
"def KUn3(YKHO):\n return YKHO._authentication",
"def KUn3(YKHO):... | [
"0.736334",
"0.63454455",
"0.6252796",
"0.62275326",
"0.6124814",
"0.6124814",
"0.6124814",
"0.60690343",
"0.6015234",
"0.6014764",
"0.5955841",
"0.59468573",
"0.5800989",
"0.57626945",
"0.5744613",
"0.5735423",
"0.569829",
"0.56845397",
"0.56369615",
"0.56341386",
"0.5593551... | 0.682912 | 1 |
Gets the Id of the effective agent in use by this session. If is_authenticated() is true, then the effective agent may be the same as the agent returned by get_authenticated_agent(). If is_authenticated() is false, then the effective agent may be a default agent used for authorization by an unknwon or anonymous user. | def Bkzk(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecHI(YKHO):\n raise bfHs()",
"def ILdH(YKHO):\n return YKHO._agent_id",
"def ILdH(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def Z3cr(YKHO):\n return YKHO.agentID",
"def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'agent_id')",
"def ILdH(YKHO) ->... | [
"0.7221963",
"0.6807555",
"0.67212653",
"0.6650785",
"0.66123754",
"0.6557168",
"0.6005485",
"0.57500994",
"0.57089233",
"0.5552459",
"0.54570925",
"0.53353304",
"0.5301107",
"0.51133347",
"0.50961167",
"0.50832886",
"0.5036813",
"0.50328726",
"0.5031787",
"0.50028765",
"0.49... | 0.6844594 | 1 |
Gets the effective agent in use by this session. If is_authenticated() is true, then the effective agent may be the same as the agent returned by get_authenticated_agent(). If is_authenticated() is false, then the effective agent may be a default agent used for authorization by an unknwon or anonymous user. | def FdFT(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iLIl(YKHO):\n raise bfHs()",
"def YWSi(YKHO) -> ahCL:\n return YKHO.__agent",
"def VOC2(YKHO):\n return YKHO._agent_session",
"def YWSi(YKHO):\n return YKHO.__agent",
"def e19H(YKHO):\n MBUi = YKHO.context.solver\n ybN4 = MBUi.agent\n if ybN4 is None:\n return bOcc(YKHO, MBU... | [
"0.6512123",
"0.62206006",
"0.6087181",
"0.5974568",
"0.57936454",
"0.56758356",
"0.55208504",
"0.5484185",
"0.5480098",
"0.546138",
"0.5431785",
"0.53284425",
"0.53271234",
"0.5309125",
"0.5288015",
"0.52845126",
"0.518744",
"0.5185111",
"0.5154808",
"0.51448727",
"0.5144332... | 0.67028946 | 0 |
Gets the service date which may be the current date or the effective date in which this session exists. | def slWZ(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slWZ(YKHO):\n return YKHO.date",
"def slWZ(YKHO):\n return YKHO.date",
"def slWZ(YKHO):\n return YKHO.date",
"def slWZ(YKHO):\n return YKHO.date",
"def slWZ(YKHO):\n return YKHO.individual_session.session_date.strftime('%A')",
"def oQCR(YKHO) -> qcWV:\n return YKHO._founding_date",
... | [
"0.64192826",
"0.64192826",
"0.64192826",
"0.64192826",
"0.6415561",
"0.6355586",
"0.6329772",
"0.6117439",
"0.6095147",
"0.6077139",
"0.6024811",
"0.6024811",
"0.6024811",
"0.6016165",
"0.60125643",
"0.5981125",
"0.5964845",
"0.5911391",
"0.5900735",
"0.58788466",
"0.5875984... | 0.6090735 | 9 |
Gets the rate of the service clock. | def yn7Y(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yn7Y(YKHO):\n return YKHO.o.read_register(YKHO.dev_id, UnPQ)",
"def mX8I(YKHO, QpfX):\n try:\n return w8gK.toDouble(QpfX.getDevice('rate').read())\n except:\n return 60.0",
"def yn7Y(YKHO, N7ny=0):\n return tGN_.usrp_source_get_clock_rate(YKHO, N7ny)",
"def yn7Y(YKHO, N7ny=0):\n... | [
"0.7856558",
"0.7375736",
"0.7199443",
"0.7163289",
"0.71292406",
"0.7126433",
"0.7089856",
"0.7007626",
"0.6974138",
"0.69579595",
"0.6814983",
"0.6784404",
"0.67698187",
"0.67666143",
"0.6732454",
"0.66903704",
"0.6634214",
"0.660371",
"0.6590845",
"0.6501421",
"0.6490368",... | 0.79283404 | 0 |
Gets the ``DisplayText`` format ``Type`` preference in effect for this session. | def k65k(YKHO):
raise e6xC() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO.settings['type']",
"def VCFc(YKHO):\n return YKHO.currentText()",
"def aZNW(YKHO):\n return YKHO.properties.get('TypeDisplayName', None)",
"def type(YKHO):\n return YKHO.config['type']",
"def type(YKHO) -> str:\n return YKHO._config.get('type')",
"def type(YKH... | [
"0.6462867",
"0.63397276",
"0.62644506",
"0.6220455",
"0.61302227",
"0.6056963",
"0.6056963",
"0.6056963",
"0.6056963",
"0.6056963",
"0.6056963",
"0.6056963",
"0.6009008",
"0.5981776",
"0.59749043",
"0.5966238",
"0.5964747",
"0.5964747",
"0.5964747",
"0.5964747",
"0.5964747",... | 0.5703646 | 96 |
Set cursor to initial position and reset any shifting. | def kZiy(YKHO):
YKHO.command(YKHO.LCD_RETURNHOME)
YKHO._cursor_pos = (0, 0)
YKHO._msleep(2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def otdB(YKHO):\n YKHO.srcEditor.setFocus()\n YKHO.srcEditor.setCursorPosition(0, 0)",
"def iqFv(YKHO):\n YKHO.goto(g9Wj)",
"def PFPF(YKHO, N1p7):\n YKHO.setCursor(N1p7)",
"def JmTB(YKHO):\n YKHO._before = YKHO.rect.center\n YKHO.rect.center = YKHO._pos",
"def rTBL(YKHO, N1p7):\n YKHO.... | [
"0.7301333",
"0.7156913",
"0.6832239",
"0.6753845",
"0.6735567",
"0.65881354",
"0.65488964",
"0.6537869",
"0.6512461",
"0.64741045",
"0.6416567",
"0.6410083",
"0.6351167",
"0.63482004",
"0.63481396",
"0.63375026",
"0.63242936",
"0.6317947",
"0.62985647",
"0.6290773",
"0.62732... | 0.0 | -1 |
Create a given number of lists, each of random length, with members of random values. | def A6iT(Z5kt):
GXXz = lhOc(1, Z5kt)
FlUN = []
YRbF = 0
while YRbF < Z5kt:
MKlR = lhOc(1, GXXz[YRbF])
FlUN.append(MKlR)
YRbF += 1
return FlUN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOc2(zNig):\n DumB = [ajWY(0, EgdX) for YRbF in range(zNig)]\n return DumB",
"def KOc2(u54L: int) -> list:\n return [ajWY(0, u54L + 1) for bGrB in range(u54L)]",
"def lhOc(Z5kt, u54L):\n FlUN = []\n G1Hx = 0\n while G1Hx < Z5kt:\n XuXy = []\n r845 = 0\n while r845 < u... | [
"0.7305028",
"0.722813",
"0.7150562",
"0.7081302",
"0.7042063",
"0.69296753",
"0.68264735",
"0.68200797",
"0.68099",
"0.6770277",
"0.6686843",
"0.65391016",
"0.65385437",
"0.6511196",
"0.6507703",
"0.6505181",
"0.64895916",
"0.6468738",
"0.64414966",
"0.63877475",
"0.63853675... | 0.6645208 | 11 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
etR_ = cmPJ.get('enabled')
YEoN = cmPJ.get('lastUpdatedTimestampSecs')
zcJw = cmPJ.get('pinnedTimeSecs')
return Emd4(etR_, YEoN, zcJw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.0 | -1 |
Adds a shadow below the heraldry. | def SZFh(YKHO, EZX5: Image.Image) -> hnIv.Image:
EZX5 = EZX5.convert('RGBA')
eiUY, HB5d = EZX5.size
C2f8 = int(YKHO.height_change * HB5d)
d_UJ = hnIv.new('RGBA', (eiUY, C2f8))
JmFt = nuov.Draw(d_UJ)
ShLW = (0, int(YKHO.ell_start * HB5d))
nc23 = (eiUY - 1, C2f8 - 1)
JmFt.ellipse((*ShLW, *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1is(YKHO, yzQ0):\n dnR4 = lb4W.AttrWrap(lb4W.SolidFill(u'▒'), 'screen edge')\n n3tC = lb4W.AttrWrap(lb4W.SolidFill(u' '), 'main shadow')\n dnR4 = lb4W.Overlay(n3tC, dnR4, ('fixed left', 3), ('fixed right', 1), ('fixed top', 2), ('fixed bottom', 1))\n yzQ0 = lb4W.Overlay(yzQ0, dnR4, ('fixed left', ... | [
"0.6632981",
"0.6130922",
"0.61181265",
"0.5903479",
"0.586537",
"0.5839174",
"0.5710017",
"0.5542071",
"0.5522388",
"0.5430713",
"0.5354235",
"0.51987267",
"0.51782453",
"0.5175695",
"0.5171645",
"0.51545113",
"0.5105237",
"0.5093309",
"0.50763696",
"0.50645024",
"0.5048948"... | 0.0 | -1 |
Split a posix path in a sequence of segments, ignoring leading and trailing slash. Return an empty sequence for an empty path and the root /. | def lpha(XP5J):
if not XP5J:
return []
XP5J = XP5J.strip('/').split('/')
return [] if XP5J == [''] else XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _wv_(pmON):\n KCHu = []\n while True:\n cntZ, CsFy = khtY.split(pmON)\n KCHu.append(CsFy)\n if cntZ == '':\n break\n else:\n pmON = cntZ\n KCHu.reverse()\n if len(KCHu) == 1 and KCHu[0] == '':\n KCHu = []\n return KCHu",
"def eQ8x(pmON):... | [
"0.76887757",
"0.7443808",
"0.7363398",
"0.72058743",
"0.71917707",
"0.71667725",
"0.7108067",
"0.70994675",
"0.7040426",
"0.7009445",
"0.6993161",
"0.69681865",
"0.69562775",
"0.69082594",
"0.68829495",
"0.6822004",
"0.6809191",
"0.67252743",
"0.6716055",
"0.6680443",
"0.665... | 0.65662193 | 29 |
Open and reformat an existing YAML file. | def JVuX(qaEx: Union[Path, str]):
jQJk: GkAb = GkAb(qaEx)
UqpO = cCOh(typ='safe', pure=True).load(jQJk.open().read())
with cCOh(output=HwRy.stdout) as eJb6:
eJb6.indent(mapping=2, sequence=4, offset=2)
eJb6.width = bCVC
eJb6.dump(UqpO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N7NG(Ux0P, Csk6):\n if Hy7s.path.exists(Ux0P):\n CPBC = open(Ux0P, 'r')\n cCHH = eJb6.load(CPBC)\n CPBC.close()\n cCHH.update(Csk6)\n Csk6 = cCHH\n eHNT = open(Ux0P, 'w')\n eJb6.dump(Csk6, eHNT)\n eHNT.close()",
"def EVo3(wOb_, XXd_=None, jVkd={}):\n try:\n ... | [
"0.6552176",
"0.6470362",
"0.6302873",
"0.62923497",
"0.6249124",
"0.6230844",
"0.60740304",
"0.60624915",
"0.6007683",
"0.5957554",
"0.5952549",
"0.5932447",
"0.5922839",
"0.5921699",
"0.59083235",
"0.59078455",
"0.58742374",
"0.58724976",
"0.58721125",
"0.58653986",
"0.5844... | 0.58613974 | 20 |
Generates a 2D color map over the full range of evaluated a_scale and c_scale values. | def FDvj(YKHO):
LZpg = QrM1.figure(figsize=(10, 8))
Csk6 = int(len(YKHO.a_scale.flat) ** 0.5)
ilZY = YKHO.a_scale.reshape(Csk6, Csk6)
n01i = YKHO.c_scale.reshape(Csk6, Csk6)
F9S7 = YKHO.E_coh.reshape(Csk6, Csk6)
QrM1.pcolormesh(ilZY, n01i, F9S7)
QrM1.xlabel('xy linear deformation coefficient... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbD6(MYQr, XzMz=65, DCJx=(-12.473931189, 4.026068812), W6Pt=(-12.473931189, 4.026068812), ngai=False):\n R_ya = ['SPILUT 1.0\\n', '3 3\\n', f'{XzMz} {XzMz} {XzMz}\\n']\n for T3me in range(0, XzMz):\n for xNj9 in range(0, XzMz):\n for B4FT in range(0, XzMz):\n Z5Q9 = T3me ... | [
"0.6406457",
"0.6359",
"0.62324107",
"0.61863637",
"0.61705345",
"0.61130804",
"0.60638773",
"0.60593414",
"0.6027312",
"0.5983839",
"0.5935139",
"0.59160525",
"0.57776666",
"0.57385814",
"0.5669307",
"0.56633115",
"0.5656815",
"0.5628896",
"0.5592407",
"0.55864024",
"0.55631... | 0.55705374 | 20 |
String concatenation for 3 return 123 | def eHNT(exwG):
ovg3 = ''
for YRbF in range(1, exwG + 1):
ovg3 = ovg3 + str(YRbF)
return ovg3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZoRg(*IUb0):\n Q65B = len(IUb0)\n fo_2 = 'the {} numbers are: '\n fo_2 += ', '.join(['{}'] * Q65B)\n Aofo = fo_2.format(Q65B, *IUb0)\n print(Aofo)\n return Aofo",
"def SnfU(YKHO, exwG):\n hVLt = YKHO.get_pad(exwG)\n vIwR = hVLt + YKHO.c\n return vIwR",
"def TKoi(PXGI: ActiveUnit)... | [
"0.6349492",
"0.62483776",
"0.61320233",
"0.6128319",
"0.60556376",
"0.603567",
"0.5985412",
"0.5970065",
"0.59481984",
"0.59479177",
"0.59298694",
"0.59252703",
"0.5871543",
"0.5871543",
"0.5871543",
"0.5871543",
"0.58193415",
"0.58039516",
"0.5738851",
"0.5738561",
"0.57166... | 0.61277544 | 4 |
Tests that setdefault() enforces type. | def tUmv(YKHO):
r8hN = eh_L.StepBuildStatsMap()
with YKHO.assertRaises(AssertionError):
r8hN.setdefault(1, eh_L.BuildStats())
with YKHO.assertRaises(AssertionError):
r8hN.setdefault('1', 2)
r8hN.setdefault('1', eh_L.BuildStats())
YKHO.assertEqual(r8hN, {'1': eh_L.BuildStats()}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lTBL(YKHO):\n muwo = {yEHD.IntegerField: 10, yEHD.FloatField: 1.5, yEHD.BooleanField: False, yEHD.BytesField: b'abc', yEHD.StringField: u'abc'}\n\n def XeOP(o9Dx):\n o9Dx(1, default=muwo[o9Dx])\n YKHO.ActionOnAllFieldClasses(XeOP)\n muwo[yEHD.StringField] = 'abc'\n YKHO.ActionOnAllFieldCl... | [
"0.6519311",
"0.6443023",
"0.6395917",
"0.6329813",
"0.62367374",
"0.62212765",
"0.6211269",
"0.6186846",
"0.61577314",
"0.61095285",
"0.61051214",
"0.6088404",
"0.60230947",
"0.6018941",
"0.5994274",
"0.5966088",
"0.5951535",
"0.5931466",
"0.5914981",
"0.59051716",
"0.588685... | 0.5766903 | 36 |
Gets the exception_message of this AnalyticsErrorData. Exception message | def BuEc(YKHO):
return YKHO._exception_message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BuEc(YKHO) -> str:\n return qe4Y.get(YKHO, 'exception_message')",
"def jv0C(YKHO):\n try:\n return nNXP.Api.get_error_message(YKHO._session)\n except Bx6I.UnknownException:\n return '<error message irrecoverable>'",
"def jv0C(YKHO):\n return YKHO.error_message.get_error_message()"... | [
"0.8478082",
"0.75352764",
"0.7527172",
"0.7469979",
"0.74381447",
"0.742549",
"0.74037856",
"0.74037856",
"0.74037856",
"0.7386042",
"0.7323066",
"0.7183981",
"0.7155367",
"0.69997376",
"0.696728",
"0.6961492",
"0.6957033",
"0.6957033",
"0.6957033",
"0.6957033",
"0.6957033",... | 0.8177682 | 1 |
Gets the additional_data of this AnalyticsErrorData. Additional error data | def xzoi(YKHO):
return YKHO._additional_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzoi(YKHO):\n return YKHO._additional_data",
"def xzoi(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'additional_data')",
"def xzoi(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'additional_data')",
"def ITR9(YKHO):\n return YKHO._error_details",
... | [
"0.7174893",
"0.658628",
"0.658628",
"0.6396251",
"0.63079906",
"0.6300258",
"0.6218096",
"0.6102035",
"0.59971637",
"0.5893539",
"0.5884692",
"0.5828716",
"0.5824379",
"0.57225764",
"0.57067126",
"0.5690784",
"0.5609336",
"0.5546386",
"0.5519739",
"0.5519739",
"0.5519739",
... | 0.6756437 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, l9K3):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Return the actual start and end indices for the scenario. | def qaWY(YKHO, dGRV):
yKcO = 0
Os4s = YKHO.file_data_object.ColumnCount() - 1
UHFx = Os4s - (yKcO - 1)
return (yKcO, Os4s, UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1yY(YKHO):\n return (YKHO.i1, YKHO.i2)",
"def uvMl(YKHO):\n return (YKHO._start, YKHO._end)",
"def J8lb(YKHO, yKcO, Os4s, js_5):\n if js_5 is None:\n js_5 = oyIN.arange(YKHO.ind[yKcO].size)\n QyVM = oyIN.array([])\n for G1Hx, wEf2 in enumerate(js_5):\n QyVM = oyIN.append(QyVM,... | [
"0.6463832",
"0.64213645",
"0.64151794",
"0.6393901",
"0.62953895",
"0.623555",
"0.62239236",
"0.62206364",
"0.62168235",
"0.618782",
"0.61765003",
"0.61485356",
"0.61407834",
"0.61121595",
"0.6079777",
"0.60702366",
"0.606686",
"0.60546255",
"0.6034313",
"0.6031219",
"0.6020... | 0.7130046 | 0 |
This functions calculate the symmetric mean absolute percentage error | def n3m0(aJu6, N6Z1):
aJu6 = oyIN.array(aJu6)
N6Z1 = oyIN.array(N6Z1)
return oyIN.mean(oyIN.abs(aJu6 - N6Z1) * 2 / (oyIN.abs(aJu6) + oyIN.abs(N6Z1))) * 100 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0OV(OXDA: Tensor, OXTU: int) -> llWB:\n return OXDA / OXTU",
"def GmD5(OXDA: Tensor, OXTU: int) -> llWB:\n return OXDA / OXTU",
"def mcC1(aTLP: Tensor, pan_: Tensor, _hZ2: float=1.17e-06) -> AzJI[llWB, int]:\n PPMb(aTLP, pan_)\n gdEx = ht2j.abs(aTLP - pan_)\n a27m = gdEx / ht2j.clamp(ht2j.a... | [
"0.8291781",
"0.7593155",
"0.71223307",
"0.70615196",
"0.70566183",
"0.6988929",
"0.695041",
"0.6942653",
"0.6914424",
"0.6914424",
"0.67752194",
"0.6751963",
"0.6707073",
"0.6665173",
"0.6631768",
"0.6574137",
"0.65406275",
"0.64946234",
"0.6454658",
"0.64500624",
"0.6442887... | 0.6008068 | 59 |
Initialize a leastbias MLE container. | def FIMM(YKHO, nDnJ, vP5q):
YKHO.mubs = nDnJ
YKHO.p = nDnJ.p
YKHO.n = nDnJ.n
YKHO.dim = nDnJ.dim
YKHO.projectors = YKHO.generate_projectors(vP5q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)",
"def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)",
"def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)",
"def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.wei... | [
"0.6902147",
"0.6902147",
"0.6902147",
"0.6863267",
"0.6810703",
"0.6783141",
"0.6746204",
"0.6532718",
"0.64296067",
"0.63356227",
"0.6315565",
"0.6268932",
"0.6081495",
"0.6075826",
"0.6075826",
"0.6075826",
"0.6052565",
"0.5999604",
"0.599758",
"0.59904057",
"0.59904057",
... | 0.0 | -1 |
Generate the summary of current model, including on which datasets it was trained and validated, and some performance indices. The summary will be output into a given file. | def hk46(YKHO, Ty9i, Q71A, Kxs4, NwcV, YTjc, kj7T, b574):
hkHB = oyIN.sum((Ty9i - Q71A) ** 2) / len(Ty9i)
YbcW = NwcV['train_loss']
G1Hx = oyIN.sum((XP5J.numel() for XP5J in YKHO.parameters()))
hxba = len(Kxs4)
nHSx = 2 * G1Hx + hxba * oyIN.log(hkHB) + hxba * (1 + oyIN.log(2 * oyIN.pi))
J_rF = H... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGTl():\n print('\\n')\n print('=' * 30 + 'Model Structure' + '=' * 30)\n PwS0 = ZylS.trainable_variables()\n Fz20.model_analyzer.analyze_vars(PwS0, print_info=True)\n print('=' * 60 + '\\n')",
"def Ol3k(YKHO):\n XIcQ = ZylS.summary.merge_all()\n YKHO.file_writer = ZylS.summary.FileWrite... | [
"0.70949847",
"0.7013575",
"0.695076",
"0.6895299",
"0.6890566",
"0.6825545",
"0.6790239",
"0.67900527",
"0.6787803",
"0.67534465",
"0.67103666",
"0.66237247",
"0.6621788",
"0.6586185",
"0.65762806",
"0.6570374",
"0.65550524",
"0.6529702",
"0.64970154",
"0.64957935",
"0.64751... | 0.70710313 | 1 |
This function calculates duration when given start and end times. An empty string is returned if either of the time formats does not match '_format' format else, the duration is returned | def g9cu(SWox, C7pn):
VPot = '%Y-%m-%dT%H:%M:%S'
try:
bdZS = qcWV.datetime.strptime(SWox[:19], VPot)
b2ZK = qcWV.datetime.strptime(C7pn[:19], VPot)
except (TypeError, ValueError):
return ''
WbTE = (b2ZK - bdZS).total_seconds()
return WbTE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOze(cOxs, mZOz='hour'):\n assert mZOz in ['hour', 'minute'], \"Expected time_format should be either 'hour' or 'minute'\"\n WbTE = 0\n Ybt1 = ZbWC.findall('\\\\d+h', cOxs)\n if len(Ybt1) > 0:\n if mZOz == 'minute':\n WbTE += 60 * int(Ybt1[0][:-1])\n elif mZOz == 'hour':\n ... | [
"0.70786375",
"0.64201516",
"0.62948984",
"0.62119216",
"0.61082214",
"0.6072344",
"0.6036459",
"0.597245",
"0.59367007",
"0.5874113",
"0.5848648",
"0.58473426",
"0.58371603",
"0.5787057",
"0.5753106",
"0.5702904",
"0.5699164",
"0.5696649",
"0.56864434",
"0.56633043",
"0.5596... | 0.7125775 | 0 |
Get an existing Assessment resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Assessment':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = dict()
r6DL['additional_data'] = None
r6DL['display_name'] = None
r6DL['links'] = None
r6DL['metadata'] = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Assessment':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = me4P.__new__(me4P)\n r6DL.__dict__['additional_data'] = None\n r6DL.__dict__['display_name'] = None\n r6DL.__dict__... | [
"0.6898669",
"0.608855",
"0.5846438",
"0.5757699",
"0.5648362",
"0.55919707",
"0.5582545",
"0.55817664",
"0.55264586",
"0.55085826",
"0.550386",
"0.5496845",
"0.54861027",
"0.5467891",
"0.54414856",
"0.53757304",
"0.53509825",
"0.53232807",
"0.5311685",
"0.52735114",
"0.52480... | 0.6976486 | 0 |
List of Products. Returns a list of Products. | def NMoC(YKHO):
return msfn.query.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def uQsB(YKHO):\n bD7m = YKHO.base_url\n iN3H = YKHO.connection.make_get(bD7m)\n return ywEt(iN3H, YKHO)",
"def reuY(YKHO):\n geh0 = YKHO.productClient.list_products(parent=YKHO.locationPath)\n return [UAoi.Product._fr... | [
"0.87015533",
"0.8497107",
"0.7969578",
"0.7821406",
"0.77697885",
"0.77051586",
"0.7681446",
"0.7656539",
"0.754777",
"0.74543273",
"0.74203473",
"0.74067324",
"0.7367203",
"0.73342514",
"0.7328348",
"0.7268896",
"0.7201354",
"0.71769154",
"0.7154661",
"0.71310234",
"0.71209... | 0.73290336 | 14 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83695436",
"0.8280479",
"0.82485795",
"0.8114118",
"0.80985415",
"0.80940944",
"0.80797124",
"0.80677074",
"0.80673695",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.80569947",
"0.80545217",
"0.80448323",
"0.80448323",
"0.80... | 0.8139178 | 3 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83695436",
"0.8280479",
"0.82485795",
"0.8139178",
"0.8114118",
"0.80985415",
"0.80940944",
"0.80797124",
"0.80677074",
"0.80673695",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.80569947",
"0.80545217",
"0.80448323",
"0.804... | 0.79434115 | 39 |
Sets the before_revision of this FileChange. | def dIyY(YKHO, dIyY):
YKHO._before_revision = dIyY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _B1G(YKHO, h3Aq=18446744073709551615):\n YKHO.valid_before = h3Aq",
"def h7yn(YKHO, kNzm):\n kNzm = kNzm.current_revision\n YKHO.previous_revision = kNzm\n YKHO.deleted = kNzm.deleted\n YKHO.locked = kNzm.locked\n YKHO.revision_number = kNzm.revision_number + 1",
"def cbIk(L4A2, Sxvt):\n ... | [
"0.6202348",
"0.5513073",
"0.5319464",
"0.5302615",
"0.5298472",
"0.52577066",
"0.52544117",
"0.5179237",
"0.51743245",
"0.5171376",
"0.51636726",
"0.5062394",
"0.5034735",
"0.4956128",
"0.49531624",
"0.49466315",
"0.49409097",
"0.49349663",
"0.49184552",
"0.49180207",
"0.490... | 0.87934744 | 0 |
Sets the change_type of this FileChange. | def DH0r(YKHO, DH0r):
YKHO._change_type = DH0r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUMS(YKHO, zUMS):\n YKHO._change_type_comment = zUMS",
"def _AVc(YKHO, AIkQ, pXYp=None):\n if pXYp:\n YKHO._vim.command(str(pXYp) + 'bufdo set filetype=' + AIkQ)\n else:\n YKHO._vim.command('set filetype=' + AIkQ)",
"def q5sG(YKHO, q5sG):\n BbPm = [yt98, yt98, yt98]\n YKHO._fil... | [
"0.6886162",
"0.67108697",
"0.66363424",
"0.6518969",
"0.64535236",
"0.64535236",
"0.6391326",
"0.6333584",
"0.62933916",
"0.623873",
"0.6228941",
"0.6193701",
"0.61822885",
"0.6137471",
"0.61371565",
"0.6030581",
"0.60119706",
"0.5956398",
"0.59044904",
"0.5900229",
"0.58877... | 0.8040454 | 0 |
Sets the change_type_comment of this FileChange. | def zUMS(YKHO, zUMS):
YKHO._change_type_comment = zUMS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DH0r(YKHO, DH0r):\n YKHO._change_type = DH0r",
"def TDCb(YKHO, aM_I):\n YKHO.comment_ = aM_I",
"def TDCb(YKHO, aM_I):\n YKHO.comment_text = str(aM_I)",
"def TDCb(YKHO, YEnM, N1p7):\n if isinstance(YEnM, kPxV.T):\n YEnM.comment = N1p7.brief_comment\n return",
"def aM_I(YKHO, aM_I):... | [
"0.68443197",
"0.63174605",
"0.62499183",
"0.6095674",
"0.5972815",
"0.59029317",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.58620363",
"0.5816405",
"0.58124036",
"0.5710043",
"0.5694816",
"... | 0.87136745 | 0 |
initialize dungeon 2D matrix at (0,0) | def FIMM(YKHO, jHsn, pvd3, p6S0=0, BGSy=0):
YKHO.__nx = jHsn
YKHO.__ny = pvd3
YKHO.__ix = p6S0
YKHO.__iy = BGSy
YKHO.__current_room = (0, 0)
YKHO.__maze = [[uHxD(WKvO, LVAh) for LVAh in range(pvd3)] for WKvO in range(jHsn)]
YKHO.__entrance_room = (0, 0)
YKHO.__exit_room = (0, 0)
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFny(YKHO):\n YKHO.board = oyIN.zeros(shape=(P5Bq, P5Bq), dtype=oyIN.int)\n hgjH = int(P5Bq / 2)\n YKHO.board[hgjH - 1][hgjH - 1] = YKHO.board[hgjH][hgjH] = eJVO\n YKHO.board[hgjH][hgjH - 1] = YKHO.board[hgjH - 1][hgjH] = XDQs\n YKHO.black_piece = 2\n YKHO.white_piece = 2",
"def FCbF(YKHO):... | [
"0.6613497",
"0.6560392",
"0.6477615",
"0.64108104",
"0.6331541",
"0.6319846",
"0.62975204",
"0.6283496",
"0.62268895",
"0.6204423",
"0.61817783",
"0.6147999",
"0.6147266",
"0.6121988",
"0.60712343",
"0.6066323",
"0.6064501",
"0.60114944",
"0.5986255",
"0.59663147",
"0.5959",... | 0.61818796 | 10 |
This function plots the locations received in locations. For each plane. | def yboC(YKHO, P9qe, JbSN, BeuJ=''):
YT0d = [[1, 2], [2, 0], [1, 0]]
xlnP = str(P9qe.shape)
XYWb(YKHO._output_folder)
for OVYF, V_xM in enumerate(JbSN):
QrM1.subplots(1, 3, squeeze=True, figsize=(8 * 3, 8))
for DZYi, kEC0 in enumerate([j95q.AXIAL, j95q.SAGITTAL, j95q.CORONAL]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Iv(YKHO):\n if len(YKHO._laserX) > 0:\n YKHO._plot_laser()\n if len(YKHO._goalX) > 0:\n YKHO._plot_goal()\n if len(YKHO._summitX) > 0:\n YKHO._plot_summit()\n YKHO._plot_objects()\n YKHO._fig.canvas.draw_idle()\n QrM1.pause(0.01)",
"def gpg2(YKHO):\n JbSN = oyIN.ar... | [
"0.645177",
"0.63118374",
"0.6290234",
"0.6243402",
"0.61864",
"0.6154986",
"0.61119133",
"0.60129184",
"0.5971644",
"0.5963406",
"0.5945746",
"0.59347254",
"0.59287536",
"0.5895862",
"0.5885713",
"0.58662426",
"0.58484536",
"0.58277434",
"0.58275765",
"0.58133143",
"0.57569"... | 0.67796236 | 0 |
Get lattice trajectory for this species | def E9ZB(YKHO, **B2fa):
return YKHO._sim.getLatticeTrajectory(species=YKHO, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9ZB(YKHO, njyT=None, oMqC=None, KYuB='', wwZP=None, ucbC=None, Zrla=None, QkSv=None, dgoV=None):\n furA = YKHO._speciesIdParse(njyT, oMqC, startIndex=1)\n dDEr = YKHO._replicateParse(wwZP)\n if len(dDEr) > 1:\n raise ValueError('only one replicate may be specified')\n wwZP = '{:07d}'.format... | [
"0.7017326",
"0.6926714",
"0.6447697",
"0.64420426",
"0.6381539",
"0.62476164",
"0.61814946",
"0.61795",
"0.61740625",
"0.60476863",
"0.60069007",
"0.5940654",
"0.58516616",
"0.5834513",
"0.5798589",
"0.57394564",
"0.5706165",
"0.56750846",
"0.56362385",
"0.56204873",
"0.5604... | 0.8411809 | 0 |
A torch.nn.Linear layer modified to accept ND arrays. The function treats the last dimension of the input as the hidden dimension. | def FIMM(YKHO, *qIxc):
super(byfJ, YKHO).__init__()
YKHO.fc = U78l.Linear(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z8o0(*qIxc, **B2fa):\n return U78l.Linear(*qIxc, **B2fa)",
"def hLBI(YwQk, Sqw_):\n g4y1 = ht2j.randn(Sqw_, dtype=ht2j.float64).requires_grad_(True)\n oug5 = ht2j.ones((), dtype=ht2j.float64).requires_grad_(True)\n yvT9 = YwQk(g4y1, oug5)\n gEmA = U78l.Linear(Sqw_, len(yvT9))\n for YRbF, WK... | [
"0.7006662",
"0.6864803",
"0.68038845",
"0.6651408",
"0.65991056",
"0.64609647",
"0.6449197",
"0.64406705",
"0.6440056",
"0.63175344",
"0.6251693",
"0.6213363",
"0.61091083",
"0.60789734",
"0.6062596",
"0.6052996",
"0.6026013",
"0.60021937",
"0.5975619",
"0.5975619",
"0.59529... | 0.6491541 | 5 |
Module which Performs a single attention step along the second axis of a given encoded input. The module uses both 'content' and 'location' based attention. The 'content' based attention is an inner product of the decoder hidden state with each timestep of the encoder state. The 'location' based attention performs a 1D... | def FIMM(YKHO, Ot1W=11, r_Jp=False):
super(eQfQ, YKHO).__init__()
assert Ot1W % 2 == 1, "Kernel size should be odd for 'same' conv."
dvgN = (Ot1W - 1) // 2
YKHO.conv = U78l.Conv1d(1, 1, Ot1W, padding=dvgN)
YKHO.log_t = r_Jp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v2uf(vkAz, vFZ1=None, HXeF=None, YPaw=None):\n with jj4W.variable_scope('Attention'):\n QHji = z8o0(vkAz, cshM, True)\n QHji = ZylS.expand_dims(ZylS.expand_dims(QHji, 1), 1)\n\n def MNre(tTpl, q5_r):\n if VUc4 is not None:\n q5_r = ZylS.reshape(VUc4, [Ep8u, -1]... | [
"0.62389654",
"0.58269596",
"0.57273686",
"0.57197255",
"0.5690072",
"0.5633591",
"0.5618507",
"0.55358034",
"0.5471132",
"0.5466309",
"0.5400914",
"0.5393043",
"0.5391463",
"0.53879094",
"0.5381379",
"0.5352664",
"0.53351927",
"0.53224415",
"0.52958125",
"0.52915615",
"0.528... | 0.0 | -1 |
Does the Message model fail to create a new message without a valid user? | def b9lJ(YKHO):
rzh4 = mv1M()
Ol8d = LuKW(text='User1 did it again!', user_id=rzh4.id)
NCls.session.add(Ol8d)
with YKHO.assertRaises(BQDi.IntegrityError) as QpfX:
NCls.session.commit()
NCls.session.rollback()
yEHD = LuKW.query.all()
YKHO.assertEqual(len(yEHD), 2)
YKHO.assertIsNon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vlM9(YKHO):\n r8hN = LuKW(text=None, user_id=None)\n NCls.session.add(r8hN)\n with YKHO.assertRaises(BQDi.IntegrityError) as QpfX:\n NCls.session.commit()",
"def Qnkj(YKHO):\n Ol8d = LuKW(text='User1 did it again!', user_id=YKHO.user1.id)\n NCls.session.add(Ol8d)\n NCls.session.commi... | [
"0.7403182",
"0.73859286",
"0.68559307",
"0.6736397",
"0.6666585",
"0.6631041",
"0.6593317",
"0.65893406",
"0.6588654",
"0.65799457",
"0.6579842",
"0.6574248",
"0.6573435",
"0.65682435",
"0.6566206",
"0.6566206",
"0.6566206",
"0.6566206",
"0.6566206",
"0.6563363",
"0.65576166... | 0.717715 | 2 |
Close the session. This removes the session from the cache. Also invokes the session specific _close method | async def close(YKHO):
try:
YKHO.logger.debug('Closing session')
if YKHO.key in YKHO._ALL_SESSIONS:
del YKHO._ALL_SESSIONS[YKHO.key]
finally:
YKHO.inc_counter('%s.closed' % YKHO.objname)
await YKHO._close()
if YKHO._cmd_stream is not None:
YKHO._cm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x9p9(YKHO):\n YKHO.sess.close()",
"def DDI8(YKHO):\n if YKHO._session:\n Wswm = id(YKHO._session)\n YKHO._session.close()\n del YKHO._session\n YKHO._session = None\n if G9jH:\n tO9_ = u'Internal requests Session instance 0x{0:x} closed and cleaned up'\n ... | [
"0.7730243",
"0.77043116",
"0.76863873",
"0.7644618",
"0.7644618",
"0.7644618",
"0.7586185",
"0.7582353",
"0.7582353",
"0.7582353",
"0.7582353",
"0.7582353",
"0.7582353",
"0.74389434",
"0.7250939",
"0.7247569",
"0.7241603",
"0.71568507",
"0.7137865",
"0.71285945",
"0.7117027"... | 0.6951004 | 26 |
Change the identifier of the segment. | def TNuv(YKHO, Ilxn):
YKHO._line[7] = YKHO._speaker = Ilxn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xTW_(YKHO, xTW_):\n YKHO._segment_id = xTW_",
"def Dk_u(*qIxc):\n return jKuN.set_segm_name(*qIxc)",
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn",
"def V_9M(YKHO, qdJE, Ilxn):\n ccKF.setAttr('%s.identifier' % qdJE, Ilxn)",
"def cohK(YKHO, Ilxn):\n YKHO._config['identifier'] = Ilxn",
... | [
"0.7073178",
"0.66745204",
"0.64599574",
"0.6352423",
"0.6322253",
"0.6322253",
"0.628801",
"0.62162435",
"0.62162435",
"0.6148436",
"0.6101377",
"0.60976195",
"0.6068192",
"0.6068192",
"0.6068192",
"0.6068192",
"0.60515296",
"0.6048288",
"0.60070395",
"0.5974675",
"0.5960536... | 0.61981857 | 9 |
Get the basename of the original file which belong the segment. | def sYT0(YKHO):
return YKHO._basename | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QCG8(YKHO):\n return YKHO._basename[:]",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO.filepath)",
"def aPr_(YKHO):\n return sYT0(YKHO.filename)",
"def sYT0(nUeQ: Union[str, FileStorage]) -> str:\n Ux0P = xbwC(nUeQ)\n return Hy7s.path.split(Ux0P)[1]",
"def aPr_(YKHO):\n return YKH... | [
"0.80253524",
"0.79687834",
"0.7951818",
"0.766886",
"0.76359713",
"0.7601622",
"0.75831234",
"0.75487036",
"0.7534679",
"0.7485783",
"0.7458139",
"0.7430497",
"0.74216294",
"0.73920643",
"0.73787576",
"0.7360817",
"0.73464286",
"0.7340316",
"0.73129195",
"0.7283998",
"0.7223... | 0.7475746 | 10 |
Get the duration of the segment in frames. | def EdTY(YKHO):
return YKHO._duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdTY(YKHO):\n Hv7J = YKHO.get_frame_duration()\n c1sR = YKHO.get_num_frames()\n liRQ = Hv7J * (c1sR - 1)\n return liRQ",
"def EdTY(YKHO):\n ucAY = YKHO.stream.InitialTimeToWaitGet()\n ucAY += YKHO.stream.NumberOfFramesGet() * YKHO.stream.InterFrameGapGet()\n return qcWV.timedelta(seconds... | [
"0.79879093",
"0.78732544",
"0.7695085",
"0.7688166",
"0.75969994",
"0.7584953",
"0.7564719",
"0.75522804",
"0.75312513",
"0.75020176",
"0.74944216",
"0.7471398",
"0.7465103",
"0.7464088",
"0.7435096",
"0.74231434",
"0.7414718",
"0.73845965",
"0.73845965",
"0.7380526",
"0.735... | 0.71796036 | 31 |
Get the mean of all the scores of all the tested speakers for the cluster. | def DH4Z(YKHO):
try:
return sum(YKHO.speakers.values()) / len(YKHO.speakers)
except ZeroDivisionError:
return 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1Qc(YKHO):\n return oyIN.mean(YKHO.average_scores_all_subjects(), axis=0)",
"def aMJW(YKHO):\n aFge = YKHO.__data.shape[0]\n yvT9 = oyIN.zeros([aFge, 1])\n for exwG in range(1, 6):\n JBMS = oyIN.mean(YKHO.__data[..., (exwG - 1) * 5:(exwG - 1) * 5 + 5], axis=1)\n yvT9 = oyIN.concate... | [
"0.6926226",
"0.67451257",
"0.6706256",
"0.6495938",
"0.6320119",
"0.6288724",
"0.6260492",
"0.6196821",
"0.61864597",
"0.6171327",
"0.6153433",
"0.6143123",
"0.61343485",
"0.61325634",
"0.61306757",
"0.61113346",
"0.6105421",
"0.60975885",
"0.60751086",
"0.6073779",
"0.60003... | 0.6891873 | 1 |
Get the cluster name assigned by the diarization process. | def W0tD(YKHO):
return YKHO._label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO._data['cluster_name']",
"def c0yN(YKHO):\n re... | [
"0.8726651",
"0.8726651",
"0.8613659",
"0.85789484",
"0.8527709",
"0.8194999",
"0.8194999",
"0.8154644",
"0.8154644",
"0.8154644",
"0.8154644",
"0.8154644",
"0.7700867",
"0.75422853",
"0.75422853",
"0.75422853",
"0.75422853",
"0.7497749",
"0.7462727",
"0.7462727",
"0.7462727"... | 0.0 | -1 |
Get the computed gender of the Cluster. | def xVNR(YKHO):
eK5b = {'M': 0, 'F': 0, 'U': 0}
apMV = False
for pG0V in YKHO._segments:
SdUC = pG0V.get_gender()
if SdUC != YKHO.gender:
apMV = True
eK5b[SdUC] += pG0V.get_duration()
if apMV:
if eK5b['M'] > eK5b['F']:
return 'M'
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVNR(YKHO):\n return YKHO._gender",
"def xVNR(YKHO):\n return YKHO._gender",
"def xVNR(YKHO):\n IoKf = dict(cbnN)\n return IoKf.get(YKHO.gender, 'N/A')",
"def EE3v(YKHO):\n return YKHO._gender",
"def EE3v(YKHO):\n return YKHO._gender",
"def EE3v(YKHO):\n return YKHO._gender",
"... | [
"0.7155781",
"0.7155781",
"0.7139811",
"0.7103736",
"0.7103736",
"0.7088327",
"0.70465493",
"0.69824356",
"0.6803729",
"0.657426",
"0.6566423",
"0.6500933",
"0.6346209",
"0.62580127",
"0.6185854",
"0.6152301",
"0.6016605",
"0.58826834",
"0.5873709",
"0.58622324",
"0.5803767",... | 0.70063156 | 7 |
Get the distance between the best speaker score and the mean of all the speakers' scores. | def JNv5(YKHO):
BWXx = max(YKHO.speakers.values())
return abs(abs(BWXx) - abs(YKHO.get_mean())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b1SJ(YKHO, FGDV, RtIy, SaXj):\n iXBJ, z8Se = SaXj.get_avg_distance_from_players(RtIy)\n p1kx = (z8Se - iXBJ) * F9Zt\n p1kx += YKHO.__score_by_strong_enemy_close_to_me(FGDV)\n return p1kx",
"def Ayfi(YKHO):\n if len(YKHO._scores < 2):\n return 0.0\n return YKHO[-1] - YKHO[-2]",
"def... | [
"0.65668756",
"0.6529025",
"0.64823836",
"0.64821345",
"0.6472057",
"0.6326368",
"0.63147455",
"0.6272914",
"0.61822516",
"0.61243105",
"0.6005149",
"0.59904414",
"0.5932793",
"0.593212",
"0.5915684",
"0.59090906",
"0.5893719",
"0.5886076",
"0.5854646",
"0.5850683",
"0.584646... | 0.6995156 | 0 |
A dictionary representation of a Cluster. | def MNRr(YKHO):
dvBM = YKHO.get_speaker()
VytY = []
for pG0V in YKHO._segments:
jbXL = pG0V.get_line()[2:]
jbXL[-1] = dvBM
jbXL[0] = int(pG0V.get_start())
jbXL[1] = int(pG0V.get_end())
jbXL.append(YKHO.get_name())
jbXL[3] = YKHO.speakers
VytY.append(jb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIWO(YKHO) -> cuzp[str, ImMB]:\n pass",
"def BDRs(YKHO):\n l5lk = YKHO.cluster_description.get('certificateAuthority', {}).get('data', '')\n w2IS = YKHO.cluster_description.get('endpoint')\n hMqs = YKHO.cluster_description.get('arn')\n return U8Lr([('cluster', U8Lr([('certificate-authority-dat... | [
"0.7668061",
"0.764446",
"0.69203264",
"0.6898244",
"0.6874661",
"0.68260485",
"0.681854",
"0.6807015",
"0.68002766",
"0.6641602",
"0.6619998",
"0.6599635",
"0.65380716",
"0.6503121",
"0.6494254",
"0.64781064",
"0.6474969",
"0.646024",
"0.646024",
"0.6451251",
"0.64232576",
... | 0.0 | -1 |
Build a Voiceid object from json dictionary. | def jG8h(QNb_, YGFP):
TN1U = IFWD(QNb_, YGFP['url'])
TLI7 = Hy7s.path.splitext(YGFP['url'])[0]
try:
for TpU3 in YGFP['selections']:
cGZz = TN1U.get_cluster(TpU3['speakerLabel'])
if not cGZz:
cGZz = PwH5(TpU3['speaker'], TpU3['gender'], 0, TLI7, TpU3['speakerLa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def refC(QNb_, ei1D):\n bvjL = open(ei1D, 'r')\n uMnn = eval(bvjL.read())\n bvjL.close()\n return IFWD.from_dict(QNb_, uMnn)",
"def pktP(mWFP, CilE):\n return cjbs(mWFP, subscriptions=CilE)",
"def pktP(Emd4, zgjV):\n HMVl = Emd4()\n HMVl._name = zgjV['RoleName']\n HMVl._id = zgjV['RoleI... | [
"0.69945544",
"0.5648415",
"0.5617641",
"0.561439",
"0.55966216",
"0.55764276",
"0.5550436",
"0.5507606",
"0.550027",
"0.54920006",
"0.54899466",
"0.54551107",
"0.5431207",
"0.5408726",
"0.5390638",
"0.538844",
"0.53882676",
"0.5363679",
"0.5361069",
"0.5360452",
"0.5356601",... | 0.6747471 | 1 |
Get a string representation of the working status. | def lteE(YKHO):
return YKHO.working_map[YKHO.get_status()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqCf(YKHO):\n return u'%s' % YKHO.get_status_display()",
"def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()",
"def q44o(YKHO, KAOR):\n return KAOR.get_status_string()",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'st... | [
"0.8019109",
"0.7975699",
"0.79198766",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
"0.75144947",
... | 0.70604336 | 71 |
Get the name of the current working file. | def yFjF(YKHO):
return YKHO._filename | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jso9(YKHO):\n return Hy7s.path.basename(YKHO.filePath)",
"def W0tD(YKHO) -> str:\n return Hy7s.path.split(Hy7s.getcwd())[-1]",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def mWFP(YKHO):\n try:\n return YKHO._name\n except AttributeError:\n if YKHO.is_task:\n ... | [
"0.8321261",
"0.81622577",
"0.7682307",
"0.7539434",
"0.752219",
"0.7474185",
"0.74405247",
"0.7420354",
"0.7371932",
"0.7363822",
"0.7363822",
"0.73613465",
"0.73482436",
"0.7335862",
"0.7331342",
"0.72999376",
"0.7289677",
"0.7289677",
"0.7289677",
"0.7289677",
"0.7289677",... | 0.6773734 | 44 |
Get the basename of the current working file. | def QCG8(YKHO):
return YKHO._basename[:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jso9(YKHO):\n return Hy7s.path.basename(YKHO.filePath)",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO.filepath)",
"def aPr_(YKHO):\n return sYT0(YKHO.filename)",
"def W0tD(YKHO) -> str:\n return Hy7s.path.split(Hy7s.getcwd())[-1]",
"def aPr_(YKHO) -> str:\n return YKHO._basename",
... | [
"0.8566013",
"0.8267794",
"0.8218406",
"0.80445504",
"0.79813904",
"0.7963343",
"0.7919816",
"0.78478307",
"0.78411263",
"0.7695016",
"0.76162845",
"0.7531541",
"0.74814236",
"0.7455174",
"0.7398454",
"0.7353852",
"0.7302331",
"0.72477394",
"0.7235953",
"0.7223424",
"0.718027... | 0.8231696 | 2 |
Get a the cluster by a given label. | def iBC6(YKHO, UXqs):
try:
return YKHO._clusters[UXqs]
except KeyError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OW9r(qC6E, UXqs):\n for hSV1 in qC6E:\n if hSV1.label == UXqs:\n return hSV1\n return None",
"def zWug(OaeV, c0yN, B5PH):\n bNKA = OaeV.obj.groups.byName[B5PH].get().data\n hKn5 = OaeV.obj.groups[bNKA.id].clusters[c0yN].get()\n CgYo(hKn5.data)",
"def EYTi(c0yN):\n lMgp =... | [
"0.80865425",
"0.696269",
"0.6649433",
"0.6628766",
"0.6443023",
"0.6337753",
"0.62819487",
"0.6276757",
"0.6247835",
"0.60477424",
"0.6032691",
"0.6026451",
"0.6008381",
"0.60022515",
"0.60011315",
"0.5971974",
"0.5909002",
"0.59089",
"0.5906325",
"0.5886822",
"0.5862034",
... | 0.87666386 | 0 |
A dictionary map between speaker label and speaker name. | def VvQl(YKHO):
AwTT = {}
for cGZz in YKHO:
AwTT[cGZz] = YKHO[cGZz].get_speaker()
return AwTT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVkc(bNIn, rSnY):\n Gfmo = {}\n Crrw = rSnY.row_values(0)\n for begg in range(rSnY.nrows):\n if rSnY.cell(begg, 0).value == bNIn:\n A1nw = rSnY.row_values(begg)\n for YRbF in Crrw:\n Gfmo.update({YRbF: A1nw[Crrw.index(YRbF)]})\n return (bNIn, Gfmo... | [
"0.6003273",
"0.5573023",
"0.5573023",
"0.5573023",
"0.5573023",
"0.5573023",
"0.5573023",
"0.5573023",
"0.5573023",
"0.53526247",
"0.5348455",
"0.533809",
"0.52681375",
"0.5250732",
"0.52422416",
"0.5241646",
"0.51795095",
"0.5129099",
"0.51228416",
"0.5084027",
"0.5037615",... | 0.70194346 | 0 |
Return a JSON representation for the clustering information. | def MNRr(YKHO):
Op6c = {'duration': YKHO.get_duration(), 'url': YKHO._filename, 'db': YKHO.get_db().get_path(), 'selections': []}
for pG0V in YKHO.get_time_slices():
Op6c['selections'].append({'startTime': float(pG0V[0]) / 100.0, 'endTime': float(pG0V[1]) / 100.0, 'speaker': pG0V[-2], 'speakerLabel': pG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO):\n Ykqe = {'clusters': [], 'matchings': None}\n if YKHO.matching is not None:\n Ykqe['matchings'] = YKHO.matching\n elif YKHO.matched is not None:\n Ykqe['matchings'] = YKHO.matched\n for Huo2 in YKHO.get_observation_ids():\n lY0q = YKHO.get_clustering_at(Huo2)\n ... | [
"0.79477066",
"0.74783784",
"0.7406057",
"0.7201003",
"0.71693677",
"0.7101315",
"0.6866379",
"0.68645537",
"0.6557246",
"0.655687",
"0.6555862",
"0.6553548",
"0.64462173",
"0.6427522",
"0.6420563",
"0.6383025",
"0.63428354",
"0.63428354",
"0.6294106",
"0.6280702",
"0.6228394... | 0.0 | -1 |
Iterates over lines of Markdown, normalizing for individual display. Generated Markdown HTML cannot by itself be handled on a perlinebasis. Code blocks, for example, will consist of multiple lines of content contained within a tag. Likewise, lists will be a bunch of tags inside a tag, and individually do not form valid... | def vFve(qTNF):
Ziit = PlgR(qTNF)
for Q6kx in Ziit:
if Q6kx.nodeType == Q6kx.ELEMENT_NODE:
if Q6kx.tagName == 'div' and Q6kx.attributes.get('class', 'codehilite'):
for zFiD in Q6kx.toxml().splitlines():
yield ('<pre>%s</pre>' % zFiD)
elif Q6kx.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(BhCH):\n BhCH = BhCH.split('\\n')\n SDiR = ''\n d6pt = -1\n while d6pt < len(BhCH) - 1:\n d6pt += 1\n zFiD = BhCH[d6pt]\n if len(zFiD) >= 3 and zFiD[:3] == '```':\n qenr = ''\n rQow = zFiD[3:].replace(' ', '')\n if len(rQow) == 0:\n ... | [
"0.6367926",
"0.63417673",
"0.6156236",
"0.61144125",
"0.6072423",
"0.59815973",
"0.5899683",
"0.5897685",
"0.58231497",
"0.5807839",
"0.5731576",
"0.5624603",
"0.55875534",
"0.5586435",
"0.5507304",
"0.54774076",
"0.54726857",
"0.54354686",
"0.5326293",
"0.5302189",
"0.52381... | 0.79784155 | 0 |
Returns an XML element tree for Markdowngenerated HTML. This will build the tree and return all nodes representing the rendered Markdown content. | def PlgR(qTNF):
if isinstance(qTNF, jKi7.text_type):
qTNF = qTNF.encode('utf-8')
A97Q = dHvf(b'<html>%s</html>' % qTNF)
return A97Q.childNodes[0].childNodes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J_Es(YKHO):\n return _R2e.fragment_fromstring(YKHO.html)",
"def _cZr(YKHO):\n CBZq = ['extra', 'codehilite', 'admonition', 'toc', 'smarty', 'sane_lists', 'wikilinks']\n u4dI = {'toc': {'anchorlink': False, 'permalink': False}}\n yAKl = 'html5'\n J87D = mSjq.Markdown(extensions=CBZq, extension_... | [
"0.66214055",
"0.64966714",
"0.6360917",
"0.6306511",
"0.62469065",
"0.62069374",
"0.6103946",
"0.6065871",
"0.6001586",
"0.5988472",
"0.5916315",
"0.5828224",
"0.582414",
"0.5819179",
"0.5804732",
"0.5772368",
"0.57495826",
"0.5692954",
"0.5685884",
"0.5685884",
"0.5673443",... | 0.67252696 | 0 |
This function prints and plots the confusion matrix. Normalization can be added by setting `normalize=True` | def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
KndY = KndY[OrFa(Y8eF, aMgO)]
if NkkI:
Bcwd = B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81597805",
"0.8098206",
"0.8048627",
"0.8033019",
"0.80291116",
"0.80098367",
"0.79907125",
"0.79894966",
"0.79864585",
"0.7983479",
"0.7968744",
"0.7954197",
"0.79536504",
"0.7952214",
"0.79448426",
"0.79444736",
"0.7939714",
"0.7939605",
"0.7932992",
"0.79303175",
"0.792... | 0.0 | -1 |
return the associated column for a song enum, EnumSong.Artist. EnumSong.Title, etc | def CUXk(YKHO, FcvY, JVDJ=False):
for fvDH in YKHO.columns:
if fvDH.index == FcvY:
return fvDH
if JVDJ:
for fvDH in YKHO.columns_hidden:
if fvDH.index == FcvY:
return fvDH
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ds8R(FZNe, iid8):\n FZNe = TDPV[FZNe] if FZNe in TDPV else FZNe\n return XLL2.get_model('ahj_app', FZNe).objects.get(Value=iid8)",
"def kVXS(YKHO):\n for TZ9E in YKHO.AVAILABLE_TAG:\n if TZ9E in YKHO.fields:\n return TZ9E\n YXxD = 'No radio column in the table : {}'\n raise F... | [
"0.5182838",
"0.5142454",
"0.49371114",
"0.48617473",
"0.48571903",
"0.48360357",
"0.48263884",
"0.47503945",
"0.4734594",
"0.4668488",
"0.46427736",
"0.4622428",
"0.46041307",
"0.46024114",
"0.45868436",
"0.45504448",
"0.4544974",
"0.4540331",
"0.4539291",
"0.45196822",
"0.4... | 0.65322256 | 0 |
Get the latest (last) point on the plot. Returns None if there are no points. | def pGiD(YKHO):
if len(YKHO.points) == 0:
return None
return YKHO.points[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAqs(YKHO):\n return YKHO.pointlist[-1]",
"def fsbt(YKHO):\n return YKHO.series.tail(1)[0]",
"def _lB5(YKHO):\n if YKHO.length() > 0:\n return YKHO.candles[0]\n else:\n return None",
"def XVAW(YKHO):\n return YKHO.last and YKHO.last.value or None",
"def FrVQ(YKHO):\n ret... | [
"0.7270221",
"0.72211266",
"0.6671898",
"0.66274965",
"0.6573031",
"0.6498714",
"0.6471897",
"0.6471897",
"0.6471897",
"0.64390147",
"0.64125675",
"0.64053965",
"0.64010775",
"0.63554054",
"0.63535255",
"0.63467973",
"0.6319469",
"0.6318203",
"0.6262697",
"0.62308115",
"0.622... | 0.8550339 | 0 |
Default formatter for XAxis labels. | def YN4e(YKHO, Ty9i):
return '%.4g' % Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMv8(YKHO, aNZO):\n aNZO.set_xlim(xmin=YKHO.begin_num, xmax=YKHO.end_num)\n gzVs = BJsk.PrettyDateLocator()\n jQ3Z = BJsk.PrettyDateFormatter(gzVs)\n aNZO.xaxis.set_major_locator(gzVs)\n aNZO.xaxis.set_major_formatter(jQ3Z)\n aNZO.xaxis.set_clip_on(False)\n UH90 = BJsk.PrettyScalarFormatte... | [
"0.73315",
"0.6664795",
"0.6424091",
"0.62352854",
"0.6235065",
"0.6230851",
"0.6136259",
"0.6132022",
"0.61223793",
"0.59372246",
"0.591438",
"0.58289975",
"0.5807993",
"0.5797432",
"0.57358587",
"0.5722705",
"0.56184447",
"0.56122273",
"0.5515865",
"0.54914325",
"0.5474417"... | 0.0 | -1 |
Gets the description of this OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties. | def JBZA(YKHO) -> w4ot:
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def w53f(YKHO) -> h8nf[qe4Y.Input['DevToolPortalSsoPropertiesArgs']]:\n return qe4Y.get(YKHO, 'sso_properties')",
"def w53f(YKHO) -> h8nf[qe4Y.Input['SsoPro... | [
"0.6093174",
"0.5598702",
"0.54712",
"0.54712",
"0.53227586",
"0.5292757",
"0.52438897",
"0.49291903",
"0.4915467",
"0.48937482",
"0.48899868",
"0.4822074",
"0.48068905",
"0.4779492",
"0.47431046",
"0.47246364",
"0.468339",
"0.46542126",
"0.46536496",
"0.46378964",
"0.4634466... | 0.43335038 | 46 |
Gets the overrides of this OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties. | def If3P(YKHO) -> tpYs:
return YKHO._overrides | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def Y6ys(YKHO):\n return tuple(YKHO._json_obj.get('component_overrides', {}).items())",
"def w53f(YKHO) -> h8nf[qe4Y.Input['SsoPropertiesArgs']]:\n retur... | [
"0.61039174",
"0.55866736",
"0.5277075",
"0.5277075",
"0.5275095",
"0.52136475",
"0.52123785",
"0.51725435",
"0.5122069",
"0.5065801",
"0.5028448",
"0.5019726",
"0.5004688",
"0.49773896",
"0.4929419",
"0.49036485",
"0.4865083",
"0.47658437",
"0.47552878",
"0.4752538",
"0.4745... | 0.6708256 | 0 |
Gets the enabled of this OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties. | def etR_(YKHO) -> MH_9:
return YKHO._enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def etR_(YKHO):\n return YKHO._get('enabled')",
"def V4BH(YKHO):\n return YKHO._get_attribute('enabled')",
"def M6XB(YKHO):\n if getattr(YKHO, 'installedversion', None) != BtDU:\n return False\n return YKHO.getField('enabled').get(YKHO)",
"def pBLM(YKHO):\n if 'enabled' in YKHO._mydict:... | [
"0.57977575",
"0.57869214",
"0.5623377",
"0.5551315",
"0.550527",
"0.550527",
"0.550527",
"0.550527",
"0.54871094",
"0.5479335",
"0.54778564",
"0.54440695",
"0.5432813",
"0.5432813",
"0.5432813",
"0.5432813",
"0.5432813",
"0.5432813",
"0.5432813",
"0.5432813",
"0.54133797",
... | 0.57585007 | 2 |
Sets the enabled of this OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties. | def etR_(YKHO, etR_: ConfigNodePropertyBoolean):
YKHO._enabled = etR_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAEm(YKHO, ZIC1):\n C236 = '1' if ZIC1 > 0 else '0'\n return YKHO._setAttr('enabled', C236)",
"def etR_(YKHO, etR_):\n YKHO._enabled = etR_",
"def s30B(YKHO, YwkQ, X6uk, lCeJ=0):\n _hkX = YKHO.XAPCommand('GOVER', YwkQ, 1 if X6uk else 0, unitCode=lCeJ)\n return bool(int(_hkX))",
"def zAEm(Y... | [
"0.5043511",
"0.5014367",
"0.5003255",
"0.4968908",
"0.49519408",
"0.4920339",
"0.4874274",
"0.4866013",
"0.48560494",
"0.48560494",
"0.48452055",
"0.4785608",
"0.47832876",
"0.47483513",
"0.47364587",
"0.47128072",
"0.4711858",
"0.46719593",
"0.4663172",
"0.46588907",
"0.465... | 0.49951005 | 3 |
Gets the service_ranking of this OrgApacheSlingCaconfigImplOverrideOsgiConfigurationOverrideProviProperties. | def dRjV(YKHO) -> gYcJ:
return YKHO._service_ranking | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRjV(YKHO, dRjV: ConfigNodePropertyInteger):\n YKHO._service_ranking = dRjV",
"def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')",
"def bU20(Z4PH, i2th):\n rl7f = [WKvO['name'] for WKvO in dEHX.Json5File.load_from_files([Z4PH]).name_dictionaries]\n return dict(zip(rl7f, [Ce1H.bisect_le... | [
"0.6512247",
"0.5217007",
"0.512157",
"0.50419366",
"0.5017996",
"0.49575096",
"0.4955776",
"0.49520838",
"0.49472216",
"0.4943995",
"0.494351",
"0.49380234",
"0.4929892",
"0.49287754",
"0.4927562",
"0.4927562",
"0.4927562",
"0.4927562",
"0.4927562",
"0.4922828",
"0.49192476"... | 0.81016016 | 0 |
Loads data from csv_file and returns it as pandas.DataFrame object | def eXjC(z36O: str) -> rLdf.DataFrame:
print('>>> LOADING DATASET FROM FILE {filename}'.format(filename=z36O))
if not z36O.endswith('.csv'):
print('File has to be CSV type file!')
exit(1)
try:
nPrm = rLdf.read_csv(z36O)
print('>>> Finished loading data!')
return nPrm
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gAn6(z36O: str) -> rLdf.DataFrame:\n return rLdf.read_csv(z36O, header=0)",
"def UlWi(Jmpp):\n jQ3Z = rLdf.read_csv(Jmpp)\n return jQ3Z",
"def ZK4F(YKHO, VqRE):\n YKHO.dataframe = rLdf.load_csv(VqRE, separator='')",
"def vBd4(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z",
"def mg... | [
"0.85336226",
"0.8451108",
"0.8347124",
"0.8064328",
"0.8063714",
"0.80465996",
"0.8023442",
"0.7943575",
"0.7898346",
"0.78853995",
"0.7843002",
"0.7830943",
"0.7830943",
"0.7830943",
"0.7796285",
"0.7670498",
"0.76673853",
"0.7622854",
"0.7597737",
"0.7590228",
"0.75793105"... | 0.8073647 | 3 |
Function that is used to be the command for the button of the tkinter window to go to the link of the new playlist It uses the webbrowser module to open a new tab in your browser | def l1y2(YKHO) -> None:
HywK.open_new(YKHO.link) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENvN(YKHO, tvqc):\n HywK.open(YKHO.url)",
"def iYoP(bD7m):\n HywK.open_new(bD7m)",
"def Y2J3(bD7m):\n HywK.open_new_tab(bD7m)",
"def Jgu1(YKHO):\n YBcr = MmmC(str(YKHO.lineEdit.text()))\n bD7m = 'https://learn.foundry.com/nuke/developers/70/pythonreference/{}'.format(YBcr)\n HywK.open(b... | [
"0.75957876",
"0.74636394",
"0.73313963",
"0.72235125",
"0.72084504",
"0.70720553",
"0.7031625",
"0.6984218",
"0.6905886",
"0.68312657",
"0.6817572",
"0.6790589",
"0.6786953",
"0.6679177",
"0.6620364",
"0.6574613",
"0.6573774",
"0.6518846",
"0.65152335",
"0.64942515",
"0.6433... | 0.70491326 | 6 |
A Table view of the most common ticks per day. | def ZbdY():
q_E9 = eHus.get_daily_popular_ticks(kepv, KhBf)
lE6h = {}
YdD0, oMqC, UHFx = zip(*((BkYD, H4yH[0], H4yH[1]) for BkYD, H4yH in q_E9))
lE6h['date'] = YdD0
lE6h['species'] = oMqC
lE6h['count'] = UHFx
lE6h = CJD_(lE6h)
ZLJ_ = [GOPn(field='date', title='Päivämäärä'), GOPn(field='s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Smep(YKHO):\n oBkD = [0 for YRbF in range(7)]\n for YRbF in range(YKHO.dataset.shape[0]):\n hUoD = ITS7.localtime(oyIN.int32(YKHO.dataset[YRbF][2]))\n s6G1 = hUoD[6]\n oBkD[s6G1] += 1\n return oBkD",
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel..... | [
"0.64882505",
"0.631645",
"0.62860227",
"0.62296414",
"0.6197239",
"0.618066",
"0.61390734",
"0.611165",
"0.6104516",
"0.6102354",
"0.6096322",
"0.60797054",
"0.6076675",
"0.60751",
"0.6042777",
"0.60404587",
"0.60048836",
"0.6000628",
"0.5991194",
"0.59721273",
"0.59620315",... | 0.76210964 | 0 |
Initialize cell to all 0's, then fill with animals | def FIMM(YKHO, exwG, aJRL=0, PK2v=0):
YKHO.grid_size = exwG
YKHO.grid = []
for YRbF in range(exwG):
rdlD = [0] * exwG
YKHO.grid.append(rdlD)
YKHO.init_animals(aJRL, PK2v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n TVTK = len(YKHO.cell)\n H2v2 = len(YKHO.cell[0])\n YKHO.cell = [[KAvf for Mkmy in range(H2v2)] for Z9rn in range(TVTK)]",
"def g8Dx(YKHO):\n for hksT in oyIN.ndindex(*YKHO.shape):\n Z9rn = riCw(hksT, YKHO)\n YKHO.cells.append(Z9rn)",
"def FIMM(YKHO, TVTK=7, H2v2=7):\... | [
"0.6985707",
"0.6679001",
"0.6603603",
"0.6489159",
"0.64766634",
"0.64509636",
"0.6374465",
"0.6273045",
"0.62243223",
"0.6192294",
"0.61147714",
"0.60842484",
"0.6058907",
"0.6055484",
"0.6033597",
"0.60143113",
"0.5907699",
"0.5871629",
"0.5871403",
"0.5850076",
"0.5838814... | 0.56754994 | 33 |
Initialize the animal's and their positions | def FIMM(YKHO, lzzU, WKvO=0, LVAh=0, KCHu='A'):
YKHO.island = lzzU
YKHO.name = KCHu
YKHO.x = WKvO
YKHO.y = LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C__A(YKHO):\n for YRbF in range(YKHO.numBoids):\n YKHO.boids.append(zBlY(tuKI.randint(0, YKHO.width), tuKI.randint(YKHO.height, YKHO.height + 5)))",
"def pZ0z(YKHO, aJRL, PK2v):\n r9Hf = 0\n while r9Hf < aJRL:\n WKvO = tuKI.randint(0, YKHO.grid_size - 1)\n LVAh = tuKI.randint(0,... | [
"0.69364613",
"0.6712378",
"0.6678836",
"0.65227574",
"0.6286575",
"0.62656987",
"0.6218123",
"0.62167066",
"0.6154304",
"0.6126599",
"0.61238587",
"0.6111937",
"0.61109376",
"0.6103946",
"0.6029076",
"0.60176736",
"0.6014085",
"0.6014085",
"0.60026574",
"0.59922147",
"0.5956... | 0.0 | -1 |
Test the hash password function. | def XJ58(SppC, bdAB):
Aofo = SppC.hash_password('testpassword')
assert Aofo == 'mocked-output' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yc5G(YKHO):\n RBFf = ikbr(8)\n for NTzC in (T1Hs, lcc9, oa9N, xX2y):\n jPPD = NTzC.hash(RBFf)\n YKHO.assertTrue(sNjs(RBFf, jPPD), \"{}: '{}' should verify '{}'\".format(NTzC.name, jPPD, RBFf))",
"def kX3K(YKHO):\n Hhv_ = lcc9\n for RBFf in (ikbr(8) for YRbF in range(10)):\n j... | [
"0.8146534",
"0.77001554",
"0.76451445",
"0.76297057",
"0.746315",
"0.74558365",
"0.74466676",
"0.73689425",
"0.7308487",
"0.7258669",
"0.72390443",
"0.7238273",
"0.72381747",
"0.7188765",
"0.7182746",
"0.7162788",
"0.71475476",
"0.71434075",
"0.7131176",
"0.7114588",
"0.7086... | 0.785187 | 1 |
Test returning the configured TLS state. | def hWiO(SppC):
SppC.charm_config['enable-tls'] = True
Aofo = SppC.get_tls()
assert Aofo is True
SppC.charm_config['enable-tls'] = False
Aofo = SppC.get_tls()
assert Aofo is False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mizK(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'tls')",
"def Id94(YKHO):\n as2V = YKHO.charm_config['enable-tls']\n if as2V:\n return as2V\n return False",
"def FGra(YKHO):\n cSnA = YKHO.startTLSAndAssertSession()\n YKHO.connected.addCallback(YKHO._cbStopClient)\n YKHO.... | [
"0.71331996",
"0.7093791",
"0.70150614",
"0.66525596",
"0.6585457",
"0.65758455",
"0.65515536",
"0.6540033",
"0.6508693",
"0.64776725",
"0.63517886",
"0.63517886",
"0.6312332",
"0.63062304",
"0.6303833",
"0.6228943",
"0.6228943",
"0.6132377",
"0.6132377",
"0.6097615",
"0.6077... | 0.7428091 | 0 |
Tests getting bucketlist items. | def yfSc(YKHO):
_hkX = YKHO.client.post('/bucketlists', data=qQXR.dumps(YKHO.bucketlist), content_type='application/json', headers={'Authorization': YKHO.token})
YKHO.assertEqual(_hkX.status_code, 201)
GtJD = YKHO.client.post('/bucketlistitems/1/items', data=qQXR.dumps({'name': 'visit the busy surburbs.'}),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yfSc(YKHO):\n D3lj = 'test@test.com'\n Mso6 = 'test'\n CBIr = mv1M.query.filter_by(email=D3lj).first()\n ZoOm = IkQF.query.filter_by(user_id=CBIr.id, id=1).first()\n TXTN = len(ZoOm.bucketlist_items)\n MOPg = YKHO.authentication_headers(email=D3lj, password=Mso6)\n geh0 = YKHO.client.get('... | [
"0.8351025",
"0.8049037",
"0.7803362",
"0.7580653",
"0.755651",
"0.75083226",
"0.7471085",
"0.7458265",
"0.7417138",
"0.74088967",
"0.73989475",
"0.731263",
"0.72335464",
"0.72296464",
"0.72189665",
"0.7163247",
"0.71202266",
"0.71008056",
"0.7096285",
"0.7022674",
"0.7022037... | 0.83745456 | 0 |
Tests updating a bucketlist by id. | def B7mR(YKHO):
_hkX = YKHO.client.post('/bucketlists', data=qQXR.dumps(YKHO.bucketlist), content_type='application/json', headers={'Authorization': YKHO.token})
YKHO.assertEqual(_hkX.status_code, 201)
GtJD = YKHO.client.post('/bucketlistitems/1/items', data=qQXR.dumps({'name': 'visit the busy surburbs.'}),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LJ6k(YKHO):\n PX3W = YKHO.client().post('/bucketlist', data={'name': 'Wake up, Eat, Code, Sleep & Repeat'})\n YKHO.assertEqual(PX3W.status_code, 201)\n F1L6 = qQXR.loads(PX3W.data.decode('UTF-8').replace(\"'\", '\"'))\n id = F1L6['id']\n LrkK = YKHO.client().put(f'bucketlist/{id}', data={'name':... | [
"0.7800197",
"0.7541854",
"0.7408882",
"0.7407622",
"0.723298",
"0.71560085",
"0.71419644",
"0.70859915",
"0.7085835",
"0.69097227",
"0.6782141",
"0.6766907",
"0.67269206",
"0.67207694",
"0.655483",
"0.65543234",
"0.65094066",
"0.6507109",
"0.64627445",
"0.6435486",
"0.637557... | 0.83354676 | 0 |
Private function for rank a arrays. Compute the median ignoring Nan. | def PW3S(mJLf):
Q3Ge = 1 - oyIN.isnan(mJLf)
WKvO = oyIN.sort(oyIN.compress(Q3Ge, mJLf, axis=-1))
if WKvO.size == 0:
return oyIN.nan
return oyIN.median(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4yP(ezWE, **B2fa):\n return fHeP.median(fHeP.masked_where(ezWE != ezWE, ezWE), **B2fa)",
"def mQFx(fvDH, jzdc, *qIxc):\n return oyIN.nanmedian(jzdc)",
"def Enk9(jzdc):\n yvT9 = oyIN.empty(jzdc.shape[1], dtype=oyIN.float_)\n for fvDH in range(jzdc.shape[1]):\n yvT9[fvDH] = oyIN.nanmedian... | [
"0.7533602",
"0.73017174",
"0.72577894",
"0.7184184",
"0.715803",
"0.7151017",
"0.7146661",
"0.70368415",
"0.6862323",
"0.680668",
"0.67687476",
"0.67524433",
"0.67384106",
"0.67260754",
"0.67065895",
"0.6671158",
"0.6656524",
"0.6656524",
"0.6656524",
"0.6650594",
"0.6624592... | 0.734957 | 1 |
Sort an array and provide the argsort. | def pydd(jzdc):
WhY1 = oyIN.argsort(jzdc)
jbd2 = jzdc[WhY1]
return (jbd2, WhY1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gMQm(ezWE):\n pass",
"def hj4Q(jzdc, *qIxc, **B2fa):\n E4N8('The function argsort is deprecated from JAMS. Use module pyjams.', category=DeprecationWarning)\n if isinstance(jzdc, oyIN.ma.MaskedArray):\n return oyIN.ma.argsort(jzdc, *qIxc, **B2fa)\n elif isinstance(jzdc, oyIN.ndarray):\n ... | [
"0.7891882",
"0.76259416",
"0.7067277",
"0.6864901",
"0.67765224",
"0.67060477",
"0.6685931",
"0.662964",
"0.6624978",
"0.6585095",
"0.6549422",
"0.6436181",
"0.6413552",
"0.6359419",
"0.6331791",
"0.62727064",
"0.62723017",
"0.6231115",
"0.6203391",
"0.61998767",
"0.61308885... | 0.6456423 | 11 |
Checks Get Product Detail APIs work for all products in Get Products. | def XzJg(YKHO, d16V):
dixj = []
Ldyl = YKHO.get_products(d16V)
for Lx3t in Ldyl['data']['products']:
print("Checking product '{}'... ".format(Lx3t['name']), end='')
aeup = YKHO.get_product_detail(d16V, product_id=Lx3t['productId'], product_name=Lx3t['name'])
if YKHO.rf.valid_product_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sKb3(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization... | [
"0.6680456",
"0.66601217",
"0.66017115",
"0.65717506",
"0.65263736",
"0.65211934",
"0.65143",
"0.6511113",
"0.6509418",
"0.6505598",
"0.64900124",
"0.6488298",
"0.64830196",
"0.6463925",
"0.64000374",
"0.6393503",
"0.63350004",
"0.6270354",
"0.6194113",
"0.61565024",
"0.61455... | 0.6702116 | 0 |
Checks the schema of the Get Product Detail response is correct. | def HjfC(YKHO, d16V, Mc9N=None, n8KJ=None):
mbwC = YKHO.get_product_detail(d16V, Mc9N, n8KJ)
if mbwC is None:
return
YKHO.sc.check(mbwC, {'$ref': 'ResponseBankingProductById'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d72L(YKHO) -> None:\n Mkmy = YKHO.perform_request('detail', True)\n YKHO.assert_json_schema(Mkmy.json(), YKHO.get_details_schema())",
"def N4jz(YKHO, d16V):\n Ldyl = YKHO.get_products(d16V)\n YKHO.sc.check(Ldyl, {'$ref': 'ResponseBankingProductList'})",
"def cqrY(YKHO, geh0):\n YKHO.assertEq... | [
"0.71004415",
"0.6680121",
"0.62991613",
"0.6234262",
"0.6231652",
"0.61786276",
"0.6178084",
"0.61339396",
"0.59602225",
"0.58714896",
"0.5828557",
"0.5767552",
"0.5761709",
"0.5657776",
"0.560335",
"0.5575253",
"0.55184716",
"0.5506",
"0.5504762",
"0.5471077",
"0.5461571",
... | 0.7485323 | 0 |
Checks the schema of the Get Product response and of all listed Product Details are correct for a given ADI. | def yi2q(YKHO, d16V):
Ldyl = YKHO.get_products(d16V)
YKHO.sc.stack = [d16V]
YKHO.sc.check(Ldyl, {'$ref': 'ResponseBankingProductList'})
for Lx3t in Ldyl['data']['products']:
YKHO.sc.stack = [d16V, Lx3t['name']]
YKHO.check_product_detail_schema(d16V, Lx3t['productId'], Lx3t['name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4jz(YKHO, d16V):\n Ldyl = YKHO.get_products(d16V)\n YKHO.sc.check(Ldyl, {'$ref': 'ResponseBankingProductList'})",
"def HjfC(YKHO, d16V, Mc9N=None, n8KJ=None):\n mbwC = YKHO.get_product_detail(d16V, Mc9N, n8KJ)\n if mbwC is None:\n return\n YKHO.sc.check(mbwC, {'$ref': 'ResponseBankingP... | [
"0.79040796",
"0.75987786",
"0.7394865",
"0.6421799",
"0.6350588",
"0.6137115",
"0.61174387",
"0.606553",
"0.6062701",
"0.6059254",
"0.59885263",
"0.5951403",
"0.59510154",
"0.5891715",
"0.58626103",
"0.5823334",
"0.58204323",
"0.5817409",
"0.5788661",
"0.57788587",
"0.577162... | 0.6498004 | 3 |
Feed input vector through the network and return output vector. Additionally store the activations and z values. | def BoEA(YKHO, input):
YKHO.ys[0] = input
for YRbF in range(1, len(YKHO.ws)):
YKHO.zs[YRbF] = YKHO.ws[YRbF] @ YKHO.ys[YRbF - 1] + YKHO.bs[YRbF]
YKHO.ys[YRbF] = YKHO.g(YKHO.zs[YRbF])
return YKHO.ys[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QUSx(YKHO, iArr):\n return iArr",
"def MKQT(bKD6, lfri):\n o4Jx = []\n for gEmA in bKD6:\n pVkV = lfri + [1]\n hlel = [cnSN(HgE9, pVkV) for HgE9 in gEmA]\n o4Jx.append(hlel)\n lfri = hlel\n return o4Jx",
"def MKQT(bKD6, lfri):\n o4Jx = []\n for gEmA in bKD6:\n ... | [
"0.7370377",
"0.7106629",
"0.7084625",
"0.6910688",
"0.6904303",
"0.6786165",
"0.66115224",
"0.6574488",
"0.6302253",
"0.6220125",
"0.6216346",
"0.61868554",
"0.6185115",
"0.61694384",
"0.6110264",
"0.6108632",
"0.61012197",
"0.6089439",
"0.60890317",
"0.60735697",
"0.6060347... | 0.6337236 | 8 |
activation function derivative (sigmoid') | def pDT2(YKHO, epBp):
jzdc = YKHO.g(epBp)
return jzdc * (1 - jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTrv(epBp):\n return YDYE(epBp) * (1 - YDYE(epBp))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def YDYE(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 ... | [
"0.8335384",
"0.8029718",
"0.8029718",
"0.7995369",
"0.7986111",
"0.79320115",
"0.7852003",
"0.78242344",
"0.7766425",
"0.7762885",
"0.76416934",
"0.7617166",
"0.7614981",
"0.75696707",
"0.7533349",
"0.7532869",
"0.7521406",
"0.7513577",
"0.7493299",
"0.747452",
"0.74701",
... | 0.0 | -1 |
Create a new oidc config from the provided dictionary. | def _R7B(Emd4, EZkR: dict) -> LqKF:
if EZkR:
ZUuF = LqKF()
ZUuF.project_id = EZkR['project_id']
ZUuF.client_id = EZkR['client_id']
ZUuF.client_secret = EZkR['client_secret']
ZUuF.registration_access_token = EZkR['registration_access_token']
ZUuF.registration_client_ur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(fGC9, gIsw='<from_dict>', kxL1='<root>'):\n return PSrQ(fGC9, name=kxL1, file_=gIsw)",
"def jG8h(Emd4, ix6T):\n GPtr = Emd4()\n for G1Hx, Ty9i in ix6T.items():\n setattr(GPtr, G1Hx, Ty9i)\n return GPtr",
"def jG8h(Csk6):\n Z9rn = kwpV()\n for XLMv in Csk6.keys():\n Z9rn... | [
"0.66674894",
"0.66570145",
"0.6382465",
"0.63186336",
"0.62118536",
"0.61821294",
"0.61743975",
"0.6087044",
"0.60511553",
"0.60494083",
"0.6019384",
"0.5935051",
"0.591208",
"0.59108293",
"0.59108293",
"0.59108293",
"0.5888635",
"0.58822304",
"0.5866827",
"0.584539",
"0.582... | 0.7995336 | 0 |
Compute the softmax of each element along an axis of X. | def N93T(EcVT, q7In=1.0, jDK_=None):
LVAh = EcVT
LVAh = LVAh * float(q7In)
LVAh = LVAh - oyIN.max(LVAh)
LVAh = oyIN.exp(LVAh)
GM4D = oyIN.sum(LVAh)
XP5J = LVAh / GM4D
if len(EcVT.shape) == 1:
XP5J = XP5J.flatten()
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9",
"def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi... | [
"0.8648168",
"0.8523443",
"0.8501356",
"0.845101",
"0.8424965",
"0.8401308",
"0.83822155",
"0.83788544",
"0.8372522",
"0.83631027",
"0.835532",
"0.8344603",
"0.8326291",
"0.8309666",
"0.82737535",
"0.8272703",
"0.82659155",
"0.824838",
"0.824838",
"0.8244414",
"0.82432497",
... | 0.0 | -1 |
Applies the forward model to the model for the given solver. | def hdaX(YKHO, YCSJ, g3eu, f8a3, ecso=[]):
ykvB = YKHO.solver
ykvB.model_parameters = g3eu
rR8k = ykvB.mesh
Csk6 = ykvB.domain
JRYC = ykvB.dt
Xlun = ykvB.nsteps
JZXy = YCSJ.sources
if not oyIN.iterable(f8a3):
f8a3 = [f8a3]
if 'simdata' in ecso:
XbwG = dict()
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGi5(YKHO, C3ST, ykvB='cbc', lt0L=False, **Icw1):\n G9jH.info('Optimising using %s.', ykvB)\n Icw1['tee'] = Icw1.get('tee', True)\n YKHO.meta['solph_version'] = Opol.__version__\n YKHO.meta['solver'] = ykvB\n YKHO.meta['solver_start'] = qcWV.datetime.now()\n if lt0L:\n C3ST.receive_dua... | [
"0.5913653",
"0.58469105",
"0.58298993",
"0.57827353",
"0.5702531",
"0.5677223",
"0.55754423",
"0.55539143",
"0.55520034",
"0.55184275",
"0.55123985",
"0.5504104",
"0.5488734",
"0.5487102",
"0.54781926",
"0.5471877",
"0.54642695",
"0.54605424",
"0.5420407",
"0.54081655",
"0.5... | 0.6043375 | 0 |
Applies the forward model to the model for the given solver. | def KQ_4(YKHO, YCSJ, g3eu, gpRq, f8a3, ecso=[]):
if not oyIN.iterable(f8a3):
f8a3 = [f8a3]
ykvB = YKHO.solver
ykvB.model_parameters = g3eu
rR8k = ykvB.mesh
Csk6 = ykvB.domain
JRYC = ykvB.dt
Xlun = ykvB.nsteps
JZXy = YCSJ.sources
FPro = gpRq.with_padding()
PXDA = dict()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdaX(YKHO, YCSJ, g3eu, f8a3, ecso=[]):\n ykvB = YKHO.solver\n ykvB.model_parameters = g3eu\n rR8k = ykvB.mesh\n Csk6 = ykvB.domain\n JRYC = ykvB.dt\n Xlun = ykvB.nsteps\n JZXy = YCSJ.sources\n if not oyIN.iterable(f8a3):\n f8a3 = [f8a3]\n if 'simdata' in ecso:\n XbwG = ... | [
"0.6040747",
"0.5918207",
"0.5843809",
"0.58275527",
"0.57797116",
"0.5700266",
"0.56757987",
"0.5573625",
"0.55575603",
"0.55494773",
"0.55215293",
"0.55164707",
"0.55012584",
"0.5486423",
"0.5485438",
"0.5475387",
"0.5468614",
"0.546214",
"0.5459531",
"0.5418266",
"0.540553... | 0.53923297 | 22 |
Defines !=. Not doing this always leads to annoying bugs... | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return YKHO.type != Elif.type or YKHO.value != Elif.value",
"def d_5N(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"d... | [
"0.7132524",
"0.7015259",
"0.69744724",
"0.69661963",
"0.6939496",
"0.6931768",
"0.6931768",
"0.6931768",
"0.6916292",
"0.6914676",
"0.6911523",
"0.6878416",
"0.68705916",
"0.68705916",
"0.6869327",
"0.6869327",
"0.68619365",
"0.6860096",
"0.68472654",
"0.6842909",
"0.6834163... | 0.0 | -1 |