query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns a dictionary of cluster metadata. | def UKjj(YKHO):
Vi3E = {}
for mWFP, gO6B in jKi7.iteritems(YKHO.nodepools):
EWk1 = {'size': gO6B.num_nodes, 'machine_type': gO6B.vm_config.machine_type, 'name': mWFP}
if gO6B.sandbox_config is not None:
EWk1['sandbox_config'] = {'type': gO6B.sandbox_config.type}
Vi3E[mWFP] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIWO(YKHO) -> cuzp[str, ImMB]:\n pass",
"def yoaG(YKHO) -> None:\n return {'cluster_metadata': YKHO.cluster_metadata, 'master_url': YKHO.master_url}",
"def BDRs(YKHO):\n l5lk = YKHO.cluster_description.get('certificateAuthority', {}).get('data', '')\n w2IS = YKHO.cluster_description.get('endpoi... | [
"0.81325597",
"0.7839424",
"0.73050076",
"0.71083295",
"0.6874517",
"0.68563604",
"0.6847371",
"0.67545813",
"0.6663398",
"0.6637318",
"0.65861917",
"0.65801597",
"0.656879",
"0.6559226",
"0.65378773",
"0.6527035",
"0.65085137",
"0.6489346",
"0.647957",
"0.6451353",
"0.644067... | 0.6089916 | 53 |
Gets a representation of the POD and returns it. | def tmP4(YKHO) -> cuzp[str, ImMB]:
zJsh, bGrB, bGrB = HJIr(['get', 'pod', YKHO.name, '-o', 'yaml'])
g2Vd = eJb6.safe_load(zJsh)
YKHO.ip_address = g2Vd.get('status', {}).get('podIP')
return g2Vd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iF4_(YKHO):\n return {'q_ref': YKHO.q_ref, 'v_ref': YKHO.v_ref, 'U': YKHO.U, 'type': 'POD'}",
"def wHJl(YKHO):\n return YKHO._metadata.__str__()",
"def CgYo(YKHO):\n return EyO9(repr(YKHO))",
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def gvhb(YKHO):\n return YKHO.p",
"de... | [
"0.61870676",
"0.586387",
"0.5841823",
"0.5794994",
"0.57675374",
"0.5748594",
"0.5739726",
"0.5723545",
"0.57127905",
"0.570913",
"0.5693798",
"0.5668779",
"0.564856",
"0.564285",
"0.56414706",
"0.5639134",
"0.56381875",
"0.5636024",
"0.56328017",
"0.5618493",
"0.56011516",
... | 0.60387766 | 1 |
Returns a dict containing metadata about the cluster. | def UKjj(YKHO):
Aofo = super().GetResourceMetadata()
if YKHO.created:
Aofo['container_cluster_version'] = YKHO.k8s_version
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIWO(YKHO) -> cuzp[str, ImMB]:\n pass",
"def yoaG(YKHO) -> None:\n return {'cluster_metadata': YKHO.cluster_metadata, 'master_url': YKHO.master_url}",
"def LyCO(YKHO) -> whsl:\n if not YKHO.connected:\n raise RuntimeError('Cluster is not connected, cannot get cluster info.')\n LyCO = Non... | [
"0.8303734",
"0.79775727",
"0.7342219",
"0.72751063",
"0.7238488",
"0.721263",
"0.68785936",
"0.6858144",
"0.67896956",
"0.6607303",
"0.65654665",
"0.6537858",
"0.653537",
"0.65257984",
"0.6460807",
"0.6460807",
"0.6456177",
"0.6430657",
"0.6426135",
"0.63857013",
"0.63801485... | 0.64438313 | 17 |
Get the default storage class for the provider. | def TKNO(YKHO) -> str:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LYcd(YKHO) -> eBH2[kF3y]:\n if YKHO.storage_class is None:\n return tLMk()\n return YKHO.storage_class",
"def iwCj(YKHO) -> h8nf[bdIy['outputs.CSIPowerStoreSpecDriverStorageClass']]:\n return qe4Y.get(YKHO, 'storage_class')",
"def iwCj(YKHO) -> 'StorageClass':\n return YKHO._values.get('... | [
"0.815699",
"0.76269335",
"0.75897956",
"0.75897956",
"0.7513054",
"0.7462901",
"0.74106675",
"0.723247",
"0.7136937",
"0.7058349",
"0.7011032",
"0.69600445",
"0.694703",
"0.67005825",
"0.67005825",
"0.66840947",
"0.66700035",
"0.66671276",
"0.65681016",
"0.65066296",
"0.6465... | 0.7365023 | 7 |
This method overrides the object.__eq__ method to allow boolean equality comparison for state objects. True If two objects are of the same class. | def xa14(YKHO, Elif):
return isinstance(Elif, YKHO.__class__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if Elif:\n if YKHO.state == Elif.state:\n return True",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, fpCt):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, ldFr):\n return False\n ... | [
"0.8167679",
"0.7685626",
"0.75331914",
"0.75188535",
"0.7482472",
"0.74681747",
"0.7453216",
"0.7427484",
"0.74079365",
"0.74079365",
"0.7385727",
"0.7376442",
"0.73703504",
"0.73703504",
"0.73642594",
"0.7347785",
"0.7335649",
"0.7296151",
"0.72672987",
"0.7262653",
"0.7254... | 0.73834085 | 11 |
This method overrides the object.__ne__ method to allow boolean equality comparison for state objects. True if two objects are not of the same class. | def Vdqg(YKHO, Elif):
return not isinstance(Elif, YKHO.__class__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, YEnM):\n return not YKHO.__eq__(YEnM)",
"def Vdqg(YKHO, Elif):\n return bool(YKHO != Elif)",
"def Vdqg(Y... | [
"0.82297313",
"0.8223855",
"0.8211094",
"0.7998084",
"0.7978757",
"0.7975379",
"0.79753304",
"0.7972158",
"0.7972158",
"0.7962451",
"0.7960457",
"0.7960457",
"0.7960457",
"0.7960106",
"0.79562646",
"0.79562646",
"0.79375225",
"0.79360884",
"0.79360884",
"0.79360884",
"0.79360... | 0.0 | -1 |
Return the 'index'th row of 'dataframe' as a json formated string. If 'index' is not set or out of bounds, and random row is extracted. | def yLtf(bOBl, d6pt=None):
OVev = len(bOBl)
if d6pt == None or d6pt < 0 or d6pt >= OVev:
d6pt = ajWY(0, OVev)
return bOBl.iloc[d6pt].to_json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdlD(YKHO, d6pt):\n return YKHO.data[d6pt]",
"def DyHJ(YKHO, d6pt):\n try:\n if len(YKHO.data[d6pt]) < YKHO._numAttributes:\n for bGrB in range(YKHO._numAttributes - len(YKHO.data[d6pt])):\n YKHO.data[d6pt].append('?')\n return YKHO.data[d6pt]\n except Excepti... | [
"0.6068886",
"0.60570145",
"0.5906256",
"0.5666757",
"0.5661534",
"0.5657486",
"0.5640169",
"0.5581918",
"0.5570035",
"0.55100304",
"0.54547685",
"0.5436924",
"0.5345558",
"0.530197",
"0.52809733",
"0.52729195",
"0.5257552",
"0.52377063",
"0.5232783",
"0.51719755",
"0.5161334... | 0.813588 | 0 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.7448925 | 83 |
Given a model instance delete it from the database. | def dUlv(YKHO, QePW, YEnM):
YEnM.post.comNumDrease()
YEnM.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dUlv(YKHO, QePW, KAOR):\n pass",
"def GTsZ(YKHO, KAOR: DBModelInstance) -> None:\n YKHO.db.session.delete(KAOR)\n YKHO.db.session.commit()",
"def PTpj(YKHO, C3ST):\n YKHO._isinstance(C3ST)\n NCls.session.delete(C3ST)\n NCls.session.commit()",
"def gh39(YKHO, NCls):\n NCls.session.del... | [
"0.8424874",
"0.83441657",
"0.8252974",
"0.8118797",
"0.8043283",
"0.787151",
"0.7687338",
"0.7529402",
"0.7498953",
"0.74603105",
"0.7428436",
"0.7338939",
"0.72842306",
"0.72842306",
"0.72652024",
"0.7239413",
"0.7220205",
"0.72134465",
"0.7184516",
"0.71829504",
"0.7182950... | 0.6595672 | 79 |
Given a model instance delete it from the database. | def dUlv(YKHO, QePW, YEnM):
YEnM.post.likeNumDreacase()
YEnM.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dUlv(YKHO, QePW, KAOR):\n pass",
"def GTsZ(YKHO, KAOR: DBModelInstance) -> None:\n YKHO.db.session.delete(KAOR)\n YKHO.db.session.commit()",
"def PTpj(YKHO, C3ST):\n YKHO._isinstance(C3ST)\n NCls.session.delete(C3ST)\n NCls.session.commit()",
"def gh39(YKHO, NCls):\n NCls.session.del... | [
"0.8424871",
"0.8344998",
"0.82534933",
"0.81192255",
"0.80443126",
"0.7871308",
"0.76889795",
"0.7527976",
"0.7499553",
"0.7461434",
"0.74297374",
"0.7339605",
"0.7284532",
"0.7284532",
"0.72660923",
"0.7239188",
"0.72197944",
"0.721441",
"0.7184722",
"0.7183686",
"0.7183686... | 0.660896 | 77 |
Given a model instance delete it from the database. | def dUlv(YKHO, QePW, YEnM):
UXbG = mv1M.objects.get(id=YEnM.From.id)
gysN = mv1M.objects.get(id=YEnM.To.id)
UXbG.following_numDe()
gysN.followed_numDe()
YEnM.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dUlv(YKHO, QePW, KAOR):\n pass",
"def GTsZ(YKHO, KAOR: DBModelInstance) -> None:\n YKHO.db.session.delete(KAOR)\n YKHO.db.session.commit()",
"def PTpj(YKHO, C3ST):\n YKHO._isinstance(C3ST)\n NCls.session.delete(C3ST)\n NCls.session.commit()",
"def gh39(YKHO, NCls):\n NCls.session.del... | [
"0.8424874",
"0.83441657",
"0.8252974",
"0.8118797",
"0.8043283",
"0.787151",
"0.7687338",
"0.7529402",
"0.7498953",
"0.74603105",
"0.7428436",
"0.7338939",
"0.72842306",
"0.72842306",
"0.72652024",
"0.7239413",
"0.7220205",
"0.72134465",
"0.7184516",
"0.71829504",
"0.7182950... | 0.0 | -1 |
returns all the lines of a text file as a list | def nSzq(gIsw):
eHNT = open(gIsw)
Nqlg = eHNT.readlines()
eHNT.close()
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HbNy(IznC):\n return []",
"def RdVV(Ux0P):\n z1Rg = []\n with open(Ux0P, 'r') as o36Q:\n for vC9B in o36Q:\n if vC9B.strip() != '':\n z1Rg.append(vC9B.strip())\n return z1Rg",
"def ZLVQ(Ux0P):\n with open(Ux0P) as apum:\n Nqlg = apum.readlines()\n r... | [
"0.81344944",
"0.8125869",
"0.81041867",
"0.80859476",
"0.8046068",
"0.80173784",
"0.7991323",
"0.7988973",
"0.7985511",
"0.797734",
"0.7971292",
"0.79502463",
"0.79288256",
"0.7900058",
"0.7878346",
"0.7857038",
"0.78480804",
"0.7839822",
"0.7824458",
"0.77895236",
"0.778639... | 0.70042753 | 87 |
Evaluate actions according to the current policy, given the observations. | def vphQ(YKHO, W061: torch.Tensor, xASv: torch.Tensor) -> AzJI[ht2j.Tensor, ht2j.Tensor, ht2j.Tensor]:
ANWL, lcvm = YKHO._get_latent(W061, pi=True, vf=True)
IZxK = YKHO._get_action_dist_from_latent(ANWL)
Vjik = IZxK.log_prob(xASv)
hkxX = YKHO.value_net(lcvm)
return (hkxX, Vjik, IZxK.entropy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeOP(YKHO, pR3T):\n pR3T = pR3T.float()\n T_oP = YKHO.policy_backbone(pR3T)\n XeOP = YKHO.action_head(T_oP)\n return XeOP",
"def vphQ(YKHO, W061: th.Tensor, xASv: th.Tensor) -> AzJI[idx7.Tensor, idx7.Tensor, idx7.Tensor]:\n W061 = YKHO.bodynet(W061)\n ANWL, lcvm, XMGD = YKHO._get_latent(W06... | [
"0.7381368",
"0.7084493",
"0.6731675",
"0.66074604",
"0.64472556",
"0.63976586",
"0.6342905",
"0.633592",
"0.6265865",
"0.62473273",
"0.619438",
"0.6188267",
"0.6177999",
"0.61156034",
"0.60967404",
"0.606553",
"0.606553",
"0.606553",
"0.6050775",
"0.6008436",
"0.5990702",
... | 0.69094974 | 2 |
Return ``g1 == g2`` for elements ``g1, g2`` of the monster. If ``mode == 0`` (default) we first try to check equality inside in the subgroup ``N_0`` of the monster, which may be considerbly faster. If ``mode != 0`` or this is not possible we check if ``v g1 g2(1) == v`` holds for the ORDER_VECTOR ``v``. We just check t... | def LPlF(IZ6w, E0Gw, Tuqy=0):
assert isinstance(IZ6w, (DJYW, l9cc))
assert isinstance(E0Gw, (DJYW, l9cc))
f_gp = oyIN.zeros(2 * (IZ6w.length + E0Gw.length) + 1, dtype=oyIN.uint32)
jGRS = zbmu(IZ6w._data, IZ6w.length, E0Gw._data, E0Gw.length, f_gp)
if jGRS < 2:
return not jGRS
Ty9i = S5ZE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVYt(MxXY, cWFu):\n return MxXY['name'] == cWFu['name'] and MxXY['modes'] == cWFu['modes']",
"def bXKz(YKHO, UXsi, c163):\n aBKI, Mztb = YKHO.get_val_tuple(UXsi)\n ji9B, PuUO = YKHO.get_val_tuple(c163)\n RImN = XHtG(*[keVH(YKHO.X[aBKI, Mztb, or8S], YKHO.X[ji9B, PuUO, or8S]) for or8S in range(0, Y... | [
"0.58660734",
"0.5732941",
"0.5382623",
"0.5361553",
"0.5015167",
"0.5008704",
"0.50012624",
"0.49450102",
"0.49424455",
"0.49338236",
"0.49311075",
"0.49178842",
"0.48852837",
"0.48629686",
"0.4853434",
"0.48532036",
"0.48286387",
"0.48214853",
"0.48145497",
"0.48128924",
"0... | 0.70979625 | 0 |
set mac address at (row, 1) | def E1wK(YKHO, rdlD, Pp4r):
YKHO.__hh_table.item(rdlD, 1).setText(Pp4r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SuKo(YKHO):\n if not YKHO.macaddr:\n return\n try:\n HCmI = [LV2M.syspaths.nsenter, '--net=' + YKHO.netns, 'ip', 'link', 'set', YKHO.final_guest_dev, 'address', YKHO.macaddr]\n U5bT, yvT9, XObx = YKHO.vcall(HCmI)\n except aTqo.excError:\n pass\n if U5bT != 0:\n re... | [
"0.6857622",
"0.65099883",
"0.65041757",
"0.63588583",
"0.6256582",
"0.6164309",
"0.6143647",
"0.6119342",
"0.6042654",
"0.60135406",
"0.59927195",
"0.59927195",
"0.5981977",
"0.59596914",
"0.5922506",
"0.5915336",
"0.59116685",
"0.58847374",
"0.5857707",
"0.5847008",
"0.5845... | 0.81970847 | 0 |
Return string representation of the order object | def zAg0(YKHO):
return f'{YKHO.order_id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.order_id",
"def zAg0(YKHO):\n return f'Order: {YKHO.size} {YKHO.drink_name} from {YKHO.shop}\\nDetails: {YKHO.details}\\nLocation: {YKHO.location}\\nContact Info: {YKHO.customer_name}, {YKHO.customer_number}'",
"def zAg0(YKHO):\n return f'Order Number: {YKHO._order_number... | [
"0.722646",
"0.72201663",
"0.7207535",
"0.7179147",
"0.71155256",
"0.70440394",
"0.70284915",
"0.6983926",
"0.6921129",
"0.68726534",
"0.6865996",
"0.6814752",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",
"0.6796412",... | 0.73897535 | 0 |
Return string representation of the OrderItem object | def zAg0(YKHO):
return str(YKHO.cost) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uN_z(YKHO, T4Wy):\n return QMSQ(T4Wy)",
"def zAg0(YKHO):\n return f'Order Number: {YKHO._order_number} Product ID: {YKHO._product_id} Item: {YKHO._item_type} Name: {YKHO._name} Quantity: {YKHO._quantity} Product details: {YKHO._product_details} '",
"def wHJl(YKHO):\n return '\\nUser ID: =%s Order ... | [
"0.7825356",
"0.7621042",
"0.74094075",
"0.73542184",
"0.719905",
"0.71791834",
"0.71791834",
"0.7125467",
"0.693799",
"0.68853915",
"0.6876146",
"0.68363357",
"0.68020844",
"0.6735689",
"0.67349124",
"0.66984046",
"0.66647446",
"0.6656859",
"0.65613115",
"0.6560528",
"0.6543... | 0.0 | -1 |
Return string representation of the Tracking object | def zAg0(YKHO):
return f'{YKHO.location}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return '{name} {status} ({tags}) {mtime}'.format(name=YKHO.name, status=YKHO.status, tags=','.join(YKHO.tags), mtime=YKHO.mtime)",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def zAg0(YKHO):\n Ebev = ', '.join(['num_satellites: ' + str(YKHO.num_satellites), 'fix_type: ' + str(... | [
"0.7124067",
"0.7034781",
"0.7028054",
"0.70272475",
"0.6974781",
"0.69585776",
"0.69516104",
"0.69109684",
"0.6890974",
"0.6890974",
"0.6890974",
"0.6890974",
"0.6890974",
"0.68829376",
"0.68808955",
"0.68808955",
"0.6853564",
"0.68514484",
"0.6832319",
"0.68317366",
"0.6798... | 0.0 | -1 |
Renders the about page. | def s7Zb():
w2B8 = Vf71.connect(N5z6, CBIr, jTXt, 'database')
N1p7 = w2B8.cursor()
N1p7.execute('SELECT COUNT(*) FROM Camera')
mLGw = N1p7.fetchone()[0]
N1p7.execute('SELECT Fingerprint.Fingerprint_Id, Fingerprint.Technology, Fingerprint.SensorLocation, Company.Name, Component.year FROM Fingerpri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85651284",
"0.85034347",
"0.844895",
"0.84050864",
"0.8394327",
"0.82936406",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.827099",
"0.82678735",
"0.82434386",
"0.823932... | 0.0 | -1 |
Renders the about page. | def m_u7():
w2B8 = Vf71.connect(N5z6, CBIr, jTXt, 'database')
N1p7 = w2B8.cursor()
N1p7.execute('SELECT COUNT(*) FROM Processor')
mLGw = N1p7.fetchone()[0]
N1p7.execute('SELECT Processor.Processor_Id, Processor.Name, Processor.CoreCount, Processor.Architecture_nm, Company.Name, Component.year FRO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def FUTq():
w2B8 = Vf71.connect(N5z6, CBIr, jTXt, 'database')
N1p7 = w2B8.cursor()
N1p7.execute('SELECT COUNT(*) FROM USBConnector')
mLGw = N1p7.fetchone()[0]
N1p7.execute('SELECT USBConnector.USBConnector_Id, USBConnector.FormStandart, USBConnector.SpeedStandart, USBConnector.ChargingStandart, Comp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def Vjhr():
w2B8 = Vf71.connect(N5z6, CBIr, jTXt, 'database')
N1p7 = w2B8.cursor()
N1p7.execute('SELECT COUNT(*) FROM Screen')
mLGw = N1p7.fetchone()[0]
N1p7.execute('SELECT Screen.Screen_Id, Screen.Resolution, Screen.Diagonal, Screen.Ratio, Screen.DisplayType, Screen.GlassType, Company.Name, Compon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Create a new InputExample. | def FIMM(YKHO, Artt, PKBr, ZZRG=None, UXqs=None, KeL5=None, e5kH: Optional[Dict]=None, or8S=-1):
YKHO.guid = Artt
YKHO.text_a = PKBr
YKHO.text_b = ZZRG
YKHO.label = UXqs
YKHO.logits = KeL5
YKHO.idx = or8S
YKHO.meta = e5kH if e5kH else {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1zj(YKHO, hGN5, TG_K):\n return xeAK(content=hGN5, processor=YKHO)",
"def vWdF(YKHO, mWFP, zVa7, qUQs=None, JBZA=None):\n if not JBZA:\n JBZA = mWFP\n pmON = 'inputs/'\n nPrm = {'name': mWFP, 'service': zVa7, 'format': qUQs, 'description': JBZA}\n geh0 = YKHO._loggly_post(pmON, nPrm)\n... | [
"0.748511",
"0.66674155",
"0.650948",
"0.65067023",
"0.6451835",
"0.64472896",
"0.62072486",
"0.617486",
"0.61218333",
"0.61064744",
"0.60964704",
"0.5946348",
"0.5892325",
"0.58335555",
"0.572454",
"0.5700276",
"0.5672969",
"0.5669564",
"0.56506574",
"0.56348044",
"0.5628222... | 0.0 | -1 |
Serialize this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.85705614",
"0.8489506",
"0.8483257",
"0.8405309",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.8390355",
"0.8388496",
"0.83509785",
"0.83370554",
"0.831165",
"0.8303297",
"0.8290091",
"0.82854676",
"0.82784045",
"0.82483166",
"0.82... | 0.0 | -1 |
Serialize this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.906579",
"0.89350706",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.88283694",
"0.8805552",
"0.8763156",
"0.8707908",
"0.86420715",
"0.863601",
"0.863601",
"0.8541049",
"0.85313785",
"0.852... | 0.0 | -1 |
Serialize this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.85705614",
"0.8489506",
"0.8483257",
"0.8405309",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.83966506",
"0.8390355",
"0.8388496",
"0.83509785",
"0.83370554",
"0.831165",
"0.8303297",
"0.8290091",
"0.82854676",
"0.82784045",
"0.82483166",
"0.82... | 0.0 | -1 |
Serialize this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.906579",
"0.89350706",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.89004624",
"0.88283694",
"0.8805552",
"0.8763156",
"0.8707908",
"0.86420715",
"0.863601",
"0.863601",
"0.8541049",
"0.85313785",
"0.852... | 0.0 | -1 |
returns a string that includes the name of the model as well as the sizes of the dictionaries for each feature of the text | def wHJl(YKHO):
Qj_h = 'text model name: ' + str(YKHO.name) + '\n'
Qj_h += ' number of words: ' + str(len(YKHO.words)) + '\n'
Qj_h += ' number of word lengths: ' + str(len(YKHO.word_lengths)) + '\n'
Qj_h += ' number of stems: ' + str(len(YKHO.stems)) + '\n'
Qj_h += ' number of sentence lengths: ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n KCHu = 'text model name: ' + YKHO.name + '\\n'\n KCHu += 'number of words: ' + str(len(YKHO.words)) + '\\n'\n KCHu += 'number of word lengths: ' + str(len(YKHO.word_lengths)) + '\\n'\n KCHu += 'number of word stems: ' + str(len(YKHO.stems)) + '\\n'\n KCHu += 'number of sentence len... | [
"0.66683024",
"0.6620088",
"0.6487179",
"0.6437745",
"0.64289606",
"0.6009378",
"0.5992558",
"0.5914708",
"0.58534557",
"0.5833552",
"0.5801162",
"0.5781872",
"0.5741748",
"0.5740339",
"0.57244414",
"0.5698094",
"0.56868947",
"0.56865036",
"0.5677728",
"0.56711304",
"0.562563... | 0.614236 | 5 |
Set the user ID for later use in logging. | def zF8s(PObu):
WY3t.user_id = PObu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suQC(YKHO, QTiD):\n YKHO.authentication.userId = QTiD",
"def r2U1(YKHO, r2U1):\n YKHO._id_user = r2U1",
"def CBIr(YKHO, CBIr):\n YKHO.user_id = CBIr.get_id()",
"def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO",
"def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO",
"def uJjO(YKHO, uJjO):\n YK... | [
"0.8000985",
"0.7696615",
"0.7558133",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7510105",
"0.7469039",
"0.7024879",
"0.6970846",
"0.6925725",
"... | 0.8480165 | 0 |
Constructs an iterable that produces ndarrays of length chunksize along axis during iteration. This constructor returns an object that is capable of producing ndarrays or masked ndarrays during iteration from a single ndarray, a sequence of ndarrays, a file Reader instance (see io.bases.Reader), an ndarray generating f... | def vznG(nPrm: Union[npt.NDArray, Iterable[npt.NDArray], Reader, Callable, 'Producer'], ym_X: int, jDK_: int, ROpF: Optional[Sequence[int]]=None, ZHfW: Optional[npt.NDArray[np.bool_]]=None, **B2fa) -> 'Producer':
if isinstance(nPrm, wo1J):
nPrm.chunksize = int(ym_X)
nPrm.axis = jDK_
Aofo = n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n EV1I = range(0, YKHO.data.shape[YKHO.axis], YKHO.chunksize)\n for a1PO in igF0(EV1I, EV1I[1:], fillvalue=None):\n yield YKHO.data[YKHO._slice(*a1PO)]",
"def O2Hj(YKHO, u54L, yHH9):\n\n def OVA0():\n NRcB = YKHO.read(u54L)\n while True:\n yield oyIN.array... | [
"0.6789393",
"0.6332963",
"0.63003314",
"0.62977606",
"0.6274974",
"0.62420475",
"0.62190837",
"0.6187168",
"0.6121597",
"0.60739815",
"0.60720617",
"0.60654736",
"0.59876305",
"0.59682846",
"0.596393",
"0.5900003",
"0.5893279",
"0.5889684",
"0.5889684",
"0.5889684",
"0.58753... | 0.0 | -1 |
Pads the edges of a producer along its axis. | def EFik(eucu, hVLt, BWXx):
UP6E = [hVLt, hVLt] if isinstance(hVLt, int) else hVLt
def PBzS():
sSaK, mHFx = (list(eucu.shape), list(eucu.shape))
sSaK[eucu.axis] = UP6E[0]
mHFx[eucu.axis] = UP6E[1]
LFlW = BWXx * oyIN.ones(sSaK)
_tIi = BWXx * oyIN.ones(mHFx)
yield ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mzkS(YKHO, hVLt):\n _mSQ = []\n for tpio, M_DK in zip([0, 1], [YKHO.x, YKHO.y]):\n _Q98 = oyIN.mean(M_DK)\n XcU5 = M_DK[-1] - M_DK[0]\n pImw = oyIN.abs(M_DK - _Q98)\n ug3y = oyIN.ones_like(pImw)\n ug3y[pImw >= XcU5 / 2 - hVLt] = 0\n _mSQ += [ug3y]\n YKHO.weigh... | [
"0.60306835",
"0.5613865",
"0.5581342",
"0.5507449",
"0.5410015",
"0.5379686",
"0.52002054",
"0.51807445",
"0.51807445",
"0.51807445",
"0.51533556",
"0.51392597",
"0.5128504",
"0.51269317",
"0.5001935",
"0.4997942",
"0.4984185",
"0.49738342",
"0.49708384",
"0.49404427",
"0.49... | 0.6184286 | 0 |
Return the summed shape of all arrays in this Reader. | def ROpF(YKHO):
KCHu = list(YKHO.data.shape)
KCHu[YKHO.axis] = YKHO.stop - YKHO.start
return tuple(KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO, MZMe=True):\n return oyIN.shape(YKHO.getData(squeeze=MZMe))",
"def ROpF(YKHO):\n return YKHO.array.shape",
"def ROpF(YKHO):\n return YKHO.to_array().shape",
"def DzzZ(YKHO):\n return oyIN.sum([Z9rn.flat_dim for Z9rn in YKHO.spaces])",
"def ROpF(YKHO):\n return YKHO._fl.h5['raw... | [
"0.665812",
"0.6547979",
"0.6491248",
"0.643544",
"0.6197677",
"0.61951464",
"0.61946195",
"0.61946195",
"0.61946195",
"0.61946195",
"0.61946195",
"0.61823606",
"0.6180591",
"0.6180591",
"0.6180591",
"0.6150183",
"0.6113065",
"0.6109417",
"0.61081374",
"0.6087976",
"0.6070234... | 0.0 | -1 |
Builds an iterator yielding channels x chunksize shape arrays. | def Vs4Q(YKHO):
YKHO.data.open()
EV1I = oyIN.arange(YKHO.start, YKHO.stop, YKHO.chunksize)
for jzdc, Fg_i in igF0(EV1I, EV1I[1:], fillvalue=YKHO.stop):
yield YKHO.data.read(jzdc, Fg_i, **YKHO.kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IWA_(oHE7, Ep8u):\n while True:\n Wb6I = oyIN.zeros(Ep8u, dtype=oyIN.uint32)\n oY9z = oyIN.zeros((Ep8u, 1), dtype=oyIN.uint32)\n for d6pt in range(Ep8u):\n Wb6I[d6pt], oY9z[d6pt] = next(oHE7)\n yield (Wb6I, oY9z)",
"def WaSS(YKHO, ztRo, fz7m=True, Rf07=None):\n Rf... | [
"0.67250186",
"0.6707856",
"0.66859204",
"0.6675714",
"0.6631963",
"0.6523324",
"0.646521",
"0.6427537",
"0.6418558",
"0.6413535",
"0.64072627",
"0.63933897",
"0.6373873",
"0.63687015",
"0.6358571",
"0.61694705",
"0.6151814",
"0.6146733",
"0.6145469",
"0.6140955",
"0.6090184"... | 0.6007306 | 26 |
The cumulative shape of this Producers data array. | def ROpF(YKHO):
return YKHO.data.shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.to_array().shape",
"def ROpF(YKHO):... | [
"0.7243002",
"0.7243002",
"0.7243002",
"0.7243002",
"0.7243002",
"0.72139275",
"0.7188304",
"0.7188304",
"0.7188304",
"0.707229",
"0.69159615",
"0.68996036",
"0.6856044",
"0.68528366",
"0.6843658",
"0.6838505",
"0.68095094",
"0.68059075",
"0.67330855",
"0.67330855",
"0.671081... | 0.7160669 | 9 |
Returns an iterator yielding ndarrays of chunksize along axis. | def Vs4Q(YKHO):
EV1I = range(0, YKHO.data.shape[YKHO.axis], YKHO.chunksize)
for a1PO in igF0(EV1I, EV1I[1:], fillvalue=None):
yield YKHO.data[YKHO._slice(*a1PO)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tOBQ(ezWE, zNig: int):\n for YRbF in range(0, len(ezWE), zNig):\n yield ezWE[YRbF:YRbF + zNig]",
"def oDqX(ezWE, ztRo):\n BOvI = len(ezWE)\n if BOvI < ztRo:\n raise ValueError('The array length (%d) must be larger than the chunk size (%d)' % (len(ezWE), ztRo))\n N1p7 = 0\n while ... | [
"0.73318124",
"0.7075843",
"0.7073167",
"0.7024158",
"0.69815487",
"0.6875267",
"0.6709818",
"0.6670601",
"0.6641019",
"0.6580787",
"0.65085125",
"0.64978844",
"0.64842916",
"0.6466276",
"0.6465442",
"0.64632857",
"0.64310956",
"0.64310956",
"0.64310956",
"0.6417277",
"0.6394... | 0.70312315 | 3 |
Returns the summed shape of arrays in this Producer. | def ROpF(YKHO):
return YKHO._shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO):\n return YKHO.to_array().shape",
"def ROpF(YKHO):\n return YKHO.array.shape",
"def ROpF(YKHO, MZMe=True):\n return oyIN.shape(YKHO.getData(squeeze=MZMe))",
"def maxY(YKHO) -> oyIN.ndarray:\n return YKHO.shape.prod(axis=0)",
"def ROpF(YKHO):\n YKHO._check_assigned()\n if YK... | [
"0.7142792",
"0.711804",
"0.6929528",
"0.6776699",
"0.6746011",
"0.67028475",
"0.67023444",
"0.66889",
"0.6651087",
"0.6635456",
"0.6624297",
"0.6624297",
"0.6624297",
"0.6624297",
"0.6624297",
"0.66183615",
"0.6609032",
"0.6609032",
"0.66041833",
"0.6583735",
"0.6567385",
... | 0.60854274 | 74 |
Returns an iterator yielding ndarrays of chunksize along axis. Since the shape of the arrays yielded from the generating function (i.e. data) may be very small compared to chunksize, we store generated arrays to a temporary array to reduce the number of fifo 'put' calls (see note in FIFOArray.put). | def Vs4Q(YKHO):
AWqv = JzP9(YKHO.chunksize, YKHO.axis)
jbXL = []
uLem = 0
for peEM in YKHO.data(**YKHO.kwargs):
jbXL.append(peEM)
uLem += peEM.shape[YKHO.axis]
if uLem >= YKHO.chunksize:
ezWE = oyIN.concatenate(jbXL, axis=YKHO.axis)
AWqv.put(ezWE)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tOBQ(ezWE, zNig: int):\n for YRbF in range(0, len(ezWE), zNig):\n yield ezWE[YRbF:YRbF + zNig]",
"def eHxA(qw7D, zNig: int):\n for YRbF in range(0, len(qw7D), zNig):\n yield qw7D[YRbF:YRbF + zNig]",
"def oDqX(ezWE, ztRo):\n BOvI = len(ezWE)\n if BOvI < ztRo:\n raise ValueEr... | [
"0.6992089",
"0.6900754",
"0.6792408",
"0.6608984",
"0.65759915",
"0.6569415",
"0.6560407",
"0.655808",
"0.65408766",
"0.65207744",
"0.6476222",
"0.6457231",
"0.643329",
"0.6414242",
"0.63855255",
"0.6358552",
"0.6290567",
"0.6253341",
"0.6250967",
"0.62419",
"0.62262493",
... | 0.7121666 | 0 |
Sets face tracker to just head and starts. | def JoYa():
YKHO.track.setWholeBodyOn(False)
YKHO.track.startTracker() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JoYa(YKHO):\n YKHO.track.setWholeBodyOn(False)\n YKHO.track.startTracker()",
"def RQri(I6m8):\n nx2C = 'Face'\n hrB1 = I6m8\n Edrf.registerTarget(nx2C, hrB1)\n Edrf.track(nx2C)",
"def zv62(YKHO):\n YKHO.fan = (YKHO.position.x, YKHO.position.y, YKHO.position.z)",
"def Grzi(YKHO):\n ... | [
"0.7231593",
"0.6692019",
"0.6471274",
"0.6158261",
"0.60427535",
"0.59131914",
"0.5786792",
"0.57801205",
"0.57416546",
"0.5665318",
"0.5646576",
"0.55611765",
"0.5511766",
"0.5511766",
"0.55116904",
"0.5502947",
"0.5489433",
"0.5488704",
"0.5476716",
"0.5412752",
"0.5361020... | 0.7319472 | 0 |
Flushes data from ORM Session into DB, but does not commit transaction | def RFOL(YKHO):
if not YKHO.is_active:
return
YKHO._orm_session.flush() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSYO(YKHO):\n YKHO.session.commit()",
"def ipZT(YKHO):\n if YKHO.__session is not None:\n YKHO.__session.commit()",
"def jSYO(YKHO):\n try:\n YKHO.session.commit()\n except:\n YKHO.session.rollback()\n raise\n finally:\n YKHO.session.remove()",
"def D8MR(... | [
"0.7524094",
"0.75122565",
"0.7408665",
"0.73853624",
"0.7330973",
"0.7265482",
"0.7238094",
"0.7169909",
"0.7111744",
"0.70777774",
"0.6964285",
"0.6961208",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6935387",
"0.6924248",
... | 0.7542106 | 0 |
Rolls transaction back, closes the connection, deletes session Executes deferred queries | def FFhn(YKHO):
YKHO._orm_session.close()
YKHO._db_transaction.rollback()
YKHO._db_connection.close()
YKHO._db_engine = None
YKHO._db_connection = None
YKHO._db_transaction = None
YKHO._orm_session = None
YKHO._orm_session_proxy = None
YKHO.__is_connected = False
YKHO._execute_de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HuIG(YKHO):\n if YKHO.__session is not None:\n YKHO._rollback()\n YKHO.__session.close()",
"def x9p9(YKHO):\n YKHO.session.execute(lUer)\n YKHO.session.execute(Ri08)\n YKHO.session.execute(GdKG)\n YKHO.session.shutdown()\n YKHO.cluster.shutdown()",
"def tBIc(YKHO):\n NCls... | [
"0.7965251",
"0.7370838",
"0.7351586",
"0.7351586",
"0.73511994",
"0.7346281",
"0.73079467",
"0.7303325",
"0.72930247",
"0.7269267",
"0.7266709",
"0.71805906",
"0.71805906",
"0.71805906",
"0.71805906",
"0.71805906",
"0.71805906",
"0.7158354",
"0.7158354",
"0.7158354",
"0.7158... | 0.7155602 | 25 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YK... | [
"0.79568833",
"0.79042006",
"0.78795445",
"0.7577913",
"0.7570969",
"0.74478436",
"0.7361023",
"0.72697705",
"0.721816",
"0.71451885",
"0.7106998",
"0.7101183",
"0.69837016",
"0.68905056",
"0.68842727",
"0.6755663",
"0.6712557",
"0.6677425",
"0.64961654",
"0.6488678",
"0.6486... | 0.71984994 | 17 |
Return the current size of internal memory. | def szAg(YKHO):
return len(YKHO.memory) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4(YKHO) -> int:\n return len(YKHO.mem)",
"def R8e4(YKHO):\n return YKHO.bf.memory()",
"def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024",
"def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0",
"def ... | [
"0.8571074",
"0.8215767",
"0.8198132",
"0.80832005",
"0.8020808",
"0.7889389",
"0.78188926",
"0.7797308",
"0.778622",
"0.775998",
"0.77557904",
"0.7751391",
"0.7751391",
"0.7750454",
"0.77327937",
"0.77303255",
"0.7716953",
"0.77102315",
"0.770489",
"0.77028936",
"0.7694357",... | 0.7512535 | 58 |
Initialize a new linked list containing the given items. The first node in the linked list contains the first item in . | def FIMM(YKHO, DumB):
if len(DumB) == 0:
YKHO._first = None
YKHO._rest = None
else:
YKHO._first = DumB[0]
YKHO._rest = hD6b(DumB[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DumB):\n if len(DumB) == 0:\n YKHO._first = None\n else:\n YKHO._first = NSB4(DumB[0])\n ZbOB = YKHO._first\n for ZfUD in DumB[1:]:\n ZbOB.next = NSB4(ZfUD)\n ZbOB = ZbOB.next",
"def FIMM(YKHO, DumB: list) -> None:\n if DumB == []:\n ... | [
"0.83739454",
"0.7514045",
"0.74844074",
"0.7438117",
"0.70560646",
"0.6919856",
"0.67227983",
"0.6710322",
"0.6697007",
"0.66781634",
"0.6622026",
"0.65524465",
"0.65173554",
"0.6469273",
"0.6463215",
"0.64528155",
"0.64364386",
"0.64092153",
"0.6385144",
"0.63465625",
"0.63... | 0.77780277 | 1 |
Return a string representation of this list.. | def zAg0(YKHO):
if YKHO.is_empty():
return ''
elif YKHO._rest.is_empty():
return str(YKHO._first)
else:
return str(YKHO._first) + ' -> ' + str(YKHO._rest) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return list.__str__(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.list)",
"def zAg0(YKHO):\n VDwR = ''\n for ZfUD in YKHO._data:\n VDwR += ZfUD + ', '\n return VDwR",
"def zAg0(YKHO):\n return str(YKHO._items)",
"def zAg0(YKHO):\n return str(YKHO._items)",
"def ... | [
"0.86202544",
"0.8610948",
"0.8468983",
"0.81464577",
"0.81464577",
"0.81375015",
"0.81356204",
"0.80702037",
"0.8061988",
"0.80578315",
"0.8041885",
"0.8037674",
"0.8032055",
"0.80208266",
"0.79895604",
"0.7986561",
"0.79465926",
"0.793586",
"0.7931003",
"0.7913355",
"0.7861... | 0.0 | -1 |
Return the number of elements in this list. | def szAg(YKHO):
if YKHO.is_empty():
return 0
else:
return 1 + len(YKHO._rest) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return len(YKHO._elements)",
"def K7Nc(YKHO):\n return YKHO.__elements_count",
"def zNig(YKHO):\n return len(YKHO.__list)",
"def u54L(YKHO):\n return YKHO.list.length",
"def u54L(YKHO):\n return YKHO.list.length",
"def u54L(YKHO):\n return YKHO.list.length()",
"def u... | [
"0.8620139",
"0.85498166",
"0.8404856",
"0.8353044",
"0.8353044",
"0.8343641",
"0.83196473",
"0.83028656",
"0.82684606",
"0.823719",
"0.82363766",
"0.8168629",
"0.8153449",
"0.81066203",
"0.80099356",
"0.80092716",
"0.798027",
"0.795783",
"0.79575956",
"0.79537654",
"0.792667... | 0.0 | -1 |
Return the item at position in this list. Raise IndexError if is >= the length of this list. | def OP2O(YKHO, d6pt):
if YKHO.is_empty():
raise IndexError
elif d6pt == 0:
return YKHO._first
else:
return YKHO._rest.__getitem__(d6pt - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n if d6pt >= YKHO.size:\n raise KeyError\n else:\n return YKHO._get_item(d6pt)",
"def d6pt(YKHO, oeNL):\n for YRbF, exwG in enumerate(YKHO):\n if YRbF == oeNL:\n return exwG\n raise Exception('Index out of bounds.')",
"def OP2O(YKHO, d6pt):\n ... | [
"0.73907965",
"0.7234179",
"0.72274953",
"0.7205998",
"0.7055814",
"0.6988862",
"0.6963134",
"0.6923716",
"0.6890209",
"0.67586404",
"0.67405874",
"0.6735674",
"0.67258435",
"0.67128664",
"0.6694371",
"0.6689126",
"0.66620046",
"0.6611584",
"0.66048783",
"0.65747166",
"0.6573... | 0.6776045 | 9 |
Insert item at the front of the list. This should work even if the list is empty. | def mOHz(YKHO, ZfUD):
if YKHO.is_empty():
YKHO._first = ZfUD
YKHO._rest = hD6b([None])
else:
S06t = hD6b([YKHO._first])
S06t._rest = YKHO._rest
YKHO._first = ZfUD
YKHO._rest = S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZK_O(YKHO, ZfUD):\n YKHO.sentinel.insertAfter(ZfUD)\n YKHO.N += 1",
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def qIuc(YKHO, ZfUD: Any):\n YKHO.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.linked_list.prepend(ZfUD)",
... | [
"0.7911474",
"0.78546184",
"0.7721473",
"0.7700689",
"0.74843067",
"0.74464387",
"0.73828757",
"0.7262133",
"0.7105635",
"0.6873347",
"0.6840967",
"0.6835015",
"0.6774851",
"0.6744693",
"0.67113084",
"0.66966283",
"0.6675408",
"0.66508096",
"0.6615109",
"0.6572021",
"0.654042... | 0.7611948 | 4 |
Insert item in to the list at position . Raise an IndexError if index is > the length of the list. Note that it is possible to add to the end of the list (when index == len(self)). | def JPHp(YKHO, d6pt, ZfUD):
if d6pt > len(YKHO):
raise IndexError
elif d6pt == 0:
YKHO.insert_first(ZfUD)
else:
YKHO._rest.insert(d6pt - 1, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, d6pt, ZfUD):\n pJsJ = d6pt <= len(YKHO) and d6pt >= -len(YKHO)\n try:\n if not pJsJ:\n raise IndexError\n if YKHO.count == YKHO.capacity:\n YKHO._resize(2 * YKHO.capacity)\n if d6pt < 0:\n d6pt = d6pt + len(YKHO)\n for YRbF in range(... | [
"0.8071151",
"0.80658376",
"0.8052258",
"0.80156034",
"0.7884237",
"0.7812524",
"0.7785804",
"0.76542145",
"0.7635252",
"0.76222324",
"0.7612091",
"0.74901724",
"0.74399555",
"0.7413813",
"0.7359655",
"0.73120105",
"0.72784495",
"0.7094499",
"0.7009153",
"0.6994207",
"0.69889... | 0.8356974 | 0 |
Calculate the DamerauLevenshtein distance between sequences. This distance is the number of additions, deletions, substitutions, and transpositions needed to transform the first sequence into the second. Although generally used with strings, any sequences of comparable objects will work. Transpositions are exchanges of... | def xbQw(wxdF, O48g):
oInn = None
zvgq = list(range(1, len(O48g) + 1)) + [0]
for WKvO in range(len(wxdF)):
h6_P, oInn, zvgq = (oInn, zvgq, [0] * len(O48g) + [WKvO + 1])
for LVAh in range(len(O48g)):
XTbL = oInn[LVAh] + 1
hgol = zvgq[LVAh - 1] + 1
O_2T = oI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8SG(j93S, Nqp_):\n BfDw.check_for_none(j93S, Nqp_)\n BfDw.check_for_type(str, j93S, Nqp_)\n MxXY, cWFu = (len(j93S), len(Nqp_))\n iZKH = MxXY + cWFu\n _Mvv = oRi_(int)\n TifC = [[0] * (cWFu + 2) for bGrB in range(MxXY + 2)]\n TifC[0][0] = iZKH\n for YRbF in range(0, MxXY + 1):\n ... | [
"0.7603492",
"0.74501896",
"0.7320772",
"0.73012006",
"0.72565913",
"0.72565764",
"0.7233742",
"0.71123683",
"0.71123683",
"0.7071723",
"0.7062248",
"0.6847205",
"0.6774567",
"0.6754094",
"0.67290765",
"0.6726821",
"0.668258",
"0.6673137",
"0.6654019",
"0.66037554",
"0.653116... | 0.7130786 | 7 |
Convert pydantic object to pandas dataframe with 1 row. | def xpSY(YKHO):
return rLdf.DataFrame([dict(YKHO)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpSY(YKHO):\n return rLdf.DataFrame([dict(YKHO)])",
"def xpSY(YKHO):\n from ..df import DataFrame\n return DataFrame(YKHO)",
"def zqFD(YKHO):\n nPrm = {}\n for ZWCE in YKHO.data[0]:\n arKL = []\n if ZWCE in ei4T:\n for DumB in YKHO.data[0][ZWCE]:\n arK... | [
"0.75817996",
"0.7210344",
"0.7195528",
"0.7187567",
"0.71487796",
"0.7104129",
"0.71013093",
"0.7047505",
"0.69818395",
"0.6981776",
"0.6981776",
"0.69500226",
"0.6906501",
"0.68661636",
"0.68262136",
"0.681778",
"0.67798555",
"0.67733806",
"0.6754019",
"0.673979",
"0.672651... | 0.75378114 | 5 |
creates a hot vector of an atom type | def bruv(YKHO, LihS: str):
ybSJ = oyIN.zeros(22)
or8S = YKHO.dict_atoms_simple[LihS]
ybSJ[or8S] = 1
return ybSJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kefl(QyVM, exwG):\n he6J = oyIN.zeros(exwG)\n he6J[QyVM] = 1\n return he6J",
"def kj8B(Ty9i):\n exwG = len(Ty9i)\n r8hN = max(Ty9i) + 1\n yvT9 = oyIN.zeros((exwG, r8hN))\n yvT9[oyIN.arange(exwG), Ty9i] = 1\n return yvT9",
"def bszC(he6J, r8hN=0):\n exwG = he6J.shape[0]\n if r8... | [
"0.65515584",
"0.64342755",
"0.6431607",
"0.6298604",
"0.62674636",
"0.62252426",
"0.6173745",
"0.6168766",
"0.6096443",
"0.60652435",
"0.6063281",
"0.6023734",
"0.6019546",
"0.59940034",
"0.598831",
"0.59744394",
"0.5963999",
"0.5954198",
"0.594281",
"0.59369165",
"0.5905558... | 0.77975243 | 0 |
Make the polyline from a list of pairs with point coordinates | def FIMM(YKHO, jNOo, mWFP=None):
YKHO.points = [PvyL(Z9rn[0], Z9rn[1], None if mWFP is None else '{}[{}]'.format(mWFP, YRbF)) for YRbF, Z9rn in enumerate(jNOo)]
YKHO.line_segments = [XjZw(EBgd, HpuQ) for EBgd, HpuQ in zip(YKHO.points[:-1], YKHO.points[1:])]
YKHO.line_segments.append(XjZw(YKHO.points[-1], YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y5AT(YKHO, ywdi, Emd4=None, _Cnz=None, o8Kj=None):\n pB3N = YKHO._meta.make_payload(Emd4, _Cnz, o8Kj)\n WCqh = ' '.join(('%s,%s' % (WKvO, LVAh) for WKvO, LVAh in ywdi))\n YKHO.elements.append('<polyline points=\"%s\" %s/>' % (WCqh, pB3N))\n return YKHO",
"def Y5AT(YKHO, ywdi, Emd4=None, _Cnz=None... | [
"0.7450342",
"0.7450342",
"0.67984396",
"0.65841687",
"0.6323785",
"0.6168418",
"0.616385",
"0.6136686",
"0.60994154",
"0.6071925",
"0.602593",
"0.5994542",
"0.5985137",
"0.5977755",
"0.5938596",
"0.5903141",
"0.57944757",
"0.5788209",
"0.5778316",
"0.5760798",
"0.5733045",
... | 0.0 | -1 |
Gets and sets the displayName | def qQNS(YKHO):
if 'displayName' in YKHO._prop_dict:
return YKHO._prop_dict['displayName']
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)",
"def qQNS(YKHO):\n return YKHO.settings['displayName']",
"def y02X(YKHO):\n if not YKHO._displayName:\n return VX5F.text.pretty(YKHO.objectName())\n return YKHO._displayName",
"def y02X(YKHO):\n return YKHO.tr(YKHO.name... | [
"0.8024549",
"0.79686785",
"0.770907",
"0.7293372",
"0.7293372",
"0.7293372",
"0.72066224",
"0.71439695",
"0.7096268",
"0.70412254",
"0.70148575",
"0.69626147",
"0.69534314",
"0.69334805",
"0.69321233",
"0.69321233",
"0.69321233",
"0.69321233",
"0.69321233",
"0.69321233",
"0.... | 0.80308217 | 4 |
Gets and sets the onPremisesLastSyncDateTime | def CQtg(YKHO):
if 'onPremisesLastSyncDateTime' in YKHO._prop_dict:
return qcWV.strptime(YKHO._prop_dict['onPremisesLastSyncDateTime'].replace('Z', ''), '%Y-%m-%dT%H:%M:%S.%f')
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HHSJ(YKHO):\n return YKHO.app.sync_thread.last_sync.strftime('%H:%M')",
"def OEc9(YKHO):\n return YKHO.get_sync_time()",
"def mRue(YKHO):\n if 'onPremisesSyncEnabled' in YKHO._prop_dict:\n return YKHO._prop_dict['onPremisesSyncEnabled']\n else:\n return None",
"def mRue(YKHO):\n... | [
"0.6325699",
"0.587589",
"0.5858154",
"0.5858154",
"0.5850004",
"0.57757026",
"0.57757026",
"0.5724789",
"0.5687654",
"0.5652039",
"0.5625669",
"0.55714643",
"0.55631775",
"0.554318",
"0.5526351",
"0.5519201",
"0.5501846",
"0.5501846",
"0.5501846",
"0.5501846",
"0.5501846",
... | 0.80928105 | 1 |
Gets and sets the postalCode | def kAHQ(YKHO):
if 'postalCode' in YKHO._prop_dict:
return YKHO._prop_dict['postalCode']
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAHQ(YKHO):\n return YKHO._postal_code",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'postal_code')",
"def ... | [
"0.8068069",
"0.7782636",
"0.7782636",
"0.7782636",
"0.7749391",
"0.7616022",
"0.7616022",
"0.7616022",
"0.7592657",
"0.750524",
"0.73879284",
"0.71881807",
"0.71881807",
"0.6699865",
"0.66058904",
"0.66058904",
"0.66058904",
"0.6463677",
"0.6463677",
"0.64158225",
"0.6307012... | 0.783056 | 2 |
Gets and sets the privacyProfile | def dcN7(YKHO):
if 'privacyProfile' in YKHO._prop_dict:
if isinstance(YKHO._prop_dict['privacyProfile'], tKe4):
return YKHO._prop_dict['privacyProfile']
else:
YKHO._prop_dict['privacyProfile'] = xVCz(YKHO._prop_dict['privacyProfile'])
return YKHO._prop_dict['priva... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bgf_(YKHO):\n w2IS = '/profile'\n return YKHO.get_request(w2IS)",
"def Ykw5(YKHO):\n return YKHO.user.profile",
"def iszr(YKHO):\n YKHO.profile = o1rm(YKHO, YKHO._getProfile())\n return YKHO.profile",
"def z39Z(YKHO) -> SYRW:\n return YKHO._profile",
"def z39Z(YKHO) -> SYRW:\n retu... | [
"0.5970012",
"0.5945452",
"0.57073313",
"0.5657435",
"0.5657435",
"0.56528354",
"0.5645841",
"0.5632789",
"0.56322527",
"0.55798125",
"0.555526",
"0.5460383",
"0.54457045",
"0.54457045",
"0.5418339",
"0.53700995",
"0.536092",
"0.53463423",
"0.53403723",
"0.5308688",
"0.530533... | 0.7585365 | 0 |
Gets and sets the mobileDeviceManagementAuthority | def yBif(YKHO):
if 'mobileDeviceManagementAuthority' in YKHO._prop_dict:
if isinstance(YKHO._prop_dict['mobileDeviceManagementAuthority'], tKe4):
return YKHO._prop_dict['mobileDeviceManagementAuthority']
else:
YKHO._prop_dict['mobileDeviceManagementAuthority'] = nHc7(YKHO._pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qac8(YKHO, KAOR):\n return KAOR.user.profile.phone_mobile",
"def xewU(YKHO):\n if 'mobilePhone' in YKHO._prop_dict:\n return YKHO._prop_dict['mobilePhone']\n else:\n return None",
"def xewU(YKHO):\n if 'mobilePhone' in YKHO._prop_dict:\n return YKHO._prop_dict['mobilePhone'... | [
"0.4749059",
"0.4726899",
"0.4726899",
"0.4723475",
"0.4704215",
"0.46767765",
"0.4548445",
"0.4494811",
"0.44466412",
"0.44466412",
"0.44455937",
"0.4413021",
"0.43985566",
"0.43943882",
"0.43872052",
"0.437152",
"0.4362718",
"0.43555802",
"0.43432292",
"0.43409374",
"0.4315... | 0.8321553 | 0 |
Funcion que devuelve la fecha del primer dia del mes actual. Devuelve el dia en formato "DDMMAAAA" | def UAd2():
return qcWV.now().replace(day=1).strftime('%d-%m-%Y') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7dq(gcB0, ZJB9, e6QR):\n sr0s = str(e6QR).strip()\n WHqj = str(ZJB9).strip()\n MsJr = str(gcB0).strip()\n if len(sr0s) < 2:\n sr0s = '0' + sr0s\n if len(WHqj) < 2:\n WHqj = '0' + WHqj\n for YRbF in range(len(MsJr), 4):\n MsJr = '0' + MsJr\n return MsJr + WHqj + sr0s",... | [
"0.6496175",
"0.64490044",
"0.63400143",
"0.6004199",
"0.59996355",
"0.5952692",
"0.59268695",
"0.58738315",
"0.58698136",
"0.5854765",
"0.57998514",
"0.5763149",
"0.56906253",
"0.5683145",
"0.5677522",
"0.5669117",
"0.56245005",
"0.56225246",
"0.5615562",
"0.556611",
"0.5554... | 0.5929421 | 6 |
Appends the value to the end of the list. TC O(n) | def SStx(YKHO, BWXx):
Q6kx = o7DN(BWXx)
if YKHO._head is None:
YKHO._head = Q6kx
else:
jvSB = YKHO._head
while jvSB.next:
jvSB = jvSB.next
jvSB.next = Q6kx
YKHO._size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, BWXx):\n if len(YKHO.data) >= exwG:\n YKHO.data.pop(0)\n YKHO.data.append(BWXx)",
"def SStx(YKHO, BWXx):\n YKHO[YKHO._end] = BWXx\n YKHO._end = (YKHO._end + 1) % YKHO._capacity\n if YKHO.full:\n YKHO._begin = (YKHO._begin + 1) % YKHO._capacity\n else:\n YKHO.... | [
"0.7441601",
"0.7363866",
"0.7253847",
"0.72339904",
"0.72152793",
"0.71948224",
"0.7186598",
"0.7166907",
"0.71407425",
"0.71220237",
"0.70733374",
"0.7057021",
"0.7005724",
"0.69752955",
"0.69504946",
"0.6940135",
"0.687311",
"0.68321306",
"0.68263435",
"0.6825064",
"0.6819... | 0.6793736 | 22 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in Ni9Y(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.80384505",
"0.7923974",
"0.7922437",
"0.78840655",
"0.7876414",
"0.78148615",
"0.77646214",
"0.77549404",
"0.7743152",
"0.77308774",
"0.7727943",
"0.7724056",
"0.77018046",
"0.7688052",
"0.7688052",
"0.76631814",
"0.7656124",
"0.76548743",
"0.76548743",
"0.76449037",
"0.76... | 0.0 | -1 |
Given an input array consisting on only 0, 1, and 2, sort the array in a single traversal. | def P20W(IqQl):
SWRg = 0
Zieo = len(IqQl) - 1
YRbF = 0
while YRbF < Zieo + 1:
U6D_ = IqQl[YRbF]
if U6D_ == 0:
IqQl[YRbF], IqQl[SWRg] = (IqQl[SWRg], IqQl[YRbF])
SWRg += 1
YRbF += 1
if U6D_ == 2:
IqQl[YRbF], IqQl[Zieo] = (IqQl[Zieo], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BA9O(qw7D):\n for YRbF in range(0, len(qw7D)):\n for r845 in range(len(qw7D) - 1, YRbF, -1):\n if qw7D[r845] < qw7D[r845 - 1]:\n p1y5 = qw7D[r845]\n qw7D[r845] = qw7D[r845 - 1]\n qw7D[r845 - 1] = p1y5\n return qw7D",
"def BA9O(YKHO, xYvp: L... | [
"0.6792707",
"0.6758305",
"0.6685668",
"0.66711134",
"0.6660409",
"0.6644065",
"0.66035944",
"0.659015",
"0.6552274",
"0.65011084",
"0.64874375",
"0.6465411",
"0.6446616",
"0.64315027",
"0.64290977",
"0.6422456",
"0.6421703",
"0.6418894",
"0.64047986",
"0.638907",
"0.63790894... | 0.65542775 | 8 |
resize image and mask while keeping ratio | def wvxh(YKHO, VXjJ, ZHfW, dvgN=True):
if dvgN:
VXjJ, ZHfW, yDN1 = YKHO._sync_pad(VXjJ, ZHfW)
VXjJ = VXjJ.resize((YKHO.crop_size, YKHO.crop_size), hnIv.BILINEAR)
ZHfW = ZHfW.resize(VXjJ.size, hnIv.NEAREST)
else:
V_UK = YKHO.crop_size * 1.75
if max(VXjJ.size) > V_UK:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0s1(YKHO, dixj):\n for H5ew in dixj.get('mask_fields', []):\n if dixj[H5ew] is None:\n continue\n if YKHO.keep_ratio:\n dixj[H5ew] = dixj[H5ew].rescale(dixj['scale'])\n else:\n dixj[H5ew] = dixj[H5ew].resize(dixj['img_shape'][:2])",
"def W0s1(YKHO, di... | [
"0.7228453",
"0.7228453",
"0.6988797",
"0.6792816",
"0.6747983",
"0.6747866",
"0.67196244",
"0.6715727",
"0.661352",
"0.6576234",
"0.6520901",
"0.65093374",
"0.650917",
"0.6496266",
"0.6485965",
"0.6485366",
"0.6484305",
"0.6484305",
"0.6450831",
"0.6442192",
"0.64212555",
... | 0.0 | -1 |
Creates an Object from a JSON file | def EBvf(Ux0P):
with open(Ux0P, mode='r', encoding='utf-8') as Vf_1:
return qQXR.loads(Vf_1.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def refC(Emd4, wM3v):\n with open(wM3v, 'r') as N5Pj:\n return Emd4.from_dict(qQXR.load(N5Pj))",
"def pktP(Emd4, IznC):\n Csk6 = PSj2(IznC)\n return Emd4.from_dict(Csk6)",
"def GGri(Emd4, Ux0P):\n with open(Hy7s.path.expanduser(Ux0P), encoding='utf-8') as eHNT:\n return qQXR.load(eHNT... | [
"0.8077227",
"0.8059218",
"0.8014333",
"0.79221255",
"0.78821206",
"0.7876112",
"0.7876112",
"0.7876112",
"0.7867695",
"0.7866958",
"0.7861238",
"0.7850167",
"0.7850008",
"0.78406227",
"0.7798315",
"0.7744038",
"0.76990694",
"0.76728964",
"0.76430357",
"0.762453",
"0.7616646"... | 0.690002 | 65 |
Converts tensor to PIL image | def zy6L(vhpA):
yInu = Ymkf.ToPILImage()
LNo8 = vhpA.cpu().clone()
LNo8 = LNo8.squeeze(0)
LNo8 = yInu(LNo8)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaVh(VXjJ):\n a1PO = Ymkf.ToPILImage()\n return a1PO(VXjJ)",
"def uaVh(vhpA, xkzz=None):\n VXjJ = Ymkf.ToPILImage(mode='RGB')(vhpA)\n VXjJ.show()\n if xkzz:\n VXjJ.save(xkzz)",
"def uaVh(vhpA):\n vhpA = vhpA * 255\n vhpA = oyIN.array(vhpA, dtype=oyIN.uint8)\n if oyIN.ndim(vhp... | [
"0.8296058",
"0.82779026",
"0.7985139",
"0.7632141",
"0.748137",
"0.7424022",
"0.729799",
"0.72568226",
"0.7246636",
"0.7042401",
"0.7025167",
"0.70214564",
"0.69849557",
"0.67178136",
"0.66645557",
"0.6658022",
"0.65831333",
"0.65752023",
"0.65752023",
"0.65713704",
"0.65685... | 0.8200484 | 2 |
cast(itkLightObject obj) > itkMapContainerULLQEMPF2GQEULLULLBBT | def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':
return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF3GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_cast(YEnM)",
"def O1bq(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM)",
"def hbkp(YEnM: 'itk... | [
"0.8084822",
"0.80788255",
"0.80115074",
"0.6254341",
"0.6229861",
"0.62290967",
"0.621282",
"0.62121254",
"0.61977196",
"0.6187826",
"0.61861074",
"0.617687",
"0.61671036",
"0.61638296",
"0.615326",
"0.6134305",
"0.6129836",
"0.6122671",
"0.6109205",
"0.6106327",
"0.6104756"... | 0.81593674 | 0 |
itkMapContainerULLQEMPF2GQEULLULLBBT_cast(itkLightObject obj) > itkMapContainerULLQEMPF2GQEULLULLBBT | def O1bq(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':
return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbkp(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF3GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.86143035",
"0.85710466",
"0.85231453",
"0.6663533",
"0.6580079",
"0.65773124",
"0.6542718",
"0.65136206",
"0.6509441",
"0.65042865",
"0.65000635",
"0.6490363",
"0.6483853",
"0.6468999",
"0.6454448",
"0.6448948",
"0.64392745",
"0.6436383",
"0.64240533",
"0.64200103",
"0.641... | 0.8653909 | 0 |
cast(itkLightObject obj) > itkMapContainerULLQEMPF3GQEULLULLBBT | def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF3GQEULLULLBBT *':
return u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM)",
"def O1bq(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM)",
"def hbkp(YEnM: 'itk... | [
"0.80768454",
"0.79894507",
"0.79848903",
"0.6210267",
"0.61941546",
"0.61825395",
"0.61637414",
"0.6140377",
"0.61170834",
"0.610773",
"0.6096567",
"0.60962915",
"0.60895133",
"0.6082656",
"0.60760105",
"0.60720843",
"0.60708916",
"0.60685796",
"0.6065972",
"0.60581446",
"0.... | 0.80651575 | 1 |
itkMapContainerULLQEMPF3GQEULLULLBBT_cast(itkLightObject obj) > itkMapContainerULLQEMPF3GQEULLULLBBT | def hbkp(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF3GQEULLULLBBT *':
return u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1bq(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF2GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkMapContainerULLQEMPF3GQEULLULLBBT *':\n return u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.85524213",
"0.8530879",
"0.85012054",
"0.6676029",
"0.6610047",
"0.6598924",
"0.6585296",
"0.6577539",
"0.65381795",
"0.6525559",
"0.6516219",
"0.64921415",
"0.6490924",
"0.6486386",
"0.648307",
"0.6478202",
"0.64740264",
"0.6462398",
"0.64555895",
"0.645374",
"0.645341",
... | 0.86029065 | 0 |
__init__(itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE self) > itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE __init__(itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE self, itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE ... | def FIMM(YKHO, *qIxc):
u2cm.itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE_swiginit(YKHO, u2cm.new_itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n u2cm.itkQuadEdgeMeshCellTraitsInfo3FFULLULLUCQEMPGQEULLQEMPF3GQEULLULLBBTGQE_swiginit(YKHO, u2cm.new_itkQuadEdgeMeshCellTraitsInfo3FFULLULLUCQEMPGQEULLQEMPF3GQEULLULLBBTGQE(*qIxc))",
"def FIMM(YKHO, *qIxc):\n u2cm.itkMapContainerULLQEMPF2GQEULLULLBBT_swiginit(YKHO, u2cm.new_itkMapC... | [
"0.83134043",
"0.7966901",
"0.7925769",
"0.65841705",
"0.6542171",
"0.6529784",
"0.6213722",
"0.62116086",
"0.61951244",
"0.6168665",
"0.61404574",
"0.6118812",
"0.6111736",
"0.61094785",
"0.61048365",
"0.6103951",
"0.6078004",
"0.6064472",
"0.6063994",
"0.60592335",
"0.60496... | 0.8636811 | 0 |
Ensure the user requesting the view is the author/creator | def Iw6c(YKHO):
Z8dB = YKHO.get_object()
return YKHO.request.user == Z8dB.author | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n return YKHO.request.user == m8z6.author",
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n return YKHO.request.user == m8z6.author",
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return Fa... | [
"0.7107664",
"0.7107664",
"0.71071845",
"0.71071845",
"0.71071845",
"0.7067593",
"0.70492923",
"0.69335514",
"0.68877685",
"0.6780535",
"0.67526037",
"0.6700188",
"0.66741073",
"0.66181153",
"0.66019505",
"0.6583256",
"0.658223",
"0.65533376",
"0.65518564",
"0.6551672",
"0.65... | 0.68910533 | 8 |
Ensure the user requesting the view is the author/creator | def Iw6c(YKHO):
Z8dB = YKHO.get_object()
return YKHO.request.user == Z8dB.author | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n return YKHO.request.user == m8z6.author",
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n return YKHO.request.user == m8z6.author",
"def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return Fa... | [
"0.7107664",
"0.7107664",
"0.71071845",
"0.71071845",
"0.71071845",
"0.7067593",
"0.70492923",
"0.69335514",
"0.68877685",
"0.6780535",
"0.67526037",
"0.6700188",
"0.66741073",
"0.66181153",
"0.66019505",
"0.6583256",
"0.658223",
"0.65533376",
"0.65518564",
"0.6551672",
"0.65... | 0.68910533 | 9 |
Returns a file name from target image name | def i1fB(G1PT):
Gf8y = PJbf(G1PT)
GHKn = fa__()
return '{0}_mosaic_{1}.png'.format(Gf8y, GHKn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DonA(C7_O):\n return '{}.tar'.format(C7_O.replace(':', '_').replace('/', '_'))",
"def r1Ht(YKHO, LNo8):\n return LNo8.replace('shub://', '').replace('/', '-') + '.simg'",
"def uwfy(VXjJ):\n return Hy7s.path.dirname(VXjJ) + '_' + Hy7s.path.basename(VXjJ)",
"def UMVr(KAOR, Ux0P):\n YBcr = Ux0P[... | [
"0.77304953",
"0.74776137",
"0.73677826",
"0.7286633",
"0.72363406",
"0.72130257",
"0.72003156",
"0.7189527",
"0.7159272",
"0.70661277",
"0.7058133",
"0.69950867",
"0.6981204",
"0.6977083",
"0.6950831",
"0.6922403",
"0.69051975",
"0.6898672",
"0.68976134",
"0.68419594",
"0.68... | 0.6951013 | 14 |
Extracts file name from file path (not including extension) | def PJbf(qaEx):
gIsw = qaEx.split('/')[-1]
return gIsw.split('.')[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def Ooqe(pmON):\n return pmON.split('\\\\').pop().split('/').pop().rsplit('.', 1)[0]",
"def gIsw(pmON):\n return Hy7s.path.basename(pmON).split('.')[0]",
"def g_2H(qaEx):\n lH5w = qaEx.split(Hy7s.sep)[-1]\n ... | [
"0.8715548",
"0.86639875",
"0.86091185",
"0.8563638",
"0.85208607",
"0.8497839",
"0.8352039",
"0.8335342",
"0.8314756",
"0.8260435",
"0.8197826",
"0.81866497",
"0.8095197",
"0.8033655",
"0.8029191",
"0.7977432",
"0.79481006",
"0.7930753",
"0.79278266",
"0.7901418",
"0.7837515... | 0.8845883 | 0 |
Returns current time as '%Y%m%d%H%M%S' string | def fa__():
wzkt = qcWV.datetime.now()
return wzkt.strftime('%Y%m%d%H%M%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _PtW():\n return F803('%Y_%m_%d_%H_%M_%S_%Z', WPt4())",
"def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())",
"def JUFO():\n fkZM = str(qcWV.now().strftime('%d-%m-%Y %H:%M:%S'))\n return fkZM",
"def vHj7():\n wzkt = qcWV.datetime.now()\n ITS7 = wzkt.strftime('%Y-%... | [
"0.8493195",
"0.8434943",
"0.8412798",
"0.84043145",
"0.8325539",
"0.82955456",
"0.8203032",
"0.81751466",
"0.8141215",
"0.81292236",
"0.8083702",
"0.8069793",
"0.8033297",
"0.79770666",
"0.7951352",
"0.7935939",
"0.7892529",
"0.7859924",
"0.7855944",
"0.78430516",
"0.7841576... | 0.84515804 | 1 |
Get all documents to be indexed conforming to the schema | def K0bA(YKHO):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBCO(YKHO, d6pt: str, xDcj: Dict[str, Any]=None) -> iu5r[cuzp[str, ImMB]]:\n return s9_3(YKHO.__client__, query=xDcj or {}, index=d6pt)",
"def gchJ():\n A07C = WsL5.request.json\n if not A07C:\n raise cAM_('No ids provided')\n if not isinstance(A07C, list):\n raise cAM_('ids is not ... | [
"0.689363",
"0.68376887",
"0.6788542",
"0.67389685",
"0.66998225",
"0.66399837",
"0.65739137",
"0.6378266",
"0.63479394",
"0.6343179",
"0.6341851",
"0.63180757",
"0.62861663",
"0.6283073",
"0.6260351",
"0.62475955",
"0.62401104",
"0.61905485",
"0.6179511",
"0.61615217",
"0.61... | 0.0 | -1 |
sets up the environment before its testing begun | def Baw8(Emd4):
DCgT = G9jH.StreamHandler(stream=HwRy.stderr)
DCgT.setLevel(G9jH.DEBUG)
G9jH.getLogger().addHandler(DCgT)
G9jH.getLogger().setLevel(G9jH.DEBUG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n ct9j()",
"def HTzG(YKHO):\n pass",
"def WrUP():\n global _ENV_SETUP_DONE\n if Kbq0:\n return\n Kbq0 = True\n LgMw()\n GmDk = Hy7s.environ.get('DETECTRON2_ENV_MODULE')\n if GmDk:\n YXy8(GmDk)\n else:\n pass",
"def uIcm():\n GikI = zAej()\n ... | [
"0.85461134",
"0.8049342",
"0.7556871",
"0.7501226",
"0.7498831",
"0.74953127",
"0.74777406",
"0.74777406",
"0.7453637",
"0.73980796",
"0.73111117",
"0.7296043",
"0.722044",
"0.7185756",
"0.71791804",
"0.7172264",
"0.71720064",
"0.7166148",
"0.71606356",
"0.71355957",
"0.7060... | 0.0 | -1 |
Return a time stamp in date time format | def JZhg(E3oo) -> qcWV.datetime:
return E3oo + qcWV.timedelta(days=10) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",
"def E3oo():\n gi6l = qcWV.utcnow()\n VtEH = gi6l.strftime('%d-%m-%Y %H:%M:%S')\n return VtEH",
"def G91o():\n yo7_ = qcWV.datetime.now()\n return yo7_.strftime('%Y-%m-%d %a %H:%M')",
"def E3oo():\n return qcWV.now().strftime('%Y%... | [
"0.8024783",
"0.7883266",
"0.78595704",
"0.77234113",
"0.7721484",
"0.7717472",
"0.76698935",
"0.7659639",
"0.76376826",
"0.7617638",
"0.7597528",
"0.7595086",
"0.75727594",
"0.75496215",
"0.7479271",
"0.74275947",
"0.74023354",
"0.7389078",
"0.7359437",
"0.73397434",
"0.7325... | 0.0 | -1 |
Function to set the name of a hexagon to the correct name (number). | def WZrJ(rJDA, wmhx, qmrg, I6gc='https://engine.tygron.com/api/session/event/EditorBuildingEventType/SET_NAME/?'):
Mkmy = G4JS.post(url=I6gc + rJDA, json=[wmhx, str(qmrg)])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbBb(Ojzy):\n return 'explored%s.set_%05d.xa_%08d' % (LlzW.IDENTIFIER, Ojzy // 1000, Ojzy)",
"def W9Dk(rJDA, WdZU):\n U4Zq = ZgXw(rJDA)\n Ty3u = {}\n for v32L in U4Zq:\n mWFP = v32L['name']\n wmhx = v32L['id']\n try:\n Ty3u.update({int(mWFP): wmhx})\n except... | [
"0.5881488",
"0.5826369",
"0.5683673",
"0.5620663",
"0.5558112",
"0.5516085",
"0.5431137",
"0.5402292",
"0.53735334",
"0.5367253",
"0.5364026",
"0.5355493",
"0.5334124",
"0.5283778",
"0.52785116",
"0.5265447",
"0.52545244",
"0.52326155",
"0.52306306",
"0.52300334",
"0.5227822... | 0.60160667 | 0 |
Returns the plate's local end force vector | def eHNT(YKHO, XlhV='Combo 1'):
return H2v5(hxFl(YKHO.k(), YKHO.d(XlhV)), YKHO.fer(XlhV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMR4(YKHO):\n\n def mfqy(gdyb):\n Bkrz = gdyb.bind(YKHO._entity.end_effectors).xpos\n VQMv = gdyb.bind(YKHO._entity.root_body).xpos\n lOQ5 = oyIN.reshape(gdyb.bind(YKHO._entity.root_body).xmat, (3, 3))\n return oyIN.reshape(oyIN.dot(Bkrz - VQMv, lOQ5), -1)\n return uYWe.Generi... | [
"0.6467782",
"0.6414848",
"0.62456554",
"0.5817251",
"0.5693018",
"0.5637133",
"0.5628126",
"0.55882394",
"0.5588016",
"0.5581251",
"0.55777365",
"0.5494832",
"0.54618824",
"0.5449381",
"0.5437008",
"0.54288536",
"0.5414165",
"0.5408133",
"0.537844",
"0.53745925",
"0.5361922"... | 0.63448447 | 2 |
Returns the rectangle's local fixed end reaction vector. | def cSCD(YKHO, XlhV='Combo 1'):
cSCD = VNqG((12, 1))
xnVy = YKHO.model.LoadCombos[XlhV]
XP5J = 0
for RhGk, aM8h in xnVy.factors.items():
for CJ2p in YKHO.pressures:
if CJ2p[1] == RhGk:
XP5J += aM8h * CJ2p[0]
Fg_i = YKHO.width() / 2
Z9rn = YKHO.height() / 2
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMR4(YKHO):\n\n def mfqy(gdyb):\n Bkrz = gdyb.bind(YKHO._entity.end_effectors).xpos\n VQMv = gdyb.bind(YKHO._entity.root_body).xpos\n lOQ5 = oyIN.reshape(gdyb.bind(YKHO._entity.root_body).xmat, (3, 3))\n return oyIN.reshape(oyIN.dot(Bkrz - VQMv, lOQ5), -1)\n return uYWe.Generi... | [
"0.635611",
"0.61520875",
"0.6093797",
"0.59142333",
"0.5863026",
"0.58372337",
"0.5779902",
"0.5776772",
"0.56388843",
"0.5606299",
"0.55939883",
"0.55901825",
"0.5575811",
"0.5536565",
"0.5504254",
"0.5494207",
"0.54929674",
"0.54815066",
"0.54595745",
"0.54466003",
"0.5437... | 0.0 | -1 |
Returns the plate's local displacement vector | def Csk6(YKHO, XlhV='Combo 1'):
return hxFl(YKHO.T(), YKHO.D(XlhV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZJUk(YKHO):\n return oyIN.array(YKHO.get_current_cartesian_position().position) - YKHO.initial_position",
"def XXPW(YKHO):\n return YKHO.dest - YKHO.orig",
"def iArr(YKHO) -> lNLu:\n return YKHO._normal * YKHO._distance_from_origin",
"def XeaN(YKHO):\n if YKHO.Cid() == 0:\n return YKHO... | [
"0.7053816",
"0.63343763",
"0.6284261",
"0.61883146",
"0.59812814",
"0.5961065",
"0.590632",
"0.5817088",
"0.58114207",
"0.57960117",
"0.5783343",
"0.5746658",
"0.57226366",
"0.5709794",
"0.5676317",
"0.5669916",
"0.56689715",
"0.56669223",
"0.56544334",
"0.564324",
"0.564256... | 0.5859905 | 7 |
Returns the plate's global nodal force vector | def vuvg(YKHO, XlhV='Combo 1'):
return hxFl(dKc3(YKHO.T()), YKHO.f(XlhV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUyV(YKHO) -> eWuY:\n LtyS = PWgb([[Q6kx.force.fx, Q6kx.force.fy] for Q6kx in YKHO.nodes])\n return oyIN.array(LtyS, dtype=oyIN.float64).reshape(YKHO.get_number_of_dofs(), 1)",
"def Cf2v(YKHO):\n nz9B = YKHO.get_displ()\n lhu4 = nz9B / oyIN.linalg.norm(nz9B) * YKHO.L0\n return YKHO.k * (nz9B -... | [
"0.68591774",
"0.66163063",
"0.6526741",
"0.6185808",
"0.5984102",
"0.5963688",
"0.5877415",
"0.5841482",
"0.5741223",
"0.57373834",
"0.5713077",
"0.57008344",
"0.56954217",
"0.5684319",
"0.5650184",
"0.5620997",
"0.5598612",
"0.5582241",
"0.5573736",
"0.55695486",
"0.5544257... | 0.5192745 | 67 |
Returns the plate's global displacement vector for the given load combination. | def lWPh(YKHO, XlhV='Combo 1'):
lWPh = VNqG((24, 1))
lWPh.itemset((0, 0), YKHO.i_node.DX[XlhV])
lWPh.itemset((1, 0), YKHO.i_node.DY[XlhV])
lWPh.itemset((2, 0), YKHO.i_node.DZ[XlhV])
lWPh.itemset((3, 0), YKHO.i_node.RX[XlhV])
lWPh.itemset((4, 0), YKHO.i_node.RY[XlhV])
lWPh.itemset((5, 0), YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Csk6(YKHO, XlhV='Combo 1'):\n return hxFl(YKHO.T(), YKHO.D(XlhV))",
"def ZJUk(YKHO):\n return oyIN.array(YKHO.get_current_cartesian_position().position) - YKHO.initial_position",
"def qAiy(YKHO, _1kr: {dict, Loads, typing.Sequence[np.ndarray]}, qizI: {typing.Sequence[float], float}, YyAa: str='xyz', ... | [
"0.5946909",
"0.54665965",
"0.5231496",
"0.5175889",
"0.51203185",
"0.50840205",
"0.50371945",
"0.5032711",
"0.49216226",
"0.49163213",
"0.4861059",
"0.48333216",
"0.4832876",
"0.48002887",
"0.4759573",
"0.47336084",
"0.4728652",
"0.47230038",
"0.47207555",
"0.47160384",
"0.4... | 0.46991676 | 22 |
Returns the plate's transformation matrix | def Kt_s(YKHO):
Y7fn = YKHO.i_node.X
g_QQ = YKHO.j_node.X
O5iP = YKHO.i_node.Y
Jbmc = YKHO.j_node.Y
Et9P = YKHO.i_node.Z
Kjd7 = YKHO.j_node.Z
WKvO = [g_QQ - Y7fn, Jbmc - O5iP, Kjd7 - Et9P]
WKvO = WKvO / CkYf(WKvO)
ohxs = YKHO.n_node.X
SKbT = YKHO.n_node.Y
GtjY = YKHO.n_node.Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFTJ(YKHO):\n a1PO = oyIN.array([[0.0], [0.0], [0.0]])\n h4Tb = oyIN.hstack([YKHO.rotation_matrix, a1PO])\n return oyIN.vstack([h4Tb, oyIN.array([0.0, 0.0, 0.0, 1.0])])",
"def FwhA(YKHO):\n KCHu = YKHO.sin()\n Z9rn = YKHO.cos()\n return oyIN.array([Z9rn ** 2, Z9rn * KCHu, -Z9rn ** 2, -Z9rn ... | [
"0.7521351",
"0.7355739",
"0.7244954",
"0.7208509",
"0.7193422",
"0.7193422",
"0.71591365",
"0.71137446",
"0.7048217",
"0.69682175",
"0.6917635",
"0.68684006",
"0.6840496",
"0.67807406",
"0.67593294",
"0.6758699",
"0.6709253",
"0.6696803",
"0.66954464",
"0.65536743",
"0.65514... | 0.69805884 | 9 |
Returns the plate's displacement coefficient matrix [C] | def KupS(YKHO):
Y7fn = 0
O5iP = 0
g_QQ = YKHO.width()
Jbmc = 0
tdL7 = g_QQ
PVF6 = YKHO.height()
ohxs = 0
SKbT = PVF6
Nq1b = qw7D([[1, Y7fn, O5iP, Y7fn ** 2, Y7fn * O5iP, O5iP ** 2, Y7fn ** 3, Y7fn ** 2 * O5iP, Y7fn * O5iP ** 2, O5iP ** 3, Y7fn ** 3 * O5iP, Y7fn * O5iP ** 3], [0, 0, 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkg8(YKHO) -> oyIN.ndarray:\n assert YKHO._k is not None, 'camera must be calibrated'\n return FRHK(YKHO._k)",
"def FeaT(o4D3, ajwV, rNcn, si3g, skBL, Sb1k, tV6D, Mbre):\n Nq1b = xQso(o4D3, ajwV, rNcn)\n LVAh = WCIa(o4D3, ajwV, rNcn, si3g, skBL, Sb1k, tV6D, Mbre)\n Ib8f = oyIN.dot(dKc3(Nq1b), ... | [
"0.63772506",
"0.6143459",
"0.6094555",
"0.6072907",
"0.6006293",
"0.5974486",
"0.5959939",
"0.59011567",
"0.5864534",
"0.5793513",
"0.57648194",
"0.56787795",
"0.5678773",
"0.5678146",
"0.56597847",
"0.55940014",
"0.5590818",
"0.55762076",
"0.5556221",
"0.55486333",
"0.55423... | 0.6193459 | 1 |
Return deep copy of this board. This clone of the board can be passed safely to any player without taking the risk of lunatic players damaging the original board. | def GBRs(YKHO):
i3ak = YEsN(YKHO.getWidth(), YKHO.getHeight())
import copy
i3ak.cell = copy.deepcopy(YKHO.cell)
return i3ak | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n lLza = qz5A()\n for rdlD in YKHO.board:\n lLza.board.append(rdlD[:])\n lLza.x = YKHO.x\n lLza.y = YKHO.y\n lLza.heuristic = YKHO.heuristic\n lLza.n = YKHO.n\n lLza.hType = YKHO.hType\n lLza.steps = YKHO.steps\n return lLza",
"def iBIi(YKHO):\n return jth9.de... | [
"0.8394391",
"0.83269477",
"0.8312972",
"0.81450045",
"0.80880094",
"0.8018189",
"0.80172944",
"0.7986561",
"0.79701126",
"0.7933263",
"0.77827954",
"0.76440704",
"0.7575607",
"0.75439066",
"0.74951863",
"0.7493786",
"0.74502647",
"0.74459124",
"0.7373089",
"0.7325345",
"0.72... | 0.8111755 | 4 |
Records the player's colour, either black or for white. Should also set the name of the player. | def FIMM(YKHO, OfK8):
YKHO.colour = OfK8
YKHO.name = 'Player' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Azyg(YKHO, Dup5):\n if Dup5.color == 'black':\n YKHO.players['black'] = Dup5\n else:\n YKHO.players['white'] = Dup5",
"def oyg0(YKHO):\n return YKHO._color",
"def jOj6(YKHO):\n if YKHO.playerOne:\n YKHO.red = 0\n YKHO.blue = 255\n YKHO.playerOne = False\n ... | [
"0.75764513",
"0.6954662",
"0.6630727",
"0.6328392",
"0.6285385",
"0.6149251",
"0.6125379",
"0.60314083",
"0.60195285",
"0.58754647",
"0.58627224",
"0.5834706",
"0.5774131",
"0.57675064",
"0.5767079",
"0.57331955",
"0.5710875",
"0.5673335",
"0.5668842",
"0.56438184",
"0.56277... | 0.71703076 | 1 |
NN constructor which we pass a dict of parameters | def DGqa(YKHO, SGPK):
hzfl = SGPK['num_epoch']
aH_V = SGPK['momentum']
N77f = SGPK['loss_function']
vjyh = SGPK['accuracy']
_zxd = SGPK['regularization']
Ep8u = SGPK['batch_size']
K0do = SGPK['optimizer'] if SGPK['optimizer'] is not None else 'batch'
YKHO.__init__(hzfl, K0do, N77f, vjyh,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, svPB):\n super().__init__()\n YKHO.a = ht2j.nn.Parameter(ht2j.randn(svPB))",
"def FIMM(YKHO, zi3C, vNnt):\n super().__init__()\n YKHO.input_size = zi3C\n YKHO.neurons = vNnt\n YKHO.params['w'] = oyIN.random.randn(zi3C, vNnt)\n YKHO.params['b'] = oyIN.random.randn(1, vNnt)\n ... | [
"0.67972517",
"0.67953134",
"0.6721277",
"0.66650045",
"0.6640788",
"0.66400546",
"0.66311556",
"0.66311556",
"0.66311556",
"0.6566211",
"0.6543916",
"0.65327525",
"0.6497855",
"0.6437372",
"0.63905233",
"0.636781",
"0.631781",
"0.62985086",
"0.629422",
"0.62932986",
"0.62742... | 0.0 | -1 |
Convert to array of [x, y, blocksize, blocksize, 3] i.e. a coordinate system that allows for an X/Y indexing with blocks. | def gjWk(Xn71, cgAf):
rmyT = VXjJ.reshape(VXjJ.shape[0] // cgAf, cgAf, VXjJ.shape[1] // cgAf, cgAf, 3).swapaxes(1, 2)
return rmyT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyFg(WKvO: int, epBp: int, edno: int=16, RdfP: int=16) -> DPpP:\n return (WKvO * edno, epBp * RdfP)",
"def t84O(YKHO, WKvO, LVAh):\n JnVq = []\n p6S0 = WKvO - WKvO % 3\n BGSy = LVAh - LVAh % 3\n for LVAh in range(BGSy, BGSy + 3):\n for WKvO in range(p6S0, p6S0 + 3):\n YRbF = ... | [
"0.6671259",
"0.64263934",
"0.63331187",
"0.6333016",
"0.6325375",
"0.61881614",
"0.6173598",
"0.61610925",
"0.6149343",
"0.6100957",
"0.6100957",
"0.6100957",
"0.6012429",
"0.601241",
"0.59837717",
"0.5964142",
"0.5961271",
"0.5925309",
"0.59243315",
"0.59138536",
"0.5880371... | 0.6979222 | 0 |
given an image, blur it by sigma, and return it. | def ir0a(UCWl, QtZi=10):
pwQ1 = oyIN.fft.fftshift(oyIN.fft.fft2(UCWl))
co3n, HN6s = UCWl.shape
vHO5, UV8M = (HN6s / 2, co3n / 2)
dnsz, Tovs = (co3n / QtZi, HN6s / QtZi)
WKvO = oyIN.linspace(0, HN6s, HN6s)
LVAh = oyIN.linspace(0, co3n, co3n)
EcVT, fuBA = oyIN.meshgrid(WKvO, LVAh)
gsvl = o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo8 = XC5k.blur(LNo8, Ot1W)\n return LNo8",
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo8 = XC5k.blur(LNo8, Ot1W)\n return LNo8",
"def rgum(Xn71, exwG, pvd3=None):\n Oa1e = hvqX(exwG, sizey=pvd3)\n ZEU6 = Gaon.convolve(Xn71, Oa1e, mode='same')\n return ZEU6",
"def ... | [
"0.8163476",
"0.8163476",
"0.7801661",
"0.77766097",
"0.7752083",
"0.77352905",
"0.77145207",
"0.7708557",
"0.7681655",
"0.7650684",
"0.7605923",
"0.75963664",
"0.75580513",
"0.75147927",
"0.747618",
"0.7467116",
"0.74622226",
"0.74622226",
"0.74622226",
"0.74622226",
"0.7462... | 0.72938246 | 39 |
Given a list of images, create a 3D numpy array to represent them and save it as a given filename (ending in .npy). All images must be identical dimensions. Saves the data, and also returns it. Alternatively, if the save path already exists, just load and return it. | def iugU(ETiR, MV1i):
MV1i = Hy7s.path.abspath(MV1i)
if Hy7s.path.exists(MV1i):
print('loading data from %s ...' % Hy7s.path.basename(MV1i))
nPrm = oyIN.load(MV1i)
if len(nPrm) == len(ETiR):
print(' loaded %.02f MB array' % (nPrm.nbytes / 2 ** 20), nPrm.shape)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjUn(Yw_3, iumf):\n if vPBo.output_dir is not None:\n Ep8u = Yw_3.shape[0]\n for YRbF in Ni9Y(Ep8u):\n VOC_ = Yw_3[YRbF, :, :]\n qaEx = Hy7s.path.join(vPBo.output_dir, iumf[YRbF])\n LNo8 = hnIv.fromarray(oyIN.uint8(VOC_))\n LNo8.save(qaEx)",
"def w... | [
"0.6884683",
"0.64679337",
"0.62741685",
"0.61704886",
"0.61682105",
"0.61396915",
"0.60557383",
"0.6034646",
"0.6021969",
"0.599016",
"0.59869087",
"0.59666246",
"0.5923276",
"0.59129447",
"0.59066796",
"0.58843315",
"0.58667195",
"0.58599645",
"0.58546424",
"0.5854446",
"0.... | 0.7248182 | 0 |
return total number od edges in the graph | def oklI(YKHO):
try:
return YKHO.edges
except:
print('ERROR: No graph exists') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1_y(YKHO):\n return int(sum((YKHO.degree(Q6kx) for Q6kx in range(YKHO.size))) / 2)",
"def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))",
"def n8F9(YKHO):\n return sum((1 for bGrB in YKHO.iteredges()))",
"def n8F9(YKHO):\n return sum((len(Ty9i.adj) for Ty9i in YKHO.vertic... | [
"0.8688742",
"0.8679134",
"0.8618837",
"0.8593283",
"0.8531312",
"0.84645194",
"0.843575",
"0.8365236",
"0.83262277",
"0.8287084",
"0.827881",
"0.8266862",
"0.8233163",
"0.82308143",
"0.8182939",
"0.81733197",
"0.81395024",
"0.81287533",
"0.8078853",
"0.80309623",
"0.8011414"... | 0.83777636 | 7 |
return the number of directed edges towards the node | def PZjm(YKHO, Q6kx):
try:
return len(YKHO.prefix[Q6kx])
except:
print('ERROR: The node does not exist.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1_y(YKHO):\n wjRY = sum((len(YKHO._outgoing[Ty9i]) for Ty9i in YKHO._outgoing))\n return wjRY if YKHO.is_directed() else wjRY // 2",
"def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))",
"def L1_y(YKHO):\n return int(sum((YKHO.degree(Q6kx) for Q6kx in range(YKHO.size))) / 2)... | [
"0.78448033",
"0.7772245",
"0.7695838",
"0.7562893",
"0.7534973",
"0.7467137",
"0.7451937",
"0.7396427",
"0.7373336",
"0.73292255",
"0.732624",
"0.7317787",
"0.72837895",
"0.72651726",
"0.7249782",
"0.7246866",
"0.7079935",
"0.7069049",
"0.7059385",
"0.7043632",
"0.70170116",... | 0.0 | -1 |
return the number of subgraphs in the graph | def oxyd(YKHO):
yvY1 = YKHO.to_undirected_graph()
UHFx = yvY1.num_subgraph()
print('The number of disconnected components in the graph is ', UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LF8Y(YKHO):\n return len(YKHO.__graph_list)",
"def szAg(YKHO):\n return len(YKHO.subgraph_list)",
"def iq9F(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.graph_count)",
"def szAg(YKHO) -> int:\n return len(YKHO.graphs)",
"def a22f(YKHO):\n return len(YKHO.edges)",
"def epQE(YKHO):\... | [
"0.8073201",
"0.79633546",
"0.7285349",
"0.72463423",
"0.7187033",
"0.71759033",
"0.7161565",
"0.71102256",
"0.70808554",
"0.7021192",
"0.69902027",
"0.695379",
"0.6935887",
"0.6914862",
"0.68882954",
"0.68802977",
"0.68694854",
"0.6839879",
"0.6822821",
"0.679994",
"0.679574... | 0.86686105 | 0 |
Return the deep copy of the graph | def jth9(YKHO):
yvY1 = D277()
yvY1.node_set = jth9.deepcopy(YKHO.node_set)
yvY1.prefix = jth9.deepcopy(YKHO.prefix)
yvY1.suffix = jth9.deepcopy(YKHO.suffix)
yvY1.num_node = jth9.deepcopy(YKHO.num_node)
yvY1.edges = jth9.deepcopy(YKHO.edges)
return yvY1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j7TX(YKHO):\n return _qLf(YKHO)",
"def g_yX(Oa1e):\n return jth9.deepcopy(Oa1e)",
"def jth9(YKHO):\n Emd4 = YKHO.__class__\n pIsY = Emd4.__new__(Emd4)\n pIsY._nodes = YKHO._nodes[:]\n pIsY._node_wip = YKHO._node_wip[:]\n pIsY._edges = YKHO._edges[:]\n if YKHO._sorted_nodes:\n ... | [
"0.91176546",
"0.8802937",
"0.82550997",
"0.8243993",
"0.8026738",
"0.80088556",
"0.7968061",
"0.77141285",
"0.7699701",
"0.7615446",
"0.76087004",
"0.75499827",
"0.74691683",
"0.7404277",
"0.7394699",
"0.7377999",
"0.73346615",
"0.7324835",
"0.73133886",
"0.7299594",
"0.7248... | 0.80551386 | 4 |
return whether the graph has cycle | def OgLE(YKHO):
azXi = set()
pmON = []
for Q6kx in YKHO.node_set:
if Q6kx not in azXi:
if YKHO.is_cyclic_helper(Q6kx, azXi, pmON) is True:
return True
azXi.clear()
pmON.clear()
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HzZv(YKHO):\n DemM = dict()\n for YRbF in YKHO.adj_list:\n DemM[YRbF] = False\n for YRbF in YKHO.adj_list:\n if not DemM[YRbF]:\n if YKHO.has_cycle_helper(YRbF, DemM, -1):\n return True\n return False",
"def CU9c(pNZh):\n pmON = set()\n\n def TClq(Q6k... | [
"0.8378776",
"0.7984986",
"0.7911707",
"0.7880922",
"0.78286994",
"0.7662443",
"0.76118547",
"0.7569022",
"0.74262905",
"0.7295127",
"0.7267389",
"0.71993303",
"0.71563673",
"0.7154375",
"0.7140454",
"0.711544",
"0.7092382",
"0.7090839",
"0.7086551",
"0.7086194",
"0.70694536"... | 0.7653314 | 6 |
Lookup a symbol. If implicit_extrn is True and this is the first fetch of this variable, declare it as an extrn. Otherwise, it must be a label. | def ps_8(YKHO, mWFP, G3HY=False):
if mWFP not in YKHO.symbols:
if G3HY:
YKHO.extrn(mWFP)
else:
YKHO.label(mWFP, None)
return YKHO.symbols[mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AN9E(YKHO, mWFP):\n if mWFP in YKHO.symbols:\n raise DHL0(mWFP)\n YKHO.symbols[mWFP] = wZLS(mWFP, 'extrn', None)",
"def SLzb(YKHO, o61b):\n if o61b in YKHO.labels:\n return YKHO.labels[o61b]\n if o61b in tTBQ:\n return tTBQ[o61b]\n return YKHO.variables[o61b]",
"def OBmB... | [
"0.6169494",
"0.5972883",
"0.5459213",
"0.5338175",
"0.5249722",
"0.52001464",
"0.5198688",
"0.51028335",
"0.5051382",
"0.5046638",
"0.5035687",
"0.49785256",
"0.49657345",
"0.49439415",
"0.49278852",
"0.48954237",
"0.48881257",
"0.48838553",
"0.48028132",
"0.47846344",
"0.47... | 0.7447887 | 0 |
Initialises the Time Series object and takes care of the preprocessing. | def FIMM(YKHO, Ab3U, his5, gacu, tRbc=None, bHtP=0.66, yokr=7, p5dt=1, Y1sX=1, VOlW=0):
nPrm = rLdf.DataFrame(index=Ab3U[his5].values, data=Ab3U[gacu].values)
zBu_ = int(len(nPrm) * bHtP)
Y5YY = SNvk(feature_range=(0, 1))
YKHO.scaler = Y5YY
nPrm = Y5YY.fit_transform(nPrm)
if VOlW > 0:
nP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mNiI, mZOz='%Y-%m-%d %H:%M:%S', QTg7='D', ydn2='ffill', alBp=0, B3GR=0, Irmt=None, QOe9='adf', ZNp4=None, XHcA=False, QpGk=1, **c_sp):\n YKHO._ts_df_cols = ['ds', 'y']\n YKHO.ts_df = mNiI\n YKHO.time_format = mZOz\n YKHO.freq = QTg7\n YKHO.fill_method = ydn2.lower()\n YKHO.n_test =... | [
"0.67759717",
"0.64579755",
"0.62661517",
"0.626543",
"0.6141596",
"0.6094404",
"0.60800564",
"0.6037951",
"0.6028122",
"0.60011363",
"0.5991543",
"0.5987348",
"0.5983617",
"0.59743816",
"0.5939063",
"0.5937174",
"0.59082216",
"0.5873293",
"0.58130807",
"0.580144",
"0.5794228... | 0.5797429 | 20 |
plots a graph of training history accross epoch. Will plot val_accuracy and val_loss if available. | def gqbr(YKHO):
QzFq = [YRbF.history['loss'][0] for YRbF in YKHO.history]
QrM1.plot(QzFq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbDg(FLXQ, AcYW):\n npYp = 'val_' + AcYW\n YAq3 = FLXQ.history[AcYW]\n S0XL = FLXQ.history[npYp]\n N77f = FLXQ.history['loss']\n AIKr = FLXQ.history['val_loss']\n PdHM = FLXQ.epoch\n QrM1.figure(figsize=(8, 8))\n QrM1.subplot(2, 1, 1)\n QrM1.plot(PdHM, YAq3, label='Training Acc.')\n ... | [
"0.8660942",
"0.85116714",
"0.848824",
"0.8419464",
"0.83680147",
"0.83555114",
"0.83237",
"0.8210739",
"0.81741",
"0.80971825",
"0.8090667",
"0.80894804",
"0.8087157",
"0.8082884",
"0.80086863",
"0.79302275",
"0.7922569",
"0.7915268",
"0.7892611",
"0.78382677",
"0.7768835",
... | 0.7895779 | 18 |
Reshape data to add a 3rd dimension for regressors (=> order 2 tensor) | def lxBI(cC56, sAoX, tRbc, Ab3U, his5, Y1sX, p5dt):
oirC = len(tRbc)
zBu_ = cC56.shape[0]
cC56 = cC56.reshape([cC56.shape[0], cC56.shape[1], 1])
sAoX = sAoX.reshape([sAoX.shape[0], sAoX.shape[1], 1])
ynDE = oyIN.zeros([cC56.shape[0], cC56.shape[1], oirC])
crTr = oyIN.zeros([sAoX.shape[0], sAoX.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(nPrm):\n return nMvt.reshape(x=nPrm, shape=(nMvt.shape(nPrm)[0], 1, OKZQ))",
"def o9Qs(nPrm):\n return nPrm.reshape((nPrm.shape[0], nPrm.shape[1], -1))",
"def RjLQ(YKHO, nPrm):\n AVl2 = [int(zNig / 2) for zNig in nPrm.shape[1:]]\n LP5v = [int(zNig / 2) for zNig in YKHO.shape]\n bvVw = L... | [
"0.76164657",
"0.671869",
"0.65869874",
"0.6584175",
"0.65416545",
"0.6345288",
"0.6294165",
"0.62597686",
"0.6141166",
"0.61180943",
"0.61121535",
"0.6090363",
"0.6082886",
"0.6051846",
"0.6028656",
"0.60019135",
"0.59782827",
"0.5966563",
"0.59192854",
"0.5912304",
"0.59122... | 0.0 | -1 |