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 |
|---|---|---|---|---|---|---|
Return the path to the python egg file, if the given path points to a file inside (or directly to) an egg. Return `None` otherwise. | def lrwf(pmON):
M87z = None
while pmON and pmON != M87z:
if Hy7s.path.splitext(pmON)[1].lower() == '.egg':
if Hy7s.path.isfile(pmON) or Hy7s.path.isdir(pmON):
return pmON
M87z = pmON
pmON = Hy7s.path.dirname(pmON)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQks(pmON):\n return lrwf(pmON) is not None",
"def gh2f(owWi: str) -> h8nf[str]:\n t5KD = RJFd(owWi)\n for WDx4 in HwRy.path:\n lGcj = Hy7s.path.join(WDx4, t5KD)\n if Hy7s.path.isfile(lGcj):\n return lGcj\n return None",
"def FZBP():\n for WDx4 in HwRy.path:\n ... | [
"0.69794464",
"0.6783627",
"0.62998426",
"0.62285405",
"0.61586255",
"0.6143658",
"0.60997826",
"0.6056061",
"0.59377956",
"0.5907914",
"0.5907877",
"0.59075487",
"0.5903517",
"0.5883758",
"0.588364",
"0.58169425",
"0.57802725",
"0.577396",
"0.57711005",
"0.57639176",
"0.5762... | 0.80366725 | 0 |
Returns a time stamp for the current time. Subtracting the return value of this method from the return value of Callback.get_end_time() yields the time remaining in seconds. The interpretation of this value as wall clock time or CPU time is controlled by the parameter clocktype. | def m7L9(YKHO):
jGRS = R49l(YKHO._cbstruct)
jxQ2.check_status(YKHO._cbstruct, jGRS[0], from_cb=True)
return jGRS[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wirM(YKHO):\n return YKHO._clock.stop",
"def wirM(YKHO):\n return YKHO._clock.stop",
"def ApjM(YKHO):\n if YKHO.run is False:\n return YKHO.TIME_LIMIT\n vHj7 = ITS7.time() - YKHO.start_time\n YKHO.current_time = int(YKHO.TIME_LIMIT - vHj7)\n ITS7.sleep(1)\n if YKHO.current_time ... | [
"0.7200905",
"0.7200905",
"0.6977089",
"0.69375724",
"0.69347155",
"0.6933328",
"0.6797365",
"0.6707766",
"0.67012346",
"0.6665344",
"0.66364795",
"0.6612302",
"0.66119593",
"0.65939254",
"0.65751487",
"0.65667707",
"0.65312725",
"0.6523954",
"0.65118474",
"0.6492253",
"0.648... | 0.67196333 | 7 |
Returns the number of variables in the problem. | def q_Yq(YKHO):
return hsEa(YKHO._cbstruct, YKHO._env_lp_ptr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sUC8(YKHO) -> int:\n return YKHO.original_problem.num_variables",
"def zXzy(YKHO):\n if YKHO.nvar == None:\n YKHO.nvar = YKHO.ndim\n return YKHO.nvar",
"def eNPf(YKHO):\n return len(YKHO.assignments)",
"def Wd8h(YKHO):\n return sum([XP5J.n_variables for XP5J in YKHO.parameters])",
... | [
"0.8872011",
"0.83996505",
"0.8222628",
"0.80646074",
"0.7932856",
"0.7818156",
"0.7766342",
"0.7762463",
"0.771737",
"0.74525225",
"0.73136735",
"0.7283616",
"0.7184047",
"0.71732736",
"0.71497816",
"0.7094224",
"0.7052971",
"0.69759226",
"0.6970617",
"0.6935196",
"0.6833411... | 0.0 | -1 |
Returns the current dual value of the objective function. | def b0KN(YKHO):
return RWcI(YKHO._cbstruct, jbwd, j_HN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _luV(YKHO):\n return YKHO._objective_value",
"def JJbR(YKHO):\n return YKHO._dual_solution",
"def NeKD(YKHO):\n return YKHO._objective_value",
"def rV9r(YKHO):\n return YKHO._objective",
"def fhm5(YKHO):\n return -float(YKHO.log_likelihood()) - YKHO.log_prior()",
"def wNz9(YKHO, rNYq, ... | [
"0.7332231",
"0.702605",
"0.68999845",
"0.6874983",
"0.6867746",
"0.683786",
"0.6834948",
"0.68323505",
"0.668989",
"0.66808033",
"0.6676114",
"0.6585614",
"0.65621245",
"0.6517287",
"0.6502113",
"0.64888906",
"0.6428055",
"0.642289",
"0.64108",
"0.6380076",
"0.6349392",
"0... | 0.7579739 | 0 |
Returns the number of dual pushes performed so far. | def db8a(YKHO):
return RWcI(YKHO._cbstruct, dvLt, j_HN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNbs(YKHO):\n return RWcI(YKHO._cbstruct, SLrT, j_HN)",
"def hsr3(YKHO):\n return len(YKHO.pop_ids)",
"def tPbW(YKHO):\n YKHO.pushUpCounter = YKHO.pushUpCounter + 1\n return YKHO.pushUpCounter",
"def cBhs(YKHO):\n return len(YKHO.viruses)",
"def s4KR(YKHO) -> int:\n return YKHO.number... | [
"0.68681324",
"0.6720423",
"0.65781343",
"0.6516596",
"0.6388809",
"0.634215",
"0.6332534",
"0.63137966",
"0.63016796",
"0.6301324",
"0.6263391",
"0.6206111",
"0.6184095",
"0.61706364",
"0.6165052",
"0.61240596",
"0.6123792",
"0.6123792",
"0.6049607",
"0.60421014",
"0.6016480... | 0.75307095 | 0 |
Returns the best objective value among unexplored nodes. | def OuOQ(YKHO):
return RWcI(YKHO._cbstruct, mcEP, j_HN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RDFm(YKHO):\n return YKHO.__best_node",
"def _luV(YKHO):\n return YKHO._objective_value",
"def uc7Q(YKHO):\n return YKHO._best_value + YKHO._preassignment_cost",
"def uc7Q(YKHO):\n return YKHO._best_value",
"def BaD7(YKHO):\n return YKHO.get_fitness(YKHO.get_best_agent())",
"def P6Dd(Y... | [
"0.69887066",
"0.6987803",
"0.686081",
"0.6803486",
"0.6800576",
"0.6796568",
"0.67686903",
"0.66458964",
"0.66458964",
"0.6645449",
"0.66410524",
"0.6627701",
"0.66087157",
"0.64377546",
"0.6401301",
"0.6391742",
"0.6371711",
"0.6370788",
"0.6342948",
"0.63317674",
"0.631200... | 0.6872953 | 2 |
Returns the variable values of the incumbent solution. There are four forms by which get_incumbent_values may be called. self.get_incumbent_values() returns the entire incumbent solution self.get_incumbent_values(i) i must be a variable index or name. Returns the value of the variable with index i in the incumbent solu... | def n0AP(YKHO, *qIxc):
def UcuD(_9an, Os4s=YKHO.num_cols - 1):
return jxQ2.getcallbackincumbent(YKHO._cbstruct, _9an, Os4s)
return MOVJ(UcuD, YKHO._conv_col, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n return YKHO._var_values",
"def hkxX(YKHO):\n return YKHO.variable.values",
"def z2sA(YKHO):\n uZy9 = set()\n for XGOE, NBg_ in YKHO.val:\n if type(XGOE) == str:\n uZy9.add(XGOE)\n elif type(XGOE) == WudN.numeric.numeric.Numeric:\n uZy9 = uZy9.un... | [
"0.56124115",
"0.5591847",
"0.55353165",
"0.5384241",
"0.53668326",
"0.53483135",
"0.5335671",
"0.5307177",
"0.5283261",
"0.5228778",
"0.5210737",
"0.5197994",
"0.51868683",
"0.51789594",
"0.5143468",
"0.51433116",
"0.51031256",
"0.5093655",
"0.5093655",
"0.5093655",
"0.50932... | 0.52759564 | 9 |
Returns the number of nodes processed so far. | def _ouZ(YKHO):
return RWcI(YKHO._cbstruct, eAW5, j_HN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mNQJ(YKHO):\n return YKHO._n_nodes_processed",
"def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ewCu += 1\n return ewCu",
"def kRap(YKHO):\n return YKHO._node_count",
"def LkmU(YKHO):\n UHFx = 0\n for Q6kx in YKHO.IterateNodes():\n UHFx += 1\n return UHFx",
"def l... | [
"0.8733711",
"0.8407717",
"0.8393738",
"0.8354559",
"0.8329787",
"0.83064836",
"0.8273425",
"0.8256021",
"0.8238436",
"0.8236929",
"0.82019264",
"0.81843513",
"0.8174723",
"0.8159724",
"0.8132279",
"0.8123067",
"0.81038904",
"0.81038904",
"0.80557114",
"0.8045469",
"0.8043824... | 0.75671816 | 50 |
Returns the current integer feasibility status. There are four forms by which get_feasibilities may be called. The return values are attributes of self.feasibility_status. self.get_feasibilities() returns a list with the feasibility status for all the variables. self.get_feasibilities(i) i must be a variable index or n... | def TKjw(YKHO, *qIxc):
def dQ_k(_9an, Os4s=YKHO.get_num_cols() - 1):
return jxQ2.getcallbacknodeintfeas(YKHO._cbstruct, _9an, Os4s)
return MOVJ(dQ_k, YKHO._conv_col, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IFYH(YKHO):\n return YKHO.fees",
"def IFYH(YKHO):\n return YKHO.fees",
"def IFYH(YKHO):\n return YKHO._fees",
"def IFYH(YKHO):\n return YKHO.fees",
"def l96o(YKHO):\n return YKHO.__possibility_index",
"def wPp3(YKHO):\n return YKHO.fevals",
"def Fse4(YKHO):\n return YKHO.algori... | [
"0.54702586",
"0.54443353",
"0.54337204",
"0.54270464",
"0.53892034",
"0.5248815",
"0.5214257",
"0.5083379",
"0.5076335",
"0.50702703",
"0.50443286",
"0.50421923",
"0.50251615",
"0.49678725",
"0.49580538",
"0.4940841",
"0.49291354",
"0.49273726",
"0.49162182",
"0.4914745",
"0... | 0.5700942 | 0 |
Returns the upper bounds at the current node. There are four forms by which get_upper_bounds may be called. self.get_upper_bounds() returns a list with the upper bounds for all the variables. self.get_upper_bounds(i) i must be a variable index or name. Returns the upper bound of the variable with index i. self.get_uppe... | def obzs(YKHO, *qIxc):
def QA0V(_9an, Os4s=YKHO.get_num_cols() - 1):
return jxQ2.getcallbacknodeub(YKHO._cbstruct, _9an, Os4s)
return MOVJ(QA0V, YKHO._conv_col, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUAk(YKHO):\n return YKHO[1:]",
"def pnEd(YKHO, *qIxc):\n\n def lHGd(_9an, Os4s=YKHO._get_column_count() - 1):\n return jxQ2.callbackgetlocalub(YKHO._contextptr, _9an, Os4s)\n return MOVJ(lHGd, YKHO._colname2idx, qIxc)",
"def lUze(YKHO, *qIxc):\n\n def _vHz(_9an, Os4s=YKHO._get_column_co... | [
"0.719125",
"0.6974053",
"0.6784304",
"0.6604303",
"0.659012",
"0.651233",
"0.6395842",
"0.63947",
"0.6361492",
"0.63604474",
"0.63454705",
"0.6300158",
"0.6300158",
"0.6283844",
"0.62132573",
"0.6205647",
"0.6196288",
"0.61876124",
"0.61812085",
"0.61763567",
"0.616175",
"... | 0.7056951 | 1 |
Return the sequence number of this node. | def VkMq(YKHO):
return YKHO._get_node_info(joQX._constants.CPX_CALLBACK_INFO_NODE_SEQNUM_LONG, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTbc(YKHO):\n return YKHO._sequence_number",
"def VlHX(YKHO):\n return YKHO._get_attribute('sequenceNumber')",
"def zIFP(YKHO):\n return YKHO.__sequence_number",
"def zIFP(YKHO):\n return None",
"def aWuw(YKHO) -> int:\n return YKHO._sequence",
"def eL_c(YKHO):\n return YKHO.__seque... | [
"0.86099815",
"0.8595048",
"0.8536988",
"0.8281741",
"0.8240641",
"0.82134163",
"0.82134163",
"0.80972546",
"0.80715245",
"0.7754803",
"0.7689689",
"0.7664098",
"0.7485355",
"0.74508744",
"0.73865384",
"0.73865384",
"0.73865384",
"0.73865384",
"0.73658234",
"0.7358287",
"0.73... | 0.681204 | 35 |
Returns the type of the branch. | def CDmS(YKHO):
EVsw = jxQ2.cpx_encode
mktQ = jxQ2.default_encoding
return EVsw(YKHO._branch_type, mktQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQKl(YKHO, jehQ):\n gt1A = YKHO.branch_endpoint(jehQ)\n Ve1W = YKHO.branch_endpoint(-jehQ)\n if len(YKHO.outgoing_branches(gt1A[0], gt1A[1])) + len(YKHO.outgoing_branches(Ve1W[0], Ve1W[1])) > 2:\n return False\n return True",
"def cCcp(YKHO, jehQ):\n WSpX = YKHO.branch_endpoint(-jehQ)\n... | [
"0.70936334",
"0.68909085",
"0.6873165",
"0.6841229",
"0.6579927",
"0.6558509",
"0.6558509",
"0.6558509",
"0.6551868",
"0.65401125",
"0.65401125",
"0.650659",
"0.650659",
"0.650659",
"0.650659",
"0.650659",
"0.650659",
"0.6483629",
"0.64225054",
"0.6422117",
"0.6420669",
"0... | 0.8389318 | 0 |
Adds a linear local cut to the current subproblem. A local cut is a cut that is only valid at the current node and the subtree rooted by the current node. It does not need to be globally valid. cut must be either a SparsePair instance or a list of two lists, the first of which specifies variables, the second of which s... | def tUvB(YKHO, o7uO, tuD8, RKYb):
VnU8.add_local(YKHO, o7uO, tuD8, RKYb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tUvB(YKHO, oVM8, tuD8, RKYb):\n VnU8.add_local(YKHO, oVM8, tuD8, RKYb)",
"def EruJ(YKHO, o7uO, tuD8, RKYb, D7mI, WY3t):\n YKHO.add_user_cuts([o7uO], [tuD8], [RKYb], [D7mI], [WY3t])",
"def H2v5(YKHO, o7uO, tuD8, RKYb, fpBc=oOIQ.force):\n VnU8.add(YKHO, o7uO, tuD8, RKYb, fpBc)",
"def H2v5(YKHO, o7... | [
"0.67909914",
"0.6295835",
"0.5575681",
"0.53399885",
"0.533851",
"0.5110579",
"0.49919248",
"0.4903662",
"0.47761947",
"0.47683072",
"0.46402138",
"0.46122766",
"0.46058872",
"0.45922557",
"0.45454645",
"0.4524476",
"0.45174652",
"0.450822",
"0.43885633",
"0.43420753",
"0.43... | 0.73159266 | 0 |
Returns the solution status of the current subproblem. Returns an attribute of self.status. | def Gp7k(YKHO):
jGRS = kmPn(YKHO._cbstruct)
jxQ2.check_status(YKHO._cbstruct, jGRS[0], from_cb=True)
return jGRS[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRac(YKHO):\n return YKHO._solution_status",
"def jGRS(YKHO):\n return YKHO._solve_status",
"def VLTN(YKHO):\n return rXoR.STATUS[YKHO.status]",
"def TsAY(YKHO) -> tuple:\n YKHO.__status_check(required_status=True)\n return YKHO.__problem",
"def VLTN(YKHO):\n return YKHO.current_statu... | [
"0.81694496",
"0.7552069",
"0.68620867",
"0.6816052",
"0.6665184",
"0.6636278",
"0.6636278",
"0.6636278",
"0.6604742",
"0.65828526",
"0.65779185",
"0.65779185",
"0.65779185",
"0.65779185",
"0.6556712",
"0.65424395",
"0.65424395",
"0.65323126",
"0.6504849",
"0.650323",
"0.6500... | 0.0 | -1 |
Return the potential incumbent solution values. There are four forms by which get_values may be called. self.get_values() returns the entire potential incumbent. self.get_values(i) i must be a variable index or name. Returns the potential incumbent value of the variable with index i. self.get_values(s) s must be a sequ... | def TSF4(YKHO, *qIxc):
def OYQK(_9an, Os4s=YKHO.get_num_cols() - 1):
return YKHO._x[_9an:Os4s + 1]
return MOVJ(OYQK, YKHO._conv_col, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TSF4(YKHO) -> oyIN.ndarray:\n return YKHO._values",
"def hkxX(YKHO):\n return YKHO.variable.values",
"def hkxX(YKHO):\n return YKHO._var_values",
"def TSF4(YKHO, hkxX):\n wEf2 = []\n for YRbF in range(1, len(hkxX)):\n wEf2.append(hkxX[YRbF])\n return wEf2",
"def bgRQ(YKHO):\n ... | [
"0.61095256",
"0.6081271",
"0.6075782",
"0.60452414",
"0.601922",
"0.6004362",
"0.594065",
"0.5922588",
"0.59173846",
"0.5908754",
"0.5908754",
"0.5908754",
"0.5908754",
"0.5908754",
"0.5908754",
"0.5908754",
"0.58923024",
"0.58108264",
"0.579579",
"0.5779029",
"0.5777171",
... | 0.5457346 | 98 |
Get objective value of current relaxation. This function can only be invoked if get_id() returns cplex.callbacks.Context.id.relaxation. If invoked in a different context it will raise an exception. | def _ZUq(YKHO):
return jxQ2.callbackgetrelaxationpointobj(YKHO._contextptr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NeKD(YKHO):\n if YKHO._wherefrom() == joQX._constants.CPX_CALLBACK_DUAL:\n return RWcI(YKHO._cbstruct, jbwd, j_HN)\n else:\n return RWcI(YKHO._cbstruct, oMTS, j_HN)",
"def NeKD(YKHO):\n return jxQ2.getcallbacknodeobjval(YKHO._cbstruct)",
"def qxSN(YKHO):\n return",
"def _luV(YKH... | [
"0.6549041",
"0.6522746",
"0.64918834",
"0.6471217",
"0.63290316",
"0.6278295",
"0.61942357",
"0.61870193",
"0.59752625",
"0.59297365",
"0.578009",
"0.5691508",
"0.5681298",
"0.567679",
"0.5655778",
"0.5571787",
"0.5541547",
"0.55212903",
"0.5416298",
"0.5413502",
"0.5395254"... | 0.7726009 | 0 |
Get the current incumbent solution. The function returns the values in the current incumbent solution for the variables specified by the arguments. There are four forms by which get_candidate_point may be called. self.get_incumbent() returns the full incumbent vector. self.get_incumbent(i) i must be a variable index or... | def Uo6R(YKHO, *qIxc):
def u3YE(_9an, Os4s=YKHO._get_column_count() - 1):
return jxQ2.callbackgetincumbent(YKHO._contextptr, _9an, Os4s)
return MOVJ(u3YE, YKHO._colname2idx, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uo6R(YKHO) -> y8cn | None:\n if YKHO._scenario.count_objectives() > 1:\n raise ValueError('Cannot get a single incumbent for multi-objective optimization.')\n if len(YKHO._incumbents) == 0:\n return None\n assert len(YKHO._incumbents) == 1\n return YKHO._incumbents[0]",
"def DHMh(YK... | [
"0.5635084",
"0.5413669",
"0.5051914",
"0.49970132",
"0.49689472",
"0.49498245",
"0.48520067",
"0.48457888",
"0.48290533",
"0.47886506",
"0.4747231",
"0.4726821",
"0.47131228",
"0.47103208",
"0.4702566",
"0.4696885",
"0.46332958",
"0.46087378",
"0.4604706",
"0.4590003",
"0.45... | 0.51354533 | 2 |
Get objective value of the current incumbent. The returned value may be a huge value (such as 1e75) to indicate that no incumbent was found yet. Consider using get_int_info() with cplex.callbacks.Context.info.feasible first to check whether there is an incumbent. | def sUcP(YKHO):
return jxQ2.callbackgetincumbentobj(YKHO._contextptr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fyim(YKHO):\n return RWcI(YKHO._cbstruct, tukO, j_HN)",
"def Uo6R(YKHO) -> y8cn | None:\n if YKHO._scenario.count_objectives() > 1:\n raise ValueError('Cannot get a single incumbent for multi-objective optimization.')\n if len(YKHO._incumbents) == 0:\n return None\n assert len(YKHO.... | [
"0.8131007",
"0.69189745",
"0.6746458",
"0.671294",
"0.6600399",
"0.6294292",
"0.62563974",
"0.608526",
"0.5904217",
"0.58731264",
"0.5803036",
"0.5783341",
"0.5768371",
"0.5754351",
"0.5705165",
"0.569432",
"0.56688523",
"0.56370693",
"0.5606519",
"0.55627984",
"0.5497379",
... | 0.6927416 | 1 |
Test if the callback was invoked for a candidate feasible point. This function can only be invoked if get_id() returns cplex.callbacks.Context.id.candidate. If invoked in a different context it will raise an exception. The function returns true if the callback was invoked for a candidate feasible point. In that case th... | def r8j3(YKHO):
return jxQ2.callbackcandidateispoint(YKHO._contextptr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SxK7(YKHO):\n return YKHO._contextid == YKHO.id.candidate",
"def Uj1x(YKHO, AU8u):\n return YKHO.get_upper_left_x() <= AU8u[0] <= YKHO.get_upper_left_x() + YKHO.get_width() and YKHO.get_upper_left_y() <= AU8u[1] <= YKHO.get_upper_left_y() + YKHO.get_height()",
"def u03c(YKHO, yokr, SkC9, **B2fa):\n ... | [
"0.6607028",
"0.6348858",
"0.6233945",
"0.6149942",
"0.61392564",
"0.6138417",
"0.60912025",
"0.58108443",
"0.5784872",
"0.57637113",
"0.5666691",
"0.5657122",
"0.5656032",
"0.56239045",
"0.55900776",
"0.5587032",
"0.5575103",
"0.55749863",
"0.5553913",
"0.55229765",
"0.55221... | 0.74833626 | 0 |
Get objective value of current candidate solution. This function can only be invoked if get_id() returns cplex.callbacks.Context.id.candidate and is_candidate_point() returns true. It will raise an exception if invoked in a different context. | def DtT7(YKHO):
return jxQ2.callbackgetcandidateobj(YKHO._contextptr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NeKD(YKHO):\n if YKHO._wherefrom() == joQX._constants.CPX_CALLBACK_DUAL:\n return RWcI(YKHO._cbstruct, jbwd, j_HN)\n else:\n return RWcI(YKHO._cbstruct, oMTS, j_HN)",
"def NeKD(YKHO):\n return jxQ2.getcallbacknodeobjval(YKHO._cbstruct)",
"def gkuO(YKHO, rV9r: Any) -> ImMB:\n pass"... | [
"0.6868439",
"0.66145074",
"0.65818584",
"0.6494179",
"0.6446619",
"0.64361495",
"0.6419832",
"0.63553125",
"0.6254147",
"0.62403107",
"0.62355435",
"0.6202037",
"0.59941226",
"0.5886003",
"0.585435",
"0.580355",
"0.5762711",
"0.57397157",
"0.57379436",
"0.5712955",
"0.567857... | 0.76677597 | 0 |
Get the current local lower bounds. This function can only be invoked if get_id() returns cplex.callbacks.Context.id.relaxation. If invoked in a different context it will raise an exception. There are four forms by which get_local_lower_bounds may be called. self.get_local_lower_bounds() returns local lower bounds for ... | def RhTr(YKHO, *qIxc):
def u5Ox(_9an, Os4s=YKHO._get_column_count() - 1):
return jxQ2.callbackgetlocallb(YKHO._contextptr, _9an, Os4s)
return MOVJ(u5Ox, YKHO._colname2idx, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C22c(YKHO, *qIxc):\n\n def gW84(_9an, Os4s=YKHO._get_column_count() - 1):\n return jxQ2.callbackgetgloballb(YKHO._contextptr, _9an, Os4s)\n return MOVJ(gW84, YKHO._colname2idx, qIxc)",
"def NCJH(YKHO):\n if YKHO.__lowerBound is not None:\n return YKHO.__lowerBound\n YKHO.__lowerBoun... | [
"0.7209984",
"0.6739844",
"0.6484417",
"0.6275643",
"0.6191669",
"0.5978427",
"0.59679323",
"0.58862627",
"0.5842891",
"0.58359957",
"0.5831289",
"0.5797992",
"0.5753437",
"0.57368505",
"0.57329977",
"0.5722545",
"0.572142",
"0.5716145",
"0.5711509",
"0.5704938",
"0.56138116"... | 0.7985261 | 0 |
Get the current local upper bounds. This function can only be invoked if get_id() returns cplex.callbacks.Context.id.relaxation. If invoked in a different context it will raise an exception. There are four forms by which get_local_upper_bounds may be called. self.get_local_upper_bounds() returns local upper bounds for ... | def pnEd(YKHO, *qIxc):
def lHGd(_9an, Os4s=YKHO._get_column_count() - 1):
return jxQ2.callbackgetlocalub(YKHO._contextptr, _9an, Os4s)
return MOVJ(lHGd, YKHO._colname2idx, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lUze(YKHO, *qIxc):\n\n def _vHz(_9an, Os4s=YKHO._get_column_count() - 1):\n return jxQ2.callbackgetglobalub(YKHO._contextptr, _9an, Os4s)\n return MOVJ(_vHz, YKHO._colname2idx, qIxc)",
"def gUAk(YKHO):\n return YKHO[1:]",
"def obzs(YKHO, *qIxc):\n\n def QA0V(_9an, Os4s=YKHO.get_num_cols(... | [
"0.6996638",
"0.64310086",
"0.62697",
"0.6123933",
"0.6110233",
"0.61014867",
"0.6058969",
"0.60577863",
"0.60274446",
"0.6001565",
"0.6001565",
"0.59644765",
"0.5940914",
"0.59286165",
"0.5919945",
"0.58692855",
"0.5856964",
"0.5847291",
"0.5837493",
"0.58136004",
"0.5813204... | 0.7807293 | 0 |
Get the current globally valid lower bounds. This function cannot be invoked if get_id() returns cplex.callbacks.Context.id.thread_up or cplex.callbacks.Context.id.thread_down. There are four forms by which get_global_lower_bounds may be called. self.get_global_lower_bounds() returns global lower bounds for all variabl... | def C22c(YKHO, *qIxc):
def gW84(_9an, Os4s=YKHO._get_column_count() - 1):
return jxQ2.callbackgetgloballb(YKHO._contextptr, _9an, Os4s)
return MOVJ(gW84, YKHO._colname2idx, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RhTr(YKHO, *qIxc):\n\n def u5Ox(_9an, Os4s=YKHO._get_column_count() - 1):\n return jxQ2.callbackgetlocallb(YKHO._contextptr, _9an, Os4s)\n return MOVJ(u5Ox, YKHO._colname2idx, qIxc)",
"def voBD(YKHO, *qIxc):\n\n def ue6H(_9an, Os4s=YKHO.get_num_cols() - 1):\n return jxQ2.getcallbacknod... | [
"0.75006986",
"0.67229396",
"0.6427798",
"0.6396821",
"0.6133531",
"0.61333364",
"0.6125764",
"0.6089029",
"0.6032276",
"0.600469",
"0.5992799",
"0.58774924",
"0.5868311",
"0.582544",
"0.5807528",
"0.5801415",
"0.5783899",
"0.57606304",
"0.57469916",
"0.56903446",
"0.56858945... | 0.81131 | 0 |
Get the current globally valid upper bounds. This function cannot be invoked if get_id() returns cplex.callbacks.Context.id.thread_up or cplex.callbacks.Context.id.thread_down. There are four forms by which get_global_upper_bounds may be called. self.get_global_upper_bounds() returns global upper bounds for all variabl... | def lUze(YKHO, *qIxc):
def _vHz(_9an, Os4s=YKHO._get_column_count() - 1):
return jxQ2.callbackgetglobalub(YKHO._contextptr, _9an, Os4s)
return MOVJ(_vHz, YKHO._colname2idx, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pnEd(YKHO, *qIxc):\n\n def lHGd(_9an, Os4s=YKHO._get_column_count() - 1):\n return jxQ2.callbackgetlocalub(YKHO._contextptr, _9an, Os4s)\n return MOVJ(lHGd, YKHO._colname2idx, qIxc)",
"def obzs(YKHO, *qIxc):\n\n def QA0V(_9an, Os4s=YKHO.get_num_cols() - 1):\n return jxQ2.getcallbacknod... | [
"0.7107919",
"0.68061435",
"0.66188294",
"0.62293845",
"0.61636585",
"0.61338633",
"0.60701275",
"0.60602677",
"0.60602677",
"0.6042751",
"0.6026873",
"0.60237545",
"0.600559",
"0.6003587",
"0.5999709",
"0.59983087",
"0.5979188",
"0.5958584",
"0.59168637",
"0.5906047",
"0.590... | 0.8062726 | 0 |
Returns project root folder. | def phdL() -> GkAb:
return GkAb(xAKo).parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def mSqg(YKHO):\n return YKHO._project_dir",
"def phdL() -> GkAb:\n KfRp = GkAb(xAKo).parent.resolve().parent\n return KfRp",
"def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))",
"def phdL() -> str:\n pmON = GkAb(xAKo).pare... | [
"0.87526774",
"0.86910444",
"0.86703354",
"0.85556895",
"0.8523378",
"0.8485956",
"0.8485956",
"0.8485956",
"0.8485956",
"0.8464311",
"0.84612876",
"0.8456025",
"0.84495723",
"0.8444034",
"0.8444034",
"0.8432916",
"0.8425679",
"0.841197",
"0.8390091",
"0.8390091",
"0.8339866"... | 0.8439751 | 15 |
Builds a customercourse_view interaction (time spent) matrix for performing matrixfactorization in the next step. | def gglM(YKHO):
try:
s08J = rLdf.merge(YKHO.data['user_course_views'], YKHO.data['course_tags'], how='inner', on='course_id')
i748 = s08J.groupby(['user_handle', 'course_tags'], as_index=False)['view_time_seconds'].mean()
Lmg7 = i748.pivot(index='user_handle', columns='course_tags', values='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CroE(YKHO):\n YKHO.processed_dataset = YKHO._get_customer_course_view_interaction()",
"def yvLo(YKHO, S1Ve: list[LinOp]) -> H4yH.csc_matrix:\n pass",
"def J51X(YKHO):\n F4IR = oyIN.zeros([len(YKHO._state_labels), len(YKHO._state_labels)], dtype=float)\n for unQH, QTBn in enumerate(YKHO._state_l... | [
"0.6031152",
"0.5685385",
"0.5496878",
"0.54699486",
"0.54067534",
"0.5372712",
"0.53690547",
"0.5343289",
"0.5331487",
"0.5328981",
"0.5320771",
"0.5309849",
"0.52942014",
"0.52865463",
"0.5275953",
"0.5262843",
"0.52558315",
"0.5254509",
"0.52434546",
"0.5211252",
"0.519593... | 0.7278584 | 0 |
change axis title size | def NTCM(aNZO, GAJY):
leAC = aNZO.get_title()
aNZO.set_title(leAC, fontsize=GAJY)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1MF(YEnM, zNig):\n emvO(YEnM, zNig, 'x')",
"def BrBj(YKHO, zNig):\n YKHO.layout['xaxis']['titlefont']['size'] = zNig\n return YKHO",
"def vkVj(YEnM, zNig):\n emvO(YEnM, zNig, 'y')",
"def utwz(aNZO=None):\n if not aNZO:\n aNZO = QrM1.gca()\n aNZO.title.set_position([1.0, 1.02])\n... | [
"0.82110876",
"0.80235296",
"0.7961341",
"0.75859165",
"0.74897176",
"0.7420663",
"0.7388556",
"0.73291373",
"0.73150784",
"0.7287783",
"0.71800816",
"0.70646363",
"0.7050052",
"0.70192033",
"0.69086325",
"0.6904874",
"0.6901634",
"0.69007695",
"0.68530846",
"0.6834496",
"0.6... | 0.78444654 | 3 |
change x and y axis and ticklabel thickness for a matplotlib axis object | def MQXI(aNZO, bZlq):
for jDK_ in ['top', 'bottom', 'left', 'right']:
aNZO.spines[jDK_].set_linewidth(bZlq)
aNZO.xaxis.set_tick_params(width=bZlq * 0.75, length=6)
aNZO.yaxis.set_tick_params(width=bZlq * 0.75, length=6)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xAMT(jDK_):\n for r5v8 in jDK_.xaxis.get_major_ticks():\n r5v8.label.set_fontsize(hhRS)\n for r5v8 in jDK_.yaxis.get_major_ticks():\n r5v8.label.set_fontsize(hhRS)",
"def Q5AV(aNZO, zNig):\n for GN0K in aNZO.get_xticklabels():\n GN0K.set_size(zNig)\n for Rjb4 in aNZO.get_ytic... | [
"0.684005",
"0.6836624",
"0.677696",
"0.6713852",
"0.6634177",
"0.66124576",
"0.6533053",
"0.64869386",
"0.64576197",
"0.64485806",
"0.643293",
"0.6365896",
"0.6357883",
"0.6319205",
"0.63102835",
"0.62922454",
"0.62562114",
"0.6250013",
"0.6243757",
"0.6212984",
"0.61610425"... | 0.72815585 | 0 |
Transition parameter for the refractory state. Float parameter with value between 0 and 1 that determines 'how much' the refractory state is considered. When `epsilon` is 1 the refractory state is fully considered, and the vector field is the same as that of the `MeanFieldSystem` class. When `epsilon` has a value betwe... | def _hZ2(YKHO):
return YKHO._epsilon | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdUd(YKHO, QTBn, XeOP):\n return oyIN.sqrt(oyIN.log(2 / rval) / (2 * oyIN.sum(YKHO.n[QTBn][XeOP]))) * (YKHO.R_range[1] - YKHO.R_range[0])",
"def NG9C():\n pass",
"def X4Zg(YKHO):\n YKHO.epsilon = max(YKHO.config.initial_epsilon / 10.0, YKHO.epsilon * YKHO.config.epsilon_decay_rate)",
"def hipe(Y... | [
"0.59245944",
"0.58876896",
"0.5847955",
"0.56152195",
"0.5612431",
"0.5515444",
"0.55128914",
"0.5477474",
"0.5436477",
"0.5436477",
"0.5419499",
"0.5369431",
"0.53215593",
"0.53162676",
"0.5308736",
"0.5259606",
"0.52424926",
"0.5222161",
"0.5213663",
"0.5213663",
"0.520593... | 0.51153845 | 30 |
Compare signs of eigenvalues' real parts to those at epsilon = 0. | def Jvue(YKHO, yVoA):
for MP7n, Zihr in zip(yVoA, YKHO.signs_at_zero):
if oyIN.sign(MP7n.real) != Zihr:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2ps(WKvO):\n return oyIN.all(oyIN.isreal(WKvO))",
"def kR0H(YKHO):\n lk9W, khtY = (1.0 + 2j, B2Ja.PauliX(wires=0))\n dJdW = Ytv7(lk9W, khtY)\n QTQb = dJdW.eigvals()\n AJyF = oyIN.array([1.0, -1.0])\n Wyv3 = lk9W * AJyF\n assert oyIN.allclose(QTQb, Wyv3)",
"def BOvF(YKHO):\n uqp8 = ... | [
"0.648516",
"0.64078027",
"0.6319515",
"0.6269322",
"0.62437034",
"0.62044334",
"0.6179997",
"0.61506057",
"0.6130417",
"0.61300653",
"0.61168593",
"0.5999807",
"0.5941667",
"0.5902324",
"0.5887119",
"0.5875319",
"0.58268857",
"0.5826294",
"0.58256453",
"0.58114976",
"0.57985... | 0.6440627 | 1 |
Initializes a Sequential NN with the keras Sequential object. It takes as input a normal shaped array of size 16 and returns an array of shape=(None, 784). | def FIMM(YKHO):
YKHO.model = ileL()
YKHO.model.add(l6ZH(units=NArs.GENERATOR_HIDDEN_LAYER_1, activation=NArs.GENERATOR_ACTIVATION, input_dim=NArs.GENERATOR_INPUT_LAYER))
YKHO.model.add(l6ZH(units=NArs.GENERATOR_HIDDEN_LAYER_2, activation=NArs.GENERATOR_ACTIVATION))
YKHO.model.add(l6ZH(units=NArs.GENERAT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yj92(YKHO):\n for gEmA in range(YKHO.num_layers):\n YKHO.inputs.append(oyIN.empty([1, YKHO.neuron_arr[gEmA]]))\n YKHO.errors.append(oyIN.empty([1, YKHO.neuron_arr[gEmA]]))\n if gEmA < YKHO.num_layers - 1:\n YKHO.outputs.append(oyIN.empty([1, YKHO.neuron_arr[gEmA] + 1]))\n ... | [
"0.63121474",
"0.6211162",
"0.619901",
"0.61516744",
"0.59422404",
"0.58752185",
"0.57669455",
"0.5700509",
"0.56957406",
"0.5695718",
"0.5689543",
"0.567179",
"0.5669657",
"0.56659",
"0.56410205",
"0.56406415",
"0.5634619",
"0.5624969",
"0.5621073",
"0.5613252",
"0.5604051",... | 0.5423149 | 49 |
Reurns all the weights of the model. | def wT46(YKHO):
return YKHO.model.get_weights() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMkV(YKHO):\n pass",
"def UMkV(YKHO):\n\n def fAZZ(r8hN):\n if hasattr(r8hN, 'reset_parameters'):\n r8hN.reset_parameters()\n YKHO.model.apply(fAZZ)\n return",
"def GOFj(YKHO):\n pass",
"def UMkV(C3ST):\n if hasattr(C3ST, 'reset_parameters'):\n C3ST.reset_parame... | [
"0.79753345",
"0.7912102",
"0.7548649",
"0.74460566",
"0.74202037",
"0.74184424",
"0.7402264",
"0.73821974",
"0.7379766",
"0.73449266",
"0.7322694",
"0.7321391",
"0.72760165",
"0.72717875",
"0.71426815",
"0.7128083",
"0.71267533",
"0.71256065",
"0.71073925",
"0.7077985",
"0.7... | 0.0 | -1 |
Wet bulb temperature as function of air temperature and relative humidty | def BMxA(AsBL, Brq_):
CMob = AsBL * oyIN.arctan(0.151977 * oyIN.power(Brq_ + 8.313659, 0.5)) + oyIN.arctan(AsBL + Brq_) - oyIN.arctan(Brq_ - 1.676331) + 0.00391838 * oyIN.power(Brq_, 1.5) * oyIN.arctan(0.023101 * Brq_) - 4.686035
return CMob | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovGo(YKHO):\n Yh3e = YKHO.data.adc_t\n Z9rn = YKHO.calibration\n CIn9 = ((Yh3e >> 3) - (Z9rn.T1 << 1)) * Z9rn.T2 >> 11\n AhCl = (((Yh3e >> 4) - Z9rn.T1) * ((Yh3e >> 4) - Z9rn.T1) >> 12) * Z9rn.T3 >> 14\n YKHO.t_fine = CIn9 + AhCl\n return (YKHO.t_fine * 5 + 128 >> 8) / 100",
"def iYRB(ycBG)... | [
"0.7669176",
"0.7665375",
"0.760757",
"0.75264907",
"0.75228053",
"0.74550986",
"0.7433318",
"0.74093115",
"0.7406386",
"0.7353044",
"0.7343057",
"0.7235325",
"0.7206141",
"0.7199749",
"0.7190828",
"0.7189404",
"0.71883005",
"0.71767724",
"0.71751994",
"0.7156346",
"0.7154451... | 0.7590665 | 3 |
Sends a job for execution. Queues an action and creates an Operation instance to be associated with this action. | def nhfz(YKHO, _ltn, KJfk):
XeOP = YKHO.__storage.get_message(_ltn, eax5)
if not XeOP:
raise ATWL('Could not get action from storage.')
oUZx = YKHO.__storage.get_message(XeOP.command_digest, TkY7)
if not oUZx:
raise ATWL('Could not get command from storage.')
hzxT = {}
for MI8x i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WdaX(YKHO, vEq1, XeOP):\n YKHO.send_queue.put([vEq1, PjZe(XeOP)])",
"def uRO4(YKHO, LEgg, S_Ea, Q64Y=None):\n oCfW = YKHO.create_job(LEgg, S_Ea)\n x1nf(Q64Y).send_message(oCfW.create_json_message())\n return oCfW",
"def VrZR(YKHO, XeOP):\n if YKHO.handler.is_waiting():\n raise E7ev\n ... | [
"0.60627",
"0.5912945",
"0.5902088",
"0.5859244",
"0.5843983",
"0.5781801",
"0.5708508",
"0.5697038",
"0.5678247",
"0.56773233",
"0.56693345",
"0.5661915",
"0.56463367",
"0.5641196",
"0.56385815",
"0.56332743",
"0.5606366",
"0.5601538",
"0.5596913",
"0.55944693",
"0.55894935"... | 0.5200399 | 66 |
Compute and return the forward activation of each layer in layers. | def RHoK(PRNA, fhcK, RpOg, EvQg=True):
if EvQg:
EcVT = oyIN.stack([PRNA] * RpOg).transpose([1, 0, 2])
else:
EcVT = PRNA
for gEmA in fhcK:
if EvQg:
pass
else:
gEmA.noise = 0
EcVT = gEmA.get_output(EcVT)
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO, g4y1):\n YoQM = g4y1\n YKHO.activations[0] = g4y1\n for YRbF, yzQ0 in enumerate(YKHO.weights):\n pwfr = oyIN.dot(YoQM, yzQ0)\n YoQM = YKHO._sigmoid(pwfr)\n YKHO.activations[YRbF + 1] = YoQM\n return YoQM",
"def c4K4(YKHO):\n for gEmA in YKHO._forward_layers:\n ... | [
"0.763627",
"0.7605674",
"0.7508104",
"0.7450544",
"0.74312073",
"0.7431038",
"0.72904116",
"0.72903055",
"0.7230164",
"0.7201278",
"0.71778476",
"0.71777624",
"0.7113057",
"0.7108864",
"0.70986074",
"0.7073854",
"0.7060925",
"0.70199317",
"0.6993305",
"0.698034",
"0.69628733... | 0.68284774 | 38 |
Function to update the parameters of the given layers with the given gradients by gradient descent with the given learning rate. | def x2Fr(fhcK, N77f, b0Ix):
for gEmA in fhcK:
gEmA.update_param(N77f, b0Ix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EayS(Fv2L, NArs, JuX_):\n fhcK = int(len(list(JuX_)) / 2)\n qHf0 = Fv2L['learning_rate']\n for YRbF in range(1, fhcK + 1):\n NArs['W_' + str(YRbF)] -= qHf0 * JuX_['grad_W_' + str(YRbF)]\n NArs['b_' + str(YRbF)] -= qHf0 * JuX_['grad_b_' + str(YRbF)]\n return NArs",
"def pu93(YKHO, b0... | [
"0.7888979",
"0.77170354",
"0.7714713",
"0.76569337",
"0.76531404",
"0.7618162",
"0.7606515",
"0.75559187",
"0.75498486",
"0.7541095",
"0.7537483",
"0.7536904",
"0.7530323",
"0.75245416",
"0.7523693",
"0.7507514",
"0.74894476",
"0.74826896",
"0.74810004",
"0.7468121",
"0.7443... | 0.8037832 | 0 |
This function is to define the process of performing forward pass, that is to accept a Variable of input data, x, and return a Variable of output data, y_pred. | def KVH6(YKHO, WKvO):
HD80 = YKHO.hidden(WKvO)
HD80 = ht2j.dropout(HD80, p=0.5, train=True)
mxza = ht2j.sigmoid(HD80)
aMgO = YKHO.out(mxza)
return aMgO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n aMgO = YKHO.linear(WKvO)\n return aMgO",
"def KVH6(YKHO, WKvO):\n aMgO = YKHO.linear(WKvO)\n return aMgO",
"def KVH6(YKHO, WKvO):\n aMgO = YKHO.linear(WKvO)\n return aMgO",
"def KVH6(YKHO, WKvO):\n aMgO = YKHO.linear(WKvO)\n return aMgO",
"def KVH6(YKHO, WKvO... | [
"0.82572687",
"0.80548507",
"0.80548507",
"0.80548507",
"0.78015834",
"0.7720435",
"0.77061164",
"0.7621768",
"0.7522985",
"0.7506351",
"0.7492766",
"0.7487351",
"0.74614966",
"0.7450045",
"0.7417079",
"0.73765457",
"0.734613",
"0.7326057",
"0.7300583",
"0.7210796",
"0.719986... | 0.77503705 | 5 |
Applies a Gaussian Noise kernel | def AktH(VXjJ, Ot1W):
return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(zNig=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, zNig + 1)\n wpiG = oyIN.diff(aevO.norm.cdf(WKvO))\n KBhd = oyIN.outer(wpiG, w... | [
"0.760437",
"0.7392273",
"0.722894",
"0.72202075",
"0.700726",
"0.6983336",
"0.69493324",
"0.69362295",
"0.6930378",
"0.69262356",
"0.69125265",
"0.6896405",
"0.6852422",
"0.6851908",
"0.68292606",
"0.6815795",
"0.6814179",
"0.6808105",
"0.6799308",
"0.6787438",
"0.67733485",... | 0.0 | -1 |
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def Zmw9(VXjJ, iXlf):
"""defining a blank mask to start with"""
ZHfW = oyIN.zeros_like(VXjJ)
'defining a 3 channel or 1 channel color to fill the mask with depending\n on the input image\n '
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.75986147",
"0.75986147",
"0.75986147",
"0.75986147",
"0.7562883",
"0.75249195",
"0.7509345",
"0.75078744",
"0.7501184",
"0.7499506",
"0.74969125",
"0.7444822",
"0.7435859",
"0.74215186",
"0.740431",
"0.740431",
"0.7393449",
"0.7393449",
"0.7393449",
"0.7393449",
"0.7393449... | 0.65314776 | 80 |
`img` should be the output of a Canny transform. Returns an image with hough lines drawn. | def ukXH(VXjJ, oZuG, q7In, gwAu, vkba, y7AI):
Nqlg = XC5k.HoughLinesP(VXjJ, oZuG, q7In, gwAu, oyIN.array([]), minLineLength=vkba, maxLineGap=y7AI)
MKv0 = oyIN.copy(VXjJ) * 0
for zFiD in Nqlg:
for o4D3, si3g, ajwV, skBL in zFiD:
XC5k.line(MKv0, (o4D3, si3g), (ajwV, skBL), (255, 0, 0), thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5)",
"def CM3h(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)",
"def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rh... | [
"0.7556358",
"0.74801433",
"0.73628724",
"0.7362057",
"0.7344457",
"0.72811186",
"0.724858",
"0.72352386",
"0.72133565",
"0.7193956",
"0.71895844",
"0.71759874",
"0.71556604",
"0.71506155",
"0.71427053",
"0.71422255",
"0.71422255",
"0.71422255",
"0.71422255",
"0.71422255",
"0... | 0.7098711 | 33 |
Determine if the relationship between a repository_dependency record associated with a tool_shed_repository record on the Galaxy side can be eliminated. | def N6Tt(COFj, OFI6, mWFP, qsJ6):
hAei = COFj.get('repository_dependencies', {})
ToQp = hAei.get('repository_dependencies', [])
for HjMA in ToQp:
n3mM, exwG, z1Rg, iKTj, wdAQ, StZh = zia5.parse_repository_dependency_tuple(HjMA)
if n3mM == OFI6 and exwG == mWFP and (z1Rg == qsJ6):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def huPK(uPnQ, COFj, iEJH, OFI6):\n for sv9r in iEJH.required_repositories:\n Zohj = sv9r.repository_dependency\n Mkmy = Zohj.repository\n if N6Tt(COFj, OFI6, Mkmy.name, Mkmy.owner):\n Ol8d = 'Repository dependency %s by owner %s is not required by repository %s, owner %s, '\n ... | [
"0.6728499",
"0.57595515",
"0.57138234",
"0.56524247",
"0.5595324",
"0.5457188",
"0.5436271",
"0.53218675",
"0.53170866",
"0.53139114",
"0.52805287",
"0.5275534",
"0.5271607",
"0.52708036",
"0.5269246",
"0.52563214",
"0.5250982",
"0.5224171",
"0.521525",
"0.5169977",
"0.51612... | 0.76867896 | 0 |
Get a user from the database by id. | def TKWP(P4t4, id):
Dvct = P4t4.model.session
return Dvct.query(P4t4.model.User).get(P4t4.security.decode_id(id)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(id):\n return mv1M.query.get(id)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def bt8D(id):\n return mv1M.query.filter(mv1M.user_id == id).first()",
"def NMoC(YKHO, NCls: Session, id: Any) -> h8nf[mv1M]:\n return NCls.query(mv... | [
"0.89829725",
"0.88866687",
"0.8791868",
"0.87631756",
"0.8753862",
"0.8734865",
"0.8734865",
"0.8632441",
"0.8555323",
"0.8526268",
"0.8511952",
"0.8507949",
"0.85018575",
"0.8470437",
"0.8466524",
"0.8462989",
"0.8458622",
"0.8454889",
"0.8445987",
"0.8438722",
"0.8438722",... | 0.8763075 | 4 |
String representation for debugging. | def wHJl(YKHO):
return YKHO.__name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return YKHO.debug()",
"def dsE5(YKHO):\n return ''",
"def JWLH(YKHO) -> str:\n return '\\n'.join(YKHO._ToStrings())",
"def zAg0(YKHO):\n vIwR = ''\n kgDL = [('ID', YKHO.id), ('QR', YKHO.is_query), ('OPCODE', YKHO.opcode), ('AuthAns', YKHO.authorative), ('Trunc', YKHO.t... | [
"0.8057993",
"0.80179375",
"0.8000203",
"0.7919082",
"0.7847016",
"0.77838373",
"0.77838373",
"0.77730674",
"0.7742597",
"0.76722324",
"0.76650274",
"0.76520187",
"0.76520187",
"0.76520187",
"0.7648126",
"0.7635525",
"0.7626273",
"0.7624037",
"0.76150507",
"0.7612859",
"0.761... | 0.0 | -1 |
Applies an image mask. Only keeps the region_img of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def mWKt(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.78142375",
"0.78142375",
"0.78142375",
"0.78142375",
"0.779459",
"0.7764369",
"0.7680345",
"0.7627425",
"0.7624981",
"0.7603139",
"0.7586241",
"0.7586241",
"0.7586241",
"0.7586241",
"0.7586241",
"0.7580908",
"0.7573174",
"0.7573174",
"0.75688124",
"0.7560175",
"0.75596446"... | 0.75132686 | 48 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(vBOE, YKHO).__init__(*qIxc, **c_sp)
if YKHO.new_params is None:
YKHO.new_params = zPrT.msg.AquaTeleopJoyParams()
else:
YKHO.new_params = zPrT.msg.AquaTeleopJoyParams() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.81645876",
"0.77191854",
"0.77191854",
"0.7651396",
"0.75726527",
"0.75433314",
"0.74847454",
"0.7470747",
"0.74576455",
"0.74444014",
"0.744411",
"0.74333006",
"0.7415277",
"0.7408323",
"0.7391652",
"0.7374395",
"0.73626137",
"0.7324286",
"0.73230547",
"0.73230547",
"0.73... | 0.7117406 | 57 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(ovUU, YKHO).__init__(*qIxc, **c_sp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8166923",
"0.77210987",
"0.77210987",
"0.76532745",
"0.75732845",
"0.7544964",
"0.7486115",
"0.7471291",
"0.74585825",
"0.7446658",
"0.74447477",
"0.7434077",
"0.7415415",
"0.7408826",
"0.7392664",
"0.73762345",
"0.73642707",
"0.73261863",
"0.7324674",
"0.7324674",
"0.7324... | 0.0 | -1 |
Return a custom 404 error. | def m7kB(tTpl):
return ('Sorry, Nothing at this URL.', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n return '404'",
"def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])",
"def eJkH(XObx):\n return dict(err=XObx)",
"def o3cf(P1dF):\n return G3KB('Not Found', 404)",
"def RQdI(P1dF):\n return 'Sorry, Nothing at... | [
"0.8261976",
"0.7991594",
"0.79172295",
"0.7880926",
"0.78432906",
"0.78388923",
"0.78161216",
"0.78161216",
"0.78161216",
"0.78150606",
"0.7812653",
"0.77981657",
"0.7769919",
"0.7759919",
"0.77003217",
"0.76233584",
"0.76187557",
"0.76125807",
"0.75620556",
"0.7555584",
"0.... | 0.0 | -1 |
Return a custom 500 error. | def e_kA(tTpl):
return ('Sorry, unexpected error: {}'.format(tTpl), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C89g(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def r1yd(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def e_kA(tTpl):\n return ('Sorry... | [
"0.77419347",
"0.77353114",
"0.7727835",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.7710948",
"0.76502776",
"0.76437634",
"0.7625618",
"0.7604917",
"0.7602182",
"0.7597321",
"0.75885934",
"0.7562816"... | 0.75283426 | 25 |
Build the queryset for this list. | def k66M(YKHO):
SR0I = J7Xk(YKHO.base_queryset, YKHO.request, ['number', 'total_incl_tax'])
if 'invoice_status' in YKHO.request.GET:
YKHO.form = YKHO.form_class()
jGRS = YKHO.request.GET['invoice_status']
if jGRS.lower() == 'none':
jGRS = None
return YKHO.base_queryse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjeD(YKHO):\n jxGD = YKHO.sync_job.target_django_model.model_class()\n KUnM = [(YRbF.predicate, YRbF.value) for YRbF in YKHO.sync_job.filters.all()]\n if len(KUnM) > 0:\n return jxGD.objects.filter(**dict(KUnM)).all()\n else:\n return jxGD.objects.all()",
"def wc3e(YKHO):\n retur... | [
"0.75635463",
"0.7332459",
"0.72832084",
"0.7228514",
"0.72238886",
"0.70512044",
"0.6939446",
"0.6928913",
"0.6928913",
"0.69099873",
"0.6891547",
"0.68816483",
"0.6861249",
"0.6844906",
"0.6835004",
"0.6797403",
"0.67902356",
"0.6776865",
"0.6774684",
"0.6726816",
"0.672663... | 0.6452952 | 41 |
Stores a discrete choice of numeric or nonnumeric values. The choice can be encoded as a numeric value or using onehot encoding depending on the value passed to `encode_strategy`. | def FIMM(YKHO, mrPm: List[Union[int, float, str]], WErR: Optional[List[float]]=None, udos: str='auto') -> None:
YKHO.choices = mrPm
YKHO.probabilities = WErR
if udos == 'auto':
udos = 'numeric' if all((isinstance(Acvy, KUXB) for Acvy in mrPm)) else 'one_hot'
YKHO.encode_strategy = udos | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, MTKo: Any) -> x1iM[float]:\n if YKHO.encode_strategy == 'one_hot':\n assert MTKo in YKHO.choices, f'Invalid option: {MTKo}. Valid options: {YKHO.choices}'\n return [float(Acvy == MTKo) for Acvy in YKHO.choices]\n return [float(MTKo)]",
"def QbQu(YKHO, jQ3Z, iSRS=dict()):\n i... | [
"0.64098525",
"0.5623268",
"0.5477355",
"0.54003173",
"0.5348115",
"0.5280217",
"0.5240074",
"0.51656413",
"0.51422507",
"0.51392484",
"0.5128753",
"0.50879925",
"0.5066853",
"0.5046727",
"0.49577144",
"0.4951222",
"0.4916339",
"0.49124876",
"0.4910036",
"0.49056655",
"0.4905... | 0.6947346 | 0 |
Returns the reduced row echelon form of a Matrix. Examples ======== >>> from sympy.matrices.densesolve import rref >>> from sympy import QQ >>> a = [ ... [QQ(1), QQ(2), QQ(1)], ... [QQ(2), QQ(3), QQ(1)], ... [QQ(3), QQ(5), QQ(0)]] >>> rref(a, QQ) [[1, 0, 5], [0, 1, 3], [0, 0, 0]] See Also ======== row_echelon | def Gbhj(UaQc, nMvt):
n5WT = jth9.deepcopy(UaQc)
n5WT = snpA(n5WT, nMvt)
aUKP = len(n5WT)
for YRbF in range(aUKP):
if n5WT[YRbF][YRbF] == 1:
for r845 in range(YRbF):
VTUZ(n5WT, r845, YRbF, -n5WT[r845][YRbF], nMvt)
return n5WT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GdGC(UUhx):\n hiNk = FCE9.Matrix(UUhx).rref()[0].tolist()\n rkoI, Jzz1 = UUhx.shape\n G6Nj = []\n for YRbF in range(rkoI):\n jbXL = []\n for r845 in range(Jzz1):\n nrzG = hiNk[YRbF][r845]\n jbXL.append(nrzG.p / nrzG.q)\n G6Nj.append(jbXL)\n return oyIN.... | [
"0.693155",
"0.690227",
"0.6752588",
"0.6644273",
"0.66442436",
"0.6572874",
"0.6441465",
"0.6388579",
"0.6121502",
"0.60499763",
"0.6033661",
"0.5971342",
"0.5872867",
"0.58548003",
"0.58508706",
"0.57668537",
"0.56856567",
"0.5626704",
"0.5619869",
"0.56123126",
"0.5592037"... | 0.6158572 | 8 |
Describe alarm policy rules filtered by conditions. | def seTb(YKHO, C1gt=None, TGZO=None, vgXP=None, qoqK=None, **PrmE):
XeOP = PtXs.ACTION_DESCRIBE_ALARM_POLICY_RULES
gcep = ['alarm_policy', 'alarm_policy_rules', 'offset', 'limit']
TBsA = Mf1Z(locals(), gcep)
if not YKHO.conn.req_checker.check_params(TBsA, integer_params=['offset', 'limit'], list_params=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XASo(YKHO):\n NArs = {}\n MOPg = {'Authorization': 'Bearer ' + YKHO.oauth2_bearer_token}\n geh0 = G4JS.get(YKHO.filter_rules_url, headers=MOPg, params=NArs)\n return geh0.json()",
"def BX8i(YKHO) -> list:\n nVWr = YKHO.device.authenticated_request('GET', f'firewall/filter/searchRule')\n if ... | [
"0.6087872",
"0.5853224",
"0.5821992",
"0.57409096",
"0.57235765",
"0.5672532",
"0.5648509",
"0.56256986",
"0.55824864",
"0.55804974",
"0.55409247",
"0.55396986",
"0.55386215",
"0.5535685",
"0.5513673",
"0.5485735",
"0.5484766",
"0.54112256",
"0.54003936",
"0.5384719",
"0.537... | 0.6764929 | 0 |
Add rules to alarm policy. | def ww4U(YKHO, C1gt, c_NS, **PrmE):
XeOP = PtXs.ACTION_ADD_ALARM_POLICY_RULES
gcep = ['alarm_policy', 'rules']
TBsA = Mf1Z(locals(), gcep)
if not YKHO.conn.req_checker.check_params(TBsA, required_params=['alarm_policy', 'rules'], list_params=['rules']):
return None
if not YKHO.conn.req_check... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RyDq(YKHO, c_NS):\n YKHO.set_rules(c_NS, overwrite=False, use_conf=YKHO.use_conf)",
"def mVil(YKHO, c_NS):\n with YKHO._wl:\n return YKHO._e.add_policies(c_NS)",
"def RyDq(YKHO, c_NS):\n if YKHO.rule_book is not None:\n YKHO.rule_book.add_rules(c_NS)",
"def RyDq(YKHO, c_NS):\n i... | [
"0.7285543",
"0.7082143",
"0.7009289",
"0.7009289",
"0.68464476",
"0.6281409",
"0.624226",
"0.62341255",
"0.62173754",
"0.6192918",
"0.61247116",
"0.5996326",
"0.5984273",
"0.59604156",
"0.594634",
"0.58628106",
"0.5852639",
"0.5852639",
"0.58391064",
"0.5821119",
"0.57939047... | 0.79571044 | 0 |
Associate an alarm_policy on one or more resources. | def FWRa(YKHO, C1gt, JKCy, cyLy=None, **PrmE):
XeOP = PtXs.ACTION_ASSOCIATE_ALARM_POLICY
gcep = ['alarm_policy', 'resources', 'related_resource']
TBsA = Mf1Z(locals(), gcep)
if not YKHO.conn.req_checker.check_params(TBsA, required_params=['alarm_policy', 'resources'], list_params=['resources']):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def saTZ(YKHO, IOKn):\n YKHO.alarm_list[IOKn.get_name()] = IOKn",
"def Jb4Z(YKHO, C1gt, xASv, **PrmE):\n XeOP = PtXs.ACTION_ADD_ALARM_POLICY_ACTIONS\n gcep = ['alarm_policy', 'actions']\n TBsA = Mf1Z(locals(), gcep)\n if not YKHO.conn.req_checker.check_params(TBsA, required_params=['alarm_policy',... | [
"0.607553",
"0.5946846",
"0.579303",
"0.5669074",
"0.5624962",
"0.5608345",
"0.5588703",
"0.55822724",
"0.556114",
"0.54400903",
"0.53943485",
"0.53296775",
"0.5311476",
"0.5301071",
"0.5299238",
"0.52988565",
"0.52527684",
"0.5237548",
"0.52274257",
"0.5220684",
"0.5171129",... | 0.77652526 | 0 |
Get `title` field value. | def Upwb(YKHO, **B2fa):
ZfUD = B2fa.get('item')
return f'DK - #{ZfUD.name}' if ZfUD else '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n return YKHO.title.get_text()",
"def XIus(YKHO, leAC=''):\n return YKHO.title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])",
"def Upw... | [
"0.81190735",
"0.8027239",
"0.7959281",
"0.79220396",
"0.79220396",
"0.7895372",
"0.7895372",
"0.7891367",
"0.7891367",
"0.7891367",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
"0.7886052",
... | 0.0 | -1 |
Get `description` field value. | def t5do(YKHO, **B2fa):
ZfUD = B2fa.get('item')
return ZfUD.name if ZfUD else '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return YKHO._data.get('description', None)",
"def JBZA(YKHO):\n return YKHO.get('description')",
"def JBZA(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('description')",
"def JBZA(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('description')",
"def JBZA(YKHO) ... | [
"0.8503248",
"0.84990215",
"0.8487935",
"0.8487935",
"0.8487935",
"0.8487935",
"0.8487935",
"0.8487935",
"0.8487935",
"0.8487935",
"0.84838927",
"0.84838927",
"0.84838927",
"0.84838927",
"0.84838927",
"0.8480521",
"0.8431841",
"0.8431672",
"0.8405206",
"0.83745426",
"0.836823... | 0.0 | -1 |
Return the aggregate coordination score. | def Qemi(YKHO, NKcE: int=3) -> h8nf[float]:
assert 1 <= NKcE <= 3
YKHO.precompute_aggregates()
if NKcE == 1:
return YKHO.agg1
elif NKcE == 2:
return YKHO.agg2
else:
return YKHO.agg3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFnZ(YKHO) -> float:\n raise NotImplementedError",
"def yFnZ(YKHO):\n p1kx = 215\n return p1kx",
"def hckV(YKHO) -> int:\n return YKHO.points",
"def VoQ5(YKHO):\n return YKHO._aggregate_scores[1]",
"def NrPp(YKHO):\n return sum([xgT5.left + xgT5.right for xgT5 in YKHO.dominoes])",
"... | [
"0.70922023",
"0.7042041",
"0.6940439",
"0.6883317",
"0.6842326",
"0.6786598",
"0.6780271",
"0.67747885",
"0.6744277",
"0.67386556",
"0.6691973",
"0.6682886",
"0.667119",
"0.6651184",
"0.6650753",
"0.6613213",
"0.66104925",
"0.66020477",
"0.6593934",
"0.65873283",
"0.65831727... | 0.0 | -1 |
Applies to displacement based formulation | def m2CU(YKHO, tjUW, Rzuh, h3aN, V6_V, Jr_f='nonlinear', qcng=True):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fI6F(YKHO):\n if YKHO.precheck:\n eHNT, qsa2, ccaZ = YKHO.weighted_force()\n TP27 = oyIN.dot(YKHO.dm.V.T, eHNT)\n Q4m9 = oyIN.sqrt(oyIN.dot(YKHO.dm.V.T ** 2, qsa2 ** 2))\n TP27[YKHO.z] = 0.0\n if oyIN.all(oyIN.abs(TP27) < Q4m9):\n U34r(' @SCP: All the average fo... | [
"0.66670644",
"0.6446363",
"0.6398857",
"0.6282518",
"0.6258942",
"0.6242686",
"0.62299466",
"0.6224448",
"0.62235653",
"0.61774075",
"0.61270803",
"0.6024615",
"0.59723955",
"0.59099674",
"0.58702916",
"0.583721",
"0.5828428",
"0.58272976",
"0.5826275",
"0.5825762",
"0.58153... | 0.0 | -1 |
Applies to displacement based formulation | def nWWR(YKHO, Rzuh, V6_V, h3aN, Rl0b, Jr_f='nonlinear', qcng=False, GXmM=True):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fI6F(YKHO):\n if YKHO.precheck:\n eHNT, qsa2, ccaZ = YKHO.weighted_force()\n TP27 = oyIN.dot(YKHO.dm.V.T, eHNT)\n Q4m9 = oyIN.sqrt(oyIN.dot(YKHO.dm.V.T ** 2, qsa2 ** 2))\n TP27[YKHO.z] = 0.0\n if oyIN.all(oyIN.abs(TP27) < Q4m9):\n U34r(' @SCP: All the average fo... | [
"0.66670644",
"0.6446363",
"0.6398857",
"0.6282518",
"0.6258942",
"0.6242686",
"0.62299466",
"0.6224448",
"0.62235653",
"0.61774075",
"0.61270803",
"0.6024615",
"0.59723955",
"0.59099674",
"0.58702916",
"0.583721",
"0.5828428",
"0.58272976",
"0.5826275",
"0.5825762",
"0.58153... | 0.0 | -1 |
Applies to displacement based formulation | def uaG4(YKHO, Rzuh, h3aN, Rl0b):
return G8eK(oyIN.ascontiguousarray(Rzuh), h3aN, Rl0b, YKHO.nvar) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fI6F(YKHO):\n if YKHO.precheck:\n eHNT, qsa2, ccaZ = YKHO.weighted_force()\n TP27 = oyIN.dot(YKHO.dm.V.T, eHNT)\n Q4m9 = oyIN.sqrt(oyIN.dot(YKHO.dm.V.T ** 2, qsa2 ** 2))\n TP27[YKHO.z] = 0.0\n if oyIN.all(oyIN.abs(TP27) < Q4m9):\n U34r(' @SCP: All the average fo... | [
"0.66670644",
"0.6446363",
"0.6398857",
"0.6282518",
"0.6258942",
"0.6242686",
"0.62299466",
"0.6224448",
"0.62235653",
"0.61774075",
"0.61270803",
"0.6024615",
"0.59723955",
"0.59099674",
"0.58702916",
"0.583721",
"0.5828428",
"0.58272976",
"0.5826275",
"0.5825762",
"0.58153... | 0.0 | -1 |
Applies to displacement based formulation | def o2cX(YKHO, tjUW, Rzuh, h3aN, Jr_f='nonlinear', qcng=True):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fI6F(YKHO):\n if YKHO.precheck:\n eHNT, qsa2, ccaZ = YKHO.weighted_force()\n TP27 = oyIN.dot(YKHO.dm.V.T, eHNT)\n Q4m9 = oyIN.sqrt(oyIN.dot(YKHO.dm.V.T ** 2, qsa2 ** 2))\n TP27[YKHO.z] = 0.0\n if oyIN.all(oyIN.abs(TP27) < Q4m9):\n U34r(' @SCP: All the average fo... | [
"0.66670644",
"0.6446363",
"0.6398857",
"0.6282518",
"0.6258942",
"0.6242686",
"0.62299466",
"0.6224448",
"0.62235653",
"0.61774075",
"0.61270803",
"0.6024615",
"0.59723955",
"0.59099674",
"0.58702916",
"0.583721",
"0.5828428",
"0.58272976",
"0.5826275",
"0.5825762",
"0.58153... | 0.0 | -1 |
Applies to displacement based formulation | def DAy6(YKHO, tjUW, Rzuh, h3aN, Jr_f='nonlinear', qcng=True):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fI6F(YKHO):\n if YKHO.precheck:\n eHNT, qsa2, ccaZ = YKHO.weighted_force()\n TP27 = oyIN.dot(YKHO.dm.V.T, eHNT)\n Q4m9 = oyIN.sqrt(oyIN.dot(YKHO.dm.V.T ** 2, qsa2 ** 2))\n TP27[YKHO.z] = 0.0\n if oyIN.all(oyIN.abs(TP27) < Q4m9):\n U34r(' @SCP: All the average fo... | [
"0.66670644",
"0.6446363",
"0.6398857",
"0.6282518",
"0.6258942",
"0.6242686",
"0.62299466",
"0.6224448",
"0.62235653",
"0.61774075",
"0.61270803",
"0.6024615",
"0.59723955",
"0.59099674",
"0.58702916",
"0.583721",
"0.5828428",
"0.58272976",
"0.5826275",
"0.5825762",
"0.58153... | 0.0 | -1 |
Log out a logged in user. Then redirect them back to the main page of the site. | def erK4():
oLi7()
return vKnz(nKyW('index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJ7q():\n Dwep('You have been logged out')\n cuiw.pop('user')\n return vKnz(nKyW('log_in'))",
"def QcBj(YKHO):\n YKHO.getCurrentDriver().get(zDeW + 'accounts/logout')",
"def KiPu():\n cuiw.pop('user_id', None)\n Dwep('Logged out')\n return vKnz('/')",
"def erK4():\n oLi7()\n Dw... | [
"0.8563195",
"0.8523369",
"0.8383957",
"0.8368704",
"0.831729",
"0.83161557",
"0.8272577",
"0.82358354",
"0.82285136",
"0.82148004",
"0.8195217",
"0.8194179",
"0.8187309",
"0.8179621",
"0.81759614",
"0.8175348",
"0.81712013",
"0.81710476",
"0.81696004",
"0.8160136",
"0.815558... | 0.79370517 | 85 |
Generate 'N' digit numeric random code for forgot password | def X36Z(exwG=h9Oz):
bqSJ = 10 ** (exwG - 1)
W4ky = 10 ** exwG - 1
return ajWY(bqSJ, W4ky) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikbr(exwG=8):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(exwG)))",
"def haBm():\n jNNc = 'ABCDEFGHJKMNPQRSTWXYZ123456789'\n return ''.join((tuKI.choice(jNNc) for exwG in range(6)))",
"def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in r... | [
"0.8010092",
"0.7817428",
"0.77751607",
"0.7747999",
"0.7731628",
"0.7710017",
"0.76770884",
"0.7663657",
"0.7632547",
"0.76027936",
"0.75996685",
"0.75899774",
"0.758619",
"0.75472474",
"0.7485025",
"0.7478398",
"0.74641716",
"0.74520105",
"0.7425922",
"0.7417982",
"0.740463... | 0.8568459 | 0 |
Gets the ARN for a given role | def oJMC(h1Ur):
try:
print('1.3 Get the IAM role ARN')
geh0 = ENHu.get_role(RoleName=h1Ur)
return geh0['Role']['Arn']
except Exception as e:
print(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"d... | [
"0.81094193",
"0.7803472",
"0.7803472",
"0.7803472",
"0.7803472",
"0.7803472",
"0.7803472",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
"0.7725194",
... | 0.7968079 | 1 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.parse_single_example(AIu6, Q3__)
for mWFP in list(PU1l.keys()):
a1PO = PU1l[mWFP]
if a1PO.dtype == ZylS.int64:
a1PO = ZylS.to_int32(a1PO)
PU1l[mWFP] = a1PO
return PU1l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.8446434",
"0.830079",
"0.82785594",
"0.8274709",
"0.82726496",
"0.82726496",
"0.82680225",
"0.8264758",
"0.8247549",
"0.8232289",
"0.8222357",
"0.8211924",
"0.8211924",
"0.8198826",
"0.81502306",
"0.81283665",
"0.81249464",
"0.8101891",
"0.7957872",
"0.7954449",
"0.7849541... | 0.8275133 | 3 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, svPB, phrK, b0Ix, H0j9, USzt, ND3i, as3x):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
Uszf = bySB['segment_ids']
VNiV = bySB['label_ids']
Jl48 = None
if 'is_real_e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.6786413",
"0.6721714",
"0.6707809",
"0.6707809",
"0.6703191",
"0.66404986",
"0.6618217",
"0.66068006",
"0.64975274",
"0.6484664",
"0.6483239",
"0.64663774",
"0.64470434",
"0.63841903",
"0.6343209",
"0.6341007",
"0.63205445",
"0.62873197",
"0.62575",
"0.6227151",
"0.6222746... | 0.55042523 | 81 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
Uszf = bySB['segment_ids']
VNiV = bySB['label_ids']
Jl48 = None
if 'is_real_example' in bySB:
Jl48 = ZylS.cast(bySB['is_real_example'], dtype=ZylS.float32)
else:
Jl48 = ZylS.ones(ZylS.shape(V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.579009 | 82 |
Test if the returned age is correct | def J3es(DM04):
DM04.birth = qcWV.datetime(qcWV.datetime.now().year - 23, 1, 1)
assert DM04.get_age() == 23 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PHFq(YKHO, VUyo):\n CTXW = qcWV.datetime.now().year\n YKHO._set_year_of_birth(CTXW - VUyo)\n ZJe_ = VUyo - 1\n assert YKHO.profile.age == ZJe_",
"def Ku9C(YKHO):\n wC8t = 22\n yIfO = Q1K3(1993, 2015)\n YKHO.assertEqual(yIfO, wC8t)",
"def wlGd(YKHO):\n if YKHO.dob:\n mtpW = qc... | [
"0.7788043",
"0.7517873",
"0.73530096",
"0.7324702",
"0.7316158",
"0.71853554",
"0.7180776",
"0.7170919",
"0.71625906",
"0.71222013",
"0.7116708",
"0.7116302",
"0.7115389",
"0.7110839",
"0.7062373",
"0.7026454",
"0.7012902",
"0.6984945",
"0.69776005",
"0.6946532",
"0.6945883"... | 0.7040067 | 15 |
Tests attributes of Review class | def bddk(YKHO):
YKHO.assertEqual(hasattr(YKHO.my_object, 'place_id'), True)
YKHO.assertEqual(hasattr(YKHO.my_object, 'user_id'), True)
YKHO.assertEqual(hasattr(YKHO.my_object, 'text'), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMvt(YKHO):\n T7d1 = E1cg()\n YKHO.assertTrue(hasattr(T7d1, 'id'))\n YKHO.assertTrue(hasattr(T7d1, 'created_at'))\n YKHO.assertTrue(hasattr(T7d1, 'updated_at'))\n YKHO.assertEqual(T7d1.place_id, '')\n YKHO.assertEqual(T7d1.user_id, '')\n YKHO.assertEqual(T7d1.text, '')",
"def Hs5j(YKHO):... | [
"0.8283113",
"0.82541287",
"0.82541287",
"0.82541287",
"0.811088",
"0.8094076",
"0.79877406",
"0.7852556",
"0.78039193",
"0.7732138",
"0.77240807",
"0.77240807",
"0.7669612",
"0.7545689",
"0.75238085",
"0.7501151",
"0.74504405",
"0.7435297",
"0.7426695",
"0.73891854",
"0.7340... | 0.61564934 | 95 |
Get a signing key for cookies. | def HwGX():
k79V = p6IW.KV('udb')
FRx1 = k79V.get('ukey_signature_key')
ilm8 = k79V.get('ukey_signature_month')
wzkt = qcWV.datetime.now().date()
N8Vg = wzkt.strftime('%Y-%m-01')
if ilm8 != N8Vg:
FRx1 = None
k79V.put('ukey_signature_month', N8Vg)
if FRx1 is None or FRx1 == ''... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXYg(YKHO):\n return YKHO._signing_key",
"def sBrm(YKHO):\n if YKHO.session is None:\n H5ew = YKHO.key\n else:\n H5ew = YKHO.session.get('_signature_key')\n if H5ew is None:\n H5ew = str(qxeD.uuid1())\n YKHO.session['_signature_key'] = H5ew\n return H5ew... | [
"0.6351583",
"0.61789125",
"0.61752623",
"0.6124807",
"0.5988733",
"0.5976635",
"0.58692765",
"0.58686155",
"0.58679235",
"0.5859066",
"0.5804917",
"0.5776938",
"0.57534695",
"0.5750128",
"0.5748514",
"0.5745292",
"0.57439005",
"0.57110566",
"0.5707807",
"0.5707639",
"0.56032... | 0.5423399 | 41 |
Flask response with auth verification. | def oasc(qm1k, hGN5={}):
if not CYZx():
return VSAS()
return Yxsy(TvZl(qm1k, **hGN5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGwU():\n return S92X(*Fi73(rheaders=True))",
"def gGwU():\n return S92X(*Fi73(rheaders=True))",
"def NLCy(YKHO):\n return oGir('Please provide proper credentials', 401)",
"def bhTi(K85L, jTXt, NKcE='GET', mmG7=None, **B2fa):\n ZUyI = fiuC[K85L['auth_scheme']]\n return ZUyI(K85L, jTXt, met... | [
"0.72990894",
"0.72990894",
"0.7230156",
"0.7176704",
"0.71649814",
"0.71172774",
"0.70953304",
"0.70220596",
"0.70152587",
"0.6975398",
"0.69715273",
"0.697118",
"0.6967528",
"0.6967528",
"0.6967528",
"0.6967528",
"0.6967528",
"0.6967528",
"0.6967528",
"0.6967528",
"0.696752... | 0.69706726 | 12 |
Convert JSON object to a string | def RTSW(YKHO, BWXx, UzPC, LJT_=False):
if isinstance(BWXx, oIgP):
BWXx = BWXx.serialize()
if isinstance(BWXx, dict):
BWXx = qQXR.dumps(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brdk(KGvk):\n return qQXR.dumps(KGvk)",
"def gEyL(YEnM):\n return str(YEnM)",
"def bBIT(YKHO, TLbt: Union[str, Dict, List]) -> str:\n\n def JqPF(bTKY: Dict) -> cuzp:\n for G1Hx, Ty9i in list(bTKY.items()):\n if G1Hx.startswith('@'):\n del bTKY[G1Hx]\n el... | [
"0.88944477",
"0.78105086",
"0.76228285",
"0.74664676",
"0.74581915",
"0.7333148",
"0.7310624",
"0.72269976",
"0.72191787",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7210423",
"0.7178514",
"0.71763426",
"0.7172309",
"0.71534... | 0.0 | -1 |
Compute delta (or eps) for given eps (or delta) from log moments. | def GHCz(WA0b, x6p4=None, ojPw=None):
assert (x6p4 is None) ^ (ojPw is None)
assert not (x6p4 is None and ojPw is None)
if x6p4 is not None:
return (x6p4, KNfk(WA0b, x6p4))
else:
return (rPki(WA0b, ojPw), ojPw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KNfk(YKHO, V8Mq):\n BgK2 = oyIN.atleast_1d(YKHO._orders)\n YCwX = oyIN.atleast_1d(V8Mq)\n if len(BgK2) != len(YCwX):\n tO9_ = 'rdp lists and orders list must have the same length.'\n S0MI.error(NPbC, tO9_)\n raise ValueError(tO9_)\n a1kB = oyIN.exp((YCwX - YKHO._target_eps) * (... | [
"0.6425231",
"0.6419769",
"0.6228261",
"0.6220662",
"0.6143673",
"0.6115743",
"0.60806656",
"0.60632676",
"0.5924789",
"0.57967037",
"0.57714844",
"0.5768557",
"0.5751871",
"0.57284397",
"0.5708687",
"0.56000507",
"0.5589195",
"0.55781823",
"0.5573581",
"0.55724066",
"0.55680... | 0.5671243 | 15 |
Check for valid path, if yes, return `Path` else raise `Error` | def QlU4(pmON: str) -> GkAb:
VqRE = GkAb(pmON)
if VqRE.exists():
raise FileExistsError(f'{VqRE} already exists')
elif not VqRE.parent.exists():
raise TypeError(f'{VqRE} is not a valid path, provide path with file name')
else:
return VqRE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwDd(pmON: str) -> GkAb:\n pmON = GkAb(pmON).resolve()\n if not pmON.exists():\n raise FileNotFoundError(pmON, 'is not a valid file or directory')\n return pmON",
"def zwDd(pmON):\n if not pmON:\n raise ValueError(f'Invalid Path')\n if Hy7s.path.isfile(pmON):\n return pmON... | [
"0.8533475",
"0.81784195",
"0.768029",
"0.7656508",
"0.7557863",
"0.7489548",
"0.7485531",
"0.7398807",
"0.73798305",
"0.7366879",
"0.7366879",
"0.7322916",
"0.72397316",
"0.7220388",
"0.7199287",
"0.71823686",
"0.71823686",
"0.71451104",
"0.71274525",
"0.71034265",
"0.707796... | 0.7606993 | 4 |
Merges 2 dictionaries together; values in b will overwrite those in a | def PPYP(jzdc, Fg_i):
for H5ew in Fg_i:
if H5ew in jzdc:
if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):
PPYP(jzdc[H5ew], Fg_i[H5ew])
elif isinstance(jzdc[H5ew], list) and isinstance(Fg_i[H5ew], list):
jzdc[H5ew].extend(Fg_i[H5ew])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo",
"def RSKQ(YKHO, jzdc, Fg_i):\n if not isinstance(Fg_i, dict):\n return Fg_i\n Aofo = jth9.deepcopy(jzdc)\n for G1Hx, Ty9i in Fg_i.iteritems():\n if G1Hx in Aofo and isinstance(Aofo[G1Hx], dict):\n ... | [
"0.88665706",
"0.85106784",
"0.84988993",
"0.8462512",
"0.84403765",
"0.8385982",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
"0.83752805",
... | 0.75426686 | 86 |
Flattens a list; Taking a list that can contain any number of nested lists, it returns a onelevel list with the elements [a] > [a] [[a]] > [a] [[a, b, c], d, [[e]]] > [a, b, c, d, e] | def PWgb(vC9B):
def cWjI(vC9B, Mkmy):
if type(vC9B) is not list:
Mkmy.append(vC9B)
else:
for YRbF in vC9B:
Mkmy = Mkmy + PWgb(YRbF)
return Mkmy
return cWjI(vC9B, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(KayY):\n return list(Hs6x.chain(*KayY))",
"def GarA(QnQt):\n rm8o = []\n for BDwY in QnQt:\n if isinstance(BDwY, list):\n rm8o.extend(GarA(BDwY))\n else:\n rm8o.append(BDwY)\n return rm8o",
"def PWgb(JTgH, Iwtg=None):\n if Iwtg is None:\n Iwtg ... | [
"0.82235867",
"0.81694204",
"0.8117972",
"0.8103709",
"0.80431455",
"0.80386275",
"0.80357355",
"0.80356103",
"0.80356103",
"0.80356103",
"0.79921746",
"0.7983113",
"0.79589015",
"0.79492617",
"0.79369235",
"0.7924121",
"0.7923663",
"0.791948",
"0.7891796",
"0.78889656",
"0.7... | 0.81929445 | 1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(fqqn, YKHO).__init__(*qIxc, **c_sp)
if YKHO.laser is None:
YKHO.laser = 0
if YKHO.base is None:
YKHO.base = 0
if YKHO.sonar is None:
YKHO.sonar = 0
if YKHO.vision is None:
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167091",
"0.7721305",
"0.7721305",
"0.7653387",
"0.75735575",
"0.7544938",
"0.7486126",
"0.74712706",
"0.7458634",
"0.7447028",
"0.74456894",
"0.74340963",
"0.741523",
"0.7408652",
"0.73922",
"0.7376216",
"0.7364397",
"0.73264366",
"0.7325022",
"0.7325022",
"0.7325022",
... | 0.6988258 | 69 |
Returns list with gaussian distributed values with mean 0 | def kdiU(u54L, WTkW):
U5bT = []
for r845 in range(u54L):
U5bT.append(liMP(0, WTkW))
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjVB(WKvO):\n return mhAC(loc=WKvO, size=len(WKvO))",
"def y_pR(EcVT):\n yGTL = []\n UkX0 = []\n for exwG in range(EcVT.shape[1]):\n yGTL.append(oyIN.mean(EcVT[:, exwG]))\n UkX0.append(oyIN.std(EcVT[:, exwG]) ** 2)\n return (yGTL, UkX0)",
"def IAWS(JBMS, SAMx, WKvO):\n retur... | [
"0.75228393",
"0.72329867",
"0.71399325",
"0.71381253",
"0.7068798",
"0.70261675",
"0.70192397",
"0.6950758",
"0.69456655",
"0.69427276",
"0.69307154",
"0.69193393",
"0.6913898",
"0.6878587",
"0.6872116",
"0.6841212",
"0.683604",
"0.6824461",
"0.6811892",
"0.6811892",
"0.6763... | 0.0 | -1 |
Initializes the SonetPCPFilterQt window. It also sets the signal/slot connections. | def DbxN(YKHO, tl1K=None, SEFj=-1):
YKHO.btn_accept = YKHO.dialog_button_box.button(Eiql.Ok)
YKHO.btn_accept.clicked.connect(YKHO.clicked_pb_accept)
YKHO.btn_accept.clicked.connect(YKHO.accept)
YKHO.btn_cancel = YKHO.dialog_button_box.button(Eiql.Cancel)
YKHO.btn_cancel.clicked.connect(YKHO.clicked_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.view = CsJA.QDialog()\n YKHO.window = mdgr()\n YKHO.window.setupUi(YKHO.view)\n YKHO.fixedWidth = 0\n YKHO.fixedHeight = 0\n YKHO.extra_customization()\n YKHO.view.resizeEvent = YKHO.resize_elements",
"def Pjij(YKHO):\n NOfz = Hy7s.path.join(YKHO.plugin_dir, 'icon.p... | [
"0.7188316",
"0.67431974",
"0.6541279",
"0.6512249",
"0.6485898",
"0.644545",
"0.6428845",
"0.6396683",
"0.6394626",
"0.63751334",
"0.63480836",
"0.63461965",
"0.6343553",
"0.63349015",
"0.6310696",
"0.63076556",
"0.6291333",
"0.6282239",
"0.6251813",
"0.62475026",
"0.6247502... | 0.0 | -1 |
Normalizes string, converts to lowercase, removes nonascii characters, and converts spaces to hyphens. From Django's "django/template/defaultfilters.py". | def eIIt(BWXx):
ch2f = ZbWC.compile('[^\\w\\s-]')
yAuF = ZbWC.compile('[-\\s]+')
if not isinstance(BWXx, QMSQ):
BWXx = QMSQ(BWXx)
BWXx = zVCt.normalize('NFKD', BWXx).encode('ascii', 'ignore')
BWXx = QMSQ(ch2f.sub('', BWXx).strip().lower())
return yAuF.sub('-', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(S702):\n vIwR = XRQ9(S702.lower())\n if not vIwR:\n vIwR = S702\n return vIwR",
"def eIIt(YKHO, BWXx):\n import unicodedata\n import re\n BWXx = QMSQ(re.sub('[^\\\\w\\\\s-]', '', BWXx).strip().lower())\n BWXx = QMSQ(re.sub('[-\\\\s]+', '-', BWXx))\n return BWXx",
"def be... | [
"0.74749076",
"0.73173475",
"0.7313997",
"0.7311005",
"0.72682726",
"0.7245312",
"0.72442055",
"0.72420084",
"0.720837",
"0.72063595",
"0.7197914",
"0.7189094",
"0.71826136",
"0.7182398",
"0.7182398",
"0.71735567",
"0.7169883",
"0.71557194",
"0.71288884",
"0.71259964",
"0.711... | 0.67699355 | 70 |
Return a hexstring of bytes_length cryptographicfriendly random bytes. | def wZgW(mgq9):
return jry1(rU7A(mgq9)).decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcbv(u54L=32):\n return nPFT('hex')(rU7A(u54L // 2))[0].decode('utf-8')",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def s3r6(u54L=8):\n assert u54L >= 0\n wa4D = (u54L >> 1) + u54L % 2\n return Hy7s.urandom(wa4D).encode('hex')[:u54L]",
"def BWvy(yR_q=4):\n return H... | [
"0.8191524",
"0.80286205",
"0.7969166",
"0.7841728",
"0.77319735",
"0.7706712",
"0.7660554",
"0.76132417",
"0.75139976",
"0.7446501",
"0.74262685",
"0.7405911",
"0.73945665",
"0.7366444",
"0.73307914",
"0.72909874",
"0.7282662",
"0.72469085",
"0.722527",
"0.71940696",
"0.7167... | 0.8461267 | 0 |
Read the setting key from environment variables. | def P1Fg(H5ew, BWXx):
ci3_ = H5ew.replace('.', '_').replace('-', '_').upper()
return ILrs(AxXv(ci3_, BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1Fg(mWFP):\n Aofo = Hy7s.environ.get(mWFP, None)\n if Aofo is None:\n raise OuIF('The {} variable is not setup in the environment.\\nIn order for django-envcrypto to work you should either supply a KEY in the environment variables or through the command line.'.format(mWFP))\n return Aofo",
"... | [
"0.7646753",
"0.7518858",
"0.74956656",
"0.7384668",
"0.72831047",
"0.7163173",
"0.7024363",
"0.7015669",
"0.69842124",
"0.6954479",
"0.69489175",
"0.69370025",
"0.69359887",
"0.6928668",
"0.6928668",
"0.6928196",
"0.6922274",
"0.68972325",
"0.6885845",
"0.68715817",
"0.68563... | 0.7591129 | 1 |
Calculate the confidence interval for the positiveconstrained expectation value. | def mjJ1(WKvO, WTkW, CQwJ):
CLNC = ppsq(WKvO, WTkW, CQwJ)
d2DU = AbYn(WKvO, WTkW, CQwJ)
return (CLNC, d2DU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjJ1(YKHO, Fv2L=0.95):\n JBMS = YKHO.gi_matrix.mean()\n SRYB = oyIN.var(YKHO.gi_matrix)\n M1Jx = epAf.sqrt(SRYB)\n return aevO.norm.interval(Fv2L, loc=JBMS, scale=M1Jx)",
"def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')",
"def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'c... | [
"0.68159086",
"0.67833394",
"0.67833394",
"0.67833394",
"0.67833394",
"0.66884226",
"0.66884226",
"0.66884226",
"0.66884226",
"0.66012764",
"0.6594647",
"0.6593727",
"0.650282",
"0.64934075",
"0.648619",
"0.64711213",
"0.63973624",
"0.6376616",
"0.63735795",
"0.6371137",
"0.6... | 0.66664183 | 9 |
Func which check values on non equivalent and return tuple of vals. | def CtM1(wNuL, Mlb1):
return (wNuL, Mlb1) if wNuL != Mlb1 else (wNuL,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AoRX(hkxX):\n return tuple([rKLW.clipValue(Ty9i) for Ty9i in (tuple(hkxX) + (0, 0, 0))[:3]])",
"def LAY6(T6S7):\n if not Sbtt(T6S7):\n T6S7 = (T6S7,)\n return tuple(T6S7)",
"def fF74(YKHO, a1PO):\n yzQ0, MKlR = a1PO\n return (yzQ0, MKlR)",
"def sZhl(hkxX):\n return tuple([wEf2 fo... | [
"0.72432196",
"0.6612076",
"0.6561992",
"0.6402132",
"0.6230376",
"0.6104759",
"0.6078763",
"0.6067279",
"0.6055744",
"0.5979637",
"0.5966291",
"0.5916056",
"0.58944523",
"0.58794254",
"0.5856974",
"0.58093417",
"0.5773122",
"0.5761757",
"0.57582974",
"0.5728194",
"0.5727421"... | 0.764461 | 0 |
Computes average velocity in a range. | def gUz5(YKHO, yKcO, Os4s):
lM0e = []
THkp = YKHO.window[yKcO]
PtUL = 0
VOlW = 0
for YRbF in range(yKcO + 1, Os4s):
ZbOB = YKHO.window[YRbF]
Jw7X = ZbOB.x - THkp.x
eUWA = ZbOB.y - THkp.y
JRYC = ZbOB.time - THkp.time
Csk6 = epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vh5c(YKHO, wmrN=-300):\n wmrN = int(wmrN)\n if wmrN < 0:\n YKHO.uavg = oyIN.mean(YKHO.u_tot[-wmrN:, :, :], axis=0)\n elif wmrN > 0:\n YKHO.uavg = efzw(YKHO.u_tot, size=wmrN, axis=0, mode='mirror')\n else:\n wmrN = 1\n YKHO.uavg = YKHO.u_tot\n YKHO.Navg = wmrN\n ret... | [
"0.705423",
"0.6856813",
"0.68065596",
"0.6663892",
"0.6631837",
"0.6479518",
"0.64735574",
"0.62992394",
"0.6253201",
"0.6239086",
"0.62026304",
"0.6194008",
"0.6189637",
"0.61882854",
"0.61782736",
"0.6161679",
"0.61476165",
"0.611932",
"0.6109568",
"0.60988146",
"0.6088692... | 0.77921087 | 0 |
Test pow2 to ensure we have valid data present Array code b. | def s7kB(YKHO):
YKHO.assertTrue(len(YKHO.data1) >= 10) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8yD(YKHO):\n dY4s.pow2(YKHO.zeroconst, YKHO.dataoutput)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataend, YKHO.dataoutput)",
"def i8yD(YKHO):\n dY4s.pow2(YKHO.zeroconst, YKHO.dataoutput)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataen... | [
"0.83042586",
"0.83042586",
"0.83042586",
"0.83042586",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.82151777",
"0.82151777... | 0.0 | -1 |
Test pow2 as arraynone for basic function Array code b. | def JWy_(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1)
YKHO.assertEqual(list(YKHO.data1), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8yD(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, maxlen='a')",
"def i8yD(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, ma... | [
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83364254",
"0.83321756",
"0.83321756",
"0.83321756",
"0.83321756",
"0.83321756",
"0.83321756",
"0.83321756",
"0.83321756"... | 0.82751393 | 92 |
Test pow2 as arrayarray for basic function Array code b. | def ZarY(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, YKHO.dataoutput)
YKHO.assertEqual(list(YKHO.dataoutput), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcsN(YKHO):\n Cxtd = len(YKHO.data1) // 2\n OLnb = YKHO.pyexpected\n aEqx = OLnb[0:Cxtd] + list(YKHO.dataoutput)[Cxtd:]\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, maxlen=Cxtd)\n YKHO.assertEqual(list(YKHO.dataoutput), aEqx)",
"def FcsN(YKHO):\n Cxtd = len(YKHO.data1) // 2\n OLnb = YKHO.pye... | [
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.8409323",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695006",
"0.83695... | 0.83871144 | 21 |
Test pow2 as arraynone for basic function with array limit Array code b. | def GlGG(YKHO):
Cxtd = len(YKHO.data1) // 2
OLnb = YKHO.pyexpected
aEqx = OLnb[0:Cxtd] + list(YKHO.data1)[Cxtd:]
dY4s.pow2(YKHO.data1, maxlen=Cxtd)
YKHO.assertEqual(list(YKHO.data1), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQVF(YKHO):\n dY4s.pow2(YKHO.data1)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, maxlen='a')",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.data1)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, maxlen='a')",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.data1)\n with ... | [
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.83753425",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8343737",
"0.8... | 0.8256685 | 65 |
Test pow2 as arrayarray for basic function with array limit Array code b. | def FcsN(YKHO):
Cxtd = len(YKHO.data1) // 2
OLnb = YKHO.pyexpected
aEqx = OLnb[0:Cxtd] + list(YKHO.dataoutput)[Cxtd:]
dY4s.pow2(YKHO.data1, YKHO.dataoutput, maxlen=Cxtd)
YKHO.assertEqual(list(YKHO.dataoutput), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8yD(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, maxlen='a')",
"def i8yD(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, ma... | [
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.8419585",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128726",
"0.83128... | 0.8282241 | 65 |
Test pow2 as arraynone for basic function with matherrors=True Array code b. | def x9ke(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, matherrors=True)
YKHO.assertEqual(list(YKHO.data1), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQVF(YKHO):\n dY4s.pow2(YKHO.zeroconst)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataend)",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.zeroconst)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataend)",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.zerocon... | [
"0.84365684",
"0.84365684",
"0.84365684",
"0.84365684",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.8370928",
"0.83467764",
"0.83467764... | 0.8301937 | 63 |
Test pow2 as arrayarray for basic function with matherrors=True Array code b. | def qWHi(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors=True)
YKHO.assertEqual(list(YKHO.dataoutput), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors='a')",
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput... | [
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.8586035",
"0.83973426",
"0.83973426",
"0.83973426",
"0.83973426",
"0.8310414",
"0.8310414",
"0.8310414",
"0.8310414",
"0.82937753"... | 0.8249986 | 85 |
Test pow2 as arraynone for basic function with matherrors=True and with array limit Array code b. | def TMQI(YKHO):
Cxtd = len(YKHO.data1) // 2
OLnb = YKHO.pyexpected
aEqx = OLnb[0:Cxtd] + list(YKHO.data1)[Cxtd:]
dY4s.pow2(YKHO.data1, maxlen=Cxtd, matherrors=True)
YKHO.assertEqual(list(YKHO.data1), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQVF(YKHO):\n dY4s.pow2(YKHO.dataok)\n with YKHO.assertRaises(OverflowError):\n dY4s.pow2(YKHO.errordataend)",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.dataok)\n with YKHO.assertRaises(OverflowError):\n dY4s.pow2(YKHO.errordataend)",
"def QQVF(YKHO):\n dY4s.pow2(YKHO.dataok)\n with... | [
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84957933",
"0.84742045",
"0.84742045",
"0.84742045",
"0.84742045",
"0.84742045"... | 0.0 | -1 |
Test pow2 as arrayarray for basic function with matherrors=True and with array limit Array code b. | def E5AM(YKHO):
Cxtd = len(YKHO.data1) // 2
OLnb = YKHO.pyexpected
aEqx = OLnb[0:Cxtd] + list(YKHO.dataoutput)[Cxtd:]
dY4s.pow2(YKHO.data1, YKHO.dataoutput, maxlen=Cxtd, matherrors=True)
YKHO.assertEqual(list(YKHO.dataoutput), aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors='a')",
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput... | [
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.84924304",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8445257",
"0.8... | 0.0 | -1 |
Test pow2 to ensure we have valid data present Array code b. | def s7kB(YKHO):
YKHO.assertTrue(len(YKHO.data1) >= 10) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8yD(YKHO):\n dY4s.pow2(YKHO.zeroconst, YKHO.dataoutput)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataend, YKHO.dataoutput)",
"def i8yD(YKHO):\n dY4s.pow2(YKHO.zeroconst, YKHO.dataoutput)\n with YKHO.assertRaises(ArithmeticError):\n dY4s.pow2(YKHO.errordataen... | [
"0.83042586",
"0.83042586",
"0.83042586",
"0.83042586",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.8273486",
"0.82151777",
"0.82151777... | 0.0 | -1 |
Test pow2 as arraynone for invalid type of array Array code b. | def Hl46(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1)
with YKHO.assertRaises(TypeError):
dY4s.pow2(bytes([1, 2, 3, 4])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CodF(YKHO):\n dY4s.pow2(YKHO.data1)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, matherrors='a')",
"def CodF(YKHO):\n dY4s.pow2(YKHO.data1)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, matherrors='a')",
"def CodF(YKHO):\n dY4s.pow2(YKHO.data1)\n ... | [
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.856036",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
"0.8549063",
... | 0.85194427 | 41 |
Test pow2 as arrayarray for invalid type of array Array code b. | def V6dQ(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, YKHO.dataoutput)
with YKHO.assertRaises(TypeError):
dY4s.pow2(bytearray[1, 2, 3, 4], YKHO.dataoutput) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors='a')",
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput... | [
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
"0.8341662",
... | 0.8442474 | 22 |
Test pow2 as arrayarray for invalid type of array Array code b. | def c67_(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, YKHO.dataoutput)
with YKHO.assertRaises(TypeError):
dY4s.pow2(YKHO.data1, bytearray([1, 2, 3, 4])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors='a')",
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput... | [
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8572163",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"0.8442573",
"... | 0.0 | -1 |
Test pow2 as arrayarray for invalid type of array Array code b. | def Lg2D(YKHO):
aEqx = YKHO.pyexpected
dY4s.pow2(YKHO.data1, YKHO.dataoutput)
with YKHO.assertRaises(TypeError):
dY4s.pow2(bytearray([1, 2, 3, 4]), bytearray([1, 2, 3, 4])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput, matherrors='a')",
"def V6dQ(YKHO):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput)\n with YKHO.assertRaises(TypeError):\n dY4s.pow2(YKHO.data1, YKHO.dataoutput... | [
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.857232",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
"0.8442474",
... | 0.0 | -1 |