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 |
|---|---|---|---|---|---|---|
Calculate threshold that should be used a given FPR or TPR value, based on given true values and predictions. Can be seen as a horizontal or vertical cut of a ROC curve | def WgNV(TkHw, N6Z1, JBFp=None, CtgX=None):
if JBFp is None and CtgX is None:
raise AttributeError('Specify one of TPR and FPR')
if JBFp and CtgX:
raise AttributeError('Specify only one of TPR and FPR')
wKrg = None
CYET, QYVu, Nhxk = Wbxz.roc_curve(TkHw, N6Z1)
for OS6F, Wbxj, gwAu in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q97d(LVAh, cCrA, pI0l):\n for gwAu in oyIN.arange(1, 0, -0.01):\n uN02 = (cCrA >= gwAu).astype(int)\n wArC = YsYU(LVAh, uN02)\n lBbi, r4kf, XVS3, t16z = wArC.flat\n hO2W = t16z / (t16z + XVS3)\n c3be = r4kf / (r4kf + lBbi)\n if hO2W >= pI0l:\n return (gwA... | [
"0.73898816",
"0.6876145",
"0.6862842",
"0.67141974",
"0.66397965",
"0.66231006",
"0.659168",
"0.65874106",
"0.6506481",
"0.64685255",
"0.64640546",
"0.6461244",
"0.64604175",
"0.6406104",
"0.6381822",
"0.6363779",
"0.6341084",
"0.63255036",
"0.63210684",
"0.63208485",
"0.631... | 0.8032899 | 0 |
Get the Reactome Stable ID for a given Uniprot ID. | def pJZr(IaAr):
c59y = 'http://www.reactome.org/ContentService/search/query'
NArs = {'query': IaAr, 'cluster': 'true', 'species': 'Homo sapiens'}
MOPg = {'Accept': 'application/json'}
Ylbp = G4JS.get(c59y, headers=MOPg, params=NArs)
if not Ylbp.status_code == 200:
return None
qQXR = Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nuWt(X2JY):\n ovhV = 'http://www.reactome.org/ContentService/data/query/' + X2JY + '/referenceEntity'\n Ylbp = G4JS.get(ovhV)\n if not Ylbp.status_code == 200:\n return None\n bGrB, bTKY, vfz9 = Ylbp.text.split('\\t')\n if vfz9 != 'ReferenceGeneProduct':\n return None\n Xh1h = b... | [
"0.6640001",
"0.6503159",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"... | 0.0 | -1 |
Argument 'vectors' is a dataframe with index vector ids. | def Kwhp(YKHO, _H53):
if len(yGny) != len(F_On):
raise ValueError
with YKHO.table.batch_write() as Wc9F:
for QyVM in _H53.index:
obmo = str(QyVM)
he6J = _H53.loc[QyVM].values
ZfUD = YKHO._create_vector_item(obmo, he6J)
Wc9F.put_item(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pUMt(F_On, A07C=None):\n d6pt = HzV8.IndexFlatL2(F_On.shape[1])\n if A07C:\n d6pt = HzV8.IndexIDMap(d6pt)\n d6pt.add_with_ids(F_On, oyIN.array([YRbF for YRbF in A07C]))\n else:\n d6pt.add(F_On)\n return d6pt",
"def JLCE(**B2fa):\n return lambda F_On: rLdf.DataFrame(F_On, *... | [
"0.7106333",
"0.6811036",
"0.63466954",
"0.62717336",
"0.6179383",
"0.6179383",
"0.61661184",
"0.6162891",
"0.6125444",
"0.6107017",
"0.610671",
"0.60495985",
"0.60319054",
"0.5955523",
"0.5946969",
"0.5921195",
"0.59076285",
"0.5887823",
"0.58809096",
"0.58267844",
"0.579533... | 0.68852794 | 1 |
Extract the JWT value from the request Header | def G9Yo(YKHO, QePW):
Jpbe = VsOv(QePW).split()
RqSo = gCuF.JWT_AUTH_HEADER_PREFIX.lower()
if not Jpbe:
if gCuF.JWT_AUTH_COOKIE:
return QePW.COOKIES.get(gCuF.JWT_AUTH_COOKIE)
return None
if g2fP(Jpbe[0].lower()) != RqSo:
return None
if len(Jpbe) == 1:
tO9_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwDu(YKHO, QePW):\n RqSo = YKHO.auth_header_prefix\n try:\n em58 = QePW.authorization\n except ValueError:\n return None\n if em58 is None:\n return None\n oJ9c, eOtH = em58\n if oJ9c.lower() != RqSo.lower():\n return None\n return eOtH",
"def ZMgH(MkeE):\n ... | [
"0.7858044",
"0.7511597",
"0.7240969",
"0.7211593",
"0.718861",
"0.70605755",
"0.7032483",
"0.7002912",
"0.6862061",
"0.6852892",
"0.6741529",
"0.67372906",
"0.6670443",
"0.665745",
"0.6649749",
"0.66399497",
"0.6543017",
"0.6535601",
"0.65324974",
"0.65063125",
"0.65012133",... | 0.8138629 | 0 |
Create a heap, optionally by copying elements from iterable. | def FIMM(YKHO, OxJJ=None):
YKHO.heap = []
if OxJJ is not None:
for ZfUD in OxJJ:
YKHO.push(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMzV(OxJJ):\n gGq6 = []\n [_eVy.heappush(gGq6, ZfUD) for ZfUD in OxJJ]\n return [_eVy.heappop(gGq6) for YRbF in range(len(gGq6))]",
"def QZno(WKvO):\n pass",
"def Npt8(YKHO, ezWE):\n YRbF = len(ezWE) // 2\n YKHO.size = len(ezWE)\n YKHO.heap_list = [-1] + ezWE[:]\n while YRbF > 0:\n ... | [
"0.72410303",
"0.7051308",
"0.693648",
"0.6918692",
"0.6899991",
"0.68681264",
"0.6720534",
"0.67195183",
"0.6672693",
"0.6666965",
"0.6666965",
"0.64771056",
"0.6437493",
"0.63755804",
"0.6367573",
"0.6309075",
"0.6295559",
"0.6223148",
"0.6217653",
"0.6199215",
"0.6198203",... | 0.77081156 | 0 |
Creates a thread to run the current action on with _action_then_signal() and starts the thread. | def XeOP(YKHO):
YKHO.action_thread = Esm4(target=YKHO._action_then_signal, daemon=True)
YKHO.action_thread.start() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKcO(YKHO, jzYJ=None):\n YKHO.__thread = Esm4(target=YKHO.__run, args=[jzYJ])\n YKHO.__thread.start()\n YKHO.__set_state(lNVW.Idle)",
"def _qiw(YKHO):\n YKHO.runner = IudK(queue=gGq6, app_id=YKHO.app_id)\n YKHO.runner.start()",
"def yKcO(YKHO):\n YKHO.thread.start()\n YKHO.state = 'run... | [
"0.6547175",
"0.6039589",
"0.59670496",
"0.5966031",
"0.58738077",
"0.5838541",
"0.57921827",
"0.57874674",
"0.5773225",
"0.5753852",
"0.5731102",
"0.57148725",
"0.571158",
"0.56937253",
"0.5665757",
"0.5648856",
"0.5641471",
"0.562415",
"0.5566491",
"0.55386996",
"0.5538058"... | 0.82488555 | 0 |
Initializes app,test variables and test client | def FCbF(YKHO):
YKHO.app = LUif(config_name='testing')
YKHO.client = YKHO.app.test_client
YKHO.activity = {'name': 'Shop in Dubai'}
YKHO.bucketlist = {'name': 'Go to Egypt for trip'}
YKHO.user_details = {'email': 'test@gmail.com', 'password': 'password123'}
with YKHO.app.app_context():
N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = LUif()\n YKHO.client = YKHO.app.test_client",
"def FCbF(YKHO):\n YKHO.app = P4t4.test_client()\n YKHO.app.testing = True",
"def FCbF(YKHO):\n YKHO.app = P4t4\n YKHO.client = YKHO.app.test_client",
"def FCbF(YKHO):\n YKHO.test_app = P4t4.test_client()",
"def... | [
"0.82711816",
"0.81828535",
"0.81783855",
"0.8171928",
"0.8162108",
"0.8156813",
"0.81428725",
"0.81428725",
"0.80526626",
"0.80025965",
"0.7977814",
"0.7953018",
"0.7952892",
"0.7940171",
"0.7812929",
"0.7812929",
"0.77971184",
"0.77971184",
"0.77971184",
"0.77425003",
"0.77... | 0.748095 | 36 |
Attach a `Mapper` instance to an object. | def WAt6(YEnM, YAg3):
setattr(YEnM, SD6s, YAg3)
return YAg3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E6G1(YKHO, pnIw, U5NI, iWol):\n if YKHO.objectMaps == None:\n YKHO.loadObjectMaps()\n YKHO.objectMaps[pnIw, U5NI] = iWol",
"def qD78(YKHO, YEnM):\n YKHO.Object = YEnM.Object",
"def FJj_(YKHO, AvyM):\n if isinstance(AvyM, YKHO.__class__):\n AvyM = AvyM.maps\n for r8hN in AvyM:\n... | [
"0.5826254",
"0.55663204",
"0.54730034",
"0.5471485",
"0.5421349",
"0.53690064",
"0.53602016",
"0.5251881",
"0.5229329",
"0.5206481",
"0.51788855",
"0.51725054",
"0.5143136",
"0.51405644",
"0.50553316",
"0.50550145",
"0.50498307",
"0.50015295",
"0.499092",
"0.49558455",
"0.49... | 0.65594316 | 0 |
Removes a firewall rule from the active rules set. | def Dri0(YKHO, qnlB):
if YKHO._mode == Kfu_.PassThrough:
raise ValueError("Can't edit rules while in passthrough mode")
if YKHO._mode == Kfu_.BlackList:
if len(YKHO._blacklist_rules) - 1 < qnlB:
raise ValueError('Rule not found in rules list')
eD8c = YKHO._blacklist_rules.pop... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9T2(YKHO, Ye9C):\n return YKHO.delete(YKHO.firewall_rule_path % Ye9C)",
"def z9T2(YKHO, Ox_i, DFfT):\n bD7m = f'/server/{Ox_i}/firewall_rule/{DFfT}'\n return YKHO.api.delete_request(bD7m)",
"def IO15(YKHO, *qIxc):\n return _VfD.Model_removeRule(YKHO, *qIxc)",
"def Dri0(YKHO, eNCK, eD8c, GDMi... | [
"0.7757533",
"0.6943715",
"0.6852705",
"0.67832965",
"0.67708015",
"0.6635733",
"0.65605795",
"0.6348685",
"0.6308939",
"0.6307866",
"0.62326866",
"0.62037337",
"0.6202202",
"0.61941576",
"0.614105",
"0.61352926",
"0.61348003",
"0.6127797",
"0.606116",
"0.6017737",
"0.5989145... | 0.6898738 | 2 |
String for representing the Model object | def zAg0(YKHO):
return YKHO.lastName + ', ' + YKHO.firstName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.8219232",
"0.8020793",
"0.77580154",
"0.7699273",
"0.7683828",
"0.7678613",
"0.7568337",
"0.7568337",
"0.75642484",
"0.75642484",
"0.75589746",
"0.75219977",
"0.75219977",
"0.7509915",
"0.75078505",
"0.7363909",
"0.73598325",
"0.7340365",
"0.73359716",
"0.73188025",
"0.731... | 0.0 | -1 |
String for representing the Model object | def zAg0(YKHO):
return YKHO.lastName + ', ' + YKHO.firstName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.8219232",
"0.8020793",
"0.77580154",
"0.7699273",
"0.7683828",
"0.7678613",
"0.7568337",
"0.7568337",
"0.75642484",
"0.75642484",
"0.75589746",
"0.75219977",
"0.75219977",
"0.7509915",
"0.75078505",
"0.7363909",
"0.73598325",
"0.7340365",
"0.73359716",
"0.73188025",
"0.731... | 0.0 | -1 |
String for representing the Model object | def zAg0(YKHO):
return YKHO.date.strftime('%y/%m/%d') + ' ' + YKHO.time.strftime('%I:%M %p') + ' ' + YKHO.activity + ' ' + YKHO.description[:40] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.8219232",
"0.8020793",
"0.77580154",
"0.7699273",
"0.7683828",
"0.7678613",
"0.7568337",
"0.7568337",
"0.75642484",
"0.75642484",
"0.75589746",
"0.75219977",
"0.75219977",
"0.7509915",
"0.75078505",
"0.7363909",
"0.73598325",
"0.7340365",
"0.73359716",
"0.73188025",
"0.731... | 0.0 | -1 |
Returns a new DQN agent for training. | def QmLr(IlaF: dict={}, zLIf: dict={}):
from attackgraph.rl.dqn.dqn import DQN
_2aG = DQN(is_attacker=IlaF['training_attacker'], input_size=IlaF['observation_space'], hidden_sizes=F_Qp.REQUIRED, output_size=IlaF['n_actions'], parameter_noise=IlaF['self'].param_noise)
return _2aG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYWV(YKHO, sEAN):\n from keras import Sequential\n from keras.optimizers import Adam\n from keras.layers import Dense, Dropout\n from rl.memory import SequentialMemory\n from rl.agents import DQNAgent\n YKHO.env = sEAN\n g6MG = YKHO.env.action_space.n\n C3ST = Sequential()\n C3ST.add... | [
"0.7206351",
"0.65786463",
"0.6507172",
"0.6447812",
"0.63560385",
"0.6079678",
"0.6061534",
"0.60434127",
"0.59667206",
"0.59236157",
"0.5913338",
"0.58702904",
"0.58642316",
"0.5832737",
"0.58281505",
"0.58207935",
"0.5808759",
"0.5806642",
"0.5761789",
"0.57550985",
"0.575... | 0.5207674 | 83 |
Returns a new DQNEncDec agent for training. | def lb7u(IlaF: dict={}, zLIf: dict={}):
from attackgraph.rl.dqn.dqn_encdec import DQNEncDec
_2aG = DQNEncDec(is_attacker=IlaF['training_attacker'], state_dim=IlaF['observation_space'], hidden_sizes=F_Qp.REQUIRED, action_dim=IlaF['n_actions'], parameter_noise=IlaF['self'].param_noise)
return _2aG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYWV(YKHO, sEAN):\n from keras import Sequential\n from keras.optimizers import Adam\n from keras.layers import Dense, Dropout\n from rl.memory import SequentialMemory\n from rl.agents import DQNAgent\n YKHO.env = sEAN\n g6MG = YKHO.env.action_space.n\n C3ST = Sequential()\n C3ST.add... | [
"0.68932515",
"0.63375115",
"0.6181415",
"0.6145594",
"0.5808726",
"0.5784682",
"0.5780569",
"0.57206464",
"0.5680821",
"0.5623891",
"0.5603343",
"0.5583325",
"0.55061114",
"0.5503261",
"0.5478956",
"0.546185",
"0.54576355",
"0.5454365",
"0.5427669",
"0.54274136",
"0.5398888"... | 0.5774409 | 7 |
check if the stack is empty or not | def FBfn(YKHO):
if len(YKHO.items) == 0:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return YKHO.stack == []",
"def lsmZ(YKHO) -> bool:\n if len(YKHO.stack) == 0:\n return True\n else:\n retu... | [
"0.8820189",
"0.8789367",
"0.87762195",
"0.8738477",
"0.8710901",
"0.86677873",
"0.86677873",
"0.8604702",
"0.8599921",
"0.85739094",
"0.8472459",
"0.8416655",
"0.83404785",
"0.83376265",
"0.83323705",
"0.83043426",
"0.826573",
"0.826077",
"0.826077",
"0.82483155",
"0.8248315... | 0.0 | -1 |
Assign AOV to object. Applies to all materials. | def D8J6(YKHO, hR1S: AOV):
if hR1S not in YKHO.assigned_aovs:
for Mx95 in YKHO.materials:
pwCv = Mx95.node_tree
assert pwCv is not None, 'Material must have a node tree'
hR1S.add_to_shader(pwCv)
YKHO.assigned_aovs.append(hR1S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HtSm(YKHO, xlmR: List[AOV]):\n for hR1S in xlmR:\n YKHO.assign_aov(hR1S)",
"def B1sm(YKHO):\n xlmR = FQNo.ls(typ='aiAOV')\n OGS2 = {}\n for jzdc in xlmR:\n OGS2[jzdc] = {}\n OGS2[jzdc]['enabled'] = FQNo.getAttr(jzdc + '.enabled')\n OGS2[jzdc]['name'] = FQNo.getAttr(jzd... | [
"0.56896895",
"0.5355168",
"0.51943994",
"0.51154995",
"0.5089141",
"0.50518215",
"0.50138897",
"0.49981174",
"0.49703842",
"0.4933291",
"0.49104992",
"0.48974028",
"0.48704788",
"0.4866555",
"0.48458073",
"0.48303026",
"0.4798564",
"0.47830492",
"0.46833578",
"0.46684775",
"... | 0.724779 | 0 |
Override to set origin manually. Should only be used by internal functions. | def U9p7(YKHO, hLRM: Vector, Woip=True):
if Woip:
for rR8k in YKHO._meshes:
rR8k.location = hLRM
else:
YKHO._meshes[0].location = hLRM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGPi(YKHO, hLRM):\n YKHO.origin_value = hLRM",
"def lqoY(YKHO, hLRM):\n YKHO.origin = hLRM\n YKHO.__symbol_set.update(hLRM)",
"def lqoY(YKHO, WCTB, bcFp):\n YKHO.x = WCTB - YKHO.rect.width / 2\n YKHO.y = bcFp + YKHO.rect.height\n YKHO._update_rect()",
"def lqoY(YKHO, WKvO, LVAh):\n Y... | [
"0.7926876",
"0.76980597",
"0.7681081",
"0.75539285",
"0.7288345",
"0.72832423",
"0.7259262",
"0.70419425",
"0.70419425",
"0.70419425",
"0.7029014",
"0.6987368",
"0.6827552",
"0.67920196",
"0.6771851",
"0.67673916",
"0.65686303",
"0.65686303",
"0.65686303",
"0.65686303",
"0.6... | 0.7113664 | 7 |
Move object origin to centroid. | def stpX(YKHO, NKcE: str='bounds'):
l914 = ['bounds', 'median', 'com_volume', 'com_area']
sR6D = dict(bounds='ORIGIN_GEOMETRY', median='ORIGIN_GEOMETRY', com_volume='ORIGIN_CENTER_OF_VOLUME', com_area='ORIGIN_CENTER_OF_MASS')
hgjH = 'BOUNDS' if NKcE == 'bounds' else 'MEDIAN'
with pok0(YKHO._meshes + YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(YKHO, e6ux):\n YKHO._centroid = e6ux",
"def hmd9(YKHO, hgjH):\n XP5J = hgjH - YKHO.centroid\n for YRbF in range(len(YKHO.points)):\n YKHO.points[YRbF] += XP5J",
"def hgjH(YKHO, yFgu):\n YKHO.move(destination=yFgu, origin=YKHO.center)",
"def NrUR(YEnM):\n dEMJ = q22J.desktop()\n... | [
"0.6864928",
"0.6516138",
"0.6403322",
"0.63724273",
"0.63602036",
"0.6357464",
"0.63393885",
"0.63297814",
"0.6308069",
"0.62789786",
"0.62113476",
"0.6191734",
"0.61526984",
"0.61366516",
"0.605789",
"0.6038639",
"0.60129255",
"0.5979582",
"0.5941254",
"0.5928024",
"0.59148... | 0.594073 | 19 |
Render website's home page. | def kZiy():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def C_QL():\n ... | [
"0.8724249",
"0.85791856",
"0.850329",
"0.84860355",
"0.84612614",
"0.84362435",
"0.8429879",
"0.8419578",
"0.8396612",
"0.8396612",
"0.8374868",
"0.8356488",
"0.8350785",
"0.8340763",
"0.8340763",
"0.83374727",
"0.83374727",
"0.83374727",
"0.83374727",
"0.83374727",
"0.83374... | 0.82190555 | 53 |
Render the home page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.887302",
"0.8745959",
"0.8593729",
"0.85518956",
"0.85518956",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
"0.85492104",
... | 0.0 | -1 |
Render the about site page. | def vsuQ():
return TvZl('about.html') | {
"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 vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')",
"def vsuQ():\n return TvZl... | [
"0.8623695",
"0.8546367",
"0.8505849",
"0.83812547",
"0.83113366",
"0.8297885",
"0.82673436",
"0.825615",
"0.8242478",
"0.8230787",
"0.8229448",
"0.82178956",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82066315",
"0.82... | 0.8145113 | 35 |
Render the website's contact page. | def agnI():
return j0kY('static/img/favicon.ico') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year='2020', message='Your contact page.')",
"def Mxk0():\n return TvZl('contac... | [
"0.8571523",
"0.853422",
"0.8482251",
"0.84443015",
"0.84443015",
"0.8443343",
"0.8438249",
"0.84182364",
"0.84182364",
"0.84182364",
"0.84182364",
"0.84182364",
"0.84182364",
"0.84182364",
"0.84182364",
"0.8395762",
"0.837459",
"0.8162383",
"0.81143713",
"0.8085514",
"0.8036... | 0.0 | -1 |
calculates grid deltas between two positions relative to first position | def BUbG(g4we, dC8m):
Jw7X = dC8m[0] - g4we[0]
eUWA = dC8m[1] - g4we[1]
return (Jw7X, eUWA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z63z(k0lF, tjUW):\n if (k0lF.xllcorner, k0lF.yllcorner) == (tjUW.xllcorner, tjUW.yllcorner) and (k0lF.ncols, k0lF.nrows) == (tjUW.ncols, tjUW.nrows):\n T1vh = XTiz.where(tjUW.data != tjUW.nodata, tjUW.data, 1.0)\n T1vh = XTiz.where(tjUW.data != 0.0, tjUW.data, 1.0)\n Nq1b = 100.0 * (k0l... | [
"0.62960494",
"0.61300075",
"0.60621697",
"0.6059241",
"0.60561305",
"0.6032316",
"0.6003388",
"0.59514964",
"0.5944506",
"0.58836967",
"0.58693504",
"0.58687866",
"0.5848963",
"0.58146465",
"0.57909715",
"0.57909477",
"0.57792354",
"0.57341146",
"0.5691901",
"0.5690794",
"0.... | 0.53063124 | 75 |
Returns the transport used by the client instance. | def PdI0(YKHO) -> u199:
return YKHO._transport | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdI0(YKHO):\n return YKHO._transport",
"def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport",
"def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport",
"def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport",
"def PdI0(Y... | [
"0.82946277",
"0.7887542",
"0.773594",
"0.773068",
"0.76806635",
"0.7674273",
"0.76357967",
"0.7558095",
"0.7551682",
"0.75303864",
"0.74958986",
"0.7488142",
"0.7436853",
"0.7423566",
"0.7368433",
"0.73340607",
"0.721926",
"0.7109823",
"0.7102308",
"0.68808985",
"0.6671675",... | 0.68144 | 20 |
Returns a fullyqualified billing_account string. | def VwIJ(GLga: str) -> str:
return 'billingAccounts/{billing_account}'.format(billing_account=GLga) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.ge... | [
"0.79002553",
"0.79002553",
"0.79002553",
"0.7712969",
"0.7712969",
"0.74875593",
"0.74875593",
"0.73243135",
"0.68009645",
"0.6783066",
"0.66662496",
"0.66662496",
"0.66435224",
"0.66435224",
"0.65389526",
"0.6513056",
"0.6302785",
"0.6262761",
"0.6173323",
"0.6169606",
"0.6... | 0.750967 | 5 |
r"""Updates an issue model. | def S0PS(YKHO, QePW: contact_center_insights.UpdateIssueModelRequest=None, *, Agtx: resources.IssueModel=None, kopU: field_mask_pb2.FieldMask=None, ZFzw: retries.Retry=uMLX.method.DEFAULT, vYBr: float=None, yIVm: Sequence[Tuple[str, str]]=()) -> JKCy.IssueModel:
RRHz = any([Agtx, kopU])
if QePW is not None and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNH0(YKHO):\n pass",
"def QdZT(YKHO):\n NArs = {'title': YKHO.title, 'body': YKHO.body, 'state': YKHO.state, 'labels': YKHO.labels, 'assignees': YKHO.assignees}\n if YKHO.milestone:\n NArs['milestone'] = YKHO.milestone\n _hkX = (yield YKHO.client.request('{}/issues/{}'.format(YKHO.repo.bas... | [
"0.71829796",
"0.7070325",
"0.6968259",
"0.6723839",
"0.6370942",
"0.6251977",
"0.6076467",
"0.60365206",
"0.60352504",
"0.5975417",
"0.59308255",
"0.5929828",
"0.5870872",
"0.57429624",
"0.57183534",
"0.5710667",
"0.5701886",
"0.569185",
"0.56910235",
"0.56847495",
"0.565393... | 0.6811689 | 3 |
Returns the min value in a binary tree. | def dgIT(grZ9):
kpLf = grZ9.value
E5BI = [grZ9]
while E5BI:
jvSB = E5BI.pop()
if jvSB.value < kpLf:
kpLf = jvSB.value
if jvSB.right:
E5BI.append(jvSB.right)
if jvSB.left:
E5BI.append(jvSB.left)
return kpLf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNDM(YKHO):\n if YKHO.root:\n return YKHO.root.min().value\n raise ValueError('cannot perform peek_min on an empty tree')",
"def ohV5(YKHO):\n if YKHO.left:\n return YKHO.left.get_min()\n return YKHO.value",
"def ohV5(YKHO):\n if not YKHO:\n return None\n return YKHO.... | [
"0.8520712",
"0.845208",
"0.83252406",
"0.822124",
"0.80629766",
"0.80616343",
"0.79981214",
"0.79378015",
"0.79205626",
"0.790611",
"0.78811866",
"0.7863986",
"0.7837147",
"0.7833623",
"0.7791693",
"0.7706092",
"0.7685366",
"0.75970435",
"0.7590981",
"0.75882053",
"0.7573986... | 0.7800315 | 14 |
Return the maximum path sum of a binary tree. | def ocAo(grZ9):
if grZ9 is None:
return 0
if grZ9.left is None and grZ9.right is None:
return grZ9.value
RSt8 = max(ocAo(grZ9.left), ocAo(grZ9.left))
return grZ9.value + RSt8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SBis(YKHO, tk5Y):\n\n def SP4I(Q6kx):\n \"\"\"Return max potention from each node in tree.\"\"\"\n nonlocal maxsum\n if not Q6kx:\n return 0\n gevG = max(SP4I(Q6kx.left), 0)\n print('left_max:', gevG)\n EjcV = max(SP4I(Q6kx.right), 0)\n print('righ... | [
"0.8390415",
"0.8178529",
"0.7540854",
"0.74962276",
"0.74432206",
"0.7416371",
"0.6850052",
"0.6802187",
"0.66597754",
"0.66577923",
"0.65914303",
"0.657993",
"0.657216",
"0.6428174",
"0.63990885",
"0.63990885",
"0.6391039",
"0.6366077",
"0.6362675",
"0.6358799",
"0.63518876... | 0.84747034 | 0 |
Get the most recent ProductVersion for a product | def i2Yg(Lx3t):
return Lx3t.productversions.order_by('-created_on').first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JzWA(YKHO):\n if len(YKHO.versions) > 0:\n Ty9i = sorted(YKHO.versions, key=lambda Ty9i: int(Ty9i['id']))[len(YKHO.versions) - 1]\n return YKHO.get_version(Ty9i['id'])\n else:\n return None",
"def fsbt(Emd4):\n OQEO = Emd4.query.all()\n if len(OQEO) == 0:\n return None... | [
"0.70546645",
"0.697221",
"0.68986726",
"0.6848886",
"0.68030393",
"0.6796238",
"0.679168",
"0.6778039",
"0.6743275",
"0.6739602",
"0.67340857",
"0.6706589",
"0.6674874",
"0.66369516",
"0.66028637",
"0.6543131",
"0.6518379",
"0.6431812",
"0.63932705",
"0.63916445",
"0.6387638... | 0.8983362 | 0 |
Verifies that the course run selections for the given basket are valid, and returns the course run IDs of the selected course runs. | def nhye(Ylqb, SODG):
qHjN = Ylqb.courserunselection_set.all()
if len(qHjN) == 0:
raise sUXu({'runs': 'You must select a date for each course.'})
if isinstance(SODG, Qyor):
jII7 = set(SODG.courses.live().values_list('id', flat=True))
else:
jII7 = {SODG.course_id}
if len(qHjN)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oarV(CBIr):\n Ylqb = cGTY.objects.prefetch_related('basketitems__product__content_object', 'couponselection_set__coupon', 'courserunselection_set__run').get(user=CBIr)\n DBjM, Lx3t, uPYU = MmbN(Ylqb)\n o6dk = nhye(Ylqb, Lx3t.content_object)\n iajZ = qSm0(Ylqb, Lx3t)\n if uPYU.requires_enrollment... | [
"0.56617093",
"0.49104264",
"0.49085626",
"0.4806148",
"0.4783811",
"0.4709899",
"0.46398574",
"0.45839947",
"0.45368364",
"0.45231676",
"0.45187724",
"0.44772285",
"0.44472843",
"0.4437117",
"0.44013822",
"0.438784",
"0.436937",
"0.43656102",
"0.43396983",
"0.4338599",
"0.43... | 0.7933139 | 0 |
Test if an instance or class is serializable. >>> | def eepn(HbUg: Any) -> bool:
return hasattr(HbUg, L1TC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KqlB(YEnM):\n try:\n t2lc.dumps(YEnM)\n except t2lc.PicklingError:\n return False\n return True",
"def Cv6d(YEnM):\n return hasattr(YEnM, 'serialize') and hasattr(YEnM, 'deserialize')",
"def B61e():\n spHt.put(xePu)\n iyYY = xePu()\n with trZe.raises(ZVdn):\n spHt.... | [
"0.631063",
"0.61888593",
"0.61764514",
"0.606287",
"0.578346",
"0.5709154",
"0.5606728",
"0.5577882",
"0.5562468",
"0.55464387",
"0.553389",
"0.5487497",
"0.5483271",
"0.54758954",
"0.54571164",
"0.5341938",
"0.5293715",
"0.52733064",
"0.52531147",
"0.5225431",
"0.5212891",
... | 0.8185239 | 0 |
Render rvalue for primitives. | def PDiv(YKHO, d7pR: SeField[Any]) -> str:
cM24 = QNO6(d7pR.type)
SRYB = d7pR.varname
if YKHO.suppress_coerce:
return SRYB
else:
return f'coerce({cM24}, {SRYB})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n Mkmy = f'<{YKHO.type}={YKHO.value}>' if YKHO.value else f'<{YKHO.type}>'\n return Mkmy",
"def wHJl(YKHO):\n return YKHO.value",
"def wHJl(YKHO):\n return '{}'.format(YKHO.val)",
"def wHJl(YKHO):\n return '{}'.format(YKHO.val)",
"def wHJl(YKHO):\n return str(YKHO.value)",... | [
"0.6320464",
"0.59662974",
"0.5883248",
"0.5883248",
"0.587805",
"0.587805",
"0.58287644",
"0.58287644",
"0.576031",
"0.5690682",
"0.56842905",
"0.56658614",
"0.56658614",
"0.56658614",
"0.56658614",
"0.564693",
"0.56184596",
"0.5614047",
"0.5597958",
"0.55143726",
"0.5512603... | 0.0 | -1 |
Get the default engines from all models Returns Dict[str, str] Default engines for all containers. If unspecified, it is not included in the return dictionary. | def lUBL() -> cuzp[str, str]:
yZ8i = {}
for id, SJ5G in zfVe.items():
yZ8i[id] = SJ5G[0]
return yZ8i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4Sz(YKHO):\n if not 'engines' in YKHO.data:\n raise ValueError(\"This recipe doesn't have engines\")\n return YKHO.data['engines']",
"def QUTX(YKHO) -> h8nf[bdIy['outputs.CSIPowerMaxSpecDriverCommonEnvs']]:\n return qe4Y.get(YKHO, 'envs')",
"def QUTX(YKHO) -> h8nf[bdIy['outputs.CSIPowerMax... | [
"0.59966433",
"0.56747043",
"0.56631047",
"0.5660428",
"0.56266505",
"0.56266505",
"0.5584942",
"0.55665815",
"0.5556945",
"0.55494493",
"0.55435604",
"0.5537465",
"0.55236477",
"0.55003726",
"0.54973334",
"0.5489643",
"0.54861104",
"0.54800034",
"0.54428667",
"0.5370886",
"0... | 0.795721 | 0 |
Model ID Returns str The model id that is used to reference this model | def id(YKHO) -> str:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return _VfD.Model_getId(YKHO)",
"def tsEk(YKHO):\n return YKHO.comm.comm_id",
"def tsEk(YKHO):\n mbyn = JRYC.now().strftime('%Y-%m-%d_%H:%M')\n return '%s_%s_%s_%s' % (mbyn, YKHO.embedding_type, YKHO.class_label, YKHO.drop_irrelevant)",
"def aPX7(YKHO) -> str:\n return YKHO._... | [
"0.8249524",
"0.8019611",
"0.79375136",
"0.78011423",
"0.7406605",
"0.73186636",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.72834927",
"0.7278067",
... | 0.7186416 | 24 |
Model Name Returns str The detailed name of the model used for display purposes | def mWFP(YKHO) -> str:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def TbE8(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_RenderModelName_String)",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C... | [
"0.8532552",
"0.83654517",
"0.83200336",
"0.83200336",
"0.8155751",
"0.81235456",
"0.8109568",
"0.81031543",
"0.8035665",
"0.7843652",
"0.7814869",
"0.7744835",
"0.77404827",
"0.77257526",
"0.7678394",
"0.76538646",
"0.76369643",
"0.7629161",
"0.7591583",
"0.75697595",
"0.756... | 0.0 | -1 |
Export a zip file containing all of the database's response templates. | def LVRI(cQZk, QePW, SR0I):
del QePW, cQZk
NRcB = xDSY.BytesIO()
lNdu = AvK2.ZipFile(NRcB, 'w')
for K_hV in SR0I:
Ux0P = K_hV.path
lNdu.writestr(Ux0P, K_hV.content)
lNdu.close()
geh0 = igJ6(NRcB.getvalue(), content_type='application/zip')
geh0['Content-Disposition'] = 'attach... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9bx(QePW):\n with gbPf.TemporaryDirectory() as TBXe:\n with AvK2.ZipFile(Hy7s.path.join(TBXe, 'data.zip'), 'x') as kMJl:\n kMJl.write(gCuF.DATABASES['default']['NAME'], arcname='db.sqlite3')\n geh0 = c5qa(open(Hy7s.path.join(TBXe, 'data.zip'), 'rb'))\n geh0['Content-Disposit... | [
"0.6605638",
"0.62541217",
"0.6186269",
"0.60622203",
"0.59472805",
"0.59091693",
"0.5873034",
"0.587133",
"0.587133",
"0.5852864",
"0.58439785",
"0.58303237",
"0.58122176",
"0.5793028",
"0.5791535",
"0.5782591",
"0.5782591",
"0.5782591",
"0.5782591",
"0.5782591",
"0.5782591"... | 0.632173 | 1 |
Returns mocked response with url. Returns None if not matched any data. | def RFsR(YKHO, bD7m, NKcE='GET'):
U5Jc = KVWQ.urlparse(bD7m)
if U5Jc.netloc not in YKHO._cnfs_by_host:
return None
NKcE = NKcE.upper()
for ZfUD in YKHO._cnfs_by_host[U5Jc.netloc]:
if ZfUD['path'] == U5Jc.path and ZfUD['method'] == NKcE:
if ZfUD['body_type'] == 'file':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UcEx(bD7m, *qIxc, **B2fa):\n Ux0P = i0XC(wAhs['m101'])\n eHNT = open(Ux0P, 'r')\n l5Ny = eHNT.read()\n RI88 = HiyZ(l5Ny)\n eHNT.close()\n return RI88",
"def T_2m(lWQw):\n return G4JS.get(lWQw)",
"def e0FP(bD7m):\n mAqZ = bD7m.split('/')[-1]\n Aofo = G4JS.Response()\n Aofo.stat... | [
"0.7185421",
"0.67830473",
"0.6581207",
"0.6554457",
"0.6503297",
"0.6491006",
"0.6486203",
"0.6438076",
"0.6438076",
"0.6429996",
"0.6391392",
"0.63800424",
"0.63695586",
"0.63675416",
"0.63119805",
"0.63081384",
"0.6301569",
"0.62391376",
"0.6229476",
"0.6188182",
"0.615624... | 0.6072532 | 23 |
Returns true if board_size is valid. | def ZPoB(BrEt):
if not isinstance(BrEt, int):
return False
if BrEt < 3 or BrEt > yELo.LARGEST_BOARD_SIZE:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmGW(cuUy):\n return TTrU(cuUy) and iG05(cuUy) and oCju(cuUy)",
"def oqoh(YKHO, iBIi, Bwa6):\n vVxE = iBIi.get_rows() * iBIi.get_cols()\n if vVxE < (6 - len(Bwa6)) * len(Bwa6):\n raise ValueError('Board specified by board_size is too small.')\n if len(Bwa6) == 3 and vVxE - iBIi.get_holes_i... | [
"0.7422723",
"0.7249498",
"0.69887567",
"0.69840866",
"0.6846299",
"0.68242246",
"0.6704236",
"0.66333365",
"0.662797",
"0.66123533",
"0.66006494",
"0.65978116",
"0.65944284",
"0.6556372",
"0.65444493",
"0.65066385",
"0.65052843",
"0.6429753",
"0.64249456",
"0.6424821",
"0.63... | 0.85331017 | 0 |
Runs the main loop for the program. | def NT00(YKHO):
print('Game Loop starting...')
while True:
xKkD = YKHO.who_goes_first()
print('The ' + xKkD + ' will go first.')
while YKHO.is_active:
if xKkD == 'player':
YKHO.board.draw()
BZN_ = Ydn_(YKHO.board.positions, YKHO.board.is_positi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1():\n b8V_()",
"def b8V_():\n LTQj()",
"def b8V_() -> None:\n WL52()\n V7ok.get_event_loop().run_forever()",
"def b8V_() -> None:\n WL52()\n V7ok.get_event_loop().run_forever()",
"async def _main(YKHO):\n while True:\n ITS7.sleep(1)",
"def b8V_():\n r1oy = nPrm.game... | [
"0.77293634",
"0.76222867",
"0.75609976",
"0.75609976",
"0.73191077",
"0.73138976",
"0.72779584",
"0.72532403",
"0.7218559",
"0.71964186",
"0.71941996",
"0.7175238",
"0.7160935",
"0.71349376",
"0.71322256",
"0.7110474",
"0.7102987",
"0.70947635",
"0.70587116",
"0.7038902",
"0... | 0.0 | -1 |
Split dataframe into training and validation sets based on given % | def GPjg(jQ3Z, zCzB=0.8):
EvQg = jQ3Z.sample(frac=zCzB)
xzCw = jQ3Z.drop(EvQg.index)
return (EvQg, xzCw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hhTY(jQ3Z, LkJf=50):\n return (jQ3Z.loc[jQ3Z.index.values % 100 < LkJf].reset_index().copy(), jQ3Z.loc[~(jQ3Z.index.values % 100 < LkJf)].reset_index().copy())",
"def ax8p(jQ3Z, DuZT=0.2):\n EvQg = []\n M4N3 = []\n for G1Hx, Oa1e in jQ3Z.groupby('sender')['mid', 'recipients']:\n QHlx = Oa1... | [
"0.80060047",
"0.74237996",
"0.7367158",
"0.7349186",
"0.731596",
"0.72757053",
"0.7271053",
"0.72709185",
"0.71755165",
"0.7162196",
"0.71269006",
"0.71239233",
"0.71239233",
"0.70942765",
"0.7059493",
"0.70532954",
"0.7044986",
"0.70298046",
"0.69762635",
"0.6971696",
"0.69... | 0.7616091 | 1 |
Format graph into networkx Graph object. | def iM4q(pNZh, e5kH=None, iMGt='nipy_spectral_r', CkYf=None, **B2fa):
tckm = dict(pNZh['nodes'])
ELzy = dict(pNZh['links'])
if e5kH is None:
e5kH = sorted(set((IaaG for bGrB in tckm.values() for IaaG in bGrB)))
yvY1 = jHsn.Graph(ELzy)
iMGt = iMGt if callable(iMGt) else QrM1.get_cmap(iMGt)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_SC(yvY1):\n pl6L = jHsn.Graph()\n for fHgE, o8Kj in yvY1.nodes(data=True):\n pl6L.add_node(str(fHgE), chem=o8Kj['atom_symbol'])\n for Khga, Wegd, o8Kj in yvY1.edges(data=True):\n pl6L.add_edge(str(Khga), str(Wegd), valence=o8Kj['bond_type'])\n return pl6L",
"def e_SC(yvY1):\n p... | [
"0.7325583",
"0.72616845",
"0.7033721",
"0.68054384",
"0.66022146",
"0.6486966",
"0.63581645",
"0.63276106",
"0.6243864",
"0.62359005",
"0.6202594",
"0.6198098",
"0.61733884",
"0.61504203",
"0.6101194",
"0.6086393",
"0.60592103",
"0.6049269",
"0.603517",
"0.6030319",
"0.60198... | 0.56149256 | 87 |
Add cover to scatter plot of projection/lens. | def FnBZ(aNZO=None, Zcod=None, EyrD=True, tMz1=2, **B2fa):
if aNZO is None:
aNZO = QrM1.gca()
jk7u = oyIN.ravel(aNZO.get_xlim())
rTQi = oyIN.ravel(aNZO.get_ylim())
if Zcod is None:
Zcod = i6Bo(**B2fa)
Pyrc = oyIN.vstack([bGrB for tk32, bGrB in Zcod.items()])
if len(Pyrc.T) < 2:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iIT1(YKHO, yvPu, sPQH, Neje):\n for WKvO in range(yvPu - 1, yvPu + 2):\n for LVAh in range(sPQH - 1, sPQH + 2):\n gigf.getMap().plot(WKvO, LVAh).setRevealed(Neje, False, True, -1)",
"def UfPX(nPrm, AAHb):\n SJch, OWjc = KY03()\n LZpg = QrM1.figure(figsize=_Mfv)\n QrM1.imshow(nPr... | [
"0.5685548",
"0.56419706",
"0.5500533",
"0.54964197",
"0.5418214",
"0.5405593",
"0.5395795",
"0.5394089",
"0.5381184",
"0.5341818",
"0.53070235",
"0.52644366",
"0.5259561",
"0.5244077",
"0.5230234",
"0.5229156",
"0.5211171",
"0.52091885",
"0.52051985",
"0.51938695",
"0.519207... | 0.0 | -1 |
Extracts value from record and removes leading prefix/URI | def a5wB(KOxk, H5ew):
BWXx = KOxk[H5ew]['value']
return BWXx[BWXx.rfind('#') + 1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpJy(wEf2: str, y0cW: str) -> str:\n return wEf2[len(y0cW):] if wEf2.startswith(y0cW) else wEf2",
"def JDhM(cmPJ, ZcVd, BWXx):\n Ii1o = int(ZcVd.rsplit('.', 1)[-1])\n cmPJ[Ii1o] = BWXx.strip()",
"def gzGY(AIu6, H5ew):\n return ZbWC.sub('\\\\s+', ' ', o1Tg(AIu6, H5ew))",
"def JDhM(nPrm, H5ew):... | [
"0.60919607",
"0.5938295",
"0.5916172",
"0.58858234",
"0.58747935",
"0.5501179",
"0.54746306",
"0.5455352",
"0.5402884",
"0.53885865",
"0.53713566",
"0.5363935",
"0.5352411",
"0.53093725",
"0.5285315",
"0.52457774",
"0.52300525",
"0.52289844",
"0.51924855",
"0.5152468",
"0.51... | 0.6734634 | 0 |
Creates a new SmtpMailer profile | def lNnX(lZwM, KcEq, NtEF=None, jTXt=None, bIwZ=26, JT5y=None, sIWq=None, i5iB=False, Q4Am=HwRy.stdout):
if not JT5y and (not sIWq):
raise LGrN.UsageException("'from_name' or 'from_email' must be provided")
Jinq = m4oR(KcEq, username=NtEF, password=jTXt, port=bIwZ, from_name=JT5y, from_email=sIWq, ssl=i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z = BFpK()\n z39Z.user = KAOR\n z39Z.email = KAOR.email\n z39Z.save()",
"def eLpg(YKHO, nPrm):\n NtEF = nPrm['email'].split('@')[0]\n CBIr = mv1M.objects.create_user(**nPrm, username=NtEF, is_verified=False, is_client=True)\... | [
"0.69871515",
"0.6736804",
"0.67064905",
"0.6634885",
"0.6540685",
"0.65364593",
"0.653232",
"0.65289867",
"0.6498891",
"0.6498891",
"0.6498891",
"0.64774895",
"0.6446011",
"0.6395769",
"0.6395544",
"0.63789546",
"0.6365305",
"0.626774",
"0.6246853",
"0.6245375",
"0.624051",
... | 0.79361427 | 0 |
Adds word with a frequency of 1. If word already exists, increment that key's value by 1 to indicate it was seen again. | def NrOU(YKHO, GIN8):
GIN8 = GIN8.lower()
if GIN8 in YKHO.word_list:
YKHO.word_list[GIN8] += 1
else:
YKHO.word_list[GIN8] = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPZD(YKHO, GIN8):\n if not GIN8 in YKHO._word2idx.keys():\n YKHO._word2idx[GIN8] = YKHO.vocab_size\n YKHO.freqs[GIN8] = 0\n YKHO._idx2word[YKHO.vocab_size] = GIN8\n YKHO.vocab_size += 1\n YKHO.freqs[GIN8] += 1",
"def QdZT(YKHO, GIN8, QTg7):\n if GIN8 in YKHO.dict:\n ... | [
"0.7508585",
"0.74045515",
"0.723629",
"0.7222524",
"0.71989167",
"0.71388763",
"0.7124417",
"0.7124417",
"0.707256",
"0.69336337",
"0.685697",
"0.6778958",
"0.6690065",
"0.6665038",
"0.6661889",
"0.66369",
"0.649379",
"0.6490922",
"0.64678854",
"0.6453679",
"0.6403599",
"0... | 0.7521451 | 0 |
This finds all matching subgraphs within the graph. The subgraphs are returned as a derived graph based on the node list, so all edges are present even ones not present in match. The subgraph is matched by edge key only. All of the edges must be present in the subgraph, however nodes that are distinct in the match are ... | def kT_w(pNZh, kUBT):
if not kUBT:
return []
return Go4X(pNZh, kUBT, {}, kUBT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XfhK(YKHO, pNZh: Graph):\n if YKHO.replacement_desc.match_kind == 'points':\n kUBT = YKHO._match_sub_graph_for_points(pNZh)\n if kUBT is not None:\n yield kUBT\n elif YKHO.replacement_desc.match_kind == 'scope':\n for KAOR in YKHO.replacement_desc.sub_graph_instances():\n ... | [
"0.7030763",
"0.6678678",
"0.6512331",
"0.6489582",
"0.6326925",
"0.6235689",
"0.60963726",
"0.5959586",
"0.59095633",
"0.57163835",
"0.56518906",
"0.5639643",
"0.5571853",
"0.54761225",
"0.5454015",
"0.5342025",
"0.5341317",
"0.5312715",
"0.5310282",
"0.5289495",
"0.52827466... | 0.79836005 | 0 |
Check if the search should be cutoff early. | def oO96(YKHO, QTBn, rb7a):
return YKHO.depth_limit > 0 and rb7a > YKHO.depth_limit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rChH(YKHO, Zkm3=0.85):\n fkZM = ITS7.time()\n return fkZM - YKHO._start_time >= Zkm3 * YKHO._time_budget",
"def aVkW(YKHO, llHi):\n Qi9c = llHi and YKHO._iteration < YKHO._max_iterations\n if not llHi:\n YKHO._notify(message=ORZ2.StoppedPrematurely)\n elif not Qi9c:\n YKHO._notif... | [
"0.6385524",
"0.634059",
"0.63234013",
"0.6291988",
"0.61720973",
"0.61563563",
"0.61507714",
"0.61128885",
"0.6068058",
"0.60376775",
"0.59424233",
"0.59367615",
"0.5913712",
"0.5910038",
"0.5872615",
"0.5867036",
"0.5865767",
"0.58355504",
"0.58325434",
"0.5819071",
"0.5811... | 0.62697405 | 4 |
Default environment configuration. Can be overloaded in environment implementations, or by calling configure(). | def UiCc(Emd4) -> dict:
return {'observation': {'type': 'Kinematics'}, 'action': {'type': 'DiscreteMetaAction'}, 'simulation_frequency': 15, 'policy_frequency': 1, 'other_vehicles_type': 'highway_env.vehicle.behavior.IDMVehicle', 'screen_width': 600, 'screen_height': 150, 'centering_position': [0.3, 0.5], 'scaling'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RQJT(YKHO):\n YKHO.env_config = {'n_agents': 4, 'world_size': [15, 15], 'episode_length': 1000, 'multi_action_mode_agents': False, 'multi_action_mode_planner': True, 'flatten_observations': False, 'flatten_masks': True, 'components': [{'Build': {}}, {'ContinuousDoubleAuction': {'max_num_orders': 5}}, {'Gath... | [
"0.6802826",
"0.66435456",
"0.6623785",
"0.6506481",
"0.6459857",
"0.6433671",
"0.63724357",
"0.63403493",
"0.6243218",
"0.62029225",
"0.6172123",
"0.61640805",
"0.61543757",
"0.61498463",
"0.61260986",
"0.60633385",
"0.60337114",
"0.6030936",
"0.60288036",
"0.6027045",
"0.60... | 0.568443 | 55 |
Return the reward associated with performing a given action and ending up in the current state. | def Xaq_(YKHO, XeOP: Action) -> float:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, XeOP):\n Ylbp = YKHO.reward_table.get(YKHO.curr_state, XeOP)\n YKHO.curr_state = Ylbp['result']\n return Ylbp",
"def Jc_J(YKHO, XeOP):\n UGpm = 1\n W061 = YKHO.observation_function[YKHO.cur_state]\n aooF = W061[1]\n Mkmy = XeOP * (aooF - UGpm)\n return Mkmy",
"def xyVK(YK... | [
"0.81838316",
"0.810044",
"0.8042165",
"0.8030217",
"0.80297923",
"0.8012718",
"0.79599637",
"0.7952822",
"0.76932406",
"0.7685848",
"0.76539856",
"0.75493425",
"0.7532442",
"0.7450053",
"0.7443335",
"0.73995954",
"0.73988664",
"0.73345715",
"0.7295285",
"0.7288301",
"0.72852... | 0.7453679 | 13 |
Returns a multiobjective vector of rewards. If implemented, this reward vector should be aggregated into a scalar in _reward(). This vector value should only be returned inside the info dict. | def TS38(YKHO, XeOP: Action) -> cuzp[I2jr, float]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZnT(YKHO):\n return oyIN.array(YKHO.rewards)",
"def YZnT(YKHO):\n for YRbF in YKHO.REWARDS:\n YKHO.get_reward(YRbF)",
"def jsPW(YKHO):\n return YKHO._gameRewards",
"def jsPW(YKHO):\n return YKHO._gameRewards",
"def xyVK(YKHO):\n return YKHO.calc_reward(YKHO.sim.pose[:3], YKHO.sim... | [
"0.7354578",
"0.6758989",
"0.671144",
"0.671144",
"0.6539161",
"0.63932836",
"0.6383539",
"0.638338",
"0.6265215",
"0.62527347",
"0.62435377",
"0.6173115",
"0.6156117",
"0.6148786",
"0.60945773",
"0.60682255",
"0.6025972",
"0.5994977",
"0.59854215",
"0.59682214",
"0.59472084"... | 0.5493291 | 57 |
Close the environment. Will close the environment viewer if it exists. | def DDI8(YKHO) -> None:
YKHO.done = True
if YKHO.viewer is not None:
YKHO.viewer.close()
YKHO.viewer = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO._close_viewer_window()\n YKHO.env.close()",
"def LPZs(YKHO):\n YKHO.env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def VT3m(YKHO):\n if YKHO.env.spec:\n if any((B5hb in YKHO.env.spec._entry_point for B5hb in JFVv)):\n try:\n from mu... | [
"0.8069727",
"0.78172356",
"0.7408848",
"0.68834907",
"0.6678882",
"0.6580309",
"0.65654665",
"0.6563769",
"0.6159269",
"0.61543995",
"0.6137054",
"0.6083034",
"0.6081373",
"0.6057436",
"0.60300815",
"0.60117877",
"0.59660363",
"0.5931668",
"0.5931668",
"0.5930597",
"0.588814... | 0.58679926 | 21 |
Decide if two paths the same. | def eKGA(daXS, AUB0):
daXS = Hy7s.path.abspath(Hy7s.path.normpath(daXS))
AUB0 = Hy7s.path.abspath(Hy7s.path.normpath(AUB0))
if Hy7s.path.exists(daXS) and Hy7s.path.exists(AUB0):
daXS = gERu(daXS)
AUB0 = gERu(AUB0)
daXS = Hy7s.path.normcase(daXS)
AUB0 = Hy7s.path.normcase(AUB0)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_zq(EBgd, HpuQ):\n return wUjp(EBgd) == wUjp(HpuQ)",
"def d1hu(Emd4, daXS: os.PathLike, AUB0: os.PathLike) -> bool:\n return Emd4.get_mount(daXS)[0] == Emd4.get_mount(AUB0)[0]",
"def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO._full_path == Elif.full_path",
"def CNix(daXS, AUB0... | [
"0.80794454",
"0.7335985",
"0.728109",
"0.71233845",
"0.7090421",
"0.7060327",
"0.682967",
"0.67997307",
"0.6791317",
"0.669375",
"0.6561799",
"0.6548824",
"0.653403",
"0.64468986",
"0.63320774",
"0.6330571",
"0.610795",
"0.60870606",
"0.60596025",
"0.60438037",
"0.60414",
... | 0.75999165 | 1 |
Make it a relative path, if possible. | def PsRC(pmON, yKcO='.'):
if yKcO == '.':
yKcO = Hy7s.curdir
try:
return Hy7s.path.relpath(pmON, yKcO)
except ValueError:
if n6ik():
return Hy7s.path.abspath(pmON)
raise | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sueC(pmON: str):\n return gzes('.', pmON)",
"def t_yv(xAKo, pmON):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), pmON))",
"def Syfe(P8oC, pmON):\n if Hy7s.path.abspath(pmON) and Hy7s.path.exists(pmON):\n return pmON\n else:\n return F1vr(P8oC + pmON)",
"def ... | [
"0.7060268",
"0.70526326",
"0.7029295",
"0.6987652",
"0.698544",
"0.68057936",
"0.67967445",
"0.66952765",
"0.666566",
"0.6663056",
"0.66472405",
"0.66117835",
"0.6608718",
"0.6588504",
"0.6561882",
"0.6549738",
"0.6541213",
"0.65336865",
"0.65184957",
"0.65082276",
"0.649987... | 0.6156716 | 68 |
Is the given path executable. | def N2se(pmON):
return Hy7s.path.isfile(pmON) and Hy7s.access(pmON, Hy7s.X_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xY56(pmON):\n return Hy7s.path.exists(pmON) and (not Hy7s.path.isdir(pmON)) and Hy7s.access(pmON, Hy7s.F_OK | Hy7s.X_OK)",
"def xY56(qaEx):\n return Hy7s.path.isfile(qaEx) and Hy7s.access(qaEx, Hy7s.X_OK)",
"def tKjB(YKHO):\n pETf = YKHO.command.split()[0]\n for saoO in Hy7s.environ['PATH'].spl... | [
"0.87049234",
"0.82668436",
"0.8151447",
"0.8045147",
"0.8028939",
"0.7975011",
"0.7975011",
"0.7967362",
"0.7948243",
"0.79336417",
"0.79315096",
"0.79158705",
"0.79051197",
"0.77032655",
"0.76975554",
"0.76865935",
"0.7447012",
"0.717335",
"0.7148607",
"0.711846",
"0.710060... | 0.8775785 | 0 |
Has a filename one of the given extensions. | def lkoS(pmON, CBZq):
Fst3 = SLz3(pmON)
if isinstance(CBZq, exCv):
return Fst3 == CBZq
else:
return Fst3 in CBZq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def zc6t(YKHO, Ux0P):\n if Ux0P is None:\n return False\n return Ux0P.split('.')[-1].lower() in YKHO.extensions",
"def DVFM(Ux0P, CBZq=UcD8):\n GzHq = Ux0P.lower()... | [
"0.84971595",
"0.84971595",
"0.83129245",
"0.8290528",
"0.8273597",
"0.82258934",
"0.82258934",
"0.81216115",
"0.8003813",
"0.79840004",
"0.79104877",
"0.7897788",
"0.782885",
"0.7801445",
"0.77727574",
"0.7756917",
"0.76878774",
"0.76196367",
"0.76131713",
"0.7600364",
"0.75... | 0.78652465 | 12 |
Gets the externally usable absolute path for a given relative path. | def gERu(Ux0P, slVo=False):
Ux0P = Hy7s.path.abspath(Ux0P)
if Hy7s.name == 'nt':
if Ux0P not in r3_W:
euq5 = Ux0P
if slVo:
TLI7 = Id_k(Hy7s.path.dirname(Ux0P))
assert Hy7s.path.exists(TLI7)
Ux0P = Hy7s.path.join(TLI7, Hy7s.path.base... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgmy(pmON):\n Yb80 = Pxdw.abspath(pmON)\n return Yb80",
"def hgmy(t_yv):\n if Hy7s.path.isabs(t_yv):\n return t_yv\n RVjQ = t_yv.split(Hy7s.sep)\n Yb80 = Hy7s.path.abspath('.')\n for D2yC in RVjQ:\n Yb80 = Hy7s.path.abspath(Hy7s.path.join(Yb80, D2yC))\n return Yb80",
"def... | [
"0.8282519",
"0.823421",
"0.823001",
"0.8111444",
"0.8076817",
"0.80646294",
"0.7980848",
"0.77372855",
"0.7735954",
"0.77253485",
"0.77186006",
"0.76823103",
"0.7660861",
"0.7658924",
"0.76536",
"0.76509243",
"0.76169777",
"0.7614475",
"0.7556018",
"0.75538075",
"0.7546099",... | 0.0 | -1 |
Convert filename into a path suitable for reporting, avoiding home directory paths. | def LfJr(Ux0P, tX49=()):
H5ew = (Ux0P, tuple(tX49))
if H5ew not in OgRI:
OgRI[H5ew] = e3N_(Ux0P, tX49)
return OgRI[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0vJ(Ux0P):\n return Hy7s.path.abspath(Hy7s.path.expanduser(Ux0P))",
"def yFjF(VqRE):\n return VqRE.replace('{}\\\\'.format(nODh), '')",
"def oybh(YKHO, pmON):\n pmON = KVWQ.urlparse(YKHO.path)[2].lstrip('/')\n pmON = Hy7s.path.normpath(dTAH.unquote(pmON))\n if Hy7s.path.isdir(pmON):\n ... | [
"0.7325488",
"0.7263966",
"0.72180045",
"0.7198163",
"0.70467937",
"0.70044374",
"0.69391733",
"0.6887128",
"0.68808347",
"0.6830386",
"0.6780329",
"0.6767687",
"0.67444694",
"0.67303175",
"0.6725817",
"0.6702119",
"0.6698484",
"0.66942364",
"0.65428585",
"0.65319484",
"0.652... | 0.0 | -1 |
Test if a path contains any unwanted elements. | def ThqV(pmON, UqER):
UqER = tuple((Hy7s.path.normcase(U6D_) for U6D_ in UqER))
pmON = Hy7s.path.normpath(pmON)
SQ3m = Hy7s.path.normpath(pmON).split(Hy7s.path.sep)
return any((U6D_ in SQ3m for U6D_ in UqER)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UA5h(YKHO, pmON):\n return False",
"def yhZ7(YKHO, Zg0d):\n for IOHN in YKHO._ignored:\n if jlVJ.fnmatch(Zg0d, '*/' + IOHN):\n return True\n return False",
"def _Mnt(pmON):\n return any((ZbWC.match(mXDZ, pmON) for mXDZ in PrmE))",
"def kziQ(YKHO, pmON):\n for mXDZ in YKHO... | [
"0.70819604",
"0.68359214",
"0.6834951",
"0.65814173",
"0.6517847",
"0.6453988",
"0.62765026",
"0.62502044",
"0.6247838",
"0.61707073",
"0.6158768",
"0.61509436",
"0.6147983",
"0.6066478",
"0.60239595",
"0.6004838",
"0.5966133",
"0.5926251",
"0.58772814",
"0.58577347",
"0.584... | 0.58618635 | 19 |
Creates and returns instance of cim_quality class. | def gwX8():
return {'type': 'class', 'name': 'cim_quality', 'base': None, 'is_abstract': False, 'is_entity': True, 'doc': 'The starting point for a quality record. It can contain any number of issues and reports. An issue is an open-ended description of some issue about a CIM instance. A record is a prescribed d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IFS3(YKHO):\n XP5J = YKHO.suitability + 1.15 * YKHO.fono\n YKHO.quality = oyIN.exp(XP5J) / (1 + oyIN.exp(XP5J))",
"def C8Km(YKHO) -> int:\n return YKHO._quality",
"def C8Km(YKHO, BWXx: int):\n YKHO._quality = BWXx",
"def xL3p(YKHO):\n aM62 = e1lA.utils.create_quantile(0.5, 4.0)\n YKHO.a... | [
"0.55847603",
"0.544121",
"0.5395065",
"0.53075176",
"0.5211302",
"0.5208251",
"0.52065456",
"0.5173867",
"0.5161894",
"0.51486427",
"0.5118597",
"0.5094241",
"0.50869876",
"0.5075998",
"0.505893",
"0.505843",
"0.50402147",
"0.5028008",
"0.50113624",
"0.49139944",
"0.4907511"... | 0.7541364 | 0 |
Partition an image into multiple patches of approximately equal size. The patch size is based on the desired number of rows and columns. Returns a list of image patches, in rowmajor order. | def pnfx(VXjJ, zNig=512):
VL32 = []
TVTK, H2v2 = (VXjJ.shape[1], VXjJ.shape[0])
yzQ0, MKlR = (zNig, zNig)
for LVAh in range(0, H2v2, MKlR):
XzbN = min(LVAh + MKlR, TVTK)
for WKvO in range(0, TVTK, yzQ0):
dDkX = min(WKvO + yzQ0, H2v2)
Po4F = VXjJ[LVAh:XzbN, WKvO:dD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Euoq(VXjJ, FTrt):\n assert len(VXjJ.shape) == 3 and VXjJ.shape[-1] == 3\n H2v2, TVTK, YDR7 = VXjJ.shape\n W0Eb = R5Ot(H2v2, TVTK, FTrt)\n ohfT = []\n for tlxW, LFlW in W0Eb:\n ohfT.append(VXjJ[tlxW:tlxW + FTrt, LFlW:LFlW + FTrt])\n return oyIN.array(ohfT).astype('uint8')",
"def vgAe(... | [
"0.7768448",
"0.74705344",
"0.7354165",
"0.73307747",
"0.7192567",
"0.702412",
"0.69212884",
"0.68442935",
"0.6794618",
"0.67900044",
"0.67849517",
"0.6781368",
"0.66674095",
"0.66178596",
"0.6552253",
"0.6532069",
"0.6493392",
"0.64794147",
"0.6466042",
"0.6463869",
"0.64577... | 0.74337757 | 2 |
The plain dict defining the instance. | def COgx(YKHO):
return dict(YKHO.items()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dict(YKHO) -> cuzp:\n return super().dict()",
"def dict(YKHO) -> cuzp:\n return super().dict()",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):... | [
"0.8240194",
"0.8240194",
"0.8110981",
"0.8110981",
"0.8110981",
"0.8110981",
"0.8110981",
"0.8110981",
"0.8110981",
"0.8024938",
"0.7829087",
"0.77814144",
"0.7761681",
"0.7717576",
"0.77096266",
"0.768326",
"0.76700306",
"0.7650281",
"0.7648925",
"0.75965476",
"0.7551962",
... | 0.7384265 | 35 |
Creates the operators necessary for the simulation. | def mmfB(YKHO):
YKHO.relationship_operator = WMGG.RelationshipOperator(YKHO)
YKHO.infection_operator = WMGG.InfectionOperator(YKHO)
YKHO.time_operator = WMGG.TimeOperator(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CEko():\n global BASIC_OPERATORS\n rILC = {'angle_between': {'node': 'angleBetween', 'inputs': [['vector1X', 'vector1Y', 'vector1Z'], ['vector2X', 'vector2Y', 'vector2Z']], 'outputs': [['angle']]}, 'average': {'node': 'plusMinusAverage', 'inputs': [['input3D[{array}].input3Dx', 'input3D[{array}].input3Dy... | [
"0.69540614",
"0.6671332",
"0.6624016",
"0.63947886",
"0.6279157",
"0.62216306",
"0.6161427",
"0.6091667",
"0.6049673",
"0.60490084",
"0.60336334",
"0.60207355",
"0.6005739",
"0.6004894",
"0.59818363",
"0.5960457",
"0.5926143",
"0.58911276",
"0.5849135",
"0.5826824",
"0.58212... | 0.78349316 | 0 |
Add agent to the list of agents, the network, and assign to a grid queue. This is seperate from the make_population method so that other objects can add agents without make_population. | def O2rw(YKHO, YWSi):
YKHO.agents[YWSi.name] = YWSi
YKHO.network.add_node(YWSi)
EL8Z = [foIj for foIj in YKHO.grid_queues.values() if foIj.accepts(YWSi)][YWSi.sex]
YWSi.grid_queue = EL8Z.index
YKHO.add_to_grid_queue(YWSi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dXIj(YKHO, YWSi):\n YKHO.pipes[YWSi.grid_queue].send('add')\n YKHO.pipes[YWSi.grid_queue].send(YWSi)",
"def SStx(YKHO, YWSi):\n YKHO.agents.append(YWSi)",
"def FI5c(YKHO, YWSi):\n with YKHO.simulation_mutex:\n YKHO.get('transport_agents')[YWSi.name] = YWSi",
"def dX4d(YKHO, YWSi: mantr... | [
"0.7903126",
"0.69386274",
"0.6692364",
"0.65296",
"0.6506088",
"0.65008456",
"0.64870113",
"0.6464909",
"0.6399469",
"0.6321615",
"0.62191206",
"0.5769175",
"0.5749872",
"0.57246745",
"0.56684023",
"0.5616239",
"0.55954784",
"0.55757207",
"0.5544044",
"0.54693997",
"0.541747... | 0.8597643 | 0 |
Finds the age of agent | def ZJe_(YKHO, YWSi):
return (YKHO.time - YWSi.born) / 52.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_N1(YKHO):\n return YKHO.age",
"def ZJe_(YKHO, lO87=None):\n LVAh, r8hN = (YKHO.master['birthYear'], YKHO.master['birthMonth'])\n return (lO87 if lO87 else YKHO.currentyear) - LVAh - (r8hN > 6)",
"def N_N1(YKHO):\n if KHhK(YKHO.birt):\n TUji, LvhY, uEia = npvn(YKHO.birt).split('-')\n ... | [
"0.76486295",
"0.7600306",
"0.752329",
"0.75098073",
"0.75055975",
"0.74689084",
"0.74398935",
"0.7416887",
"0.740167",
"0.74006224",
"0.73706967",
"0.73706967",
"0.73706967",
"0.7359488",
"0.7359488",
"0.7352661",
"0.7352553",
"0.73469836",
"0.73408884",
"0.7289448",
"0.7281... | 0.8530317 | 0 |
The Mode of the gateway slb. | def eUX2(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'gateway_slb_mode') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUX2(YKHO) -> str:\n return qe4Y.get(YKHO, 'gateway_slb_mode')",
"def yQBk(YKHO):\n return YKHO.mode",
"def bTfd(YKHO):\n return YKHO.mode",
"def hRLm(YKHO):\n return YKHO._mode",
"def BfNN(YKHO):\n geh0 = YKHO.at.sendCommand('AT+CEREG?')\n if not geh0:\n raise hcSa.AtError(geh... | [
"0.83784354",
"0.7091251",
"0.7043202",
"0.7018953",
"0.6969579",
"0.696678",
"0.69319195",
"0.692981",
"0.6925483",
"0.6925483",
"0.6925483",
"0.69151485",
"0.69151485",
"0.69151485",
"0.6911895",
"0.6883668",
"0.6883668",
"0.6864306",
"0.68403286",
"0.6803735",
"0.67907137"... | 0.7977576 | 1 |
The Status of the gateway slb. | def yajK(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'gateway_slb_status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yajK(YKHO) -> str:\n return qe4Y.get(YKHO, 'gateway_slb_status')",
"def jGRS(YKHO):\n return YKHO.microblaze.state",
"def jGRS(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"de... | [
"0.8582471",
"0.72279525",
"0.7110276",
"0.7072184",
"0.70538783",
"0.70538783",
"0.70538783",
"0.7053305",
"0.70464987",
"0.703579",
"0.703579",
"0.7032769",
"0.7032769",
"0.70277184",
"0.7027479",
"0.70165145",
"0.7011966",
"0.7010962",
"0.7007864",
"0.7002743",
"0.7002743"... | 0.8072908 | 1 |
The ID of the gateway slb. | def aFJ0(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'slb_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFJ0(YKHO) -> str:\n return qe4Y.get(YKHO, 'slb_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO):\n retu... | [
"0.8201966",
"0.7164886",
"0.7164886",
"0.7164886",
"0.70258796",
"0.6930156",
"0.68294036",
"0.6806015",
"0.6771984",
"0.6767023",
"0.66462326",
"0.662997",
"0.661855",
"0.661855",
"0.66020685",
"0.6594977",
"0.6590117",
"0.65078634",
"0.6491616",
"0.6479168",
"0.64759105",
... | 0.7741368 | 1 |
The id of acl. | def T4Wg(YKHO) -> str:
return qe4Y.get(YKHO, 'acl_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4Wg(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'acl_id')",
"def La... | [
"0.86818516",
"0.8637558",
"0.8555794",
"0.83676344",
"0.69789577",
"0.66910535",
"0.6628064",
"0.66190517",
"0.65989006",
"0.6589253",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327",
"0.6535327... | 0.91479766 | 2 |
ID of the MSE Cluster. | def JvOq(YKHO) -> str:
return qe4Y.get(YKHO, 'cluster_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO):\n return YKHO._cluster_id",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> q... | [
"0.79827464",
"0.7791658",
"0.7791658",
"0.7791658",
"0.7791658",
"0.76063097",
"0.74616414",
"0.74616414",
"0.73167914",
"0.73140806",
"0.73140806",
"0.73140806",
"0.7183493",
"0.69770646",
"0.69641954",
"0.6779036",
"0.6685338",
"0.660061",
"0.660061",
"0.6465981",
"0.64428... | 0.8189766 | 1 |
ID of the MSE Cluster. | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y... | [
"0.8189766",
"0.8189766",
"0.8189766",
"0.8189766",
"0.8189766",
"0.79827464",
"0.7791658",
"0.7791658",
"0.7791658",
"0.7791658",
"0.76063097",
"0.74616414",
"0.74616414",
"0.73167914",
"0.73140806",
"0.73140806",
"0.73140806",
"0.7183493",
"0.69770646",
"0.69641954",
"0.677... | 0.0 | -1 |
ID of the MSE Cluster. | def o_gm(YKHO) -> str:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y... | [
"0.8189766",
"0.8189766",
"0.8189766",
"0.8189766",
"0.8189766",
"0.79827464",
"0.7791658",
"0.7791658",
"0.7791658",
"0.7791658",
"0.76063097",
"0.74616414",
"0.74616414",
"0.73167914",
"0.73140806",
"0.73140806",
"0.73140806",
"0.7183493",
"0.69770646",
"0.69641954",
"0.677... | 0.5806641 | 79 |
The address of private network. | def UYjw(YKHO) -> str:
return qe4Y.get(YKHO, 'intranet_address') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQHJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'private_network')",
"def T70F(YKHO):\n return YKHO._network_address",
"def n6ao(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'private_ip_address')",
"def n6ao(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'private_ip_address')",
"def n6... | [
"0.7933097",
"0.77741337",
"0.7497677",
"0.7497677",
"0.7494737",
"0.7405235",
"0.73491955",
"0.72590643",
"0.7210017",
"0.71845526",
"0.7113998",
"0.7113998",
"0.7113998",
"0.7113998",
"0.7113998",
"0.7074387",
"0.70176274",
"0.70118",
"0.69016606",
"0.6761564",
"0.6761564",... | 0.0 | -1 |
The type of payment. | def Oeyc(YKHO) -> str:
return qe4Y.get(YKHO, 'pay_info') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bUCE(YKHO) -> str:\n return qe4Y.get(YKHO, 'payment_type')",
"def Cu21(YKHO) -> str:\n return qe4Y.get(YKHO, 'pay_type')",
"def Cu21(YKHO) -> str:\n return qe4Y.get(YKHO, 'pay_type')",
"def IUbG(YKHO):\n nkE2 = dict(gCuF.SUBSCRIPTION_PAYMENT_METHODS)\n return nkE2.get(YKHO.payment_type, 'N... | [
"0.90905195",
"0.8491085",
"0.8491085",
"0.82080966",
"0.8157786",
"0.80303454",
"0.7920886",
"0.7410416",
"0.7219208",
"0.7024609",
"0.7024609",
"0.6824851",
"0.68031955",
"0.6691925",
"0.66769683",
"0.66769683",
"0.66769683",
"0.66769683",
"0.66769683",
"0.66769683",
"0.667... | 0.0 | -1 |
The id of Namespace. | def eucH(YKHO) -> str:
return qe4Y.get(YKHO, 'namespace_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eucH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace_id')",
"def ZWU7(YKHO) -> str:\n return YKHO._ns_id",
"def pL94(YKHO, id: long) -> QMSQ:\n ...",
"def Xz0j(YKHO):\n return YKHO.__key.app_id_namespace()",
"def xeJw(z1Rg):\n if z1Rg.id is not None and z1Rg.id.startswith(_63S + '... | [
"0.8175702",
"0.8166244",
"0.71459746",
"0.71278036",
"0.69183016",
"0.6917026",
"0.686557",
"0.67646843",
"0.67315775",
"0.6656598",
"0.66097224",
"0.65102136",
"0.65102136",
"0.65102136",
"0.6491382",
"0.6487603",
"0.6451285",
"0.6425991",
"0.6422249",
"0.6418733",
"0.63989... | 0.8748231 | 0 |
The backup vswitch id. | def nM4b(YKHO) -> str:
return qe4Y.get(YKHO, 'backup_vswitch_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n ... | [
"0.81662524",
"0.81662524",
"0.81662524",
"0.81662524",
"0.7894044",
"0.7894044",
"0.7894044",
"0.76167953",
"0.76167953",
"0.76167953",
"0.72934574",
"0.72934574",
"0.72934574",
"0.6895379",
"0.6872636",
"0.6860954",
"0.684382",
"0.6644172",
"0.6635474",
"0.6632908",
"0.6632... | 0.9345862 | 0 |
The name of the Gateway. | def yxeC(YKHO) -> str:
return qe4Y.get(YKHO, 'gateway_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yxeC(YKHO):\n return YKHO.msg.gateway_name",
"def mWFP(YKHO) -> str:\n return f'{YKHO._inst} NAT {YKHO._data['name']}'",
"def mWFP(YKHO):\n return f'{YKHO._vehicle.name} {YKHO.wan_name} Signal'",
"def kdXA(YKHO):\n return ''",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, YK... | [
"0.8758647",
"0.7125576",
"0.691796",
"0.682868",
"0.67558604",
"0.6721219",
"0.67202896",
"0.6688761",
"0.6652942",
"0.6629581",
"0.6621541",
"0.6619424",
"0.66166276",
"0.66166276",
"0.66166276",
"0.66123873",
"0.6610318",
"0.6610318",
"0.6610318",
"0.6610318",
"0.66018283"... | 0.8843099 | 0 |
The ID of the Gateway. | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rP6b(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'transit_gateway_id')",
"def tWZp(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vpn_gateway_id')",
"def dxQd(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'customer_gateway_id')",
"def tWZp(YKHO) -> h8nf[qe4Y.Input[st... | [
"0.760282",
"0.7552202",
"0.74892884",
"0.7416938",
"0.7416938",
"0.74003875",
"0.74003875",
"0.7357843",
"0.72985363",
"0.7172895",
"0.7170665",
"0.7020698",
"0.69360036",
"0.69011545",
"0.6879337",
"0.6865615",
"0.68156004",
"0.67905176",
"0.6782389",
"0.67685145",
"0.67360... | 0.0 | -1 |
The payment type of the resource. | def bUCE(YKHO) -> str:
return qe4Y.get(YKHO, 'payment_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cu21(YKHO) -> str:\n return qe4Y.get(YKHO, 'pay_type')",
"def Cu21(YKHO) -> str:\n return qe4Y.get(YKHO, 'pay_type')",
"def IUbG(YKHO):\n nkE2 = dict(gCuF.SUBSCRIPTION_PAYMENT_METHODS)\n return nkE2.get(YKHO.payment_type, 'N/A')",
"def Cu21(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO... | [
"0.8333561",
"0.8333561",
"0.8156635",
"0.7922579",
"0.77071005",
"0.76321757",
"0.73601484",
"0.73601484",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",
"0.7269524",... | 0.8836735 | 0 |
The status of the gateway. | def jGRS(YKHO) -> str:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO._status",
... | [
"0.79179776",
"0.78476715",
"0.78476715",
"0.78476715",
"0.7847561",
"0.78201336",
"0.78201336",
"0.78135014",
"0.7803643",
"0.7803643",
"0.778872",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259",
"0.7782259... | 0.7566843 | 61 |
The ID of the vpc. | def xOeT(YKHO) -> str:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def... | [
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.9047301",
"0.89741546",
"0.8941356",
"0.89109",
"0.8826025",
"0.8826025",
"0.8826025",
"0.8826025",
"0.8826025",
"0.8826025",
"0.87463313",
"0.87463313",
"0.87463313",
... | 0.93597037 | 4 |
The ID of the vswitch. | def D_IQ(YKHO) -> str:
return qe4Y.get(YKHO, 'vswitch_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vswitc... | [
"0.87616795",
"0.87616795",
"0.87616795",
"0.85737336",
"0.85737336",
"0.85737336",
"0.82949",
"0.82949",
"0.82949",
"0.79455656",
"0.7392806",
"0.73809665",
"0.73350304",
"0.7329398",
"0.725224",
"0.725224",
"0.72321284",
"0.7118147",
"0.7117566",
"0.7006065",
"0.69523454",
... | 0.90596646 | 2 |
The Mode of the gateway slb. | def eUX2(YKHO) -> str:
return qe4Y.get(YKHO, 'gateway_slb_mode') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUX2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'gateway_slb_mode')",
"def yQBk(YKHO):\n return YKHO.mode",
"def bTfd(YKHO):\n return YKHO.mode",
"def hRLm(YKHO):\n return YKHO._mode",
"def BfNN(YKHO):\n geh0 = YKHO.at.sendCommand('AT+CEREG?')\n if not geh0:\n raise hcSa.AtErr... | [
"0.7977576",
"0.7091251",
"0.7043202",
"0.7018953",
"0.6969579",
"0.696678",
"0.69319195",
"0.692981",
"0.6925483",
"0.6925483",
"0.6925483",
"0.69151485",
"0.69151485",
"0.69151485",
"0.6911895",
"0.6883668",
"0.6883668",
"0.6864306",
"0.68403286",
"0.6803735",
"0.67907137",... | 0.83784354 | 0 |
The Status of the gateway slb. | def yajK(YKHO) -> str:
return qe4Y.get(YKHO, 'gateway_slb_status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yajK(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'gateway_slb_status')",
"def jGRS(YKHO):\n return YKHO.microblaze.state",
"def jGRS(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",... | [
"0.8072908",
"0.72279525",
"0.7110276",
"0.7072184",
"0.70538783",
"0.70538783",
"0.70538783",
"0.7053305",
"0.70464987",
"0.703579",
"0.703579",
"0.7032769",
"0.7032769",
"0.70277184",
"0.7027479",
"0.70165145",
"0.7011966",
"0.7010962",
"0.7007864",
"0.7002743",
"0.7002743"... | 0.8582471 | 0 |
The ID of the gateway slb. | def aFJ0(YKHO) -> str:
return qe4Y.get(YKHO, 'slb_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFJ0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'slb_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_id')",
"def _2LX(YKHO):\n ... | [
"0.7741368",
"0.7164886",
"0.7164886",
"0.7164886",
"0.70258796",
"0.6930156",
"0.68294036",
"0.6806015",
"0.6771984",
"0.6767023",
"0.66462326",
"0.662997",
"0.661855",
"0.661855",
"0.66020685",
"0.6594977",
"0.6590117",
"0.65078634",
"0.6491616",
"0.6479168",
"0.64759105",
... | 0.8201966 | 0 |
The ID of the Cluster. | def JvOq(YKHO) -> str:
return qe4Y.get(YKHO, 'cluster_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO):\n return YKHO._cluster_id",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> q... | [
"0.89389086",
"0.86626196",
"0.86626196",
"0.86626196",
"0.86626196",
"0.8340103",
"0.8340103",
"0.811908",
"0.811908",
"0.811908",
"0.8054237",
"0.78245205",
"0.76897746",
"0.7672705",
"0.7471035",
"0.74283445",
"0.7086439",
"0.7086439",
"0.70488244",
"0.7007689",
"0.6988441... | 0.90772015 | 0 |
__init__ The constructor for a Node object. | def FIMM(YKHO, KcEq, bIwZ, kLeO=None, qxeD=None, dsE5=False, Q_vB=False, T1WL=False, A_IW=[]):
r8hN = B2KD()
r8hN.update(KcEq.encode())
r8hN.update(str(bIwZ).encode())
YKHO.metadata = {}
YKHO.metadata['done'] = kLeO
YKHO.metadata['host'] = KcEq
YKHO.metadata['port'] = bIwZ
YKHO.metadata[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)",
"def FIMM(YKHO):\n YKHO.root = o7DN(None)",
"def FIMM(YKHO):\n YKHO.__root = o7DN()",
"def FIMM(YKHO):\n YKHO.root = o7DN('')",
"def FIMM(YKHO):\n YKHO.root = YKHO.Node()",
"def FIMM(YKHO):\n YKHO.root = o7DN('')",
"def FIMM(YKHO):\n ... | [
"0.8253996",
"0.8201114",
"0.8167369",
"0.8153046",
"0.812439",
"0.80758876",
"0.80758876",
"0.8030052",
"0.8030052",
"0.8030052",
"0.79498625",
"0.7937665",
"0.79246503",
"0.78018874",
"0.77907264",
"0.77897644",
"0.77652395",
"0.77497905",
"0.7716643",
"0.7685881",
"0.76789... | 0.0 | -1 |
Returns the dictionary in a list of dictionaries that has the value of 'key' as 'value'. | def NMoC(m3Fx, H5ew, BWXx):
return filter(lambda cmPJ: cmPJ[H5ew] == BWXx, m3Fx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nDBw(YKHO, BWXx, H5ew=None):\n if H5ew is None:\n return YKHO.dicts(BWXx)\n else:\n DumB = YKHO.dicts(BWXx)\n return [ZfUD[H5ew] for ZfUD in DumB]",
"def IQUc(YKHO, ISZs, H5ew, BWXx):\n for Csk6 in ISZs:\n if Csk6[H5ew] == BWXx:\n return Csk6\n return {}",
... | [
"0.7204482",
"0.7005516",
"0.68736064",
"0.661824",
"0.6468425",
"0.6367532",
"0.6362521",
"0.6360842",
"0.6291553",
"0.62285995",
"0.62285995",
"0.6169165",
"0.6146054",
"0.612497",
"0.60989004",
"0.6065829",
"0.5944303",
"0.59299034",
"0.5926492",
"0.5887199",
"0.5844322",
... | 0.69926775 | 2 |
Return list of all the projects in OpenStack. | def VzM8():
return gfRO(fGmS('openstack project list'.split(), stdout=rNIk, stderr=QeD9).communicate()[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XbWl(YKHO):\n try:\n A07C = YKHO.request[nNXP.DATA][nNXP.DATA]['ids']\n return YKHO._get_keystone_projects(A07C)\n except Exception as e:\n na1r.exception('Error occurred: %s' % tTpl)",
"def pk09(YKHO):\n VwOK.debug('List the projects.')\n Qi1G = 'http://' + YKHO.host_ip + ':... | [
"0.8495921",
"0.82235503",
"0.8123712",
"0.81170243",
"0.80510795",
"0.80300194",
"0.80000013",
"0.7996671",
"0.7820062",
"0.7760749",
"0.7758176",
"0.77562165",
"0.77063435",
"0.76904523",
"0.7660116",
"0.7604",
"0.76015157",
"0.75770324",
"0.75115687",
"0.74678594",
"0.7449... | 0.8108943 | 4 |
Gets dictionary of sample_id => index mappings that is used to lookup information in the genotype and haplotype tables | def gWmJ(xAU6):
HwRy.stderr.write('reading list of individuals from %s\n' % xAU6.samples)
eHNT = open(xAU6.samples)
uJzv = {}
or8S = 0
for zFiD in eHNT:
V22M = zFiD.rstrip().split()
mWFP = V22M[0]
if mWFP in uJzv:
raise ValueError("sample identifier '%s' appears m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uv0I(YKHO, SnBA, MewL=None):\n MewL = uwaB.INITIAL_MAPPING if MewL is None else MewL\n YKHO.type_to_idx['word'] = bFIR.type_to_idx(SnBA['word'], MewL['word'])\n YKHO.type_to_idx['char'] = bFIR.type_to_idx(SnBA['char'], MewL['word'])\n YKHO.type_to_idx['tag'] = bFIR.type_to_idx(SnBA['tag'], MewL['ta... | [
"0.6734681",
"0.6362328",
"0.6331943",
"0.6179442",
"0.6103658",
"0.6103658",
"0.6075308",
"0.6054439",
"0.6011484",
"0.6009861",
"0.60036623",
"0.59335893",
"0.58924013",
"0.5886331",
"0.5804621",
"0.57770246",
"0.5739632",
"0.57164943",
"0.5711326",
"0.57105523",
"0.5654858... | 0.666491 | 1 |
Computes epsilonDP topk counts using the Laplace mechanism. | def PcXK(DEZP, G1Hx, Z9rn, _hZ2, t8SL):
if t8SL is CsCk.SWAP:
BYBV = min(2 * G1Hx, 2 * Z9rn)
else:
BYBV = min(G1Hx, Z9rn)
zyCu = DEZP + oyIN.random.laplace(scale=BYBV / _hZ2, size=DEZP.shape)
EwgR = EnqK(zyCu, G1Hx)
return EwgR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZ8D(DEZP, G1Hx, _hZ2, RA_F):\n G0Mm = vLUX(_hZ2, RA_F, G1Hx)\n zyCu = DEZP + oyIN.random.gumbel(scale=1 / G0Mm, size=DEZP.shape)\n EwgR = EnqK(zyCu, G1Hx)\n return EwgR",
"def PYVH(XP5J, G1Hx, WKvO, a1PO):\n ywwl = WKvO.shape[0]\n IviG = XTiz.square(WKvO - XP5J)\n kZIt = XTiz.sum(IviG, ... | [
"0.6299064",
"0.6220429",
"0.6008511",
"0.59606147",
"0.595082",
"0.5838881",
"0.57103693",
"0.56822735",
"0.56595933",
"0.56535417",
"0.5634167",
"0.5607399",
"0.55868787",
"0.55651116",
"0.5560048",
"0.5548766",
"0.55285704",
"0.5524867",
"0.5504731",
"0.5490478",
"0.548544... | 0.6184371 | 2 |
Get the sum of all lengths of the answer sets from any of the groups | def sg7z(XHuw):
pEOH = []
for ww3J in KfPS(XHuw):
pEOH.append(gVTA(ww3J))
return sum(pEOH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gVTA(uOe2):\n nxto = set(Hs6x.chain.from_iterable(uOe2))\n return len(nxto)",
"def Sym2(N9D1):\n return [len(list(uOe2)) for bGrB, uOe2 in Hs6x.groupby(N9D1)]",
"def AHii(uOe2):\n nxto = set.intersection(*(set(ANfV) for ANfV in uOe2))\n return len(nxto)",
"def xUt4(uOe2: list) -> int:\n ... | [
"0.65839064",
"0.6550863",
"0.6525309",
"0.6517386",
"0.64997894",
"0.6459564",
"0.63812834",
"0.62014186",
"0.6115709",
"0.5857287",
"0.58487755",
"0.57985544",
"0.5781799",
"0.5760002",
"0.5707117",
"0.5684685",
"0.56666017",
"0.56604224",
"0.5643512",
"0.55858415",
"0.5530... | 0.7051139 | 0 |
Property that defines scoring metric (e.g. ROCAUC or accuracy or fscore), given as a sklearncompatible string or a compatible sklearn scorer. | def SrUS(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x2W0(SrUS):\n if isinstance(SrUS, str):\n try:\n HjDq = mnxh[SrUS]\n except KeyError:\n raise ValueError('%r is not a valid scoring value. Use sorted(sklearn.metrics.SCORERS.keys()) to get valid options.' % SrUS)\n else:\n HjDq = SrUS\n return HjDq",
"def x... | [
"0.71016246",
"0.68566847",
"0.6771998",
"0.67681074",
"0.6585731",
"0.6511511",
"0.6139908",
"0.61190397",
"0.61076844",
"0.6000113",
"0.5980278",
"0.588598",
"0.58689713",
"0.58319646",
"0.5831674",
"0.58099157",
"0.5791813",
"0.57615745",
"0.571513",
"0.56960905",
"0.56896... | 0.58209944 | 15 |
Return the value of the state (computed in __init__). | def UnfG(YKHO, QTBn):
return YKHO.values[QTBn] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def BWXx(YKHO, QTBn):\n retu... | [
"0.83014333",
"0.83014333",
"0.826012",
"0.8086146",
"0.8086146",
"0.79581815",
"0.79296756",
"0.78013283",
"0.77367806",
"0.77336967",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
"0.76010257",
... | 0.77333474 | 21 |
The policy is the best action in the given state according to the values currently stored in self.values. You may break ties any way you see fit. Note that if there are no legal actions, which is the case at the terminal state, you should return None. | def OcoU(YKHO, QTBn):
"""*** YOUR CODE HERE ***"""
lA2T = YKHO.mdp.getPossibleActions(QTBn)
if len(lA2T) == 0:
return None
dixj = []
for XeOP in lA2T:
wjRY = 0
for AUO5, JxU2 in YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP):
wjRY += JxU2 * YKHO.values[AUO5]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcoU(YKHO, QTBn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n lA2T = YKHO.mdp.getPossibleActions(QTBn)\n if len(lA2T) is 0:\n return None\n hjEf = gnPz.Counter()\n for XeOP in lA2T:\n for CrTw, Q7Be in YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP):\n hjEf[XeOP] += Q7Be * (... | [
"0.77925164",
"0.7712582",
"0.76146024",
"0.7607256",
"0.74923486",
"0.7467473",
"0.7373709",
"0.73420584",
"0.7340943",
"0.7338618",
"0.73357975",
"0.73147744",
"0.7310598",
"0.73102057",
"0.727411",
"0.724419",
"0.724419",
"0.71566546",
"0.70890623",
"0.70821065",
"0.706314... | 0.72943586 | 14 |
Generates a random string of input length | def GLL2(u54L=5):
return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))",
"def d4SM(len):\n return WR89.urlsafe_b64encode(Hy7s.urandom(len))[0:len]",
... | [
"0.8702128",
"0.85277575",
"0.83981323",
"0.83885884",
"0.83881694",
"0.8386189",
"0.83839774",
"0.8355186",
"0.83521414",
"0.83404326",
"0.83040214",
"0.82958287",
"0.8289667",
"0.8258438",
"0.8243102",
"0.82406664",
"0.82318115",
"0.822977",
"0.8210092",
"0.8178366",
"0.817... | 0.818328 | 19 |
Converts a rotation matrix to quaterion | def MDCy(A3Vt):
MlmR = 1e-06
_Jov = 4 * [0.0]
_Jov[0] = 0.5 * oyIN.sqrt(A3Vt[0, 0] + A3Vt[1, 1] + A3Vt[2, 2] + 1.0)
if oyIN.fabs(A3Vt[0, 0] - A3Vt[1, 1] - A3Vt[2, 2] + 1.0) < MlmR:
_Jov[1] = 0.0
else:
_Jov[1] = 0.5 * oyIN.sign(A3Vt[2, 1] - A3Vt[1, 2]) * oyIN.sqrt(A3Vt[0, 0] - A3Vt[1,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghyj(A3Vt, vexM):\n vexM[0] = oyIN.sqrt(A3Vt[0] + A3Vt[4] + A3Vt[8]) / 2\n vexM[1] = (A3Vt[7] - A3Vt[5]) / (4.0 * vexM[0])\n vexM[2] = (A3Vt[2] - A3Vt[6]) / (4.0 * vexM[0])\n vexM[3] = (A3Vt[3] - A3Vt[1]) / (4.0 * vexM[0])",
"def Np0o(bULF):\n zgsA = oyIN.trace(bULF)\n if zgsA > 0:\n ... | [
"0.7971645",
"0.78728527",
"0.7606546",
"0.73802453",
"0.7247294",
"0.72241783",
"0.7176656",
"0.7131773",
"0.7116152",
"0.709005",
"0.70214915",
"0.7020572",
"0.694918",
"0.6943903",
"0.6937841",
"0.69297695",
"0.69214255",
"0.69173455",
"0.69159365",
"0.6870446",
"0.6825436... | 0.664386 | 31 |
get the minimum value of the data | def min(YKHO):
return min(YKHO.sample) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XgIN(nPrm):\n return nPrm.min()",
"def ohV5(Emd4, nPrm: tuple or list) -> float:\n Emd4._data_validation(nPrm)\n return min(nPrm)",
"def min(YKHO):\n SeDd = YKHO.data[0]\n for YRbF in range(len(YKHO.data)):\n if YKHO.data[YRbF] < SeDd:\n SeDd = YKHO.data[YRbF]\n return S... | [
"0.8953239",
"0.8494876",
"0.82617766",
"0.81728566",
"0.8151191",
"0.8047047",
"0.8025826",
"0.8025826",
"0.8022368",
"0.80136144",
"0.7988374",
"0.7962404",
"0.7959122",
"0.7887428",
"0.78769225",
"0.78260833",
"0.78007185",
"0.7764526",
"0.7764526",
"0.7711247",
"0.767816"... | 0.7411154 | 48 |
get the maximum value of the data | def max(YKHO):
return max(YKHO.sample) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYxc(nPrm):\n return nPrm.max()",
"def qfB5(Emd4, nPrm: tuple or list) -> float:\n Emd4._data_validation(nPrm)\n return max(nPrm)",
"def BfFQ(YKHO):\n bQ6z = max(YKHO.values)\n return bQ6z",
"def max(YKHO):\n return XTiz.ma.max(YKHO.data)",
"def max(YKHO):\n return oyIN.max(YKHO.da... | [
"0.89424443",
"0.8334495",
"0.8301815",
"0.8243822",
"0.8200489",
"0.81081915",
"0.80724716",
"0.79809207",
"0.79766816",
"0.79656523",
"0.79636735",
"0.79469854",
"0.7931078",
"0.790472",
"0.78812575",
"0.7835154",
"0.7821081",
"0.77920437",
"0.7769243",
"0.7702423",
"0.7701... | 0.73751247 | 45 |
Converts a post to an object. | def mJu4(YKHO, m8z6, p4SB=False):
id = m8z6.get('id')
if not id:
return {}
LuEe = m8z6.get('type')
Johg = m8z6.get('status_type')
bD7m = YKHO.post_url(m8z6)
Tz44 = m8z6.get('picture')
qQNS = None
Ol8d = m8z6.get('message') or m8z6.get('story') or m8z6.get('description') or m8z6.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HP8x(YKHO, m8z6):\n id = None\n if m8z6.get('id'):\n m8z6['id'] = m8z6['id'].split('_', 1)[-1]\n id = m8z6['id']\n YEnM = YKHO.post_to_object(m8z6)\n rxHD = {'verb': VOnN.get(m8z6.get('type', YEnM.get('objectType')), 'post'), 'published': YEnM.get('published'), 'updated': YEnM.get('up... | [
"0.6743017",
"0.6634363",
"0.64666134",
"0.64328283",
"0.64288676",
"0.63924253",
"0.62250465",
"0.6100585",
"0.5983494",
"0.57928866",
"0.5783546",
"0.57720053",
"0.5728001",
"0.57224494",
"0.5671519",
"0.5561353",
"0.5561353",
"0.5547429",
"0.55430514",
"0.5517116",
"0.5506... | 0.7561014 | 0 |
Converts a comment to an object. | def KiuV(YKHO, aM_I, m8HW=None):
aM_I = dict(aM_I)
aM_I['message_tags'] = {'1': aM_I.get('message_tags', [])}
YEnM = YKHO.post_to_object(aM_I)
if not YEnM:
return YEnM
YEnM['objectType'] = 'comment'
kUBT = YKHO.COMMENT_ID_RE.match(aM_I.get('id', ''))
if kUBT:
PNll, Fi3q, pQGt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xt5T(YKHO, aM_I):\n jexk = qcWV.utcfromtimestamp(aM_I.created_utc).isoformat()\n if aM_I.author is not None:\n taDc = aM_I.author.name\n else:\n taDc = ''\n gWXM = i087(aM_I.id, aM_I.link_id, YKHO.subreddit, taDc, jexk, aM_I.body, aM_I.score)\n return gWXM",
"def vr0y(YKHO, nPrm)... | [
"0.76433134",
"0.67763233",
"0.6627289",
"0.65985274",
"0.6494673",
"0.64090264",
"0.6128439",
"0.61268413",
"0.598683",
"0.5984106",
"0.5984106",
"0.5983406",
"0.5864701",
"0.583605",
"0.57928944",
"0.5781506",
"0.5717461",
"0.56290483",
"0.56111735",
"0.56096655",
"0.560225... | 0.8170264 | 0 |