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 |
|---|---|---|---|---|---|---|
Split into multiple small array, each of them have `size` elements, except the last one | def TZlT(qw7D: Iterable[T], zNig: int) -> iu5r[x1iM[Kt_s]]:
yOAJ = []
for tTpl in qw7D:
yOAJ.append(tTpl)
if len(yOAJ) == zNig:
yield yOAJ
yOAJ = []
if len(yOAJ) > 0:
yield yOAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMk8(qw7D, zNig):\n Sk_F = []\n while len(qw7D) > zNig:\n HK5E = qw7D[:zNig]\n Sk_F.append(HK5E)\n qw7D = qw7D[zNig:]\n Sk_F.append(qw7D)\n return Sk_F",
"async def split_list(ezWE, zNig=100):\n XoB7 = []\n while len(ezWE) > zNig:\n HK5E = ezWE[:zNig]\n Xo... | [
"0.77473474",
"0.74481887",
"0.74357074",
"0.734155",
"0.6925974",
"0.6919109",
"0.6903625",
"0.6888142",
"0.68084294",
"0.6806716",
"0.6781167",
"0.67339826",
"0.67309153",
"0.66950613",
"0.6665813",
"0.66406906",
"0.66233885",
"0.66089714",
"0.655217",
"0.65496635",
"0.6517... | 0.76630163 | 1 |
Get content of this wrapper | def Zmkp(YKHO) -> uLKX[iu5r[Kt_s], x1iM[Kt_s]]:
return YKHO.array | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EPt3(YKHO):\n return YKHO.content",
"def hGN5(YKHO):\n return YKHO.__content",
"def BuGO(YKHO):\n return YKHO.contents",
"def hGN5(YKHO):\n return YKHO._content",
"def hGN5(YKHO):\n return YKHO._content",
"def hGN5(YKHO):\n return YKHO._content",
"def hGN5(YKHO):\n return YKHO.... | [
"0.850132",
"0.81951433",
"0.8136741",
"0.8118551",
"0.8118551",
"0.8118551",
"0.8118551",
"0.8115479",
"0.8071315",
"0.7896508",
"0.7874863",
"0.7728276",
"0.7709806",
"0.77057123",
"0.7698179",
"0.7671481",
"0.7671481",
"0.7671481",
"0.7596609",
"0.7558301",
"0.746939",
"... | 0.0 | -1 |
Return new array that every item is result of func | def map(YKHO, JfyU: Callable[[T], V]) -> 'List[V]':
return [JfyU(Ty9i) for Ty9i in YKHO.array] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHt0(YKHO, JfyU):\n return [JfyU(YKHO.ptr, YRbF) for YRbF in range(len(YKHO))]",
"def map(YKHO, JfyU):\n return x1iM(map(JfyU, YKHO))",
"def sczk(zaZY, ezWE, DbxN):\n Aofo = []\n for YRbF, ZfUD in enumerate(ezWE):\n Aofo.append(zaZY(Aofo[YRbF - 1] if Aofo else DbxN, ZfUD))\n return Ao... | [
"0.7046186",
"0.6664048",
"0.64633167",
"0.6424108",
"0.6361219",
"0.6230683",
"0.6144653",
"0.6102472",
"0.6059488",
"0.6054769",
"0.6025662",
"0.597819",
"0.58929294",
"0.5881807",
"0.5856998",
"0.58393294",
"0.58230454",
"0.5812086",
"0.58107144",
"0.57919014",
"0.5783789"... | 0.7358695 | 0 |
Join all elements of a list/iterable separated by delimiter. Elements are autoconverted to string by via str function | def gzes(YKHO, TDw3: str) -> str:
return TDw3.join((str(WKvO) for WKvO in YKHO.array)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gzes(YKHO, OxJJ) -> FgBH:\n pass",
"def JbwW(DumB: Iterable[str]) -> str:\n return lcpj.join(DumB)",
"def nt7k(YKHO, cWbH):\n return ';'.join(cWbH)",
"def irIg(DMbc):\n return ' '.join(DMbc)",
"def gzes(VWe_, fUYa):\n return str(VWe_).join(fUYa)",
"def PhFE(YKHO, nPrm, TDw3=',', yera=l... | [
"0.77321285",
"0.7724553",
"0.7301904",
"0.72402406",
"0.7220645",
"0.71383774",
"0.7110151",
"0.7064598",
"0.69973946",
"0.6995412",
"0.6994151",
"0.69156146",
"0.6834919",
"0.6825805",
"0.6805006",
"0.67962915",
"0.67852664",
"0.67824876",
"0.6755309",
"0.6722159",
"0.66973... | 0.74802405 | 2 |
Return if a given voltage is above the configured threshold for the high/on/rising voltage for this fixture. | def eTcE(YKHO, m8jn: float) -> bool:
nNwJ = YKHO.get_arg_covariant(YKHO.fixture_arguments, 'target_voltage_threshold_rising', 0)
mxzH = YKHO.get_arg_covariant_or_fail(YKHO.fixture_arguments, 'target_voltage')
UNN3 = mxzH - nNwJ
return True if m8jn > UNN3 else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O62o(YKHO, m8jn: float) -> bool:\n vHZW = YKHO.get_arg_covariant(YKHO.fixture_arguments, 'target_voltage_threshold_falling', 0)\n return True if m8jn < vHZW else False",
"def wbI5(YKHO, wPwK):\n if wPwK > 230 * 0.88:\n return True\n else:\n return False",
"def lTx9(YKHO) -> bool:\... | [
"0.77306426",
"0.68501085",
"0.68012923",
"0.6616971",
"0.6317906",
"0.62629694",
"0.62177557",
"0.6198737",
"0.6175452",
"0.60803443",
"0.6029836",
"0.60143626",
"0.6010803",
"0.6010803",
"0.6010803",
"0.595671",
"0.5950449",
"0.5949048",
"0.59235835",
"0.5914401",
"0.585031... | 0.8581661 | 0 |
Return if a given voltage is below the configured threshold for the low/off/falling voltage for this fixture. | def O62o(YKHO, m8jn: float) -> bool:
vHZW = YKHO.get_arg_covariant(YKHO.fixture_arguments, 'target_voltage_threshold_falling', 0)
return True if m8jn < vHZW else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTcE(YKHO, m8jn: float) -> bool:\n nNwJ = YKHO.get_arg_covariant(YKHO.fixture_arguments, 'target_voltage_threshold_rising', 0)\n mxzH = YKHO.get_arg_covariant_or_fail(YKHO.fixture_arguments, 'target_voltage')\n UNN3 = mxzH - nNwJ\n return True if m8jn > UNN3 else False",
"def wbI5(YKHO, wPwK):\n ... | [
"0.8299032",
"0.7133236",
"0.69201803",
"0.65442",
"0.64816636",
"0.6253797",
"0.6249845",
"0.61251426",
"0.60882974",
"0.6076998",
"0.6065308",
"0.6021714",
"0.5969996",
"0.5940183",
"0.58787537",
"0.5872486",
"0.5868808",
"0.5825154",
"0.58058536",
"0.5803932",
"0.5803932",... | 0.8018871 | 1 |
Connects to the mongoDB. Pass through the password, returns the db | def rI_m(jTXt, CBIr='RCD2021', _M9w='myFirstDatabase'):
x0hE = DpgL.MongoClient(f'mongodb+srv://{CBIr}:{jTXt}@cluster0.z3tac.mongodb.net/{_M9w}?retryWrites=true&w=majority')
NCls = x0hE.test
return NCls | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VmFu():\n KcEq = urCc['host']\n bIwZ = urCc['port']\n p9bx = urCc['database']\n NtEF = urCc['username']\n jTXt = urCc['password']\n UzPC = MAqI(KcEq, bIwZ)\n if NtEF and jTXt:\n UzPC[p9bx].authenticate(NtEF, jTXt)\n return UzPC",
"def Z2mj():\n Sbmk = i808()\n ikv7(Sbmk)\... | [
"0.881511",
"0.81782997",
"0.8147984",
"0.80809915",
"0.796008",
"0.7956284",
"0.7940631",
"0.79266685",
"0.79010135",
"0.78500664",
"0.78465617",
"0.777564",
"0.7739609",
"0.77123797",
"0.7608925",
"0.7596632",
"0.75803083",
"0.7548107",
"0.7474176",
"0.74546975",
"0.7437807... | 0.8553886 | 1 |
Get user by id | async def get_user(id: int):
zVa7 = Kr3u()
return await zVa7.get_user(id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def TKWP(id):\n pass",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if ... | [
"0.8873811",
"0.88707125",
"0.87658477",
"0.8525675",
"0.85058427",
"0.84312195",
"0.84294516",
"0.8414046",
"0.84003544",
"0.839886",
"0.83409226",
"0.826507",
"0.82554895",
"0.8248595",
"0.8222798",
"0.8222798",
"0.8222798",
"0.8222798",
"0.8204112",
"0.8201288",
"0.8189301... | 0.8265451 | 11 |
Fetch the configuration key. | def OP2O(YKHO, H5ew):
if hasattr(YKHO, H5ew):
return getattr(YKHO, H5ew)
else:
raise KeyError('No such option `{}`.'.format(H5ew)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dn9U(YKHO, H5ew):\n if H5ew in YKHO.conf:\n return YKHO.conf[H5ew]\n else:\n return None",
"def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def tgzD(YKHO, H5ew):\n return YKHO.data[H5ew]",
"def egFI(YKHO, H5ew):\n return YKHO.config[H5ew]",
"def tgzD(YKHO, H5ew):\n ... | [
"0.7470462",
"0.74067944",
"0.73321396",
"0.72304887",
"0.7209066",
"0.7139708",
"0.6973374",
"0.6915105",
"0.68978006",
"0.67694426",
"0.67246675",
"0.67217326",
"0.6676926",
"0.66233563",
"0.66131926",
"0.66079587",
"0.6604322",
"0.6596047",
"0.65746206",
"0.656907",
"0.656... | 0.0 | -1 |
Test the ``validate_inputs`` validator for invalid scale inputs. | def c_6C(OaeV, RO5I):
QHTP = RO5I()
BWXx = jth9.deepcopy(QHTP)
assert l3At.validate_inputs(BWXx, OaeV) == 'neither `scale_factors` nor the pair of `scale_count` and `scale_increment` were defined.'
BWXx = jth9.deepcopy(QHTP)
BWXx.update({'scale_count': 2})
assert l3At.validate_inputs(BWXx, OaeV)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cl5V():\n assert QJYG(1 / 9) == 1 / 9\n with trZe.raises(ValueError):\n QJYG(-1)\n assert QJYG(1) == 1",
"def L_0N(YKHO):\n with trZe.raises(ValueError, match=\"scaler should be one of; \\\\['min_max', 'max_abs', 'standard'\\\\]\"):\n GwsC(columns='b', scaler='zzz', scaler_kwargs={'... | [
"0.6876793",
"0.67950356",
"0.6627188",
"0.66158503",
"0.6501047",
"0.6475344",
"0.6461625",
"0.64342606",
"0.64093435",
"0.64026356",
"0.6369724",
"0.6360621",
"0.632549",
"0.631703",
"0.6307841",
"0.6277771",
"0.6217689",
"0.61729026",
"0.61707366",
"0.61656445",
"0.6140699... | 0.7242582 | 0 |
Test the `validate_scale_count` validator. | def yQ5J(OaeV):
assert l3At.validate_scale_count(None, OaeV) is None
assert l3At.validate_scale_count(zPjx.Int(3), OaeV) is None
assert l3At.validate_scale_count(zPjx.Int(2), OaeV) == 'need at least 3 scaling factors.' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7d9(OaeV):\n assert l3At.validate_scale_factors(None, OaeV) is None\n assert l3At.validate_scale_factors(zPjx.List(list=[0.98, 1, 1.02]), OaeV) is None\n assert l3At.validate_scale_factors(zPjx.List(list=[0, 1]), OaeV) == 'need at least 3 scaling factors.'",
"def Tnbp(OaeV):\n assert l3At.valida... | [
"0.6806991",
"0.67012596",
"0.6590901",
"0.62809515",
"0.6266783",
"0.619833",
"0.6106783",
"0.60532546",
"0.6020951",
"0.5985356",
"0.5946034",
"0.59089077",
"0.5900792",
"0.57455856",
"0.5741947",
"0.57395303",
"0.5707025",
"0.56487167",
"0.5639003",
"0.5581505",
"0.557721"... | 0.85366595 | 0 |
Determines if two instances are equal. | def xa14(YKHO, Elif) -> bool:
return str(YKHO) == str(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, gO7U):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n ... | [
"0.7959046",
"0.7959046",
"0.7943258",
"0.7920624",
"0.7920624",
"0.7918186",
"0.7911599",
"0.7911599",
"0.7911599",
"0.7893859",
"0.7889761",
"0.7881151",
"0.7878904",
"0.7856153",
"0.78183234",
"0.77922845",
"0.77922845",
"0.77922845",
"0.77922845",
"0.77922845",
"0.7792284... | 0.0 | -1 |
Determines if the instance is less than the other. | def JWbp(YKHO, Elif) -> bool:
return str(YKHO) < str(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n return YKHO.get_distance() < Elif.get_distance()",
"def JWbp(YKHO, Elif):\n return YKHO.lessThan(Elif)",
"def JWbp(YKHO, Elif):\n return YKHO._comparator.compare_measurements(YKHO, Elif) == 1",
"def JWbp(YKHO, Elif):\n return HFDh(YKHO, Elif)",
"def JWbp(YKHO, Elif):\n ... | [
"0.8345154",
"0.8313539",
"0.8281034",
"0.825368",
"0.8180172",
"0.8099745",
"0.8099745",
"0.80957335",
"0.80957335",
"0.805858",
"0.80491775",
"0.8034751",
"0.8020018",
"0.8003331",
"0.79533756",
"0.79466254",
"0.791329",
"0.79058963",
"0.7883819",
"0.7873136",
"0.78686035",... | 0.0 | -1 |
The raw label key as defined in the ProblemStatement. | def pX8e(YKHO) -> str:
LEgg = YKHO._problem_statement.tasks[0].type
if LEgg.HasField('multi_class_classification'):
return LEgg.multi_class_classification.label
if LEgg.HasField('binary_classification'):
return LEgg.binary_classification.label
if LEgg.HasField('one_dimensional_regression... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4Qm(YKHO) -> str:\n return YKHO.raw_label_key",
"def DeTJ(YKHO, H5ew):\n return YKHO.labels.get(H5ew, None)",
"def UXqs(YKHO) -> str:\n return YKHO.keysym.label",
"def UXqs(YKHO) -> str:\n return YKHO['label']",
"def DeTJ(YKHO):\n return YKHO.job[YKHO.label_key]",
"def UXqs(YKHO):\n ... | [
"0.76852953",
"0.68692154",
"0.6830917",
"0.6780623",
"0.67738575",
"0.67221177",
"0.66975427",
"0.6637066",
"0.65952593",
"0.65860814",
"0.65860814",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.6568156",
"0.65681... | 0.8213031 | 0 |
The label key after applying TensorFlow Transform to the Examples. | def Q4Qm(YKHO) -> str:
return YKHO.raw_label_key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pX8e(YKHO) -> str:\n LEgg = YKHO._problem_statement.tasks[0].type\n if LEgg.HasField('multi_class_classification'):\n return LEgg.multi_class_classification.label\n if LEgg.HasField('binary_classification'):\n return LEgg.binary_classification.label\n if LEgg.HasField('one_dimensional... | [
"0.6945242",
"0.6294156",
"0.62779814",
"0.62649274",
"0.62220025",
"0.6199699",
"0.6159763",
"0.6103938",
"0.6097182",
"0.6079141",
"0.60770434",
"0.60770434",
"0.60770434",
"0.60770434",
"0.6056869",
"0.6054666",
"0.6054666",
"0.6030054",
"0.60116947",
"0.59944475",
"0.5987... | 0.7389862 | 0 |
Returns the Estimator Head for this task. | def sdCG(YKHO) -> ZylS.estimator.Head:
LEgg = YKHO._problem_statement.tasks[0].type
if LEgg.HasField('one_dimensional_regression'):
return ZylS.estimator.RegressionHead()
jTqs = YKHO._tf_transform_output.num_buckets_for_transformed_feature(YKHO.raw_label_key)
if LEgg.HasField('multi_class_classi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO) -> GRpb:\n return YKHO._model.head",
"def pe6C(YKHO):\n return YKHO._estimates[2].item(0)",
"def M1Ac(YKHO):\n return YKHO.__heading",
"def M1Ac(YKHO):\n return YKHO.__heading",
"def sdCG(YKHO):\n if not rRsO._parser_heads_loaded:\n raise ValueError('You need to have lo... | [
"0.7851193",
"0.6761012",
"0.6378977",
"0.6378977",
"0.6303703",
"0.629308",
"0.62548715",
"0.6229577",
"0.61900723",
"0.61486423",
"0.61486423",
"0.6031511",
"0.59659743",
"0.58921",
"0.5837884",
"0.57720685",
"0.5698001",
"0.56032324",
"0.5598741",
"0.5590286",
"0.5586843",... | 0.8017886 | 0 |
Returns the list of sparse FeatureColumns to be fed into the model. | def TnOl(YKHO) -> x1iM[h3Me]:
return YKHO._get_numeric_feature_columns() + YKHO._get_sparse_categorical_feature_columns() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VQgz(YKHO):\n if not YKHO.col_name_mapping or 'sparse_col' not in YKHO.col_name_mapping:\n return VCTk\n return V_n5(name=list(YKHO.col_name_mapping['sparse_col'].keys()), index=list(YKHO.col_name_mapping['sparse_col'].values()))",
"def ePKN(YKHO) -> x1iM[h3Me]:\n return YKHO._get_numeric_fea... | [
"0.7777502",
"0.76273423",
"0.7262173",
"0.700719",
"0.6915634",
"0.6808054",
"0.6639383",
"0.63721895",
"0.6323643",
"0.6264074",
"0.62528586",
"0.6196295",
"0.61387503",
"0.6127688",
"0.6124196",
"0.6112903",
"0.6110041",
"0.60970175",
"0.609062",
"0.60681653",
"0.60466367"... | 0.89280576 | 0 |
Get queryset with custom annotations. | def k66M(YKHO):
b3Dl = super(tqMu, YKHO).get_queryset()
RokB = b3Dl.annotate(session_state=FYrf.Case(FYrf.When(provisioning_state=2, then=FYrf.Case(FYrf.When(admin_state=2, then=FYrf.Case(FYrf.When(operational_state=6, then=FYrf.Value('Up')), default=FYrf.Value('Down'))), default=FYrf.Value('Admin Down'))), FYr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3nu(YKHO, **XgyP):\n return B3vb(YKHO, XgyP)",
"def VEzj(Emd4, SR0I, *XgyP):\n if (L1Fj := Emd4.select_related):\n SR0I = SR0I.select_related(*L1Fj)\n if (u6Bi := Emd4.prefetch_related):\n SR0I = SR0I.prefetch_related(*u6Bi)\n if (gjuu := Emd4.get_overview_annotations()):\n ... | [
"0.7111231",
"0.66121894",
"0.65157735",
"0.6412332",
"0.6352211",
"0.6352211",
"0.6288018",
"0.61499923",
"0.61052215",
"0.6100128",
"0.6094886",
"0.6090788",
"0.5880232",
"0.5714176",
"0.5704589",
"0.56150657",
"0.5571465",
"0.5568022",
"0.5554091",
"0.55057067",
"0.5482574... | 0.0 | -1 |
Get queryset with custom annotations. | def k66M(YKHO):
RokB = super(vXiW, YKHO).get_queryset()
return RokB.annotate(participants=FYrf.Count('ixlan_set__netixlan_set__asn', distinct=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3nu(YKHO, **XgyP):\n return B3vb(YKHO, XgyP)",
"def VEzj(Emd4, SR0I, *XgyP):\n if (L1Fj := Emd4.select_related):\n SR0I = SR0I.select_related(*L1Fj)\n if (u6Bi := Emd4.prefetch_related):\n SR0I = SR0I.prefetch_related(*u6Bi)\n if (gjuu := Emd4.get_overview_annotations()):\n ... | [
"0.7111231",
"0.66121894",
"0.65157735",
"0.6412332",
"0.6352211",
"0.6352211",
"0.6288018",
"0.61499923",
"0.61052215",
"0.6100128",
"0.6094886",
"0.6090788",
"0.5880232",
"0.5714176",
"0.5704589",
"0.56150657",
"0.5571465",
"0.5568022",
"0.5554091",
"0.55057067",
"0.5482574... | 0.0 | -1 |
Get queryset with custom annotations. | def k66M(YKHO):
RokB = super(YfRK, YKHO).get_queryset()
return RokB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3nu(YKHO, **XgyP):\n return B3vb(YKHO, XgyP)",
"def VEzj(Emd4, SR0I, *XgyP):\n if (L1Fj := Emd4.select_related):\n SR0I = SR0I.select_related(*L1Fj)\n if (u6Bi := Emd4.prefetch_related):\n SR0I = SR0I.prefetch_related(*u6Bi)\n if (gjuu := Emd4.get_overview_annotations()):\n ... | [
"0.71102184",
"0.6611364",
"0.6515494",
"0.641225",
"0.6352882",
"0.6352882",
"0.62888086",
"0.615031",
"0.6106056",
"0.60995924",
"0.60955495",
"0.60911536",
"0.58799887",
"0.5713939",
"0.57053864",
"0.56150967",
"0.55709636",
"0.55690503",
"0.55554366",
"0.5506568",
"0.5482... | 0.0 | -1 |
Configure the platform and add the sensors. | async def async_setup_platform(ajET, GPtr, QEEk, tR5e=None):
mWFP = GPtr.get(BiEj)
_UuI = GPtr.get(Z8q8, ajET.config.latitude)
fopC = GPtr.get(BcvV, ajET.config.longitude)
rQow = GPtr.get(ncXR)
vzeF.debug('Using latitude and longitude: %s, %s', _UuI, fopC)
nPrm = ju0P(GPtr.get(fFds), _UuI, fopC,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kZf(YKHO, b32v):\n YKHO.__sensors = YKHO.setup_components(b32v, 'scale_client.sensors')",
"def AbqV(ajET, GPtr, qc_b, tR5e=None):\n dgV7 = ajET.data[VquC]\n if dgV7 is None or not dgV7.is_connected:\n na1r.warning('No connection to Flo service, ignoring setup of platform sensor')\n re... | [
"0.748485",
"0.7239416",
"0.7238486",
"0.7237859",
"0.710073",
"0.6981587",
"0.69638777",
"0.6957731",
"0.6949644",
"0.69455737",
"0.6945002",
"0.6940697",
"0.6871586",
"0.6851643",
"0.6828366",
"0.6806935",
"0.678929",
"0.6771974",
"0.67604375",
"0.6748191",
"0.673941",
"0... | 0.6424368 | 53 |
Return the device state attributes. | def R1i3(YKHO):
if YKHO.airly.data_available:
if YKHO.type == usBe:
YKHO._attrs[GIvC] = YKHO.airly.data[GIvC]
if YKHO.type == VRJD:
YKHO._attrs[TQLQ] = YKHO.airly.data[TQLQ]
if YKHO.type == oiVz:
YKHO._attrs[FfQ0] = YKHO.airly.data[wdlc]
YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.93173087",
"0.9245708",
"0.92207897",
"0.92147964",
"0.92147964",
"0.9210798",
"0.9210798",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
... | 0.78787047 | 76 |
Return a unique_id for this entity. | def ShR8(YKHO):
return '{}-{}-{}'.format(YKHO.airly.latitude, YKHO.airly.longitude, YKHO.type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._uuid",
"def ShR8(YKHO):\n return YKHO._uuid",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n ret... | [
"0.8326303",
"0.8326303",
"0.8272535",
"0.8272535",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82369304",
"0.82107615",
"0.82107615",
"0.82107615",
"0.82107615",
"0.82107615",
"0.82107615",
"0.82107615",
"0.82107615",
... | 0.0 | -1 |
Gets a list of projects accessible to the user. | def PKRp(YKHO):
geh0 = YKHO.request(verb=G4JS.get, address='projects')
return geh0['results'] if 'results' in geh0 else geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T8kN(CBIr):\n xDcj = T8ck(deprecated_files=False)\n xDcj &= Hy5J()\n if CBIr.is_authenticated:\n xDcj |= bUa2(CBIr)\n if CBIr.is_credentialed:\n xDcj |= goVY(CBIr)\n xDcj |= G_9D(CBIr)\n return Mx47.objects.filter(xDcj).distinct()",
"def PKRp(YKHO):\n return YKHO.http_call(... | [
"0.81165284",
"0.78454465",
"0.77744263",
"0.7611985",
"0.7599327",
"0.7597037",
"0.75431144",
"0.75133187",
"0.74744916",
"0.74576074",
"0.7445283",
"0.7421303",
"0.74208295",
"0.7405858",
"0.7377553",
"0.7354221",
"0.73310965",
"0.72823554",
"0.7277075",
"0.7198156",
"0.719... | 0.7552719 | 6 |
Makes a request to the Brandwatch API. | def QePW(YKHO, b7IC, UTX6, NArs=None, nPrm=None):
return d0iV.bare_request(verb=b7IC, address_root=YKHO.api_url, address_suffix=UTX6, access_token=YKHO.token, params=NArs or dict(), data=nPrm or dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVor(sisH):\n from DarktraceMBs import Client, get_model_breach_command\n EUlJ = S3ET('test_data/get_breach.json')\n sisH.get('https://mock.darktrace.com/modelbreaches?pbid=95', json=EUlJ)\n x0hE = Client(base_url='https://mock.darktrace.com', verify=False, auth=('examplepub', 'examplepri'))\n q... | [
"0.54784626",
"0.54199266",
"0.54009145",
"0.5381244",
"0.5372688",
"0.5324735",
"0.52948314",
"0.5253",
"0.52312446",
"0.51644444",
"0.5138369",
"0.512951",
"0.51141256",
"0.5103499",
"0.5103499",
"0.5103452",
"0.50867605",
"0.5060832",
"0.5053627",
"0.5030785",
"0.5025953",... | 0.49498695 | 32 |
Makes a request to the Brandwatch API. | def T5iK(b7IC, T9dG, yPMe, NT__='', NArs=None, nPrm=None):
NArs = NArs or dict()
nPrm = nPrm or dict()
bD7m = '%s%s' % (T9dG, yPMe)
if NT__:
NArs['access_token'] = NT__
try:
if nPrm:
geh0 = b7IC(bD7m, params=NArs, data=nPrm, headers={'Content-type': 'application/json'})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVor(sisH):\n from DarktraceMBs import Client, get_model_breach_command\n EUlJ = S3ET('test_data/get_breach.json')\n sisH.get('https://mock.darktrace.com/modelbreaches?pbid=95', json=EUlJ)\n x0hE = Client(base_url='https://mock.darktrace.com', verify=False, auth=('examplepub', 'examplepri'))\n q... | [
"0.5475603",
"0.5401603",
"0.53826493",
"0.53758925",
"0.53254837",
"0.52993226",
"0.5254074",
"0.5232981",
"0.5163139",
"0.51408297",
"0.51310325",
"0.5114292",
"0.5106049",
"0.5106049",
"0.5103286",
"0.50890124",
"0.5061842",
"0.50531536",
"0.50317085",
"0.5025219",
"0.5023... | 0.5420072 | 1 |
Makes a project level PUT request | def NpNj(YKHO, w2IS, NArs=None, nPrm=None):
NArs = NArs or dict()
nPrm = nPrm or dict()
return YKHO.request(verb=G4JS.put, address=YKHO.project_address + w2IS, params=NArs, data=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ycG(YKHO, *qIxc, **B2fa):\n return YKHO._request('put', *qIxc, **B2fa)",
"def NpNj(YKHO, *qIxc, **B2fa):\n YKHO.request('put', *qIxc, **B2fa)",
"def _ycG(YKHO, pmON='', **B2fa):\n j8eK = noCM(YKHO.uri + pmON)\n return YKHO.client.request(j8eK, method='PUT', **B2fa)",
"def NpNj(YKHO, Artt):\n... | [
"0.77759606",
"0.7536418",
"0.7412014",
"0.7391799",
"0.7324844",
"0.7284414",
"0.7281632",
"0.7258294",
"0.7258294",
"0.7258294",
"0.7249349",
"0.71901125",
"0.7170682",
"0.71283567",
"0.7080139",
"0.7063283",
"0.70615494",
"0.70427966",
"0.7039901",
"0.7036298",
"0.7020713"... | 0.6795165 | 33 |
Makes a project level PATCH request | def Po4F(YKHO, w2IS, NArs=None, nPrm=None):
NArs = NArs or dict()
nPrm = nPrm or dict()
return YKHO.request(verb=G4JS.patch, address=YKHO.project_address + w2IS, params=NArs, data=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'message': 'PATCH'})",
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def quGx(P4t4, pmON, **B2fa) -> lm55:\n return f3q3(P4t4, 'PATCH', pmON, **B2fa)",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'patch'})"... | [
"0.7414447",
"0.738381",
"0.7376826",
"0.73596",
"0.7306892",
"0.72349507",
"0.72255653",
"0.72255653",
"0.72255653",
"0.7203817",
"0.7201034",
"0.7181048",
"0.7179009",
"0.7176277",
"0.71471167",
"0.71437323",
"0.7136026",
"0.71139544",
"0.71114653",
"0.70922846",
"0.7072007... | 0.7070502 | 22 |
Layer normalize the tensor x, averaging over the last dimension. | def vUJ3(WKvO, KUnM=None, _hZ2=1e-06, mWFP=None, CJGY=None):
if KUnM is None:
KUnM = WKvO.get_shape()[-1]
with ZylS.variable_scope(mWFP, default_name='layer_norm', values=[WKvO], reuse=CJGY):
NXpY = ZylS.get_variable('layer_norm_scale', [KUnM], initializer=ZylS.ones_initializer())
oug5 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, WKvO, EvQg=True):\n if EvQg is not None:\n JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])\n ghdg = YKHO.mean.assign(JBMS)\n RPPm = YKHO.variance.assign(I8JS)\n with ZylS.control_dependencies([ghdg, RPPm]):\n return ZylS.nn.batch_norm_with_global_normalization... | [
"0.7025246",
"0.7000931",
"0.69984037",
"0.6946193",
"0.6926463",
"0.6913268",
"0.6907985",
"0.68715054",
"0.6863467",
"0.6787572",
"0.6776529",
"0.67483455",
"0.6723166",
"0.6712802",
"0.6702004",
"0.66976094",
"0.6691674",
"0.66691875",
"0.6619964",
"0.6619837",
"0.65780723... | 0.6047941 | 79 |
Return a random string where characters are drawn from a fixed set of characters. | def wVBp():
return ''.join((tuKI.choice(DRnx) for bGrB in range(qs0H))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9",
"def osaO(zZas, u54L):\n KCHu = ''\n Rv0k = len(zZas) - 1\n Mkmy = tuKI.SystemRandom()\n for YRbF in range(0, u54L + 1):\n exwG = Mkmy.randint(0, Rv0k)\n KCHu = KCHu + zZas[exwG]\n r... | [
"0.8113231",
"0.7946145",
"0.79120827",
"0.7856756",
"0.78565127",
"0.78538257",
"0.78078026",
"0.7802891",
"0.7795389",
"0.7779298",
"0.77750844",
"0.77531236",
"0.7749553",
"0.7718717",
"0.7696623",
"0.7678719",
"0.76537216",
"0.7653492",
"0.7625127",
"0.7624491",
"0.761965... | 0.7649158 | 18 |
A convenience method that directly creates a new instance from a passed dictionary (that probably came from a JSON response from the server. | def jG8h(dict):
return dnyn(**dict) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, ... | [
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"0.8192101",
"... | 0.0 | -1 |
>>> get_gt_hom_idxs(0) 0/0 [0] >>> get_gt_hom_idxs(1) 0/0, 0/1, 1/1 [0, 2] >>> get_gt_hom_idxs(2) 0/0, 0/1, 1/1, 0/2, 1/2, 2/2 [0, 2, 5] >>> get_gt_hom_idxs(3) [0, 2, 5, 9] | def DxEX(fYmW):
XVAW = -1
PxOY = []
for jzdc in range(fYmW + 1):
XVAW = XVAW + (jzdc + 1)
PxOY.append(XVAW)
return PxOY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZOL():\n return list(Lx3t([0, 1], repeat=6))",
"def fdyk(YKHO):\n return B_n2(*[range(*Mkmy) for Mkmy in YKHO.location])",
"def nXyG(or8S: int):\n return (2 * or8S + 1, 2 * or8S + 2)",
"def _0VL(YKHO):\n o_gI = []\n for MKlR in YKHO.miller.indices():\n o_gI.append(YKHO.indices_hkl(... | [
"0.6421442",
"0.59066916",
"0.58690584",
"0.5763293",
"0.569858",
"0.56806093",
"0.5659324",
"0.56189686",
"0.5591787",
"0.5539958",
"0.55100554",
"0.54911804",
"0.5477589",
"0.54528195",
"0.5437977",
"0.5414168",
"0.5386413",
"0.5370047",
"0.53599024",
"0.5350413",
"0.534704... | 0.82530576 | 0 |
Construct an empty priority queue. | def FIMM(YKHO, kGys=()):
YKHO._data = [YKHO._Item(G1Hx, Ty9i) for G1Hx, Ty9i in kGys]
if len(YKHO._data) > 1:
YKHO._heapify() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def _OiT():\n return g5js()",
"def _OiT():\n return g5js()",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n Rdbh.insert(6, 2)\n Rdbh.inse... | [
"0.805189",
"0.73131335",
"0.73131335",
"0.73012674",
"0.7085521",
"0.6290989",
"0.620198",
"0.60821944",
"0.6052215",
"0.6049975",
"0.6049317",
"0.60206825",
"0.59892666",
"0.5940884",
"0.5937808",
"0.59070545",
"0.59040225",
"0.59003806",
"0.58879364",
"0.5862676",
"0.58528... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
Return True if the priority queue is empty. | def FBfn(YKHO):
return len(YKHO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.priority_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO... | [
"0.9179846",
"0.8469489",
"0.8437107",
"0.8437107",
"0.8436066",
"0.838734",
"0.836409",
"0.8344005",
"0.83305556",
"0.83305556",
"0.83042455",
"0.83034027",
"0.82889843",
"0.82803255",
"0.8267934",
"0.8259419",
"0.82293385",
"0.8219118",
"0.82072806",
"0.8198649",
"0.8182699... | 0.0 | -1 |
Return the index of parent. | def KwgP(YKHO, r845):
return (r845 - 1) // 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bc1k(YKHO):\n return (YKHO.index - 1) // 2",
"def Bc1k(YRbF):\n oeNL = YRbF + 1\n Ywl8 = oeNL // 2\n ICDs = Ywl8 - 1\n return ICDs",
"def _AKB(YKHO, d6pt):\n return d6pt / 2",
"def Bc1k(YKHO, aUGN):\n return (aUGN - 1) // 2",
"def _AKB(YKHO, d6pt):\n if d6pt == 0:\n print... | [
"0.88523114",
"0.84068686",
"0.83859366",
"0.83794373",
"0.83381116",
"0.831047",
"0.8292658",
"0.8126485",
"0.8123494",
"0.7984645",
"0.7973278",
"0.7969792",
"0.7860637",
"0.77875227",
"0.7669214",
"0.76445746",
"0.7616312",
"0.7567693",
"0.75354713",
"0.753447",
"0.7427498... | 0.731654 | 26 |
Return the index of left child | def urqV(YKHO, r845):
return 2 * r845 + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uI3T(YKHO):\n return 2 * YKHO.index + 1",
"def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1",
"def cdj0(YKHO, d6pt):\n return 2 * d6pt",
"def uI3T(YKHO, _AKB):\n return 2 * _AKB + 1",
"def cdj0(YKHO, oeNL):\n return 2 * oeNL",
"def ixOR(or8S):\n return (or8S << 1) + 1",
"def zqXl(YKHO,... | [
"0.91958576",
"0.89187956",
"0.88115436",
"0.87078595",
"0.8406982",
"0.8348161",
"0.83287567",
"0.83287567",
"0.7953452",
"0.7804877",
"0.77424127",
"0.76655513",
"0.7506037",
"0.7479933",
"0.7473451",
"0.74623054",
"0.7337348",
"0.7330639",
"0.7288073",
"0.7225832",
"0.7203... | 0.68971956 | 33 |
Return the index of right child. | def Y5Gl(YKHO, r845):
return 2 * r845 + 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBm4(YKHO):\n return 2 * YKHO.index + 2",
"def MBm4(YKHO, _AKB):\n return 2 * _AKB + 2",
"def esTa(YKHO, d6pt):\n return 2 * d6pt + 1",
"def esTa(YKHO, d6pt):\n return 2 * d6pt + 2",
"def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1",
"def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1",
"def... | [
"0.92920136",
"0.89123756",
"0.87969095",
"0.8676418",
"0.85004306",
"0.85004306",
"0.8477611",
"0.8297501",
"0.80839413",
"0.7759199",
"0.7714767",
"0.75826806",
"0.7569398",
"0.74809146",
"0.74102217",
"0.7365759",
"0.7345707",
"0.72459966",
"0.7243666",
"0.7212194",
"0.715... | 0.63150597 | 54 |
Bubbling the element identified by `j` down. | def ZYYn(YKHO, r845):
if YKHO._has_left(r845):
wuLw = YKHO._left(r845)
if YKHO._has_right(r845):
_tIi = YKHO._right(r845)
if YKHO._data[wuLw] > YKHO._data[_tIi]:
wuLw = _tIi
if YKHO._data[r845] > YKHO._data[wuLw]:
YKHO._swap(r845, wuLw)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, r845=1):\n if r845 < 0:\n return YKHO.backward(-r845)\n YKHO.__i += r845\n return YKHO[YKHO.__i - r845:YKHO.__i]",
"def KVH6(YKHO, r845=1):\n if r845 < 0:\n return YKHO.backward(-r845)\n YKHO.__i += r845\n return YKHO[YKHO.__i - r845:YKHO.__i]",
"def Mhbv(YKHO, YR... | [
"0.5617376",
"0.5594953",
"0.5517073",
"0.551445",
"0.5418004",
"0.54037386",
"0.54037386",
"0.53903675",
"0.5357077",
"0.5243988",
"0.49508595",
"0.48599544",
"0.47243688",
"0.47243688",
"0.47194177",
"0.47174054",
"0.46797574",
"0.46436283",
"0.46277377",
"0.46143728",
"0.4... | 0.5111574 | 10 |
Do a bottomup heap construction. | def ENpy(YKHO):
yKcO = YKHO._parent(len(YKHO) - 1)
for YRbF in range(yKcO, -1, -1):
YKHO._down_heap(YRbF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npt8(nPrm):\n zNig = len(nPrm)\n for YRbF in range(zNig // 2, -1, -1):\n kA99(nPrm, YRbF)",
"def Npt8(YKHO):\n exwG = int(len(YKHO.array) / 2 - 1)\n while exwG >= 0:\n YKHO.heapify_top_down(exwG)\n exwG -= 1",
"def Npt8(ezWE):\n for YRbF in range(len(ezWE) - 1, -1, -1):\... | [
"0.7398819",
"0.7373493",
"0.7128891",
"0.70331573",
"0.68688476",
"0.6812924",
"0.6748717",
"0.673803",
"0.6599716",
"0.6594262",
"0.6590596",
"0.65709054",
"0.6565626",
"0.6487256",
"0.64317",
"0.6431595",
"0.63976145",
"0.63963735",
"0.6386745",
"0.6373046",
"0.6365643",
... | 0.6677855 | 8 |
return all extensions being considered i.e. jpg, jpeg, png | def _TFp():
return ['.JPG'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UtEm(YKHO):\n return ['img', 'qcow', 'qcow2']",
"def Vdze():\n aUcS = []\n for Ux0P in Hy7s.listdir('.'):\n if Ux0P.lower().endswith('.jpg') or Ux0P.lower().endswith('.jpeg'):\n NDRi.append(Ux0P)\n elif Ux0P.lower().endswith('.gif'):\n Ktx7.append(Ux0P)\n e... | [
"0.78561896",
"0.7290533",
"0.72052455",
"0.716067",
"0.71313787",
"0.7124166",
"0.7113873",
"0.70675",
"0.6955492",
"0.6789657",
"0.67688596",
"0.67430735",
"0.66921145",
"0.6691617",
"0.66694444",
"0.6662907",
"0.6653264",
"0.6645472",
"0.66333157",
"0.6631114",
"0.6595369"... | 0.82684064 | 0 |
Sets all values to default. | def duMC(YKHO):
YKHO.__playerName = '???'
YKHO.__difficulty = 0
YKHO.__highScore = 0
YKHO.__bestStepRun = 0
YKHO.__levelReached = 1
YKHO.__songDictionary = {}
YKHO.__filename = '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_hU(YKHO):\n for G1Hx, Ty9i in YKHO.DEFAULTS.items():\n if not getattr(YKHO, G1Hx, None):\n setattr(YKHO, G1Hx, Ty9i)",
"def XftE(YKHO):\n pass",
"def G_hU(YKHO):\n for mWFP, MTKo in YKHO.options.iteritems():\n if not MTKo.is_required():\n YKHO.set_value(mWFP, ... | [
"0.7860561",
"0.7616374",
"0.7608209",
"0.7513861",
"0.74160504",
"0.739448",
"0.72385925",
"0.71804094",
"0.7124414",
"0.71033216",
"0.7100495",
"0.70212346",
"0.69523466",
"0.689952",
"0.6755493",
"0.6709823",
"0.6692402",
"0.6692402",
"0.6684488",
"0.66272336",
"0.6622013"... | 0.0 | -1 |
Plot the adapt image of a galaxy. | def s7TF(YKHO, DthU: aa.Array2D):
YKHO.mat_plot_2d.plot_array(array=DthU, visuals_2d=YKHO.get_visuals_2d(), auto_labels=fYSG.AutoLabels(title='adapt image', filename='adapt_model_image')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxZ9(YKHO, JWjX: aa.Array2D):\n YKHO.mat_plot_2d.plot_array(array=JWjX, visuals_2d=YKHO.get_visuals_2d(), auto_labels=fYSG.AutoLabels(title='galaxy Image', filename='adapt_galaxy_image'))",
"def MOlF(YKHO, lwxz: Dict[Galaxy, aa.Array2D]):\n if lwxz is None:\n return\n YKHO.open_subplot_figure... | [
"0.77073085",
"0.64474416",
"0.62014794",
"0.6153183",
"0.6121531",
"0.60791826",
"0.59728044",
"0.58779246",
"0.5871628",
"0.58626986",
"0.5845781",
"0.58426213",
"0.5841411",
"0.5770292",
"0.57224154",
"0.57178",
"0.57064533",
"0.57042474",
"0.5702702",
"0.56973904",
"0.565... | 0.6343304 | 2 |
Plot the galaxy image of a galaxy. | def cxZ9(YKHO, JWjX: aa.Array2D):
YKHO.mat_plot_2d.plot_array(array=JWjX, visuals_2d=YKHO.get_visuals_2d(), auto_labels=fYSG.AutoLabels(title='galaxy Image', filename='adapt_galaxy_image')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO, xqoZ):\n xqoZ = str(xqoZ).lower().replace(' ', '')\n QrM1.ion()\n if xqoZ == 'illuminantenergy':\n YKHO.illuminant.plot('energy')\n elif xqoZ == 'illuminantphotons':\n YKHO.illuminant.plot('photons')\n elif xqoZ == 'srgb':\n QrM1.imshow(YKHO.srgb)\n QrM1.sh... | [
"0.6429617",
"0.6013196",
"0.5969649",
"0.59120136",
"0.5857666",
"0.5815539",
"0.57454026",
"0.5694297",
"0.56765664",
"0.5668978",
"0.5632633",
"0.56229776",
"0.5604926",
"0.55940866",
"0.55939925",
"0.5560272",
"0.5529433",
"0.55293584",
"0.55172914",
"0.55121243",
"0.5502... | 0.723637 | 0 |
Plots a subplot of the galaxy image of all galaxies. This uses the `adapt_galaxy_image_path_dict` which is a dictionary mapping each galaxy to its corresponding to galaxy image. | def MOlF(YKHO, lwxz: Dict[Galaxy, aa.Array2D]):
if lwxz is None:
return
YKHO.open_subplot_figure(number_subplots=len(lwxz))
for pmON, JWjX in lwxz.items():
YKHO.figure_adapt_galaxy_image(galaxy_image=JWjX)
YKHO.mat_plot_2d.output.subplot_to_figure(auto_filename='subplot_adapt_images_of_g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxZ9(YKHO, JWjX: aa.Array2D):\n YKHO.mat_plot_2d.plot_array(array=JWjX, visuals_2d=YKHO.get_visuals_2d(), auto_labels=fYSG.AutoLabels(title='galaxy Image', filename='adapt_galaxy_image'))",
"def U0xK(laKQ, AaD6=True):\n LZpg, FgGO = QrM1.subplots(len(laKQ), sharex=True, sharey=True)\n for H5ew, LZpg... | [
"0.73054737",
"0.6793398",
"0.63942105",
"0.63073295",
"0.60548747",
"0.6032299",
"0.6032299",
"0.6032299",
"0.59846544",
"0.5893336",
"0.5854182",
"0.58026206",
"0.57587886",
"0.5743003",
"0.5740605",
"0.5696411",
"0.56705105",
"0.5667904",
"0.56602514",
"0.56335175",
"0.563... | 0.8380626 | 0 |
Displacement of the mean of the data from the origin. | def vY6o(YKHO, Lm6x):
r8hN = oyIN.random.randint(-1000, 1000, Lm6x).astype(float)
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n if not YKHO._masked:\n return YKHO.data.mean()\n else:\n if not hasattr(YKHO, '_full_mask'):\n YKHO.maskBoundaries()\n return YKHO.data[YKHO._full_mask].mean()",
"def DH4Z(YKHO):\n return XTiz.mean(YKHO._x) - XTiz.mean(YKHO._y)",
"def JBMS(YKHO):\n ... | [
"0.72801834",
"0.7214286",
"0.7134578",
"0.712177",
"0.70132357",
"0.70042986",
"0.69960624",
"0.6886174",
"0.684742",
"0.68454003",
"0.6834306",
"0.68179494",
"0.6811251",
"0.6791517",
"0.6773372",
"0.67618364",
"0.67607796",
"0.6757741",
"0.6739905",
"0.67349046",
"0.673490... | 0.0 | -1 |
Return the _OneQState at the given qubit. | def OP2O(YKHO, t3jy):
for S5Lj in YKHO.states:
if S5Lj.qubit == t3jy:
return S5Lj
raise IndexError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return hvkE[YKHO.state][0]",
"def k0aD(T8ck):\n K43E = T8ck.statetracker.state_probabilities()\n qDrc = [QTBn for QTBn in K43E if K43E[QTBn] > 0]\n z8CS = oyIN.random.randint(len(qDrc))\n QTBn = qDrc[z8CS]\n return QTBn",
"def Vn7Z(YKHO, v_kh):\n if isinstance(v_kh, int):... | [
"0.6318529",
"0.6158064",
"0.6157777",
"0.58019364",
"0.5780136",
"0.57543325",
"0.5737401",
"0.5737401",
"0.57324916",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
"0.5702599",
... | 0.7962742 | 0 |
Construct a PauliTerm operator by taking the nonidentity singlequbit operator at each qubit position. This function will return ``None`` if the input operators do not share a natural tensor product basis. For example, the max_weight_operator of ["XI", "IZ"] is "XZ". Asking for the max weight operator of something like ... | def MOAy(IPme: Iterable[PauliTerm]) -> uLKX[None, ob1P]:
J8oL = dict()
for khtY in IPme:
for or8S, pwio in khtY:
if or8S in J8oL:
if J8oL[or8S] != pwio:
return None
else:
J8oL[or8S] = pwio
khtY = xBlr.reduce(AdrB, (ob1P(khtY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JxB2(Tr6b, xnME):\n if not isinstance(xnME, UCDO):\n raise TypeError('qubit_operator must be an openFermion QubitOperator object.')\n mkrQ = []\n for SUAd, zZRI in xnME.terms.items():\n UHFx = 0\n RwBh = ['I' for bGrB in range(Tr6b)]\n lk9W = zZRI\n for doEp in SUAd:... | [
"0.61999893",
"0.61304766",
"0.592701",
"0.58670783",
"0.5797058",
"0.5693715",
"0.56606096",
"0.5626051",
"0.55829257",
"0.55493224",
"0.5520556",
"0.549517",
"0.54718876",
"0.54706854",
"0.54655415",
"0.5465124",
"0.5453243",
"0.54489344",
"0.54489344",
"0.54383487",
"0.540... | 0.69963306 | 0 |
Computes the orientation of the Baxter's left endeffector given the joint state. | def eBae(e46r):
bLm4 = oyIN.zeros(7)
bLm4 = e46r.position[2:9]
return Cfbe(bLm4)
print(Cfbe(bLm4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eXAm(YKHO, jxse):\n y917 = YKHO.om_right_max * YKHO.R - jxse * YKHO.L\n DRE6 = (y917 - jxse * YKHO.L) / YKHO.R - 1\n return (y917, DRE6)",
"def LFlW(WKvO):\n return rUp2(HEZd(WKvO.v, 1))",
"def mIJV(YKHO) -> oyIN.ndarray:\n y917 = YKHO.state[:, :, wI_P.Attr.VEL]\n FdYO = oyIN.linalg.norm(... | [
"0.63801736",
"0.6011719",
"0.5640813",
"0.5603242",
"0.55896014",
"0.5549157",
"0.5506519",
"0.54936016",
"0.5436179",
"0.5422546",
"0.5420507",
"0.5399368",
"0.53921026",
"0.53817236",
"0.53622013",
"0.53512573",
"0.5351158",
"0.534967",
"0.53358006",
"0.533528",
"0.5328567... | 0.0 | -1 |
x (Tensor) is the feature from ROI pooling/align. e.g. x.size = (1000, 256, 7, 7) y (Tensor) is the feature from backbone. | def KVH6(YKHO, WKvO, LVAh):
WKvO = ht2j.div(WKvO, WKvO.norm())
LVAh = ht2j.div(LVAh, LVAh.norm())
if not YKHO.is_cat:
WKvO = ht2j.sum(WKvO, dim=0).unsqueeze(0)
else:
WKvO = WKvO.reshape(-1)
WKvO = YKHO.conv1(WKvO)
WKvO = WKvO.view(WKvO.size(0), -1)
LVAh = YKHO.conv2(LVAh)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONGP(YKHO, UqXK):\n Fg_i, bGrB = UqXK.shape\n zO96 = YKHO.default_xy[None].expand(Fg_i, -1, -1, -1, -1).type_as(UqXK)\n UqXK = UqXK.view(Fg_i, YKHO.side, YKHO.side, YKHO.num * (YKHO.coords + YKHO.rescore) + YKHO.classes)\n Pg_e = UqXK[..., :YKHO.num * (YKHO.coords + YKHO.rescore)]\n Pg_e = Pg_e.... | [
"0.6641982",
"0.6483555",
"0.6362949",
"0.63191074",
"0.62588996",
"0.6242583",
"0.6093684",
"0.6073511",
"0.6041009",
"0.5986934",
"0.5975485",
"0.5958275",
"0.5948272",
"0.59259933",
"0.5922988",
"0.59070253",
"0.5895744",
"0.58936125",
"0.58734447",
"0.5864338",
"0.5852185... | 0.597011 | 11 |
Rate an item. Return type is RatingAssociation. | def C6fX(YKHO, uPnQ, CBIr, ZfUD, RrWF, aM_I=''):
vUI0 = YKHO.get_user_item_rating(uPnQ.sa_session, CBIr, ZfUD, webapp_model=uPnQ.model)
if not vUI0:
Oi88 = YKHO._get_item_rating_assoc_class(ZfUD, webapp_model=uPnQ.model)
vUI0 = Oi88()
vUI0.user = uPnQ.user
vUI0.set_item(ZfUD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mVUw(QePW, ht7m, uJjO):\n vexM = 'SELECT u FROM (SELECT item_id, user_id, AVG(usefulness) AS u\\n FROM rating GROUP BY item_id, user_id) r\\n WHERE item_id = %s AND user_id = %s'\n if QePW.method == 'POST':\n if not QePW.user.is_authenticated:\n raise wPvU(bM5Y)\n ... | [
"0.63127685",
"0.58665",
"0.5723079",
"0.5678973",
"0.5598166",
"0.557866",
"0.55126345",
"0.54044944",
"0.53995824",
"0.53653866",
"0.53625494",
"0.53620464",
"0.531321",
"0.5287787",
"0.5279655",
"0.52754354",
"0.5257843",
"0.524187",
"0.524187",
"0.5176579",
"0.5168848",
... | 0.7351503 | 0 |
Whether the passed job pair has an associated filter reason. This function should be used to decide whether to skip a jobpair that has already been filtered. Relies on the fact that the default value assocaited with FILTERED_REASON_KEY is None. | def nod9(j8BQ):
return bool(j8BQ[VDdo]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_xr(YKHO):\n if YKHO.properties['reason'] in IICn.reason_filter:\n return False\n return True",
"def r413(fjHN):\n if fjHN != 'description' and fjHN != 'fulldescription' and (fjHN != 'completed'):\n return False\n else:\n return True",
"def LaMO(YKHO, QAXO, ZfUD):\n hFD... | [
"0.6475612",
"0.56003875",
"0.554142",
"0.5362846",
"0.53555804",
"0.52335614",
"0.5198767",
"0.50483173",
"0.5032212",
"0.5015778",
"0.50153613",
"0.4979651",
"0.49677342",
"0.49467126",
"0.4938192",
"0.4923432",
"0.49198565",
"0.48927096",
"0.48806497",
"0.4874358",
"0.4866... | 0.7634059 | 0 |
Get the path of the original log for the job identified by the passed job ID. | def ZmWj(rjee) -> str:
return Hy7s.path.join(nP1N, '{}-orig.log'.format(rjee)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXZ4(YKHO):\n return YKHO.outpath",
"def L3fv(YKHO):\n return m286",
"def Ko5W():\n return g13p",
"def LkSv(YKHO, u0gG):\n NArs = {'id': u0gG}\n try:\n _hkX = YKHO.gc.get(bJV4.JOB_ID_PATH, parameters=NArs)\n except c1Bu as e:\n if tTpl.status == 400:\n print('Er... | [
"0.6663802",
"0.63415766",
"0.63330805",
"0.6307663",
"0.6213428",
"0.6210081",
"0.61813563",
"0.60702413",
"0.60621226",
"0.5931708",
"0.58903736",
"0.57767165",
"0.5710701",
"0.5709609",
"0.56985813",
"0.56858516",
"0.5680996",
"0.5678624",
"0.5672717",
"0.56619763",
"0.564... | 0.8995187 | 0 |
Generate dataset to test | def Vp8A(dYlE):
Pcn2 = [ajWY(500, 600)]
for bGrB in range(ajWY(5, 10)):
Pcn2.append(Pcn2[-1] - ajWY(10, 30))
for bGrB in range(ajWY(5, 10)):
Pcn2.append(Pcn2[-1] + ajWY(10, 30))
hMpy = lO1m(len(Pcn2) * dYlE)
aEqx = sorted(Pcn2[:])
aEqx = aEqx[:hMpy]
return (Pcn2, aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vp8A(YKHO):\n lNWu = {'train': 10, 'test': 5}\n V_D6 = {'strings_list': lambda WKvO: FjoW(YKHO.generate_string_list(WKvO)), 'data': lambda WKvO: oyIN.random.randint(0, 10, (WKvO, 10)), 'number': lambda WKvO: oyIN.array(range(WKvO)), 'field_with_a_long_name_for_printing': lambda WKvO: oyIN.array(range(WKv... | [
"0.7775823",
"0.76934594",
"0.7514942",
"0.7325774",
"0.7283979",
"0.72182417",
"0.7199076",
"0.7081371",
"0.7068466",
"0.7038486",
"0.70270467",
"0.6986364",
"0.69762874",
"0.6967292",
"0.69476205",
"0.6929576",
"0.6904908",
"0.68990797",
"0.6889853",
"0.6885068",
"0.6877968... | 0.0 | -1 |
Returns True if the two lists have the same sequences of values, i.e. if self.get(i) == other.get(i) for all i. | def xa14(YKHO, Elif):
return YKHO._to_pylist() == Elif._to_pylist() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPi6(YKHO, Elif):\n yk4i = set(YKHO.keys()).symmetric_difference(Elif.keys())\n if len(yk4i) != 0:\n return False\n for H5ew in YKHO.keys():\n if type(YKHO[H5ew]) != type(Elif[H5ew]):\n return False\n PZB5 = YKHO[H5ew]\n T9Iz = Elif[H5ew]\n if isinstance(P... | [
"0.7357986",
"0.72600216",
"0.72305584",
"0.7162971",
"0.71537644",
"0.70946956",
"0.7081359",
"0.7045598",
"0.70261216",
"0.7023412",
"0.6908311",
"0.6868657",
"0.6867506",
"0.6850822",
"0.68375933",
"0.683541",
"0.6833878",
"0.6828941",
"0.67776185",
"0.67731947",
"0.673830... | 0.6638758 | 29 |
default equality method that checks if all of the saved attributes are equal | def xa14(YKHO, Elif):
for hkS8 in YKHO._attrs_to_save:
try:
if getattr(YKHO, hkS8) != getattr(Elif, hkS8):
return False
except AttributeError:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return all((getattr(YKHO, hkS8, None) == getattr(Elif, hkS8, None) for hkS8 in YKHO.attrs))",
"def WunZ(YKHO):\n dQTi = YKHO.Test({'id': 2, 'name': 'Poop Head'})\n wY1Q = YKHO.Test({'id': 2, 'name': 'Poop Head'})\n YKHO.assertEqual(dQTi, wY1Q)",
"def xa14(YKHO, Elif):\n r... | [
"0.7648471",
"0.7374077",
"0.73199904",
"0.7270609",
"0.72359306",
"0.72087514",
"0.717317",
"0.71673864",
"0.71179193",
"0.71100724",
"0.70793015",
"0.7078396",
"0.7043264",
"0.7016385",
"0.6985569",
"0.6981357",
"0.6950724",
"0.6945876",
"0.6945275",
"0.6941493",
"0.6941493... | 0.81146955 | 0 |
creates an instance of this class populated by the contents of the json compatible dict the object is created with __new__ before setting the attributes | def pQM9(Emd4, Op6c):
YEnM = Emd4.__new__(Emd4)
for hkS8, cM24 in Emd4._attrs_to_save.items():
setattr(YEnM, hkS8, cM24.to_python(Op6c[hkS8]))
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uROc(Emd4, **B2fa):\n return Emd4(**B2fa)",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO, YGFP, w2IS):\n YKHO._values = YGFP\n YKHO._endpoint = w2IS",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx... | [
"0.80707294",
"0.7650491",
"0.7650491",
"0.7514158",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.734011",
"0.... | 0.7522148 | 3 |
factory function that creates an arbitrary JsonSaveable object from a jsoncompatible dict. | def Aqrg(dQRL):
n0X3 = dQRL['__obj_type']
YEnM = n6_T.ALL_SAVEABLES[n0X3].from_json_dict(dQRL)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQM9(Emd4, Op6c):\n YEnM = Emd4.__new__(Emd4)\n for hkS8, cM24 in Emd4._attrs_to_save.items():\n setattr(YEnM, hkS8, cM24.to_python(Op6c[hkS8]))\n return YEnM",
"def jG8h(Emd4, YEnM):\n raise NotImplementedError",
"def lYpi(qQXR):\n raise NotImplementedError('Returns instance')",
"d... | [
"0.78258455",
"0.6662084",
"0.66089404",
"0.6352645",
"0.6333177",
"0.63276803",
"0.6321228",
"0.62884074",
"0.62820095",
"0.6280435",
"0.626635",
"0.620492",
"0.61964595",
"0.61784995",
"0.6102055",
"0.6089292",
"0.6079874",
"0.6075353",
"0.60666823",
"0.60666823",
"0.606668... | 0.79242706 | 0 |
Factory function that recreates a JsonSaveable object from a json string or file | def pktP(_ugn):
if isinstance(_ugn, (str, GkAb)):
return Aqrg(qQXR.loads(_ugn))
else:
return Aqrg(qQXR.load(_ugn)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, VqRE):\n import os\n if os.path.isfile(VqRE) == False:\n FBcw = Emd4()\n FBcw.to_json(VqRE)\n print('New Json Created: Type=', FBcw.data['type'])\n return FBcw\n with open(VqRE, 'r') as ytgA:\n nPrm = qQXR.load(ytgA)\n print('Json Loaded: Type=', nPrm['... | [
"0.69445276",
"0.66135836",
"0.65723944",
"0.6508084",
"0.64000374",
"0.6388198",
"0.6240328",
"0.6237702",
"0.62323046",
"0.62283117",
"0.6221963",
"0.621985",
"0.62079245",
"0.6188826",
"0.6187869",
"0.61836946",
"0.61450255",
"0.6126107",
"0.6120357",
"0.6112698",
"0.61107... | 0.65494806 | 3 |
Set mass flow and pressure drop to zero if the heat balance is negative. | def CWzw(r8hN, vexM, TifC):
for ITS7 in range(8760):
if vexM[ITS7] <= 0:
r8hN[ITS7] = 0
TifC[ITS7] = 0
return (r8hN, TifC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MxBd(YKHO):\n YKHO.set_operation_mode(SO0O)",
"def ZbYE(YKHO):\n YKHO.cm = oyIN.array([0, 0, 0])\n YKHO.m = 0\n YKHO.iT = oyIN.identity([3, 3])",
"async def async_turn_aux_heat_off(YKHO) -> None:\n await YKHO._set_aux_heat(False)",
"def Ioyb(YKHO):\n YKHO.exh.mdot_exp = YKHO.exh.flow_ar... | [
"0.6076105",
"0.5823363",
"0.57231724",
"0.5628678",
"0.5476825",
"0.5470909",
"0.5470527",
"0.53888476",
"0.5366528",
"0.5353049",
"0.5353005",
"0.5347691",
"0.53414404",
"0.5338863",
"0.5338863",
"0.53350526",
"0.53313553",
"0.53090703",
"0.52976644",
"0.52874917",
"0.52667... | 0.0 | -1 |
Collects information about the current environment and creates a new `BenchmarkMetadata` with it. | def eLpg(H0dE: str) -> 'BenchmarkMetadata':
H0dE = H0dE
E0cB = HwRy.argv
HBP2 = GkAb(E0cB[0]).stem
CBIr = AOO4.getuser()
ayrW = nP33()
E3oo = X2x9()
yQUs = wkGJ()
jwQG = ZylS.__version__
lNy3 = oyIN.__version__
KJSa = O0k5.virtual_memory().total
Affm, YmkY, JsLN = MbJD()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2hs(BMV6):\n yIVm = {'use_tpu': bool(BMV6.tpus), 'data_dir': BMV6.data_dir, 'model_dir': BMV6.model_dir, 'train_steps': BMV6.train_steps, 'eval_steps': BMV6.eval_steps, 'commit': tGjV.GetCommit(BMV6.vms[0]), 'iterations': BMV6.iterations, 'num_train_images': BMV6.num_train_images, 'num_eval_images': BMV6.n... | [
"0.63644177",
"0.62700367",
"0.6192663",
"0.59702843",
"0.59066504",
"0.5599776",
"0.5581139",
"0.5349809",
"0.5332134",
"0.5316265",
"0.5269379",
"0.5268498",
"0.5257831",
"0.52022696",
"0.51699764",
"0.51545966",
"0.51422364",
"0.5114252",
"0.5107405",
"0.5075036",
"0.50673... | 0.7099767 | 0 |
Test API cannot post the menu by a regular user (POST request). | def tp6c(YKHO):
Ylbp = YKHO.login_user()
NT__ = qQXR.loads(Ylbp.data.decode())['access_token']
geh0 = YKHO.client().post('/api/v2/menu/1', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.meal_data), content_type='application/json')
Aofo = qQXR.loads(geh0.data)
YKHO.assertEqual(Aofo['message']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _L7Z(YKHO):\n bD7m = gxEw('post-list')\n ZmQk = gxEw('user-detail', kwargs={'pk': YKHO.superuser.id})\n leAC = 'Test Title'\n TBsA = 'Test Body'\n geh0 = YKHO.client.post(bD7m, {'title': leAC, 'body': TBsA, 'user': ZmQk}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBI... | [
"0.7284266",
"0.6974583",
"0.69628066",
"0.69342715",
"0.69314605",
"0.69065505",
"0.6871267",
"0.68007195",
"0.67025477",
"0.6697823",
"0.6691671",
"0.66282713",
"0.6606737",
"0.65967745",
"0.6586416",
"0.65827394",
"0.6573329",
"0.65536433",
"0.6542431",
"0.6539563",
"0.653... | 0.77602476 | 0 |
Return whether the argument lyst is in nondecreasing order. | def uwwi(bzUU):
for YRbF in range(1, len(bzUU)):
if bzUU[YRbF] < bzUU[YRbF - 1]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAdc(WKvO):\n return oLG2.all(oLG2.diff(WKvO) >= 0)",
"def UaAq(jzdc):\n for YRbF in range(len(jzdc) - 1):\n if jzdc[YRbF] > jzdc[YRbF + 1]:\n return False\n return True",
"def UaAq(jzdc):\n for YRbF in range(len(jzdc) - 1):\n if jzdc[YRbF] > jzdc[YRbF + 1]:\n ... | [
"0.71008873",
"0.70913",
"0.7075413",
"0.7016619",
"0.6758934",
"0.6577197",
"0.6557398",
"0.6530358",
"0.6507176",
"0.6455119",
"0.6392722",
"0.63779473",
"0.63386",
"0.6306364",
"0.61892086",
"0.6136342",
"0.6122633",
"0.607214",
"0.60716456",
"0.6036293",
"0.60209435",
"... | 0.6882985 | 4 |
Return the op reduction root directory which is a subdirectory of `build_dir`. | def PFE1(SfyY: Path):
return GkAb(SfyY, IzA5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmfe(YKHO):\n return YKHO.c.build_dir.join(YKHO.c.build_config_fs)",
"def KKuB(YKHO) -> h8nf[str]:\n return YKHO.configuration.build_directory",
"def D0Qi(cYu8):\n return Hy7s.path.split(mfrE(['--packagelist'], True, cYu8)[0])[0]",
"def z_2a(FnoP: Path, SfyY: Path, PdLT: Path):\n return PFE1(... | [
"0.7252696",
"0.68412584",
"0.6808593",
"0.66555095",
"0.6575185",
"0.65254927",
"0.65154254",
"0.6469604",
"0.6457611",
"0.644798",
"0.642649",
"0.6426296",
"0.64116573",
"0.63883084",
"0.6382274",
"0.63343316",
"0.6293184",
"0.62905604",
"0.6248518",
"0.62445927",
"0.624459... | 0.85088044 | 0 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73499966",
"0.7173421",
"0.7126833",
"0.65602446",
"0.64204013",
"0.64052176",
"0.63422555",
"0.6290186",
"0.6282746",
"0.625262",
"0.62499267",
"0.6233708",
"0.62225735",
"0.62225735",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.620560... | 0.62466323 | 15 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5989807",
"0.5927489",
"0.5922901",
"0.5920675",
"0.59200704",
"0.59155166",
"0.59155166",
"0.59155166",
"0.59155... | 0.5994604 | 17 |
Gets a collection of `InputExample`s for the test set. | def syTc(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UXqs = LihS[1]\n _73Q.append(xeAK(guid=Artt, text=l5Ny, label=UXqs))\n return _73Q",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def G_y_(YKHO, h_x... | [
"0.6849201",
"0.68117833",
"0.6449045",
"0.64120954",
"0.6390244",
"0.6380512",
"0.63573486",
"0.631445",
"0.63001204",
"0.6285433",
"0.62853587",
"0.62804675",
"0.6272988",
"0.626253",
"0.6261441",
"0.62613",
"0.6256415",
"0.62528956",
"0.62511957",
"0.62481475",
"0.62390435... | 0.0 | -1 |
Reads a json file for tasks in sentiment analysis. | def CQ2n(Emd4, eZ_W):
with open(eZ_W) as eHNT:
return qQXR.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUFi():\n nPrm = []\n try:\n with open(Hy7s.path.dirname(xAKo) + '/../tweet_input/tweets.txt') as eHNT:\n for zFiD in eHNT:\n IUlj = qQXR.loads(''.join(zFiD))\n nPrm.append(IUlj)\n return nPrm\n except:\n print('File not found')\n re... | [
"0.65445757",
"0.6503671",
"0.6331834",
"0.61480767",
"0.61231667",
"0.609587",
"0.6082202",
"0.603356",
"0.59773785",
"0.5883814",
"0.5838767",
"0.5820376",
"0.5787014",
"0.5786265",
"0.5735494",
"0.5723909",
"0.57066137",
"0.5660704",
"0.5639974",
"0.55948913",
"0.55443263"... | 0.56211346 | 20 |
function to initialize weight. The weights initialized by xavier_init should have 2/(fan_in+fan_out) as it's variance | def xyz5(IddF, XNhq, si3H=1):
gqRb = -si3H * oyIN.sqrt(6.0 / (IddF + XNhq))
ODP9 = si3H * oyIN.sqrt(6.0 / (IddF + XNhq))
return ZylS.random_uniform((IddF, XNhq), minval=gqRb, maxval=ODP9, dtype=ZylS.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n xyz5(YKHO.output_proj, distribution='uniform', bias=0.0)",
"def dGkD(YKHO):\n U78l.init.xavier_normal_(YKHO.out.weight)",
"def xBDt(YKHO):\n bnkX = (2 / (YKHO.num_input + YKHO.num_output)) ** 0.5\n if 'relu' == YKHO.act_function:\n pkvj = bnkX * 2 ** 0.5\n elif 'sigmoid'... | [
"0.8545656",
"0.8004582",
"0.76515335",
"0.76364887",
"0.7509605",
"0.7394737",
"0.7394737",
"0.7355793",
"0.73297745",
"0.7298216",
"0.7243964",
"0.7231625",
"0.72174966",
"0.72068506",
"0.7176914",
"0.71471995",
"0.7146275",
"0.7128672",
"0.7126944",
"0.7124045",
"0.7123507... | 0.69904286 | 32 |
Removing stop words Synsets english words into sets of synonyms Tokenization is breaking the sentence into words and punctuation. | def Rl4F(zTtY):
di0c = Dhdw.corpus.stopwords.words('english')
cAQz = []
for _dZy in zTtY:
for GIN8 in _dZy.split():
kuGo = GFnk()
GIN8 = kuGo.lemmatize(GIN8.lower())
if WnSJ.synsets(GIN8) and GIN8 not in di0c and (len(GIN8) > 2):
cAQz.append(GIN8)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VAp3(yAmx: str, hwHU: Collection[str]) -> str:\n return ' '.join([yzQ0 for yzQ0 in dFss(yAmx) if yzQ0 not in hwHU])",
"def aUcs(EflE):\n _dZy = EflE.lower().strip()\n di0c = enx3(Xtpv)\n s2mk = b0j5.tokenize(_dZy)\n L4GR = [GIN8 for GIN8 in s2mk if GIN8 not in di0c]\n vIwR = ' '.join((GIN8 ... | [
"0.7184773",
"0.71743345",
"0.7136949",
"0.70418584",
"0.7012902",
"0.7000172",
"0.6973088",
"0.69280106",
"0.69265443",
"0.6865417",
"0.6839775",
"0.68321383",
"0.6823569",
"0.6816358",
"0.67053634",
"0.66897154",
"0.6675423",
"0.6669013",
"0.6662516",
"0.6647865",
"0.664643... | 0.0 | -1 |
Returns the score for the board based on the pieces of the two players. White pieces are worth positive points and black pieces are worth negative points. Checkmate and stalemate are worth a constant value. | def s8HX(YKHO, iBIi, Vrh3, t2Oc, JmFt):
p1kx = 0
if Vrh3:
return YKHO.WHITE_CHECKMATE
if t2Oc:
return YKHO.BLACK_CHECKMATE
if JmFt:
return YKHO.STALEMATE
for mrj1 in iBIi.white_pieces + iBIi.black_pieces:
p1kx += mrj1.get_value()
return p1kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xdA4(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return -epAf.inf\n if BH3N.is_winner(oyg0):\n return epAf.inf\n TVTK = BH3N.width / 2\n H2v2 = BH3N.height / 2\n xzj7 = BH3N.get_opponent(oyg0)\n FyVl, mt5x = BH3N.get_player_location(xzj7)\n hJ6s = (TVTK - float(mt5x)) ** 2\n ... | [
"0.7116177",
"0.70798063",
"0.7035624",
"0.6945842",
"0.6938992",
"0.69386923",
"0.69379556",
"0.69210756",
"0.69152623",
"0.6881724",
"0.68747544",
"0.6826493",
"0.67944044",
"0.6788806",
"0.67313457",
"0.6697762",
"0.6696495",
"0.66962236",
"0.6665189",
"0.66271377",
"0.658... | 0.7253927 | 0 |
Generate anchor (reference) windows by enumerating aspect ratios X sizes wrt a reference (stride 1) window. | def j672(_0fC, maxY):
DNwW = oyIN.array([0, _0fC], dtype=oyIN.float)
qvIa = _Y91(DNwW, maxY)
return ht2j.from_numpy(qvIa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QCoC(_0fC=16, maxY=(32, 64, 128, 256, 512), i_sL=(0.5, 1, 2)):\n return j672(_0fC, oyIN.array(maxY, dtype=oyIN.float) / _0fC, oyIN.array(i_sL, dtype=oyIN.float))",
"def QCoC(YKHO):\n YKHO.anchors = oyIN.zeros((YKHO.anchor_num, 4), dtype=oyIN.float32)\n zNig = YKHO.stride * YKHO.stride\n UHFx = 0\... | [
"0.6608679",
"0.6424068",
"0.62622625",
"0.6191001",
"0.6141703",
"0.600115",
"0.5998773",
"0.5990838",
"0.59845877",
"0.5982844",
"0.59516937",
"0.5866746",
"0.5819845",
"0.58065146",
"0.58065146",
"0.57970005",
"0.5776249",
"0.574043",
"0.57301915",
"0.56856835",
"0.5567426... | 0.60744005 | 5 |
Constructor of the FileTreeCtrl. | def FIMM(YKHO, _AKB, mWFP=lnPd.PanelNameStr):
super(OmB3, YKHO).__init__(_AKB, mWFP)
YKHO._model = G34t()
YKHO.AssociateModel(YKHO._model)
YKHO._model.DecRef()
for YRbF in range(YKHO._model.GetColumnCount()):
fvDH = N8O1._create_column(YKHO._model, YRbF)
if YRbF == YKHO._model.GetExp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AJY6(YKHO):\n pmON = wDYU.QDir.currentPath()\n YKHO.model = x5x0.QFileSystemModel()\n YKHO.model.setRootPath(pmON)\n YKHO.model.setNameFilterDisables(False)\n YKHO.tree = x5x0.QTreeView()\n YKHO.tree.setModel(YKHO.model)\n YKHO.tree.setRootIndex(YKHO.model.index(pmON))\n YKHO.tree.setAn... | [
"0.7682549",
"0.72655356",
"0.693589",
"0.6454574",
"0.64237654",
"0.63540375",
"0.63313216",
"0.63232327",
"0.63232327",
"0.6321612",
"0.63037163",
"0.63037163",
"0.6265242",
"0.6251252",
"0.6251252",
"0.6250256",
"0.623478",
"0.6225447",
"0.62064266",
"0.6184077",
"0.614373... | 0.78433406 | 0 |
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.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.0 | -1 |
Joining list of list with space separator | def Cx0E(yv6U):
PVOR = [list(map(int, mAB6)) for mAB6 in yv6U]
hkWs = [','.join(map(str, mAB6)) for mAB6 in PVOR]
PYZn = ' '.join(hkWs)
return PYZn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irIg(DMbc):\n return ' '.join(DMbc)",
"def JbwW(DumB: Iterable[str]) -> str:\n return lcpj.join(DumB)",
"def gzes(VWe_, fUYa):\n return str(VWe_).join(fUYa)",
"def _rV6(yv6U, VWe_):\n tO9_ = ''\n for YRbF in yv6U:\n if isinstance(YRbF, tuple) or isinstance(YRbF, list):\n ... | [
"0.8244581",
"0.8045867",
"0.75583977",
"0.7411882",
"0.73671335",
"0.7302663",
"0.7274353",
"0.7207168",
"0.7207168",
"0.7207168",
"0.7207168",
"0.71913916",
"0.7147679",
"0.71076375",
"0.7079727",
"0.7078891",
"0.70673424",
"0.7023668",
"0.70139235",
"0.69604486",
"0.695833... | 0.73451626 | 5 |
Close connection to the target. | def DDI8(YKHO):
YKHO._fuzz_data_logger.log_info('Closing target connection...')
YKHO._target_connection.close()
YKHO._fuzz_data_logger.log_info('Connection closed.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OLKy(YKHO, ziMv):\n YKHO.__client.close()\n ziMv.close()\n G9jH.info('Client <> Target closed')",
"def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')",
"def DDI8(YKHO):\n YKHO.connection.close()\n print('Connection on port ' + str(YKHO.port) + ' closed.')",
"... | [
"0.7807088",
"0.76912695",
"0.7663574",
"0.7493893",
"0.74566114",
"0.74423784",
"0.74423784",
"0.744026",
"0.74156606",
"0.738696",
"0.7376113",
"0.7364263",
"0.7361066",
"0.7350804",
"0.7342525",
"0.7318986",
"0.73095423",
"0.73095423",
"0.73095423",
"0.73095423",
"0.730954... | 0.8117213 | 0 |
Number of total mutations in the graph. The logic of this routine is identical to that of fuzz(). See fuzz() for inline comments. The member variable self.total_num_mutations is updated appropriately by this routine. | def K33b(YKHO, Rard=None, pmON=()):
if Rard is None:
Rard = YKHO.root
YKHO.total_num_mutations = 0
if isinstance(pmON, tuple):
pmON = list(pmON)
for D70y in YKHO.edges_from(Rard.id):
zAcD = YKHO.nodes[D70y.dst]
YKHO.total_num_mutations += zAcD.num_mutations()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K33b(YKHO):\n return sum((len(qpDA.mutations) for qpDA in YKHO.sites()))",
"def K33b(YKHO):\n return len(YKHO.fuzz_library)",
"def IYPf(YKHO):\n YKHO.total_mutant_index = 0\n YKHO.total_num_mutations = YKHO.num_mutations()\n YKHO._main_fuzz_loop(YKHO._iterate_protocol())",
"def LvlL(YKHO) ... | [
"0.7557352",
"0.7530203",
"0.65087146",
"0.64787376",
"0.6133735",
"0.6033649",
"0.59475315",
"0.5936507",
"0.5752328",
"0.57289994",
"0.57289994",
"0.5667567",
"0.56216055",
"0.56193405",
"0.55978876",
"0.55697644",
"0.5561469",
"0.5527241",
"0.55178183",
"0.55159503",
"0.54... | 0.68025446 | 2 |
returning all elements names from ``EvidenceVariableCategory`` according specification, with preserving original sequence order. | def KJwG(Emd4):
return ['id', 'extension', 'modifierExtension', 'name', 'valueCodeableConcept', 'valueQuantity', 'valueRange'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSGb(YKHO):\n return [WKvO['variable'] for WKvO in YKHO.variable_dicts()]",
"def gIlb(YKHO):\n return [SRYB[1] for SRYB in YKHO.variables]",
"def NKXI(YKHO):\n return [b''.join(WFmf).strip().decode() for WFmf in YKHO._f.variables['name_elem_var'][:]]",
"def gIlb(YKHO):\n return [Pd6p(KCHu) fo... | [
"0.6751923",
"0.64514303",
"0.6289793",
"0.62864155",
"0.6256326",
"0.6120118",
"0.61115116",
"0.5924779",
"0.58667034",
"0.5842922",
"0.5826737",
"0.57772017",
"0.5671861",
"0.5632851",
"0.56302226",
"0.5627173",
"0.5616691",
"0.55790293",
"0.55654716",
"0.55540085",
"0.5506... | 0.0 | -1 |
Use a contextmanager in a test setUp that persists until teardown. | def YgFy(X80K, Bcwd):
wEf2 = Bcwd.__enter__()
X80K.addCleanup(Bcwd.__exit__, None, None, None)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(XHfC, YKHO).setUp()\n YKHO.manager = None",
"def kcgO():\n OaeV = SCWY.app_context()\n OaeV.push()\n yield\n OaeV.pop()",
"def FCbF(YKHO) -> None:\n YKHO.manager = atqz()",
"def Fo6o():\n if Hy7s.path.isdir(Vwfs):\n RDuA.rmtree(Vwfs)\n yield\n if H... | [
"0.7319921",
"0.7249502",
"0.7123806",
"0.6686967",
"0.6686967",
"0.6657548",
"0.66480863",
"0.66480863",
"0.66473985",
"0.6628427",
"0.6570192",
"0.6542804",
"0.65339327",
"0.64785016",
"0.63933253",
"0.6393187",
"0.6384208",
"0.6384208",
"0.63714457",
"0.6360595",
"0.632887... | 0.81593835 | 0 |
Converts strings that look like lists into actual lists of ints and saves a pickle of the repaired dataframe. | def XThp(ztRo: int, O38l: str, n80H: str):
LT3h = {fvDH: lambda WKvO: [int(LVAh) for LVAh in WKvO.strip('[]').split(', ')] for fvDH in ['input_ids', 'attention_mask', 'token_type_ids', 'masked_lm_labels', 'ent_masked_lm_labels']}
LT3h['next_sentence_labels'] = lambda WKvO: int(WKvO)
eHxA = []
for yOAJ i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGny(yv6U):\n viQ0 = []\n for U6D_ in yv6U:\n viQ0.append(i5mX(U6D_))\n return viQ0",
"def c7OX(YKHO, vIwR):\n try:\n Qj8D = HyPc(vIwR)\n if isinstance(Qj8D, tuple):\n Qj8D = list(Qj8D)\n elif not isinstance(Qj8D, list):\n raise SyntaxError\n ... | [
"0.61151195",
"0.59839565",
"0.5974332",
"0.58210355",
"0.5757274",
"0.57556516",
"0.55773574",
"0.55509937",
"0.5486864",
"0.5476954",
"0.5440533",
"0.53923553",
"0.536124",
"0.5351893",
"0.5322014",
"0.53092617",
"0.52864146",
"0.5284569",
"0.52823085",
"0.52330726",
"0.521... | 0.0 | -1 |
Sets the entrez_gene_id of this DependencyValue. | def NuiG(YKHO, NuiG: int):
YKHO._entrez_gene_id = NuiG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NuiG(YKHO) -> int:\n return YKHO._entrez_gene_id",
"def W2tI(YKHO, *qIxc):\n return _VfD.GeneProductRef_setId(YKHO, *qIxc)",
"def z7p3(YKHO, BWXx: Union[str, int, Geneset, List[str]]):\n if YKHO._geneset is not None:\n raise ValueError('It is not allowed to change geneset value.')\n if B... | [
"0.67873615",
"0.61403245",
"0.611064",
"0.6075367",
"0.6057369",
"0.6039984",
"0.59940135",
"0.5907952",
"0.58979064",
"0.5892573",
"0.58249176",
"0.5787447",
"0.57865304",
"0.56604666",
"0.56604666",
"0.55464584",
"0.55387324",
"0.55053866",
"0.54871595",
"0.54668796",
"0.5... | 0.8379158 | 0 |
Gets the depmap_id of this DependencyValue. | def yRef(YKHO) -> str:
return YKHO._depmap_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRef(YKHO, yRef: str):\n YKHO._depmap_id = yRef",
"def VQif(YKHO, bpnQ):\n return YKHO.map_to_id_dict[tuple(bpnQ)]",
"def N9xG(YKHO) -> h8nf[qe4Y.Input['ConfigMapKeySelectorArgs']]:\n return qe4Y.get(YKHO, 'config_map_key_ref')",
"def JqtQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'r... | [
"0.6746631",
"0.6344805",
"0.6061256",
"0.6057096",
"0.6054216",
"0.60033745",
"0.59501535",
"0.5949619",
"0.5876926",
"0.5874605",
"0.58658916",
"0.5856508",
"0.58435076",
"0.58355504",
"0.5834262",
"0.58219707",
"0.58077824",
"0.57847595",
"0.57827413",
"0.57396287",
"0.573... | 0.85968 | 0 |
Gets the value of this DependencyValue. | def BWXx(YKHO) -> float:
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO.value",
"d... | [
"0.8195019",
"0.81398314",
"0.81398314",
"0.81398314",
"0.80909437",
"0.80909437",
"0.8063737",
"0.8063737",
"0.8063737",
"0.8051154",
"0.8022494",
"0.80180967",
"0.8005264",
"0.79721385",
"0.79348075",
"0.787489",
"0.7847749",
"0.7832519",
"0.7832519",
"0.7832519",
"0.779700... | 0.7164395 | 83 |
Sets the value of this DependencyValue. | def BWXx(YKHO, BWXx: float):
YKHO._value = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx",
"def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx",
"def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx",
"def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx\n return YKHO",
"def j6Nn(YKHO, wEf2):\n YKHO._value = wEf2",
"def j6Nn(YKHO, wEf2):\n YKHO._value = wEf2",... | [
"0.80339533",
"0.80339533",
"0.80339533",
"0.7945059",
"0.790969",
"0.790969",
"0.7848599",
"0.77426815",
"0.7470272",
"0.7470272",
"0.7470272",
"0.7470272",
"0.7470272",
"0.7470272",
"0.74376965",
"0.73716277",
"0.7341762",
"0.7266695",
"0.7243642",
"0.7228463",
"0.7228463",... | 0.7112056 | 31 |
Get the value of an option as a BitArray. | def mn8h(FGW3, BWXx, u54L):
if u54L == 0:
return llJG()
mWFP, fX1C, npMr, WmM4 = KSo6.options[FGW3]
if fX1C == KSo6.INTEGER:
return llJG(uint=BWXx, length=u54L * 8)
else:
return llJG(bytes=BWXx, length=u54L * 8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOxh(YKHO, BWXx):\n if BWXx is None:\n return BWXx\n BWXx = super(fqlU, YKHO).to_python(BWXx)\n return hheI(YKHO.options.flags, BWXx)",
"def llJG(YKHO):\n from bitstring import llJG, BitStream\n Fg_i = llJG(bin=str(YKHO))\n return Fg_i",
"def S3pE(YKHO, YRbF):\n return YKHO.bool... | [
"0.66437566",
"0.6402383",
"0.58543867",
"0.58016294",
"0.56171936",
"0.5560527",
"0.5466358",
"0.5439997",
"0.54380333",
"0.5354907",
"0.5350621",
"0.5345034",
"0.5332084",
"0.5310892",
"0.52912754",
"0.52743125",
"0.52704674",
"0.52638006",
"0.5239625",
"0.52252233",
"0.521... | 0.61483306 | 2 |
create the flask application | def LUif(Zu8l):
P4t4 = L2w0(__name__)
P4t4.register_blueprint(hQHm, url_prefix='/api/v1/')
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta', static_url_path='/static', static_folder='./static', template_folder='./views')\n GPtr.flask.SECRET_KEY = Hy7s.urandom(32)\n GPtr.flask.SERVER_NAME = None\n P4t4.config.from_mapping(GPtr.flask)\n return P4t4",
... | [
"0.83375126",
"0.82552433",
"0.82456756",
"0.8193555",
"0.8122414",
"0.8114295",
"0.8094171",
"0.80241644",
"0.8019721",
"0.799822",
"0.79981095",
"0.7996134",
"0.7979546",
"0.79776955",
"0.7973924",
"0.7960496",
"0.7957157",
"0.7949987",
"0.7945488",
"0.79383224",
"0.7930132... | 0.0 | -1 |
Provides the list of layer identifiers contained in the sample image configuration. | def ZfoX() -> x1iM:
return ['sha256:94b2db70f7476c98f4c4a1b7a922136e0c5600d2d74905407ad364dcca2bf852', 'sha256:22426f366c51f26105aa9a6c6c9aea9fff0f21b7aabfc97870727577edaa3260'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQJr(YKHO):\n return YKHO._fileSystem.getLayerNames()",
"def VDNa(YKHO):\n tIHR = {}\n for exwG, bGrB in YKHO.named_parameters():\n tIHR[exwG] = 0\n return tIHR",
"def fKMN(YKHO):\n return YKHO._layer_names",
"def VDNa(YKHO, q7II=True):\n fhcK = YKHO.net.blobs.keys()\n if not ... | [
"0.7185288",
"0.7090247",
"0.706421",
"0.70301783",
"0.67912436",
"0.6676521",
"0.6649249",
"0.66144145",
"0.63985777",
"0.6390437",
"0.62542367",
"0.62128335",
"0.610846",
"0.6103511",
"0.60818756",
"0.60330904",
"0.6018722",
"0.601814",
"0.6014871",
"0.60119367",
"0.6008937... | 0.69504356 | 4 |
Provides the PGP signature value used in the signed sample image configuration. | def aadv(QePW) -> str:
return iD49(QePW, __name__, 'signature', 'r') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def g8Rj(Ol8d):\n wEsz = MimH.sign(Ol8d, default_key=OZ65, passphrase=G32E)\n if wEsz and wEsz.data:\n return wEsz.data",
"def Vvia(YKHO):\n l5Ny = YK... | [
"0.6443978",
"0.6443978",
"0.6443978",
"0.6300194",
"0.6258484",
"0.6235686",
"0.6178694",
"0.6102699",
"0.6028254",
"0.5952987",
"0.5952987",
"0.58946794",
"0.58919924",
"0.5889862",
"0.58475566",
"0.5840651",
"0.5829108",
"0.5828446",
"0.58258265",
"0.579163",
"0.57731014",... | 0.5845877 | 15 |
The front page (i.e. the first one the user sees when opening the plugin) | def d6pt():
JBbi.add_dir(u'RÚV', 'view_category', '1')
JBbi.add_dir(u'RÚV Íþróttir', 'view_category', '10')
JBbi.add_dir(u'RÁS 1', 'view_category', '2')
JBbi.add_dir(u'RÁS 2', 'view_category', '3')
JBbi.add_dir(u'Rondó', 'view_category', 'rondo')
JBbi.add_dir(u'Krakkasarpurinn', 'view_category',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def first_page(YKHO):\n await YKHO.show_page(1)",
"def snQx(YKHO):\n return YKHO.home_url",
"def vja_(YKHO) -> str:\n return YKHO._home_page",
"def vja_(tZfv):\n return tZfv.root_page",
"def IC8O():\n return TvZl('blank-slate.html')",
"def PJpd(YKHO):\n return YKHO.home",
"def o... | [
"0.6813221",
"0.67775565",
"0.67364997",
"0.6708867",
"0.6567549",
"0.6503041",
"0.64002484",
"0.6398863",
"0.6365566",
"0.6355184",
"0.6355184",
"0.6353884",
"0.6346947",
"0.6331552",
"0.63211",
"0.630931",
"0.6298694",
"0.62859315",
"0.62776345",
"0.6243308",
"0.62384903",
... | 0.0 | -1 |
Modified version of local.getpreferredencoding() that takes into account LC_ALL, LC_CTYPE, LANG env vars on windows and falls back to UTF8. | def vuUb():
jloB = NCqB.getpreferredencoding() or 'UTF-8'
if Okq1:
jloB = 'UTF-8'
for IH1p in ['LC_ALL', 'LC_CTYPE', 'LANG']:
tZ2K = Hy7s.environ.get(IH1p, False)
if tZ2K:
RYPm = tZ2K.find('.')
if RYPm != -1:
jloB = tZ2K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vuUb() -> str:\n return NCqB.getpreferredencoding() or 'UTF-8'",
"def NeuI(KCHu):\n mktQ = NCqB.getpreferredencoding()\n try:\n try:\n return KCHu.decode(mktQ)\n except LookupError:\n mktQ = IFhf\n return KCHu.decode(mktQ)\n except UnicodeDecodeError:\n ... | [
"0.8454878",
"0.7277579",
"0.7258256",
"0.69867796",
"0.69867796",
"0.6891246",
"0.67377573",
"0.65504634",
"0.6491128",
"0.6486564",
"0.6376852",
"0.63602215",
"0.6139486",
"0.6133816",
"0.6012735",
"0.5989784",
"0.5932289",
"0.59146476",
"0.5913473",
"0.584135",
"0.58347076... | 0.826158 | 1 |
Python 2 and 3 utility method that converts an obj to a DEFAULT_ENCODING encoded string in python 2 and to unicode in python 3. | def RIiz(YEnM):
if K7Py:
if type(YEnM) in [list]:
return [RIiz(ZfUD) for ZfUD in YEnM]
elif type(YEnM) in [tuple]:
return tuple((RIiz(ZfUD) for ZfUD in YEnM))
return QMSQ(YEnM).encode(ggdP)
else:
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zX3X(YEnM):\n if HwRy.version_info.major < 3 and isinstance(YEnM, str):\n YEnM = YEnM.decode('utf-8')\n return QMSQ(YEnM)",
"def iyQ9(YEnM, tZ2K='UTF-8'):\n if isinstance(YEnM, exCv):\n if not isinstance(YEnM, QMSQ):\n YEnM = QMSQ(YEnM, tZ2K)\n return YEnM",
"def pGcm(Y... | [
"0.7644025",
"0.755192",
"0.7398103",
"0.70115936",
"0.69780326",
"0.69780326",
"0.69780326",
"0.69780326",
"0.69780326",
"0.69780326",
"0.6934066",
"0.6873156",
"0.6844388",
"0.6820616",
"0.67755437",
"0.6667062",
"0.66473895",
"0.6606481",
"0.6585242",
"0.65016085",
"0.6445... | 0.5859706 | 78 |
Write a Python program to test whether a given integer is pandigital number or not. Go to the editor From Wikipedia, In mathematics, a pandigital number is an integer that in a given base has among its significant digits each digit used in the base at least once. For example, 1223334444555556666667777777888888889999999... | def FZ4d():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POJ5(exwG):\n if isinstance(exwG, int):\n exwG = str(exwG)\n BHGE = len(exwG)\n if BHGE >= 10:\n return False\n DrfC = str(exwG)\n for YRbF in range(1, BHGE + 1):\n if str(YRbF) not in DrfC:\n return False\n return True",
"def POJ5(WKvO):\n KCHu = str(WKvO... | [
"0.76610917",
"0.7649925",
"0.73522854",
"0.703387",
"0.7001561",
"0.68951815",
"0.68575543",
"0.68211806",
"0.68155396",
"0.6787828",
"0.66553587",
"0.6649804",
"0.66427374",
"0.63987124",
"0.63979477",
"0.63703173",
"0.62281746",
"0.5998854",
"0.58998597",
"0.5842166",
"0.5... | 0.0 | -1 |
Write a Python program to check whether a given number is Oddish or Evenish. A number is called "Oddish" if the sum of all of its digits is odd, and a number is called "Evenish" if the sum of all of its digits is even. | def tBRW():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bYzE(WKvO):\n BviU = 0\n for Ko6S in str(WKvO):\n BviU += int(Ko6S)\n print(BviU)\n return 'evenish' if BviU % 2 == 0 else 'oddish'",
"def kYZq(FGW3):\n return FGW3 % 2 == 1",
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def kYZq(FGW3: int) -> bool:\n return FGW3 % 2 != 0",
"d... | [
"0.8086316",
"0.7833978",
"0.7781367",
"0.77573967",
"0.7747852",
"0.7741073",
"0.7709558",
"0.74859923",
"0.74442536",
"0.7411788",
"0.7398074",
"0.73937905",
"0.73855734",
"0.73473847",
"0.7344213",
"0.733858",
"0.7331003",
"0.7327115",
"0.7314306",
"0.72839427",
"0.726776"... | 0.0 | -1 |
Given a list of tuples of (heading_level, heading, anchor) for a given post, converts it to an htmlformatted table of contents, returned as a string. | def Wy4R(Dl4L: List[Tuple[int, str, str]]) -> str:
if len(Dl4L) > 1:
fwur = '### Table of Contents\n'
for vzO8, VDhC, mvDt in Dl4L[1:]:
if vzO8 == 1:
raise n7l8('Post title should be the only h1 heading.')
fwur += f'{(int(vzO8) - 1) * ' '}- [{VDhC}](#{mvDt})\n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkRY(m8z6: Dict[str, Union[str, list]]) -> x1iM[AzJI[int, str, str]]:\n PzDv = rKuS(m8z6['post_body'], features='html.parser')\n Dl4L = [(1, m8z6['post_title'], m8z6['slug'])]\n for YRbF, cEyu in enumerate(PzDv.find_all(['h2', 'h3', 'h4'])):\n vzO8 = cEyu.name[-1]\n VDhC = cEyu.get_text(... | [
"0.6351105",
"0.5982657",
"0.56243294",
"0.56194437",
"0.5540732",
"0.5518099",
"0.55171895",
"0.54003805",
"0.5388581",
"0.53514713",
"0.5327741",
"0.53090435",
"0.53075725",
"0.5297567",
"0.5293061",
"0.52873874",
"0.5284656",
"0.5271767",
"0.52671885",
"0.5259047",
"0.5251... | 0.6869855 | 0 |
Set the current estimated rotation. | def MLHf(YKHO, J126: Real):
YKHO.estimated_rotation = J126 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5Jd(YKHO, YylR):\n YKHO._rotation = YylR\n YKHO._reset_slot_bounds()",
"def E5Jd(YKHO, rKSe, xTkQ, H2HG):\n YKHO.cam['rotation'] = [float(rKSe), float(xTkQ), float(H2HG)]\n rKSe, H2HG, xTkQ = YKHO._zyxEulDegree2zxyEulDegree(rKSe, xTkQ, H2HG)\n HCmI = 'vset /camera/{cam_id}/rotation {pitch:.3f... | [
"0.6998121",
"0.68571615",
"0.6744387",
"0.6648271",
"0.6616824",
"0.64428943",
"0.6426726",
"0.6413668",
"0.6412472",
"0.6398895",
"0.639101",
"0.63786805",
"0.63027686",
"0.62522554",
"0.6243455",
"0.6211757",
"0.61902434",
"0.61650974",
"0.6150688",
"0.6136501",
"0.6123616... | 0.8422652 | 0 |
Sets the name of this SolidCompressibleMaterial. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, ... | [
"0.6763178",
"0.6652872",
"0.6638683",
"0.6638683",
"0.6638683",
"0.6638683",
"0.6638683",
"0.6632487",
"0.6627232",
"0.6627232",
"0.6589336",
"0.65806997",
"0.65806997",
"0.65806997",
"0.65806997",
"0.65725225",
"0.656662",
"0.6558928",
"0.6558928",
"0.6512679",
"0.65058213"... | 0.64475584 | 87 |
Sets the specie of this SolidCompressibleMaterial. | def Vvx_(YKHO, Vvx_):
YKHO._specie = Vvx_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIXn(YKHO, *qIxc):\n return EdJ_.XCAFDoc_MaterialTool_SetMaterial(YKHO, *qIxc)",
"def xbxx(YKHO, d3uL, PXXj):\n E3D9 = J8sd()\n mLGw = YKHO.material['Detector']['mt']\n if PXXj == 'PS':\n YKHO.material['Detector']['matString'] = E3D9.GetPSLiF(d3uL, mLGw)\n elif PXXj == 'PEN':\n Y... | [
"0.5999788",
"0.5831133",
"0.5685761",
"0.5541193",
"0.5527724",
"0.5476332",
"0.54588085",
"0.54423875",
"0.5405903",
"0.53493947",
"0.532255",
"0.52900195",
"0.524629",
"0.5232676",
"0.5232676",
"0.52144104",
"0.52008504",
"0.51791173",
"0.51650006",
"0.51639855",
"0.514154... | 0.65529335 | 0 |
Sets the transport of this SolidCompressibleMaterial. | def PdI0(YKHO, PdI0):
YKHO._transport = PdI0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdI0(YKHO) -> h8nf[qe4Y.Input['TransportArgs']]:\n return qe4Y.get(YKHO, 'transport')",
"def PdI0(Emd4):\n Emd4.slot_index = len(OJwC)\n OJwC.append(Emd4)\n return Emd4",
"def _gH0(YKHO, PdI0: BaseTransport) -> None:\n YKHO.transport = PdI0",
"def O_vq(YKHO, a7D2):\n if a7D2 < -1.0:\n ... | [
"0.5634682",
"0.5466358",
"0.52724445",
"0.5223493",
"0.51089907",
"0.50751287",
"0.5055767",
"0.49586788",
"0.49409735",
"0.49355987",
"0.48759288",
"0.48704803",
"0.48523515",
"0.48500386",
"0.48346213",
"0.4814758",
"0.47866875",
"0.47753513",
"0.4768678",
"0.4757164",
"0.... | 0.69955 | 0 |
Sets the electric_conductivity_type of this SolidCompressibleMaterial. | def d_u5(YKHO, d_u5):
YKHO._electric_conductivity_type = d_u5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfJp(YKHO, FGxd):\n YKHO.etype = FGxd",
"def uCW2(YKHO, uCW2):\n YKHO._cabletype = uCW2",
"def vWSD(YKHO):\n if not hasattr(YKHO, '_xtype'):\n if 'Magnetic' in YKHO.__class__.__name__:\n YKHO._xtype = 'magnetic'\n else:\n YKHO._xtype = 'electric'\n return YKH... | [
"0.5923338",
"0.5377314",
"0.5218552",
"0.489",
"0.48390242",
"0.47446054",
"0.4728454",
"0.4712814",
"0.47000897",
"0.46944737",
"0.4681175",
"0.4670484",
"0.46447814",
"0.46390542",
"0.46387002",
"0.46376756",
"0.46267024",
"0.4578256",
"0.45311698",
"0.4529894",
"0.4525669... | 0.88086885 | 0 |
Sets the built_in_material of this SolidCompressibleMaterial. | def yRUN(YKHO, yRUN):
YKHO._built_in_material = yRUN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIXn(YKHO, *qIxc):\n return EdJ_.XCAFDoc_MaterialTool_SetMaterial(YKHO, *qIxc)",
"def InG3(*qIxc):\n return EdJ_.XCAFDoc_MaterialTool_Set(*qIxc)",
"def iotY(YKHO, EZps):\n YKHO.options['builtin'] = EZps",
"def fHNa(*qIxc):\n return EdJ_.XCAFDoc_MaterialTool_Set(*qIxc)",
"def xbxx(YEnM=None,... | [
"0.57587504",
"0.5411966",
"0.5395203",
"0.520338",
"0.49464485",
"0.49215788",
"0.4873002",
"0.48585403",
"0.48187518",
"0.47540066",
"0.472476",
"0.46963128",
"0.4633211",
"0.46264786",
"0.46093786",
"0.45784345",
"0.45676267",
"0.45364437",
"0.4525989",
"0.4507094",
"0.449... | 0.868811 | 0 |