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 |
|---|---|---|---|---|---|---|
Format the start time value in milliseconds into a string value suitable for some of the supported output formats (ex. SRT, DFXP). | def okZi(YKHO, G3Wc=None):
return YKHO._format_timestamp(YKHO.start, G3Wc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s700(YKHO):\n return ITS7.strftime('%H:%M:%S', ITS7.localtime(YKHO.start_time))",
"def ETxf(YKHO):\n RA_F = int(YKHO.start_time) - int(YKHO.root().start_time)\n return '%02d:%02d' % (RA_F / 60, RA_F % 60)",
"def Gp4f(YKHO, nPrm):\n return nPrm",
"def eYua(HVCe: float) -> str:\n assert HVCe... | [
"0.7211427",
"0.694554",
"0.6940926",
"0.69408184",
"0.6898486",
"0.67937607",
"0.6674279",
"0.6669438",
"0.6621727",
"0.66024446",
"0.65528107",
"0.65419763",
"0.6506048",
"0.6488599",
"0.6479121",
"0.644822",
"0.6431824",
"0.6426709",
"0.6407089",
"0.63642865",
"0.62467617"... | 0.7278223 | 0 |
Format the end time value in milliseconds into a string value suitable for some of the supported output formats (ex. SRT, DFXP). | def j39K(YKHO, G3Wc=None):
return YKHO._format_timestamp(YKHO.end, G3Wc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wirM(YKHO):\n return str(YKHO._end_time)",
"def qO0_(BWXx):\n if BWXx == jQ4c.CLOCK_TIME_NONE:\n return '--:--:--.---'\n NmYP = BWXx / jQ4c.MSECOND\n kRsb = NmYP / 1000\n NmYP = NmYP % 1000\n eRPr = kRsb / 60\n kRsb = kRsb % 60\n Wave = eRPr / 60\n eRPr = eRPr % 60\n retu... | [
"0.6815521",
"0.6603939",
"0.65964884",
"0.6524921",
"0.6407275",
"0.63813806",
"0.62996995",
"0.6276818",
"0.6273975",
"0.62591654",
"0.6211727",
"0.6205493",
"0.6162361",
"0.61458087",
"0.61345196",
"0.61345196",
"0.6096289",
"0.6042201",
"0.6038373",
"0.6019248",
"0.601772... | 0.7332041 | 0 |
Removes ``www``. from the beginning of the address. Only for routing purposes. `` and ``test.com/login/`` should find the same tenant. | def UFyG(ayrW: str) -> str:
if ayrW.startswith('www.'):
return ayrW[4:]
return ayrW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xy0U():\n BAem = KVWQ(QePW.url)\n if BAem.netloc != 'www.mealscount.com':\n return vKnz('https://www.mealscount.com/', code=301)",
"def lSn9(KcEq):\n if not KcEq.startswith('https://'):\n KcEq = 'https://' + KcEq\n KcEq = avhy(KcEq, '/')\n KcEq = avhy(KcEq, '/api/v1')\n KcEq =... | [
"0.5988731",
"0.5965765",
"0.5824932",
"0.5604685",
"0.55799305",
"0.55328894",
"0.55265784",
"0.5500028",
"0.54909337",
"0.5481837",
"0.5471048",
"0.5420226",
"0.5415641",
"0.5383179",
"0.53325796",
"0.5331758",
"0.5331336",
"0.5311387",
"0.5299343",
"0.5293716",
"0.52858394... | 0.7954738 | 0 |
Apply dropout to input and hidden tensors (`hx`), and pass them to the torch GRUCell. | def KVH6(YKHO, input: Tensor, Upvm: Optional[Tensor]=None) -> llWB:
if Upvm is None:
Upvm = ht2j.zeros(input.size(0), YKHO.hidden_size, dtype=input.dtype, device=input.device)
Nbdx = U78l.functional.dropout(input=input, p=YKHO._dropout, training=YKHO.training)
L5aY = U78l.functional.dropout(input=Up... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO, YKHO.hidden = YKHO.gru(WKvO, YKHO.hidden)\n YKHO.detach_hidden()\n WKvO = YKHO.dropout(WKvO)\n WKvO = YKHO.out(WKvO)\n return WKvO",
"def xmDf(YKHO, g4y1):\n ZHfW = ZylS.cast(1 - ZylS.compat.v1.distributions.Bernoulli(probs=1.0 - YKHO.drop_prob).sample(sample_shape... | [
"0.63158464",
"0.61924565",
"0.61344814",
"0.6040275",
"0.59563404",
"0.59526837",
"0.5945194",
"0.589468",
"0.5870516",
"0.58595157",
"0.5839773",
"0.57184356",
"0.5685813",
"0.56556416",
"0.5635242",
"0.5629377",
"0.5625709",
"0.5618553",
"0.5608568",
"0.5607993",
"0.558091... | 0.68315345 | 0 |
Reset layer weights. Calls reset_parameters() of internal nn.modules | def Q0Ko(YKHO) -> None:
for YRbF in range(YKHO._num_edge_types):
U78l.init.xavier_uniform_(YKHO.edge_message_functions[YRbF].weight)
U78l.init.constant_(YKHO.edge_message_functions[YRbF].bias, val=0.0)
U78l.init.orthogonal_(YKHO.rnn.weight_hh)
U78l.init.xavier_uniform_(YKHO.rnn.weight_ih)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n Rqdx = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'weight_ih' in mWFP)\n TKQ0 = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'weight_hh' in mWFP)\n Fg_i = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'bias' in mWFP)\n for a1PO in Rqdx:\n ht2j.nn.init.xavier_... | [
"0.8114691",
"0.80887413",
"0.80887413",
"0.80887413",
"0.77468145",
"0.77122325",
"0.7650901",
"0.75666755",
"0.7551285",
"0.75419897",
"0.74973166",
"0.74819",
"0.74630076",
"0.7438601",
"0.7422444",
"0.74210846",
"0.74027705",
"0.735709",
"0.7320795",
"0.73007655",
"0.7297... | 0.7380051 | 17 |
Reset weights. Calls reset_parameters() of internal gnn blocks. | def Q0Ko(YKHO) -> None:
for pM5e in YKHO.gnn_blocks:
pM5e.reset_parameters() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n Rqdx = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'weight_ih' in mWFP)\n TKQ0 = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'weight_hh' in mWFP)\n Fg_i = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'bias' in mWFP)\n for a1PO in Rqdx:\n ht2j.nn.init.xavier_... | [
"0.79932714",
"0.79035616",
"0.7834367",
"0.78313875",
"0.78313875",
"0.78313875",
"0.767987",
"0.7626979",
"0.76036555",
"0.75981075",
"0.75656754",
"0.7537917",
"0.7389454",
"0.73858106",
"0.73021424",
"0.72516924",
"0.7217353",
"0.7180251",
"0.7162394",
"0.71096396",
"0.70... | 0.80934423 | 0 |
GNNEncoder outputs initial node embedding with dim. hidden_dim stacked with the processed output from the GNN (also of shape hidden_dim). | def EDoJ(YKHO) -> int:
return 2 * YKHO._hidden_dim | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, I8N9=2, b0Ix=0.01, qPOK=10, Ep8u=400):\n EcVT = ZylS.placeholder(ZylS.float32, [None, YKHO.n_input])\n ZylS.set_random_seed(50)\n YQq6 = int(epAf.pow(2, int(2 * epAf.log(YKHO.n_input, 2) / 3 + epAf.log(I8N9, 2) / 3)))\n NX57 = int(epAf.pow(2, int(epAf.log(YKHO.n_input, 2) / 3 + 2 * epAf.... | [
"0.68017566",
"0.6478982",
"0.63106364",
"0.63058406",
"0.6286394",
"0.62127715",
"0.6211216",
"0.61363405",
"0.6123324",
"0.61028683",
"0.60963625",
"0.60943544",
"0.6076765",
"0.6036925",
"0.5999666",
"0.5998077",
"0.59928495",
"0.59321535",
"0.59314495",
"0.59126854",
"0.5... | 0.0 | -1 |
Return the fields of a dataclass instance as a new dictionary mapping field names to field values. | def lKKu(YEnM, *, ij1k=dict):
if not LCHE(YEnM):
raise TypeError('asdict() should be called on dataclass instances')
return eviV(YEnM, ij1k) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_D6(TSeE):\n try:\n pjQn = getattr(TSeE, DsrS)\n except AttributeError:\n raise TypeError('must be called with a dataclass type or instance')\n return pjQn",
"def ERRh(TSeE):\n try:\n pjQn = dict(getattr(TSeE, DsrS))\n pjQn.pop('_version', None)\n except AttributeE... | [
"0.79191566",
"0.7322691",
"0.7007178",
"0.69605213",
"0.68861115",
"0.6854017",
"0.6834418",
"0.67091984",
"0.6668334",
"0.65869576",
"0.6585059",
"0.6585014",
"0.65818274",
"0.6540093",
"0.65354383",
"0.6530365",
"0.65301424",
"0.6496168",
"0.64941",
"0.64941",
"0.64941",
... | 0.0 | -1 |
' Utility method to round a number of seconds given. ' | def PfxT(C6wh):
O66n = C6wh / 60
K0A_ = C6wh % 60
if K0A_ >= 30:
O66n += 1
return O66n * 60 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZhNM(ITS7):\n XXcz = ITS7.minute % 5\n W3xo = ITS7.second\n oLQB = ITS7.microsecond\n ITS7 = ITS7 - fCoM(minutes=XXcz, seconds=W3xo, microseconds=oLQB)\n return ITS7",
"def QAIV(C6wh: int, round: Optional[bool]=True) -> uLKX[int, float]:\n return int(C6wh / 60) if round else C6wh / 60",
"... | [
"0.70922214",
"0.690971",
"0.6848357",
"0.67908466",
"0.6730991",
"0.6717476",
"0.66908914",
"0.6672902",
"0.664795",
"0.66186845",
"0.6597363",
"0.65158933",
"0.6506588",
"0.6506448",
"0.64764565",
"0.64697945",
"0.64634943",
"0.6400345",
"0.63910776",
"0.63588965",
"0.63536... | 0.76798344 | 0 |
r"""Number of graphs in the dataset. Return int | def szAg(YKHO):
return YKHO.N.shape[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LF8Y(YKHO):\n return len(YKHO.__graph_list)",
"def moTC(YKHO):\n return int(YKHO._data['number_of_data_nodes'])",
"def iq9F(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.graph_count)",
"def hDPH(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.graph_data_size or 0)",
"def szAg(YKHO) ->... | [
"0.81952626",
"0.77314955",
"0.7668739",
"0.7506845",
"0.7428712",
"0.7361741",
"0.73092073",
"0.7281369",
"0.723843",
"0.70561796",
"0.6998622",
"0.6969466",
"0.6893426",
"0.6886653",
"0.676338",
"0.673413",
"0.6698097",
"0.6639831",
"0.65961",
"0.6585589",
"0.657005",
"0.... | 0.0 | -1 |
Gets the full associated with the filename in the catalog. | def G5mU(eHNT, Piln):
cbwG = []
zzgH = []
for pmON, RRlC in Piln.items():
if eHNT in Piln[pmON]:
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFjF(YKHO):\n for eHNT in Hy7s.listdir(YKHO.get_directory()):\n if Hy7s.path.isfile(Hy7s.path.join(YKHO.get_directory(), eHNT)):\n return eHNT\n return None",
"def yFjF(Ux0P):\n return SLdk.get_filename(Ux0P)",
"def gIsw(YKHO):\n return YKHO.lib.file_name",
"def VqzR():\n ... | [
"0.65398574",
"0.64793366",
"0.6454564",
"0.6429676",
"0.64156085",
"0.637961",
"0.63664633",
"0.6365864",
"0.6311962",
"0.6309322",
"0.62764984",
"0.62592703",
"0.624536",
"0.6238837",
"0.62382144",
"0.6236166",
"0.62275565",
"0.6214974",
"0.6208357",
"0.6186894",
"0.6171039... | 0.0 | -1 |
Returns a dictionary of matched files as values and their respective directories as keys. | def c671(AGPF):
Piln = {}
for pGQh, Ux0P, RRlC in Hy7s.walk(AGPF):
Piln[pGQh] = RRlC
for pGQh, RRlC in Piln.items():
h4_O = MJDj(RRlC)
Piln[pGQh] = h4_O
return Piln | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjv5(Bicb, T_Ia='.*'):\n VEME = {}\n for tk5Y, AQSv, RRlC in Hy7s.walk(Bicb):\n VEME.update({Ux0P: Hy7s.path.join(tk5Y, Ux0P) for Ux0P in RRlC if ZbWC.match(T_Ia, Ux0P)})\n return VEME",
"def gGOE(YKHO) -> cuzp[str, str]:\n dZT1: cuzp[str, str] = {}\n for pmON in YKHO.files:\n mW... | [
"0.70753866",
"0.70396566",
"0.6896063",
"0.6785947",
"0.6500741",
"0.6493186",
"0.6489259",
"0.6445012",
"0.63776696",
"0.6354776",
"0.6290571",
"0.62700784",
"0.62406796",
"0.62179244",
"0.62060076",
"0.62021506",
"0.6194463",
"0.61174506",
"0.61078846",
"0.6047192",
"0.604... | 0.65918416 | 4 |
Return the default parameters to use for this instrument. | def GVmf(Emd4):
Mzf9 = super().default_pypeit_par()
Mzf9['calibrations']['slitedges']['sync_predict'] = 'nearest'
Mzf9['calibrations']['slitedges']['bound_detector'] = True
Mzf9['calibrations']['pixelflatframe']['process']['combine'] = 'median'
Mzf9['calibrations']['wavelengths']['method'] = 'full_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4UW(YKHO) -> dict[str, ImMB]:\n return {'max_tokens': YKHO.max_tokens, 'temperature': YKHO.temperature, 'top_p': YKHO.top_p, 'logprobs': YKHO.logprobs, 'echo': YKHO.echo, 'stop_sequences': YKHO.stop_sequences, 'repeat_penalty': YKHO.repeat_penalty, 'top_k': YKHO.top_k, 'n_threads': YKHO.n_threads, 'n_ctx':... | [
"0.78049785",
"0.7762155",
"0.7675555",
"0.766228",
"0.763464",
"0.75622946",
"0.7501994",
"0.7304109",
"0.7288433",
"0.7284649",
"0.72001016",
"0.71704555",
"0.71413034",
"0.71157616",
"0.7108974",
"0.7082232",
"0.7082014",
"0.7081288",
"0.7058132",
"0.70476836",
"0.69716156... | 0.0 | -1 |
Return the default parameters to use for this instrument. | def GVmf(Emd4):
Mzf9 = super().default_pypeit_par()
Mzf9['calibrations']['slitedges']['sync_predict'] = 'nearest'
Mzf9['calibrations']['slitedges']['bound_detector'] = True
Mzf9['calibrations']['pixelflatframe']['process']['combine'] = 'median'
Mzf9['calibrations']['wavelengths']['method'] = 'full_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4UW(YKHO) -> dict[str, ImMB]:\n return {'max_tokens': YKHO.max_tokens, 'temperature': YKHO.temperature, 'top_p': YKHO.top_p, 'logprobs': YKHO.logprobs, 'echo': YKHO.echo, 'stop_sequences': YKHO.stop_sequences, 'repeat_penalty': YKHO.repeat_penalty, 'top_k': YKHO.top_k, 'n_threads': YKHO.n_threads, 'n_ctx':... | [
"0.78049785",
"0.7762155",
"0.7675555",
"0.766228",
"0.763464",
"0.75622946",
"0.7501994",
"0.7304109",
"0.7288433",
"0.7284649",
"0.72001016",
"0.71704555",
"0.71413034",
"0.71157616",
"0.7108974",
"0.7082232",
"0.7082014",
"0.7081288",
"0.7058132",
"0.70476836",
"0.69716156... | 0.0 | -1 |
BrandedFoodObjectCountryDetails a model defined in Swagger | def FIMM(YKHO, rg78: int=None, DdyM: int=None):
YKHO.swagger_types = {'english_speaking': int, 'non_english_speaking': int}
YKHO.attribute_map = {'english_speaking': 'english_speaking', 'non_english_speaking': 'non_english_speaking'}
YKHO._english_speaking = rg78
YKHO._non_english_speaking = DdyM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'BrandedFoodObjectCountryDetails':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def FIMM(YKHO, **B2fa):\n RK_k.__init__(YKHO, **B2fa)\n YKHO.flavor = i7lT(**YKHO.flavor)",
"def FIMM(YKHO):\n YKHO.swagger_types = {'id_conta': 'int', 'id_pessoa': 'int', 'id_cartao': 'int', '... | [
"0.65900415",
"0.54613686",
"0.53906906",
"0.52766675",
"0.5211504",
"0.5159307",
"0.50590795",
"0.50522697",
"0.504735",
"0.50425875",
"0.5020249",
"0.49608222",
"0.4940289",
"0.4921281",
"0.49094605",
"0.4900009",
"0.48872507",
"0.48720148",
"0.4853465",
"0.4808178",
"0.480... | 0.0 | -1 |
Sets the non_english_speaking of this BrandedFoodObjectCountryDetails. | def DdyM(YKHO, DdyM: int):
YKHO._non_english_speaking = DdyM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DdyM(YKHO) -> int:\n return YKHO._non_english_speaking",
"def YBwb(YKHO):\n YKHO.feedback = False",
"def WlVz(YKHO):\n H5ew = 'VocolaTakesLanguages'\n YKHO.userregnl.set(H5ew, 0)",
"def FIMM(YKHO, rg78: int=None, DdyM: int=None):\n YKHO.swagger_types = {'english_speaking': int, 'non_englis... | [
"0.52364606",
"0.52303463",
"0.522108",
"0.5217315",
"0.5214619",
"0.5182632",
"0.51249015",
"0.5087386",
"0.5066",
"0.50034666",
"0.4968789",
"0.4954232",
"0.49344936",
"0.49313223",
"0.49189222",
"0.49162045",
"0.48993996",
"0.48977357",
"0.48833433",
"0.4876455",
"0.483357... | 0.79648656 | 0 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'sqlite_db'):
Oa1e.sqlite_db = _uJw()
return Oa1e.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.77378136",
"0.75821716",
"0.7317949",
"0.7168726",
"0.7023119",
"0.6966575",
"0.6955527",
"0.69501823",
"0.6898128",
"0.684287",
"0.68288016",
"0.6818829",
"0.68058383",
"0.67962265",
"0.67700136",
"0.6762472",
"0.6752249",
"0.6747864",
"0.67321193",
"0.67017424",
"0.66881... | 0.64031434 | 86 |
Get the root path of the current git repository | def E0im(YKHO) -> GkAb:
return YKHO._path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1KI():\n pmON = Hy7s.getcwd()\n FCN7 = tgM5.Repo(pmON, search_parent_directories=True)\n CYyW = FCN7.git.rev_parse('--show-toplevel')\n return CYyW",
"def J1KI(pmON):\n FCN7 = tgM5.Repo(pmON, search_parent_directories=True)\n CYyW = FCN7.git.rev_parse('--show-toplevel')\n return CYyW",
... | [
"0.86095345",
"0.8399939",
"0.8356494",
"0.8233204",
"0.806679",
"0.7743427",
"0.75872004",
"0.75515807",
"0.7468636",
"0.7427645",
"0.7386061",
"0.73626816",
"0.7349098",
"0.73400205",
"0.7295785",
"0.7281447",
"0.7257806",
"0.71958536",
"0.7189713",
"0.71467507",
"0.7140026... | 0.6516531 | 71 |
Get indices of true values. | def JqqN(ZHfW):
ZHfW = ZylS.to_int32(ZHfW)
pbtU = ZylS.reduce_sum(ZHfW, 1)
gLpn = ZylS.reduce_max(pbtU)
F1sw, nKqA = ZylS.nn.top_k(ZHfW, gLpn)
F1sw = ZylS.cast(F1sw, ZylS.bool)
return (F1sw, nKqA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJC_(ZHfW):\n return oyIN.nonzero(oyIN.ravel(ZHfW, order='C'))[0]",
"def jYhb(jzdc):\n return oyIN.nonzero(jzdc)[0]",
"def SVHo(e5t6):\n if ~isinstance(e5t6, oyIN.ndarray):\n e5t6 = oyIN.array(e5t6)\n if e5t6[-1]:\n e5t6[-1] = False\n kg7d = oyIN.arange(e5t6.size)[e5t6 ^ oyIN.r... | [
"0.6826024",
"0.6795301",
"0.6791858",
"0.6759969",
"0.672798",
"0.6626752",
"0.65397984",
"0.65014577",
"0.6481604",
"0.6453055",
"0.6425831",
"0.635586",
"0.6305538",
"0.63024646",
"0.6289012",
"0.6267977",
"0.6254181",
"0.6239728",
"0.62218106",
"0.62199265",
"0.621006",
... | 0.0 | -1 |
Gather indices into any dimension rather than dimension 0 of a tensor. Gathering is usually performed on dimension 0 of a tensor, such as a word embedding matrix. In the case where the target is batched, such as selecting a token or a set of tokens for each sequence in the batch, then this function | def _Mru(cRc2, _0VL):
et8c = not isinstance(cRc2, (list, tuple))
if et8c:
cRc2 = [cRc2]
bKXq = len(_0VL.get_shape()) - 1
if bKXq > 1:
ooTa = ROpF(cRc2[0])[:bKXq]
Ep8u = 1
for KCHu in ooTa:
Ep8u *= KCHu
cRc2 = [ZylS.reshape(a1PO, [Ep8u] + ROpF(a1PO)[bKX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Mru(YKHO, hkxX, _0VL):\n or8S = _0VL.unsqueeze(-1)\n or8S = or8S.int()\n zNig = _0VL.shape[0]\n a9Hh = ht2j.arange(zNig, dtype=ht2j.int32).to(YKHO.device)\n a9Hh = a9Hh.unsqueeze(-1)\n a9Hh = a9Hh.repeat([1, int(_0VL.shape[-1])])\n a9Hh = a9Hh.unsqueeze(-1)\n LQvf = ht2j.cat((a9Hh, or8... | [
"0.6665934",
"0.6622428",
"0.651188",
"0.641203",
"0.63652503",
"0.6278413",
"0.6264033",
"0.61847204",
"0.61328024",
"0.61262345",
"0.6085974",
"0.60439724",
"0.60379404",
"0.60332716",
"0.60314023",
"0.60243285",
"0.5997268",
"0.5976041",
"0.5966571",
"0.5952064",
"0.594880... | 0.65790045 | 2 |
Reshape the projectons to apply softmax on each head | def oL1A(YKHO, WKvO):
Fg_i, vC9B, Csk6 = WKvO.size()
return WKvO.view(Fg_i, vC9B, YKHO.num_heads, YKHO.d_head).transpose(1, 2).contiguous().view(Fg_i * YKHO.num_heads, vC9B, YKHO.d_head) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n if len(WKvO.shape) == 2:\n GF7e = oyIN.max(WKvO, axis=1)\n WKvO -= GF7e.reshape((WKvO.shape[0], 1))\n WKvO = oyIN.exp(WKvO)\n JEs7 = oyIN.sum(WKvO, axis=1)\n WKvO /= JEs7.reshape((WKvO.shape[0], 1))\n elif len(WKvO.shape) == 3:\n GF7e = oyIN.max(WKv... | [
"0.66047174",
"0.6451085",
"0.6424011",
"0.6413043",
"0.63913476",
"0.63808346",
"0.63367933",
"0.63236886",
"0.62037456",
"0.6186977",
"0.61717725",
"0.6146727",
"0.6142847",
"0.61424714",
"0.61395836",
"0.61377966",
"0.6073124",
"0.6068041",
"0.6058806",
"0.60530776",
"0.60... | 0.0 | -1 |
Controls the marines and medivacs in this drop, depending on the current mode. Returns True if it needs to regroup, else False. | async def handle(YKHO, mn24: Dict[int, Unit]) -> bool:
nDFh = YKHO._medivac_tags & mn24.keys()
cA7m: kATS = kATS({mn24[LqDw] for LqDw in nDFh}, YKHO._bot_object)
YKHO._medivac_tags = nDFh
fHfD = kATS(set().union(*(qhVv.passengers for qhVv in cA7m)), YKHO._bot_object)
e9m2 = fHfD.tags
DILQ = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNly(YKHO) -> bool:\n return YKHO.all_icon is not None and YKHO.all_name is not None",
"def ohXu(YKHO):\n return not YKHO.HasFlag(YKHO.optionFloating)",
"def SlHE(YKHO) -> bool:\n return YKHO._fuse_across_groups_of_beats",
"def qDyV(YKHO) -> bool:\n return YKHO._grouped",
"def qDyV(YKHO) ->... | [
"0.55120707",
"0.5495609",
"0.5403977",
"0.5359457",
"0.5359457",
"0.53358984",
"0.51398915",
"0.51116204",
"0.5064731",
"0.5059418",
"0.50130737",
"0.48907724",
"0.48585862",
"0.4840413",
"0.48364085",
"0.48255184",
"0.48113787",
"0.47980297",
"0.479788",
"0.47918457",
"0.47... | 0.0 | -1 |
Test the api can delete a book. | def _4cr(YKHO):
b5K5 = egNl().objects.create_user(username='tester', password='pass')
b5K5.save()
Zjvb = dl5x.objects.create(publisher=b5K5, name='Title of Blog', description='Words about the blog')
Zjvb.save()
jI4j = dl5x.objects.get()
bD7m = gxEw('book_detail', kwargs={'pk': jI4j.id})
geh0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjV3(YKHO):\n E4mv = {'title': 'Hello Books', 'isbn': '5698745124'}\n JGsQ = YKHO.login_test_user()\n eOtH = JGsQ['auth_token']\n Ylbp = YKHO.client.post(f'{GWP3}', headers=dict(Authorization=f'Bearer {eOtH}'), content_type='application/json', data=qQXR.dumps(E4mv))\n tOiA = YKHO.client.delete(f... | [
"0.8442967",
"0.8335653",
"0.7947527",
"0.7756091",
"0.7602016",
"0.72454536",
"0.69890076",
"0.6983235",
"0.6972409",
"0.69536626",
"0.6949433",
"0.6940423",
"0.6901441",
"0.6901441",
"0.69014114",
"0.6897056",
"0.68726975",
"0.686629",
"0.68317264",
"0.68172264",
"0.6816295... | 0.78341246 | 3 |
Get a queryset filtered by perms for the user. | def t1hT(YKHO, CBIr, awnO, tmLb=False, q9RR=False):
if not Vl7F:
return YKHO.all()
awnO = [awnO] if isinstance(awnO, str) else awnO
return V_HM(CBIr, awnO, klass=YKHO.model, any_perm=tmLb, with_superuser=q9RR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa).filter(user=YKHO.request.user)\n return umWR",
"def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n return umWR.filter(user=QePW.user)",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.u... | [
"0.67729986",
"0.64800894",
"0.6447097",
"0.6425419",
"0.6320951",
"0.6320826",
"0.6319103",
"0.62921715",
"0.62558794",
"0.61816895",
"0.61814433",
"0.6141446",
"0.6141446",
"0.6141446",
"0.61404645",
"0.6115105",
"0.61137193",
"0.6113468",
"0.61040956",
"0.6076187",
"0.6071... | 0.6972515 | 0 |
convert_from_vanilla(value) Convert a value into a CommonTagCategory enum. | def vpN2(BWXx: Union[int, TagCategory]) -> 'CommonGameTagCategory':
if BWXx is None or BWXx == EEIe.INVALID:
return xRJ5.INVALID
if isinstance(BWXx, xRJ5):
return BWXx
J8oL = dict()
if hasattr(EEIe, 'Mood'):
J8oL[EEIe.Mood] = xRJ5.MOOD
if hasattr(EEIe, 'Color'):
J8oL[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXew(BWXx: 'CommonGameTagCategory') -> uLKX[EEIe, None]:\n if BWXx is None or BWXx == xRJ5.INVALID:\n return EEIe.INVALID\n if isinstance(BWXx, EEIe):\n return BWXx\n J8oL = dict()\n if hasattr(EEIe, 'Mood'):\n J8oL[xRJ5.MOOD] = EEIe.Mood\n if hasattr(EEIe, 'Color'):\n ... | [
"0.82687",
"0.693499",
"0.68909585",
"0.679486",
"0.6744596",
"0.6589648",
"0.649274",
"0.5615093",
"0.55661035",
"0.52417326",
"0.5211465",
"0.516138",
"0.5094616",
"0.5071677",
"0.49403134",
"0.49266583",
"0.489508",
"0.48770243",
"0.4857484",
"0.4838501",
"0.4813751",
"0... | 0.85750157 | 0 |
Returns the path to the main directory of a dataset. | def mC1D(__n6, BuX_=GDa9.WORK_DIR):
return zOLB(BuX_, GDa9.DATA_DIR, __n6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC1D(Emd4):\n iGvk = Hy7s.path.dirname(xAKo)\n VqRE = Hy7s.path.abspath(Hy7s.path.join(iGvk, '..', 'datasets', wJxA('DATA_FILENAME')))\n return VqRE",
"def tETI(YKHO):\n return YKHO._dataset_dir",
"def c1ta(__n6: str='MVTec') -> str:\n pmON = Hy7s.path.join('./datasets', __n6)\n if not Hy... | [
"0.8022111",
"0.793983",
"0.7724553",
"0.760623",
"0.743435",
"0.7395934",
"0.7334338",
"0.7223761",
"0.7215189",
"0.7193677",
"0.717177",
"0.71455944",
"0.7145291",
"0.71405476",
"0.7116877",
"0.7081616",
"0.7075519",
"0.7021476",
"0.6978904",
"0.6968586",
"0.6968586",
"0.... | 0.82498145 | 0 |
Returns the path to the indices directory of a dataset. | def xr1N(__n6, BuX_=GDa9.WORK_DIR):
return zOLB(mC1D(__n6, BuX_), GDa9.INDEXES_DIR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC1D(__n6, BuX_=GDa9.WORK_DIR):\n return zOLB(BuX_, GDa9.DATA_DIR, __n6)",
"def tETI(YKHO):\n return YKHO._dataset_dir",
"def V6eb(__n6, BuX_=GDa9.WORK_DIR):\n return zOLB(mC1D(__n6, BuX_), GDa9.OUTPUT_DIR)",
"def RcGC(YKHO):\n return Hy7s.path.normpath(YKHO.output + '/' + YKHO.resultset_inde... | [
"0.69170535",
"0.6482714",
"0.635061",
"0.6305727",
"0.6247156",
"0.62084097",
"0.61789423",
"0.6034254",
"0.60136056",
"0.59544593",
"0.5881047",
"0.5877882",
"0.5877271",
"0.5871797",
"0.58517206",
"0.58000183",
"0.5799459",
"0.57658565",
"0.5761805",
"0.5743858",
"0.572568... | 0.8147882 | 0 |
CUDA version of the calc X function Find the ration of the active layer to the protective layer minus 1 | def pf8d(WKvO, DnOS, AvtJ):
rdlD, fvDH = lDLs.grid(2)
if rdlD < DnOS.shape[0] and fvDH < DnOS.shape[1]:
if AvtJ[rdlD, fvDH] != 0:
WKvO[rdlD, fvDH] = DnOS[rdlD, fvDH] / AvtJ[rdlD, fvDH] - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sw2W(YKHO, WKvO):\n YKHO.batch_size = WKvO.shape[0]\n YKHO.W = WKvO.shape[2]\n YKHO.H = WKvO.shape[3]\n YKHO.D = 5\n YKHO.grid_size = YKHO.W * YKHO.H * YKHO.D\n Pdq7 = WKvO.reshape(YKHO.batch_size, 64, -1)\n d6pt = ht2j.from_numpy(oyIN.asarray(oyIN.unravel_index(oyIN.arange(YKHO.grid_size)... | [
"0.6363954",
"0.6331525",
"0.6094874",
"0.59222585",
"0.58650947",
"0.5860942",
"0.5820519",
"0.5804815",
"0.57717425",
"0.572791",
"0.5713983",
"0.5708005",
"0.5705112",
"0.5674194",
"0.56690884",
"0.5661184",
"0.565243",
"0.5651396",
"0.5645875",
"0.56375295",
"0.5633886",
... | 0.6823909 | 0 |
CUDA sigmoid 2 poi calculation function POI = K / C + A x ^ B | def GZbM(AQue, NArs, WKvO, CypG):
YB_S = 0
A01F = 1
uNqI = 2
x4WC = 3
haMT = 4
zQMJ = 5
bsaJ = 6
kIAy = 7
rdlD, fvDH = lDLs.grid(2)
if rdlD < WKvO.shape[0] and fvDH < WKvO.shape[1]:
if CypG[rdlD, fvDH] == True:
AQue[rdlD, fvDH] = NArs[YB_S] / (NArs[A01F] + NAr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2rl(Y7fn):\n cF9X = oyIN.divide(1, 2 * Y7fn, where=Y7fn != 0)\n return cF9X * (m1Hg(Y7fn) - 1 / 2)",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))",
"def N_wf(AQue, NArs, WKvO, CypG):\n x4WC = 0\n E1Wa = 1\n kIAy = 2\n F... | [
"0.6254849",
"0.6156578",
"0.60991484",
"0.60180855",
"0.597135",
"0.5947934",
"0.5933495",
"0.5902696",
"0.58800155",
"0.5854712",
"0.58530974",
"0.5828795",
"0.58283114",
"0.58182395",
"0.58182395",
"0.58182395",
"0.5814351",
"0.58121985",
"0.5807147",
"0.5797886",
"0.57957... | 0.6284754 | 0 |
CUDA sigmoid poi calculation function POI = A2 + (A1 A2) / (1. + exp((x x0) / dx)) | def CVol(AQue, NArs, WKvO, CypG):
vIvR = 0
qvDT = 1
DK5V = 2
smXS = 3
CxtK = 4
_Xjv = 5
Y6IJ = 6
Q7t1 = 7
rdlD, fvDH = lDLs.grid(2)
if rdlD < WKvO.shape[0] and fvDH < WKvO.shape[1]:
if CypG[rdlD, fvDH] == True:
AQue[rdlD, fvDH] = NArs[qvDT] + (NArs[vIvR] - NAr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2rl(Y7fn):\n cF9X = oyIN.divide(1, 2 * Y7fn, where=Y7fn != 0)\n return cF9X * (m1Hg(Y7fn) - 1 / 2)",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT):\n return 1 / (1 + oyIN.exp(-EcVT))",
"def m1Hg(EcVT):\n re... | [
"0.6552296",
"0.6512669",
"0.6466521",
"0.64438874",
"0.64438874",
"0.64080256",
"0.64080256",
"0.64080256",
"0.64080256",
"0.64080256",
"0.64080256",
"0.6405294",
"0.6388431",
"0.6380154",
"0.6361779",
"0.636121",
"0.636121",
"0.63585955",
"0.6335652",
"0.6326919",
"0.632422... | 0.6070556 | 46 |
CUDA calc change. Calculates cohort the change for each cell. | def qe_j(cx8y, Cuh9, a4jv, ZaSX):
rdlD, fvDH = lDLs.grid(2)
if rdlD < a4jv.shape[0] and fvDH < a4jv.shape[1]:
cx8y[rdlD, fvDH] = Cuh9[rdlD, fvDH] * a4jv[rdlD, fvDH]
if ZaSX[rdlD, fvDH] and cx8y[rdlD, fvDH] > a4jv[rdlD, fvDH]:
cx8y[rdlD, fvDH] = a4jv[rdlD, fvDH] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H59P(YKHO):\n XkdX = sum([(1 - YKHO.random_mortality_percentage / 100) * mS46.organism.gDW_per_ml[YKHO._t] for mS46 in YKHO.community_members])\n YKHO._logisticG_factor_gDW_per_ml = 1 - XkdX / YKHO.carrying_capacity['gDW_per_ml']\n if len([mS46 for mS46 in YKHO.community_members if mS46.organism.cells... | [
"0.56052387",
"0.5582978",
"0.54880106",
"0.5454546",
"0.544207",
"0.54047835",
"0.53826034",
"0.53276867",
"0.53138334",
"0.5265648",
"0.5238402",
"0.52302736",
"0.5151833",
"0.5149516",
"0.5089221",
"0.5061779",
"0.5051967",
"0.5027821",
"0.50277597",
"0.50079554",
"0.49970... | 0.7268781 | 0 |
Use the given API key config specified by `keyID` during subsequent API calls | def hLDd(YKHO, usv0):
if usv0 not in YKHO._data['keys']:
raise daSU('keyID does not exist: %s' % usv0)
YKHO._keyID = usv0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dma5(wGvM):\n global api_key\n rJDA = wGvM",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def H_cf(YKHO, H5ew):\n YKHO._api_key = H5ew",
"def rJDA(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def rLF4(rJDA):\n nNXP.get(rJDA)",
"def ... | [
"0.7007791",
"0.6857665",
"0.6857665",
"0.67050457",
"0.65302604",
"0.6447463",
"0.64085895",
"0.6387832",
"0.6359355",
"0.63579786",
"0.6354722",
"0.63433",
"0.6312342",
"0.6309244",
"0.6299176",
"0.6263985",
"0.6216683",
"0.6193545",
"0.6170056",
"0.61216277",
"0.6082163",
... | 0.7160212 | 0 |
Retrieve a value from the config object. | def NMoC(YKHO, ZfUD, WmM4=None):
return YKHO._data.get(ZfUD, WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]",
"def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)",
"def Zmkp(YKHO, H5ew):\n if H5ew not in YKHO._config:\n raise ValueError('%s not in self.config' % H5ew)\n return YKHO._config[H5ew][... | [
"0.79466707",
"0.76257545",
"0.76161593",
"0.7457241",
"0.73098373",
"0.7299716",
"0.70943105",
"0.7071661",
"0.70542556",
"0.7045792",
"0.70316285",
"0.7028973",
"0.7017211",
"0.6988061",
"0.6980378",
"0.6949928",
"0.69200706",
"0.69194895",
"0.68644893",
"0.68601465",
"0.68... | 0.0 | -1 |
Build kite from provided lines. | def CdoT(Emd4, DLAc: list):
LTIa = Emd4.edgeToVertex(DLAc)
return Emd4.fromPoints(LTIa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lK2r(Emd4, Nqlg: List[str], Tuqy: str):\n for zFiD in Nqlg:\n if zFiD.startswith('Original Input'):\n w0fi = zFiD[zFiD.find(':') + 1:].strip()\n elif zFiD.startswith('Predicted Str'):\n nvEb = zFiD[zFiD.find(':') + 1:].strip()\n elif zFiD.startswith('Ground-Truth')... | [
"0.5886205",
"0.58646333",
"0.57949644",
"0.5779631",
"0.56817114",
"0.56526357",
"0.5643199",
"0.56321484",
"0.562157",
"0.5617317",
"0.5614852",
"0.5596618",
"0.5578691",
"0.5562098",
"0.55486816",
"0.55486816",
"0.5541226",
"0.55305016",
"0.5530339",
"0.5527023",
"0.552382... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(y7GR, K0do, qtWj):
tspZ = y7GR.learning_rate * 0.1 ** (qtWj // y7GR.lr_update)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79135466",
"0.7906959",
"0.78501177",
"0.77753556",
"0.7734022",
"0.77317274",
"0.7722737",
"0.77221584",
"0.7719314",
"0.7709071",
"0.7693548",
"0.76741743",
"0.766576",
"0.766576",
"0.766576",
"0.7655009",
"0.76420027",
"0.7639289",
"0.76378644",
"0.7626088",
"0.7624756"... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.7643041",
"0.7418986",
"0.7418119",
"0.7270918",
"0.7245867",
"0.7244652",
"0.72375184",
"0.72214437",
"0.7210162",
"0.7058879",
"0.6851859",
"0.6786372",
"0.6783499",
"0.67681795",
"0.6727462",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179... | 0.0 | -1 |
Polynomial decay of learning rate | def oVri(K0do, DJmW, iter, y54n=1, SYxB=300, naF9=0.9):
tspZ = DJmW * (1 - iter / SYxB) ** naF9
K0do.param_groups[0]['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)",
"def PjIb(OmaG, YRbF, HQEm):\n return OmaG * oyIN.exp(-YRbF / HQEm)",
"def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5",
"def fd7I(YKHO):\n if YKHO.lr_pi_decay_type == 'linear':\n ... | [
"0.7101829",
"0.7059696",
"0.6914346",
"0.6776829",
"0.67757654",
"0.67602867",
"0.67482287",
"0.6728288",
"0.67137057",
"0.67137057",
"0.6695183",
"0.66131467",
"0.65852076",
"0.6568543",
"0.6567431",
"0.65560806",
"0.6546024",
"0.6538584",
"0.65287113",
"0.6522781",
"0.6497... | 0.57691336 | 93 |
Transform a 2D array in onehot format (depth is num_classes), to a 2D array with only 1 channel, where each pixel value is the classified class key. Arguments | def ymiX(LNo8):
LNo8 = LNo8.permute(1, 2, 0)
WKvO = ht2j.argmax(LNo8, dim=-1)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj8B(ezWE, jTqs):\n ezWE = ezWE.data.astype(int)\n jzdc = oyIN.zeros((ezWE.shape[0], jTqs))\n jzdc[oyIN.arange(len(jzdc)), ezWE] = 1\n return vhpA.Tensor(jzdc, requires_grad=True)",
"def kj8B(ezWE, jTqs):\n ezWE = ezWE.data.astype(int)\n jzdc = oyIN.zeros((ezWE.shape[0], jTqs))\n jzdc[oy... | [
"0.8408257",
"0.8408257",
"0.8315677",
"0.80681765",
"0.7958623",
"0.7928876",
"0.78777206",
"0.78674495",
"0.78674495",
"0.78674495",
"0.78674495",
"0.7864283",
"0.78628916",
"0.786034",
"0.78562695",
"0.7805977",
"0.77559763",
"0.7714744",
"0.7673732",
"0.76737237",
"0.7657... | 0.0 | -1 |
categorical (multiclass) crossentropy loss, capable of adding weight, focal loss. input | def FIMM(YKHO, uqRo=False, KMvS=0, K5gX=False):
super(aPze, YKHO).__init__()
YKHO.bWeighted = uqRo
YKHO.bFL = KMvS > 0
YKHO.gamma = KMvS
YKHO.bMask = K5gX
YKHO.channel_axis = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Trm1(Y8eF, aMgO):\n NszA = ZylS.keras.losses.categorical_crossentropy(Y8eF, aMgO, from_logits=True)\n return NszA",
"def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)",
"def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)",
"... | [
"0.7680454",
"0.75057954",
"0.75057954",
"0.7330102",
"0.7300252",
"0.7239577",
"0.7217701",
"0.71571153",
"0.7148089",
"0.7140503",
"0.7090015",
"0.70017487",
"0.6928028",
"0.6870102",
"0.68283427",
"0.6787355",
"0.67823076",
"0.6769102",
"0.6762372",
"0.6694014",
"0.6640877... | 0.0 | -1 |
Returns the amount of memory available on the device | def rypU(YKHO):
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def llBc(YKHO):\n return YKHO.drt_manager.get_total_memory_size()",
"def SPrJ():\n return O0k5.virtual_memory().available",
"def _p7a():\n YUNn = O0k5.virtual_memory()\n return round(YUNn.total / YUNn.used / 100, 3)",
"def uKcV():\n if a9EH == 'linux' or a9EH == 'linux2':\n return PvI6(... | [
"0.80908763",
"0.8082392",
"0.7982003",
"0.7858731",
"0.78526175",
"0.78176254",
"0.77905387",
"0.77070045",
"0.7687429",
"0.7675964",
"0.758462",
"0.75833404",
"0.7567711",
"0.75567925",
"0.7516925",
"0.74682117",
"0.74326515",
"0.74259067",
"0.7395813",
"0.7353532",
"0.7333... | 0.78587407 | 3 |
[Returns the height of the window's content area (viewport) including scrollbars] | def JsKG(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n bGrB, h3cg, bGrB, Z3uP = YKHO.viewport\n return YKHO.parent.window_size[1] * (Z3uP - h3cg)",
"def eIgl(YKHO):\n return YKHO._window_size()[1]",
"def H2v2(YKHO) -> int:\n return YKHO.screen.getmaxyx()[0]",
"def xglF(YKHO):\n return YKHO.calc_height(YKHO.root)",
"def cvl8(YKH... | [
"0.7945583",
"0.77285266",
"0.7074563",
"0.69382715",
"0.68981206",
"0.68597096",
"0.679987",
"0.6786393",
"0.662778",
"0.6589038",
"0.6569717",
"0.6537436",
"0.6537436",
"0.6509543",
"0.6461215",
"0.6421859",
"0.6407395",
"0.63973904",
"0.6375135",
"0.63634956",
"0.635937",
... | 0.0 | -1 |
Extract defined color from image and return large contours (UNUSED) | def e9c5(ZHfW, AyRf):
Iowl, gEYm = XC5k.findContours(ZHfW, XC5k.RETR_EXTERNAL, XC5k.CHAIN_APPROX_SIMPLE)
return ([WKvO for WKvO in Iowl if XC5k.contourArea(WKvO) > AyRf], gEYm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8gk(LNo8, F3pe=False, IznC=None):\n eJh7 = LNo8.copy()\n Fg_i, Oa1e, Mkmy = XC5k.split(LNo8)\n AM97 = (Mkmy[:, :] > 150).astype(oyIN.uint8) * 255\n fxRU = XC5k.divide(Mkmy, Oa1e[:, :] + 1)\n fxRU = (fxRU[:, :] > 1.5).astype(oyIN.uint8) * 255\n fxRU = oyIN.multiply(fxRU, AM97).astype(oyIN.uin... | [
"0.68714905",
"0.6757579",
"0.669214",
"0.66343045",
"0.6594842",
"0.65607345",
"0.655099",
"0.6409985",
"0.63950217",
"0.6382491",
"0.6349377",
"0.6342652",
"0.632714",
"0.63184047",
"0.629059",
"0.62844175",
"0.6268783",
"0.61918944",
"0.61907256",
"0.61861706",
"0.61747867... | 0.56387013 | 99 |
Creates and saves a User with the given email, username and password. | def lYUQ(YKHO, D3lj, NtEF, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
if not NtEF:
raise ValueError('Users must have a username')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), username=NtEF)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se... | [
"0.86353314",
"0.8481137",
"0.8441209",
"0.8421481",
"0.84093404",
"0.8402659",
"0.83984935",
"0.8383734",
"0.8354666",
"0.8316264",
"0.8308027",
"0.82797647",
"0.8261537",
"0.82171035",
"0.81949526",
"0.8193694",
"0.8185672",
"0.8171927",
"0.8171555",
"0.81517804",
"0.814899... | 0.8221097 | 13 |
Pauses the scaling group, causing all scaling policy executions to be rejected until unpaused. This is an idempotent change, if it's already paused, this does not raise an error. | def XmdE(RKD7, vkFH, ACe_, qAYJ):
if not BQK_(ACe_.tenant_id, x0PB):
raise NotImplementedError('Pause is not implemented for legay groups')
return JE1Y(qAYJ, P25N(ACe_, vkFH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XmdE(YKHO, QePW):\n uOe2 = YKHO.store.get_scaling_group(YKHO.log, YKHO.tenant_id, YKHO.group_id)\n return Z7L0.pause_scaling_group(YKHO.log, vkFH(QePW), uOe2, YKHO.dispatcher)",
"def P25N(uOe2, vkFH):\n iwvD = vfuS([I3ma(cX5O(uOe2, True)), a1oD(uOe2.tenant_id, uOe2.uuid, -1)])\n return kKuy(iwvD,... | [
"0.7711779",
"0.72564363",
"0.6947891",
"0.63971376",
"0.6323556",
"0.6200588",
"0.6197848",
"0.6197715",
"0.6197715",
"0.617591",
"0.61642057",
"0.6159052",
"0.6127139",
"0.6086533",
"0.6084649",
"0.6073788",
"0.6070744",
"0.6051046",
"0.6035837",
"0.6028317",
"0.5985923",
... | 0.7651059 | 1 |
Describes a music album. | def ipFY(h5p_, wphz, HqKa=''):
RI88 = {'artist': h5p_, 'album': wphz}
if HqKa:
RI88['tracks'] = HqKa
return RI88 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8nw(YKHO, wphz: str) -> None:\n YKHO.album = wphz",
"def ipFY(IbZ6, Fk6h):\n q_rX = {'Artist': IbZ6.title(), 'Album': Fk6h.title()}\n return q_rX",
"def J8nw(D8Si: EasyID3, wphz):\n D8Si['album'] = wphz\n D8Si.save()",
"def COOc(YKHO):\n return YKHO._state.get('album', None)",
"def y... | [
"0.7066422",
"0.70215434",
"0.68383795",
"0.6837679",
"0.6798034",
"0.6755106",
"0.6682083",
"0.66732985",
"0.66602284",
"0.66576916",
"0.6619869",
"0.65764177",
"0.6571991",
"0.65548277",
"0.65320724",
"0.6524331",
"0.6491871",
"0.6491871",
"0.6471474",
"0.6447201",
"0.64456... | 0.60693735 | 56 |
This method represents the Zoho CRM Production environment in EU domain | def XEgn(Emd4):
return ioll.Environment('https://www.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IBOK(Emd4):\n return ioll.Environment('https://sandbox.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url())",
"def MU1f(Emd4):\n return ioll.Environment('https://developer.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url())",
"def ft7U():\n sEAN.environment = 'production... | [
"0.6654427",
"0.65283966",
"0.6355464",
"0.6292572",
"0.5975507",
"0.5958166",
"0.5926409",
"0.5657863",
"0.56250566",
"0.5617872",
"0.5612356",
"0.55655277",
"0.5521967",
"0.5469647",
"0.54644597",
"0.54508966",
"0.5406809",
"0.53754604",
"0.53497416",
"0.5229801",
"0.519194... | 0.69666076 | 0 |
Returns a string representation of the full url for the confirmation page, which is sent to the user in an email after they subscribe. | def vfwt(OHnm):
bD7m = NKRf + PEts % OHnm
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKhs(Emd4):\n return gxEw('shop_subscribe:confirm')",
"def ojOv(YKHO, iOju, QePW, x3us):\n bD7m = gxEw('accounts:confirm_email', args=[x3us.key])\n U5bT = nh2F(QePW, bD7m)\n return U5bT",
"def hKhs(Emd4):\n return gxEw('shop_subscribe:subscribe')",
"def m07J(YKHO, T4Wy: Order) -> str:\n ... | [
"0.78176534",
"0.7364205",
"0.7014321",
"0.6641499",
"0.6423517",
"0.6328158",
"0.6274099",
"0.6274099",
"0.6155921",
"0.61335504",
"0.6125703",
"0.60614973",
"0.60011137",
"0.60011137",
"0.5986716",
"0.59837425",
"0.5928101",
"0.5928101",
"0.5914755",
"0.58989257",
"0.588841... | 0.7166306 | 2 |
size (columns, rows) pieces (Piece[]) >>> m = Model._create_from_picture(3, (4, 3), [ ... 0, 0, 2, 0, ... 0, 1, 1, 0, ... 1, 2, 2, 1]) >>> print(m) 0020 0110 1221 >>> m.get_piece_at_opening(0, 0) 1 | def MMA_(EdxT, zNig, Zoh6):
C3ST = wOed(EdxT, zNig)
C3ST.initialize_from_picture(Zoh6)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWOa(YKHO, WKvO, LVAh):\n YKHO._validate_opening(WKvO, LVAh)\n return YKHO._openings[WKvO][LVAh]",
"def rNAW(YKHO, _QSz):\n return YKHO.nodes[_QSz].piece",
"def bySB(YKHO, mrj1: 'CurrentPiece', U4nP: Piece) -> h8nf[AzJI]:\n tsWE = (YKHO._array != 0).argmax(axis=0)\n tsWE[tsWE == 0] = YKHO._a... | [
"0.6367122",
"0.6323253",
"0.6297955",
"0.6132888",
"0.60531974",
"0.60531974",
"0.59272397",
"0.584704",
"0.58299464",
"0.57505697",
"0.57505697",
"0.5745817",
"0.5740992",
"0.57026416",
"0.5670445",
"0.5668726",
"0.5668125",
"0.56551147",
"0.56494707",
"0.56447756",
"0.5643... | 0.6068875 | 4 |
the ylocation that the piece would end up at, or 1 if the column is full | def kp3S(YKHO, WKvO):
for LVAh in range(YKHO.size_y):
if YKHO.get_piece_at_opening(WKvO, LVAh) == q8RS.NONE:
return LVAh
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return YKHO.coords[1]",
"def yDCK(YKHO):\n return YKHO.coords[1]",
"def LVAh(YKHO):\n return YKHO.position.y",
"def boAb(YKHO):\n return YKHO.rect.y",
"def boAb(YKHO):\n return YKHO.actual_coordinates[1]",
"def WQ3j(YKHO):\n return YKHO._locations[1]",
"def hPQJ(YKHO... | [
"0.6949835",
"0.69490063",
"0.6937042",
"0.6927862",
"0.6927149",
"0.68999034",
"0.68754035",
"0.6846588",
"0.6813633",
"0.6797426",
"0.679645",
"0.6752494",
"0.6713569",
"0.67100585",
"0.667167",
"0.6656933",
"0.6626716",
"0.6611071",
"0.6510616",
"0.6471383",
"0.6463802",
... | 0.0 | -1 |
Return string representation of this feed. | def wHJl(YKHO):
return '<{}(start={}, stop={}, duration={})>'.format(YKHO.__class__.__name__, YKHO.start_time, YKHO.stop_time, YKHO.duration) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def zAg0(YKHO):\n return '\\n\\n'.join((str(ZfUD) for ZfUD in YKHO._data))",
"def gTzM(YKHO):\n return '\\n'.join((str(bTKY) for bTKY in YKHO))",
"def Napc(YKHO):\n return str(YKHO)",
"def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())",
"def ... | [
"0.75369215",
"0.7309885",
"0.72970533",
"0.7213381",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
"0.7209314",
... | 0.0 | -1 |
Return duration of this run. | def WbTE(YKHO):
return YKHO._duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uefC(YKHO) -> 'outputs.DurationResponse':\n return qe4Y.get(YKHO, 'run_duration')",
"def EdTY(YKHO):\n return YKHO.duration",
"def WbTE(YKHO):\n return YKHO._duration",
"def WbTE(YKHO):\n return YKHO.start and ITS7.process_time() - YKHO.start or 0",
"def WbTE(YKHO):\n pass",
"def WbTE(... | [
"0.841819",
"0.8320614",
"0.83123016",
"0.83057535",
"0.829399",
"0.829399",
"0.82796854",
"0.8276781",
"0.82752943",
"0.823269",
"0.8168037",
"0.8144613",
"0.8130363",
"0.8126044",
"0.81130683",
"0.80658925",
"0.8061788",
"0.80585253",
"0.80529463",
"0.80420655",
"0.8023745"... | 0.8279802 | 12 |
Return start time of this run. | def SWox(YKHO):
return YKHO._start_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO):\n return YKHO.__start",
"def SWox(YKHO) -> float:\n return YKHO._start_time",
"def SWox(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'start_time')",
"def SWox(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_time')",
"def SWox(YKHO) -> str:\n return qe4Y.... | [
"0.8904563",
"0.8877261",
"0.86674637",
"0.86278015",
"0.8618451",
"0.8618451",
"0.8609431",
"0.8603524",
"0.8527951",
"0.8417625",
"0.8360233",
"0.83549714",
"0.8353214",
"0.8292033",
"0.8253035",
"0.82044715",
"0.82044715",
"0.8146769",
"0.81311834",
"0.8126113",
"0.8116545... | 0.8745896 | 9 |
Return stop time of this run. | def U4J1(YKHO):
return YKHO.start_time + fCoM(hours=YKHO.duration) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4J1(YKHO):\n return YKHO.__stopped",
"def JCyR(YKHO):\n YKHO.__stopped = YKHO.__last_time()\n return YKHO.elapsed",
"def JCyR(YKHO):\n YKHO.times.append(ITS7.time() - YKHO.tik)\n return YKHO.times[-1]",
"def JCyR(YKHO):\n YKHO.times.append(ITS7.time() - YKHO.tik)\n return YKHO.times... | [
"0.85870177",
"0.8031591",
"0.78807056",
"0.78807056",
"0.78807056",
"0.78764784",
"0.7491457",
"0.7429995",
"0.73848057",
"0.7348293",
"0.73042476",
"0.72258806",
"0.71945703",
"0.7129227",
"0.7025979",
"0.70021003",
"0.69894266",
"0.6987054",
"0.69773656",
"0.69612354",
"0.... | 0.78196543 | 6 |
Provide a usable representation of start and stop time. | def AEF4(YKHO):
if YKHO.start_time.day != qcWV.now().day:
yKcO = YKHO.start_time.strftime('%a, %H:%M')
else:
yKcO = YKHO.start_time.strftime('%H:%M')
Os4s = YKHO.stop_time.strftime('%H:%M')
return '{} - {}'.format(yKcO, Os4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s700(YKHO):\n return ITS7.strftime('%H:%M:%S', ITS7.localtime(YKHO.start_time))",
"def m7L9(YKHO):\n yKcO = ''\n Os4s = ''\n ITS7 = ''\n WXkz = YKHO.times\n print(WXkz[YKHO.istep])\n if YKHO.istep > 0:\n yKcO = ShWf.beginstr % WXkz[YKHO.istep].isoformat()\n if YKHO.istep < len(... | [
"0.71280074",
"0.71063316",
"0.7050227",
"0.68914187",
"0.6843214",
"0.680543",
"0.67934424",
"0.67819357",
"0.66692394",
"0.6574475",
"0.65690154",
"0.65640473",
"0.65607846",
"0.6541919",
"0.6523744",
"0.651614",
"0.6508179",
"0.6488849",
"0.64865726",
"0.64790505",
"0.6468... | 0.68876326 | 4 |
Asserts that the target and actual shape match. | def EAsV(vhpA, ROpF, mWFP):
wYGV = vhpA.get_shape().as_list()
NbD1 = len(wYGV) == len(ROpF)
ac8g = all([KCHu == Mkmy or KCHu == -1 for KCHu, Mkmy in zip(ROpF, wYGV)])
if not NbD1 or not ac8g:
raise ZylS.errors.InvalidArgumentError('Error: Expected tensor %s to have shape %s, but it had shape %s.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPMb(aTLP: Tensor, pan_: Tensor) -> None:\n if aTLP.shape != pan_.shape:\n raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.')",
"def vY1g(yhyn, UBMT, ygSi):\n ETfU = UBMT.get_shape()\n pfA5 = ygSi.get_shape()\n if not ... | [
"0.7319899",
"0.7054129",
"0.690362",
"0.685845",
"0.66772175",
"0.6632224",
"0.65484196",
"0.6517784",
"0.6480683",
"0.6478203",
"0.6463825",
"0.6431351",
"0.6413117",
"0.63978297",
"0.6356055",
"0.63386387",
"0.63349813",
"0.63167435",
"0.6293742",
"0.62749046",
"0.6274886"... | 0.66646236 | 5 |
Creates a new tensor axis and tiles it to a specified length. | def YnOt(a1PO, jDK_, u54L):
a1PO = ZylS.expand_dims(a1PO, axis=jDK_)
i8Uq = a1PO.get_shape().as_list()
LBFJ = [1] * len(i8Uq)
LBFJ[jDK_] = u54L
return ZylS.tile(a1PO, LBFJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DS9s(vhpA, NXmX, jDK_=-3):\n ROpF = vhpA.shape.as_list()\n ROpF[0] = NXmX\n vhpA.set_shape(ROpF)\n cZDQ = list(range(vhpA.shape.ndims))\n cZDQ[0] = cZDQ[jDK_]\n cZDQ[jDK_] = 0\n return ZylS.transpose(vhpA, cZDQ)",
"def SNhl(vhpA, jDK_, XqwL, xgWT=0):\n vhpA = ZylS.convert_to_tensor(vh... | [
"0.6480759",
"0.6409938",
"0.6055184",
"0.6055184",
"0.5978806",
"0.58723545",
"0.5797694",
"0.579023",
"0.5745332",
"0.57359654",
"0.569535",
"0.5675055",
"0.56415784",
"0.562487",
"0.5613713",
"0.5598268",
"0.5557938",
"0.5546641",
"0.5530259",
"0.55118066",
"0.5508421",
... | 0.86206746 | 0 |
Return a string representation of the imager profile instance. | def zAg0(YKHO):
z39Z = {'address': YKHO.address, 'bio': YKHO.bio, 'website': YKHO.website, 'hireable': YKHO.hireable, 'travel_radius': YKHO.travel_radius, 'phone number': YKHO.phone_number, 'camera type': YKHO.camera_type, 'type of photography': YKHO.photography_type}
return str(YKHO.user.username) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '{{\"profile\": \"{self.profile!r}\", \"accesskey\": \"{self.accesskey!r}\", \"workspace_id\": \"{self.workspace_id!r}\", \"tenant_id\": \"{self.tenant_id!r}\", \"url\": \"{self.url!r}\", \"gateway_url\": \"{self.gateway_url!r}\", \"use_color\": \"{self.use_color!r}\", \"use_aad\": \"{s... | [
"0.7197736",
"0.71337396",
"0.6959724",
"0.68646514",
"0.67674387",
"0.67632085",
"0.65932965",
"0.6549228",
"0.65153575",
"0.6513718",
"0.6512621",
"0.6466757",
"0.64281404",
"0.63845736",
"0.63845736",
"0.6372278",
"0.6372278",
"0.6372278",
"0.6372278",
"0.6372278",
"0.6372... | 0.6908537 | 3 |
Gets the label of the column. | def DeTJ(YKHO):
return YKHO.label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPka(YKHO):\n return YKHO.getOrDefault(YKHO.labelColumn)",
"def dBxG(YKHO, iVRZ):\n return iVRZ",
"def nscJ(YKHO):\n if YKHO._label is not None:\n return YKHO._label\n return 'Column %d' % (YKHO.index + 1)",
"def vt_q(YKHO, FyXH):\n UXqs = YKHO.colLabels[FyXH]\n try:\n or8... | [
"0.86905575",
"0.86013365",
"0.85247946",
"0.7622797",
"0.7540919",
"0.73672235",
"0.7361779",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73191035",
"0.73185396",
"0.7307684",
"0.7301056",
"0.72894186",
"0.72799706",
"0.72799706",
"0.72799706",
"0.72799706",
"... | 0.73970884 | 5 |
Returns the height of the column cell's row while it is being edited. | def SfqK(YKHO, object):
return YKHO.edit_height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n return YKHO.row",
"def H2v2(YKHO):\n return len(YKHO.rows)",
"def VAHQ(YKHO):\n return YKHO.height",
"def H2v2(YKHO):\n return len(YKHO._rows)",
"def VAHQ(YKHO):\n return YKHO._height",
"def VAHQ(YKHO):\n return YKHO._height",
"def H2v2(YKHO):\n return YKHO.sheet.... | [
"0.8035072",
"0.72411776",
"0.7180565",
"0.71582407",
"0.7148934",
"0.7112864",
"0.70668644",
"0.7054299",
"0.7054299",
"0.70108306",
"0.70071125",
"0.70071125",
"0.7004636",
"0.70033884",
"0.70033884",
"0.6998274",
"0.6998274",
"0.6943957",
"0.6937389",
"0.69369316",
"0.6936... | 0.73265344 | 1 |
Returns the cell background color for the column for a specified object. | def DWAR(YKHO, object):
if YKHO.is_editable(object):
return YKHO.cell_color_
return YKHO.read_only_cell_color_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWAR(YKHO, object):\n if YKHO.is_editable(object):\n if YKHO._is_selected(object):\n return YKHO.selected_cell_color_\n return YKHO.cell_color_\n return YKHO.read_only_cell_color_",
"def QPVU(YKHO) -> z4e6:\n return getattr(z4e6, YKHO.data.get('background_color', 'black'))",... | [
"0.68345994",
"0.6281526",
"0.6057362",
"0.5913437",
"0.5886267",
"0.5784454",
"0.5756031",
"0.5750721",
"0.5694421",
"0.5671432",
"0.561941",
"0.561755",
"0.5564679",
"0.5548145",
"0.55429244",
"0.5522229",
"0.54416186",
"0.5405656",
"0.53389734",
"0.52914613",
"0.52597046",... | 0.69000113 | 0 |
Returns the cell background graph color for the column for a specified object. | def Lj5r(YKHO, object):
return YKHO.graph_color_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWAR(YKHO, object):\n if YKHO.is_editable(object):\n return YKHO.cell_color_\n return YKHO.read_only_cell_color_",
"def DWAR(YKHO, object):\n if YKHO.is_editable(object):\n if YKHO._is_selected(object):\n return YKHO.selected_cell_color_\n return YKHO.cell_color_\n ... | [
"0.6671416",
"0.6592424",
"0.6358976",
"0.6299487",
"0.6191073",
"0.5837952",
"0.5835975",
"0.58019525",
"0.57996476",
"0.57749474",
"0.57514226",
"0.57434636",
"0.57287246",
"0.57268125",
"0.57122487",
"0.56985015",
"0.5655659",
"0.56445354",
"0.55324876",
"0.55112094",
"0.5... | 0.6389501 | 2 |
Returns the maximum value a numeric column can have. | def qQji(YKHO, object):
return YKHO.maximum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfB5(YKHO):\n bQ6z = YKHO.df[YKHO.col_name].max()\n return bQ6z",
"def xCrM(YKHO, usx6: List[Row], iVRZ: NumberColumn) -> KUXB:\n mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not mQEc:\n return 0.0\n if not all([isinstance(BWXx, KUXB) for B... | [
"0.7949757",
"0.7508968",
"0.7505906",
"0.7485621",
"0.742532",
"0.7198015",
"0.71339726",
"0.71242625",
"0.70739967",
"0.70612353",
"0.7002507",
"0.69686466",
"0.69371647",
"0.69188416",
"0.6916566",
"0.68938875",
"0.68726885",
"0.6842791",
"0.6842791",
"0.68370193",
"0.6837... | 0.67337346 | 32 |
Returns the string representation of the table column. | def zAg0(YKHO):
return YKHO.get_label() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return str(YKHO.attribute_col) + YKHO.symbol",
"def Ce8C(YKHO) -> str:\n return '{}:{}'.format(YKHO.name, YKHO.dtype)",
"def UVdK(YKHO, iVRZ):\n return QMSQ(YKHO.__getattribute__(hfJL.COLUMN_STR[iVRZ]))",
"def CZBi(YKHO):\n if YKHO.symbol == '+':\n ycBG = str(YKHO.attribu... | [
"0.7857894",
"0.7824976",
"0.77788484",
"0.71998507",
"0.69918716",
"0.69782275",
"0.6969328",
"0.69576627",
"0.69408697",
"0.6937393",
"0.69145554",
"0.6880316",
"0.6806661",
"0.6793285",
"0.67822886",
"0.67719007",
"0.67441034",
"0.67400753",
"0.6701981",
"0.6644846",
"0.66... | 0.0 | -1 |
Gets the label of the column. | def nscJ(YKHO):
if YKHO._label is not None:
return YKHO._label
return wbi7(YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPka(YKHO):\n return YKHO.getOrDefault(YKHO.labelColumn)",
"def dBxG(YKHO, iVRZ):\n return iVRZ",
"def nscJ(YKHO):\n if YKHO._label is not None:\n return YKHO._label\n return 'Column %d' % (YKHO.index + 1)",
"def vt_q(YKHO, FyXH):\n UXqs = YKHO.colLabels[FyXH]\n try:\n or8... | [
"0.86905575",
"0.86013365",
"0.85247946",
"0.7622797",
"0.7540919",
"0.73970884",
"0.73672235",
"0.7361779",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73191035",
"0.73185396",
"0.7307684",
"0.7301056",
"0.72894186",
"0.72799706",
"0.72799706",
"0.72799706",
"... | 0.640692 | 90 |
Sets the value of the column for a specified object. | def j6Nn(YKHO, object, BWXx):
pan_, mWFP = YKHO.target_name(object)
setattr(pan_, mWFP, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO, object, rdlD, BWXx):\n iVRZ = YKHO.get_data_column(object)\n iVRZ[rdlD] = type(iVRZ[rdlD])(BWXx)",
"def j6Nn(YKHO, object, BWXx):\n object[YKHO.index] = BWXx",
"def wkZW(YKHO, KAOR, BWXx):\n if KAOR:\n return KAOR._values[YKHO.column.column_name].setval(BWXx)\n else:\n ... | [
"0.8151175",
"0.7529195",
"0.7241931",
"0.7179882",
"0.69967765",
"0.6885749",
"0.6606071",
"0.6422484",
"0.64063424",
"0.6385849",
"0.6382012",
"0.6369049",
"0.63424414",
"0.6314007",
"0.63119334",
"0.62879497",
"0.6277313",
"0.62759095",
"0.62614375",
"0.62551206",
"0.62551... | 0.7206155 | 3 |
Gets the editor for the column of a specified object. | def Q9Y3(YKHO, object):
if YKHO.editor is not None:
return YKHO.editor
pan_, mWFP = YKHO.target_name(object)
return pan_.base_trait(mWFP).get_editor() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q9Y3(YKHO, object):\n return super(xQ77, YKHO).get_editor(object)",
"def Q9Y3(YKHO, object):\n return None",
"def bx_5(YKHO):\n return YKHO._editor",
"def yThU(YKHO, object):\n return getattr(object, YKHO.name)",
"def Q9Y3(YKHO, FZKb=None):\n if YKHO.editor is None:\n YKHO.editor ... | [
"0.7736865",
"0.6847517",
"0.62578267",
"0.6037094",
"0.5778927",
"0.5654012",
"0.56333137",
"0.560536",
"0.5563185",
"0.55332774",
"0.5499682",
"0.54986906",
"0.5476404",
"0.53061664",
"0.5272211",
"0.52221936",
"0.5216628",
"0.5214872",
"0.52039963",
"0.51888514",
"0.518130... | 0.72835356 | 1 |
Gets the editor style for the column of a specified object. | def TeUs(YKHO, object):
return YKHO.style | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mlI1(YKHO, rdlD: int, iVRZ: int):\n _Cnz = None\n if 'STYLE' in YKHO._source.columns:\n _Cnz = YKHO._source.loc[YKHO.get_source_row(rdlD), 'STYLE']\n z0q4 = YKHO._dataframe.columns[iVRZ]\n if f'STYLE_{z0q4}' in YKHO._source.columns:\n _Cnz = YKHO._source.loc[YKHO.get_source_row(rdlD),... | [
"0.681116",
"0.66179705",
"0.65270686",
"0.6340773",
"0.60804594",
"0.601501",
"0.5947503",
"0.5778554",
"0.5778554",
"0.5593435",
"0.5577242",
"0.5540711",
"0.5402539",
"0.5243572",
"0.52218306",
"0.51929045",
"0.5146163",
"0.5135001",
"0.51014274",
"0.5091314",
"0.5056963",... | 0.6718743 | 1 |
Gets the label of the column. | def nscJ(YKHO):
if YKHO._label is not None:
return YKHO._label
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPka(YKHO):\n return YKHO.getOrDefault(YKHO.labelColumn)",
"def dBxG(YKHO, iVRZ):\n return iVRZ",
"def nscJ(YKHO):\n if YKHO._label is not None:\n return YKHO._label\n return 'Column %d' % (YKHO.index + 1)",
"def vt_q(YKHO, FyXH):\n UXqs = YKHO.colLabels[FyXH]\n try:\n or8... | [
"0.86905575",
"0.86013365",
"0.85247946",
"0.7622797",
"0.7540919",
"0.73970884",
"0.73672235",
"0.7361779",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73584646",
"0.73191035",
"0.73185396",
"0.7307684",
"0.7301056",
"0.72894186",
"0.72799706",
"0.72799706",
"0.72799706",
"... | 0.699983 | 47 |
Returns the cell background color for the column for a specified object row. | def DWAR(YKHO, object):
if YKHO.is_editable(object):
if YKHO._is_selected(object):
return YKHO.selected_cell_color_
return YKHO.cell_color_
return YKHO.read_only_cell_color_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWAR(YKHO, object):\n if YKHO.is_editable(object):\n return YKHO.cell_color_\n return YKHO.read_only_cell_color_",
"def gdTH(YKHO):\n return YKHO._colBack",
"def mlI1(YKHO, rdlD: int, iVRZ: int):\n _Cnz = None\n if 'STYLE' in YKHO._source.columns:\n _Cnz = YKHO._source.loc[YKHO... | [
"0.65797424",
"0.60449946",
"0.5811809",
"0.57736534",
"0.57585245",
"0.57136506",
"0.567724",
"0.5561861",
"0.5518657",
"0.55150086",
"0.54836965",
"0.5456312",
"0.5450515",
"0.5440606",
"0.54206413",
"0.54044914",
"0.53747666",
"0.528467",
"0.5278225",
"0.52495706",
"0.5246... | 0.6549076 | 1 |
Returns the horizontal alignment for the column for a specified object row. | def P6An(YKHO, object):
return YKHO.horizontal_alignment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HHGa(YKHO):\n YKHO.update()\n return YKHO._horizontal_alignment",
"def AT5E(YKHO, iVRZ):\n return YKHO._header_win.GetColumn(iVRZ).GetAlignment()",
"def Fcr6(YKHO, rdlD):\n yKcO = YKHO.HORIZONTAL_GROUP[rdlD]\n Os4s = yKcO + 3\n return YKHO.grid[yKcO:Os4s]",
"def gP5x(rdlD, WBPg=False, T... | [
"0.6685467",
"0.6620425",
"0.6472826",
"0.6220936",
"0.6108616",
"0.6108616",
"0.60954803",
"0.60380316",
"0.5980269",
"0.59591275",
"0.59591275",
"0.59591275",
"0.59015685",
"0.5730585",
"0.57073325",
"0.56525975",
"0.54857033",
"0.5475834",
"0.5449732",
"0.53637564",
"0.529... | 0.7387041 | 0 |
Gets the value of the column for a specified object row. | def Zmkp(YKHO, object):
try:
BWXx = getattr(object, YKHO.name)
try:
return YKHO.format % (BWXx,)
except:
return 'Format!'
except:
return 'Undefined!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, rdlD, tcLV):\n return YKHO[rdlD][YKHO._columns[tcLV]]",
"def NMoC(YKHO, z0q4, begg):\n YKHO.check_for_column(z0q4)\n return YKHO.data[z0q4][begg]",
"def LXG0(YKHO, rdlD):\n return rdlD['_source'][YKHO.name]",
"def Xa8q(YKHO, rdlD, iVRZ):\n return YKHO.thing[f'{iVRZ}{rdlD}'].valu... | [
"0.82184756",
"0.75858814",
"0.75552636",
"0.74341667",
"0.73170936",
"0.7256945",
"0.72362494",
"0.72314465",
"0.70758146",
"0.7032267",
"0.7007239",
"0.6946452",
"0.68728876",
"0.6760917",
"0.67112553",
"0.6660365",
"0.66290635",
"0.6608173",
"0.660303",
"0.6591175",
"0.659... | 0.0 | -1 |
Gets the editor for the column of a specified object row. | def Q9Y3(YKHO, object):
return super(xQ77, YKHO).get_editor(object) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xq3w(sFNR):\n try:\n bx_5 = sFNR.args[UeE5]\n except KeyError:\n bx_5 = Gu9I\n ceth = EB93[bx_5]\n return ceth(sFNR)",
"def Q9Y3(YKHO, object):\n if YKHO.editor is not None:\n return YKHO.editor\n pan_, mWFP = YKHO.target_name(object)\n return pan_.base_trait(mWFP).g... | [
"0.6708982",
"0.63182646",
"0.60418475",
"0.58705795",
"0.582339",
"0.57156456",
"0.5626795",
"0.5623236",
"0.5578205",
"0.55349874",
"0.55187184",
"0.5493587",
"0.5486184",
"0.54861456",
"0.54533494",
"0.544203",
"0.5428219",
"0.54095453",
"0.5408204",
"0.54041564",
"0.54038... | 0.7125642 | 0 |
Gets the label of the column. | def nscJ(YKHO):
if YKHO._label is not None:
return YKHO._label
return 'Column %d' % (YKHO.index + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPka(YKHO):\n return YKHO.getOrDefault(YKHO.labelColumn)",
"def dBxG(YKHO, iVRZ):\n return iVRZ",
"def vt_q(YKHO, FyXH):\n UXqs = YKHO.colLabels[FyXH]\n try:\n or8S = YKHO.dynamic_cols.index(FyXH)\n except ValueError:\n pass\n else:\n if YKHO.dynamic_expressions[or8S]... | [
"0.86910146",
"0.8601748",
"0.762423",
"0.7540734",
"0.7397942",
"0.7368096",
"0.7361652",
"0.73592573",
"0.73592573",
"0.73592573",
"0.73592573",
"0.73201543",
"0.73193675",
"0.7309397",
"0.73019624",
"0.7290396",
"0.72809434",
"0.72809434",
"0.72809434",
"0.72809434",
"0.72... | 0.85252935 | 2 |
Gets the value of the column for a specified object. | def Zmkp(YKHO, object):
return QMSQ(object[YKHO.index]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yThU(YKHO, object):\n return getattr(object, YKHO.name)",
"def WcQ2(YKHO, YEnM):\n if LauH(YEnM):\n\n def NMoC(YEnM, iVRZ):\n return getattr(YEnM, iVRZ, None)\n elif ygM9(YEnM):\n\n def NMoC(YEnM, iVRZ):\n return YEnM.get(iVRZ)\n elif Kuz2(YEnM):\n\n def... | [
"0.802243",
"0.77252126",
"0.71887",
"0.68370986",
"0.6662876",
"0.66384363",
"0.65818477",
"0.65477073",
"0.6522401",
"0.6485197",
"0.63584733",
"0.63518703",
"0.6294203",
"0.62488496",
"0.62483054",
"0.6207198",
"0.6192606",
"0.61747164",
"0.6171897",
"0.6156743",
"0.614174... | 0.67055136 | 4 |
Sets the value of the column for a specified object. | def j6Nn(YKHO, object, BWXx):
object[YKHO.index] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO, object, rdlD, BWXx):\n iVRZ = YKHO.get_data_column(object)\n iVRZ[rdlD] = type(iVRZ[rdlD])(BWXx)",
"def wkZW(YKHO, KAOR, BWXx):\n if KAOR:\n return KAOR._values[YKHO.column.column_name].setval(BWXx)\n else:\n raise AttributeError('cannot reassign column values')",
"def ... | [
"0.8151175",
"0.7241931",
"0.7206155",
"0.7179882",
"0.69967765",
"0.6885749",
"0.6606071",
"0.6422484",
"0.64063424",
"0.6385849",
"0.6382012",
"0.6369049",
"0.63424414",
"0.6314007",
"0.63119334",
"0.62879497",
"0.6277313",
"0.62759095",
"0.62614375",
"0.62551206",
"0.62551... | 0.7529195 | 1 |
Gets the editor for the column of a specified object. | def Q9Y3(YKHO, object):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q9Y3(YKHO, object):\n return super(xQ77, YKHO).get_editor(object)",
"def Q9Y3(YKHO, object):\n if YKHO.editor is not None:\n return YKHO.editor\n pan_, mWFP = YKHO.target_name(object)\n return pan_.base_trait(mWFP).get_editor()",
"def bx_5(YKHO):\n return YKHO._editor",
"def yThU(YK... | [
"0.7736865",
"0.72835356",
"0.62578267",
"0.6037094",
"0.5778927",
"0.5654012",
"0.56333137",
"0.560536",
"0.5563185",
"0.55332774",
"0.5499682",
"0.54986906",
"0.5476404",
"0.53061664",
"0.5272211",
"0.52221936",
"0.5216628",
"0.5214872",
"0.52039963",
"0.51888514",
"0.51813... | 0.6847517 | 2 |
First checks if user has old SHA256 password. If a SHA256 pw returns as anything besides null, then we check if the password was valid. If it is valid we convert the plaintext into bcrypt PW, remove the old password, and commit the user to DB. Then we allow the Bcrypt pw hash comparison. | def EvfH(YKHO, jTXt):
GfdN = False
if YKHO.password is not None:
bo34.critical('Old style password exists.')
if z8jj(YKHO.password, jTXt):
YKHO.passwd = jTXt
YKHO.password = None
NCls.session.add(YKHO)
NCls.session.commit()
bo34.critica... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIy1(L03z, Jyyj):\n BfIX = Jyyj.data\n jTXt = c5ow.password\n Mkmy = jf1V.verify(BfIX, c5ow.password)\n if not Mkmy:\n raise _FIc.ValidationError('old password is wrong')",
"def nz9i(NTfD: bytes, USaV: bytes, jTXt: str) -> bool:\n return W7gX.compare_digest(USaV, HBct.pbkdf2_hmac('sha25... | [
"0.6957514",
"0.69238627",
"0.6763713",
"0.67592585",
"0.6738218",
"0.66951346",
"0.66834366",
"0.65960836",
"0.65084743",
"0.6442836",
"0.64326787",
"0.6427476",
"0.6390737",
"0.63809144",
"0.63685524",
"0.6346269",
"0.63041514",
"0.6302455",
"0.6296736",
"0.62635005",
"0.62... | 0.7017114 | 0 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
YKHO.NumAgents = Ov5A.getNumAgents()
YKHO.root = Ov5A
YKHO.Max_Value(Ov5A, -10000, 10000, YKHO.index, YKHO.depth)
return YKHO.move
gnPz.raiseNotDefined() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.6421313 | 59 |
r"""Failures in finding the context structure for an Access Gateway session during attempts to send sessionspecific audit messages. During an Access Gateway session, audit messages related to the session are queued up in the auditlog buffer for transmission to the audit log server(s). If the session is killed before th... | def dm7w(YKHO):
try:
return YKHO._auditcontextnotfound
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f59e(YKHO, JkXK: str, FdDZ: int):\n if YKHO.model.tcex_testing_context is not None:\n Exa4: list[str] = qQXR.loads(YKHO.redis_client.hget(YKHO.model.tcex_testing_context, '_context_tracker') or '[]')\n Exa4.append(JkXK)\n YKHO.redis_client.hset(YKHO.model.tcex_testing_context, '_context... | [
"0.5072777",
"0.5037233",
"0.49920177",
"0.493634",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
"0.47781694",
... | 0.481426 | 4 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = qIxc.lr * 0.1 ** (qtWj // 30)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79140896",
"0.7908034",
"0.7850816",
"0.7776915",
"0.7735598",
"0.7732588",
"0.7723862",
"0.77235436",
"0.77208304",
"0.7710736",
"0.76948273",
"0.7675381",
"0.76670265",
"0.76670265",
"0.76670265",
"0.7657111",
"0.76431805",
"0.7640621",
"0.7639109",
"0.76275903",
"0.7625... | 0.7581243 | 31 |
Path to the topology file. | def YXqv(F_Gj):
YC6i = jHsn.Graph()
with open(F_Gj, 'r') as eHNT:
for zFiD in eHNT.readlines():
if len(zFiD) > 10 and zFiD[0] != '#':
Qb89 = zFiD.split()
JZXy = Qb89[0]
e1vZ = Qb89[2]
b7hB = unTI(Qb89[1], Qb89[3])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sMmE(YKHO):\n return Hy7s.path.join(YKHO.base_path, YKHO.structure_dir, YKHO.content_path, YKHO.structure_filename)",
"def qaEx(YKHO):\n return YKHO._obs_file()",
"def EBtR(rrBf='session'):\n return gzes(TLI7(xAKo), AWRn, 'new_data', 'graph')",
"def TjrZ(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.6582124",
"0.6533398",
"0.6444924",
"0.63309604",
"0.62411016",
"0.62280643",
"0.6183243",
"0.6140121",
"0.6132891",
"0.6113392",
"0.6094624",
"0.6092807",
"0.6092807",
"0.6079097",
"0.60399055",
"0.6025102",
"0.6021762",
"0.601031",
"0.59675217",
"0.5961744",
"0.5959959",... | 0.0 | -1 |
Test request missing data returns bad request | def yLKj():
geh0 = TgwQ.number({'body': '{}'}, {})
assert geh0['statusCode'] == 422 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igfG(YKHO):\n geh0 = YKHO.client.post(YKHO.reg_url, {}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertIn(b'required', geh0.content)",
"def EzEe(YKHO, nPrm):\n nPQe = []\n for H5ew in nPrm:\n if not H5ew in QePW.json:\n nPQe.append... | [
"0.7796567",
"0.74374986",
"0.7252798",
"0.7248151",
"0.71832997",
"0.71806026",
"0.71496886",
"0.7119186",
"0.7112824",
"0.7100003",
"0.7070147",
"0.7066765",
"0.7047179",
"0.700831",
"0.6985001",
"0.6969568",
"0.6949432",
"0.69426394",
"0.69081557",
"0.6899525",
"0.6899085"... | 0.0 | -1 |
Test searching for a name missing data returns bad request | def ZR3k():
geh0 = TgwQ.assigned({'body': '{}'}, {})
assert geh0['statusCode'] == 422 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVOJ(YKHO):\n QePW = zVa7.get_request('GET', {u'taxon': u'Nosuchtaxonia'})\n WKvO = YKHO.start_request_tests(QePW)\n r8hN = WKvO.json().get(u'message')\n YKHO.assertTrue(WKvO.status_code >= 200)\n YKHO.assertTrue('No Taxon matched\" in \"%s\"' % r8hN)",
"def eo7M(YKHO):\n geh0 = YKHO.client... | [
"0.7701791",
"0.7330856",
"0.7068752",
"0.68458813",
"0.6762438",
"0.67555565",
"0.67085963",
"0.66919285",
"0.6580761",
"0.6573775",
"0.653031",
"0.6529306",
"0.6488975",
"0.648795",
"0.64581347",
"0.6454054",
"0.64527106",
"0.64371336",
"0.63747424",
"0.63695323",
"0.636404... | 0.64512247 | 17 |
Get rw_api_key if provided in the configuration, otherwise get ro_api_key | def i2_n(Jpbe):
if Jpbe.get('rw_api_key'):
return Jpbe.get('rw_api_key')
else:
return Jpbe.get('ro_api_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7gc():\n _Fei = R4f_()\n _Fei = _Fei['notifier']['telegram_bot']\n return _Fei.get('api_key')",
"def p7gc():\n kmal = Hy7s.getenv('KOKORO_GFILE_DIR')\n URAv = Hy7s.path.join(kmal, 'resultstore_api_key')\n assert Hy7s.path.isfile(URAv), 'Must add --api_key arg if not on Kokoro or Kokoro env... | [
"0.69545305",
"0.6857441",
"0.6817429",
"0.68095845",
"0.67815363",
"0.6729458",
"0.6729458",
"0.6723309",
"0.6576936",
"0.65597695",
"0.6557634",
"0.6547672",
"0.64181113",
"0.6394189",
"0.63922924",
"0.63775486",
"0.6364561",
"0.6307864",
"0.63058734",
"0.62862015",
"0.6274... | 0.77554333 | 0 |
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser | def d6pt(YKHO, U3hF=None):
if YKHO.plugin.login_state == True:
YKHO.set_cookie_pic(True)
else:
YKHO.set_cookie_pic(False)
R5Jy = ''
for zFiD in YKHO.plugin.rotating_log:
R5Jy += str(zFiD) + '\n'
NRJS = YKHO.get_device_list()
YQjX = len(NRJS)
pH4s = YKHO.plugin.last_up... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def Vn7Z():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZ... | [
"0.7802277",
"0.7802277",
"0.7720471",
"0.77078813",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
"0.7637202",
... | 0.0 | -1 |
Creates a Pokemon object from a json dictionary | def pktP(Emd4, nPrm: dict) -> 'Pokemon':
oLdq: list = list(map(P_ka.from_json, nPrm['move_set']))
return Emd4(nPrm['id'], nPrm['name'], nPrm['types'], nPrm['weight'], nPrm['height'], nPrm['abilities'], nPrm['move_list'], oLdq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qN71(Emd4, MvTC: APIHandler, geh0: requests.models.Response) -> 'Pokemon':\n xmW6: dict = qQXR.loads(geh0.text)\n id: int = xmW6['id']\n mWFP: str = xmW6['name'].capitalize()\n SnBA: tuple = tuple([type['type']['name'].capitalize() for type in xmW6['types']])\n upAO: int = xmW6['weight']\n H2... | [
"0.6312325",
"0.61387926",
"0.58204556",
"0.57325155",
"0.5695455",
"0.5693761",
"0.56828916",
"0.5662741",
"0.5657147",
"0.56004125",
"0.555932",
"0.555932",
"0.555932",
"0.55343896",
"0.5518079",
"0.55150104",
"0.5508857",
"0.55003303",
"0.5498654",
"0.54966396",
"0.5494049... | 0.78120804 | 0 |
Set the card's name, suit, and identification number. | def OjpK(YKHO, mWFP, iCfd, mCZj=0):
YKHO.name = str(mWFP)
YKHO.suit = str(iCfd)
YKHO.id = int(mCZj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def okES(YKHO, dxhl):\n if dxhl == 1 or dxhl == 2:\n YKHO._card = dxhl\n else:\n HwRy.stderr.write(\"\\nERROR : %s card number must be 1 or 2 so it can't be %s !\\n\" % (YKHO._target_id, dxhl))\n HwRy.exit(1)",
"def T_m6(YKHO, d7pR):\n YKHO.suit = d7pR",
"def okES(YKHO, I0iK):\n ... | [
"0.7173432",
"0.68502975",
"0.6695155",
"0.65101445",
"0.64912117",
"0.61500406",
"0.61423874",
"0.6100892",
"0.6100892",
"0.6070534",
"0.5982453",
"0.5962046",
"0.59164387",
"0.5883601",
"0.5865561",
"0.58543205",
"0.5849564",
"0.58125895",
"0.5774057",
"0.5745068",
"0.56753... | 0.8090841 | 0 |
Set the card's point value. | def zUz_(YKHO, LTIa):
YKHO.value = int(LTIa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AU8u(YKHO, BWXx: Point):\n YKHO._point = BWXx",
"def lr7F(YKHO, AU8u):\n YKHO.point = AU8u",
"def lr7F(YKHO, AU8u):\n YKHO.position = AU8u.position",
"def lr7F(YKHO, WKvO, LVAh, BWXx):\n YKHO._c[WKvO * YKHO.__height + LVAh] = BWXx",
"def CQdk(YKHO, BWXx):\n u_ln = WiNZ(YKHO, BWXx)\n r... | [
"0.7993416",
"0.770242",
"0.7499313",
"0.74505854",
"0.7435141",
"0.7431511",
"0.73892695",
"0.73642975",
"0.7231408",
"0.71950835",
"0.6984943",
"0.69630444",
"0.6881512",
"0.68794894",
"0.68794894",
"0.68688494",
"0.6858717",
"0.6857276",
"0.6800499",
"0.67527306",
"0.67527... | 0.7058274 | 10 |
Retrieve a face up card from the deck, and add it to a hand. | def UZ_k(YKHO, oyg0):
QIaQ = YKHO.deck.draw()
QIaQ.flip()
oyg0.take_card(QIaQ)
if YKHO.verbose:
print(oyg0, 'receives', QIaQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VSku(YKHO, RZ8t, nf_0):\n RZ8t.append(nf_0.pop())",
"def vYbY(f4IJ):\n QxfG = nf_0.pop(0)\n nf_0.append(QxfG)\n XW6u.Label(f4IJ, image=QxfG[1], relief='raised').pack(side='left')\n return QxfG",
"def F48w(YKHO, iCfd, RpU_):\n for dxhl in YKHO.deck:\n if dxhl.suit == iCfd and dxhl.v... | [
"0.71988064",
"0.70430404",
"0.6818193",
"0.6658511",
"0.6654449",
"0.663762",
"0.66334426",
"0.6583592",
"0.6480948",
"0.6368827",
"0.6356826",
"0.63499457",
"0.6345977",
"0.6306771",
"0.6304496",
"0.6266921",
"0.62502885",
"0.6246442",
"0.62334615",
"0.6210229",
"0.6189125"... | 0.5732996 | 70 |
Set the option to enable/disable SSL verification. | def eLhK(YKHO, nPrm):
zCRS = r5HC(nPrm, YKHO.DISABLE_SSL, False)
YKHO.verify_ssl = not bool(zCRS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wV_G(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_ssl_verification')",
"def qK56(YKHO, wEf2=True, DHvX=False):\n if wEf2:\n YKHO.ssl_verify = False\n else:\n YKHO.ssl_verify = True\n if DHvX:\n YKHO.force_skip_ssl_verify = True\n else:\n YKHO.force_skip_ssl_verify... | [
"0.72796327",
"0.6935235",
"0.6585898",
"0.6501708",
"0.64170074",
"0.6353365",
"0.6339298",
"0.63162655",
"0.6261193",
"0.6243311",
"0.6179049",
"0.61781824",
"0.61752486",
"0.6135691",
"0.60789657",
"0.6077635",
"0.6066835",
"0.5986019",
"0.5945604",
"0.5882714",
"0.5857971... | 0.72945106 | 0 |
Function approximating a PSP shape with double exponential decay. | def UpPn(WKvO, zPVk, hKsf, VjXO, dkry, iZyy, pDjJ, sSj5, gHwg=2.0):
WKvO = WKvO - zPVk
yvT9 = oyIN.zeros(WKvO.shape, WKvO.dtype)
ZHfW = WKvO >= 0
WKvO = WKvO[ZHfW]
l2va = (1.0 - oyIN.exp(-WKvO / VjXO)) ** gHwg
Qbfb = pDjJ * oyIN.exp(-WKvO / dkry)
tp1J = sSj5 * oyIN.exp(-WKvO / iZyy)
yvT9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e26R(SGf8):\n V6IE = vlhs * oyIN.imag(1.0 / SGf8) / oyIN.real(uF0K ** 2.0 + Ik29 ** 2.0)\n return V6IE",
"def _SsK(YKHO, XP5J, JXDU):\n itYm = xIQ5(JXDU, JXDU, keepdim=True)\n H0Td = itYm.clamp_(min=0).sqrt_()\n a1PO = ht2j.clamp(H0Td, max=1)\n H0Td.clamp_(min=1e-05)\n lohc = (ht2j.cosh(... | [
"0.62019885",
"0.61466205",
"0.602316",
"0.59439826",
"0.5921692",
"0.58465815",
"0.58428156",
"0.58369446",
"0.58339137",
"0.5825675",
"0.5732989",
"0.5701724",
"0.5681052",
"0.5666799",
"0.56532085",
"0.5641436",
"0.5631958",
"0.5631126",
"0.5616071",
"0.5599539",
"0.558534... | 0.63498926 | 0 |
Load config from yaml file | def f9B0(YKHO, nUeQ) -> dict:
with open(nUeQ, 'r', encoding='utf8') as wOb_:
J8oL = eJb6.safe_load(wOb_)
if J8oL is None:
J8oL = dict()
YBft = J8oL.get('includes', [])
if not isinstance(YBft, list):
raise AttributeError(f'Includes must be a list, {type(YBft)} provided')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)",
"def LgIG(Nu1S):\n with open(Nu1S) as eHNT:\n return eJb6.load(eHNT)",
"def BLx6(VqRE='./config.yaml'):\n with open(VqRE, 'r') as eHNT:\n return eJb6.load(eHNT, Loader=eJb6.FullLoader)",
"def f9B0(Em... | [
"0.8238205",
"0.82098275",
"0.81617427",
"0.8139321",
"0.8120203",
"0.8080191",
"0.8079976",
"0.80757",
"0.79741246",
"0.7966643",
"0.79287714",
"0.79095185",
"0.7897934",
"0.7877389",
"0.7869289",
"0.78587055",
"0.7854908",
"0.78522414",
"0.78200537",
"0.7789606",
"0.7772175... | 0.0 | -1 |
Check if an object is JSON serializable | def bAkp(YKHO, input):
try:
qQXR.dumps(input)
return True
except (TypeError, OverflowError):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vqLp(YEnM, MnDN=QPqx):\n try:\n _wLH = QPqx.encode(YEnM)\n except Exception as e:\n return False\n return True",
"def eHEG(WFhB):\n try:\n qQXR.loads(WFhB)\n except ValueError:\n return False\n return True",
"def kIjs(vxw0):\n try:\n return isinstance... | [
"0.7747647",
"0.75518507",
"0.7452564",
"0.727773",
"0.71072584",
"0.66864634",
"0.6685461",
"0.6672436",
"0.66332936",
"0.6586177",
"0.6586177",
"0.6571103",
"0.65701634",
"0.65676504",
"0.65676504",
"0.65676504",
"0.65676504",
"0.65675616",
"0.6557073",
"0.65459824",
"0.653... | 0.7498912 | 2 |
Build a 3D convolutional network, based loosely on C3D. | def Ge5p(YKHO):
C3ST = ileL()
C3ST.add(VIRZ(32, (3, 3, 3), activation='relu', input_shape=YKHO.input_shape))
C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))
C3ST.add(VIRZ(64, (3, 3, 3), activation='relu'))
C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))
C3ST.add(VIRZ(128, (3, 3, 3)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def haZ5(YKHO):\n C3ST = ileL()\n C3ST.add(VIRZ(64, 3, 3, 3, activation='relu', border_mode='same', name='conv1', subsample=(1, 1, 1), input_shape=YKHO.input_shape))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2), border_mode='valid', name='pool1'))\n C3ST.add(VIRZ(128, 3, 3, 3, activation='rel... | [
"0.7309145",
"0.7183123",
"0.716791",
"0.70170295",
"0.69881535",
"0.6914603",
"0.6825567",
"0.6825567",
"0.6825567",
"0.6825567",
"0.6825567",
"0.6825567",
"0.6825567",
"0.6817752",
"0.6817186",
"0.6817186",
"0.68154675",
"0.6814586",
"0.6811636",
"0.68095183",
"0.68095183",... | 0.7214952 | 1 |
Build a 3D convolutional network, aka C3D. | def haZ5(YKHO):
C3ST = ileL()
C3ST.add(VIRZ(64, 3, 3, 3, activation='relu', border_mode='same', name='conv1', subsample=(1, 1, 1), input_shape=YKHO.input_shape))
C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2), border_mode='valid', name='pool1'))
C3ST.add(VIRZ(128, 3, 3, 3, activation='relu', borde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ge5p(YKHO):\n C3ST = ileL()\n C3ST.add(VIRZ(32, (3, 3, 3), activation='relu', input_shape=YKHO.input_shape))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))\n C3ST.add(VIRZ(64, (3, 3, 3), activation='relu'))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2)))\n C3ST.add(VIRZ(128... | [
"0.7281649",
"0.71841615",
"0.707168",
"0.690172",
"0.68788487",
"0.68189096",
"0.67646915",
"0.6761545",
"0.6761545",
"0.67369956",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67245495",
"0.6720777",
"0.6718091",
"0.67... | 0.74094737 | 0 |
Build a 3D convolutional network, aka C3D. | def NiOw(YKHO):
C3ST = ileL()
C3ST.add(VIRZ(64, 3, 3, 3, activation='relu', border_mode='same', name='conv1', subsample=(1, 1, 1), input_shape=YKHO.input_shape))
C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2), border_mode='same', name='pool1'))
C3ST.add(VIRZ(128, 3, 3, 3, activation='relu', border... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def haZ5(YKHO):\n C3ST = ileL()\n C3ST.add(VIRZ(64, 3, 3, 3, activation='relu', border_mode='same', name='conv1', subsample=(1, 1, 1), input_shape=YKHO.input_shape))\n C3ST.add(ReZh(pool_size=(1, 2, 2), strides=(1, 2, 2), border_mode='valid', name='pool1'))\n C3ST.add(VIRZ(128, 3, 3, 3, activation='rel... | [
"0.74094737",
"0.7281649",
"0.71841615",
"0.707168",
"0.690172",
"0.68788487",
"0.68189096",
"0.67646915",
"0.6761545",
"0.6761545",
"0.67369956",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67341983",
"0.67245495",
"0.6720777",
"0.6... | 0.0 | -1 |
Load a JSON file content | def lc9H(VqRE: str):
with open(VqRE, encoding='utf-8') as eHNT:
return qQXR.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n with open(pmON, 'rt') as Ki2L:\n nPrm = qQXR.load(Ki2L)\n return nPrm",
"def y4Mn(VqRE):\n with open(VqRE, 'r') as eHNT:\n return qQXR.load(eHNT)",
"def KrsJ(RsFk):\n with open(RsFk, 'r') as wM3v:\n kGys = tyeH(wM3v)\n return kGys",
"def lc9H(pmON):... | [
"0.79510486",
"0.79478514",
"0.79134405",
"0.7912531",
"0.78660494",
"0.78617907",
"0.78292775",
"0.78042006",
"0.7792268",
"0.77746475",
"0.7749817",
"0.7733603",
"0.7716962",
"0.77117074",
"0.7708901",
"0.7662423",
"0.76501304",
"0.76371104",
"0.7633017",
"0.76303476",
"0.7... | 0.78927106 | 4 |
Sets the property_config_info_list of this MetadataGetMetadataPropertyResponse200. | def rJs8(YKHO, rJs8):
YKHO._property_config_info_list = rJs8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rucv(nESp, MNc4, nSMW):\n lhy8 = [{'description': l6ZK.get('description'), 'domain': ohni(nESp, l6ZK.get('domain'), nSMW), 'range': ohni(nESp, l6ZK.get('range'), nSMW), 'curie': nESp.cls_converter.get_curie(l6ZK.get('uri')), 'label': nESp.cls_converter.get_label(l6ZK.get('uri')), 'uri': l6ZK.get('uri'), 'ob... | [
"0.5501452",
"0.5466533",
"0.51612365",
"0.48624235",
"0.4836705",
"0.48125964",
"0.47940364",
"0.47940364",
"0.46879268",
"0.46580964",
"0.46144414",
"0.4598811",
"0.45596695",
"0.45569187",
"0.45034024",
"0.446695",
"0.44593295",
"0.444063",
"0.43988055",
"0.43818757",
"0.4... | 0.838632 | 0 |
Sets the description of this MetadataGetMetadataPropertyResponse200. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4",
"def JBZA(YKHO, JBZA):\n if YKHO.local_vars_configuration.client_side_validation and JBZA is not None and (len(JBZA) > 200):\n raise ValueError('Invalid value for `description`, length must be less than or equal to `200`... | [
"0.5822919",
"0.5588271",
"0.55798286",
"0.55575776",
"0.5537133",
"0.54994047",
"0.5466919",
"0.54255635",
"0.54122835",
"0.53955185",
"0.5383833",
"0.53540146",
"0.532675",
"0.5307466",
"0.5307466",
"0.5307466",
"0.5307466",
"0.5284351",
"0.5261667",
"0.5233879",
"0.5229344... | 0.52642536 | 47 |
Sets the owner_type of this MetadataGetMetadataPropertyResponse200. | def FG0N(YKHO, FG0N):
YKHO._owner_type = FG0N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVVd(YKHO, qsJ6: Optional['STACObject_Type']) -> 'Link':\n YKHO.owner = qsJ6\n return YKHO",
"def KVVd(YKHO, qsJ6):\n YKHO.settings['owner'] = qsJ6",
"def qsJ6(YKHO, qsJ6):\n if YKHO.local_vars_configuration.client_side_validation and qsJ6 is None:\n raise ValueError('Invalid value for `... | [
"0.62579507",
"0.6134702",
"0.6111381",
"0.6087712",
"0.5957848",
"0.5856001",
"0.5746968",
"0.5613835",
"0.5586895",
"0.5586895",
"0.5586895",
"0.5586895",
"0.55771726",
"0.55339324",
"0.55339324",
"0.55339324",
"0.55339324",
"0.53568935",
"0.5288345",
"0.5262895",
"0.525636... | 0.680235 | 0 |