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 |
|---|---|---|---|---|---|---|
The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. | def O4Fb(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'profile_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1Pk(YKHO):\n return YKHO.base_profile",
"def gIO5(YKHO):\n return YKHO.__profile_id",
"def O4Fb(YKHO, YEnM):\n return YEnM.id",
"def KmCi(w2IS, lZwM, x0hE):\n pMXh('Configuring Pod Profile: %s' % lZwM)\n if x0hE.profile_exists(lZwM):\n pMXh('Error: Profile with name %s already exis... | [
"0.6237233",
"0.5943354",
"0.57825",
"0.57667273",
"0.5763609",
"0.5612996",
"0.55783755",
"0.5454744",
"0.5406274",
"0.5389565",
"0.53592277",
"0.53425425",
"0.531246",
"0.5311655",
"0.5231567",
"0.52135867",
"0.5183188",
"0.51390713",
"0.51356757",
"0.51324356",
"0.51309806... | 0.56116086 | 6 |
The ID of the Azure Resource which should be used as a target. | def J6ic(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'target_resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6ic(YKHO):\n return YKHO._target_resource_id",
"def J6ic(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_id')... | [
"0.8125693",
"0.810398",
"0.810398",
"0.8089084",
"0.8089084",
"0.7889696",
"0.7889696",
"0.763968",
"0.752722",
"0.75249076",
"0.747921",
"0.7460033",
"0.7460033",
"0.7460033",
"0.74590224",
"0.73662895",
"0.7291784",
"0.7291784",
"0.723598",
"0.7201306",
"0.7201306",
"0.7... | 0.80651873 | 5 |
The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. | def O4Fb(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'profile_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1Pk(YKHO):\n return YKHO.base_profile",
"def gIO5(YKHO):\n return YKHO.__profile_id",
"def O4Fb(YKHO, YEnM):\n return YEnM.id",
"def KmCi(w2IS, lZwM, x0hE):\n pMXh('Configuring Pod Profile: %s' % lZwM)\n if x0hE.profile_exists(lZwM):\n pMXh('Error: Profile with name %s already exis... | [
"0.6236588",
"0.594268",
"0.57825184",
"0.5766255",
"0.5764029",
"0.5612532",
"0.5611077",
"0.54536235",
"0.54062563",
"0.5389524",
"0.53589857",
"0.534227",
"0.53119",
"0.5310862",
"0.52300954",
"0.52159405",
"0.5181746",
"0.5139919",
"0.51377094",
"0.5132791",
"0.51301074",... | 0.5577714 | 7 |
The ID of the Azure Resource which should be used as a target. | def J6ic(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'target_resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6ic(YKHO):\n return YKHO._target_resource_id",
"def J6ic(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_id')... | [
"0.8127033",
"0.81045634",
"0.81045634",
"0.80897474",
"0.80897474",
"0.8065806",
"0.8065806",
"0.76415074",
"0.7529852",
"0.75268203",
"0.74811614",
"0.74616206",
"0.74616206",
"0.74616206",
"0.7461004",
"0.7368936",
"0.7293551",
"0.7293551",
"0.72364366",
"0.720289",
"0.720... | 0.78906894 | 7 |
The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. | def O4Fb(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'profile_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1Pk(YKHO):\n return YKHO.base_profile",
"def gIO5(YKHO):\n return YKHO.__profile_id",
"def O4Fb(YKHO, YEnM):\n return YEnM.id",
"def KmCi(w2IS, lZwM, x0hE):\n pMXh('Configuring Pod Profile: %s' % lZwM)\n if x0hE.profile_exists(lZwM):\n pMXh('Error: Profile with name %s already exis... | [
"0.6237233",
"0.5943354",
"0.57825",
"0.57667273",
"0.5763609",
"0.56116086",
"0.55783755",
"0.5454744",
"0.5406274",
"0.5389565",
"0.53592277",
"0.53425425",
"0.531246",
"0.5311655",
"0.5231567",
"0.52135867",
"0.5183188",
"0.51390713",
"0.51356757",
"0.51324356",
"0.5130980... | 0.5612996 | 5 |
The ID of the Azure Resource which should be used as a target. | def J6ic(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'target_resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6ic(YKHO):\n return YKHO._target_resource_id",
"def J6ic(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"def J6ic(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'target_resource_id')",
"de... | [
"0.8125693",
"0.8089084",
"0.8089084",
"0.80651873",
"0.80651873",
"0.7889696",
"0.7889696",
"0.763968",
"0.752722",
"0.75249076",
"0.747921",
"0.7460033",
"0.7460033",
"0.7460033",
"0.74590224",
"0.73662895",
"0.7291784",
"0.7291784",
"0.723598",
"0.7201306",
"0.7201306",
... | 0.810398 | 1 |
Gets the cq_analytics_testandtarget_deleteauthoractivitylistener_enabled of this ComDayCqAnalyticsTestandtargetImplDeleteAuthorActivityListenerProperties. | def mUuY(YKHO) -> MH_9:
return YKHO._cq_analytics_testandtarget_deleteauthoractivitylistener_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUuY(YKHO, mUuY: ConfigNodePropertyBoolean):\n YKHO._cq_analytics_testandtarget_deleteauthoractivitylistener_enabled = mUuY",
"def FIMM(YKHO, mUuY: ConfigNodePropertyBoolean=None):\n YKHO.openapi_types = {'cq_analytics_testandtarget_deleteauthoractivitylistener_enabled': MH_9}\n YKHO.attribute_map =... | [
"0.82186127",
"0.7343647",
"0.5226191",
"0.4577639",
"0.43850538",
"0.43145692",
"0.43069002",
"0.4305562",
"0.42960066",
"0.4269374",
"0.42412296",
"0.42330948",
"0.40637624",
"0.4052335",
"0.40413368",
"0.40379652",
"0.40257445",
"0.40246853",
"0.40226698",
"0.40069053",
"0... | 0.8440551 | 0 |
Returns another cell object with identical properties. | def jth9(YKHO):
return riCw(YKHO.coords, YKHO.cell_type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n e6er = WUQd.__new__(WUQd)\n super(WUQd, e6er).__init__(YKHO.data.copy(), name=YKHO.name)\n for Mzf9 in YKHO.coords.parameters:\n setattr(e6er.coords, Mzf9, getattr(YKHO.coords, Mzf9))\n return e6er",
"def jth9(YKHO, *qIxc, **YSA3):\n hlel = super(qP9m, YKHO).copy(*qIxc, **... | [
"0.67619807",
"0.6513831",
"0.61527586",
"0.6143682",
"0.60489625",
"0.5942703",
"0.5872232",
"0.5871811",
"0.5795212",
"0.57730997",
"0.57629406",
"0.5758116",
"0.57488906",
"0.57488906",
"0.5744933",
"0.5689081",
"0.56826204",
"0.5663",
"0.56398165",
"0.56360143",
"0.563037... | 0.7036114 | 0 |
Grid is a dictionary with tuples representing discrete lattice points and values representing sets of cells nearest to that point Scale is the number of gridpoints per unit | def FIMM(YKHO, NXpY=1 / Pa_0):
YKHO.dictionary = {}
YKHO.scale = NXpY
YKHO.total_cell_count = 0
YKHO.cell_types_count = {}
for wAQc in ebeQ:
YKHO.cell_types_count[wAQc] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdOp(YKHO):\n ...",
"def IbhO(YKHO):\n Omu8 = YKHO.grid_locations[0].shape[0]\n _6hv = YKHO.grid_locations[0].shape[1]\n TxTh = jth9.deepcopy(YKHO.grid_locations)\n for p6S0 in range(Omu8):\n for BGSy in range(_6hv):\n TxTh[0][p6S0][BGSy] = TxTh[0][p6S0][BGSy] * 1.0 / YKHO.nx... | [
"0.7326688",
"0.62403744",
"0.6234811",
"0.62236816",
"0.6164177",
"0.6163454",
"0.61353713",
"0.61221206",
"0.6103782",
"0.60903937",
"0.6006729",
"0.59933525",
"0.59886986",
"0.59792733",
"0.59284663",
"0.59121466",
"0.59077364",
"0.5887141",
"0.5819782",
"0.5818028",
"0.58... | 0.6028916 | 10 |
Adds cell as a value to key corresponding to discrete gridpoint If no gridpoint is in dictionary, create a list containing that cell Otherwise, add it to the existing value list. | def nIfX(YKHO, jNOo=oyIN.zeros(YAeK), wAQc='A'):
if len(jNOo) != YAeK:
raise ValueError('$Dimension mismatch')
kZeT = tuple([round(YRbF * YKHO.scale) / YKHO.scale for YRbF in jNOo])
if kZeT not in YKHO.dictionary:
YKHO.dictionary[kZeT] = [riCw(jNOo, wAQc)]
else:
YKHO.dictionary[k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qw6N(YKHO, Srmj, z1Rg):\n YKHO.d.setdefault(Srmj, []).append(z1Rg)",
"def tgG_(YKHO):\n N8Fb = []\n for kZeT in YKHO.dictionary:\n if len(YKHO.dictionary[kZeT]) == 0:\n N8Fb.append(kZeT)\n for kZeT in N8Fb:\n del YKHO.dictionary[kZeT]",
"def BGOV(BWXx, c0WK, H5ew):\n ... | [
"0.613136",
"0.5866642",
"0.58548784",
"0.5668245",
"0.566184",
"0.566184",
"0.5646072",
"0.56373453",
"0.56289226",
"0.56018263",
"0.55770224",
"0.5546247",
"0.550729",
"0.5500374",
"0.545917",
"0.54154235",
"0.536218",
"0.53552496",
"0.5352661",
"0.5323026",
"0.5311119",
... | 0.5233913 | 32 |
Returns an identical copy of the grid. This method is slow and should be avoided if possible. | def jth9(YKHO):
P5uO = rApN()
for kZeT in YKHO.dictionary:
for VmPb in YKHO.dictionary[kZeT]:
P5uO.add_cell(VmPb.coords, VmPb.cell_type)
return P5uO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HR94(Emd4, Cs6h):\n return jth9.deepcopy(Cs6h)",
"def HR94(Cs6h):\n return jth9.deepcopy(Cs6h)",
"def HR94(Cs6h):\n P5uO = jth9.deepcopy(Cs6h)\n return P5uO",
"def i3ak(YKHO):\n P5uO = rApN(list(YKHO._grid))\n return P5uO",
"def h4H7(YKHO):\n eHaF = rApN()\n eHaF.g = mQYJ.empty_... | [
"0.85546196",
"0.83647406",
"0.8184932",
"0.8184714",
"0.814192",
"0.81270766",
"0.8111042",
"0.8101527",
"0.79746294",
"0.7890425",
"0.77032655",
"0.75989574",
"0.7440948",
"0.73822033",
"0.73540914",
"0.73518556",
"0.7320048",
"0.72657216",
"0.713792",
"0.7134408",
"0.70642... | 0.80886537 | 8 |
Returns coordinates of a random cell at a gridpoint with the specified cell type. If no cell type is specified, then it selects an arbitrary random cell from the gridpoint. | def dIpv(YKHO, kZeT, wAQc=None):
if wAQc == None:
T6Ry = ADdS.choice(tuple(YKHO.dictionary[kZeT]))
return T6Ry.coords
else:
tj9n = []
for VmPb in YKHO.dictionary[kZeT]:
if VmPb.cell_type == wAQc:
tj9n.append(VmPb)
T6Ry = ADdS.choice(tj9n)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PHAT():\n WKvO = tuKI.randint(0, sInB - 1)\n LVAh = tuKI.randint(0, p3Yd - 1)\n return (WKvO, LVAh)",
"def To1S(YKHO):\n qRtf = tuKI.sample(range(YKHO.env.dim * YKHO.env.dim), 1)\n rdlD, fvDH = (qRtf[0] // YKHO.env.dim, qRtf[0] % YKHO.env.dim)\n while (rdlD, fvDH) in YKHO.kb:\n qRtf ... | [
"0.6640029",
"0.64483",
"0.6340522",
"0.61445856",
"0.6069835",
"0.6064909",
"0.6064445",
"0.6038923",
"0.6035766",
"0.6000856",
"0.59991777",
"0.5947385",
"0.59403205",
"0.5924482",
"0.5922678",
"0.5902973",
"0.58471763",
"0.58279955",
"0.5787989",
"0.5774193",
"0.57327163",... | 0.89929986 | 0 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.72122014 | 68 |
Returns a list of adjacent vertices to the given vertex | def fP8F(YKHO, Ty9i):
return tuple(YKHO.g[Ty9i]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0Mi(pNZh, SLBp):\n Ziit = []\n for MxXY, cWFu in pNZh['edges']:\n if MxXY == SLBp:\n Ziit.append(cWFu)\n if cWFu == SLBp:\n Ziit.append(MxXY)\n return sorted(Ziit)",
"def TuXc(YKHO, SLBp):\n return YKHO.adjacency_list[SLBp]",
"def qIRx(YKHO, SLBp: Vertex) ->... | [
"0.8107937",
"0.78201157",
"0.7657665",
"0.7614599",
"0.75173444",
"0.7405185",
"0.72512496",
"0.7250671",
"0.7135903",
"0.696029",
"0.68940914",
"0.6863059",
"0.6817236",
"0.6801096",
"0.67971486",
"0.6792725",
"0.6792059",
"0.6783503",
"0.67832583",
"0.6774278",
"0.6767611"... | 0.6995265 | 9 |
Returns all the vertices in the graph. | def iXlf(YKHO):
return YKHO.__vertices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel",
"def EBww(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return (YKHO.graph.vertex(YRbF) for YRbF in Ni9Y(0, ts4V))",
"def iXlf(pNZh):\n return rrLg.vertices(pNZh)",
"def iXlf(YKHO):\n re... | [
"0.85986817",
"0.85451615",
"0.85089356",
"0.8404504",
"0.8404504",
"0.83619624",
"0.83619624",
"0.83619624",
"0.83619624",
"0.83619624",
"0.82981026",
"0.8147745",
"0.8123281",
"0.81176436",
"0.8074329",
"0.8037125",
"0.80271345",
"0.8012524",
"0.8005262",
"0.80016583",
"0.7... | 0.7763611 | 41 |
Returns the degree for the given vertices. | def tjON(pNZh, Ty9i):
assert isinstance(Oa1e, D277)
return len(pNZh.adjacent_nodes(Ty9i)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjON(pNZh, SLBp):\n return rrLg.degree(pNZh, SLBp)",
"def e1dO(YKHO, SLBp=None):\n if SLBp == None:\n _IXK = []\n for SLBp in YKHO.__graph_dict.keys():\n _IXK.append((SLBp, len(YKHO.__graph_dict[SLBp])))\n return _IXK\n else:\n return len(YKHO.__graph_dict[SLBp... | [
"0.785104",
"0.7838434",
"0.7585829",
"0.74663836",
"0.7358792",
"0.7285905",
"0.71289605",
"0.7016007",
"0.7014449",
"0.695542",
"0.69251215",
"0.6829302",
"0.68109924",
"0.67531574",
"0.6695763",
"0.66102386",
"0.6608923",
"0.6588333",
"0.6584816",
"0.65549964",
"0.65325534... | 0.67190415 | 14 |
Make matrix from tridiagonal representation. | def AnoD(LSh8, A2lD, CN9P):
return oyIN.diag(LSh8, -1) + oyIN.diag(A2lD, 0) + oyIN.diag(CN9P, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CcYM(b8V_, V91P):\n return A2lD(b8V_) + A2lD(V91P, k=-1) + A2lD(V91P, k=1)",
"def AnoD(ywwl, NdJu, oUkJ, KFAJ, nIyG, r8hN, vC9B, P6bq):\n b8V_ = [NdJu] + (ywwl - 1) * [r8hN] + [nIyG]\n LSh8 = (ywwl - 1) * [vC9B] + [KFAJ]\n CN9P = [oUkJ] + (ywwl - 1) * [P6bq]\n return o7sj.diags(diagonals=[b8V_... | [
"0.7535372",
"0.7498613",
"0.65762806",
"0.64888906",
"0.617688",
"0.6171834",
"0.61294806",
"0.6054171",
"0.60404396",
"0.6029566",
"0.6018166",
"0.59896046",
"0.598504",
"0.59348834",
"0.5920974",
"0.5915269",
"0.5905557",
"0.5893614",
"0.58832043",
"0.588267",
"0.586046",
... | 0.66006947 | 2 |
Build a matrix tensor of num_cols copies of a vector. | def krbc(he6J, ulBT):
NwL4 = he6J.get_shape()[0]
wQzQ = ZylS.tile(he6J, [ulBT])
Zppu = ZylS.reshape(wQzQ, oyIN.array([ulBT, NwL4]))
return ZylS.transpose(Zppu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ek_g(iArr: np.ndarray):\n exwG = LXiw(len(iArr))\n SppC = oyIN.zeros((exwG, exwG))\n ewCu = 0\n for rdlD in range(exwG - 1):\n SppC[rdlD][rdlD + 1:] = iArr[ewCu:ewCu + exwG - rdlD - 1]\n ewCu += exwG - rdlD - 1\n return SppC",
"def CHVk(Ty9i):\n r8hN = ZylS.tile(Ty9i, [1, Ty9i... | [
"0.66430676",
"0.6560489",
"0.6447653",
"0.621069",
"0.61384404",
"0.6125772",
"0.60956323",
"0.60614073",
"0.6036303",
"0.60348845",
"0.6009627",
"0.60066926",
"0.59942603",
"0.59377635",
"0.5903106",
"0.5861596",
"0.58377206",
"0.5835246",
"0.58142084",
"0.5802983",
"0.5785... | 0.71046317 | 0 |
Split the given URL into the scheme, host, port, and path. | def hfK9(bD7m, UST4=True):
bD7m = bD7m.strip()
U5Jc = KVWQ(bD7m)
ht58 = U5Jc[0]
if isinstance(ht58, bytes):
pmON = Hfci((b'', b'') + U5Jc[2:]).decode()
KcEq = U5Jc[1].decode()
else:
pmON = Hfci(('', '') + U5Jc[2:])
KcEq = U5Jc[1]
if ':' in KcEq:
KcEq, bIwZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLhg(bD7m):\n ht58, RYr6, pmON, xDcj, vBtp = NoPH(bD7m)\n xDcj = _Ibt(xDcj)\n return (ht58, RYr6, pmON, xDcj, vBtp)",
"def TLhg(bD7m):\n mLim, wOmD = bD7m.split(':', 1)\n wOmD = wOmD[2:].split('/', 1)\n KcEq, j8eK = (wOmD[0], wOmD[1]) if len(wOmD) == 2 else (wOmD[0], '')\n return (mLim, ... | [
"0.8281986",
"0.81754595",
"0.80938894",
"0.77390766",
"0.76377046",
"0.7538336",
"0.75178695",
"0.7435505",
"0.7312586",
"0.7304009",
"0.7234126",
"0.7195602",
"0.7058444",
"0.7026357",
"0.6963782",
"0.69353473",
"0.6908062",
"0.6819325",
"0.6814496",
"0.6790341",
"0.6781478... | 0.6670495 | 22 |
Calculation of IoU based on two boxes tensor, | def i0TK(knvf, IkxF):
ywwl = knvf.size(0)
E3D9 = IkxF.size(0)
IIuJ = knvf.unsqueeze(1).expand(-1, E3D9, -1)
FGpK = IkxF.unsqueeze(0).expand(ywwl, -1, -1)
D5g7 = ht2j.max(IIuJ[:, :, :2], FGpK[:, :, :2])
FohR = ht2j.min(IIuJ[:, :, 2:], FGpK[:, :, 2:])
RA_F = FohR - D5g7
RA_F[RA_F < 0] = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0TK(knvf, IkxF):\n ywwl = knvf.size(0)\n E3D9 = IkxF.size(0)\n IIuJ = knvf.unsqueeze(1).expand(-1, E3D9, -1)\n FGpK = IkxF.unsqueeze(0).expand(ywwl, -1, -1)\n D5g7 = ht2j.max(IIuJ[:, :, :2], FGpK[:, :, :2])\n FohR = ht2j.min(IIuJ[:, :, 2:], FGpK[:, :, 2:])\n RA_F = FohR - D5g7\n RA_F[R... | [
"0.83879703",
"0.8327716",
"0.8295763",
"0.82921755",
"0.8258157",
"0.8258157",
"0.8258157",
"0.8258157",
"0.82388055",
"0.8196603",
"0.81476825",
"0.81475735",
"0.81183964",
"0.8039732",
"0.8038552",
"0.8024413",
"0.8024191",
"0.80089754",
"0.7997814",
"0.7997814",
"0.799002... | 0.84506905 | 0 |
Get the mean number of messages sent per season | def JWlQ(nPrm):
Xg1X = []
for bySB in nPrm['features']:
Xg1X.append(len(bySB[0]))
return Xg1X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnp2(nPrm):\n return nPrm.groupby('time.season').mean()",
"def pvcD(YKHO):\n nPrm = oyIN.arange(12)\n WXkz = oyIN.arange(15, 360, 30)\n tk32 = YKHO._create_cube(nPrm, WXkz)\n Aofo = BWxx(tk32, 'mean')\n aEqx = oyIN.array([3.0, 6.0, 9.0])\n Qhng(Aofo.data, aEqx)",
"def OuOL():\n rLdf... | [
"0.6823924",
"0.6453932",
"0.63495433",
"0.63345927",
"0.6235194",
"0.6187222",
"0.61856157",
"0.61428523",
"0.6117355",
"0.6074274",
"0.60497195",
"0.6034446",
"0.5972073",
"0.59620446",
"0.5910119",
"0.5905739",
"0.58887935",
"0.5884906",
"0.5854949",
"0.5838471",
"0.583638... | 0.0 | -1 |
Queues the message to be sent out. | def WdaX(YKHO, JSoq, Bjux, u5tN=Ghs7):
YKHO.__lock__.acquire(True)
YKHO.__send_message_queue__.put([JSoq, Bjux, u5tN])
YKHO.__lock__.release() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGq6(YKHO, gGq6, Ol8d):\n YKHO.client.send(gGq6, Ol8d.encode())",
"def WdaX(YKHO, Ol8d):\n YKHO.message_queue.put(Ol8d)",
"def Lsrz(YKHO, Ol8d):\n try:\n YKHO.send_queue.put(Ol8d)\n YKHO.bt_message_sent.wait()\n except:\n YKHO.bt_teardown.set()\n if YKHO.debug_protoc... | [
"0.7723109",
"0.7478732",
"0.72954416",
"0.7266703",
"0.7264787",
"0.7245655",
"0.7221551",
"0.7041916",
"0.70149684",
"0.69611675",
"0.69611675",
"0.68597656",
"0.6774056",
"0.6774056",
"0.6774056",
"0.67670584",
"0.6764084",
"0.674388",
"0.67368716",
"0.6689704",
"0.6627931... | 0.0 | -1 |
Return the angle normalized between [pi, pi]. | def HRC6(lbHk):
lbHk = lbHk % (2 * oyIN.pi)
if (isinstance(lbHk, int) or isinstance(lbHk, float)) and lbHk > oyIN.pi:
lbHk -= 2 * oyIN.pi
elif isinstance(lbHk, oyIN.ndarray):
lbHk[lbHk > oyIN.pi] -= 2 * oyIN.pi
return lbHk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YylR):\n HBfW = epAf.fmod(YylR, epAf.pi)\n if HBfW < 0.0:\n HBfW += epAf.pi\n return HBfW",
"def zeLp(YylR):\n return (YylR % (2.0 * epAf.pi) + 2.0 * epAf.pi) % (2.0 * epAf.pi)",
"def KcpZ(YKHO, YylR):\n YylR = epAf.fmod(YylR, 2 * epAf.pi)\n if YylR < -epAf.pi:\n YylR +... | [
"0.7943579",
"0.7892556",
"0.7855013",
"0.77710915",
"0.7765517",
"0.7751364",
"0.77418154",
"0.77418154",
"0.7701567",
"0.7701567",
"0.7675435",
"0.76752627",
"0.7670296",
"0.7670296",
"0.76142573",
"0.76114386",
"0.7566167",
"0.75577116",
"0.7520742",
"0.75130653",
"0.75130... | 0.0 | -1 |
Capture an enemy pawn en passant and assert that this move is determined legal. | def bDnT(YKHO):
YKHO.groups['capture'] = 'x'
YKHO.c.board[4][2] = ('P', False)
YKHO.c.board[4][1] = ('P', True)
YKHO.c.board[3][4] = ('P', True)
YKHO.c.board[3][5] = ('P', False)
YKHO.c.en_passant[not YKHO.c.turn].append((4, 2))
YKHO.groups['dest'] = 'c5'
YKHO.assertEqual(YKHO.c._pawn_ev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceMG(YKHO):\n YKHO.c.board[4][2] = ('P', False)\n YKHO.c.board[4][1] = ('P', True)\n YKHO.c.board[3][4] = ('P', True)\n YKHO.c.board[3][5] = ('P', False)\n YKHO.groups['dest'] = 'c5'\n YKHO.assertRaises(B7WJ, YKHO.c._pawn_evaluator, YKHO.groups)\n YKHO.c.turn = False\n YKHO.groups['dest... | [
"0.72449064",
"0.67165184",
"0.66641",
"0.6434916",
"0.6350819",
"0.6299243",
"0.6238616",
"0.62352735",
"0.62163186",
"0.6184005",
"0.6180703",
"0.60882187",
"0.6087984",
"0.60878444",
"0.60829693",
"0.60804963",
"0.6059104",
"0.60390645",
"0.60149515",
"0.6000856",
"0.59827... | 0.67702913 | 1 |
Function for getting a user object given the user id. | def bt8D(uJjO):
return cuiw.query(mv1M).filter_by(id=uJjO).one() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(uJjO):\n CBIr = mv1M.objects.get_or_404(id=uJjO)\n return CBIr",
"def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBIr",
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def bt8D(uJjO):\n return mv1M.query.get(uJjO)",
"def TKWP(uJjO):\n return mv1M.query.get(uJjO... | [
"0.8896681",
"0.8814893",
"0.8706732",
"0.8695905",
"0.867619",
"0.86593604",
"0.8658098",
"0.86128414",
"0.85945964",
"0.85687697",
"0.85633886",
"0.8528837",
"0.8516998",
"0.8507843",
"0.8492104",
"0.8492104",
"0.8492104",
"0.8492104",
"0.8490557",
"0.84839904",
"0.84839904... | 0.81778693 | 72 |
Function for getting the user id for the given email. If the user id cannot be found, returns None. | def kS6g(D3lj):
try:
CBIr = cuiw.query(mv1M).filter_by(email=D3lj).one()
return CBIr.id
except:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ad9r(D3lj):\n try:\n CBIr = wlrV.query(mv1M).filter_by(email=D3lj).one()\n return CBIr.ident\n except:\n return None",
"def JpA3(YKHO, D3lj):\n TD4W = YKHO.get_all_user_accounts()\n for MBgB in TD4W:\n if MBgB['email'] == D3lj:\n return MBgB['id']\n retur... | [
"0.8747085",
"0.87155354",
"0.8705965",
"0.8678618",
"0.8658004",
"0.861211",
"0.85972726",
"0.8522522",
"0.85112107",
"0.8502335",
"0.8501099",
"0.8477398",
"0.8456694",
"0.84560287",
"0.8447539",
"0.8447539",
"0.8447539",
"0.8447539",
"0.8447539",
"0.8447539",
"0.8447539",
... | 0.8636505 | 5 |
Returns a json response with the given message and code. response = make_json_response("Invalid state", 401) | def WKUg(Ol8d, Wxnj):
geh0 = Yxsy(qQXR.dumps(Ol8d), Wxnj)
geh0.headers['Content-Type'] = 'application/json'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBuW(Ol8d, Wxnj=404):\n return (qQXR.dumps({'success': False, 'error': Ol8d}), Wxnj)",
"def G3KB(Wxnj, Ol8d):\n geh0 = pz3A({'message': Ol8d})\n geh0.status_code = Wxnj\n return geh0",
"def zGZ6(JBvl, Ol8d):\n geh0 = pz3A({'status': JBvl, 'message': Ol8d})\n geh0.status_code = JBvl\n r... | [
"0.7848198",
"0.78028876",
"0.7573089",
"0.7533234",
"0.7500797",
"0.74509066",
"0.7434134",
"0.7396008",
"0.73683506",
"0.73223215",
"0.73134726",
"0.7286452",
"0.7195513",
"0.71900135",
"0.71781945",
"0.71741366",
"0.7170992",
"0.71573454",
"0.71573454",
"0.71573454",
"0.71... | 0.654757 | 78 |
Retrieves and parses the the command line arguments created and defined by argparse module. | def agXF():
wvEv = j1Jz.ArgumentParser()
i9Wa.add_argument('--dir', type=str, default='pet_images/', help='path to folder of pet_images')
wvEv.add_argument('--arch', type=str, default='vgg', help='chosen model')
wvEv.add_argument('--dogfile', type=str, default='dognames.txt', help='text file that has do... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmRs():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--input')\n wvEv.add_argument('--output')\n wvEv.add_argument('--pkgproj_command')\n wvEv.add_argument('--pkgproj_input')\n wvEv.add_argument('--pkgproj_output')\n wvEv.add_argument('--version_file')\n wvEv.add_argument('--buil... | [
"0.7945958",
"0.7930829",
"0.79184026",
"0.78839326",
"0.7882851",
"0.7873641",
"0.7867771",
"0.7823171",
"0.7821821",
"0.78178984",
"0.78028023",
"0.77991813",
"0.77966857",
"0.77918094",
"0.77841794",
"0.7782025",
"0.7738831",
"0.7738831",
"0.77371067",
"0.7732405",
"0.7731... | 0.0 | -1 |
Turns a vector of lengths into a boolean mask | def U5SJ(bwM0, BcCR):
bwM0 = ZylS.convert_to_tensor(bwM0)
assert bwM0.get_shape().ndims == 1
B_11 = ZylS.expand_dims(ZylS.range(BcCR), 0) < ZylS.expand_dims(bwM0, 1)
return B_11 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuwY(Fbjb):\n H5Km = x0NN([XTiz.ones((aPd6,), dtype='i') for aPd6 in Fbjb])\n H5Km[H5Km < 0] = 0\n return H5Km.reshape((-1,)) >= 1",
"def X3pp(Fbjb: Tensor, wzH_: int, VGCm: bool=False) -> ht2j.BoolTensor:\n if Fbjb.ndim != 1:\n raise TypeError(f'Expect lengths to be a vector, but got {Fbj... | [
"0.7750609",
"0.7238285",
"0.71437323",
"0.69036007",
"0.69036007",
"0.6853109",
"0.67309874",
"0.6662824",
"0.6660125",
"0.66392326",
"0.6630996",
"0.6630996",
"0.6630996",
"0.65938985",
"0.65913796",
"0.6555078",
"0.65425843",
"0.65229744",
"0.6513872",
"0.645233",
"0.64362... | 0.65025055 | 19 |
Extracts a unique query parameter from the request. | def atFX(YKHO, mWFP):
if not YKHO._params:
YKHO._params = SwjJ.parse_qs(YKHO._path[YKHO._path.find('?') + 1:])
WdDP = YKHO._params.get(mWFP, [])
if len(WdDP) == 1:
return WdDP[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nv7O(Emd4, QePW):\n return QePW.GET",
"def C7Gr(tvqc, SK6d):\n if tvqc and 'queryStringParameters' in tvqc and tvqc['queryStringParameters']:\n kBZL = tvqc['queryStringParameters'].get(SK6d)\n bo34.info('Found query parameter %s: %s', SK6d, kBZL)\n return kBZL\n return None",
... | [
"0.6949757",
"0.6926829",
"0.6881841",
"0.6876467",
"0.66907805",
"0.66611767",
"0.66532874",
"0.6625178",
"0.65759563",
"0.64908665",
"0.6409069",
"0.63970166",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6379838",
"0.6371376... | 0.7212824 | 0 |
Constructs a ResNet50 model. | def TxHY(jTqs, HPkd, hWkV, XQws, KdSM=2, d7YE=5, DSRo=True, mL4f=False):
C3ST = z18S(jTqs, MF6R, [3, 4, 6, 3], n_head=HPkd, attention_type=hWkV, shot_mode=XQws, num_way=KdSM, num_shot=d7YE, pos_encoding=DSRo, pretrained=mL4f)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()",
"def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet... | [
"0.7942998",
"0.7562238",
"0.7498587",
"0.74903464",
"0.748225",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.74686694",
"0.7455879",
"0.7455879",
"0.7453793",
"0.7451919",
"0.74174935",
"0.7413509",
... | 0.0 | -1 |
Map ISIN code to bond name. | def cIEF():
i3AI = 'C:\\Users\\steven.zhang\\Desktop\\data conversion\\CLO Bond'
wSG7 = ['12229', '12366', '12528', '12548', '12630', '12732', '12733']
Rr9Z = {}
for HVIF in wSG7:
jeoV = Hy7s.path.join(i3AI, 'transactions {0} no initial pos.xls'.format(HVIF))
hlel, rSnf = ljIy(jeoV)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brUZ(YKHO, Nqlg):\n R2lq, zFiD = Nqlg.pop(0)\n YxTt = ZbWC.match('^\\\\[35B\\\\](\\\\w{12})$', zFiD)\n if YxTt:\n return {'isin': YxTt.group(1)}\n else:\n raise qX0N(3, YKHO._language, R2lq, 'ISIN', '[35B]<alphanum>{12}')",
"def RRJK(htX1):\n VsJD = {}\n lCYO = 'BO_'\n BFqN... | [
"0.55861616",
"0.555691",
"0.5514009",
"0.55078894",
"0.5456186",
"0.52760684",
"0.5260868",
"0.52235174",
"0.5216074",
"0.52067834",
"0.51135397",
"0.5104819",
"0.503551",
"0.50319624",
"0.5006117",
"0.5004378",
"0.4999138",
"0.49969858",
"0.49951115",
"0.4962195",
"0.492283... | 0.715562 | 0 |
List of codons according to full_rf_table for counting (PRIVATE). | def peZr(Ejpd):
sndq = Ejpd.get_full_rf_table()
VhLW = []
for YRbF, G1Hx in enumerate(sndq):
if isinstance(G1Hx, int):
yKcO = G1Hx
try:
Os4s = int(sndq[YRbF + 1])
except IndexError:
Os4s = yKcO + 3
uzMd = str(Ejpd[yKcO:O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1pA():\n sbKV = WVlS()\n kZEY = []\n KAH6 = {}\n for Ouxc in sbKV:\n for PFFG in Ouxc:\n KAH6[PFFG] = Ouxc.count(PFFG)\n kZEY.append(KAH6)\n return kZEY",
"def WVlS():\n d2mg = pths.get_all_entries()\n yHVO = []\n for bTKY in d2mg:\n i0XO = bTKY['DNA_s... | [
"0.6555737",
"0.60465527",
"0.6033764",
"0.5762398",
"0.57271755",
"0.5716014",
"0.5701996",
"0.5638152",
"0.5580871",
"0.5564425",
"0.55501866",
"0.55393857",
"0.5512462",
"0.5445582",
"0.54336125",
"0.542277",
"0.5419113",
"0.5396316",
"0.53962564",
"0.5368029",
"0.53151876... | 0.5807897 | 3 |
Creates a bank with an empty blockchain and an empty mempool. | def FIMM(YKHO) -> None:
YKHO.mempool = list()
YKHO.blockchain = ClaT
YKHO.utxo = list()
YKHO.hash_to_blocks = dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nDnl(YKHO, a70H, Z31E, VIXL, Z5kt, JvcJ=None, **YSA3):\n if not YSA3.has_key('bank_country_code'):\n YSA3['bank_country_code'] = 'k'\n if not YSA3.has_key('bank_code'):\n YSA3['bank_code'] = '1234'\n if not YSA3.has_key('branch'):\n YSA3['branch'] = '12345'\n if not YSA3.has_ke... | [
"0.64774054",
"0.6450201",
"0.6436345",
"0.61224115",
"0.60579354",
"0.6002071",
"0.5955175",
"0.58400774",
"0.5787712",
"0.5758278",
"0.5735285",
"0.56842226",
"0.5655303",
"0.5637622",
"0.5612506",
"0.5593743",
"0.5568392",
"0.5558819",
"0.5556249",
"0.5550129",
"0.5545445"... | 0.0 | -1 |
This function inserts a transaction into the mempool that creates a single coin out of thin air. Instead of a signature, this transaction includes a random string of 48 bytes (so that every two creation transactions are different). generate these random bytes using secrets.token_bytes(48). We assume only the bank calls... | def Uryv(YKHO, pan_: PublicKey) -> None:
GKa0 = FXSn.token_bytes(48)
PhgZ = T74E(pan_, None, GKa0)
YKHO.mempool.append(PhgZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N6Wa():\n L8Py = ['a', 'b', 'c']\n return 'transaction ' + L8Py[tuKI.randint(0, len(L8Py)) - 1] + ' ' + str(tuKI.randint(1, 100))",
"def LQIR(eVVj, Q1g5, X7fk, _amA, u2OO, ulWc, e5Qp, woha, PcZo):\n if _amA is None or u2OO == 0:\n return False\n return jIJh(eVVj, Q1g5, X7fk, 0, _amA, u2OO,... | [
"0.68181074",
"0.6478825",
"0.64628446",
"0.6313739",
"0.63092387",
"0.629662",
"0.6259246",
"0.6258041",
"0.6256504",
"0.62515837",
"0.62455124",
"0.62386274",
"0.6237654",
"0.6218167",
"0.6129493",
"0.61214584",
"0.61007345",
"0.6096359",
"0.6095531",
"0.60717",
"0.60696137... | 0.7147468 | 0 |
Return Position of item with minimum key. | def CTDF(YKHO):
if YKHO.is_empty():
raise rWmY('Priority queue is empty')
wuLw = YKHO._data.first()
ZAda = YKHO._data.after(wuLw)
while ZAda is not None:
if ZAda.element() < wuLw.element():
wuLw = ZAda
ZAda = YKHO._data.after(ZAda)
return wuLw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z23B(YKHO):\n return YKHO.keys[YKHO.pq[1]]",
"def min(YKHO):\n return YKHO.keys[0]",
"def min(YKHO):\n return YKHO.key if YKHO.left is None else YKHO.left.min()",
"def KKDF(YKHO):\n WKvO = sorted(YKHO.d.iteritems(), key=lambda WKvO: WKvO[1], reverse=False)\n if len(WKvO) > 0:\n retu... | [
"0.78199023",
"0.7545944",
"0.7522361",
"0.7401827",
"0.73896796",
"0.7325942",
"0.7256767",
"0.72204596",
"0.72204596",
"0.7216476",
"0.7212183",
"0.7209588",
"0.71947247",
"0.71762717",
"0.7172159",
"0.71687466",
"0.70864755",
"0.70405924",
"0.70405924",
"0.70405924",
"0.69... | 0.6846287 | 37 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO) -> int:\n return len(YKHO._priority_queue)",
"def yAGA(YKHO) -> int:\n return qe4Y.get(YKHO, 'queue_count')",
"def cPAc(YKHO):\n return len(YKHO.queue)",
"def qiUe(YKHO):\n return J8uC.SBQueue_GetNumPendingItems(YKHO)",
"def jBJp(YKHO) -> int:\n return len(YKHO.__queue)",
"d... | [
"0.8038811",
"0.75069225",
"0.7394091",
"0.73748565",
"0.7289329",
"0.7257381",
"0.7211976",
"0.7170347",
"0.7166441",
"0.7161154",
"0.7118749",
"0.70962137",
"0.70950127",
"0.7078744",
"0.70683295",
"0.7050239",
"0.70467246",
"0.70417297",
"0.7037929",
"0.70354545",
"0.70344... | 0.0 | -1 |
Return but do not remove (k,v) tuple with minimum key. Raise Empty exception if empty. | def min(YKHO):
XP5J = YKHO._find_min()
ZfUD = XP5J.element()
return (ZfUD._key, ZfUD._value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kBvZ(YKHO):\n XP5J = YKHO._find_min()\n ZfUD = YKHO._data.delete(XP5J)\n return (ZfUD._key, ZfUD._value)",
"def kBvZ(YKHO):\n XP5J = YKHO._find_min()\n ZfUD = YKHO._data.delete(XP5J)\n return (ZfUD._key, ZfUD._value)",
"def kBvZ(YKHO):\n XP5J = YKHO._find_min()\n ZfUD = YKHO._data.d... | [
"0.72863144",
"0.72863144",
"0.72863144",
"0.71494204",
"0.70696473",
"0.6919108",
"0.6831019",
"0.6733254",
"0.669545",
"0.6690734",
"0.6301656",
"0.6248166",
"0.622588",
"0.6145824",
"0.6139445",
"0.6132492",
"0.6125118",
"0.6125118",
"0.6058193",
"0.60477924",
"0.6015411",... | 0.5479397 | 75 |
Remove and return (k,v) tuple with minimum key. Raise Empty exception if empty. | def kBvZ(YKHO):
XP5J = YKHO._find_min()
ZfUD = YKHO._data.delete(XP5J)
return (ZfUD._key, ZfUD._value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def muZa(YKHO):\n if YKHO._heap_size == 0:\n return (None, None)\n H5ew = YKHO._index_to_key[1]\n BWXx = YKHO._array[1]\n YKHO.remove(H5ew)\n return (H5ew, BWXx)",
"def kBvZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Priority queue is empty.')\n YKHO._swap(0, len(YKHO._data) - ... | [
"0.76728123",
"0.7380404",
"0.71756625",
"0.7166372",
"0.71117806",
"0.70819443",
"0.6839541",
"0.68099976",
"0.6722103",
"0.6709064",
"0.66328233",
"0.66328233",
"0.66243196",
"0.66131127",
"0.6610305",
"0.6609763",
"0.6591582",
"0.6589931",
"0.6582039",
"0.6550646",
"0.6541... | 0.7442381 | 1 |
Checks whether the RNA sequence contains a poly A tail of 50 adenines. | def wcvf(YKHO):
return True if YKHO.sequence.endswith('A' * 50) else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LnJ9(Q6uT):\n ToxW = Q6uT.upper()\n sum = ToxW.count('A') + ToxW.count('U') + ToxW.count('G') + ToxW.count('C')\n return sum == len(ToxW)",
"def ZeIe(zFiD):\n return len(zFiD) == 16",
"def xOWA(YKHO):\n return YKHO.lon_points[-1] > 180.0",
"def RIUO(shtX):\n if shtX[1] < 0:\n ret... | [
"0.5824195",
"0.57864666",
"0.5784541",
"0.57188666",
"0.57126135",
"0.56852776",
"0.56852776",
"0.56311595",
"0.5609288",
"0.56077045",
"0.5598606",
"0.5597759",
"0.55876815",
"0.5586115",
"0.55245703",
"0.54890114",
"0.5470568",
"0.5469528",
"0.54676765",
"0.54580134",
"0.5... | 0.83236974 | 0 |
Method takes care of removal of SQLAlchemy Session | def fBJ8(YKHO):
S8SU.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yi3Z(YKHO):\n YKHO.__orm.remove_session()",
"def KyVt(AJ5d):\n S8SU.close()",
"def fFx9(YKHO):\n if isinstance(YKHO.__session, MBMI.session.Session):\n YKHO.__session.save()",
"def N0Q8(AJ5d=None):\n ouvA.remove()",
"def fFx9(YKHO):\n YKHO.session.close()",
"def fFx9(YKHO):\n ... | [
"0.8749107",
"0.8211461",
"0.79558796",
"0.79079276",
"0.7906159",
"0.7906159",
"0.782397",
"0.77981716",
"0.7770431",
"0.76886773",
"0.7612564",
"0.758929",
"0.758929",
"0.758929",
"0.758929",
"0.758929",
"0.758929",
"0.758929",
"0.75457877",
"0.73760796",
"0.73503387",
"0... | 0.0 | -1 |
Test that, when there are no pois, we get an empty list back for the pois/categories endpoint. | def LSrv(YKHO):
RULF = qQXR.loads(YKHO.client.get('%s?lat=44.015225&lng=-123.016873' % gxEw('pois-categories', kwargs={'id': '1'})).content)
BpDp = qQXR.loads(YKHO.expected_no_pois)
YKHO.assertEqual(RULF, BpDp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iqip(YKHO):\n geh0 = YKHO.client.get(gxEw('rango:index'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'There are no categories present.')\n YKHO.assertQuerysetEqual(geh0.context['categories'], [])",
"def iqip(YKHO):\n geh0 = YKHO.client.get(gxEw(YKHO.urlpat_name))\n ... | [
"0.7219757",
"0.72145766",
"0.7213856",
"0.71197987",
"0.70048475",
"0.69464934",
"0.6907618",
"0.676337",
"0.66542256",
"0.6619423",
"0.6605059",
"0.65151125",
"0.6426369",
"0.64033365",
"0.6357945",
"0.63559616",
"0.63461375",
"0.6335181",
"0.62514204",
"0.6203755",
"0.6203... | 0.6858447 | 7 |
Return the API. Use version and/or fragment to limit the routes returned. | def IC86(DpZH='', vBtp=''):
bIwZ = Hy7s.environ.get('SERVER_PORT', '5001')
iAwL = [PsCT for PsCT in BCYG.default_app().routes if DpZH in PsCT.rule and vBtp in PsCT.rule]
return {PsCT.rule: dict(url=f'http://www.quality-time.example.org:{bIwZ}{PsCT.rule}', method=PsCT.method, description=PsCT.callback.__doc_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IC86(YKHO):\n return YKHO.get('/api')",
"def ZC3a(YKHO):\n pass",
"def IC86(YKHO):\n return YKHO.request('GET', '/api/' + YKHO.username)",
"def nNXP(YKHO):\n return YKHO.generator.api",
"def nNXP(YKHO):\n return YKHO.__api",
"def NMoC(YKHO):\n return {'version': FvyV[-1], 'api_versi... | [
"0.75588834",
"0.6965936",
"0.6894162",
"0.6864463",
"0.6773958",
"0.6729172",
"0.6721213",
"0.6721213",
"0.6706206",
"0.66030025",
"0.65177184",
"0.6502526",
"0.6485557",
"0.6475924",
"0.6457679",
"0.63543755",
"0.6350086",
"0.6346597",
"0.6333484",
"0.62883097",
"0.6282193"... | 0.6769468 | 5 |
Gets information from the coinmarketcap API's ticker endpoint. Only valid coinmarketcap coin IDs can be used, however you can use a symbol or name if you pass it through name_info([symbol or name])['id']. | def SYlA(YKHO, dEF2='', qoqK='', yKcO='', a8Pe=''):
bD7m = '{}{}/'.format(YKHO.TICKER_URL, dEF2) if dEF2 else YKHO.TICKER_URL
NArs = {'limit': qoqK, 'start': yKcO, 'convert': a8Pe}
return YKHO.session.get(bD7m, params=NArs).json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ea49(YKHO):\n try:\n NArs = {'access_key': YKHO.api_key}\n wcXs = G4JS.get(f'https://api.marketstack.com/v1/tickers/{YKHO.ticker}', NArs)\n eqVi = wcXs.json()\n print(eqVi)\n return eqVi\n except Exception as e:\n print(tTpl)",
"async def fetch_ticker(YKHO, o61... | [
"0.7345334",
"0.70589733",
"0.7021026",
"0.69416815",
"0.69197357",
"0.68816817",
"0.68379503",
"0.6831714",
"0.6756993",
"0.6698559",
"0.66673243",
"0.6629771",
"0.66284204",
"0.6623119",
"0.6623082",
"0.66105026",
"0.65580094",
"0.65407985",
"0.6521199",
"0.6497344",
"0.647... | 0.6375789 | 22 |
Render the homepage template on the / route | def C_QL():
return TvZl('home/index.html', title='Siluria Technologies') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return T... | [
"0.85673344",
"0.8563182",
"0.8539366",
"0.8539366",
"0.8535036",
"0.85138595",
"0.85138595",
"0.848972",
"0.8456827",
"0.84357065",
"0.8424191",
"0.8424191",
"0.8424191",
"0.8424191",
"0.8424191",
"0.8415442",
"0.8412444",
"0.833204",
"0.83252907",
"0.8321982",
"0.8313638",
... | 0.8189562 | 86 |
return target temp as a float or None if no target is set. | def ICVX(YKHO):
ycBG = YKHO._call_response('d')
if ycBG == 'no target set':
return None
return float(ycBG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6n4(YKHO) -> h8nf[float]:\n if 'target_temperature' in YKHO._state and YKHO._state['target_temperature'] not in ['NULL', None]:\n return float(YKHO._state['target_temperature'])\n return None",
"def T6n4(YKHO) -> h8nf[float]:\n if YKHO._state is None:\n return None\n return YKHO._s... | [
"0.8335617",
"0.77282774",
"0.7524923",
"0.74895287",
"0.74892765",
"0.74342567",
"0.7406901",
"0.7227984",
"0.7227026",
"0.7209878",
"0.7199912",
"0.7199912",
"0.71748704",
"0.711431",
"0.7106777",
"0.70021856",
"0.69942147",
"0.6958117",
"0.694836",
"0.69018865",
"0.6893093... | 0.8530366 | 0 |
Get current user's active items. | def NMoC(YKHO):
B2Dn = QePW.args.get('page', 1, type=int)
fNWj = kLxY.query.with_parent(Oa1e.current_user).filter_by(done=False).paginate(B2Dn, per_page=wk5E.config['TODOISM_ITEM_PER_PAGE'])
DumB = fNWj.items
jvSB = nKyW('.items', page=B2Dn, _external=True)
THkp = None
if fNWj.has_prev:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iOuf(YKHO):\n return YKHO.filter(is_active=True)",
"def JQcR(YKHO):\n return YKHO._active_item",
"def NMoC(YKHO):\n qIxc = YKHO.active_users_parser.parse_args()\n return mv1M.query.filter(mv1M.active == bool(qIxc.get('active', 1))).all()",
"def k66M(YKHO):\n return mv1M.objects.filter(is_a... | [
"0.69484884",
"0.66779494",
"0.6674762",
"0.66725945",
"0.6613054",
"0.65664285",
"0.65232944",
"0.6434376",
"0.6434376",
"0.6378652",
"0.63371754",
"0.63371754",
"0.63371754",
"0.6317652",
"0.6301064",
"0.62236655",
"0.62067777",
"0.61960834",
"0.6181807",
"0.6154837",
"0.61... | 0.57143104 | 73 |
Calculate parent cell p's multipole array based on child cell c's multipoles. | def Vmiq(XP5J, Z9rn, JnVq):
raise NotImplementedError('M2M not implemented') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZyf(BZ33, XP5J, JnVq, K3B_, lU9F):\n if JnVq[XP5J].nleaf >= lU9F:\n for Z9rn in range(8):\n if JnVq[XP5J].nchild & 1 << Z9rn:\n lZyf(BZ33, JnVq[XP5J].child[Z9rn], JnVq, K3B_, lU9F)\n for vC9B in uicp(JnVq[XP5J].child[Z9rn], JnVq, lU9F):\n J... | [
"0.65681815",
"0.6402782",
"0.6062594",
"0.6027572",
"0.5936957",
"0.5825146",
"0.5650706",
"0.55218226",
"0.54917127",
"0.54769665",
"0.5459558",
"0.5364795",
"0.5358789",
"0.5330017",
"0.53175634",
"0.52864003",
"0.52699935",
"0.5209721",
"0.5209542",
"0.5176074",
"0.516708... | 0.61205536 | 2 |
Return the distance array between each element in the array and the point. | def Ayfi(qw7D, AU8u):
return XTiz.sqrt((qw7D[0] - AU8u.x) ** 2 + (qw7D[1] - AU8u.y) ** 2 + (qw7D[2] - AU8u.z) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FKh4(qw7D, XP5J):\n Aj9C = []\n for YRbF in range(len(qw7D)):\n Aj9C.append(Oa1e.distance(qw7D[YRbF], XP5J))\n return oyIN.array(Aj9C)",
"def zG70(YKHO):\n return [oyIN.sum(oyIN.multiply(YKHO.wi, oyIN.power(abs(oyIN.subtract(YKHO.centroids, Ty9i)), YKHO.ri)), axis=1) for YRbF, Ty9i in enum... | [
"0.7605967",
"0.7230858",
"0.7173004",
"0.7135438",
"0.71036863",
"0.7040178",
"0.6890059",
"0.68749356",
"0.6858162",
"0.6788461",
"0.6766482",
"0.6738234",
"0.6727359",
"0.6639034",
"0.66218674",
"0.66144",
"0.6540006",
"0.6537384",
"0.65319",
"0.6456336",
"0.64494634",
"... | 0.7711335 | 0 |
Print out the relative err in l2 norm. | def fwnX(kwaS, _Q1c):
XObx = XTiz.sqrt(sum((kwaS - _Q1c) ** 2) / sum(kwaS ** 2))
print('L2 Norm error: {}'.format(XObx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0xM(YKHO, o3Uj, LCkP):\n return oyIN.linalg.norm(oyIN.subtract(o3Uj, LCkP))",
"def H_DF(YKHO) -> oyIN.float:\n return oyIN.sqrt(1 / (YKHO.n_temporal * YKHO.n_spatial)) * oyIN.linalg.norm(YKHO.u_exact - YKHO.u_numerical)",
"def rrz_(YKHO):\n return oyIN.linalg.norm(YKHO.Lw_true - YKHO.Lw_est, ord=... | [
"0.6717477",
"0.66105235",
"0.6541617",
"0.65356433",
"0.65179527",
"0.6499946",
"0.6432828",
"0.6432828",
"0.6425271",
"0.63517666",
"0.63172543",
"0.62750804",
"0.6259623",
"0.624316",
"0.61908793",
"0.6144687",
"0.61257255",
"0.6084599",
"0.6041834",
"0.60189646",
"0.59967... | 0.7398211 | 0 |
Close all registered queues. This should be overridden to close any additional queues the task holds which aren't registered. | def DDI8(YKHO):
for VOlW in YKHO.intervals:
VOlW.handler = None
for gGq6 in YKHO.sockets:
gGq6.close()
YKHO.quit_queue.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGxU():\n try:\n for gGq6 in rysN:\n if gGq6 is not None:\n gGq6.unbind(GGmw.AF_INET)\n gGq6.close()\n except:\n pass",
"def DDI8(YKHO):\n G9jH.debug('Closing')\n for vexM in YKHO._metric_queues.values():\n vexM.close()\n while any(... | [
"0.80144715",
"0.7686572",
"0.7099653",
"0.7054279",
"0.7033548",
"0.69788456",
"0.6958638",
"0.6943812",
"0.6779146",
"0.6740887",
"0.66292214",
"0.6611885",
"0.658983",
"0.65861887",
"0.6566507",
"0.65592647",
"0.65309787",
"0.6528545",
"0.6474476",
"0.64053375",
"0.6389050... | 0.7267183 | 2 |
Get all objects that meet the criteria set. | def NMoC(YKHO) -> set:
ei4T = set()
cmJd.ForEachObject(lambda MKlR: ei4T.add(Zlc5().get(MKlR)), ' & '.join(('(%s)' % Z9rn for Z9rn in YKHO.__criteria)))
return ei4T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpF9(YKHO, wjLZ: dict) -> list:\n return YKHO.__unwrap_all(super().find_by_criteria(wjLZ))",
"def imK9(YKHO, Bmnf):\n tB6k = Bmnf['object_name']\n lsX7 = Bmnf.get('filters', {}).get('expression')\n if lsX7 is None:\n return set()\n TsVO = YKHO.object_map[tB6k]\n xDcj = TsVO.query\n ... | [
"0.74084544",
"0.69682777",
"0.68369025",
"0.67772937",
"0.67772937",
"0.6741677",
"0.67192966",
"0.65133846",
"0.65055764",
"0.64997905",
"0.6497348",
"0.6497348",
"0.64809245",
"0.63776577",
"0.6335374",
"0.6335374",
"0.6335374",
"0.6335374",
"0.6335374",
"0.6335374",
"0.63... | 0.8028139 | 0 |
Calculates and returns sigma | def WTkW(Csk6, RA_F, rmyT, rizc):
NqE4[rmyT, rizc](Csk6, RA_F)
KCHu = 1
while KCHu < Csk6.shape[0]:
KCHu *= 2
KCHu = KCHu // 2
while KCHu >= 1:
qiKe[int(KCHu / rizc + 1), rizc](Csk6, KCHu)
KCHu = KCHu // 2
return Csk6[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFi8(YKHO):\n KkY2 = rQrC([YKHO.u, YKHO.v, YKHO.w])\n exwG = KkY2.geometric_dimension()\n V6IE = YKHO.calc_pressure()\n jmzt = YKHO.calc_tau(P6bq)\n return jmzt - V6IE * VoC8(exwG)",
"def s2e0(YKHO, NArs=None):\n if NArs is None:\n NArs = YKHO.params\n NmYP = YKHO.get_matrices(NAr... | [
"0.8077643",
"0.78494453",
"0.78334343",
"0.781944",
"0.77871436",
"0.77539283",
"0.77539283",
"0.7747972",
"0.7668178",
"0.759316",
"0.75846934",
"0.7537435",
"0.7537311",
"0.7518089",
"0.7518089",
"0.7516316",
"0.74555385",
"0.738343",
"0.738206",
"0.73774076",
"0.736229",
... | 0.69380873 | 54 |
Ensure that the environment string is valid. | def DA46(sEAN: str) -> bool:
if sEAN in ('local', 'dev', 'prod'):
return True
raise Exception(f"env: {sEAN} is invalid. env must be either 'local', 'dev', or 'prod'") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wPyM() -> None:\n pass",
"def odXH(GikI):\n assert issubclass(GikI.undefined, LTIq), 'undefined must be a subclass of undefined because filters depend on it.'\n assert GikI.block_start_string != GikI.variable_start_string != GikI.comment_start_string, 'block, variable and comment start strings must ... | [
"0.76517314",
"0.73595786",
"0.7013271",
"0.68680537",
"0.6829046",
"0.6825983",
"0.6713277",
"0.6641123",
"0.6606534",
"0.6600558",
"0.6583573",
"0.6533057",
"0.65116173",
"0.6318734",
"0.62930965",
"0.6292014",
"0.6248299",
"0.62471044",
"0.62389374",
"0.62210035",
"0.61552... | 0.6955303 | 3 |
Return a clean dictionary from a JSON body, suitable for a query on MongoDB. | def ikzO(YKHO):
return IguF.json_decode(YKHO.request.body or '{}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y5uB(TBsA):\n try:\n Mjw9 = qQXR.loads(TBsA)\n except ValueError:\n return L3Ha(TBsA)\n return Mjw9",
"def Y5uB(TBsA):\n try:\n Mjw9 = qQXR.loads(TBsA)\n except ValueError:\n return L3Ha(TBsA)\n return Mjw9",
"def fqF2(dlsU):\n return qQXR.loads(dlsU)",
"d... | [
"0.7133031",
"0.7133031",
"0.69258696",
"0.67113",
"0.6668883",
"0.66002136",
"0.6513362",
"0.6374398",
"0.634876",
"0.6327679",
"0.62619317",
"0.62147146",
"0.61977035",
"0.6120565",
"0.59947026",
"0.5982166",
"0.5967857",
"0.5926663",
"0.5907117",
"0.58899844",
"0.5857558",... | 0.65279955 | 6 |
Post a document to the index. This endpoint will accept a document object and index it into the specified index wtih the specified type. | def fqIn(V_s1, XV9O):
try:
or8S = Pe9W.get_index(V_s1)
if or8S is not None:
if or8S[fzBd.DELETED] > 0:
return (qQXR.dumps({'success': False, 'error': 'Index was previously deleted.'}), 500)
if or8S[fzBd.EXPIRE] < ITS7.time():
return (qQXR.dumps... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SPJy(YKHO, d6pt, C13M):\n bD7m = '{url_home}/{index}/{function}'.format(url_home=YKHO.url_elastic, index=d6pt, function='_doc')\n Ylbp = ev_Q.post(bD7m, headers=YKHO.headers, data=C13M)\n return Ylbp",
"def JV8H(YKHO, WOrs, yZn6, nP0Q):\n bo34.debug('post_json(%s, %s, %s)' % (YKHO.indexname, WOrs... | [
"0.7765999",
"0.73301274",
"0.7305882",
"0.71746284",
"0.7091267",
"0.6897677",
"0.68772566",
"0.68737847",
"0.6720834",
"0.65784985",
"0.6562257",
"0.6468002",
"0.6462302",
"0.64284915",
"0.6375525",
"0.63662505",
"0.6263575",
"0.6250535",
"0.6241011",
"0.6207285",
"0.617552... | 0.6447157 | 13 |
Return a copy of this object. | def jth9(YKHO):
return bi20(notes=YKHO.notes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return jth9.deep... | [
"0.9168541",
"0.9166689",
"0.9166689",
"0.9166689",
"0.9166689",
"0.91054934",
"0.9063013",
"0.9063013",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
"0.9055095",
... | 0.0 | -1 |
Returns True if at least one of its contracts is active. | def kSGk(YKHO):
return YKHO.contract_set.active().exists() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO) -> bool:\n return any((WKvO is not None for WKvO in YKHO._constraints))",
"def WZHJ(YKHO):\n return bool(YKHO.get_active_scouts())",
"def ksfB(YKHO):\n return YKHO.course_set.filter(active=True, archiving='t').exists()",
"def ksfB(YKHO) -> bool:\n return YKHO.is_pending() or YKHO.i... | [
"0.74052334",
"0.7106911",
"0.6924169",
"0.68673724",
"0.66279507",
"0.6590974",
"0.649959",
"0.6440055",
"0.6379793",
"0.63583064",
"0.632823",
"0.63170654",
"0.6275545",
"0.6273993",
"0.62471247",
"0.62393916",
"0.6208702",
"0.62040865",
"0.62040865",
"0.6186489",
"0.617296... | 0.84868854 | 0 |
Configures the logging root logger. | def iZ3W(SSpn=False, Ux0P=None, Tuqy='w', q66L=False):
for DCgT in G9jH.root.handlers:
G9jH.root.removeHandler(DCgT)
bo34 = G9jH.getLogger()
if Ux0P and Ux0P.endswith('.gz'):
DCgT = Dj_S(Ux0P, mode=Tuqy)
elif Ux0P:
DCgT = G9jH.FileHandler(Ux0P, mode=Tuqy)
else:
DCgT =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bs4q(YKHO):\n Yco9 = G9jH.getLogger()\n Yco9.setLevel(YKHO.log_level)\n YKHO.log_to_stderr(Yco9)\n YKHO.log_to_file(Yco9)",
"def EsWC(YKHO):\n Yco9 = G9jH.getLogger('')\n Yco9.setLevel(G9jH.DEBUG)\n if YKHO.options.log_file:\n L8wK = G9jH.FileHandler(filename=YKHO.options.log_file... | [
"0.82544637",
"0.79108703",
"0.7873741",
"0.7843485",
"0.7730403",
"0.7720638",
"0.77183145",
"0.77183145",
"0.7709447",
"0.76536196",
"0.76395214",
"0.76280975",
"0.7601444",
"0.7591747",
"0.7569449",
"0.7455233",
"0.740742",
"0.73786026",
"0.7368428",
"0.736344",
"0.7359178... | 0.0 | -1 |
Plot the original RGB image, the binary image (blue sky/cloud) and the histogram | def leai(VXjJ, Ux0P, BZgl, WmtP, X9Rj, Rul3, WbkO, SVNV, SAMx, gwAu):
QrM1.figure(figsize=(16, 5))
hh7H = QrM1.subplot2grid((1, 3), (0, 0), rowspan=1, colspan=1)
fTVC = QrM1.subplot2grid((1, 3), (0, 1), rowspan=1, colspan=1)
AHCW = QrM1.subplot2grid((1, 3), (0, 2), rowspan=1, colspan=1)
hh7H.set_adj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ogbo(LNo8):\n QrM1.figure(figsize=(12, 10), dpi=80)\n QrM1.imshow(LNo8)\n QrM1.show()",
"def eA1E(YKHO):\n QrM1.hist(YKHO.vision.cvImage.image.ravel(), 256, [0, 255])\n QrM1.show()",
"def kj9G(LNo8):\n if len(LNo8.shape) == 2:\n QrM1.imshow(LNo8, cmap='gray')\n else:\n Qr... | [
"0.6818676",
"0.6813427",
"0.68132496",
"0.6731807",
"0.66818106",
"0.6634458",
"0.6568879",
"0.65503645",
"0.65412635",
"0.6479174",
"0.64687586",
"0.64556164",
"0.6455101",
"0.6441475",
"0.643281",
"0.64258605",
"0.64245456",
"0.64115185",
"0.6380388",
"0.63521045",
"0.6343... | 0.64265835 | 15 |
Returns a list of all the files with a given extension in the named directory. | def ePGQ(jNha, YBcr):
for Ux0P in SC2F.iglob(jNha + '**/*.{0}'.format(YBcr), recursive=True):
print(Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYTN(Fst3, TLI7):\n return Z412(TLI7, filter_function=lambda FYKK: FYKK.endswith('.' + Fst3))",
"def _lzz(AGPF, YBcr):\n return k8re.glob(f'{AGPF}/*.{YBcr}')",
"def MY6R(YKHO, AGPF, Fst3):\n AEDU = [eHNT for eHNT in Hy7s.listdir(AGPF) if Hy7s.path.isfile(Hy7s.path.join(AGPF, eHNT)) and eHNT.endswi... | [
"0.8850191",
"0.8752607",
"0.857909",
"0.8531399",
"0.84228593",
"0.8385093",
"0.83792955",
"0.8369594",
"0.8223451",
"0.81908375",
"0.81832784",
"0.81753045",
"0.81384075",
"0.8118294",
"0.81151974",
"0.8084867",
"0.8067708",
"0.8004548",
"0.79957855",
"0.79565257",
"0.79350... | 0.0 | -1 |
u"""Maps x,y coordinates like A4 to x,y coordinates like (1, 4). The white player starts on rows with y values 1, and 2, while the black players pieces start on rows 7 and 8. x coordinates increment left to right. x The square from left to right y The square from bottom to top, starting from white players side Returns ... | def sK_W(WKvO, LVAh):
if 1 <= WKvO <= 8 and 1 <= LVAh <= 8:
mWFP = chr(ord(u'A') + WKvO - 1) + str(LVAh)
return mWFP
else:
raise FFYV('The square ({x}, {y}), does not exist on a chess board. X and Y must be between 1 and 8 (inclusive).'.format(x=WKvO, y=LVAh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bhLJ(mWFP):\n WKvO = ord(mWFP[0].upper()) - ord(u'A') + 1\n LVAh = int(mWFP[1])\n if 1 <= WKvO <= 8 and 1 <= LVAh <= 8:\n return (WKvO, LVAh)\n else:\n raise FFYV('The square {name}, does not exist on a chess board. '.format(name=mWFP))",
"def efGj(YKHO):\n for rdlD in range(YKHO... | [
"0.6773498",
"0.64131373",
"0.6329938",
"0.63264817",
"0.6276505",
"0.6271885",
"0.6261634",
"0.62336266",
"0.61954063",
"0.6181442",
"0.6177817",
"0.61566263",
"0.61534655",
"0.6150751",
"0.6144988",
"0.61011904",
"0.5992462",
"0.5990503",
"0.592037",
"0.59146714",
"0.589056... | 0.74358606 | 0 |
u"""Maps square names like H6 to x,y coordinates like (8, 6) The white player starts on rows with y values 1, and 2, while the black players pieces start on rows 7 and 8. x coordinates increment left to right. name The name of the Square Returns x, y coordinates of this square Raises InvalidSquareException if the squar... | def bhLJ(mWFP):
WKvO = ord(mWFP[0].upper()) - ord(u'A') + 1
LVAh = int(mWFP[1])
if 1 <= WKvO <= 8 and 1 <= LVAh <= 8:
return (WKvO, LVAh)
else:
raise FFYV('The square {name}, does not exist on a chess board. '.format(name=mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sK_W(WKvO, LVAh):\n if 1 <= WKvO <= 8 and 1 <= LVAh <= 8:\n mWFP = chr(ord(u'A') + WKvO - 1) + str(LVAh)\n return mWFP\n else:\n raise FFYV('The square ({x}, {y}), does not exist on a chess board. X and Y must be between 1 and 8 (inclusive).'.format(x=WKvO, y=LVAh))",
"def Fyji(YKH... | [
"0.7388818",
"0.6486392",
"0.6269265",
"0.58802533",
"0.5850137",
"0.57612556",
"0.567811",
"0.5646471",
"0.5626506",
"0.55498743",
"0.55453575",
"0.55348",
"0.54982454",
"0.54596525",
"0.5419052",
"0.53977585",
"0.5396239",
"0.53938097",
"0.53849995",
"0.53833115",
"0.537682... | 0.7653585 | 0 |
U"""Returns true if the x, and y coordinates are within a chess board (both between 1 and 8). | def MsGD(WKvO, LVAh):
if 0 < WKvO <= 8 and 0 < LVAh <= 8:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KoY0(YKHO: object, WKvO: int, LVAh: int):\n return 1 <= LVAh <= YKHO.rows_num and 1 <= WKvO <= YKHO.columns_num",
"def GKu2(WKvO, LVAh):\n return 0 <= WKvO < P5Bq and 0 <= LVAh < P5Bq",
"def er5o(YKHO, rdlD, fvDH):\n return 0 <= rdlD < YKHO.corner.row and 0 <= fvDH < YKHO.corner.col",
"def T_Ze(... | [
"0.78401834",
"0.7816942",
"0.77584004",
"0.744004",
"0.74307984",
"0.7362651",
"0.7302404",
"0.7290678",
"0.7265334",
"0.72267085",
"0.72153467",
"0.7168059",
"0.7163924",
"0.7124139",
"0.7122972",
"0.7105568",
"0.7087086",
"0.70707524",
"0.7066774",
"0.7059902",
"0.7054175"... | 0.74599546 | 3 |
u"""Returns True if two squares are horizontally, vertically or diagonally adjacent (side by side). | def Anrd(YKHO, Y0aO):
if YKHO.name != Y0aO:
WKvO, LVAh = YKHO._coordsFromName(Y0aO)
if abs(YKHO.x - WKvO) <= 1:
if abs(YKHO.y - LVAh) <= 1:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fP8F(jzdc, Fg_i):\n return abs(jzdc.x - Fg_i.x) < 2 and abs(jzdc.y - Fg_i.y) < 2",
"def nap9(YKHO):\n return YKHO.h == YKHO.w",
"def Q1IC(knvf, IkxF, MVIL=0, MKlR=1000.0, yzQ0=1000.0):\n gFyc = [iQnE(boolean=True, name='adj({},{},{})'.format(knvf.name, IkxF.name, G1Hx)) for G1Hx in range(4)]\n ... | [
"0.7094452",
"0.68912035",
"0.67201084",
"0.67090034",
"0.66632617",
"0.65558904",
"0.6545395",
"0.6518113",
"0.6511004",
"0.64876896",
"0.6479747",
"0.64692926",
"0.6442023",
"0.6437974",
"0.6415572",
"0.6379298",
"0.6372748",
"0.6366369",
"0.6349895",
"0.6337215",
"0.633340... | 0.6211863 | 36 |
We all know the saying "C's get degrees". We all would like to get an A, but sometimes a C will have to do. Return whether the grade inputted would receive an A or C. >>> a_or_c(100) True >>> a_or_c(75) True >>> a_or_c(82) False >>> a_or_c(80) False >>> a_or_c(95) True >>> a_or_c(40) False | def elds(FjAN):
return 90 <= FjAN <= 100 or 70 <= FjAN <= 79 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bP66(Z9rn):\n if Z9rn not in list('ACGT'):\n return False\n else:\n return True",
"def vTUm(FjAN):\n if 100 >= FjAN >= 88:\n return 'A'\n elif 87 >= FjAN >= 80:\n return 'B'\n elif 79 >= FjAN >= 67:\n return 'C'\n elif 66 >= FjAN >= 60:\n return 'D'... | [
"0.62308836",
"0.615796",
"0.60303855",
"0.5999259",
"0.59865457",
"0.58809423",
"0.5780546",
"0.5709434",
"0.5684067",
"0.556405",
"0.55432355",
"0.5514895",
"0.5510984",
"0.5496086",
"0.54657376",
"0.54556733",
"0.54521596",
"0.5429761",
"0.53863424",
"0.53659433",
"0.53525... | 0.8076987 | 0 |
Optional. Set of label tags associated with the Gateway resource. | def Crrw(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> h8nf[bdIy['outputs.DbSubnetGroupTag']]:\n return qe4Y.get(YKHO, 'tags')",
"def Crrw(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> h8nf[GySg[str, str]]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YK... | [
"0.64534307",
"0.64253783",
"0.6414673",
"0.64056873",
"0.64056873",
"0.63626623",
"0.63325214",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.626302",
"0.6254704",
"0.6209632",
"0.6209632",
"0.6209632",
"0.... | 0.0 | -1 |
Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned. | def type(YKHO) -> h8nf[qe4Y.Input['GatewayType']]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHjO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'billing_type')",
"def kdXA(YKHO) -> h8nf[str]:\n return YKHO.__gateway",
"def kdXA(YKHO) -> h8nf[str]:\n return YKHO.__gateway",
"def nYTz(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('Gateway')\n return YKHO._Gateway",
"def kdXA(Y... | [
"0.63933766",
"0.6369013",
"0.6369013",
"0.6249159",
"0.60969",
"0.60969",
"0.60969",
"0.60969",
"0.60969",
"0.60969",
"0.60905826",
"0.6067393",
"0.60597587",
"0.60597587",
"0.60529864",
"0.60127336",
"0.5950324",
"0.5926603",
"0.58553743",
"0.583157",
"0.5819015",
"0.5751... | 0.72834414 | 0 |
Optional. Set of label tags associated with the Gateway resource. | def Crrw(YKHO) -> qe4Y.Output[GySg[str, str]]:
return qe4Y.get(YKHO, 'labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> h8nf[bdIy['outputs.DbSubnetGroupTag']]:\n return qe4Y.get(YKHO, 'tags')",
"def Crrw(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> h8nf[GySg[str, str]]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YK... | [
"0.64534307",
"0.64253783",
"0.6414673",
"0.64056873",
"0.64056873",
"0.63626623",
"0.63325214",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.62839925",
"0.626302",
"0.6254704",
"0.6209632",
"0.6209632",
"0.6209632",
"0.... | 0.0 | -1 |
Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned. | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> h8nf[qe4Y.Input['GatewayType']]:\n return qe4Y.get(YKHO, 'type')",
"def pHjO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'billing_type')",
"def kdXA(YKHO) -> h8nf[str]:\n return YKHO.__gateway",
"def kdXA(YKHO) -> h8nf[str]:\n return YKHO.__gateway",
"def nYTz(YKHO):\n if Y... | [
"0.7283531",
"0.6393203",
"0.63689494",
"0.63689494",
"0.62491786",
"0.6097289",
"0.6097289",
"0.6097289",
"0.6097289",
"0.6097289",
"0.6097289",
"0.6089324",
"0.6067092",
"0.60597",
"0.60597",
"0.6053247",
"0.6013338",
"0.5949563",
"0.5926473",
"0.58545053",
"0.58319384",
... | 0.0 | -1 |
Test that an AJAX post to ask an admin sends an email. | def Zl0j(YKHO):
geh0 = YKHO.client.post(gxEw('ask_admin_feedback'), {'url': 'http://localhost:8000/test/', 'question': 'question'}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
YKHO.failUnlessEqual(geh0.status_code, 200)
YKHO.assertEqual(len(cpYK.outbox), 1)
YKHO.assertTrue(cpYK.outbox[0].subject.find(YKHO.u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZwc(YKHO):\n ZfUD = zlRf(Nz4o, form=YKHO.form)\n QePW = Bh95('post', data={'form1-subject': 'Test!', 'form1-email': 'test@example.org', 'form1-message': 'Hello!', 'form1_submit': 'submit'})\n QePW.resolver_match = xBs1('/admin/')\n YKHO.assertRaises(Lv0p, lambda: jqlx([ZfUD], request=QePW))\n D... | [
"0.72679687",
"0.7007078",
"0.6954129",
"0.69509184",
"0.6944661",
"0.6922649",
"0.68510544",
"0.6817962",
"0.6807848",
"0.6807249",
"0.6771161",
"0.67419213",
"0.6710036",
"0.6706432",
"0.66830087",
"0.66773033",
"0.6655963",
"0.6617259",
"0.66151434",
"0.6608575",
"0.660507... | 0.7623425 | 0 |
Set centers of keypoints in image from keypoints dict. | def dLMA(YKHO, BR8K):
eKGI = {}
for H5ew in I3bW:
if H5ew not in BR8K.keys():
continue
tJeK = BR8K[H5ew]
hgjH = (int(tJeK[0] * YKHO.image_w), int(tJeK[1] * YKHO.image_h))
YKHO.centers[H5ew] = hgjH
return eKGI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQhZ(inRC, G1Hx):\n lWsa = list(mrPm(inRC, k=G1Hx))\n return lWsa",
"def a8JW(YKHO, VXjJ=None):\n if VXjJ is None:\n VXjJ = oyIN.zeros((YKHO.image_h, YKHO.image_w, 3))\n if not YKHO.centers:\n XC5k.putText(VXjJ, 'No reliable keypoints detected.', (20, YKHO.image_h - 15), XC5k.FONT_H... | [
"0.6497361",
"0.64026916",
"0.6236415",
"0.6218606",
"0.61319673",
"0.6075774",
"0.60635483",
"0.60412216",
"0.60366845",
"0.596256",
"0.5884784",
"0.5838138",
"0.5827251",
"0.58255243",
"0.5823421",
"0.58184105",
"0.5814596",
"0.58068323",
"0.5777036",
"0.57770103",
"0.57738... | 0.82026815 | 0 |
Convert input x coordinates to normalized coordinates suitable for input to special polynomials. | def ltnu(YKHO, JJkg, FiHK):
if FiHK:
dgZ7 = oyIN.minimum(oyIN.maximum((JJkg - YKHO.xjumplo) / (YKHO.xjumphi - YKHO.xjumplo), 0.0), 1.0)
nWN8 = JJkg + dgZ7 * YKHO.xjumpval
else:
nWN8 = JJkg
return 2.0 * (nWN8 - YKHO.xmid) / YKHO.xRange | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, WKvO):\n pass",
"def NkkI(WKvO):\n return WKvO",
"def NkkI(YKHO, WKvO):\n return (WKvO - oyIN.min(WKvO)) / (oyIN.max(WKvO) - oyIN.min(WKvO))",
"def rL2h(YKHO, WKvO):\n raise NotImplementedError",
"def NkkI(WKvO, JRC0, IA3S):\n return (WKvO - JRC0) / (IA3S - JRC0)",
"def NkkI... | [
"0.7391991",
"0.7077633",
"0.68190336",
"0.6807498",
"0.6781513",
"0.6770742",
"0.6768009",
"0.665617",
"0.66290015",
"0.6596124",
"0.6533467",
"0.6514589",
"0.6512532",
"0.64837617",
"0.64654493",
"0.6455028",
"0.63996226",
"0.63897127",
"0.63858867",
"0.6352342",
"0.635184"... | 0.0 | -1 |
Initialize a LdsOrdBase. If the source is not None, then object is initialized from values of the source object. | def FIMM(YKHO, JZXy=None):
if JZXy:
YKHO.lds_ord_list = [dMnT(fNN0) for fNN0 in JZXy.lds_ord_list]
else:
YKHO.lds_ord_list = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, JZXy=None):\n YKHO.min_latitude = -90\n YKHO.max_latitude = 90\n YKHO.min_longitude = -180\n YKHO.max_longitude = 180\n YKHO.min_altitude = -100\n YKHO.max_altitude = 10000000\n if JZXy:\n YKHO.fromDict(JZXy)",
"def FIMM(YKHO, JZXy: DataSource, **NArs):\n NArs['sourc... | [
"0.60574156",
"0.60466015",
"0.59174615",
"0.59163696",
"0.58760697",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.5784781",
"0.57764447",
"0.5759961... | 0.8070917 | 0 |
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In nondistributed training, there is only one dataloader for all GPUs. | def syqS(__n6, LY0i, JHuQ, J9Qu=1, pImw=True, hXNa=True, yokr=None, **B2fa):
fdMZ, aDYX = tQUY()
if pImw:
if hXNa:
RFg8 = i55t(__n6, LY0i, aDYX, fdMZ, seed=yokr)
else:
RFg8 = iows(__n6, aDYX, fdMZ, shuffle=False, seed=yokr)
Ep8u = LY0i
I7Gy = JHuQ
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syqS(__n6: Dataset, LY0i: int, JHuQ: int, J9Qu: int=1, pImw: bool=False, hXNa: bool=False, zYQo: bool=True, yokr: Optional[int]=None, oiT4: bool=True, ytnE: bool=True, **B2fa) -> pVAc:\n from mmcls.datasets import syqS as dgUx\n return dgUx(__n6, LY0i, JHuQ, J9Qu, pImw, hXNa, zYQo, yokr, oiT4, ytnE, **B2... | [
"0.8294936",
"0.8170651",
"0.81332195",
"0.8031837",
"0.7825105",
"0.77947146",
"0.7724376",
"0.77193",
"0.7691551",
"0.75776744",
"0.7566628",
"0.75646055",
"0.7564427",
"0.7451456",
"0.74488336",
"0.7444106",
"0.74362636",
"0.7433004",
"0.7398214",
"0.7391807",
"0.7361859",... | 0.7971995 | 4 |
Get the InChI of `molecule`. | def WW52(asBq: Molecule) -> str:
ovwT = Mk_G.MolToInchi(asBq.to_rdkit_mol())
if ovwT:
return ovwT
raise ValueError('The InChI of {molecule} was empty.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uCDY(YKHO):\n return FfQE.OECreateInChI(YKHO.__oeMol) if YKHO.__oeMol else None",
"def hogz(asBq: Molecule) -> str:\n H5ew = Mk_G.MolToInchiKey(asBq.to_rdkit_mol())\n if not H5ew:\n raise ValueError(f'InChIKey of {asBq} is empty.')\n return H5ew",
"def asBq(YKHO):\n return YKHO._molec... | [
"0.73149985",
"0.67117804",
"0.6173082",
"0.608778",
"0.60228306",
"0.60228306",
"0.59319806",
"0.58777267",
"0.55785507",
"0.5469476",
"0.546744",
"0.54279596",
"0.53529876",
"0.52916735",
"0.52916735",
"0.5234024",
"0.5173816",
"0.5142509",
"0.51351744",
"0.50939894",
"0.50... | 0.76442194 | 0 |
Get the InChIKey of `molecule`. | def hogz(asBq: Molecule) -> str:
H5ew = Mk_G.MolToInchiKey(asBq.to_rdkit_mol())
if not H5ew:
raise ValueError(f'InChIKey of {asBq} is empty.')
return H5ew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uk4b(YKHO):\n return FfQE.OECreateInChIKey(YKHO.__oeMol) if YKHO.__oeMol else None",
"def WW52(asBq: Molecule) -> str:\n ovwT = Mk_G.MolToInchi(asBq.to_rdkit_mol())\n if ovwT:\n return ovwT\n raise ValueError('The InChI of {molecule} was empty.')",
"def JGvc(_0gM):\n return iKir(_0gM)... | [
"0.7849643",
"0.71388644",
"0.6838213",
"0.67954576",
"0.67013735",
"0.64466304",
"0.5882015",
"0.555831",
"0.54003257",
"0.5365511",
"0.53591865",
"0.53327",
"0.52649504",
"0.52209014",
"0.51907414",
"0.5180893",
"0.5179555",
"0.51471984",
"0.51471984",
"0.5141122",
"0.51395... | 0.8305816 | 0 |
Get the RDKit canonical, isomeric SMILES of `molecule`. | def mnfO(asBq: Molecule) -> str:
yM17 = asBq.with_canonical_atom_ordering().to_rdkit_mol()
Mk_G.SanitizeMol(yM17)
Mk_G.AssignStereochemistryFrom3D(yM17)
yM17 = Mk_G.RemoveHs(yM17)
return Mk_G.MolToSmiles(mol=yM17, isomericSmiles=True, canonical=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2LX(GRIo):\n N9D1 = nPyX()\n if sLbc(N9D1, GRIo) == 1:\n mnjh = Z572(N9D1)\n return '%s\\n' % mnjh\n else:\n HwRy.stderr.write('%s is an invalid SMILES!' % GRIo)",
"def OHCm(YKHO):\n return FfQE.OECreateCanSmiString(YKHO.__oeMol) if YKHO.__oeMol else None",
"def L6Lt(mnjh)... | [
"0.65525144",
"0.63229984",
"0.60921866",
"0.6064558",
"0.58778095",
"0.5860434",
"0.5857234",
"0.58174276",
"0.578288",
"0.5767429",
"0.5724295",
"0.56532305",
"0.56497747",
"0.5627811",
"0.5606712",
"0.55995965",
"0.5595814",
"0.5594606",
"0.55903554",
"0.5582231",
"0.55452... | 0.7369059 | 0 |
Inserts or updates workflow in database. | async def upsert(YKHO, NCls: AsyncIOMotorClient, NtEF: str, BMxt: str, cO4L: WorkflowRequest) -> g7YS:
cO4L.updated_at = qcWV.now().isoformat()
Jf7a = cO4L.dict(exclude_none=True)
Jf7a['metadata']['author'] = NtEF
await NCls.workflow.update_one({'id': BMxt}, {'$set': Jf7a}, upsert=True)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GiqH(YKHO, BMxt, mWFP, QTBn, ebmv, GRrj, Uwuf):\n ZlgM = 'INSERT INTO workflows (workflow_id, name, state, run_dir, bolt_port, gdb_pid) VALUES(?, ?, ?, ?, ?, ?);'\n vVnH.run(YKHO.db_file, ZlgM, [BMxt, mWFP, QTBn, ebmv, GRrj, Uwuf])",
"async def insert(YKHO, NCls: AsyncIOMotorClient, NtEF: str, cO4L: Wo... | [
"0.7068228",
"0.7056767",
"0.6494826",
"0.64398694",
"0.6360735",
"0.6337941",
"0.63070816",
"0.62702096",
"0.6262193",
"0.6223396",
"0.6213631",
"0.6213631",
"0.6213631",
"0.6210107",
"0.6191456",
"0.61909294",
"0.61765087",
"0.61671317",
"0.61671317",
"0.613169",
"0.613169"... | 0.63475484 | 5 |
Normalize the image between [0, 1] with respect to mean and standard deviation. | def NkkI(VXjJ, JBMS, M1Jx, zl33=False, yDqo='float32'):
if not QvQx(VXjJ):
raise TypeError('img should be NumPy image. Got {}.'.format(type(VXjJ)))
if VXjJ.ndim != 3:
raise TypeError('img dimension should be 3. Got {}.'.format(VXjJ.ndim))
if oyIN.issubdtype(VXjJ.dtype, oyIN.integer):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx",
"def NkkI(YKHO, VXjJ):\n return (VXjJ - YKHO.mean) / YKHO.std",
"def NkkI(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)",
"def BtVk(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)",
"def jnV4(VXjJ, B9E... | [
"0.8762468",
"0.85683453",
"0.85676754",
"0.84484935",
"0.84327656",
"0.84216505",
"0.84162444",
"0.82452345",
"0.81882644",
"0.81781",
"0.80710566",
"0.79720527",
"0.79505664",
"0.79435664",
"0.792985",
"0.78849727",
"0.7878143",
"0.7842126",
"0.7837071",
"0.7835506",
"0.781... | 0.0 | -1 |
Transpose the input image from shape (H, W, C) to (C, H, W). If the input image is of shape , it will remain unchanged. | def Qibu(VXjJ):
if not QvQx(VXjJ):
raise TypeError('img should be NumPy array. Got {}.'.format(type(VXjJ)))
if VXjJ.ndim not in (2, 3):
raise TypeError('img dimension should be 2 or 3. Got {}.'.format(VXjJ.ndim))
if VXjJ.ndim == 2:
return VXjJ
return VXjJ.transpose(2, 0, 1).copy(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(VXjJ):\n QvQx = isinstance(VXjJ, oyIN.ndarray)\n if not Qfi2(VXjJ):\n if QvQx:\n VXjJ = hnIv.fromarray(VXjJ)\n else:\n raise TypeError('img should be PIL Image or numpy array. Got {}'.format(type(VXjJ)))\n VXjJ = VXjJ.transpose(hnIv.TRANSPOSE)\n... | [
"0.6953425",
"0.69327414",
"0.6900553",
"0.6526835",
"0.65055037",
"0.6486027",
"0.6419488",
"0.6393136",
"0.6349154",
"0.63271534",
"0.62437487",
"0.6214182",
"0.6185587",
"0.6163956",
"0.611189",
"0.61107904",
"0.6097942",
"0.6089653",
"0.6089533",
"0.6067662",
"0.6023679",... | 0.5569918 | 80 |
Flip the input image horizontally. | def Hl5t(VXjJ):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
return VXjJ.transpose(YGpq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hl5t(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.horizontal_flip()\n T4M1 = VXjJ.execute_transforms(gb5P)\n return T4M1",
"def zDnU(YKHO, LNo8):\n LNo8 = oyIN.fliplr(LNo8)\n return LNo8",
"def bEsp(YKHO, VXjJ, XSoh='horizontal'):\n assert XSoh in ['horizontal', 'vertical']... | [
"0.8006015",
"0.7715512",
"0.75520945",
"0.73546237",
"0.7312584",
"0.72801703",
"0.72306097",
"0.7187462",
"0.71818817",
"0.7170811",
"0.7170811",
"0.7160863",
"0.71511245",
"0.7129099",
"0.7122189",
"0.710576",
"0.7079089",
"0.7064783",
"0.7026308",
"0.70234513",
"0.6994632... | 0.8110126 | 0 |
Flip the input image vertically. | def xPm2(VXjJ):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
return VXjJ.transpose(nv4g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPm2(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.vertical_flip()\n T4M1 = VXjJ.execute_transforms(gb5P)\n return T4M1",
"def aYl6(YKHO):\n YKHO.matrix = YKHO.matrix[::-1, :, :]\n YKHO.showImage()",
"def mwd5(YKHO):\n YKHO.cv2_image = XC5k.flip(YKHO.cv2_image, 0)\n YKHO.... | [
"0.83556455",
"0.8144658",
"0.7986984",
"0.79108566",
"0.79108566",
"0.7881971",
"0.77356374",
"0.75326264",
"0.74558616",
"0.7446437",
"0.74394464",
"0.742411",
"0.74037",
"0.7402923",
"0.7387766",
"0.73655313",
"0.73416674",
"0.7288798",
"0.72819173",
"0.7278138",
"0.722686... | 0.827426 | 1 |
Randomly flip the input image vertically. | def M9lj(VXjJ, JxU2):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
if JxU2 > tuKI.random():
VXjJ = xPm2(VXjJ)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9lj(LNo8, c8oy):\n if tuKI.random() < 0.5:\n MKlR, bGrB, bGrB = LNo8.shape\n LNo8 = LNo8[::-1, :, :]\n c8oy[:, [1, 3]] = MKlR - c8oy[:, [3, 1]]\n return (LNo8, c8oy)",
"def FZ2p(LNo8, ZHfW, P6bq=0.5):\n if tuKI() < P6bq:\n LNo8 = LNo8[::-1, :, :]\n ZHfW = ZHfW[::-... | [
"0.78962",
"0.7824577",
"0.7120735",
"0.7118318",
"0.7083629",
"0.7076477",
"0.7061524",
"0.7053491",
"0.70270985",
"0.69910485",
"0.69244283",
"0.69137365",
"0.68655115",
"0.6846788",
"0.68294376",
"0.6814733",
"0.68027896",
"0.67870104",
"0.67870104",
"0.6711653",
"0.670348... | 0.8179401 | 0 |
Crop the input PIL Image at the center to the given size. | def HK1Q(VXjJ, zNig):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
if isinstance(zNig, int):
zNig = (zNig, zNig)
PLSm, s3Vn = VXjJ.size
Pqyv, LbxQ = zNig
e8Io = int(round((s3Vn - Pqyv) / 2.0))
kFSh = int(round((PLSm - LbxQ) / 2.0))
return NAnm(VXjJ, e8Io, kFSh,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khdV(VXjJ, zNig):\n XcU5, C7Ls = zNig\n yzQ0, MKlR = VXjJ.size\n return VXjJ.crop(((yzQ0 - XcU5) / 2, (MKlR - C7Ls) / 2, (yzQ0 + XcU5) / 2, (MKlR + C7Ls) / 2))",
"def imIE(hOiy, _Zyu):\n LbxQ, Pqyv = _Zyu\n PLSm, s3Vn = hOiy.size\n return hOiy.crop(((PLSm - LbxQ) // 2, (s3Vn - Pqyv) // 2, (... | [
"0.7996111",
"0.7979552",
"0.79312366",
"0.76998985",
"0.7634543",
"0.7620741",
"0.7583258",
"0.75755966",
"0.7531484",
"0.750703",
"0.7500052",
"0.7496964",
"0.7444962",
"0.74095106",
"0.7407628",
"0.7407628",
"0.73497415",
"0.7346057",
"0.7336862",
"0.73261535",
"0.7159957"... | 0.8075311 | 0 |
Crop the input PIL Image to a random size and aspect ratio. | def Fvdp(VXjJ, zNig, NXpY, dMYj, GoGv=ZFo2.BILINEAR, Cpim=10):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
if isinstance(zNig, int):
zNig = (zNig, zNig)
elif isinstance(zNig, (tuple, list)) and len(zNig) == 2:
zNig = zNig
else:
raise TypeError('Size should... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TM7i(YKHO, VXjJ):\n yzQ0, MKlR = VXjJ.size\n if yzQ0 <= MKlR:\n DU29, EH9b = (256, int(256 * MKlR / yzQ0))\n else:\n EH9b, DU29 = (256, int(256 * yzQ0 / MKlR))\n VXjJ = Ggvv.resize(VXjJ, (DU29, EH9b))\n YRbF = oyIN.random.randint(0, EH9b - YKHO.crop_size + 1)\n r845 = oyIN.rando... | [
"0.77012444",
"0.7472015",
"0.7416636",
"0.7350162",
"0.7308779",
"0.7231471",
"0.718928",
"0.7166541",
"0.71433157",
"0.7117528",
"0.71166867",
"0.70639694",
"0.7058115",
"0.70487547",
"0.6990144",
"0.6924622",
"0.6895501",
"0.6864284",
"0.6769127",
"0.6763394",
"0.6740842",... | 0.6749975 | 20 |
Convert the input PIL Image to grayscale image. | def qWz7(VXjJ, NjM2):
if not RDRa(VXjJ):
raise TypeError(t_1q.format(type(VXjJ)))
if NjM2 == 1:
VXjJ = VXjJ.convert('L')
elif NjM2 == 3:
VXjJ = VXjJ.convert('L')
_8RZ = oyIN.array(VXjJ, dtype=oyIN.uint8)
dvtG = oyIN.dstack([_8RZ, _8RZ, _8RZ])
VXjJ = hnIv.froma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdc2(YKHO):\n YKHO.image_gray = Y4jz.grayscale(YKHO.image)",
"def Pl9M(VXjJ, UFp3):\n LNo8 = hnIv.open(VXjJ).convert('L')\n LNo8.save(UFp3)",
"def fppW(LNo8):\n if len(LNo8.shape) == 2:\n return LNo8\n return oyIN.dot(LNo8, [0.299, 0.587, 0.114])",
"def Pl9M(YKHO, VXjJ=None):\n i... | [
"0.79153734",
"0.7775927",
"0.7614947",
"0.7420794",
"0.7407236",
"0.73915935",
"0.73376846",
"0.733007",
"0.72887564",
"0.7252955",
"0.7249063",
"0.7249063",
"0.7208454",
"0.7164105",
"0.7161936",
"0.71432966",
"0.7102326",
"0.7098423",
"0.70894635",
"0.70894635",
"0.7089463... | 0.72881645 | 9 |
Convert RGB img to BGR img. | def VHgz(By5A, IwtP):
if IwtP:
Zimr = By5A[:, :, ::-1]
else:
Zimr = By5A[::-1, :, :]
return Zimr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA6l(VXjJ):\n CmPs = BVZ5(VXjJ)\n o8mw = XC5k.cvtColor(CmPs, XC5k.COLOR_RGB2BGR)\n return o8mw",
"def KA6l(VXjJ):\n return XC5k.cvtColor(VXjJ, neC1('rgb2bgr'))",
"def Qh7z(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB)",
"def Rm08(VXjJ):\n return XC5k.cvtColor(VXjJ, neC1('bgr2r... | [
"0.80009",
"0.7811227",
"0.75752956",
"0.7542126",
"0.75127816",
"0.7484197",
"0.7479617",
"0.7308144",
"0.723555",
"0.7006315",
"0.7006315",
"0.69888115",
"0.6987572",
"0.6986917",
"0.6936094",
"0.6906357",
"0.6896223",
"0.68910056",
"0.68650335",
"0.68621147",
"0.68585277",... | 0.6969129 | 14 |
Initializes the RunnerHeader for this checkpoint stream if it has not already been constructed. | def q2Gk(YKHO):
if YKHO._state.header is None:
try:
PObu = zN5h.getpwnam(YKHO._user).pw_uid
except KeyError:
RKD7.error('Unknown user %s.' % YKHO._user)
PObu = None
WBPg = qxs7(task_id=YKHO._task_id, launch_time_ms=int(YKHO._launch_time * 1000), sandbox=YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, fwPH: str):\n qe4Y.set(Ro_8, 'header_name', fwPH)",
"def FIMM(Ro_8, *, fwPH: str):\n qe4Y.set(Ro_8, 'header_name', fwPH)",
"def as4H(YKHO):\n YKHO.set_data(LPpG)\n YKHO.reset_parser()\n YKHO.assert_state(1003)\n YKHO.set_data(yPHi)\n YKHO.reset_parser()\n YKHO.assert_s... | [
"0.6130886",
"0.6130886",
"0.5982634",
"0.5892254",
"0.5858371",
"0.57922",
"0.57922",
"0.5729097",
"0.56914824",
"0.56864536",
"0.5647502",
"0.5647215",
"0.5633267",
"0.5629326",
"0.56274724",
"0.5601974",
"0.55494905",
"0.5546288",
"0.55306375",
"0.55258274",
"0.54112315",
... | 0.78105736 | 0 |
Determine whether or not we should mark a task as LOST and do so if necessary. | def MUHT(YKHO, iuWa):
WzfM = YKHO._current_process_run(iuWa)
if not WzfM:
raise YKHO.InternalError('No current_run for process %s!' % iuWa)
def qqlC():
return WzfM.state == q3gH.FORKED and YKHO._clock.time() - WzfM.fork_time > YKHO.LOST_TIMEOUT.as_(Kmii.SECONDS)
def QzQN():
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6sR(YKHO) -> bool:\n YKHO.ticks_to_complete -= 1\n return YKHO.ticks_to_complete <= 0",
"def z9Je(YKHO):\n if YKHO.currentTask != None:\n return True\n else:\n return False",
"def D5gV(YKHO) -> bool:\n return not super().task()",
"def D5gV(YKHO) -> bool:\n return not supe... | [
"0.6384128",
"0.6203832",
"0.61979586",
"0.61979586",
"0.61979586",
"0.60979855",
"0.6070799",
"0.6046161",
"0.60268974",
"0.6022198",
"0.59433347",
"0.59223944",
"0.5882343",
"0.58611125",
"0.5857468",
"0.5848253",
"0.5806775",
"0.5798995",
"0.5761357",
"0.5761357",
"0.57548... | 0.0 | -1 |
Returns True if any processes associated with this task have active pids. | def ldrY(YKHO):
_tQt = Ps2o.scan_tree(YKHO.state)
return any((any(aGF3) for aGF3 in _tQt.values())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frNl(YKHO):\n return any((not Ps2o.is_process_terminal(iXC1.state) for iXC1 in filter(None, (YKHO._current_process_run(NBjn) for NBjn in YKHO.state.processes))))",
"def qeYV(YKHO):\n for NBjn in YKHO.processes.values():\n if NBjn.protocol.running():\n return True\n return False",
... | [
"0.7806561",
"0.76798296",
"0.76154643",
"0.7112678",
"0.68509775",
"0.6827732",
"0.6712085",
"0.669982",
"0.6695626",
"0.6694929",
"0.6678329",
"0.6678329",
"0.66234",
"0.6619561",
"0.6615219",
"0.6578119",
"0.65403634",
"0.6516923",
"0.6508849",
"0.6496061",
"0.6495405",
... | 0.7917652 | 0 |
Create an order to send to exchange. | def GQL3(nDVP, bLdI, hI0L, TWpx, dmen, TIza, jP2p=xpzE.T.value, DoTX=xpzE.T.value, bc41=None, rcKm=LXZK.Cancel.value, rLiW=n_ys.FillOrKillDontCancel.value, tQEo=0.0, hpQ8=1):
geh0 = {'SelectionId': nDVP, 'Stake': bLdI, 'Price': hI0L, 'Polarity': TWpx, 'ExpectedSelectionResetCount': dmen, 'ExpectedWithdrawalSequence... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQL3(YKHO, y7DO, cTRz, XeOP):\n T4Wy = L9Jq()\n T4Wy.m_orderType = y7DO\n T4Wy.m_totalQuantity = cTRz\n T4Wy.m_action = XeOP\n return T4Wy",
"def GQL3(YKHO, **NArs):\n if not all([YKHO.api_key, YKHO.api_secret]):\n raise tmtM()\n w2IS = '/orders/'\n return YKHO.request(w2IS, 'P... | [
"0.73687816",
"0.7294807",
"0.72684956",
"0.72429425",
"0.72396386",
"0.7193898",
"0.7136262",
"0.70849127",
"0.7046266",
"0.68510735",
"0.68371123",
"0.6835874",
"0.6817455",
"0.67999244",
"0.67909867",
"0.6789417",
"0.6774236",
"0.6772495",
"0.6771025",
"0.6767337",
"0.6753... | 0.6151508 | 94 |
Return the size of the dataset | def Fo3E(YKHO, S55X='train'):
return len(YKHO.datasets[S55X]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hU8i(YKHO):\n return YKHO._dataset_size",
"def duBC(__n6):\n return dD7q(__n6).data_size",
"def jiw9(YKHO):\n return YKHO.dataset.get_size()",
"def szAg(YKHO):\n return YKHO.dataset_size",
"def szAg(YKHO):\n return YKHO.dataset_size",
"def szAg(YKHO):\n return YKHO.dataset_size",
... | [
"0.90148306",
"0.8972619",
"0.8809325",
"0.8656548",
"0.8656548",
"0.8656548",
"0.8656548",
"0.8656548",
"0.8627628",
"0.8607695",
"0.8465492",
"0.8423236",
"0.8403807",
"0.8403758",
"0.8303077",
"0.83023196",
"0.825176",
"0.81932944",
"0.81580365",
"0.81361234",
"0.8130354",... | 0.77935576 | 67 |
Returns the easy and hard axis for an SW particle with uniaxial anisotropy. Result is four tuples of the form (angle, energy) in the order of min(min) max(min) min(max) max(max). | def s436(MKlR, idx7):
q0f4 = khtY.brent(nqRo, brack=(0.0, 0.001), args=(MKlR, idx7))
xj02 = khtY.brent(nqRo, brack=(mM0K, mM0K + 0.001), args=(MKlR, idx7))
q0f4 = [q0f4, nqRo(q0f4, MKlR, idx7)]
xj02 = [xj02, nqRo(xj02, MKlR, idx7)]
if q0f4[1] == xj02[1]:
qpf3 = khtY.brent(lambda WKvO: nqRo(W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def In6z(MKlR, C3ap):\n OiIQ = []\n eRPr = []\n I05E = []\n if C3ap == 'align':\n OiIQ.append(0)\n OiIQ.append(mM0K)\n if -1 < MKlR < 1:\n OiIQ.append(fH9s(-MKlR))\n OiIQ.append(2 * mM0K - fH9s(-MKlR))\n NbaY = lambda WKvO: nqRo(WKvO, MKlR, 0)\n ... | [
"0.5812533",
"0.56653136",
"0.56336486",
"0.56173617",
"0.5536688",
"0.5477471",
"0.54128236",
"0.5280285",
"0.5271754",
"0.52663743",
"0.52103025",
"0.51998687",
"0.5177905",
"0.5170801",
"0.5157263",
"0.5152971",
"0.5143688",
"0.5121529",
"0.51083237",
"0.51047504",
"0.5063... | 0.49944627 | 29 |
Run inference on the dataset specified. It dumps the generated sentences and the ground truth sentences. | def DI_U(vmZ4):
Kwmb = vPBo.data_dir
M5Kd, Japz, FJaP = ZAQi(Kwmb)
if vmZ4 == 'test':
nPrm = Japz
elif vmZ4 == 'dev':
nPrm = FJaP
elif vmZ4 == 'train':
nPrm = M5Kd
else:
print('Invalid Choice!!')
return
if vPBo.debug:
nPrm = [nPrm[G1Hx][0:67] f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOQR():\n mGPM = rxsg()\n Pzkx, K0do, zxao = HDJK(CPgj, mGPM.config)\n r6KZ, ByCf, uGLh, VGM6, FNbO = EQtN(Pzkx, mGPM)\n bFLq(mGPM.config.PATH_TO_SAVE_RESULTS, {'seq_tars': [[int(r845) for r845 in YRbF[0]] for YRbF in r6KZ], 'seq_preds': [[int(r845) for r845 in YRbF[0]] for YRbF in ByCf], 'cls_tars... | [
"0.75365615",
"0.6872736",
"0.67100424",
"0.6703193",
"0.6671184",
"0.6609922",
"0.6589862",
"0.65658283",
"0.65643746",
"0.6546539",
"0.6544988",
"0.6526571",
"0.6511637",
"0.65067846",
"0.648572",
"0.64850074",
"0.64526796",
"0.64292264",
"0.64155704",
"0.6415484",
"0.64141... | 0.73808503 | 1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, jgPF):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
name Name of the site A Site object with full info, or None if the site is not found. | def KBst(YKHO, mWFP):
raise NotImplementedError('get_site') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w1vn(YKHO):\n return YKHO._site_name",
"def olsn(YKHO):\n return getattr(YKHO.data, 'siteName', {})",
"def XL7W(YKHO) -> str:\n return qe4Y.get(YKHO, 'simple_office_site_name')",
"def Rrdk(YKHO) -> str:\n return qe4Y.get(YKHO, 'office_site_name')",
"def Rrdk(YKHO) -> str:\n return qe4Y.g... | [
"0.7645292",
"0.7637415",
"0.72474384",
"0.6881817",
"0.6881817",
"0.68225336",
"0.68225336",
"0.6818187",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"0.67675936",
"... | 0.0 | -1 |
Test that the database does not store a postcode with only numbers. | def LSFb(YKHO):
SGll = BFpK(user=mv1M.objects.create_user(username='testpostcode', email='test@test.com', password='test123', first_name='test', last_name='postcode'), postcode='000')
YKHO.assertRaises(sUXu, SGll.save) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nuc7(YKHO):\n epBp = YKHO.search.by_zipcode(48874)\n assert epBp.zipcode_type != dxvk.Standard\n assert epBp.lat is not None",
"def OAmG(YKHO):\n fGmO = 'W1D1AN'\n SGll = BFpK(user=mv1M.objects.create_user(username='testpostcode', email='test@test.com', password='test123', first_name='test', l... | [
"0.6865672",
"0.6850944",
"0.6696485",
"0.6669187",
"0.64295936",
"0.6287466",
"0.6283498",
"0.625102",
"0.620987",
"0.61031765",
"0.60556275",
"0.6025215",
"0.59640217",
"0.5946675",
"0.5926018",
"0.5898788",
"0.5894492",
"0.5892915",
"0.58700997",
"0.5798246",
"0.5795958",
... | 0.7653091 | 0 |
Test that the database does not store a postcode with more than eight characters. | def oshZ(YKHO):
SGll = BFpK(user=mv1M.objects.create_user(username='testpostcode', email='test@test.com', password='test123', first_name='test', last_name='postcode'), postcode='EC2R 9BBH')
YKHO.assertRaises(sUXu, SGll.save) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSFb(YKHO):\n SGll = BFpK(user=mv1M.objects.create_user(username='testpostcode', email='test@test.com', password='test123', first_name='test', last_name='postcode'), postcode='000')\n YKHO.assertRaises(sUXu, SGll.save)",
"def OAmG(YKHO):\n fGmO = 'W1D1AN'\n SGll = BFpK(user=mv1M.objects.create_us... | [
"0.6589117",
"0.65693015",
"0.65338075",
"0.6502835",
"0.6372081",
"0.6323692",
"0.6296272",
"0.6227759",
"0.62265915",
"0.6119871",
"0.60810053",
"0.6009283",
"0.5947088",
"0.5919237",
"0.5916142",
"0.5915807",
"0.5915669",
"0.587699",
"0.58645946",
"0.58625174",
"0.585921",... | 0.6608442 | 0 |