query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return the maximum value for selected column | def qfB5(YKHO):
return YKHO.serie.max() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfB5(YKHO):\n bQ6z = YKHO.df[YKHO.col_name].max()\n return bQ6z",
"def max(YKHO, iVRZ):\n if not iVRZ:\n ZLJ_ = ['*']\n return YKHO.aggregate('max', *[iVRZ])",
"def q1NN(tyNF):\n return max(((Ty9i, G1Hx) for G1Hx, Ty9i in tyNF.iteritems()))[1]",
"def qfB5(YKHO):\n jQ3Z = rLdf.rea... | [
"0.86999696",
"0.75755316",
"0.72424453",
"0.71820384",
"0.70821434",
"0.70789444",
"0.69712305",
"0.6968163",
"0.6962547",
"0.69194615",
"0.691839",
"0.69182307",
"0.6917467",
"0.6809399",
"0.6797092",
"0.6791634",
"0.67898965",
"0.6787332",
"0.67746305",
"0.67244416",
"0.67... | 0.66580737 | 25 |
Create a copy of this response. | def jth9(YKHO):
return YKHO.replace() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n BdN0 = object.__new__(type(YKHO))\n BdN0.bot = YKHO.bot\n BdN0.description = YKHO.description\n BdN0.icon_hash = YKHO.icon_hash\n BdN0.icon_type = YKHO.icon_type\n BdN0.id = 0\n BdN0.name = YKHO.name\n return BdN0",
"def jth9(YKHO):\n return YKHO.__class__(dict(YKHO))... | [
"0.72103095",
"0.70746976",
"0.70337427",
"0.6971996",
"0.69687164",
"0.69687164",
"0.693731",
"0.6932586",
"0.69272363",
"0.69097924",
"0.68765146",
"0.68765146",
"0.68765146",
"0.68749887",
"0.68749887",
"0.6867643",
"0.6860679",
"0.6857296",
"0.68530816",
"0.68439436",
"0.... | 0.0 | -1 |
Create a new response with the same attributes except for the given new values | def qx_G(YKHO, *qIxc, **_Wat):
for WKvO in YKHO.ATTRS:
_Wat.setdefault(WKvO, getattr(YKHO, WKvO))
Emd4 = YKHO.__class__
return Emd4(*qIxc, **_Wat) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOdw(YKHO, geh0, MOPg={}):\n for H5ew, BWXx in MOPg.items():\n geh0[H5ew] = BWXx\n return geh0",
"def Mugh(YKHO, eJh7, geh0, tO9_=None, PrmE=()):\n YKHO.assertTrue(geh0.pop('id'))\n geh0.pop('url', None)\n geh0.pop('created_at', None)\n geh0.pop('updated_at', None)\n geh0.pop('slu... | [
"0.59592104",
"0.5786376",
"0.55267453",
"0.5525316",
"0.5525316",
"0.5521141",
"0.5408082",
"0.5345663",
"0.53388417",
"0.53214055",
"0.53059334",
"0.5265842",
"0.5258608",
"0.52476346",
"0.52308506",
"0.5227737",
"0.52063316",
"0.5199307",
"0.5185895",
"0.5166726",
"0.51568... | 0.0 | -1 |
It returns the index of x in a given array. | def jUbz(mSrU, ZfUD):
if len(mSrU) == 0:
return 'Please provide an array'
yKcO = 0
Os4s = len(mSrU) - 1
while yKcO <= Os4s:
Hpmo = (yKcO + Os4s) // 2
mxlQ = mSrU[Hpmo]
if ZfUD == mxlQ:
return Hpmo
elif ZfUD > mxlQ:
yKcO = Hpmo + 1
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(ezWE, WKvO):\n for YRbF in range(len(ezWE)):\n if ezWE[YRbF] == WKvO:\n return YRbF\n return -1",
"def d6pt(jzdc, WKvO):\n YRbF = SPuy(jzdc, WKvO)\n if YRbF != len(jzdc) and jzdc[YRbF] == WKvO:\n return YRbF\n raise ValueError",
"def KWqh(qw7D, ZfUD):\n qJWj ... | [
"0.758862",
"0.71049756",
"0.68362445",
"0.6802046",
"0.6766399",
"0.66528994",
"0.6551934",
"0.6551934",
"0.64433956",
"0.64410394",
"0.64133775",
"0.64052033",
"0.63444585",
"0.62860024",
"0.62546307",
"0.62437606",
"0.6243634",
"0.6211818",
"0.620162",
"0.6171368",
"0.6158... | 0.0 | -1 |
Specifies whether or not the LDAP traffic needs to be secured via TLS. | def pcVA(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'ldap_over_tls') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZMh(YKHO):\n vjey = getattr(YKHO.args, 'ssl_certfile', None) is not None\n ygzH = getattr(YKHO.args, 'ssl_keyfile', None) is not None\n mizK = getattr(YKHO.args, 'tls', False)\n return mizK or YKHO.is_sandbox or (vjey and ygzH)",
"def mizK(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 't... | [
"0.71720636",
"0.7160213",
"0.71125567",
"0.71125567",
"0.6993489",
"0.6993489",
"0.69114465",
"0.6852348",
"0.6851937",
"0.67897075",
"0.666929",
"0.6563684",
"0.6491896",
"0.6465868",
"0.6444953",
"0.6402861",
"0.64006335",
"0.6247577",
"0.6247577",
"0.62190706",
"0.6184712... | 0.79814816 | 0 |
Indicates which days of the month snapshot should be taken. A comma delimited string. | def Oaiy(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'days_of_month') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oaiy(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['DayArgs']]]]:\n return qe4Y.get(YKHO, 'days_of_month')",
"def DCgp(x0eS, Sm0u):\n print(x0eS + ' has ' + str(Sm0u) + ' days.')",
"def vhrV(x0eS):\n if x0eS == 'February':\n return 28\n elif x0eS == 'September' or x0eS == 'April' or x0eS == '... | [
"0.64941704",
"0.60752183",
"0.58128613",
"0.5809635",
"0.56987536",
"0.56987536",
"0.56693774",
"0.5585061",
"0.55710804",
"0.54783267",
"0.54783267",
"0.5475959",
"0.5468247",
"0.5441474",
"0.5441474",
"0.54236114",
"0.5409691",
"0.5394823",
"0.5365517",
"0.534361",
"0.5292... | 0.6488396 | 1 |
The remote region for the other end of the Volume Replication. | def xskZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'remote_volume_region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0c(YKHO):\n return YKHO.config.region",
"def zn0c(YKHO):\n if YKHO._region is None:\n LeuP = YKHO.expand_name('region')\n KwDD = gQfM.kv().get(LeuP)\n if KwDD:\n YKHO._region = KwDD\n else:\n qv1X = YKHO._imdv2_request(YKHO._az_url)\n with ... | [
"0.70517313",
"0.69883794",
"0.67892504",
"0.67385226",
"0.67385226",
"0.6677991",
"0.66246086",
"0.66246086",
"0.66246086",
"0.66246086",
"0.66246086",
"0.66246086",
"0.6491992",
"0.64507616",
"0.64507616",
"0.64507616",
"0.64507616",
"0.64507616",
"0.64507616",
"0.6448934",
... | 0.7720207 | 0 |
Creates 1D CNN model. | def biJ_() -> ZylS.keras.Sequential:
C3ST = ileL([fhcK.Convolution1D(filters=16, kernel_size=7, input_shape=[186, 1]), fhcK.LeakyReLU(), fhcK.MaxPool1D(pool_size=2), fhcK.Convolution1D(filters=16, kernel_size=5), fhcK.LeakyReLU(), fhcK.Convolution1D(filters=16, kernel_size=5), fhcK.LeakyReLU(), fhcK.Convolution1D(f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QNEA(cC56, exwG=32, Csk6=0.25, G1Hx=5):\n C3ST = ileL()\n C3ST.add(lARV(rate=Csk6, input_shape=(cC56.shape[1], 1)))\n C3ST.add(lTlC(filters=exwG, kernel_size=5, strides=1, activation='relu', kernel_constraint=wTln(4)))\n C3ST.add(lARV(rate=Csk6))\n C3ST.add(ehTc(pool_size=G1Hx))\n C3ST.add(lT... | [
"0.7623458",
"0.7489159",
"0.7484966",
"0.73371595",
"0.7267862",
"0.70591027",
"0.70563793",
"0.70501095",
"0.70030415",
"0.6912963",
"0.68892455",
"0.68868345",
"0.68751043",
"0.6830899",
"0.68181753",
"0.68173605",
"0.67555225",
"0.6740872",
"0.67303604",
"0.672566",
"0.67... | 0.8065953 | 0 |
Changes an element tuple into the format required for unpacking by stripping all items other than locator method and locator string. This should be used to interact with CORE functionality, by unpacking the output of this function. | def flpT(YKHO, U6D_):
return (U6D_[0], U6D_[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxZq(U6D_) -> list:\n try:\n return [U6D_['ExportName'], U6D_['OutputValue']]\n except:\n return [U6D_['OutputKey'], U6D_['OutputValue']]",
"def lsKn(um5V, dHZI=0):\n grQE = []\n for YRbF in range(0, len(um5V)):\n grQE.append(um5V[YRbF][dHZI])\n return grQE",
"def zl4W(W... | [
"0.5938195",
"0.5789329",
"0.577969",
"0.577969",
"0.566988",
"0.5474743",
"0.546726",
"0.5442323",
"0.5418231",
"0.5394381",
"0.5357106",
"0.5304165",
"0.5304165",
"0.529233",
"0.5287148",
"0.5284375",
"0.51935023",
"0.5167967",
"0.5156819",
"0.5086922",
"0.50808644",
"0.5... | 0.49886462 | 24 |
Uncheck a checkbox if it's not already. For checkboxes which can't be interacted with directly (hidden but toggled via JS detecting a click on a different object), provide a wrapper element in addition for the function to click instead. | def WUxM(YKHO, AnpF, *, n2OP=None):
YKHO.log_info(f'Browser.uncheck: Setting {AnpF} checkbox to unchecked')
dsHk = YKHO.CORE.find_element(*YKHO.format_element(AnpF))
if dsHk.is_selected():
if n2OP is not None:
YKHO.log_info(f'Browser.check: Wrapper element was provided, clicking {n2OP} i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxZc(YKHO):\n YKHO.util.waitForElementToBePresent(YKHO.element.my_work_checkbox)\n dsHk = YKHO.util.driver.find_element_by_xpath(YKHO.element.my_work_checkbox)\n if dsHk.is_selected():\n YKHO.util.clickOn(YKHO.element.my_work_checkbox)",
"def GfdN(YKHO, AnpF, *, n2OP=None):\n YKHO.log_info... | [
"0.66842973",
"0.6338794",
"0.6328351",
"0.6298265",
"0.6136606",
"0.61337143",
"0.58903587",
"0.58327997",
"0.5708069",
"0.5581485",
"0.5454794",
"0.54523826",
"0.541073",
"0.53601396",
"0.5353384",
"0.534173",
"0.5338449",
"0.5336849",
"0.531623",
"0.53078806",
"0.5290702",... | 0.73116904 | 0 |
Generates a ChromeDriver instance in compliance with configured settings | def kVWg(ylRN=None):
uh1m = nXHX()
uh1m.add_argument(f'--window-size={ylRN.BrowserWidth},{ylRN.BrowserHeight}')
for MTKo in ylRN.Options:
uh1m.add_argument(MTKo)
if ylRN.Headless:
uh1m.add_argument('--headless')
AViC = uh1m.to_capabilities()
YLEH = s0C1.CHROME
AViC.update(ylR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def liSX():\n return cSpz.Chrome()",
"def csb7() -> cSpz:\n m7lK = {}\n uh1m = cSpz.ChromeOptions()\n if YSZb.getInstance().get_app_setting('headless'):\n uh1m.add_argument('headless')\n if YSZb.getInstance().get_app_setting('window_size'):\n yMhW = YSZb.getInstance().get_app_setting... | [
"0.7371014",
"0.72790366",
"0.72727513",
"0.7219082",
"0.7103658",
"0.7075896",
"0.699881",
"0.6900303",
"0.68324727",
"0.68074524",
"0.6779175",
"0.6694839",
"0.6690196",
"0.66874033",
"0.6686535",
"0.6671118",
"0.6652798",
"0.6563128",
"0.6543638",
"0.6512139",
"0.6483952",... | 0.6511585 | 20 |
Sets a flag when the name is changed. | def dHqI(YKHO):
YKHO._named = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, mWFP: str):\n YKHO.dict[mWFP] = True",
"def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R",
"def zXji(YKHO, Dokz):\n YKHO.__name = Dokz",
"def zXji(YKHO, Dokz):\n YKHO.__name = Dokz",
"def Dokz(YKHO, Dokz):\n YKHO.name = Dokz",
"def NGQc(YKHO, BdN0):\n YKHO.flag = BdN0",
"def ... | [
"0.7217058",
"0.7008744",
"0.6971489",
"0.6971489",
"0.69652337",
"0.6922351",
"0.6885303",
"0.6838007",
"0.680184",
"0.6779535",
"0.67409337",
"0.67409337",
"0.67409337",
"0.67409337",
"0.6739083",
"0.6739083",
"0.67372864",
"0.67174345",
"0.67174345",
"0.66178006",
"0.65519... | 0.74930835 | 0 |
Returns a new random perfect maze with the given sizes. | def C6M2(TVTK=20, H2v2=20):
r8hN = gHhh(TVTK, H2v2)
r8hN.randomize()
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSWm(zNig):\n N06i = JBVv.generate_dot_positions(zNig.x, zNig.y)\n TxAA = JBVv.create_grid_string(N06i, zNig.x, zNig.y)\n return TxAA",
"def L2YG(zNig, iSbW=None):\n TxAA = oyIN.ones((zNig, zNig))\n sv7r = []\n\n def Vdjd(AU8u):\n for XP5J in sCyY(zNig, AU8u):\n if TxAA[XP... | [
"0.7122004",
"0.6862014",
"0.68315554",
"0.6600048",
"0.6448835",
"0.6361071",
"0.6230406",
"0.61894333",
"0.617471",
"0.61246455",
"0.61092216",
"0.60549974",
"0.60517037",
"0.6019971",
"0.59491324",
"0.5940893",
"0.591626",
"0.5805965",
"0.5799036",
"0.579472",
"0.5794508",... | 0.72316444 | 0 |
Returns a random position on the maze. | def lPP6(YKHO):
return (tuKI.randrange(0, YKHO.maze.width), tuKI.randrange(0, YKHO.maze.height)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxG1(YKHO):\n return DhiK(tuKI.random() * YKHO.w, tuKI.random() * YKHO.h)",
"def kxG1(YKHO):\n WKvO = tuKI.randint(0, YKHO.width - 1)\n LVAh = tuKI.randint(0, YKHO.height - 1)\n return DhiK(WKvO, LVAh)",
"def X8CE(YKHO):\n return (tuKI.randint(1, YKHO.max_x - 2), tuKI.randint(1, YKHO.max_y -... | [
"0.7946045",
"0.7853748",
"0.7770066",
"0.76973015",
"0.76914775",
"0.76745063",
"0.7599151",
"0.734271",
"0.73359865",
"0.7275391",
"0.72499496",
"0.7173055",
"0.7136863",
"0.71251756",
"0.71239305",
"0.71097726",
"0.7108292",
"0.7027182",
"0.7027182",
"0.69617575",
"0.69403... | 0.8542216 | 0 |
Establish a clean test environment. | def FCbF(YKHO):
super(AuzY, YKHO).setUp()
def D9ym(*HCmI, **B2fa):
pass
YKHO.config(default_store='sheepdog', group='glance_store')
nhfz = TMAJ.patch.object(Ut1L, 'execute').start()
nhfz.side_effect = D9ym
YKHO.addCleanup(nhfz.stop)
YKHO.store = gh_5.Store(YKHO.conf)
YKHO.store.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDvN():\n if not eK95:\n print('\\nCleaning up temporary directories...')\n RDuA.rmtree(qWz8, ignore_errors=True)\n RDuA.rmtree(Hgdp, ignore_errors=True)\n print('Removing conda environment used for testing...')\n H4yH.call('conda env remove -y -q -n {}'.format(qGhw), shell=True, ... | [
"0.79925764",
"0.7463707",
"0.7463707",
"0.7230146",
"0.71087873",
"0.6968578",
"0.6877131",
"0.6847525",
"0.68396896",
"0.68036956",
"0.68036956",
"0.68036956",
"0.68036956",
"0.68036956",
"0.68036956",
"0.68036956",
"0.6776391",
"0.6713096",
"0.6713096",
"0.6651407",
"0.662... | 0.0 | -1 |
Wrapper to load and return YAML data | def f9B0(oNXM):
return eJb6.safe_load(oNXM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KJ8w(YKHO) -> HRJ_.Dict[str, dict]:\n with open(YKHO._file, 'r') as wOb_:\n try:\n tyeH: HRJ_.Dict[str, dict] = eJb6.safe_load(wOb_)\n bo34.info('YAML imported')\n return tyeH\n except eJb6.YAMLError as exc:\n bo34.debug('YAML import error : %s', BQD... | [
"0.77212983",
"0.74955165",
"0.7471604",
"0.7384878",
"0.73785967",
"0.7366348",
"0.7363979",
"0.7359165",
"0.7336432",
"0.7302265",
"0.7270013",
"0.7235651",
"0.7176974",
"0.7174454",
"0.7113792",
"0.70880854",
"0.70689505",
"0.701759",
"0.70037425",
"0.7001296",
"0.69992083... | 0.6726783 | 46 |
Computes IQR bound and fits the imputer on the data. | def WgYu(YKHO, WKvO, LVAh=None):
WKvO = rLdf.DataFrame(WKvO)
hbUd = WKvO.quantile(0.25)
iv7Q = WKvO.quantile(0.75)
AUbx = iv7Q - hbUd
YKHO.lower_bound = hbUd - 1.5 * AUbx
YKHO.upper_bound = iv7Q + 1.5 * AUbx
YKHO.imputer.fit(WKvO.where(~((WKvO < YKHO.lower_bound) | (WKvO > YKHO.upper_bound))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0b6(nPrm):\n return yArv(nPrm, 75) - yArv(nPrm, 25)",
"def AUbx(YKHO, ezWE):\n jzdc = oyIN.asarray(ezWE)\n YKHO.q1 = eQSh.scoreatpercentile(jzdc, 25)\n YKHO.q2 = eQSh.scoreatpercentile(jzdc, 50)\n YKHO.q3 = eQSh.scoreatpercentile(jzdc, 75)",
"def n0b6(WKvO, aM8h=1.5):\n fUYa = oyIN.sort(... | [
"0.7170351",
"0.6358508",
"0.6163939",
"0.60618055",
"0.59064853",
"0.5845869",
"0.56856245",
"0.55740243",
"0.554194",
"0.54870594",
"0.5465165",
"0.5458175",
"0.54513913",
"0.5412058",
"0.5383834",
"0.5365061",
"0.5343856",
"0.53277075",
"0.52903855",
"0.5289847",
"0.528769... | 0.7409191 | 0 |
Retrieves trained language pipeline from within SpaCy. If not available, it is downloaded. | def zQVK(DuqQ):
if not CNQv.util.is_package(DuqQ):
Yn3K.call(f'python -m spacy download {DuqQ}', shell=True)
C3ST = CNQv.load(DuqQ)
C3ST.add_pipe('merge_entities')
C3ST.add_pipe('merge_noun_chunks')
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dM4O() -> h8nf[CNQv.language.Language]:\n return n0Tb.get()",
"def TgpQ() -> CNQv.language.Language:\n QpfX = dM4O()\n assert QpfX is not None\n return QpfX",
"def dj_Q() -> CNQv.language.Language:\n K9NE = None\n for rQow in YWgm:\n for zNig in f03k:\n try:\n ... | [
"0.7091127",
"0.70141554",
"0.6868762",
"0.62662375",
"0.62160814",
"0.61969113",
"0.61932147",
"0.6075514",
"0.602528",
"0.6020859",
"0.6005432",
"0.60026765",
"0.5977601",
"0.5968006",
"0.5952573",
"0.5910913",
"0.5900922",
"0.58935994",
"0.5858334",
"0.584124",
"0.5835949"... | 0.6313812 | 3 |
Returns a JSON response, transforming 'context' to make the payload. | def EK31(YKHO, QpfX, **TIVb):
return jnRN(YKHO.get_data(QpfX), **TIVb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))",
"def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))",
"def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **T... | [
"0.7898513",
"0.78243256",
"0.76760525",
"0.76760525",
"0.755985",
"0.750485",
"0.7381955",
"0.73643523",
"0.73468465",
"0.7346432",
"0.7307924",
"0.7131703",
"0.69398844",
"0.68930125",
"0.6721945",
"0.6629656",
"0.6629656",
"0.6629656",
"0.6629656",
"0.66246855",
"0.6609292... | 0.7410596 | 7 |
Redistributes pairs in an element. | def _Gn8(YKHO) -> None:
YKHO._pair_lines.clear()
for Ak7z in YKHO._buffer:
JPHp = False
for zFiD in YKHO._pair_lines:
kgDL = zFiD.get(Ak7z['time'].get_number())
if kgDL is not None and kgDL[0]['time'].duration() == Ak7z['time'].duration() and YKHO.is_merge(Ak7z, kgDL):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SmLw(YKHO, oZf4: int, YBiN: int):\n YKHO.__ordered_holder[oZf4], YKHO.__ordered_holder[YBiN] = (YKHO.__ordered_holder[YBiN], YKHO.__ordered_holder[oZf4])",
"def Ovux(WKvO, YRbF, r845):\n Y7fn = WKvO[YRbF]\n g_QQ = WKvO[r845]\n WKvO = WKvO.at[YRbF].set(g_QQ)\n WKvO = WKvO.at[r845].set(Y7fn)\n ... | [
"0.56897736",
"0.56060475",
"0.55970746",
"0.55315346",
"0.5510989",
"0.5479538",
"0.5444332",
"0.5420653",
"0.5405305",
"0.53519267",
"0.5335261",
"0.5334788",
"0.53205585",
"0.5312659",
"0.53043026",
"0.53043026",
"0.5296285",
"0.529294",
"0.52922386",
"0.52736247",
"0.5255... | 0.0 | -1 |
Comparator for sorting pairs. | def N3t9(nAUF: StudentPair, UYWH: StudentPair) -> bool:
if nAUF['time'].duration() == UYWH['time'].duration():
return nAUF['dates'] < UYWH['dates']
return nAUF['time'].duration() < UYWH['time'].duration() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qCGT(YKHO):\n Aofo = HBeR()\n for cntZ, CsFy in enumerate(YKHO):\n if cntZ < CsFy:\n Aofo.append((cntZ, CsFy))\n return Aofo",
"def gMQm(WKvO, LVAh):\n if WKvO[1] == LVAh[1]:\n return 1 if WKvO[0] > LVAh[0] else -1\n return eHkp(LVAh[1], WKvO[1])",
"def pvw3(YKHO):\n... | [
"0.6679795",
"0.62482387",
"0.6242709",
"0.6222325",
"0.61899817",
"0.61898816",
"0.6146837",
"0.60932255",
"0.6060789",
"0.6018594",
"0.5992988",
"0.5958325",
"0.59307265",
"0.59229374",
"0.58537763",
"0.5832714",
"0.5828197",
"0.5826512",
"0.5779967",
"0.5769997",
"0.574827... | 0.5301554 | 98 |
List of indexes with the distribution of the number of rows per day. | def bS0K(YKHO) -> list:
return YKHO._indexes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Smep(YKHO):\n oBkD = [0 for YRbF in range(7)]\n for YRbF in range(YKHO.dataset.shape[0]):\n hUoD = ITS7.localtime(oyIN.int32(YKHO.dataset[YRbF][2]))\n s6G1 = hUoD[6]\n oBkD[s6G1] += 1\n return oBkD",
"def DzXR(YKHO, __n6: BaseDataset) -> int:\n d6pt = [oyIN.random.randint(0, ... | [
"0.6799797",
"0.6322448",
"0.6319713",
"0.6258298",
"0.6250555",
"0.620788",
"0.6124279",
"0.60334873",
"0.6025376",
"0.6025376",
"0.6025376",
"0.59548146",
"0.5925233",
"0.58652484",
"0.58599883",
"0.5854881",
"0.5850198",
"0.58409804",
"0.58120227",
"0.58029526",
"0.5794318... | 0.58710945 | 13 |
Set the initial isotropic propagation direction | def YcLs(YKHO):
YKHO.mu = 2.0 * oyIN.random.rand(1)[0] - 1.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zWQZ(YKHO, EaBz=2):\n pass",
"def oivB(YKHO, dir):\n if dir == 0:\n YKHO.direction = [0, -1]\n elif dir == 1:\n YKHO.direction = [1, 0]\n elif dir == 2:\n YKHO.direction = [0, 1]\n elif dir == 3:\n YKHO.direction = [-1, 0]",
"def A0rG(YKHO):\n YKHO.direction = ... | [
"0.63499457",
"0.627857",
"0.6150965",
"0.6123944",
"0.60277706",
"0.5952499",
"0.591162",
"0.5908013",
"0.5805843",
"0.57685465",
"0.5727362",
"0.57241774",
"0.56849694",
"0.5649166",
"0.5632465",
"0.5627853",
"0.5621839",
"0.56213796",
"0.5609948",
"0.5609948",
"0.5595058",... | 0.6684342 | 0 |
Initialize position of MC packet The packet is placed uniformly within the current grid cell. | def BQGr(YKHO):
YKHO.x = YKHO.cell_xl + YKHO.cell_dx * oyIN.random.rand(1)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQGr(YKHO):\n YKHO.x = (YKHO.cell_xl ** 3 + (YKHO.cell_xr ** 3 - YKHO.cell_xl ** 3) * oyIN.random.rand(1)[0]) ** (1.0 / 3.0)",
"def PcLS(YKHO):\n YKHO['D4'] = YKHO['E5'] = 1\n YKHO['D5'] = YKHO['E4'] = -1",
"def DbxN(YKHO):\n YKHO.pos = oyIN.random.rand(YKHO.N, 7)\n for YRbF in range(3):\n ... | [
"0.71103084",
"0.7026595",
"0.66901904",
"0.6508754",
"0.6504931",
"0.64174485",
"0.63801694",
"0.6350033",
"0.6284387",
"0.6255963",
"0.62462723",
"0.614725",
"0.61292565",
"0.6105714",
"0.60866934",
"0.6068095",
"0.60315335",
"0.5918932",
"0.59148216",
"0.59146696",
"0.5912... | 0.7646355 | 0 |
Initialize position of MC packet The packet is placed uniformly within the current grid cell. Hereby, the cellvolume growth with radius is taken into account. | def BQGr(YKHO):
YKHO.x = (YKHO.cell_xl ** 3 + (YKHO.cell_xr ** 3 - YKHO.cell_xl ** 3) * oyIN.random.rand(1)[0]) ** (1.0 / 3.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQGr(YKHO):\n YKHO.x = YKHO.cell_xl + YKHO.cell_dx * oyIN.random.rand(1)[0]",
"def DbxN(YKHO):\n YKHO.pos = oyIN.random.rand(YKHO.N, 7)\n for YRbF in range(3):\n YKHO.pos[:, YRbF] *= YKHO.bounds[2 * YRbF + 1] - YKHO.bounds[2 * YRbF]\n YKHO.pos[:, YRbF] += YKHO.bounds[2 * YRbF]\n aJF... | [
"0.6914089",
"0.65769494",
"0.6276434",
"0.60204",
"0.59571284",
"0.5940393",
"0.5916409",
"0.58788735",
"0.58478135",
"0.5825908",
"0.5797013",
"0.5789238",
"0.57826674",
"0.57720035",
"0.5749402",
"0.574757",
"0.57341284",
"0.56948817",
"0.5686301",
"0.5681976",
"0.5651929"... | 0.67568654 | 1 |
Calculate H outside sphere | def lh2n(YKHO, Mkmy):
PcEy = YKHO.mu_star(Mkmy)
Ylbp = 0.5 * YKHO.S * (0.5 * (1.0 - PcEy ** 2) - gmTb(YKHO.H_integ_outside, PcEy, 1, args=(Mkmy,))[0])
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_P4(B6By):\n return sum([WKvO ** 2 for WKvO in B6By])",
"def fJDo(YKHO):\n return YKHO._hemisphere",
"def MKlR(YKHO, epBp):\n return oyIN.sqrt(YKHO.Om * (1.0 + epBp) ** 3.0 + YKHO.Ol)",
"def AYjm(JPqE, fXzF, l592, r1VO, eKGI, MEia, cOny, r28i):\n hLLw = []\n RKH5 = []\n UNs7 = []\n ... | [
"0.68637985",
"0.68291473",
"0.67570186",
"0.6647817",
"0.6618411",
"0.66053873",
"0.65707576",
"0.65644026",
"0.65445274",
"0.6529522",
"0.6416142",
"0.6411168",
"0.6407305",
"0.62939465",
"0.6290983",
"0.6278872",
"0.6259458",
"0.625756",
"0.62552714",
"0.62325835",
"0.6217... | 0.7031765 | 0 |
Calculate K inside sphere | def ebIy(YKHO, Mkmy):
return YKHO.S * (1.0 / 3.0 - gmTb(YKHO.K_integ_inside, 0, 1, args=(Mkmy,))[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(G1Hx):\n return G1Hx * G1Hx * _sei(G1Hx, Us3Y) * rmEC(0, G1Hx * Mkmy)",
"def eHNT(G1Hx):\n return G1Hx * G1Hx * G1Hx * G1Hx * _sei(G1Hx, Us3Y) * rmEC(0, G1Hx * Mkmy)",
"def eHNT(G1Hx):\n return G1Hx * G1Hx * G1Hx * _sei(G1Hx, Us3Y) * rmEC(1, G1Hx * Mkmy)",
"def eHNT(G1Hx):\n return G1Hx ... | [
"0.74059075",
"0.73933923",
"0.7363293",
"0.7322796",
"0.7118826",
"0.70805424",
"0.70268506",
"0.69763017",
"0.6933727",
"0.69305617",
"0.69282126",
"0.682265",
"0.6784595",
"0.67704767",
"0.6762743",
"0.67496175",
"0.6734776",
"0.66885114",
"0.6650141",
"0.664442",
"0.66153... | 0.72975403 | 4 |
Calculate K outside sphere | def J9Vj(YKHO, Mkmy):
PcEy = YKHO.mu_star(Mkmy)
Ylbp = 0.5 * YKHO.S * (1.0 / 3.0 * (1.0 - PcEy ** 3) - gmTb(YKHO.K_integ_outside, PcEy, 1, args=(Mkmy,))[0])
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebIy(YKHO, Mkmy):\n return YKHO.S * (1.0 / 3.0 - gmTb(YKHO.K_integ_inside, 0, 1, args=(Mkmy,))[0])",
"def eHNT(G1Hx):\n return G1Hx * G1Hx * G1Hx * G1Hx * _sei(G1Hx, Us3Y) * rmEC(0, G1Hx * Mkmy)",
"def eHNT(G1Hx):\n return G1Hx * G1Hx * _sei(G1Hx, Us3Y) * rmEC(0, G1Hx * Mkmy)",
"def eHNT(G1Hx):\... | [
"0.72005075",
"0.7171832",
"0.7163883",
"0.7124244",
"0.7121231",
"0.6890522",
"0.68780947",
"0.6828601",
"0.67781955",
"0.67012084",
"0.66986316",
"0.66532344",
"0.6574576",
"0.65655214",
"0.65253115",
"0.64910245",
"0.6480324",
"0.6438029",
"0.6431755",
"0.64193493",
"0.641... | 0.7255574 | 0 |
function to get fixed price of product. | def N_Zi(YKHO, vXX7='PRICES'):
U3Au = YKHO.get_price_data()
return U3Au.get('price') or YKHO.find_price(YKHO.get_default(vXX7)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S6MP(Lx3t):\n return i2Yg(Lx3t).price",
"def S6MP(YKHO):\n hI0L = '0.0000'\n try:\n hI0L = YKHO.trees.get_element_by_id('priceblock_ourprice').text\n except:\n try:\n hI0L = YKHO.trees.get_element_by_id('price_inside_buybox').text\n except:\n try:\n ... | [
"0.7212667",
"0.71844286",
"0.71137273",
"0.7080221",
"0.7070639",
"0.7051693",
"0.7011619",
"0.6993199",
"0.6970063",
"0.69171685",
"0.69171685",
"0.69171685",
"0.69165456",
"0.69157565",
"0.689632",
"0.68707734",
"0.68613744",
"0.6764227",
"0.6761955",
"0.671586",
"0.671224... | 0.65540415 | 33 |
function to convert the product price into dollar. | def Wv3L(YKHO):
hI0L = YKHO.get_price()
uvmn = YKHO.get_currency_code()
if hI0L and uvmn:
if uvmn != 'USD':
return VIXL(hI0L, from_money=uvmn, to_money='USD')
return hI0L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KrB7(Xnuy):\n return f'${Xnuy:,.2f}'",
"def KrB7(Xnuy):\n return f'${Xnuy:,.2f}'",
"def KrB7(Xnuy):\n return f'${Xnuy:,.2f}'",
"def KrB7(Xnuy):\n return f'${Xnuy:,.2f}'",
"def KrB7(Xnuy):\n return f'${Xnuy:,.2f}'",
"def KrB7(hI0L):\n return '${0:,.2f}'.format(hI0L)",
"def KrB7(Xnu... | [
"0.74097216",
"0.74097216",
"0.74097216",
"0.74097216",
"0.74097216",
"0.7382305",
"0.7355091",
"0.73041093",
"0.7229378",
"0.72087675",
"0.6877052",
"0.68630433",
"0.6812436",
"0.67804545",
"0.67004544",
"0.6674125",
"0.66741055",
"0.6556348",
"0.65339965",
"0.6529302",
"0.6... | 0.76077604 | 0 |
Returns a fairly random nonce. Since the number of requests wont be really high being used for streaming, this should work. | def _2ZF():
return qxeD.uuid4().get_hex() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEAa():\n return tuKI.randint(0, 4294967295)",
"def bEAa():\n return tuKI.randint(0, 4294967295)",
"def kBBd():\n return str(int(round(ITS7.time() * 1000)))",
"def sZqm(YKHO):\n return str(tuKI.randrange(100000, 999999))",
"def zvbt():\n hash = HBct.sha1()\n hash.update(str(ITS7.time(... | [
"0.8899983",
"0.8899983",
"0.8409738",
"0.8404919",
"0.8272713",
"0.82658195",
"0.8235994",
"0.8223351",
"0.8223351",
"0.81095797",
"0.8067207",
"0.7870935",
"0.782407",
"0.7790252",
"0.7680633",
"0.7661428",
"0.73025686",
"0.7279136",
"0.7092669",
"0.7067775",
"0.70519304",
... | 0.80236906 | 11 |
Returns the UNIX timestamp from system clock as a string. | def X2x9():
return str(int(ITS7.time())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _5Ea(YKHO):\n ZGkS = int(ITS7.time() * 10 ** 5)\n return hex(ZGkS)[2:]",
"def LEAs():\n vHj7 = ITS7.time()\n E3oo = int(vHj7 * 1000)\n return E3oo",
"def jHdZ(YKHO):\n return str(ITS7.mktime(qcWV.datetime.now().timetuple()))",
"def ZP0Q():\n return GRk0.timegm(qcWV.utcnow().utctimetu... | [
"0.76755875",
"0.743419",
"0.7433017",
"0.73788744",
"0.73104984",
"0.72863066",
"0.72626096",
"0.72388893",
"0.71487504",
"0.71116817",
"0.7090071",
"0.7084927",
"0.70677614",
"0.6987097",
"0.6952762",
"0.6951051",
"0.69508094",
"0.6947026",
"0.6938149",
"0.69213223",
"0.680... | 0.7501271 | 1 |
Copies the fake timestamp to a stat timestamp tuple. | def a2fx(YKHO):
if YKHO._number_of_seconds is None:
return (None, None)
if YKHO._microseconds is not None:
return (YKHO._number_of_seconds, YKHO._microseconds * 10)
return (YKHO._number_of_seconds, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n return ITS7.mktime(qcWV.today().timetuple())",
"def ufIb(YKHO):\n Csk6 = qcWV.now()\n YKHO._time_stamp = '{:>2} {} {} {:>2}:{:>02}'.format(Csk6.day, maDR[Csk6.month], Csk6.year, Csk6.hour, Csk6.minute)",
"def E3oo():\n exwG = qcWV.datetime.now()\... | [
"0.65542275",
"0.6441507",
"0.62939113",
"0.628449",
"0.61313134",
"0.6130165",
"0.61139107",
"0.6060384",
"0.6047154",
"0.6045662",
"0.6036357",
"0.5985301",
"0.59715736",
"0.59715736",
"0.59715736",
"0.59715736",
"0.59715736",
"0.59715736",
"0.59715736",
"0.595704",
"0.5957... | 0.6739669 | 0 |
Retrieves a timestamp that is compatible with plaso. | def EagA(YKHO):
if YKHO._number_of_seconds is None:
return
if YKHO._microseconds is not None:
return YKHO._number_of_seconds * 1000000 + YKHO._microseconds
return YKHO._number_of_seconds * 1000000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3(YKHO):\n XP5J = YKHO._get_sub_text('timestamp')\n if not XP5J:\n return None\n else:\n return TOuC.datetime(XP5J)",
"def nEIe(YKHO):\n return YKHO.__public_request('GET', '/api/v1/timestamp')",
"def ItX3():\n return int(ITS7.time())",
"def X2x9():\n return str(int(ITS... | [
"0.7587911",
"0.736075",
"0.7351805",
"0.7318355",
"0.7314204",
"0.7308146",
"0.7282744",
"0.71994996",
"0.71980804",
"0.7192426",
"0.71344715",
"0.7130453",
"0.7125411",
"0.70702213",
"0.7064327",
"0.7018043",
"0.70092803",
"0.7004173",
"0.70015395",
"0.69089264",
"0.6883055... | 0.72155964 | 7 |
This method retrieves ngrams of length n from a given sentence. | def Hesu(YKHO, yAmx, exwG):
return [tuple(yAmx[YRbF:YRbF + exwG]) for YRbF in range(len(yAmx) - exwG + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RisN(Q6uT, exwG):\n return",
"def pCSA(l5Ny, exwG):\n return eNCK(*[RihX(l5Ny, YRbF) for YRbF in range(exwG + 1)])",
"def T8bf(exwG, Rhv4):\n assert len(Rhv4) > 0\n assert exwG > 0\n V22M = HPLn(Rhv4)\n return c8AX(exwG, V22M)",
"def T8bf(exwG, Rhv4):\n assert len(Rhv4) > 0\n asse... | [
"0.8177132",
"0.8108822",
"0.80935425",
"0.80236024",
"0.80007464",
"0.80007464",
"0.7973129",
"0.7862303",
"0.765795",
"0.76501894",
"0.76501894",
"0.7597416",
"0.7590804",
"0.7536127",
"0.75229967",
"0.746831",
"0.74574083",
"0.74231577",
"0.7403887",
"0.7322611",
"0.730308... | 0.8083008 | 3 |
Get rotation matrix R along verticle axis from the angle | def Q3TB(bLm4):
gtI8, KG9w = (oyIN.cos(bLm4), oyIN.sin(bLm4))
VNqG, pSfY = (oyIN.zeros(len(gtI8)), oyIN.ones(len(gtI8)))
an6U = oyIN.array([[gtI8, KG9w, VNqG], [-KG9w, gtI8, VNqG], [VNqG, VNqG, pSfY]], dtype=oyIN.float32)
return an6U.transpose((2, 0, 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])",
"def UmwM(A3Vt: np.array) -> oyIN.array:\n return A3Vt.T",
"def OEJS(A3Vt):\n Ty9i = oyIN.array([A3Vt[1, 2] - A3Vt[2, 1], A3Vt[2, 0] - A3Vt[0, 1], A3Vt[0,... | [
"0.8042162",
"0.7843572",
"0.78321725",
"0.7727587",
"0.761758",
"0.7539035",
"0.7497475",
"0.746153",
"0.74251133",
"0.7403668",
"0.7388793",
"0.7382405",
"0.7380394",
"0.73802567",
"0.7378012",
"0.73746455",
"0.7367724",
"0.73619705",
"0.73442173",
"0.7321287",
"0.731802",
... | 0.0 | -1 |
Get rotation matrix R along verticle axis from the angle | def EwLl(bLm4):
gtI8, KG9w = (ht2j.cos(bLm4), ht2j.sin(bLm4))
VNqG = ht2j.zeros(len(gtI8), device=bLm4.device)
pSfY = ht2j.ones(len(gtI8), device=bLm4.device)
an6U = ht2j.empty((bLm4.shape[0], 3, 3), device=bLm4.device).float()
an6U[:, 0] = ht2j.stack((gtI8, KG9w, VNqG), dim=1)
an6U[:, 1] = ht2j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])",
"def UmwM(A3Vt: np.array) -> oyIN.array:\n return A3Vt.T",
"def OEJS(A3Vt):\n Ty9i = oyIN.array([A3Vt[1, 2] - A3Vt[2, 1], A3Vt[2, 0] - A3Vt[0, 1], A3Vt[0,... | [
"0.8042418",
"0.7843473",
"0.78315514",
"0.7727638",
"0.7617734",
"0.7538989",
"0.7497006",
"0.74618345",
"0.74244744",
"0.7403585",
"0.7389639",
"0.7380619",
"0.7380172",
"0.73798925",
"0.737828",
"0.7374555",
"0.7367599",
"0.73624396",
"0.734485",
"0.7320597",
"0.73180103",... | 0.0 | -1 |
Gradient descent step of the accelerated gradient descent method. This is the solution to equation (8) of Ji and Ye (2009). | def WleZ(fuBA, EcVT, Y3RW, aPd6, CNtu):
Ma7H = EcVT.T
ICX2 = oyIN.dot(Ma7H.dot(EcVT), CNtu) - Ma7H.dot(fuBA)
Nq1b = CNtu - 1 / aPd6 * ICX2
KkY2, KCHu, cAlv = oyIN.linalg.svd(Nq1b)
KCHu = KCHu - Y3RW / aPd6
B0cF = oyIN.maximum(KCHu, 0)
QbSG = KkY2.shape[1]
KiKJ = cAlv.shape[0]
o4sw = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWqU(YKHO, EcVT, RHJb, yJiH, iter):\n aden = []\n tSJp = [EcVT]\n dfHy = 0\n BESI = aDi_.diff(YKHO.gdfunc)\n WKvO = aDi_.Symbol('x')\n BESI = aDi_.lambdify(WKvO, BESI)\n Xsfr = RHJb\n Wr3h = EcVT\n kNbz = Wr3h - Xsfr * BESI(Wr3h)\n tSJp.append(kNbz)\n for YRbF in range(iter):\n... | [
"0.7387371",
"0.73045385",
"0.7301955",
"0.72967243",
"0.7284404",
"0.72401005",
"0.7207077",
"0.7157161",
"0.715336",
"0.71316785",
"0.710654",
"0.7061659",
"0.7058018",
"0.7057642",
"0.7041809",
"0.70319414",
"0.7030599",
"0.7021542",
"0.70007557",
"0.69978786",
"0.6996383"... | 0.6388433 | 71 |
Closes the database engine. This makes sure that the running Python application isn't connected to the file DismodAT has to read because DismodAT can't read it while the application reads it. | def DDI8(YKHO):
YKHO.flush()
if YKHO.dismod_file.engine is not None:
YKHO.dismod_file.engine.dispose()
YKHO.dismod_file.engine = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DE6l(YKHO):\n YKHO.close()\n try:\n yield\n finally:\n YKHO.dismod_file.engine = PWOV(YKHO._filename)",
"def ssTe(YKHO):\n with FMyx():\n V2zj.file._open_files.close_all()",
"def rDE9(YKHO):\n assert YKHO._conn is not None\n G9jH.info('Closing file {!r}.'.format(YKHO.... | [
"0.7932124",
"0.7698381",
"0.7628501",
"0.7596482",
"0.757162",
"0.7550942",
"0.74968183",
"0.74968183",
"0.74968183",
"0.74738437",
"0.74731934",
"0.74630964",
"0.7452261",
"0.7433974",
"0.7415599",
"0.7393815",
"0.7338402",
"0.72717816",
"0.72332126",
"0.72172356",
"0.72133... | 0.71693957 | 23 |
Returns a dictionary from covariate name to its integer index. | def ygvN(YKHO):
j3ie = YKHO.dismod_file.covariate
return dict(j3ie[['covariate_name', 'covariate_id']].to_records(index=False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cIt3(YKHO):\n Aofo = {}\n for d6pt, a5dp in BVGD(YKHO):\n Aofo[id(a5dp)] = d6pt\n return Aofo",
"def ACQu(YKHO) -> cuzp[eA6S, int]:\n return YKHO._token_to_idx",
"def fdRi(YKHO):\n return dict(enumerate([Z9rn.name for Z9rn in YKHO.categories]))",
"def SvJ8(a1PO):\n IZ6w = a1PO.ig... | [
"0.6708207",
"0.6576246",
"0.63318646",
"0.6204813",
"0.61899966",
"0.6122378",
"0.61169785",
"0.61010176",
"0.6099302",
"0.6096077",
"0.6034907",
"0.60132337",
"0.6011859",
"0.5995864",
"0.59569955",
"0.5954234",
"0.59499174",
"0.5936469",
"0.5935864",
"0.59243613",
"0.59080... | 0.6467076 | 2 |
Round `float` that is sent in to the nearest `int`. | def Ndrl() -> jd6F[int, float, str]:
_dZy = (yield 0)
while _dZy >= 0:
_dZy = (yield round(_dZy))
return 'Done' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GcNB(mLGw, exwG):\n mLGw = float(mLGw)\n mLGw = round(mLGw, exwG)\n return mLGw",
"def MJ6n(mLGw):\n return int(oyIN.round(mLGw))",
"def GcNB(WKvO, eRdl=2, P8oC=0.05):\n return round(P8oC * round(float(WKvO) / P8oC), eRdl)",
"def l89j(WKvO: int) -> float:\n return round(WKvO / 100, 2)",... | [
"0.7440972",
"0.7231356",
"0.6969748",
"0.6946121",
"0.6937244",
"0.68804234",
"0.68034136",
"0.6782001",
"0.677883",
"0.6712611",
"0.6687245",
"0.65997636",
"0.65837985",
"0.65065014",
"0.6477337",
"0.6438055",
"0.63597786",
"0.6336425",
"0.63230187",
"0.6272592",
"0.6258182... | 0.0 | -1 |
Logs in user created in setUp | def MC83(YKHO):
return YKHO.client.login(username='Georgie', password='12345678') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.new_user = mv1M(username='burens', password='12345')",
"def FCbF(YKHO):\n YKHO.login(YKHO.create_superuser())",
"def FCbF(YKHO):\n YKHO.new_user = mv1M('JosphatOtieno', 'jose@otis45')",
"def UHFF(YKHO):\n YKHO.user_api()\n YKHO.base.metadata.create_all(YKHO.engine)\n ... | [
"0.793146",
"0.78975517",
"0.78562987",
"0.7813264",
"0.78029025",
"0.7785907",
"0.7773645",
"0.7765679",
"0.7761813",
"0.77254343",
"0.77240294",
"0.77113175",
"0.7702826",
"0.7688141",
"0.7678184",
"0.7663037",
"0.76566744",
"0.7640755",
"0.76153094",
"0.76093364",
"0.75932... | 0.0 | -1 |
Returns the object type for a Reads object | def FRul(YKHO, OaeV, NArs):
if 'workspace_name' not in NArs:
raise ValueError('Parameter workspace_name is not set in input arguments')
vSUp = NArs['workspace_name']
if 'id' not in NArs:
raise ValueError('Parameter id is not set in input arguments')
vTkD = NArs['id']
eOtH = OaeV['tok... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZQJ(YKHO, Xt7P=''):\n if not Xt7P:\n raise rDSL('The resource_type_id parameter is missing')\n return YKHO.clients.resource_registry.read(Xt7P)",
"def vcaS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'object_type')",
"def vcaS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'obj... | [
"0.7071357",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.6988872",
"0.69575155",
"0.69575155",
"0.69575155",
... | 0.0 | -1 |
Row normalization function Implement a function that normalizes each row of a matrix to have unit length. | def U95B(WKvO):
ywwl = WKvO.shape[0]
WKvO /= oyIN.sqrt(oyIN.sum(WKvO ** 2, axis=1)).reshape((ywwl, 1)) + 1e-30
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U95B(WKvO):\n XsBg = oyIN.linalg.norm(WKvO, 2, axis=1).reshape(WKvO.shape[0], -1)\n WKvO = WKvO / XsBg\n return WKvO",
"def U95B(WKvO):\n WKvO = WKvO / oyIN.sqrt(oyIN.sum(WKvO * WKvO, axis=-1, keepdims=True))\n return WKvO",
"def U95B(WKvO):\n qRo7 = oyIN.sqrt(oyIN.sum(WKvO ** 2, axis=1))... | [
"0.8099689",
"0.80678123",
"0.79161626",
"0.7844873",
"0.7514624",
"0.74229157",
"0.74120814",
"0.7315109",
"0.7187008",
"0.70935184",
"0.70890456",
"0.691026",
"0.68471384",
"0.67702127",
"0.6760503",
"0.6594641",
"0.6537965",
"0.6502695",
"0.6501119",
"0.64884686",
"0.64776... | 0.7919649 | 2 |
Compute the softmax function for each row of the input x. It is crucial that this function is optimized for speed because it will be used frequently in later code. | def N93T(WKvO):
JNn7 = WKvO.shape
if len(WKvO.shape) > 1:
jbXL = oyIN.max(WKvO, axis=1)
WKvO -= jbXL.reshape((WKvO.shape[0], 1))
WKvO = oyIN.exp(WKvO)
jbXL = oyIN.sum(WKvO, axis=1)
WKvO /= jbXL.reshape((WKvO.shape[0], 1))
else:
jbXL = oyIN.max(WKvO)
WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9",
"def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi... | [
"0.8578101",
"0.85545444",
"0.85178006",
"0.84942997",
"0.84723365",
"0.84399134",
"0.84285694",
"0.8418548",
"0.83919775",
"0.8385109",
"0.8363403",
"0.83514667",
"0.83368903",
"0.8295091",
"0.82931685",
"0.8293041",
"0.8293041",
"0.8293041",
"0.8293041",
"0.8293041",
"0.829... | 0.8262257 | 25 |
Returns true if the slug url is available | def G0Sy(s5ru):
return pNP8.query.filter_by(url_slug=s5ru).first() is None and Ecua.query.filter_by(url_slug=s5ru).first() is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uokd(nxnC: str, j9QY: mysql.connector.connect) -> bool:\n return mOsY(nxnC, j9QY)",
"def mOsY(nxnC: str, j9QY: mysql.connector.connect) -> bool:\n nxnC = nxnC.strip()\n if not nxnC:\n return False\n try:\n N1p7 = j9QY.cursor()\n xDcj = 'SELECT hostslug FROM ww_hosts WHERE hos... | [
"0.731647",
"0.699601",
"0.68824184",
"0.68215793",
"0.6745637",
"0.6730685",
"0.6623745",
"0.6616063",
"0.6612554",
"0.65487105",
"0.6356168",
"0.63158953",
"0.6292678",
"0.6249678",
"0.624358",
"0.6216887",
"0.6209696",
"0.6153062",
"0.61217886",
"0.6115216",
"0.61012435",
... | 0.7709322 | 0 |
Create and run a qt date/time selection dialog. init a datetime, default now step_min a dict, keys are QtWidgets.QDateTimeEdit Sections, like QtWidgets.QDateTimeEdit.MinuteSection, and values are integers, the minimum amount that section of the date/time changes when you roll the mouse wheel. | def V23L(YKHO, Z9rn: Cmdr, leAC: str, Ol8d: str='Select Date/Time', DbxN: datetime.datetime=None, OasY: dict=None) -> None:
class DateTimeEditStepped(x5x0.QDateTimeEdit):
"""QDateTimeEdit which allows you to set minimum steps on fields, e.g.
DateTimeEditStepped(parent, {QtWidgets.QDateTimeEdi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvN7(YKHO):\n YKHO.dateTimeEdit_2.setMinimumDateTime(YKHO.dateTimeEdit.dateTime())",
"def toTd(YKHO):\n\n def QzYH(FUjE):\n \"\"\"\n parse time in string (should be 00:00:00.000 or in seconds)\n \"\"\"\n if ':' in FUjE:\n hDk5 = T8Kh.fromString(FUjE, 'hh:m... | [
"0.6102606",
"0.5581471",
"0.5167035",
"0.5160645",
"0.50392187",
"0.50144684",
"0.5013052",
"0.49559203",
"0.4917738",
"0.48784727",
"0.48759302",
"0.48605368",
"0.48604164",
"0.48550627",
"0.480916",
"0.47747588",
"0.47545725",
"0.47438717",
"0.47335535",
"0.4725922",
"0.46... | 0.79846495 | 0 |
Return the value of the node for the setting. | def yLtf(YKHO, YqMg: str) -> list:
Z9rn = YKHO.c
return Z9rn.config.getData(YqMg, strip_comments=False, strip_data=False) or [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.node_value",
"def BWXx(YKHO):\n return YKHO.get_attribute('value', str(YKHO.children))",
"def Oegh(YKHO, exwG):\n Q6kx = YKHO.get_node(exwG)\n if Q6kx:\n return Q6kx.value",
"def _h_a(YKHO):\n return YKHO.load_attr('value')",
"def U5a0(YKHO, leAC, YqMg):\... | [
"0.8024247",
"0.7688601",
"0.7602331",
"0.73634183",
"0.7300678",
"0.71814626",
"0.71631604",
"0.71631604",
"0.71631604",
"0.71579677",
"0.712822",
"0.7075542",
"0.70627284",
"0.70296925",
"0.70278597",
"0.70278597",
"0.70194465",
"0.70194465",
"0.70194465",
"0.70013165",
"0.... | 0.0 | -1 |
find_constants Return a list of constants referenced in the supplied text, | def qG4q(YKHO, l5Ny: str) -> list[str]:
w_3R = sorted(set(ZbWC.findall('@[A-Za-z_][-A-Za-z0-9_]*', l5Ny)))
for KCHu in ('@button', '@constants', '@data', '@language'):
if KCHu in w_3R:
w_3R.remove(KCHu)
return w_3R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFYb(YKHO, l5Ny):\n hHld = []\n exwG = len(l5Ny)\n for list in [YKHO.namespace]:\n for GIN8 in list:\n if GIN8[:exwG] == l5Ny:\n hHld.append(GIN8)\n return hHld",
"def LYve():\n raise NotImplementedError()",
"def PFYb(YKHO, l5Ny):\n oeNL = yV3j.get_begidx(... | [
"0.58599454",
"0.578981",
"0.5785223",
"0.56432354",
"0.5600148",
"0.5561508",
"0.55585694",
"0.5519214",
"0.54849255",
"0.5418846",
"0.53741246",
"0.53187495",
"0.5313181",
"0.530148",
"0.52545744",
"0.51825374",
"0.51619565",
"0.51483244",
"0.5140914",
"0.51351464",
"0.5130... | 0.7396407 | 0 |
computes IoU between performer and ground truth building masks | def UyMB(LUzD, LcPD):
if LUzD.shape != LcPD.shape:
raise ValueError('Dimension mismatch')
iQin = oyIN.sum(LUzD & LcPD)
b65I = oyIN.sum(LUzD | LcPD)
RjuK = iQin / b65I
return RjuK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8gd(WJJ4, LNFQ):\n if WJJ4.min_x > LNFQ.max_x or WJJ4.min_y > LNFQ.max_y or WJJ4.max_x < LNFQ.min_x or (WJJ4.max_y < LNFQ.min_y):\n return (0, 0, 0)\n if len(WJJ4.points) == 0 or len(LNFQ.points) == 0:\n return (0, 0, 0)\n VTm3 = set([tuple(WKvO) for WKvO in WJJ4.points])\n KUkV = se... | [
"0.71459913",
"0.69955",
"0.675376",
"0.6698098",
"0.66957843",
"0.66093457",
"0.6595845",
"0.65427727",
"0.6436115",
"0.63513964",
"0.6322787",
"0.6282413",
"0.62599283",
"0.62537706",
"0.6210228",
"0.6208297",
"0.61734813",
"0.6152568",
"0.6151952",
"0.6131706",
"0.61215305... | 0.76561904 | 0 |
Returns class that can handle data from devices with given model or can manage status of such devices. If is_manager = False result will be a class that derived from BaseDataHandler and have methods that can decode data from device and save it to database. Otherwise it will be a class that derived from BaseDeviceManage... | def kP8X(wPBJ: str, xpat: bool=False):
nXUE = Ipor
RhZk = Ya6V
if xpat:
nXUE = h8zy
RhZk = ODuX
try:
vpFP = nXUE[wPBJ]
except KeyError:
h9sr = f'No handler defined in dictionary'
bo34.error(h9sr)
raise Duz7(h9sr)
else:
bo34.info(f'Found han... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vls0(wPBJ: str):\n return kP8X(wPBJ, True)",
"def coqV(wPBJ: str):\n return kP8X(wPBJ, False)",
"def Phs2(YKHO, C3ST):\n try:\n return YKHO._registry[C3ST]\n except KeyError:\n raise wSGO('Model {} is not handled'.format(C3ST))",
"def jxGD(YKHO):\n ZGE9 = YKHO.model_name()\n ... | [
"0.67649657",
"0.6488736",
"0.5599563",
"0.55206025",
"0.542871",
"0.5284573",
"0.5217034",
"0.5091815",
"0.5023947",
"0.5023947",
"0.5009368",
"0.49807107",
"0.49746594",
"0.4945554",
"0.4900993",
"0.48656696",
"0.48584735",
"0.48584607",
"0.48580474",
"0.48580474",
"0.48580... | 0.8263041 | 0 |
Wrapper for _get_device_handler_or_manager method. | def Vls0(wPBJ: str):
return kP8X(wPBJ, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kP8X(wPBJ: str, xpat: bool=False):\n nXUE = Ipor\n RhZk = Ya6V\n if xpat:\n nXUE = h8zy\n RhZk = ODuX\n try:\n vpFP = nXUE[wPBJ]\n except KeyError:\n h9sr = f'No handler defined in dictionary'\n bo34.error(h9sr)\n raise Duz7(h9sr)\n else:\n bo3... | [
"0.76123226",
"0.7341856",
"0.6130168",
"0.6117212",
"0.60769254",
"0.5991454",
"0.5757319",
"0.5741887",
"0.5719479",
"0.5671883",
"0.56580395",
"0.56231046",
"0.5527335",
"0.5504597",
"0.5458711",
"0.54204184",
"0.5414329",
"0.5405207",
"0.5384809",
"0.5373784",
"0.53058225... | 0.76369745 | 0 |
Wrapper for _get_device_handler_or_manager method. | def coqV(wPBJ: str):
return kP8X(wPBJ, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vls0(wPBJ: str):\n return kP8X(wPBJ, True)",
"def kP8X(wPBJ: str, xpat: bool=False):\n nXUE = Ipor\n RhZk = Ya6V\n if xpat:\n nXUE = h8zy\n RhZk = ODuX\n try:\n vpFP = nXUE[wPBJ]\n except KeyError:\n h9sr = f'No handler defined in dictionary'\n bo34.error(... | [
"0.7637257",
"0.76118815",
"0.6133493",
"0.6118185",
"0.6078016",
"0.5991407",
"0.5757511",
"0.57450354",
"0.5721423",
"0.5674563",
"0.56562865",
"0.56218755",
"0.5529106",
"0.55067295",
"0.5460247",
"0.5418331",
"0.54118943",
"0.54068494",
"0.538605",
"0.53722465",
"0.530867... | 0.734236 | 2 |
ROW returns the number of the row from 0(a8h8) to 7(a1h1) in which is the square 'x' | def PlZs(WKvO):
return WKvO >> 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9jQ(YKHO, usx6):\n return (usx6 * usx6 + usx6) // 2",
"def usx6(YKHO) -> int:\n return YKHO.__squares.__len__()",
"def DR2N(YKHO):\n return YKHO.well_count // YKHO.col_count",
"def rdlD(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'row')",
"def rdlD(YKHO) -> qe4Y.Input[int]:\n retu... | [
"0.68206614",
"0.65865594",
"0.6565966",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.63450223",
"0.62993187",
"0.610818",
... | 0.72117245 | 1 |
Create MetadataMap objects that will be used in the tests. | def FCbF(YKHO):
YKHO.overview_map_str = ['#SampleID\tBarcodeSequence\tTreatment\tDOB\tDescription', 'PC.354\tAGCACGAGCCTA\tControl\t20061218\t354', 'PC.355\tAACTCGTCGATG\tControl\t20061218\t355', 'PC.356\tACAGACCACTCA\tControl\t20061126\t356', 'PC.481\tACCAGCGACTAG\tControl\t20070314\t481', 'PC.593\tAGCAGCACTTGT\tC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.overview_map_str = ['#SampleID\\tBarcodeSequence\\tTreatment\\tDOB\\tDescription', 'PC.354\\tAGCACGAGCCTA\\tControl\\t20061218\\t354', 'PC.355\\tAACTCGTCGATG\\tControl\\t20061218\\t355', 'PC.356\\tACAGACCACTCA\\tControl\\t20061126\\t356', 'PC.481\\tACCAGCGACTAG\\tControl\\t20070314\\t481'... | [
"0.6777494",
"0.6119957",
"0.6091692",
"0.607853",
"0.6051635",
"0.59925073",
"0.5967245",
"0.58849573",
"0.5857285",
"0.5826208",
"0.58216155",
"0.5820132",
"0.5815573",
"0.58073705",
"0.58058447",
"0.5803889",
"0.57717216",
"0.5771417",
"0.57537293",
"0.57516026",
"0.573940... | 0.68475837 | 0 |
Test parsing a mapping file into a MetadataMap instance. | def CiS3(YKHO):
W061 = oiKM.parseMetadataMap(YKHO.overview_map_str)
YKHO.assertEqual(W061, YKHO.overview_map) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CiS3(YKHO):\n W061 = oiKM.parseMetadataMap(YKHO.overview_map_str)\n YKHO.assertEqual(W061, YKHO.overview_map)",
"def nwgA(Nqlg):\n return oiKM(*tcfB(Nqlg))",
"def m1cu(YKHO):\n j93S = ['#sample\\ta\\tb', '#comment line to skip', 'x \\t y \\t z ', ' ', '#more skip', 'i\\tj\\tk']\n kLQb = ([['... | [
"0.76712304",
"0.72917974",
"0.7074408",
"0.69405633",
"0.6915975",
"0.6783265",
"0.67537105",
"0.67109567",
"0.6631358",
"0.65012133",
"0.6491774",
"0.6454539",
"0.643106",
"0.6418316",
"0.6412258",
"0.63924867",
"0.63459474",
"0.6331289",
"0.6321486",
"0.6320176",
"0.631146... | 0.7637813 | 1 |
Test metadata by sample ID accessor with valid sample IDs. | def j1OK(YKHO):
kLQb = {'BarcodeSequence': 'AGCACGAGCCTA', 'Treatment': 'Control', 'DOB': '20061218', 'Description': '354'}
W061 = YKHO.overview_map.getSampleMetadata('PC.354')
YKHO.assertEqual(W061, kLQb)
kLQb = {'BarcodeSequence': 'ACCAGCGACTAG', 'Treatment': 'Control', 'DOB': '20070314', 'Description... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCT4(YKHO):\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 'PC.000')\n YKHO.assertRaises(KeyError, YKHO.no_metadata.getSampleMetadata, 'PC.000')\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 42)\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetada... | [
"0.7431353",
"0.7422627",
"0.7368756",
"0.7361648",
"0.72176903",
"0.7169399",
"0.6952665",
"0.6874135",
"0.6873461",
"0.6858016",
"0.670197",
"0.670197",
"0.6692071",
"0.6604647",
"0.64640296",
"0.6421047",
"0.64128375",
"0.6327992",
"0.628114",
"0.6274623",
"0.61837107",
... | 0.59703135 | 35 |
Test metadata by sample ID accessor with invalid sample IDs. | def MCT4(YKHO):
YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 'PC.000')
YKHO.assertRaises(KeyError, YKHO.no_metadata.getSampleMetadata, 'PC.000')
YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 42)
YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, None)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCT4(YKHO):\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 'PC.000')\n YKHO.assertRaises(KeyError, YKHO.no_metadata.getSampleMetadata, 'PC.000')\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetadata, 42)\n YKHO.assertRaises(KeyError, YKHO.overview_map.getSampleMetada... | [
"0.8133826",
"0.72348",
"0.71959615",
"0.7168183",
"0.70231897",
"0.6887802",
"0.6871468",
"0.68642044",
"0.6705414",
"0.66979134",
"0.662837",
"0.66037434",
"0.658648",
"0.6456211",
"0.642515",
"0.63970757",
"0.6369993",
"0.6362547",
"0.63348824",
"0.63177156",
"0.6286631",
... | 0.81624603 | 0 |
Test correct validation of refnames | def Pyo1(YKHO):
YKHO.assertTrue(IM7s('master'))
YKHO.assertTrue(IM7s('debuggatron_2000'))
YKHO.assertTrue(IM7s('refname/bar'))
YKHO.assertTrue(IM7s('ref.nameslu/_eggs_/spam'))
YKHO.assertTrue(IM7s('valid{0}char'.format(mYtf(40))))
YKHO.assertTrue(IM7s('master@head'))
YKHO.assertTrue(IM7s('ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pyo1(YKHO):\n YKHO.assertTrue(IM7s('master'))\n YKHO.assertTrue(IM7s('debuggatron_2000'))\n YKHO.assertTrue(IM7s('refname/bar'))\n YKHO.assertTrue(IM7s('ref.nameslu/_eggs_/spam'))\n YKHO.assertTrue(IM7s('valid{0}char'.format(mYtf(40))))\n YKHO.assertTrue(IM7s('master@head'))\n YKHO.assertT... | [
"0.7155712",
"0.70484257",
"0.6959989",
"0.6837648",
"0.67429316",
"0.66973555",
"0.6492197",
"0.6476293",
"0.6464883",
"0.6360999",
"0.63417995",
"0.6331771",
"0.63068086",
"0.6259249",
"0.625452",
"0.619649",
"0.614463",
"0.6125253",
"0.6116972",
"0.6110542",
"0.609678",
... | 0.71525216 | 1 |
Create an instance of local gaussian threshold | def osZH(YKHO, w9sN, NXpY=0.95, oTDq=True):
w9sN = P0Ca(w9sN)
mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localGaussian(w9sN, float(NXpY), oTDq, YKHO.boof_image_type)
return xpOR(mWcN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aH3w(IZxK: List[float], Cwt5: List[float], **B2fa) -> float:\n if len(IZxK.shape) > 1:\n SGPK = oyIN.array([CkYf.fit(IZxK[YRbF]) for YRbF in range(IZxK.shape[0])])\n YOWq = Cwt5.shape[0]\n UoOD = IZxK.shape[0]\n hksT = SGPK[:, 0].reshape(-1, 1).repeat(YOWq, 1)\n NXpY = SGP... | [
"0.6320686",
"0.6299358",
"0.62813634",
"0.6239726",
"0.622714",
"0.6209167",
"0.6193873",
"0.61874384",
"0.61824715",
"0.61805373",
"0.61761224",
"0.61290044",
"0.6126147",
"0.6075367",
"0.60473645",
"0.6028788",
"0.6000742",
"0.59999543",
"0.59968203",
"0.59848",
"0.5980886... | 0.701792 | 0 |
Create an instance of local gaussian threshold | def yKri(YKHO, w9sN, G1Hx=0.3, oTDq=True):
w9sN = P0Ca(w9sN)
mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localSauvola(w9sN, oTDq, float(G1Hx), YKHO.boof_image_type)
return xpOR(mWcN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osZH(YKHO, w9sN, NXpY=0.95, oTDq=True):\n w9sN = P0Ca(w9sN)\n mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localGaussian(w9sN, float(NXpY), oTDq, YKHO.boof_image_type)\n return xpOR(mWcN)",
"def aH3w(IZxK: List[float], Cwt5: List[float], **B2fa) -> float:\n if len(I... | [
"0.70174056",
"0.6320467",
"0.6301312",
"0.62820625",
"0.6241312",
"0.62278724",
"0.620951",
"0.61962664",
"0.6188974",
"0.61839104",
"0.6181771",
"0.61780196",
"0.6130276",
"0.6128769",
"0.6075367",
"0.6049565",
"0.6029836",
"0.6001879",
"0.60009944",
"0.5997879",
"0.5986547... | 0.0 | -1 |
Create an instance of local gaussian threshold | def fsJY(YKHO, w9sN, G1Hx=0.3, oTDq=True):
w9sN = P0Ca(w9sN)
mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localWolf(w9sN, oTDq, float(G1Hx), YKHO.boof_image_type)
return xpOR(mWcN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osZH(YKHO, w9sN, NXpY=0.95, oTDq=True):\n w9sN = P0Ca(w9sN)\n mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localGaussian(w9sN, float(NXpY), oTDq, YKHO.boof_image_type)\n return xpOR(mWcN)",
"def aH3w(IZxK: List[float], Cwt5: List[float], **B2fa) -> float:\n if len(I... | [
"0.701792",
"0.6320686",
"0.6299358",
"0.62813634",
"0.6239726",
"0.622714",
"0.6209167",
"0.6193873",
"0.61874384",
"0.61824715",
"0.61805373",
"0.61761224",
"0.61290044",
"0.6126147",
"0.6075367",
"0.60473645",
"0.6028788",
"0.6000742",
"0.59999543",
"0.59968203",
"0.59848"... | 0.0 | -1 |
Create an instance of local gaussian threshold | def PEJY(YKHO, w9sN, G1Hx=0.3, oTDq=True):
w9sN = P0Ca(w9sN)
mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localNiblack(w9sN, oTDq, float(G1Hx), YKHO.boof_image_type)
return xpOR(mWcN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osZH(YKHO, w9sN, NXpY=0.95, oTDq=True):\n w9sN = P0Ca(w9sN)\n mWcN = Si5b.gateway.jvm.boofcv.factory.filter.binary.FactoryThresholdBinary.localGaussian(w9sN, float(NXpY), oTDq, YKHO.boof_image_type)\n return xpOR(mWcN)",
"def aH3w(IZxK: List[float], Cwt5: List[float], **B2fa) -> float:\n if len(I... | [
"0.701792",
"0.6320686",
"0.6299358",
"0.62813634",
"0.6239726",
"0.622714",
"0.6209167",
"0.6193873",
"0.61874384",
"0.61824715",
"0.61805373",
"0.61761224",
"0.61290044",
"0.6126147",
"0.6075367",
"0.60473645",
"0.6028788",
"0.6000742",
"0.59999543",
"0.59968203",
"0.59848"... | 0.0 | -1 |
Returns a HttpResponseForbidden if the user does not own the section and task. | def mRQo(JfyU):
@xBlr.wraps(JfyU)
@DkFh
def h3Xc(QePW, NHWH, _TKD, *qIxc, **B2fa):
D5gV = o2Vr.objects.get(pk=_TKD)
CBIr = D5gV.section.board.user
if QePW.user.id == CBIr.id:
return JfyU(QePW, NHWH, _TKD, *qIxc, **B2fa)
else:
return G2TX("You can't ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pDAw(YKHO):\n\n @eOdi\n def tTee(QePW):\n return igJ6('Hello')\n QePW = YKHO.factory.get('/')\n QePW.META[T9BP] = 'test'\n geh0 = tTee(QePW)\n YKHO.assertEqual(geh0.status_code, 200)",
"def DkFh(JfyU):\n\n @xBlr.wraps(JfyU)\n def h3Xc(QePW, NHWH, *qIxc, **B2fa):\n XLMv =... | [
"0.673319",
"0.6722941",
"0.6373558",
"0.62612206",
"0.62396926",
"0.6188741",
"0.6064272",
"0.60561746",
"0.6013209",
"0.59906936",
"0.59758806",
"0.5967832",
"0.5957171",
"0.5938238",
"0.5894628",
"0.588916",
"0.5877327",
"0.5818235",
"0.5811763",
"0.5793476",
"0.5788154",
... | 0.7398975 | 0 |
Creates a more convenient board aggregate wrapper around a Board model. | def T7Ue(iBIi):
nPrm = {'id': iBIi.id, 'name': iBIi.name}
GA_J = []
for XLMv in iBIi.section_set.all():
Bjfq = []
for D5gV in XLMv.task_set.all():
Bjfq.append({'id': D5gV.id, 'text': D5gV.text})
s7ne = {'id': XLMv.id, 'name': XLMv.name, 'tasks': Bjfq}
GA_J.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBIi(YKHO):\n return yELo(YKHO)",
"def iBIi(YKHO):\n return yELo(YKHO)",
"def iBIi(YKHO):\n return yELo(YKHO)",
"def iBIi(YKHO):\n return yELo(YKHO)",
"def iBIi(YKHO):\n return yELo(YKHO)",
"def iBIi(YKHO, kBYg):\n return yELo(YKHO, kBYg)",
"def a4lo(YKHO):\n return DsEw(YKHO)"... | [
"0.70413464",
"0.70413464",
"0.70413464",
"0.70413464",
"0.70413464",
"0.64629716",
"0.6221905",
"0.5899963",
"0.58118206",
"0.5795982",
"0.5769712",
"0.5757588",
"0.57526153",
"0.5730352",
"0.5679222",
"0.5656481",
"0.5651118",
"0.56217873",
"0.55867845",
"0.558116",
"0.5575... | 0.6547972 | 5 |
Returns a logged user's board/section/tasks as a JSON object. The returned object is not a direct mapping of the database objects, but rather a more convenient aggregate (see the related function create_board_aggregate). If the user does not have a board, it creates and returns a new empty board. | def iBIi(QePW):
try:
iBIi = yELo.objects.get(user=QePW.user)
return jnRN(T7Ue(iBIi))
except rIt9:
iBIi = At0F(QePW.user)
return jnRN(T7Ue(iBIi)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T7Ue(iBIi):\n nPrm = {'id': iBIi.id, 'name': iBIi.name}\n GA_J = []\n for XLMv in iBIi.section_set.all():\n Bjfq = []\n for D5gV in XLMv.task_set.all():\n Bjfq.append({'id': D5gV.id, 'text': D5gV.text})\n s7ne = {'id': XLMv.id, 'name': XLMv.name, 'tasks': Bjfq}\n ... | [
"0.64891285",
"0.5994532",
"0.59358305",
"0.5862742",
"0.5593309",
"0.5553864",
"0.5338541",
"0.52381027",
"0.522747",
"0.5211359",
"0.5194084",
"0.5171273",
"0.5152421",
"0.51520437",
"0.5151099",
"0.5149118",
"0.5149118",
"0.5145029",
"0.5144707",
"0.51087034",
"0.5090383",... | 0.7096799 | 0 |
Optional embedding for tensor input. If there is no feature dimension, an embedding layer can be used. If the input tensor has without batch dimension the shape of e.g. `(None, F)` and `F` is the feature dimension, no embedding layer is required. However, for shape `(None, )` an embedding with `output_dim` assures a ve... | def VtgL(g4y1, GhuM: list, NafR: dict, HGsg: int=1, **B2fa):
if len(B2fa) > 0:
print('WARNING:kgcnn: Unknown embedding kwargs {0}. Will be reserved for future versions.'.format(B2fa))
if len(GhuM) == HGsg:
exwG = ZT17.layers.Embedding(**NafR)(g4y1)
else:
exwG = g4y1
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjQX(pJbt):\n for eHNT in range(PSrQ.num_feature):\n mI7d = PSrQ.schema[eHNT]\n if mI7d == 1:\n pass\n elif mI7d > 1:\n T7pw[eHNT] = ZylS.get_variable(name='embed_' + str(eHNT), shape=[mI7d, PSrQ.embed_size[eHNT]], trainable=True)\n else:\n raise ... | [
"0.6556829",
"0.65243655",
"0.64418864",
"0.63933486",
"0.6237811",
"0.6163162",
"0.61513436",
"0.6133222",
"0.6083689",
"0.59896886",
"0.5975222",
"0.59632677",
"0.5956818",
"0.59096086",
"0.59082794",
"0.5852431",
"0.5724415",
"0.5710859",
"0.5698398",
"0.56394494",
"0.5570... | 0.5762082 | 16 |
Sets the name of this MsRun. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def S55X(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO,... | [
"0.80029523",
"0.80029523",
"0.79991555",
"0.7989367",
"0.79665637",
"0.79647076",
"0.79647076",
"0.79647076",
"0.79647076",
"0.79647076",
"0.7959835",
"0.79496604",
"0.787503",
"0.7864963",
"0.78530174",
"0.7837398",
"0.7837398",
"0.78324026",
"0.7712417",
"0.7712417",
"0.76... | 0.0 | -1 |
Sets the id_format of this MsRun. | def KgBs(YKHO, KgBs):
YKHO._id_format = KgBs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ekm0(YKHO, quXY):\n YKHO.id = quXY",
"def format(YKHO, format):\n YKHO._format = format",
"def format(YKHO, format):\n YKHO._format = format",
"def f6Qh(YKHO, BWXx):\n pass",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def ekm0(YKHO... | [
"0.62020105",
"0.58940774",
"0.58940774",
"0.5825699",
"0.57359976",
"0.57086235",
"0.5689986",
"0.56567943",
"0.5608134",
"0.55861366",
"0.557906",
"0.5565758",
"0.55648816",
"0.5557206",
"0.55210143",
"0.5476634",
"0.54507226",
"0.5403126",
"0.54017705",
"0.5398398",
"0.539... | 0.8249658 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, SfMr):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8457167",
"0.8393036",
"0.81455255",
"0.8139734",
"0.81333447",
"0.8094964",
"0.8093362",
"0.8093362",
"0.8093362",
"0.80863476",
"0.80863476",
"0.8077286",
"0.8077286",
"0.806682"
] | 0.0 | -1 |
This function tests that updated_at is updated via save method | def mtl5(YKHO):
kYGz = KcDH()
kYGz.save()
YKHO.assertEqual(type(kYGz.updated_at), type(qcWV.now()))
YKHO.assertEqual(type(kYGz.updated_at), qcWV)
YKHO.assertTrue(hasattr(kYGz, 'updated_at')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IdwE(YKHO):\n Mkmy = E1cg()\n YUzl = Mkmy.updated_at\n Mkmy.save()\n YKHO.assertNotEqual(YUzl, Mkmy.updated_at)",
"def Na8g(YKHO):\n YKHO.assertIsInstance(YKHO.obj.update_at, qcWV)",
"def Na8g(YKHO):\n YKHO.assertIsInstance(YKHO.obj.update_at, qcWV)",
"def Na8g(YKHO):\n YKHO.assertIs... | [
"0.8446482",
"0.810859",
"0.810859",
"0.810859",
"0.8075144",
"0.8070695",
"0.801376",
"0.7932672",
"0.7910144",
"0.7822954",
"0.7792112",
"0.77798676",
"0.76561564",
"0.7625252",
"0.7611181",
"0.7477089",
"0.73714316",
"0.7286068",
"0.7260684",
"0.7260684",
"0.7260684",
"0... | 0.8449542 | 0 |
Sets the name of this NicProperties. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgoD(YKHO, mWFP: str) -> None:\n mWFP = str(mWFP)\n if len(mWFP) > 100:\n mWFP = mWFP[:100]\n YKHO.prop_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 ... | [
"0.7805734",
"0.76355445",
"0.76195514",
"0.76195514",
"0.76195514",
"0.76195514",
"0.76195514",
"0.7593033",
"0.7593033",
"0.75766164",
"0.75605834",
"0.7551873",
"0.75146437",
"0.7506389",
"0.749766",
"0.7403438",
"0.73671365",
"0.72911584",
"0.72911584",
"0.72855884",
"0.7... | 0.0 | -1 |
Sets the mac of this NicProperties. | def Pp4r(YKHO, Pp4r):
YKHO._mac = Pp4r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SE2y(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.7533984",
"0.70530933",
"0.63903344",
"0.63852715",
"0.63852715",
"0.6312601",
"0.6276337",
"0.6205089",
"0.61271477",
"0.60897404",
"0.60897404",
"0.6078541",
"0.6056407",
"0.6010822",
"0.59828717",
"0.5923654",
"0.59165025",
"0.5839205",
"0.5834562",
"0.5828612",
"0.5731... | 0.779444 | 0 |
Sets the ips of this NicProperties. | def aaGI(YKHO, aaGI):
YKHO._ips = aaGI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def re5L(YKHO):\n for wohN, iQG7 in YKHO.interfaces.items():\n for G1Hx, Ty9i in iQG7.items():\n if G1Hx == 'address':\n D8Ke, y0cW = tdN3(Ty9i)\n YKHO.interfaces[wohN]['ip_address'] = D8Ke\n YKHO.interfaces[wohN]['ip_prefix'] = y0cW\n ... | [
"0.6625338",
"0.5901696",
"0.5705123",
"0.5499859",
"0.54270715",
"0.5403276",
"0.5350545",
"0.53049237",
"0.5277277",
"0.52653635",
"0.5236248",
"0.52024084",
"0.5202223",
"0.5198747",
"0.51927537",
"0.5190193",
"0.5187783",
"0.5183375",
"0.51768583",
"0.5164255",
"0.5164255... | 0.7682676 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, UwIh):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80885184",
"0.80885184",
"0.805514",
"0.7983044",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, UwIh):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Runs at the end of the test case; drops the db | def tBIc(YKHO):
with YKHO.app.app_context():
NCls.session.remove()
NCls.drop_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mTtn():\n GTYX()",
"def tBIc(YKHO):\n NCls.session.commit()\n NCls.drop_all()",
"def tBIc(YKHO):\n YKHO.db.drop_all()\n pass",
"def tBIc(YKHO):\n with P4t4.app_context():\n NCls = P4t4.db.get_db()\n DpUl = NCls.cursor()\n with P4t4.open_resource('sql/drop_tests.sql'... | [
"0.87688816",
"0.8661875",
"0.8634616",
"0.85929716",
"0.8583327",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
"0.85801166",
... | 0.82276815 | 74 |
Return the exception message as a string. That message is also available via the 'message' property. | def Eair(YKHO):
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BuEc(YKHO) -> str:\n return qe4Y.get(YKHO, 'exception_message')",
"def BuEc(YKHO):\n return YKHO._exception_message",
"def _T21(AJ5d):\n if hasattr(AJ5d, 'message'):\n return str(AJ5d.message)\n return str(AJ5d)",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def rhwM(YK... | [
"0.8818971",
"0.8671207",
"0.8437717",
"0.7510084",
"0.7481239",
"0.7481239",
"0.7481239",
"0.7479361",
"0.7412919",
"0.73954713",
"0.73666924",
"0.7348801",
"0.7335201",
"0.7325931",
"0.7267539",
"0.721931",
"0.7197319",
"0.7134845",
"0.71122295",
"0.70249623",
"0.70056784",... | 0.6356063 | 97 |
Return the type of the exception as string. | def FRul(YKHO):
return YKHO._stype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wfRC(YKHO):\n return YKHO.__class__.__name__",
"def FRul(YKHO) -> str:\n raise NotImplementedError",
"def FRul(YKHO) -> str:\n raise NotImplementedError",
"def xhwE(YKHO):\n return YKHO.err_type",
"def UkSm(YKHO):\n return YKHO.properties.get('TypeAsString', None)",
"def BuEc(YKHO):\n ... | [
"0.7268135",
"0.68084705",
"0.68084705",
"0.6798615",
"0.67748123",
"0.6680886",
"0.6656614",
"0.6619952",
"0.6612963",
"0.660463",
"0.6588737",
"0.6585325",
"0.6556647",
"0.65411013",
"0.6499016",
"0.6468789",
"0.64451057",
"0.6440919",
"0.6431358",
"0.63928306",
"0.63822603... | 0.0 | -1 |
Green(self) > byte Returns the green intensity. | def Y_W2(*qIxc, **B2fa):
return nAU3.Colour_Green(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jlxe(YKHO) -> float:\n return YKHO._green",
"def PQDT(YKHO):\n return Ywzx.itkRGBAPixelUS_GetGreen(YKHO)",
"def PQDT(YKHO):\n return Ywzx.itkRGBAPixelUC_GetGreen(YKHO)",
"def HKoa(YKHO):\n return sum((YKHO.value(0), YKHO.value(1), YKHO.value(2))) / 3",
"def Z5Q9(YKHO) -> float:\n return ... | [
"0.81760025",
"0.79025",
"0.78514856",
"0.6951732",
"0.68796027",
"0.6655894",
"0.6627976",
"0.6626696",
"0.6514308",
"0.6488908",
"0.64174515",
"0.6388856",
"0.6288324",
"0.6256715",
"0.62535447",
"0.6218235",
"0.62176466",
"0.6196544",
"0.6182686",
"0.6182686",
"0.6182686",... | 0.63827515 | 12 |
Blue(self) > byte Returns the blue intensity. | def f5Cl(*qIxc, **B2fa):
return nAU3.Colour_Blue(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pPPK(YKHO) -> float:\n return YKHO._blue",
"def rjbg(YKHO):\n return Ywzx.itkRGBAPixelUS_GetBlue(YKHO)",
"def rjbg(YKHO):\n return Ywzx.itkRGBAPixelUC_GetBlue(YKHO)",
"def asva(YKHO):\n return YKHO.get_value('bri')",
"def Z5Q9(YKHO) -> float:\n return YKHO._red",
"def jlxe(YKHO) -> flo... | [
"0.8360991",
"0.7828259",
"0.7804095",
"0.715824",
"0.70967966",
"0.7013391",
"0.67761195",
"0.66233706",
"0.6564048",
"0.6564048",
"0.6564048",
"0.6553123",
"0.65057445",
"0.6501531",
"0.6494562",
"0.64891136",
"0.64711106",
"0.647068",
"0.6453906",
"0.6440137",
"0.6440137",... | 0.67454803 | 7 |
Alpha(self) > byte Returns the Alpha value. | def V6q7(*qIxc, **B2fa):
return nAU3.Colour_Alpha(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6q7(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO) -> float:\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO.unif[17]",
"def dveo(YKHO):\n pass",
"def... | [
"0.75611216",
"0.74258167",
"0.74258167",
"0.74258167",
"0.7183002",
"0.6880723",
"0.68146104",
"0.6781412",
"0.66782963",
"0.6608341",
"0.66038847",
"0.65611136",
"0.64354295",
"0.63395745",
"0.6332305",
"0.632867",
"0.6283668",
"0.6079907",
"0.6073131",
"0.6004454",
"0.5996... | 0.59792006 | 22 |
IsOk(self) > bool Returns True if the colour object is valid (the colour has been initialised with RGB values). | def plAY(*qIxc, **B2fa):
return nAU3.Colour_IsOk(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plAY(*qIxc, **B2fa):\n return nAU3.Brush_IsOk(*qIxc, **B2fa)",
"def d7Eb(YKHO) -> bool:\n return YKHO.image_shape[2] == 3",
"def K0BG(YKHO):\n YKHO.assertTrue(z05O('rgb(12,23,5)'))\n YKHO.assertTrue(z05O('rgb(12, 223, 225)'))\n YKHO.assertTrue(z05O('rgba(12, 223, 225, 1)'))\n YKHO.assertT... | [
"0.6876855",
"0.6758176",
"0.6754378",
"0.65324205",
"0.6523505",
"0.64940333",
"0.6406349",
"0.63958144",
"0.63725483",
"0.63427854",
"0.6336074",
"0.6316362",
"0.62981033",
"0.62848824",
"0.62828475",
"0.6279045",
"0.6268882",
"0.618127",
"0.61620384",
"0.6102551",
"0.60988... | 0.80903614 | 0 |
GetRGBA(self) > unsigned int | def hN3u(*qIxc, **B2fa):
return nAU3.Colour_GetRGBA(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfpW(YKHO):\n return YKHO._rgba",
"def qfpW(YKHO):\n return YKHO._rgba",
"def k7W0(YKHO):\n return '#%02X%02X%02X%02X' % (YKHO.r, YKHO.g, YKHO.b, YKHO.a)",
"def k7W0(YKHO, d6pt):\n return YKHO._rgba_list[d6pt]",
"def BCp6(YKHO):\n return YKHO._rgba[3]",
"def cCuI(YKHO):\n return (YK... | [
"0.6924718",
"0.6924718",
"0.68817943",
"0.67397",
"0.65392005",
"0.6519654",
"0.6504644",
"0.6394937",
"0.63619524",
"0.629188",
"0.6199209",
"0.61631554",
"0.61416894",
"0.60746866",
"0.60315526",
"0.59896207",
"0.5985414",
"0.59735626",
"0.596307",
"0.5927172",
"0.5911945"... | 0.76160216 | 0 |
__eq__(self, PyObject other) > bool Compare colours for equality. | def xa14(*qIxc, **B2fa):
return nAU3.Colour___eq__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.is_red() == Elif.is_red()",
"def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif.color == YKHO.color",
"def xa14(YKHO, Elif):\n return YKHO.bg_color == Elif.bg_color and YKHO.width == Elif.width and (YKHO.height == Elif.height)",
"def xa14(YKHO, Elif)... | [
"0.82676995",
"0.8139281",
"0.78097165",
"0.75846905",
"0.74298155",
"0.7105221",
"0.7054447",
"0.6922469",
"0.6885329",
"0.6695798",
"0.6667374",
"0.6666543",
"0.6663763",
"0.66339964",
"0.66192347",
"0.6588205",
"0.6578885",
"0.65663296",
"0.6562701",
"0.6562701",
"0.655945... | 0.7879324 | 2 |
__ne__(self, PyObject other) > bool Compare colours for inequality. | def Vdqg(*qIxc, **B2fa):
return nAU3.Colour___ne__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return bool(YKHO != Elif)",
"def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y != Elif.y",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO... | [
"0.75597334",
"0.751513",
"0.7507814",
"0.7507814",
"0.7493127",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"0.7480812",
"... | 0.0 | -1 |
NamedColour(String colourName) > Colour Constructs a colour object using a colour name listed in ``wx.TheColourDatabase``, or any string format supported by the wxColour typemaps. | def ZI2O(*qIxc, **B2fa):
wEf2 = nAU3.new_NamedColour(*qIxc, **B2fa)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JT5y(XwRx):\n if XwRx in YxOE:\n return foAU(*YxOE[XwRx])\n raise KeyError(\"'%s' is not a recognized colour name\" % XwRx)",
"def ZwW7(YKHO, QkpH):\n Z9rn = lnPd.NamedColour(QkpH)\n YKHO.Set(Z9rn.red, Z9rn.green, Z9rn.blue, Z9rn.alpha)",
"def qfpW(mWFP):\n if mWFP not in Jw9H:\n ... | [
"0.72774285",
"0.71628475",
"0.6177496",
"0.5771097",
"0.5688058",
"0.5661082",
"0.5630128",
"0.5615744",
"0.5597888",
"0.55686986",
"0.5516458",
"0.5435619",
"0.54257756",
"0.54202664",
"0.5400199",
"0.53235954",
"0.5322593",
"0.5309801",
"0.52484065",
"0.5241951",
"0.523712... | 0.7677154 | 0 |
__eq__(self, Pen other) > bool | def xa14(*qIxc, **B2fa):
return nAU3.Pen___eq__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.is_red() == Elif.is_red()",
"def xa14(YKHO, Elif):\n Aofo = False\n if isinstance(Elif, PhJ3) and YKHO.area == Elif.area:\n return True\n else:\n return False",
"def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif.color == YKHO.color... | [
"0.78648907",
"0.7734359",
"0.7655563",
"0.76111764",
"0.76056176",
"0.76056176",
"0.7568113",
"0.7537957",
"0.74997926",
"0.7490624",
"0.7483562",
"0.7483562",
"0.7471575",
"0.7470777",
"0.74596655",
"0.7428628",
"0.7418744",
"0.7415011",
"0.7409507",
"0.74067384",
"0.740568... | 0.7506087 | 8 |
__ne__(self, Pen other) > bool | def Vdqg(*qIxc, **B2fa):
return nAU3.Pen___ne__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return YKHO.point != Elif.point",
"def Vdqg(YKHO, Elif):\n return bool(YKHO != Elif)",
"def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y != Elif.y",
"def Vdqg(YKHO: _TT, Elif: object) -> bool:\n return YKHO.ne(Elif)",
"def Vdqg(YKHO, Elif):\n if YKHO.x != Eli... | [
"0.8078264",
"0.80067253",
"0.7948071",
"0.7916113",
"0.79153347",
"0.78729916",
"0.787184",
"0.78698087",
"0.78698087",
"0.78698087",
"0.78665113",
"0.78665113",
"0.7863369",
"0.7863369",
"0.7863369",
"0.7863369",
"0.7863369",
"0.7863369",
"0.7863369",
"0.7863369",
"0.786336... | 0.0 | -1 |
SetColour(self, Colour col) Set the brush's `wx.Colour`. | def KnAB(*qIxc, **B2fa):
return nAU3.Brush_SetColour(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbHt(YKHO, fvDH):\n YKHO.colour = fvDH",
"def KnAB(YKHO, OfK8):\n YKHO._colour = OfK8\n return YKHO",
"def OEEb(YKHO, Z6A6):\n YKHO._colBack = Z6A6",
"def nUel(YKHO, qfpW):\n YKHO._penColor = F6MG(qfpW)\n YKHO.setDirty()",
"def _n1E(YKHO, UTX6, OfK8):\n GTZY.set_item_color(UTX6, Of... | [
"0.8048862",
"0.7054648",
"0.6635376",
"0.66098154",
"0.64419276",
"0.64187664",
"0.63748777",
"0.6275615",
"0.6270528",
"0.6241375",
"0.62110144",
"0.6209929",
"0.61823326",
"0.6168987",
"0.61632437",
"0.6161342",
"0.61604416",
"0.6121756",
"0.6073037",
"0.6054079",
"0.60343... | 0.7555037 | 1 |
GetStipple(self) > Bitmap Returns the stiple `wx.Bitmap` of the brush. If the brush does not have a wx.STIPPLE style, then the return value may be nonNone but an uninitialised bitmap (`wx.Bitmap.Ok` returns False). | def d2tz(*qIxc, **B2fa):
return nAU3.Brush_GetStipple(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qX5X():\n nPrm = [0, 0, 0, 192, 192, 192, 192, 192, 192, 0, 0, 0]\n VXjJ = lnPd.EmptyImage(2, 2)\n ewCu = 0\n for P2GO in Ni9Y(2):\n for gDyN in Ni9Y(2):\n VXjJ.SetRGB(P2GO, gDyN, nPrm[ewCu], nPrm[ewCu + 1], nPrm[ewCu + 2])\n ewCu = ewCu + 3\n return VXjJ.ConvertToBi... | [
"0.67806125",
"0.64842",
"0.61410284",
"0.6021668",
"0.5848265",
"0.5820336",
"0.5598087",
"0.55719906",
"0.55142915",
"0.5505591",
"0.53995776",
"0.53440714",
"0.5331159",
"0.5287365",
"0.52762973",
"0.5154474",
"0.5144719",
"0.5106981",
"0.50257784",
"0.49986795",
"0.497664... | 0.76203763 | 0 |
IsOk(self) > bool Returns True if the brush is initialised and valid. | def plAY(*qIxc, **B2fa):
return nAU3.Brush_IsOk(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plAY(YKHO):\n return YKHO.window != None",
"def plAY(YKHO):\n return True",
"def plAY(*qIxc, **B2fa):\n return nAU3.Colour_IsOk(*qIxc, **B2fa)",
"def kfZc(YKHO) -> bool:\n return len(YKHO.solids) > 0",
"def deVW(YKHO) -> bool:\n pass",
"def deVW(YKHO) -> bool:\n return True",
"def... | [
"0.70515454",
"0.6956906",
"0.68219525",
"0.67729735",
"0.6763273",
"0.6647551",
"0.664633",
"0.6606386",
"0.65801877",
"0.6491887",
"0.6479505",
"0.6476512",
"0.64426225",
"0.64426225",
"0.64242995",
"0.64103407",
"0.6350292",
"0.63286513",
"0.631022",
"0.6290608",
"0.628882... | 0.7974967 | 0 |
BrushFromBitmap(Bitmap stippleBitmap) > Brush Constructs a stippled brush using a bitmap. | def mJhP(*qIxc, **B2fa):
wEf2 = nAU3.new_BrushFromBitmap(*qIxc, **B2fa)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _MuF(*qIxc, **B2fa):\n return nAU3.Brush_SetStipple(*qIxc, **B2fa)",
"def qX5X():\n nPrm = [0, 0, 0, 192, 192, 192, 192, 192, 192, 0, 0, 0]\n VXjJ = lnPd.EmptyImage(2, 2)\n ewCu = 0\n for P2GO in Ni9Y(2):\n for gDyN in Ni9Y(2):\n VXjJ.SetRGB(P2GO, gDyN, nPrm[ewCu], nPrm[ewCu ... | [
"0.64376104",
"0.61592376",
"0.6014531",
"0.5758842",
"0.5620219",
"0.5344383",
"0.5287982",
"0.52606094",
"0.5164921",
"0.5136527",
"0.5125119",
"0.5107796",
"0.5097363",
"0.5091848",
"0.4872215",
"0.48566565",
"0.48028538",
"0.47844753",
"0.47700003",
"0.47232684",
"0.47123... | 0.7732359 | 0 |
GetWidth(self) > int Gets the width of the bitmap in pixels. | def Vn4h(*qIxc, **B2fa):
return nAU3.Bitmap_GetWidth(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TVTK(YKHO) -> int:\n return YKHO._image_data.width",
"def xiCJ(YKHO):\n return gmYn(YKHO.image.width)",
"def xiCJ(YKHO):\n return YKHO._image.width()",
"def xiCJ(YKHO) -> int:\n ...",
"def xiCJ(YKHO):\n return YKHO.width",
"def xiCJ(YKHO):\n return YKHO.width",
"def V8C_(YKHO):\n ... | [
"0.8079931",
"0.8033149",
"0.789915",
"0.7689316",
"0.7645315",
"0.7645315",
"0.7620828",
"0.7596558",
"0.7545207",
"0.75346327",
"0.75022703",
"0.7453529",
"0.7453529",
"0.7453529",
"0.7446264",
"0.74311316",
"0.7396919",
"0.73814934",
"0.7375884",
"0.7375884",
"0.7375884",
... | 0.7807338 | 3 |
SetMask(self, Mask mask) Sets the mask for this bitmap. | def uKQj(*qIxc, **B2fa):
return nAU3.Bitmap_SetMask(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qnsr(YKHO, ZHfW):\n YKHO.mask = ZHfW",
"def tvdR(YKHO, ZHfW):\n YKHO.mask = ZHfW",
"def ZHfW(YKHO, ZHfW):\n YKHO._mask = ZHfW",
"def ZHfW(YKHO, ZHfW):\n YKHO._mask = ZHfW",
"def tvdR(YKHO, ZHfW):\n YKHO.mask = YKHO._image_to_vector(ZHfW)\n YKHO._mark_cache_invalid()",
"def tvdR(YKHO... | [
"0.84236276",
"0.8164809",
"0.7762064",
"0.7762064",
"0.7280294",
"0.67731804",
"0.66524476",
"0.65826935",
"0.6562874",
"0.6529224",
"0.6339412",
"0.629984",
"0.6246021",
"0.6238461",
"0.61695683",
"0.6158018",
"0.6096771",
"0.58663183",
"0.5719435",
"0.5639755",
"0.5575068"... | 0.80040294 | 2 |
SetMaskColour(self, Colour colour) Create a Mask based on a specified colour in the Bitmap. | def yb4y(*qIxc, **B2fa):
return nAU3.Bitmap_SetMaskColour(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKQj(*qIxc, **B2fa):\n return nAU3.Bitmap_SetMask(*qIxc, **B2fa)",
"def rqSI(ZHfW: int, dQgj: int, qfpW: int):\n return ZHfW | qfpW << (dQgj << 1)",
"def qnsr(YKHO, ZHfW):\n YKHO.mask = ZHfW",
"def tvdR(YKHO, ZHfW):\n YKHO.mask = ZHfW",
"def f2Y_(Xn71, ZHfW, qfpW=(1, 0, 0)):\n _9tk = oyI... | [
"0.7112309",
"0.6748335",
"0.6342155",
"0.6330602",
"0.62169594",
"0.5956002",
"0.5956002",
"0.57333094",
"0.55756867",
"0.5564996",
"0.54423314",
"0.54279685",
"0.5405677",
"0.53333783",
"0.5309479",
"0.5265764",
"0.525834",
"0.52348965",
"0.52335083",
"0.52270615",
"0.52098... | 0.8239239 | 0 |
Copy data from a RGBA buffer object to replace the bitmap pixel data. This method is now just a compatibility wrapper around CopyFromBuffer. | def s4wc(YKHO, NRcB):
YKHO.CopyFromBuffer(NRcB, lnPd.BitmapBufferFormat_RGBA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2rO(TVTK, H2v2, q5yJ):\n return nAU3._BitmapFromBufferRGBA(TVTK, H2v2, q5yJ)",
"def UtrH(*qIxc, **B2fa):\n return nAU3._BitmapFromBufferRGBA(*qIxc, **B2fa)",
"def W9zT(*qIxc, **B2fa):\n return nAU3.Bitmap_CopyFromBuffer(*qIxc, **B2fa)",
"def JNP2(*qIxc, **B2fa):\n return nAU3.Bitmap_CopyToBu... | [
"0.7381187",
"0.71780235",
"0.7085007",
"0.6738986",
"0.65923333",
"0.6477102",
"0.6151017",
"0.56326365",
"0.5416035",
"0.5376735",
"0.5375446",
"0.5372396",
"0.5256919",
"0.52019227",
"0.5142026",
"0.50957084",
"0.50822353",
"0.5066097",
"0.50261796",
"0.501141",
"0.5006464... | 0.7962538 | 0 |
__eq__(self, Bitmap other) > bool | def xa14(*qIxc, **B2fa):
return nAU3.Bitmap___eq__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.bleed == Elif.bleed and YKHO.width == Elif.width and (YKHO.height == Elif.height)",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mYeQ):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.bg_color == Elif.bg_co... | [
"0.7730994",
"0.76399964",
"0.7496171",
"0.740459",
"0.736399",
"0.73470855",
"0.73205304",
"0.72873366",
"0.72483397",
"0.72476393",
"0.72476393",
"0.72228634",
"0.7198883",
"0.7166543",
"0.71434087",
"0.71414435",
"0.71171105",
"0.71131706",
"0.7108498",
"0.71039474",
"0.71... | 0.8237517 | 0 |
__ne__(self, Bitmap other) > bool | def Vdqg(*qIxc, **B2fa):
return nAU3.Bitmap___ne__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return oyIN.all(YKHO.grid != Elif.grid) or oyIN.all(YKHO.pos != Elif.pos)",
"def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y != Elif.y",
"def Vdqg(YKHO, Elif):\n return YKHO._real != Elif.real or YKHO._imag != Elif.imag",
"def Vdqg(YKHO, Elif):\n if YKHO.x != Eli... | [
"0.7662945",
"0.76599",
"0.76184773",
"0.7587923",
"0.7576424",
"0.745622",
"0.7455657",
"0.7455657",
"0.7455657",
"0.74555784",
"0.74555784",
"0.744107",
"0.7432471",
"0.7432471",
"0.7430871",
"0.74269414",
"0.7421976",
"0.74164134",
"0.74164134",
"0.74164134",
"0.7408413",
... | 0.74054724 | 21 |