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 the dataset in train and test | def Qb89(Rwqe, CjQX):
return jbYn.train_test_split(Rwqe, CjQX, test_size=0.1, random_state=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)",
"def FJfc(YKHO, NI2E=0.2):\n YKHO.training_data, YKHO.test_data, YKHO.training_labels, YKHO.test_labels = bHtP(YKHO.trainin... | [
"0.8802637",
"0.86079246",
"0.8466979",
"0.82975525",
"0.8284587",
"0.827557",
"0.8264588",
"0.81958085",
"0.81672466",
"0.8152023",
"0.8112103",
"0.8103609",
"0.8087945",
"0.80442524",
"0.8010122",
"0.7993666",
"0.7990225",
"0.79382634",
"0.79229766",
"0.79132396",
"0.786750... | 0.78183466 | 26 |
Gets the email of this UserBase. The Zulip API email address of the user or bot. If you do not have permission to view the email address of the target user, this will be a fake email address that is usable for the Zulip API but nothing else. | def D3lj(YKHO):
return YKHO._email | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('email')",
"def RC0X(YKHO):\n return YKHO._email",
"def RC0X(YKHO):\n return YKHO.email",
"def cHyp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_email')",
"def RC0X(YKHO):\n return YKHO.refere... | [
"0.8533475",
"0.80256367",
"0.80006677",
"0.7957389",
"0.78827",
"0.7873399",
"0.78575724",
"0.7735007",
"0.76502186",
"0.76435256",
"0.7608377",
"0.76025885",
"0.76025885",
"0.76025885",
"0.75683004",
"0.75669813",
"0.75593585",
"0.7512967",
"0.74382466",
"0.7384822",
"0.731... | 0.76262873 | 12 |
Sets the email of this UserBase. The Zulip API email address of the user or bot. If you do not have permission to view the email address of the target user, this will be a fake email address that is usable for the Zulip API but nothing else. | def D3lj(YKHO, D3lj):
YKHO._email = D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lEeL(YKHO, D3lj):\n YKHO.email = D3lj\n return YKHO",
"def D3lj(YKHO, D3lj):\n if YKHO.local_vars_configuration.client_side_validation and D3lj is None:\n raise ValueError('Invalid value for `email`, must not be `None`')\n YKHO._email = D3lj",
"def D3lj(YKHO, D3lj):\n if YKHO.local_va... | [
"0.7745995",
"0.734506",
"0.7238552",
"0.71991414",
"0.70291823",
"0.69148123",
"0.67069113",
"0.66328615",
"0.66016483",
"0.65045893",
"0.65045893",
"0.64563024",
"0.6400238",
"0.6398678",
"0.63835156",
"0.6366219",
"0.6354441",
"0.6354117",
"0.6353652",
"0.6346813",
"0.6336... | 0.7170487 | 10 |
Gets the full_name of this UserBase. Full name of the user or bot, used for all display purposes. | def eHMM(YKHO):
return YKHO._full_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return YKHO.user.get_full_name() or None",
"def xpqj(YKHO):\n return YKHO.username",
"def xpqj(YKHO):\n return YKHO.username",
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YKHO.username\n return eHMM.strip()",
"d... | [
"0.8647986",
"0.8576306",
"0.8576306",
"0.8471668",
"0.84708536",
"0.8437073",
"0.8408093",
"0.8342528",
"0.8340403",
"0.8282167",
"0.8266369",
"0.8264482",
"0.81552136",
"0.8024534",
"0.8024534",
"0.80235624",
"0.8002769",
"0.8002769",
"0.8002769",
"0.8002769",
"0.8002769",
... | 0.78962016 | 26 |
Sets the full_name of this UserBase. Full name of the user or bot, used for all display purposes. | def eHMM(YKHO, eHMM):
YKHO._full_name = eHMM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_VB(YKHO, V_VB):\n YKHO._user_full_name = V_VB",
"def eHMM(YKHO):\n return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name)",
"def eHMM(YKHO):\n return YKHO.user.get_full_name() or None",
"def gBdT(YKHO, BWXx):\n YKHO.fullname = BWXx",
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_na... | [
"0.8363899",
"0.72705364",
"0.71784294",
"0.71450037",
"0.7083193",
"0.69895613",
"0.6981791",
"0.6929003",
"0.6929003",
"0.6929003",
"0.6892608",
"0.6891887",
"0.6880059",
"0.6880059",
"0.68403715",
"0.6780736",
"0.6769605",
"0.6752243",
"0.67450094",
"0.6741219",
"0.6727072... | 0.81382096 | 2 |
Gets the is_admin of this UserBase. A boolean specifying whether the user is an organization administrator. | def _Kb1(YKHO):
return YKHO._is_admin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO) -> bool:\n return YKHO._is_admin",
"def _Kb1(YKHO):\n return YKHO.admin",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False",
"def _Kb1(YKHO):\n if YKHO.user is None:\n... | [
"0.7881886",
"0.77665955",
"0.77486885",
"0.7689977",
"0.7461093",
"0.73404866",
"0.7156036",
"0.71471244",
"0.71004605",
"0.7084834",
"0.7068",
"0.7034636",
"0.70345366",
"0.6991166",
"0.69782645",
"0.6957708",
"0.6923771",
"0.6915408",
"0.6905435",
"0.6894784",
"0.6880022",... | 0.7862511 | 1 |
Sets the is_admin of this UserBase. A boolean specifying whether the user is an organization administrator. | def _Kb1(YKHO, _Kb1):
YKHO._is_admin = _Kb1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO, _Kb1: bool):\n if _Kb1 is None:\n raise ValueError('Invalid value for `is_admin`, must not be `None`')\n YKHO._is_admin = _Kb1",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False",
"def _Kb1(YKHO) -> bool:\n ... | [
"0.83135295",
"0.66889644",
"0.6337106",
"0.626878",
"0.62481576",
"0.62481576",
"0.62017304",
"0.6183351",
"0.6072974",
"0.60349",
"0.601608",
"0.59858966",
"0.59276825",
"0.58737713",
"0.58411723",
"0.5830839",
"0.5752557",
"0.5735811",
"0.5708521",
"0.57063186",
"0.5701734... | 0.8068177 | 1 |
Gets the is_owner of this UserBase. | def b9HF(YKHO):
return YKHO._is_owner | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZBFz(YKHO):\n return YKHO._tag == 'user_is_owner'",
"def gCH0(YKHO):\n return False",
"def jD8i(YKHO, z1Rg):\n return YKHO._owner is z1Rg",
"def Fqw8(YKHO):\n return YKHO.__owner",
"def qsJ6(YKHO) -> ZOrr.User:\n if YKHO.config.owner_id:\n return YKHO.get_user(YKHO.config.owner_id... | [
"0.7645217",
"0.7104894",
"0.6914149",
"0.6853681",
"0.67683494",
"0.6743861",
"0.66868156",
"0.65692985",
"0.6566306",
"0.6566306",
"0.6566118",
"0.6552337",
"0.65283376",
"0.6492521",
"0.64828247",
"0.6478465",
"0.64477557",
"0.6443881",
"0.64351815",
"0.6400954",
"0.632009... | 0.79326665 | 0 |
Gets the is_billing_admin of this UserBase. | def DiIj(YKHO):
return YKHO._is_billing_admin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DiIj(YKHO, DiIj):\n YKHO._is_billing_admin = DiIj",
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n if YKHO.user is None:\n return False\n if QMSQ(YKHO.user._id) in YKHO.barcamp.admins:\n return True\n if YKHO.user.is_admin:... | [
"0.75745505",
"0.6962725",
"0.6885912",
"0.6775686",
"0.67065483",
"0.6678298",
"0.6678298",
"0.66013443",
"0.6554211",
"0.6432071",
"0.6286309",
"0.6203971",
"0.61566216",
"0.6140026",
"0.61183566",
"0.60726625",
"0.6026393",
"0.6017969",
"0.59559476",
"0.59489256",
"0.59279... | 0.8872368 | 0 |
Sets the is_billing_admin of this UserBase. | def DiIj(YKHO, DiIj):
YKHO._is_billing_admin = DiIj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DiIj(YKHO):\n return YKHO._is_billing_admin",
"def _Kb1(YKHO, _Kb1):\n YKHO._is_admin = _Kb1",
"def _Kb1(YKHO, _Kb1: bool):\n if _Kb1 is None:\n raise ValueError('Invalid value for `is_admin`, must not be `None`')\n YKHO._is_admin = _Kb1",
"def nwzI(YKHO, nwzI):\n YKHO._default_bill... | [
"0.737039",
"0.6722866",
"0.6429481",
"0.59705704",
"0.5679304",
"0.5440798",
"0.5371101",
"0.52895933",
"0.52759075",
"0.52700037",
"0.52601206",
"0.5256608",
"0.5244197",
"0.5224175",
"0.517771",
"0.51590234",
"0.5110502",
"0.50515014",
"0.503452",
"0.503452",
"0.50335866",... | 0.8755264 | 0 |
Gets the bot_type of this UserBase. | def SfZ4(YKHO):
return YKHO._bot_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnbL(YKHO) -> str:\n return YKHO.user.chat_type.name",
"def gSQP(YKHO):\n return YKHO._get('lobby_type')",
"def FRul(YKHO) -> str:\n return Dy8w.USER.name",
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n else:\n return None",
"de... | [
"0.64627266",
"0.6358613",
"0.614378",
"0.6125625",
"0.6125625",
"0.59903854",
"0.59903854",
"0.5968016",
"0.5968016",
"0.59540266",
"0.5942109",
"0.58541214",
"0.585159",
"0.58268684",
"0.58268684",
"0.58098865",
"0.57802206",
"0.5750634",
"0.5730113",
"0.56939965",
"0.56846... | 0.83526576 | 0 |
Sets the bot_type of this UserBase. | def SfZ4(YKHO, SfZ4):
YKHO._bot_type = SfZ4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfZ4(YKHO):\n return YKHO._bot_type",
"def TG_K(YKHO, AvtT=RqVe):\n YKHO.type = AvtT",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def W8x2(YKHO, W8x2):\n YKHO._is_bot = W8x2",
"def TG_K(YKHO, Qy0e):\n YKHO.type_balle = Qy0e",
"def TG_K... | [
"0.6873118",
"0.60826707",
"0.5980632",
"0.5980632",
"0.5958783",
"0.59285235",
"0.58882517",
"0.56953204",
"0.56326497",
"0.5610567",
"0.55728096",
"0.5503789",
"0.5461631",
"0.54612577",
"0.5455133",
"0.5455133",
"0.5455133",
"0.5455133",
"0.5442875",
"0.5397702",
"0.539770... | 0.8411738 | 0 |
Gets the user_id of this UserBase. The unique ID of the user. | def uJjO(YKHO):
return YKHO._user_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ad9r(YKHO):\n return YKHO.id_user",
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def uJjO(YKHO) -> str:\n return YKHO._user_id",
"def unpH(YKHO) -> int:\n return YKHO.user_id",
"def unpH(YKHO):\n return YKHO.user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def Ad9r(YKHO):... | [
"0.833126",
"0.8074868",
"0.8074868",
"0.79576075",
"0.7943644",
"0.7802189",
"0.77085686",
"0.75711966",
"0.7557508",
"0.74490136",
"0.74490136",
"0.7431941",
"0.7417376",
"0.7399928",
"0.73023885",
"0.7278637",
"0.7249883",
"0.7241275",
"0.71973765",
"0.71973765",
"0.719737... | 0.81448174 | 5 |
Sets the user_id of this UserBase. The unique ID of the user. | def uJjO(YKHO, uJjO):
YKHO._user_id = uJjO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r2U1(YKHO, r2U1):\n YKHO._id_user = r2U1",
"def uJjO(YKHO, uJjO):\n if uJjO is None:\n raise ValueError('Invalid value for `user_id`, must not be `None`')\n YKHO._user_id = uJjO",
"def uJjO(YKHO, uJjO):\n if uJjO is None:\n raise ValueError('Invalid value for `user_id`, must not b... | [
"0.8062206",
"0.7894141",
"0.7894141",
"0.78666085",
"0.7841344",
"0.7453738",
"0.7334409",
"0.7047939",
"0.69315517",
"0.6743944",
"0.67409",
"0.67378694",
"0.67298764",
"0.65137416",
"0.6411481",
"0.6411481",
"0.6393266",
"0.6393266",
"0.6393266",
"0.6393266",
"0.6393266",
... | 0.8119237 | 10 |
Gets the bot_owner_id of this UserBase. | def vSmh(YKHO):
return YKHO._bot_owner_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qsJ6(YKHO) -> None:\n return YKHO.bot.get_user(YKHO.bot.config.owner_ids[0])",
"def gPmJ(YKHO) -> int:\n return YKHO.proto.owner",
"def gPmJ(YKHO):\n return YKHO._owner_id",
"def gPmJ(YKHO) -> str:\n return YKHO.__owner_id",
"def gPmJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'owner_id')",
... | [
"0.74863726",
"0.7462389",
"0.7429973",
"0.73903984",
"0.7214011",
"0.7123705",
"0.70963526",
"0.7041297",
"0.6885209",
"0.6862868",
"0.68442214",
"0.6656169",
"0.66238314",
"0.65125304",
"0.65125304",
"0.6489912",
"0.6465008",
"0.639576",
"0.636058",
"0.63590413",
"0.6319276... | 0.86790913 | 0 |
Sets the bot_owner_id of this UserBase. | def vSmh(YKHO, vSmh):
YKHO._bot_owner_id = vSmh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPmJ(YKHO, gPmJ):\n YKHO._owner_id = gPmJ",
"def gPmJ(YKHO, gPmJ):\n YKHO._owner_id = gPmJ",
"def vSmh(YKHO):\n return YKHO._bot_owner_id",
"def KVVd(YKHO, qsJ6):\n YKHO.__owner = qsJ6",
"def gPmJ(YKHO, gPmJ):\n if gPmJ is None:\n raise ValueError('Invalid value for `owner_id`, mu... | [
"0.73704034",
"0.733693",
"0.71219534",
"0.69730103",
"0.6940321",
"0.6678052",
"0.64090276",
"0.62162405",
"0.62162405",
"0.62162405",
"0.62162405",
"0.6192035",
"0.6192035",
"0.6192035",
"0.6192035",
"0.60748756",
"0.6034818",
"0.59885144",
"0.5901746",
"0.58401716",
"0.578... | 0.8572632 | 0 |
Sets the is_active of this UserBase. A boolean specifying whether the user account has been deactivated. | def ksfB(YKHO, ksfB):
YKHO._is_active = ksfB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO, ksfB: bool):\n if ksfB is None:\n raise ValueError('Invalid value for `is_active`, must not be `None`')\n YKHO._is_active = ksfB",
"def ksfB(YKHO, ksfB):\n YKHO._is_active = ksfB",
"def ksfB(YKHO, ksfB):\n if YKHO.local_vars_configuration.client_side_validation and ksfB is Non... | [
"0.7834352",
"0.76405424",
"0.6955871",
"0.68170184",
"0.68170184",
"0.68170184",
"0.68170184",
"0.6813176",
"0.6730943",
"0.67180324",
"0.67115015",
"0.67037755",
"0.6689273",
"0.66405123",
"0.6595193",
"0.6499912",
"0.6499744",
"0.6490623",
"0.64750445",
"0.636067",
"0.6323... | 0.7561219 | 3 |
Gets the is_guest of this UserBase. A boolean specifying whether the user is a guest user. | def RGXp(YKHO):
return YKHO._is_guest | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWtd(YKHO):\n return YKHO._guest",
"def RGXp(YKHO, RGXp):\n YKHO._is_guest = RGXp",
"def MXC7():\n DWtd = mv1M.query.filter_by(username='guest').first()\n if DWtd == None:\n DWtd = mv1M(username='guest', password_token=NByB.hash('password'))\n NCls.session.add(DWtd)\n NCls.... | [
"0.67751104",
"0.652903",
"0.6333875",
"0.5840743",
"0.5831468",
"0.57090145",
"0.54347944",
"0.53395015",
"0.5297339",
"0.52234644",
"0.5145995",
"0.514241",
"0.5127566",
"0.5127566",
"0.50955236",
"0.50857407",
"0.5083316",
"0.5064882",
"0.5058896",
"0.5041641",
"0.50172037... | 0.78533375 | 0 |
Gets the timezone of this UserBase. The time zone of the user. | def rIAI(YKHO):
return YKHO._timezone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI(YKHO):\n return YKHO._tz",
"def rIAI(YKHO) -> str:\n return YKHO._tz",
"def rIAI(YKHO):\n return YKHO.data.get('timezone')",
"def Lw3C(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('TimeZone')\n return YKHO._TimeZone",
"def Vsdc(YKHO) -> str:\n return YKHO.AD.time_zone",
... | [
"0.7857188",
"0.7602793",
"0.75864065",
"0.7564862",
"0.7543805",
"0.7350593",
"0.7301738",
"0.7264471",
"0.71459556",
"0.71003807",
"0.7097807",
"0.68156534",
"0.68122673",
"0.6797889",
"0.6775188",
"0.6735393",
"0.6680171",
"0.66326815",
"0.65203756",
"0.6517433",
"0.651403... | 0.7784589 | 3 |
Sets the timezone of this UserBase. The time zone of the user. | def rIAI(YKHO, rIAI):
YKHO._timezone = rIAI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1G8():\n gwzY = QePW.vars.name\n from pytz import all_timezones_set\n if gwzY in all_timezones_set:\n cuiw.user_timezone = gwzY\n if Jpbe.user is not None:\n NCls.auth_user[Jpbe.user.id] = dict(user_timezone=gwzY)\n bo34.info('Set timezone to: %r' % gwzY)\n else:\n ... | [
"0.70524657",
"0.70524657",
"0.6869655",
"0.6587702",
"0.650735",
"0.64232886",
"0.63101465",
"0.6221063",
"0.6113634",
"0.6078929",
"0.6078929",
"0.6078929",
"0.58731836",
"0.5856435",
"0.5750898",
"0.57249284",
"0.5719738",
"0.5674356",
"0.5662734",
"0.5613859",
"0.55795693... | 0.7129376 | 4 |
Gets the date_joined of this UserBase. The time the user account was created. | def FeQa(YKHO):
return YKHO._date_joined | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o1cz(YKHO):\n return YKHO.account_created_date",
"def a_RL(YKHO):\n return YKHO.__joinTime",
"def aJ2e(YKHO):\n aJ2e = YKHO.joined_at\n if aJ2e is None:\n aJ2e = OBu_\n return aJ2e",
"def FeQa(YKHO, FeQa):\n YKHO._date_joined = FeQa",
"def DlWd(YKHO):\n FpOe = YKHO.getUserIn... | [
"0.62656933",
"0.6219153",
"0.59980553",
"0.59758735",
"0.5934436",
"0.587002",
"0.57954764",
"0.5775895",
"0.5775895",
"0.5775895",
"0.57507694",
"0.57064766",
"0.57064766",
"0.56547153",
"0.56547153",
"0.56422794",
"0.5618498",
"0.5597825",
"0.55175257",
"0.550172",
"0.5483... | 0.7982348 | 0 |
Sets the date_joined of this UserBase. The time the user account was created. | def FeQa(YKHO, FeQa):
YKHO._date_joined = FeQa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FeQa(YKHO):\n return YKHO._date_joined",
"def Ss5d(YKHO):\n Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info)\n YKHO.assertEqual(Q5YQ.get_username(), 'alice')\n YKHO.assertEqual(Q5YQ.email, 'alice@example.com')\n YKHO.assertTrue(Q5... | [
"0.66438895",
"0.581493",
"0.56453663",
"0.51747286",
"0.5124787",
"0.5048352",
"0.49426377",
"0.49251464",
"0.49251464",
"0.49176228",
"0.49075496",
"0.49066377",
"0.49043387",
"0.48563272",
"0.48563272",
"0.48563272",
"0.48529363",
"0.48464775",
"0.48464775",
"0.48464775",
... | 0.7769368 | 0 |
Gets the delivery_email of this UserBase. The user's real email address. This field is present only if [email address visibility](/help/restrictvisibilityofemailaddresses) is limited and you are an administrator with access to real email addresses under the configured policy. | def AXpR(YKHO):
return YKHO._delivery_email | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('email')",
"def D3lj(YKHO):\n qGfT = YKHO.owner.organization_user.user\n return qGfT.email",
"def RC0X(YKHO):\n return YKHO._email",
"def RC0X(YKHO):\n return YKHO.reference[XMvj][NNfF]",
"def RC0X(YKHO):... | [
"0.6896622",
"0.68197286",
"0.66776025",
"0.6648298",
"0.64765364",
"0.6463804",
"0.6460512",
"0.64135796",
"0.64135796",
"0.64135796",
"0.64135796",
"0.63343066",
"0.63343066",
"0.6321957",
"0.63091224",
"0.62989455",
"0.6274076",
"0.6220656",
"0.62095183",
"0.6136559",
"0.6... | 0.8150735 | 0 |
Sets the delivery_email of this UserBase. The user's real email address. This field is present only if [email address visibility](/help/restrictvisibilityofemailaddresses) is limited and you are an administrator with access to real email addresses under the configured policy. | def AXpR(YKHO, AXpR):
YKHO._delivery_email = AXpR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AXpR(YKHO):\n return YKHO._delivery_email",
"def eufI(YKHO, eufI):\n if YKHO.local_vars_configuration.client_side_validation and eufI is None:\n raise ValueError('Invalid value for `delivery`, must not be `None`')\n YKHO._delivery = eufI",
"def lEeL(YKHO, D3lj):\n YKHO.email = D3lj\n ... | [
"0.69637316",
"0.6370568",
"0.59695375",
"0.59579545",
"0.58683085",
"0.5863861",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.58421206",
"0.582248",
"0.5751209",
"0.5748383",
"0.5698401",
"0.... | 0.812475 | 0 |
dist(Vector,Vector) returns the distance between both points/vectors | def pImw(cntZ, Elif):
if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):
return u54L(finE(cntZ, Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))",
"def pImw(EBgd, HpuQ):\n return PZyS((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2)",
"def pImw(jzdc: Point, Fg_i: Point):\n return (jzdc.x - Fg_i.x) ** 2 + (jzdc.y - Fg_i.y) **... | [
"0.8330045",
"0.7836225",
"0.7793538",
"0.7769077",
"0.7764226",
"0.76751816",
"0.7628056",
"0.7599897",
"0.758881",
"0.75808233",
"0.75630975",
"0.75542706",
"0.7522357",
"0.7487544",
"0.7484254",
"0.74748534",
"0.74724805",
"0.7463907",
"0.74554265",
"0.7436666",
"0.7422981... | 0.77351147 | 5 |
normalized(Vector) returns a unit vector | def HBfW(cntZ):
if isinstance(cntZ, j6_a.Vector):
vC9B = u54L(cntZ)
return j6_a.Vector(cntZ.x / vC9B, cntZ.y / vC9B, cntZ.z / vC9B) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBfW(YKHO):\n try:\n r8hN = abs(YKHO)\n return YKHO / r8hN\n except ZeroDivisionError as e:\n raise Exception('Attempted to normalize a zero vector, return a unit vector at zero degrees') from tTpl",
"def HBfW(YKHO):\n len = YKHO.length\n return lNLu(YKHO.x / len, YKHO.y / le... | [
"0.84013855",
"0.8248628",
"0.8215351",
"0.81663924",
"0.81663924",
"0.81663924",
"0.8158663",
"0.8142691",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8133052",
"0.8125412",
"0.81115973"... | 0.7754226 | 39 |
dotproduct(Vector,Vector) returns the dot product of both vectors | def pxL1(cntZ, Elif):
if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):
return cntZ.x * Elif.x + cntZ.y * Elif.y + cntZ.z * Elif.z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxL1(lSjb, v8Fa):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(lSjb, v8Fa)))",
"def pxL1(lSjb, v8Fa):\n import operator\n return sum(map(operator.mul, lSjb, v8Fa))",
"def uYbU(hQHm, jlSq):\n return hQHm[0] * jlSq[0] + hQHm[1] * jlSq[1] + hQHm[2] * jlSq[2]",
"def X6_J(hQHm, jlSq):\n MxXY... | [
"0.86972415",
"0.8648256",
"0.85929865",
"0.85891086",
"0.8570757",
"0.8549981",
"0.8507858",
"0.847935",
"0.84727925",
"0.84720486",
"0.84266394",
"0.8419811",
"0.8343178",
"0.8338558",
"0.83323467",
"0.8256427",
"0.82338524",
"0.82235616",
"0.82016593",
"0.8183103",
"0.8173... | 0.80322015 | 23 |
crossproduct(Vector,Vector) returns the cross product of both vectors. If only one is specified, cross product is made with vertical axis, thus returning its perpendicular in XY plane | def oTem(cntZ, Elif=j6_a.Vector(0, 0, 1)):
if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):
return j6_a.Vector(cntZ.y * Elif.z - cntZ.z * Elif.y, cntZ.z * Elif.x - cntZ.x * Elif.z, cntZ.x * Elif.y - cntZ.y * Elif.x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])",
"def dcUW(WKvO, LVAh):\n if len(WKvO) != len(LVAh):\n raise ValueError('vector lengths differ')\n elif len(WKvO) > 3:\n rais... | [
"0.8131378",
"0.802793",
"0.79265344",
"0.7779056",
"0.77629125",
"0.77045447",
"0.76780075",
"0.75904584",
"0.7525282",
"0.7513922",
"0.7469388",
"0.7426301",
"0.7420362",
"0.7362331",
"0.73169047",
"0.7263604",
"0.72250664",
"0.7215048",
"0.72099155",
"0.71860886",
"0.71698... | 0.72218657 | 17 |
Calculate the total area of all ecotopes on the playing board. | def pdyL(YKHO, iBIi):
WfCS = ['geometry', 'z_reference', 'landuse', 'biosafe']
YGva = iBIi.loc[iBIi.biosafe, WfCS]
kcmZ = rLdf.merge(YGva, YKHO.vr_eco, on=['z_reference', 'landuse'])
X92R = kcmZ.groupby('ecotope1').sum()
PqcR = kcmZ.groupby('ecotope2').sum()
HOOx = rLdf.concat([X92R.fraction1, P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n f0tD = 0\n for abiq in YKHO.rooms:\n f0tD += abiq.polygon.area()\n for httR in YKHO.walls:\n f0tD += httR.polygon.area()\n return f0tD",
"def r0Ao(YKHO):\n YKHO.area = 0.0\n for xUfL in YKHO.sails:\n YKHO.area += xUfL.area",
"def tjC2(YKHO):\n f0tD = ... | [
"0.72191346",
"0.69285345",
"0.6818615",
"0.6791541",
"0.6719441",
"0.6589277",
"0.6585048",
"0.6579154",
"0.65724313",
"0.65674067",
"0.6542835",
"0.651549",
"0.6497927",
"0.64875937",
"0.64872205",
"0.6446514",
"0.6436132",
"0.6436132",
"0.6436132",
"0.6436132",
"0.6428201"... | 0.7589144 | 0 |
Takes text where lines are separated by newline characters. Returns True if the text is a limerick, False otherwise. A limerick is defined as a poem with the form AABBA, where the A lines rhyme with each other, the B lines rhyme with each other, and the A lines do not rhyme with the B lines. | def Ht5u(YKHO, l5Ny):
l5Ny = l5Ny.lower()
XP5J = []
XP5J = l5Ny.split('\n')
XP5J = [YRbF.strip(' ') for YRbF in XP5J]
XP5J = list(filter(None, XP5J))
if len(XP5J) != 5:
return False
V22M = []
for YRbF in range(0, 5):
XP5J[YRbF] = XP5J[YRbF].strip('.,:;?!')
ycBG = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ht5u(YKHO, l5Ny):\n return False",
"def Ht5u(YKHO, l5Ny):\n Rhv4 = l5Ny.splitlines()\n Rhv4 = [yAmx for yAmx in Rhv4 if yAmx.strip()]\n if len(Rhv4) != 5:\n return False\n sz5e = dFss(Rhv4[0].translate(None, vIwR.punctuation).lower())\n xyFh = dFss(Rhv4[1].translate(None, vIwR.punctu... | [
"0.7332721",
"0.7118218",
"0.6140549",
"0.58115304",
"0.5777548",
"0.5629705",
"0.5620639",
"0.5535499",
"0.5423312",
"0.5394802",
"0.5378505",
"0.53308886",
"0.5302663",
"0.5278468",
"0.52720255",
"0.5223611",
"0.5223611",
"0.51562977",
"0.51394373",
"0.5101829",
"0.50781065... | 0.7593807 | 0 |
Get the color of the mask at position. Using 2 bits as a color. | def PICn(ZHfW: int, dQgj: int):
return ZHfW >> (dQgj << 1) & 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6vG(YKHO):\n return YKHO._mask_color",
"def rqSI(ZHfW: int, dQgj: int, qfpW: int):\n return ZHfW | qfpW << (dQgj << 1)",
"def PICn(YKHO, AU8u):\n Csk6 = AU8u - YKHO._origin\n pImw = int(Csk6.dot(Csk6) ** 0.5) % 2\n if pImw == 0:\n return YKHO.c1.dup()\n else:\n return YKHO.... | [
"0.6762996",
"0.6617752",
"0.6400042",
"0.6352335",
"0.6179756",
"0.607116",
"0.60303086",
"0.5943762",
"0.59284455",
"0.58960706",
"0.58665735",
"0.58665735",
"0.58594924",
"0.5858215",
"0.58338976",
"0.57897294",
"0.5776139",
"0.5772793",
"0.5763152",
"0.5751781",
"0.574337... | 0.8632774 | 0 |
Test list secrets when not connected to any cluster. | def W9GS():
Ol8d = 'REANA client is not connected to any REANA cluster.'
ydtl = '000000'
WL52 = p9tP()
Aofo = WL52.invoke(GSyo, ['secrets-list', '-t', ydtl])
assert Aofo.exit_code == 1
assert Ol8d in Aofo.output | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def list_secrets(YKHO):\n pass",
"def XCr_(YKHO):\n pass",
"def rrkd():\n Ol8d = 'Please provide your access token'\n sEAN = {'REANA_SERVER_URL': 'localhost'}\n WL52 = p9tP(env=sEAN)\n Aofo = WL52.invoke(GSyo, ['secrets-list'])\n assert Aofo.exit_code == 1\n assert Ol8d in Aofo.ou... | [
"0.7848596",
"0.77356535",
"0.73634505",
"0.71850795",
"0.7145914",
"0.6926122",
"0.674381",
"0.655007",
"0.64121014",
"0.639309",
"0.6267915",
"0.6263949",
"0.6144681",
"0.61244977",
"0.6104293",
"0.6090162",
"0.6053545",
"0.60486376",
"0.601324",
"0.59840655",
"0.59817785",... | 0.77385426 | 1 |
Test list secrets when access token is not set. | def rrkd():
Ol8d = 'Please provide your access token'
sEAN = {'REANA_SERVER_URL': 'localhost'}
WL52 = p9tP(env=sEAN)
Aofo = WL52.invoke(GSyo, ['secrets-list'])
assert Aofo.exit_code == 1
assert Ol8d in Aofo.output | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XCr_(YKHO):\n pass",
"def uaSl(YKHO):\n FXSn.check_secrets([], j1Jz.Namespace())",
"def W9GS():\n Ol8d = 'REANA client is not connected to any REANA cluster.'\n ydtl = '000000'\n WL52 = p9tP()\n Aofo = WL52.invoke(GSyo, ['secrets-list', '-t', ydtl])\n assert Aofo.exit_code == 1\n as... | [
"0.71583724",
"0.697432",
"0.6764023",
"0.6734302",
"0.657616",
"0.6429628",
"0.63544613",
"0.6260767",
"0.6180775",
"0.61721295",
"0.61655974",
"0.6159696",
"0.6127158",
"0.6099549",
"0.60978544",
"0.60681677",
"0.60320014",
"0.60044026",
"0.59975713",
"0.59924906",
"0.59404... | 0.77104926 | 0 |
Test adding secrets with wrong format. | def _5TD(DXni):
ydtl = '000000'
sEAN = {'REANA_SERVER_URL': 'localhost'}
WL52 = p9tP(env=sEAN)
Ol8d = 'For literal strings use "SECRET_NAME=VALUE" format'
Aofo = WL52.invoke(GSyo, ['secrets-add', '-t', ydtl, '--env', DXni])
assert Aofo.exit_code == 1
assert Ol8d in Aofo.output | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaSl(YKHO):\n FXSn.check_secrets([], j1Jz.Namespace())",
"def EU5W(YKHO):\n ji3q = nPYW.generate_secret(24)\n YKHO.assertEqual(len(ji3q), 24)\n assert not set('[~!@#$%^&*()_+{}\":;\\']+$').intersection(ji3q)",
"def BAfb(YKHO):\n KCHu = X6jU(stage='dev')\n KCHu.email = ['nonsense']\n wi... | [
"0.75044936",
"0.707541",
"0.70254934",
"0.6977966",
"0.67734826",
"0.67173374",
"0.6702236",
"0.66481084",
"0.6610407",
"0.6495734",
"0.642665",
"0.6363775",
"0.63510156",
"0.6331783",
"0.6269925",
"0.6216668",
"0.6207249",
"0.61964357",
"0.61894506",
"0.6124794",
"0.6116386... | 0.8482589 | 0 |
Test adding secrets when they already exist. | def ttOt():
JBvl = 409
ydtl = '000000'
sEAN = {'REANA_SERVER_URL': 'localhost'}
Ol8d = 'One of the secrets already exists. No secrets were added.'
M4eS = FM6F(status_code=JBvl, reason='Conflict', json=FM6F(return_value={'message': 'Conflict'}))
BiZc = FM6F()
BiZc.api.add_secrets = FM6F(side_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaSl(YKHO):\n FXSn.check_secrets([], j1Jz.Namespace())",
"def wsl_(YKHO, sEAN: yaenv.Env):\n assert sEAN.secret() == 'notsosecret'\n assert 'NEW_SECRET_KEY' not in sEAN\n pumG = sEAN.secret('NEW_SECRET_KEY')\n assert pumG is not None\n assert pumG != sEAN.secret('NEW_SECRET_KEY2')\n del ... | [
"0.7291631",
"0.7147517",
"0.6715984",
"0.6684597",
"0.66473454",
"0.66376173",
"0.6494984",
"0.6443271",
"0.6437272",
"0.6393369",
"0.629985",
"0.6255083",
"0.62139803",
"0.61440545",
"0.602208",
"0.5996874",
"0.5979041",
"0.5953571",
"0.59042215",
"0.58320487",
"0.58229697"... | 0.7203451 | 1 |
Constructor to create instance of the Line object. | def FIMM(YKHO, EBgd=None, HpuQ=None, D1sU=None, vC9B=None):
if vC9B is None:
hwaY = oyIN.array(EBgd, dtype=float)
N3Pl = oyIN.array(HpuQ, dtype=float)
RA_F = N3Pl - hwaY
XsBg = RA_F[0] ** 2 + RA_F[1] ** 2 + RA_F[2] ** 2
cZIU = oyIN.math.sqrt(XsBg)
if XsBg == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, iXlf, **B2fa):\n super(NTRO, YKHO).__init__(iXlf, **B2fa)\n YKHO._geotype = 'Line'\n return",
"def FIMM(YKHO, yKcO, Os4s, xtpy=None):\n YKHO.__start = yKcO\n YKHO.__end = Os4s\n if YKHO.__start == YKHO.__end:\n '\\n If a zero length line is created that most lik... | [
"0.80231184",
"0.7601697",
"0.7555074",
"0.74823064",
"0.74259686",
"0.73953325",
"0.7313491",
"0.6963556",
"0.69590884",
"0.6912488",
"0.69103134",
"0.68802094",
"0.6859208",
"0.6848757",
"0.68076146",
"0.6779403",
"0.674837",
"0.674837",
"0.6747915",
"0.6672266",
"0.6634589... | 0.65474164 | 23 |
Function to set the tolerance. | def Bfmc(YKHO, yJiH):
YKHO.tolerance = yJiH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1sU(YKHO, D1sU: float) -> None:\n YKHO._tolerance = D1sU",
"def Bfmc(YKHO, BWXx):\n YKHO._tolerance = BWXx",
"def Bfmc(YKHO, yJiH):\n YKHO.precision = yJiH\n return",
"def yJiH(YKHO, BWXx):\n YKHO._tol = BWXx",
"def Pvxo(YKHO, yJiH: float):\n YKHO.tol = yJiH",
"def Bfmc(YKHO, *qIxc... | [
"0.8269015",
"0.81052655",
"0.79584485",
"0.7956575",
"0.78157336",
"0.7737034",
"0.7723517",
"0.76122135",
"0.7429519",
"0.7174162",
"0.71566623",
"0.7126722",
"0.7088782",
"0.68695533",
"0.6833426",
"0.676617",
"0.66971606",
"0.668103",
"0.66773707",
"0.665312",
"0.6650963"... | 0.8542296 | 0 |
Function to get one point from the line. | def IJcT(YKHO, ABQM):
return YKHO.zero + ABQM * YKHO.direction | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRds(zFiD: Line):\n return zFiD.point1 + zFiD.get_perpendicular_at_point(zFiD.point1).get_direction_vector()",
"def aZVB(YKHO, AU8u):\n Fg_i = ((YKHO.x - AU8u.x) * AU8u.y - (YKHO.y - AU8u.y) * AU8u.x) / (YKHO.x - AU8u.x)\n jzdc = (YKHO.y - AU8u.y) / (YKHO.x - AU8u.x)\n return (jzdc, Fg_i)",
"de... | [
"0.7592827",
"0.7068464",
"0.6940365",
"0.6910205",
"0.6897533",
"0.68894476",
"0.6816368",
"0.6789263",
"0.67315537",
"0.6678987",
"0.66766155",
"0.66728306",
"0.66517955",
"0.66410375",
"0.663569",
"0.6616116",
"0.6613046",
"0.65880394",
"0.6556479",
"0.6535376",
"0.6529306... | 0.0 | -1 |
Use sys.stdout.write to write the string with an indentation equal to indent and specifying the end character | def Lsrz(vIwR, MnRD=0, Os4s=''):
HwRy.stdout.write(' ' * MnRD + vIwR + Os4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ah0K(wOb_, MnRD):\n if MnRD == 0:\n return\n else:\n wOb_.write(' ' * MnRD)",
"def bOjN(MnRD, *qIxc):\n KCHu = ''\n KCHu += MnRD * ' '\n KCHu += ' '.join(qIxc)\n return KCHu",
"def Y_Vz(YKHO):\n if YKHO.lasttoken[0] != hUZ1.Token.NEWLINE:\n return\n if len(YKHO.... | [
"0.7758625",
"0.6414926",
"0.6342674",
"0.6169035",
"0.6082922",
"0.59543496",
"0.5942104",
"0.5933664",
"0.58904225",
"0.5866938",
"0.5845034",
"0.5830857",
"0.5830536",
"0.5825642",
"0.5822062",
"0.58123285",
"0.58008015",
"0.5715586",
"0.5666716",
"0.5651807",
"0.56485546"... | 0.8376877 | 0 |
Get a Producer queue instance | def aFjn():
GPtr = XXdm.config.getConfig()
return XXdm.queue.queue(GPtr, h8qG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CqEO():\n return laXl.Queue()",
"def NMoC(Q64Y: str, **B2fa) -> g5js:\n return g5js(Q64Y, **B2fa)",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\... | [
"0.7450264",
"0.7052122",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69740534",
"0.69648343",
"0.69545984",
"0.6784196",
... | 0.8324251 | 0 |
A generator that can be used to iterate over all of the message handlers that belong to this instance. | def sR0H(YKHO):
for mWFP in dir(YKHO):
hkS8 = getattr(YKHO, mWFP)
if isinstance(hkS8, DYHX):
yield hkS8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jwor(YKHO):\n return YKHO.message_handlers",
"def iSCP(YKHO):\n bo34.debug('%s: Returned %d handlers.' % (YKHO.__class__.__name__, len(YKHO._handlers)))\n return YKHO._handlers[:]",
"def Vs4Q(YKHO):\n return z_VR(YKHO._eventHandlers)",
"def iSCP(YKHO):\n return YKHO._handlers",
"def iSCP... | [
"0.75313586",
"0.7092574",
"0.689368",
"0.6885732",
"0.6611093",
"0.64954853",
"0.6490498",
"0.6438109",
"0.6379151",
"0.6324771",
"0.6322066",
"0.62982225",
"0.62764996",
"0.6234379",
"0.6224543",
"0.62200075",
"0.61538786",
"0.60254633",
"0.6023188",
"0.60213643",
"0.594284... | 0.86009705 | 0 |
Adds the given service's message handlers to our managed message handlers. | def ez_U(YKHO, zVa7):
for zaAa in zVa7.iter_message_handlers():
YKHO.message_handlers[zaAa.name] = zaAa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykhp(YKHO, zVa7, DCgT):\n YKHO.partyline.setdefault(zVa7, []).append(DCgT)",
"def yDoF(YKHO, zVa7, Tlew, jwHY, lKxe):\n if zVa7 in YKHO.websock_handlers:\n aPd6.error('Error: service:' + zVa7 + ' is already registered')\n return False\n oTZi = {'new_client': Tlew, 'new_message': jwHY, ... | [
"0.6415957",
"0.63830936",
"0.60461724",
"0.6046069",
"0.6006367",
"0.58971536",
"0.5866512",
"0.5834788",
"0.5806009",
"0.5753481",
"0.5696065",
"0.5631438",
"0.56120425",
"0.5598932",
"0.55874574",
"0.55768156",
"0.55757207",
"0.55562836",
"0.5551294",
"0.5539715",
"0.55364... | 0.8374331 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.0 | -1 |
Make infinite calls to a function with the given arguments. End sequence if func() raises StopIteration. | def EcW1(JfyU, /, *qIxc, **B2fa):
JfyU = kOEf(JfyU)
try:
while True:
yield JfyU(*qIxc, **B2fa)
except StopIteration as e:
yield from IMYy(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X73w(JfyU, WKvO):\n while True:\n WKvO = JfyU(WKvO)\n yield WKvO",
"def X73w(eHNT, WKvO):\n while True:\n yield WKvO\n WKvO = eHNT(WKvO)",
"def X73w(JfyU: Callable[..., T], WKvO: T, *qIxc, d6pt: Index=None):\n JfyU = kOEf(JfyU)\n d6pt = XfWx(d6pt)\n if d6pt is Non... | [
"0.7004105",
"0.6646999",
"0.63588154",
"0.633149",
"0.6150608",
"0.6094851",
"0.6073668",
"0.59957045",
"0.5961045",
"0.5894083",
"0.5876988",
"0.58702266",
"0.5862073",
"0.58489794",
"0.5841767",
"0.5814898",
"0.57949513",
"0.5713033",
"0.5708868",
"0.57078665",
"0.5697791"... | 0.7911098 | 0 |
Return iterator with a single object. | def B_tc(YEnM: T, lHli: bool=False) -> iNkJ[Kt_s]:
if lHli:
try:
yield from YEnM
except TypeError:
pass
yield YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQZ9(object):\n oHE7 = None\n try:\n oHE7 = iter(object)\n except TypeError:\n pass\n return oHE7",
"def UDAb(YKHO):\n return next(YKHO.iterator)",
"def Vs4Q(YKHO):\n YKHO._first()\n return YKHO",
"def Vs4Q(YKHO):\n return YKHO.next()",
"def UDAb(YKHO):\n return... | [
"0.75817907",
"0.74081564",
"0.7373555",
"0.71963745",
"0.71724164",
"0.7078414",
"0.7078414",
"0.7078414",
"0.6872086",
"0.6868703",
"0.683738",
"0.67541516",
"0.665635",
"0.66446465",
"0.6599324",
"0.65719706",
"0.65708953",
"0.65270007",
"0.6459694",
"0.64549285",
"0.64549... | 0.6621986 | 14 |
f""" Repeatedly apply a function func to input. If more than one argument to func is passed, it iterate over the past n values. It requires at least one argument, if you need to iterate a zero | def X73w(JfyU: Callable[..., T], WKvO: T, *qIxc, d6pt: Index=None):
JfyU = kOEf(JfyU)
d6pt = XfWx(d6pt)
if d6pt is None and (not qIxc):
yvT9 = gAU5(JfyU, WKvO)
elif d6pt is None:
yvT9 = ySjz(JfyU, (WKvO, *qIxc))
elif not qIxc:
yvT9 = wtJX(JfyU, d6pt, WKvO)
else:
y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ulXd(WKvO, eHNT, exwG, *qIxc, **B2fa):\n return [eHNT(YRbF, WKvO, *qIxc, **B2fa) for YRbF in range(exwG)]",
"def lGbz(JfyU, exwG):\n for YRbF in range(exwG):\n JfyU()",
"def K2OT(JfyU, exwG, *qIxc):\n return YcfV(JfyU, wPFE(qIxc, exwG))",
"def wPFE(MCGS, exwG):\n for YRbF in range(exwG... | [
"0.7455248",
"0.7375146",
"0.7370228",
"0.71860796",
"0.7169171",
"0.69895",
"0.6812954",
"0.6778386",
"0.675432",
"0.6688753",
"0.6684521",
"0.665017",
"0.6537547",
"0.64917755",
"0.63972217",
"0.63972217",
"0.6348087",
"0.62363607",
"0.62081873",
"0.6142448",
"0.6037471",
... | 0.6898225 | 6 |
Helper function for counting leading ""s | def eRC8(YKHO, vIwR: str) -> int:
ppR4 = 0
while vIwR[ppR4] == '-':
ppR4 += 1
return ppR4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hJnP(cuUy):\n UHFx = 0\n for mLGw in cuUy:\n if mLGw == ' ':\n return UHFx\n else:\n UHFx += 1",
"def nj7g(WKvO):\n return sum((1 for hcXw in WKvO if hcXw == '\\n'))",
"def bezg():\n assert MVOr.count('4dog') == 0",
"def xbKP(vIwR, YRbF):\n return vIwR.c... | [
"0.6599933",
"0.62831575",
"0.62317944",
"0.6203771",
"0.6051275",
"0.6027196",
"0.599927",
"0.5920738",
"0.5860832",
"0.5799355",
"0.57977337",
"0.57650226",
"0.57611704",
"0.57336843",
"0.5714815",
"0.5706141",
"0.56840324",
"0.5660799",
"0.5651189",
"0.5635546",
"0.562362"... | 0.62299573 | 3 |
Error thrown when formatting a string but a config value is missing. | def FIMM(YKHO, H5ew, _AKB=None):
if _AKB:
tO9_ = f'Missing config while rendering {_AKB}: {H5ew}'
else:
tO9_ = f'Missing config: {H5ew}'
super(ZnUf, YKHO).__init__(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6U1(YKHO, mWFP: str, PFAa: str, xH_k: str):\n raise ValueError(f\"The '{mWFP}' should be {PFAa}, rather than {xH_k}\")",
"def arAl(YKHO):\n rPXJ = 'missing'\n w73T = 1\n tO9_ = 'The formatter should contain one \"{}\" specifier.'\n with jKi7.assertRaisesRegex(YKHO, sUXu, tO9_):\n ZDz3(... | [
"0.6889008",
"0.65927273",
"0.6343142",
"0.6240334",
"0.60607684",
"0.60268956",
"0.5999315",
"0.5850035",
"0.58428705",
"0.5835579",
"0.5832608",
"0.58293426",
"0.58019817",
"0.57879996",
"0.5760329",
"0.5742128",
"0.57138693",
"0.5656415",
"0.5598235",
"0.5593386",
"0.55930... | 0.0 | -1 |
Create a logger with console logging (info level) + log file (debug level). | def lmAE(N_e1):
bo34 = G9jH.getLogger(xAKo)
bo34.setLevel(G9jH.INFO)
JyWZ = 'probabilist_connectogram_%s.log' % ITS7.strftime('%Y-%m-%d_%H:%M:%S')
if N_e1:
zeeE = Hy7s.path.join(N_e1, JyWZ)
else:
zeeE = JyWZ
L8wK = G9jH.FileHandler(zeeE)
uaPq = G9jH.Formatter('%(asctime)s :: ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE():\n G9jH.basicConfig(level=G9jH.INFO, filename='logging', filemode='w')\n bo34 = G9jH.getLogger(' ')\n QCtm = G9jH.FileHandler('logging')\n QCtm.setLevel(G9jH.INFO)\n bo34.addHandler(QCtm)\n bo34.warning(f'{QCtm} created a new logger')\n return bo34",
"def WWrj() -> None:\n S0MI... | [
"0.7268376",
"0.70308805",
"0.7029211",
"0.7027607",
"0.6950778",
"0.6924888",
"0.6906252",
"0.6870268",
"0.6851774",
"0.68211913",
"0.6813843",
"0.6808933",
"0.68085176",
"0.6753689",
"0.67525923",
"0.6736932",
"0.67316926",
"0.67220473",
"0.67183745",
"0.6701308",
"0.669111... | 0.65178096 | 41 |
Return the Hamming distance between equallength sequences | def fkCQ(j93S, Nqp_):
if len(j93S) != len(Nqp_):
raise ValueError('Undefined for sequences of unequal length')
return sum((JgCp != XcQH for JgCp, XcQH in zip(j93S, Nqp_))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_DB(j93S, Nqp_):\n if len(j93S) != len(Nqp_):\n raise ValueError('Undefined for sequences of unequal lenght.')\n return sum((Q9eR != tGgy for Q9eR, tGgy in zip(j93S, Nqp_)))",
"def cWhH(j93S='', Nqp_=''):\n return sum((bool(ord(Q9eR) - ord(tGgy)) for Q9eR, tGgy in zip(j93S, Nqp_)))",
"def ... | [
"0.7564989",
"0.7524423",
"0.7510748",
"0.7498424",
"0.73834527",
"0.72914463",
"0.7283258",
"0.72027653",
"0.719384",
"0.7186409",
"0.7184023",
"0.7142286",
"0.7130274",
"0.71298635",
"0.70760477",
"0.70056623",
"0.6964983",
"0.69032145",
"0.6894841",
"0.68800247",
"0.686782... | 0.7553281 | 1 |
A helper function to create a Relay IRModule with inputs and params from a tflite file | def HQtW(Jkoc, SArq=True):
with open(Jkoc, 'rb') as eHNT:
ghNa = eHNT.read()
VlDb, NArs = svK5(ghNa, SArq)
g4y1 = dict()
for xqoZ in VlDb['main'].params:
mWFP = str(xqoZ.name_hint)
KDwe = [int(YRbF) for YRbF in xqoZ.type_annotation.shape]
yDqo = str(xqoZ.type_annotation.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTiD(SkYi):\n mh5P = ZylS.lite.Interpreter(model_path=SkYi)\n mh5P.allocate_tensors()\n return mh5P",
"def svK5(ghNa, SArq=True):\n try:\n import tflite.Model\n IDCY = gcqc.Model.Model.GetRootAsModel(ghNa, 0)\n except AttributeError:\n import gcqc\n IDCY = gcqc.Mode... | [
"0.63068986",
"0.6023051",
"0.5813477",
"0.5714911",
"0.5690382",
"0.5531973",
"0.55067134",
"0.5490141",
"0.5472677",
"0.54595083",
"0.5441401",
"0.5435935",
"0.5368517",
"0.5319013",
"0.5307069",
"0.5298142",
"0.5294426",
"0.5289352",
"0.52519286",
"0.5250053",
"0.5224872",... | 0.8060826 | 0 |
Tree object equality test. | def xa14(YKHO, Elif):
if hasattr(Elif, 'vector'):
return YKHO.vector == Elif.vector | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Tree') -> bool:\n return type(YKHO) is type(Elif) and YKHO.value == Elif.value and (YKHO.children == Elif.children)",
"def EesT(TZWW, hw5c, Viqq):\n Hp8u = k_D4.typedtree(TZWW)\n gPdF = k_D4.typedtree(hw5c)\n kUBT = Hp8u == gPdF\n raTX = kUBT == Viqq\n if raTX:\n KC... | [
"0.81907886",
"0.8065539",
"0.79538393",
"0.78520125",
"0.7722757",
"0.7619981",
"0.75722384",
"0.7570807",
"0.7570623",
"0.7570623",
"0.7570623",
"0.7570623",
"0.7570623",
"0.7509258",
"0.7502789",
"0.7492585",
"0.74790883",
"0.74709064",
"0.7460193",
"0.7412015",
"0.7403098... | 0.0 | -1 |
Tree object non equality test. | def Vdqg(YKHO, Elif):
if hasattr(Elif, 'vector'):
return YKHO.vector != Elif.vector | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, YEnM):\n return QBs8(YKHO.obj != YEnM, '%r == %r' % (YKHO.obj, YEnM))",
"def xa14(YKHO, Elif):\n YKHO = h_wP(YKHO, sSgN)\n return super(o7DN, YKHO).__eq__(h_wP(Elif, sSgN))",
"def Vdqg(YKHO, YEnM):\n return not YKHO.__eq__(YEnM)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return ... | [
"0.7296645",
"0.7240735",
"0.7235913",
"0.7218751",
"0.71460253",
"0.7126969",
"0.7104418",
"0.7090795",
"0.7070545",
"0.703232",
"0.70297754",
"0.70278966",
"0.70278966",
"0.70278966",
"0.7015042",
"0.6992102",
"0.6992102",
"0.6984518",
"0.69703865",
"0.6957141",
"0.6948727"... | 0.0 | -1 |
Creates a list of victory conditions based on the size of the board | def Ew8W(zNig):
foVY = []
for YRbF in range(zNig):
gu2Q = []
for exwG in range(zNig):
gu2Q.append(zNig * YRbF + exwG)
foVY.append(gu2Q)
for YRbF in range(zNig):
CFE_ = []
for exwG in range(zNig):
CFE_.append(zNig * exwG + YRbF)
foVY.app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efGj(zNig) -> list:\n return list(Hs6x.product([YRbF for YRbF in range(zNig)], repeat=2))",
"def efGj(YKHO, zNig, roBb):\n iBIi = [[None for YRbF in range(zNig)] for r845 in range(zNig)]\n for _6NH in roBb.values():\n for YRbF in range(_6NH.length):\n if _6NH.orientation == 'H':\n ... | [
"0.66391665",
"0.62301445",
"0.6140845",
"0.60436356",
"0.6038024",
"0.5961014",
"0.5920955",
"0.58922297",
"0.5841574",
"0.581635",
"0.57947874",
"0.5757776",
"0.57379335",
"0.57237613",
"0.570596",
"0.56783783",
"0.5668432",
"0.56344336",
"0.5629953",
"0.56038624",
"0.56017... | 0.8714315 | 0 |
Find the index of elem in the reversed iterator. | def d6pt(YKHO, LihS):
return MlYu.len(YKHO.iter) - YKHO.iter.index(LihS) - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PhKG(aWuw, U6D_):\n for YRbF, tTpl in enumerate(reversed(aWuw)):\n if U6D_ == tTpl:\n return len(aWuw) - 1 - YRbF\n else:\n raise ValueError('r_index(sequence, element): element not in the sequence')",
"def d6pt(YKHO, LihS):\n lHJN = YKHO.head\n ... | [
"0.7337428",
"0.7109907",
"0.67639583",
"0.6708626",
"0.66251403",
"0.6604515",
"0.6553324",
"0.65205306",
"0.6481329",
"0.6373556",
"0.6335034",
"0.6285708",
"0.6278031",
"0.6270351",
"0.62547594",
"0.6241182",
"0.62061155",
"0.6160364",
"0.6146057",
"0.61259276",
"0.6125455... | 0.7336818 | 1 |
Close down the thread and close the sqlite3 database file. | def DDI8(YKHO):
YKHO.exit_set = True
YKHO.sql_queue.put((YKHO.exit_token, '', ''), timeout=5)
while YKHO.thread_running:
ITS7.sleep(0.01) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ssTe(UzPC: sqlite3.Connection):\n UzPC.commit()\n UzPC.close()",
"def ssTe(YKHO):\n with FMyx():\n V2zj.file._open_files.close_all()",
"def DDI8(YKHO):\n YKHO.db.close()",
"def HySU(bGrB):\n YKHO.db.close()",
"def DDI8(YKHO):\n if getattr(YKHO, '_db', None):\n YKHO._db.c... | [
"0.72728205",
"0.726023",
"0.71503633",
"0.71176696",
"0.7114434",
"0.7111585",
"0.7087267",
"0.7087267",
"0.7087267",
"0.7081732",
"0.70814943",
"0.6973683",
"0.69685507",
"0.69284976",
"0.68923795",
"0.6879302",
"0.6870084",
"0.68667877",
"0.68667877",
"0.68667877",
"0.6866... | 0.6315703 | 100 |
Create and save a user with the given username, email, and password. | def xWi2(YKHO, NtEF, D3lj, jTXt, **wdCM):
if not NtEF:
raise ValueError('The given username must be set')
D3lj = YKHO.normalize_email(D3lj)
NtEF = YKHO.model.normalize_username(NtEF)
CBIr = YKHO.model(username=NtEF, email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se... | [
"0.859775",
"0.8441594",
"0.842702",
"0.8424334",
"0.8394744",
"0.8389154",
"0.834259",
"0.8335656",
"0.8334432",
"0.83239305",
"0.82892966",
"0.82822585",
"0.8275777",
"0.8270387",
"0.82692033",
"0.8165085",
"0.8160581",
"0.8158989",
"0.8143792",
"0.8138259",
"0.8128023",
... | 0.84072465 | 4 |
Return the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ... | [
"0.83421856",
"0.82273436",
"0.80990887",
"0.8067676",
"0.80525744",
"0.8043721",
"0.7993416",
"0.7992513",
"0.7992513",
"0.7992513",
"0.7978309",
"0.7963202",
"0.7957057",
"0.79399455",
"0.7936728",
"0.79338795",
"0.79154027",
"0.7901051",
"0.7892942",
"0.787005",
"0.7855431... | 0.7785957 | 53 |
Try to get the path to pdb.py and return it in a list. | def Gul0(NBAL):
AdfU = NBAL.split('/')
if len(AdfU) >= 2:
haYC = '/'.join(AdfU[0:-2] + ['lib'] + AdfU[-1:] + ['pdb.py'])
if Hy7s.access(haYC, Hy7s.R_OK):
return [haYC]
return ['-m', 'pdb'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMAQ():\n import glob, os\n os.chdir('../Data')\n MVVZ = []\n for nUeQ in glob.glob('*.pdb'):\n MVVZ.append(nUeQ)\n return MVVZ",
"def XMAQ():\n import glob, os\n os.chdir('../Data')\n MVVZ = []\n for nUeQ in glob.glob('*.pdb'):\n MVVZ.append(nUeQ)\n return MVVZ",
... | [
"0.7001057",
"0.6927535",
"0.6694564",
"0.5969401",
"0.5900031",
"0.58544034",
"0.5816103",
"0.58008647",
"0.58002234",
"0.57855517",
"0.57504606",
"0.5737899",
"0.5679186",
"0.5636797",
"0.55898374",
"0.5576825",
"0.54973745",
"0.53993475",
"0.53957206",
"0.53377414",
"0.532... | 0.72876877 | 0 |
Clone a `Sequential` model instance. Model cloning is similar to calling a model on new inputs, except that it creates new layers (and thus new weights) instead of sharing the weights of the existing layers. Arguments | def uFRS(C3ST, wRXp=None):
if not isinstance(C3ST, ileL):
raise ValueError('Expected `model` argument to be a `Sequential` model instance, but got:', C3ST)
def i3ak(gEmA):
return gEmA.__class__.from_config(gEmA.get_config())
fhcK = [i3ak(gEmA) for gEmA in C3ST.layers]
if wRXp is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMHH(C3ST, wRXp=None):\n if isinstance(C3ST, ileL):\n return uFRS(C3ST, input_tensors=wRXp)\n else:\n return AR1X(C3ST, input_tensors=wRXp)",
"def i3ak(YKHO):\n return _VfD.Model_clone(YKHO)",
"def vyJd(GhuM=(66, 200, 3)):\n print('input shape', GhuM)\n C3ST = ileL()\n C3ST.... | [
"0.7385709",
"0.66616267",
"0.6578116",
"0.6526493",
"0.6467478",
"0.62646365",
"0.62586915",
"0.6220581",
"0.6103913",
"0.60691476",
"0.6056226",
"0.6018872",
"0.6015779",
"0.6011683",
"0.5961887",
"0.5907166",
"0.58924145",
"0.5868687",
"0.58646977",
"0.584091",
"0.58357793... | 0.7651821 | 0 |
Update parameters using one step of gradient descent | def KFvG(SGPK, vtNT, b0Ix):
aPd6 = len(SGPK) // 2
for vC9B in range(aPd6):
SGPK['W' + str(vC9B + 1)] = SGPK['W' + str(vC9B + 1)] - b0Ix * vtNT['dW' + str(vC9B + 1)]
SGPK['b' + str(vC9B + 1)] = SGPK['b' + str(vC9B + 1)] - b0Ix * vtNT['db' + str(vC9B + 1)]
return SGPK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FgH_(YKHO, N77f):\n YKHO.optimizer.zero_grad()\n N77f.backward()\n YKHO.optimizer.step()",
"def Xx2J(YKHO, NfqM):\n for YRbF in Ni9Y(len(YKHO.params)):\n YKHO.params[YRbF].set_value(YKHO.params[YRbF].get_value() - NfqM[YRbF] / (1 / YKHO.learning_rate + YKHO.iterations))",
"def EWqU(H6go,... | [
"0.7269349",
"0.7062195",
"0.7061314",
"0.7021435",
"0.6942396",
"0.693245",
"0.69282365",
"0.6900024",
"0.68978393",
"0.68952733",
"0.6880095",
"0.6862448",
"0.68579733",
"0.6851211",
"0.6844264",
"0.68293726",
"0.6826274",
"0.67916423",
"0.67859596",
"0.67605203",
"0.675119... | 0.0 | -1 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.7635831",
"0.7547... | 0.76458347 | 21 |
Given a latitude and longitude calculate distance to airplane including altitude, return kilometers | def Ayfi(YKHO, QnmL: float, Swre: float) -> float:
return YKHO._haversine(QnmL, Swre) + YKHO.altitude / 1000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FoD6(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n fOkK *= epAf.cos(qqsd.lat * epAf.pi / 180.0)\n return epAf.sqrt(n_9K *... | [
"0.70389205",
"0.6926336",
"0.6884272",
"0.6884272",
"0.6884272",
"0.6884272",
"0.6884272",
"0.68767065",
"0.68557805",
"0.67505145",
"0.67494184",
"0.67259705",
"0.6697738",
"0.6696931",
"0.66856134",
"0.66700953",
"0.65975",
"0.6567814",
"0.6560275",
"0.6525618",
"0.6513142... | 0.6852247 | 9 |
input h (meters) and the coefficients for the linear profile for the free troposphere theta (ft_intercept (K) and slope gamma (K/m)) return the free tropospher theta at height h | def OTYT(MKlR, gzdf, KMvS):
BvEH = gzdf + MKlR * KMvS
return BvEH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNhU(D1f7: float, hyoe: float, YU2e: float) -> float:\n Z9rn = DWG7()\n oZuG = FOyS()\n AJIp = (hyoe - D1f7) * Z9rn * oZuG * YU2e / 3600\n jFiL = iXSH(YU2e)\n y8eR = bad1()\n return (D1f7 + hyoe) / 2 + AJIp / (y8eR * jFiL)",
"def RX5u(eHNT, nJ9F, MKlR):\n return MKlR / 2.0 * (eHNT(nJ9F) ... | [
"0.5862929",
"0.5850773",
"0.57733494",
"0.5686483",
"0.56282175",
"0.5592743",
"0.55332625",
"0.55067706",
"0.55043215",
"0.5491298",
"0.5484844",
"0.5470747",
"0.5449616",
"0.5431975",
"0.5429191",
"0.5417069",
"0.54054326",
"0.5379685",
"0.53791565",
"0.5375629",
"0.536189... | 0.75179046 | 0 |
Set the duty cycle of both control pins to zero to stop the motor. | def JCyR(YKHO):
YKHO.pwm_forward.ChangeDutyCycle(0)
YKHO.pwm_backward.ChangeDutyCycle(0)
YKHO.pwm_left.ChangeDutyCycle(0)
YKHO.pwm_right.ChangeDutyCycle(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.pwm_forward.ChangeDutyCycle(0)\n YKHO.pwm_backward.ChangeDutyCycle(0)",
"def ugSO(YKHO):\n YKHO.output(YKHO.steering_pin, 0)\n YKHO.pi.set_servo_pulsewidth(YKHO.steering_pin, 0)",
"def JCyR(YKHO):\n xi8C.output(YKHO._dir_pin_1, xi8C.HIGH)\n xi8C.output(YKHO._dir_pin_2, ... | [
"0.7451313",
"0.71744835",
"0.70240444",
"0.64211655",
"0.6414792",
"0.6408484",
"0.6395715",
"0.63024884",
"0.6269145",
"0.62610817",
"0.6226628",
"0.6201555",
"0.614517",
"0.61346424",
"0.6122426",
"0.6099769",
"0.6093762",
"0.60788894",
"0.6051263",
"0.60405594",
"0.603532... | 0.736179 | 1 |
Change the labels from arbitrary numbers to the range [0, len(set(labels))]. Points that are in the same cluster will stay in the same cluster. Points from different clusters will remain in different clusters. | def M7Cn(Crrw):
Mlmp = oyIN.array([-1] * len(Crrw))
Crrw = oyIN.array(Crrw)
OX2H = dict()
for YRbF, UXqs in enumerate(set(Crrw)):
Mlmp[oyIN.where(Crrw == UXqs)] = YRbF
OX2H[YRbF] = UXqs
return (OX2H, Mlmp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YV7t(YKHO, gOe1):\n for tes6 in range(YKHO.k):\n if gOe1[tes6] is not None:\n O5NK, lNon = (oyIN.asarray(gOe1[tes6]).sum(axis=0), len(gOe1[tes6]))\n YKHO._clusters[tes6] = O5NK / lNon",
"def GVLS(Crrw):\n Vsks, Myf3 = (list(Crrw), set(Crrw))\n for vC9B in Myf3:\n ... | [
"0.68851614",
"0.6850147",
"0.6721148",
"0.6478987",
"0.643922",
"0.6345853",
"0.6343787",
"0.6329328",
"0.62441224",
"0.6120226",
"0.6087101",
"0.60843414",
"0.60319865",
"0.5999183",
"0.59800136",
"0.5965767",
"0.5940681",
"0.59308654",
"0.592457",
"0.5924074",
"0.5922587",... | 0.6535897 | 3 |
Modify the column name to make it Pythoncompatible as a field name | def nQjW(AAHb, Xi09, T9yY):
jS35 = {}
d8hs = []
Dokz = AAHb.lower()
if Dokz != AAHb:
d8hs.append('Field name made lowercase.')
if T9yY:
if Dokz.endswith('_id'):
Dokz = Dokz[:-3]
else:
jS35['db_column'] = AAHb
Dokz, JC9A = ZbWC.subn('\\W', '_', Dokz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cg6B(YKHO, iVRZ, or8S, qrLi, mWFP):\n yDqo = YKHO.dtype\n yDqo.names = yDqo.names[:or8S] + (mWFP,) + yDqo.names[or8S + 1:]",
"def VS2R(YKHO, Jyyj):\n mWFP = Jyyj.name\n mWFP = ujeG(mWFP)\n if YKHO.options(Jyyj).convert_case:\n mWFP = A13V(mWFP)\n mWFP = YKHO._mangle_name(mWFP)\n r... | [
"0.7072573",
"0.7007338",
"0.6994978",
"0.69579434",
"0.68072045",
"0.6802428",
"0.6802428",
"0.67907166",
"0.6732477",
"0.6600031",
"0.65641886",
"0.64931035",
"0.64931035",
"0.64816284",
"0.6459289",
"0.64281356",
"0.63902634",
"0.6334104",
"0.6324554",
"0.6324554",
"0.6286... | 0.7277575 | 0 |
Deletes the specified group. The group must be empty. | def y0XA(YKHO, hE03, **B2fa):
JFat = '/groups/{groupId}'
NKcE = 'DELETE'
HoOA = ['retry_strategy', 'if_match']
YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]
if YXyZ:
raise ValueError('delete_group got unknown kwargs: {!r}'.format(YXyZ))
IatV = {'groupId': hE03}
Ia... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0XA(YKHO, uOe2):\n raise NotImplementedError('delete_group')",
"def y0XA(YKHO, IXKo):\n NArs = {'GroupName': IXKo}\n return YKHO.get_response('DeleteGroup', NArs)",
"def y0XA(YKHO, hE03: str):\n YKHO.ms_client.http_request(method='DELETE', url_suffix=f'groups/{hE03}', resp_type='text')",
"de... | [
"0.8661287",
"0.8429421",
"0.8341084",
"0.83324933",
"0.81745154",
"0.80304027",
"0.8005047",
"0.7919353",
"0.79183817",
"0.7814903",
"0.7808236",
"0.7775581",
"0.77595615",
"0.77590305",
"0.773771",
"0.7719856",
"0.75224054",
"0.75213486",
"0.7515984",
"0.74853754",
"0.74750... | 0.68005127 | 46 |
Deletes the specified group mapping. | def SqoR(YKHO, YlC9, Ylze, **B2fa):
JFat = '/identityProviders/{identityProviderId}/groupMappings/{mappingId}'
NKcE = 'DELETE'
HoOA = ['retry_strategy', 'if_match']
YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]
if YXyZ:
raise ValueError('delete_idp_group_mapping got unkno... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0XA(YKHO, uOe2):\n raise NotImplementedError('delete_group')",
"def rOFc(u0KH):\n cQ68.deleteGroup(u0KH)",
"def y0XA(Bnkd):\n if QePW.method == 'POST':\n XSBh.deleteGroup(Bnkd)\n return vKnz('/users')",
"def nhHW(phnv, uOe2):\n pass",
"def PTpj():\n mWFP = QePW.json['name'... | [
"0.7407182",
"0.6943236",
"0.681764",
"0.6814603",
"0.66882336",
"0.665547",
"0.66528887",
"0.6552498",
"0.6507317",
"0.65058494",
"0.6426595",
"0.64135116",
"0.64025885",
"0.6398474",
"0.6387597",
"0.63239",
"0.62887627",
"0.6258294",
"0.62549347",
"0.6252067",
"0.62451065",... | 0.5965616 | 36 |
Gets the authentication policy for the given tenancy. You must specify your tenant\u2019s OCID as the value for the compartment ID (remember that the tenancy is simply the root compartment). | def uft5(YKHO, i3aS, **B2fa):
JFat = '/authenticationPolicies/{compartmentId}'
NKcE = 'GET'
HoOA = ['retry_strategy']
YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]
if YXyZ:
raise ValueError('get_authentication_policy got unknown kwargs: {!r}'.format(YXyZ))
IatV = {'co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B9Ku(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authentication_policy')",
"def B9Ku(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authentication_policy')",
"def B9Ku(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'authentication_policy')",
"def hP69(YKHO):\n ... | [
"0.5763793",
"0.5763793",
"0.56437725",
"0.52095336",
"0.51566327",
"0.5049942",
"0.49517995",
"0.49281493",
"0.4919025",
"0.48551175",
"0.48236695",
"0.48195675",
"0.48187912",
"0.47907704",
"0.47624832",
"0.4753156",
"0.4753156",
"0.47355378",
"0.47262105",
"0.4723426",
"0.... | 0.6030179 | 0 |
Lists the compartments in a specified compartment. The members of the list returned depends on the values set for several parameters. With the exception of the tenancy (root compartment), the ListCompartments operation returns only the firstlevel child compartments in the parent compartment specified in `compartmentId`... | def fS1s(YKHO, i3aS, **B2fa):
JFat = '/compartments'
NKcE = 'GET'
HoOA = ['retry_strategy', 'page', 'limit', 'access_level', 'compartment_id_in_subtree']
YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]
if YXyZ:
raise ValueError('list_compartments got unknown kwargs: {!r}'.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGuE(YKHO):\n return YKHO.model.getListOfCompartments()",
"def mGuE(YKHO, *qIxc):\n return _VfD.Model_getListOfCompartments(YKHO, *qIxc)",
"def uRrG(YKHO, i3aS, **B2fa):\n JFat = '/compartments/{compartmentId}'\n NKcE = 'GET'\n HoOA = ['retry_strategy']\n YXyZ = [ibDM for ibDM in jKi7.ite... | [
"0.62096506",
"0.60235274",
"0.5435602",
"0.5372225",
"0.52894926",
"0.5113388",
"0.50968504",
"0.5042258",
"0.49255446",
"0.4908474",
"0.48918715",
"0.4878826",
"0.4840922",
"0.46979246",
"0.46899638",
"0.46821752",
"0.468023",
"0.45857018",
"0.45253602",
"0.4391601",
"0.437... | 0.84061605 | 0 |
Updates the specified auth token's description. | def Q2Vv(YKHO, uJjO, GPh4, rMzF, **B2fa):
JFat = '/users/{userId}/authTokens/{authTokenId}'
NKcE = 'PUT'
HoOA = ['retry_strategy', 'if_match']
YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]
if YXyZ:
raise ValueError('update_auth_token got unknown kwargs: {!r}'.format(YXyZ)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9Eb(YKHO):\n f6W2 = Rqdq.VideoFactory(description='my description')\n pdWF = IHrB()\n pdWF.payload['resource_id'] = str(f6W2.id)\n pdWF.payload['roles'] = [tuKI.choice(['instructor', 'administrator'])]\n pdWF.payload['permissions'] = {'can_update': True}\n nPrm = {'description': 'my new desc... | [
"0.6497291",
"0.6414944",
"0.62694657",
"0.610832",
"0.5971511",
"0.5964725",
"0.581407",
"0.5786695",
"0.5741787",
"0.57394075",
"0.5723997",
"0.5715468",
"0.5691383",
"0.55781394",
"0.55590355",
"0.5552019",
"0.5540073",
"0.5533868",
"0.552116",
"0.5510495",
"0.54998803",
... | 0.0 | -1 |
If the environment variable TERM is unset try with `fallback` if not empty. vt100 is a popular terminal supporting ANSI X3.64. | def hDTJ(M4rb=None, odyS='vt100'):
M4rb = Hy7s.getenv('TERM')
if not M4rb:
if not odyS:
raise kFyF('Environment variable TERM is unset and no fallback was requested')
else:
M4rb = odyS
if Hy7s.getenv('TERMINFO'):
RREW = [Hy7s.getenv('TERMINFO')]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ps7y(uLA0):\n if a9EH == 'win32':\n return True\n elif a9EH in ('darwin', 'linux'):\n global _STATIC_VARS\n Gcbu = LFdf.fileno()\n if not n2Fd(Gcbu):\n return\n gv2B = W7Go(Gcbu)\n VctS.term_config = (Gcbu, gv2B)\n BdN0 = W7Go(Gcbu)\n BdN... | [
"0.5692326",
"0.53151155",
"0.5231032",
"0.52155876",
"0.51974976",
"0.51403886",
"0.5131423",
"0.50917715",
"0.50907224",
"0.5077649",
"0.4965872",
"0.48994294",
"0.4885659",
"0.48755345",
"0.48475754",
"0.48131225",
"0.480396",
"0.47808626",
"0.4763937",
"0.47169244",
"0.47... | 0.5457427 | 1 |
Return the result of an elasticsearch query as a pandas DataFrame. | def H6VI(YKHO, Ylbp, ZLJ_, knl1=None):
c7pe = [WKvO['hits']['hits'][0]['_source'] for WKvO in Ylbp['responses']]
if ZLJ_ is not None:
if isinstance(ZLJ_, list):
c7pe = [{H5ew: wEf2 for H5ew, wEf2 in WKvO.items() if H5ew in ZLJ_} for WKvO in c7pe]
elif callable(ZLJ_):
c7pe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zaB4(YKHO):\n return rLdf.DataFrame(YKHO.results)",
"def d89f(YKHO):\n dixj = YKHO.jsonData['results']\n jQ3Z = rLdf.DataFrame(dixj)\n jQ3Z.drop(['rootSource', 'uri'], axis=1, inplace=True)\n return jQ3Z",
"def d89f(YKHO):\n dixj = YKHO.jsonData['results']\n jQ3Z = rLdf.DataFrame(dixj)... | [
"0.74036556",
"0.70324427",
"0.70324427",
"0.7026997",
"0.6755308",
"0.66402763",
"0.65239024",
"0.6453229",
"0.6447718",
"0.641856",
"0.63828397",
"0.63794637",
"0.63329643",
"0.6315638",
"0.63023823",
"0.62740153",
"0.6256019",
"0.6252512",
"0.61707205",
"0.616961",
"0.6168... | 0.59003174 | 47 |
two keras Model instances are equal enough | def Nr9I(cntZ, CsFy):
assert cntZ.get_config() == CsFy.get_config()
assert len(cntZ.get_weights()) == len(CsFy.get_weights())
for s1k6, xMw6 in zip(cntZ.get_weights(), CsFy.get_weights()):
oyIN.testing.assert_array_equal(s1k6, xMw6)
assert cntZ.optimizer.get_config() == CsFy.optimizer.get_config... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJN9():\n EcVT, bGrB, bGrB, bGrB = yLtf()\n ZylS.random.set_seed(12345)\n MuED = ZylS.keras.initializers.Zeros()\n WbAn = X6a0(shape=EcVT[0].shape)\n CAzz = l6ZH(128, activation='relu', kernel_initializer=MuED)(WbAn)\n CAzz = l6ZH(128, activation='relu', kernel_initializer=MuED)(CAzz)\n CA... | [
"0.72829473",
"0.72438365",
"0.7227518",
"0.7076971",
"0.6773338",
"0.6756114",
"0.6642388",
"0.6548654",
"0.6545828",
"0.6540332",
"0.65398526",
"0.6519682",
"0.65037364",
"0.6483842",
"0.64417934",
"0.64361674",
"0.6423497",
"0.636907",
"0.6350753",
"0.63441813",
"0.6334493... | 0.7113716 | 3 |
correctly convert a series of dicts or a DictArray to lists | def CB8E(YKHO):
nPrm = [dict(A=0.1, C=0.2), dict(A=0.1, C=0.2)]
P8oC = [('A', 0.1), ('C', 0.2)]
Zqvr = [P8oC, P8oC]
nLhi = xQIm(nPrm)
YKHO.assertEqual(nLhi, Zqvr)
nPrm = [dict(A=0.1, C=0.2), {}]
P8oC = [('A', 0.1), ('C', 0.2)]
Zqvr = [P8oC, None]
nLhi = xQIm(nPrm)
YKHO.assertEqua... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qVrj(YKHO, ahNg: dict()) -> []:\n S06t = []\n for wEf2 in ahNg.values():\n S06t = S06t + wEf2\n return S06t",
"def G87u(dict):\n JCoA = 1\n for G1Hx, Ty9i in dict.items():\n if type(Ty9i) is list:\n if len(Ty9i) > 1 and (JCoA > 1 and len(Ty9i) is not JCoA):\n ... | [
"0.65203464",
"0.6443881",
"0.64112335",
"0.62288743",
"0.62244505",
"0.62078065",
"0.61272603",
"0.60739225",
"0.60704356",
"0.60704356",
"0.6049034",
"0.5973778",
"0.59609526",
"0.5909848",
"0.5888783",
"0.5881044",
"0.58610386",
"0.5849552",
"0.5837635",
"0.5829828",
"0.58... | 0.0 | -1 |
Return a list of all the cells in the grid. We start increasing x first, i.e. 0th cell is the first cell, 1cell is the one with the next x in the list and y unchanged, .... Return array An array of size n_cells n_dims. | def H5Vg(YKHO):
CAzz, Jd40 = oyIN.meshgrid(YKHO.x_spacings, YKHO.y_spacings)
return oyIN.vstack([Jd40.ravel(), CAzz.ravel()]).transpose() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zxRK(dHi9: int, UuhC: int):\n G4ZV = dHi9 - 1\n rucD = UuhC - 1\n DJ6o = G4ZV * rucD\n D1Cf = oyIN.zeros((DJ6o, 4), dtype=int)\n tsjH = 0\n for IyRf in range(rucD):\n for bzYt in range(G4ZV):\n D1Cf[tsjH, 0] = bzYt + dHi9 * IyRf\n D1Cf[tsjH, 1] = D1Cf[tsjH, 0] + 1... | [
"0.7313377",
"0.70912474",
"0.70496106",
"0.70136446",
"0.70017177",
"0.69983876",
"0.6967043",
"0.6942949",
"0.69047695",
"0.6899912",
"0.6888806",
"0.6857896",
"0.68333375",
"0.6820522",
"0.6802178",
"0.6766183",
"0.66904247",
"0.66788596",
"0.6637702",
"0.66127455",
"0.660... | 0.77503717 | 0 |
Saves chunked speech intervals as WAV file. | def X8bK(SZeB, V6eb, DYeJ):
XB8x = int(SZeB.get_start_time() * 1000)
_H1M = int(SZeB.get_end_time() * 1000)
d_hN = _H1M - XB8x
clw7 = '{0}_{1}_{2}.wav'.format(DYeJ, XB8x, _H1M)
d2E1 = pmON.join(V6eb, clw7)
SZeB.save(d2E1, 'WAV')
return {'filename': clw7, 'video_id': DYeJ, 'start_time': XB8x,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0vw(gIsw, Gaon, Vb5F):\n C7H1.write(gIsw, Vb5F, oyIN.int16(Gaon / oyIN.max(oyIN.abs(Gaon)) * (2 ** 16 / 2 - 1)))",
"def tVzn(YKHO, mWFP=JBSp):\n print('Saving...')\n gcpQ = qJa9.open(mWFP + '.wav', 'wb')\n gcpQ.setnchannels(EnHH)\n gcpQ.setsampwidth(YKHO.audio.get_sample_size(iSwn))\n gcpQ... | [
"0.6919104",
"0.6847627",
"0.672993",
"0.6697336",
"0.66271955",
"0.6598934",
"0.65593815",
"0.65480053",
"0.65218306",
"0.6511665",
"0.64606607",
"0.6440448",
"0.63984156",
"0.6338785",
"0.63294864",
"0.6315476",
"0.63118845",
"0.63059294",
"0.6304708",
"0.6291267",
"0.62757... | 0.6976282 | 0 |
Takes input ends of all feed pipes and feeds odd numbers starting from low until high both inclusive. in a round robin fashion. process ends by feeding 1 to all pipes. 1 is a sentinel value. | def DjF0(quwZ, gqRb, ODP9):
def iu0T(gqRb, ODP9):
YRbF = gqRb
if YRbF % 2 == 0:
YRbF += 1
while YRbF <= ODP9:
yield YRbF
YRbF += 2
yield (-1)
P8P8 = 0
FGW3 = iu0T(gqRb, ODP9)
while True:
tO9_ = next(FGW3)
if tO9_ == -1:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_CQ():\n mLGw = 0\n while True:\n yield (mLGw * (mLGw & 1))\n mLGw += 1",
"def dp6i():\n jvSB = 1\n while True:\n yield jvSB\n jvSB = jvSB + 2",
"def VJBl():\n WKvO = ''\n while True:\n WKvO = (yield WKvO)\n yield",
"def MIep(qoqK):\n jvSB =... | [
"0.5789352",
"0.5761657",
"0.5741719",
"0.564393",
"0.52422297",
"0.51917",
"0.50984246",
"0.50861835",
"0.5054945",
"0.50331575",
"0.50145054",
"0.5011917",
"0.50026035",
"0.49603093",
"0.49603093",
"0.4935153",
"0.49219003",
"0.49094537",
"0.4875977",
"0.4841634",
"0.483971... | 0.68875015 | 0 |
Estimate whether the animal was running during each trial. This function first smooths the running trace according to smoothsize (noncausal), it then uses the average of N presamples before the onset to to estimate whether running was higher than the threshold. | def K5jS(a4ik, hHWA, aWnk=10, NeFK=4, gwAu=3, R9Va=False):
Or_F = oyIN.ones(aWnk) / aWnk
ApU7 = oyIN.convolve(a4ik, Or_F, mode='same')
iXnF = oyIN.where(hHWA)[0]
jysd = oyIN.arange(-NeFK, 0) + iXnF[:, oyIN.newaxis]
hb4T = ApU7[jysd].mean(axis=1)
wWAl = hb4T > gwAu
if R9Va:
QrM1.cla()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybr_(YKHO):\n exwG = 3\n assert len(YKHO.averages) == len(YKHO.timestamps)\n zNig = len(YKHO.averages)\n D9G2 = []\n for a1PO in [0, zNig - exwG]:\n pkNA = oyIN.asarray(YKHO.averages[a1PO:zNig])\n M_Ra = oyIN.asarray(YKHO.timestamps[a1PO:zNig])\n '\\n slope = np.a... | [
"0.5619866",
"0.5553437",
"0.5524997",
"0.53908414",
"0.5296018",
"0.5253825",
"0.5213897",
"0.52011967",
"0.51841336",
"0.5176683",
"0.51282734",
"0.5120962",
"0.51179755",
"0.5112065",
"0.50441957",
"0.50383514",
"0.503653",
"0.50297564",
"0.4981896",
"0.4948819",
"0.493829... | 0.7172721 | 0 |
A helper function to getnerate quaternions from yaws. | def cEyu(xTkQ):
vexM = DDQT(0.0, 0.0, xTkQ)
_Jov = R5H8()
_Jov.w = vexM[0]
_Jov.x = vexM[1]
_Jov.y = vexM[2]
_Jov.z = vexM[3]
return _Jov | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrsR(WKvO, LVAh, epBp, yzQ0):\n lGE9 = +2.0 * (yzQ0 * WKvO + LVAh * epBp)\n n2Q1 = +1.0 - 2.0 * (WKvO * WKvO + LVAh * LVAh)\n cDNu = epAf.atan2(lGE9, n2Q1)\n SpII = +2.0 * (yzQ0 * LVAh - epBp * WKvO)\n SpII = +1.0 if SpII > +1.0 else SpII\n SpII = -1.0 if SpII < -1.0 else SpII\n TC6u = epA... | [
"0.5886946",
"0.5821129",
"0.57884336",
"0.5761411",
"0.57510763",
"0.56554824",
"0.55509216",
"0.5486164",
"0.5485171",
"0.5455863",
"0.5419014",
"0.5404133",
"0.53984076",
"0.5394962",
"0.53919274",
"0.5354592",
"0.5353793",
"0.5328789",
"0.5326809",
"0.5319791",
"0.5303704... | 0.47717264 | 84 |
Save the DataSets as CSV | def lE51(oxOY, VLZo, AGPF=''):
print(f'{AGPF}{VLZo.split('/')[-1].replace('.pdf', '')}_0..{len(oxOY)}.csv')
list(map(lambda V2zj: V2zj[1].to_csv(f'{AGPF}{VLZo.split('/')[-1].replace('.pdf', '')}_{V2zj[0]}.csv', index=False), enumerate(oxOY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wi90(YKHO):\n pmON = YLnl(Hy7s.path.join, 'datasets')\n lR77 = YKHO.name.lower().replace(' ', '_')\n YKHO.df['values'].sum(axis=1).to_csv(pmON('{0}_values.csv'.format(lR77)))\n YKHO.df['allocations'].to_csv(pmON('{0}_allocations.csv'.format(lR77)))\n YKHO.df['returns'].to_csv(pmON('{0}_returns.c... | [
"0.7957732",
"0.79157484",
"0.7566766",
"0.7396046",
"0.73250043",
"0.7290871",
"0.72067684",
"0.71864974",
"0.71633387",
"0.7068782",
"0.7042488",
"0.7025496",
"0.70245546",
"0.69767153",
"0.69759953",
"0.69569284",
"0.69508433",
"0.69366264",
"0.68940073",
"0.68940073",
"0.... | 0.6633306 | 39 |
All the logic to move, and the game logic goes here. Normally, you'll call update() on the sprite lists that need it. | def QdZT(YKHO, OeYL):
BH3N = YKHO.game
if BH3N.exit:
jIOH.close_window()
if not BH3N.is_running:
return
if YKHO.game.level != YKHO.last_level:
YKHO.reset_level()
YKHO.last_level = YKHO.game.level
if not BH3N.update_game(OeYL):
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8cm(YKHO):\n if not YKHO.game_over:\n YKHO.all_sprites_list.update()",
"def QdZT(YKHO):\n YKHO.moving_sprites.update()\n YKHO.static_sprites.update()\n YKHO.camera.update(YKHO.player)",
"def QdZT(YKHO):\n if YKHO.able_to_move:\n YKHO.pix_pos += YKHO.direction * YKHO.speed\n ... | [
"0.81336796",
"0.7562641",
"0.7411709",
"0.73849124",
"0.7197949",
"0.7156386",
"0.7143857",
"0.7113507",
"0.70476794",
"0.7022667",
"0.69586724",
"0.695298",
"0.6948688",
"0.6880869",
"0.6738882",
"0.67356026",
"0.6731809",
"0.67010486",
"0.6692721",
"0.66918117",
"0.6690588... | 0.0 | -1 |
Return a head compatible with this task | def HEQo(YKHO, ROaS: int, begE: Optional[str]=None):
sdCG = U78l.Linear(ROaS, YKHO.n_classes)
G0M1(sdCG)
if begE is not None:
sdCG = sdCG.to(begE)
return sdCG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO) -> GRpb:\n return YKHO._model.head",
"def sdCG(YKHO) -> ZylS.estimator.Head:\n LEgg = YKHO._problem_statement.tasks[0].type\n if LEgg.HasField('one_dimensional_regression'):\n return ZylS.estimator.RegressionHead()\n jTqs = YKHO._tf_transform_output.num_buckets_for_transformed_f... | [
"0.78820324",
"0.7001775",
"0.6367529",
"0.6272498",
"0.6272498",
"0.6085029",
"0.60775405",
"0.60211575",
"0.59077823",
"0.58798844",
"0.5837654",
"0.578382",
"0.5746318",
"0.570547",
"0.5696375",
"0.56910676",
"0.56888205",
"0.56619275",
"0.56599844",
"0.5638932",
"0.563865... | 0.5274176 | 76 |
Evaluate a model on a dataset | def cQY1(YKHO, C3ST: nn.Module, Ep8u: int=32, nPrm: Union[str, th.utils.data.Dataset]='test', QxcP: Optional[Callable]=None, TmpI: bool=False, ecF5: Optional[Callable]=None, Rhem: bool=False):
Tuqy = C3ST.training
C3ST.train(mode=False)
__n6 = nPrm
if isinstance(nPrm, str):
__n6 = YKHO.get_split... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, __n6):\n return YKHO.model.evaluate(__n6.X_val, __n6.y_val)",
"def b7La(YKHO, __n6):\n pass",
"def b7La(Z5wO, H96n):\n Ep8u = 16\n C3ST = uyMl('model/model.h5')\n return C3ST.evaluate(Z5wO, H96n, Ep8u, verbose=1)",
"def pK4W(C3ST):\n zQbV(C3ST)\n if isinstance(FUPx, tuple)... | [
"0.7838396",
"0.75702345",
"0.75052845",
"0.7403759",
"0.7293109",
"0.71893185",
"0.7124573",
"0.71120846",
"0.7107418",
"0.70945823",
"0.70358276",
"0.7014347",
"0.7008108",
"0.6981123",
"0.69724715",
"0.6952163",
"0.69312906",
"0.69263285",
"0.68702364",
"0.68674177",
"0.68... | 0.6675748 | 42 |
Collater to make batches | def QxcP(YKHO, *qIxc):
return lWys(VqTo(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PwCM(Wc9F):\n return Wc9F[0]",
"def i0HP(YKHO, gGnb):\n raise NotImplementedError",
"def UDfH(YKHO):\n pass",
"def UhPa(Wc9F):\n return Wc9F",
"def UhPa(Wc9F):\n return Wc9F",
"def UhPa(Wc9F):\n return Wc9F",
"def QxcP(Wc9F):\n NPTA = zip(*Wc9F)\n Tz24 = lambda Wc9F: ht2j.ca... | [
"0.7257751",
"0.64775294",
"0.62918323",
"0.62413275",
"0.62413275",
"0.62413275",
"0.6130379",
"0.6129091",
"0.60867256",
"0.6059193",
"0.604119",
"0.6024431",
"0.60000926",
"0.59829533",
"0.59790826",
"0.5951112",
"0.590438",
"0.5853374",
"0.5758594",
"0.5754777",
"0.575146... | 0.55312043 | 33 |
Reset the process of training, which includes the loss meter reset, epoch reset and model's weights reset. | def Gd8r(YKHO):
YKHO.model.apply(YKHO._reset_weights)
YKHO.epoch_loss.reset()
YKHO.epoch = 0
del YKHO.batch_process
YKHO.batch_process = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.train_loss.reset_states()\n YKHO.train_accuracy.reset_states()\n YKHO.val_loss.reset_states()\n YKHO.val_accuracy.reset_states()\n YKHO.train_mIoU.reset_states()\n YKHO.val_mIoU.reset_states()",
"def aMUt(YKHO):\n for bGrB, oLeg in YKHO.training_losses.items():\n ... | [
"0.80868524",
"0.7918954",
"0.7916748",
"0.7766766",
"0.7735061",
"0.76176995",
"0.7499007",
"0.7421006",
"0.7351169",
"0.72698146",
"0.7228589",
"0.7210134",
"0.71855277",
"0.70681477",
"0.701447",
"0.6989159",
"0.69768757",
"0.6957746",
"0.6951352",
"0.6948265",
"0.69307107... | 0.9016183 | 0 |
Update weights based on last input/output and learning rate | def MyUA(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IDad(YKHO, b0Ix):\n for gEmA in YKHO.layers:\n gEmA.weights.set_value((gEmA.weights - b0Ix * gEmA.dW).eval())\n gEmA.biases.set_value((gEmA.biases - b0Ix * gEmA.db).eval())",
"def MyUA(YKHO):\n YKHO.w += YKHO.learn_rate * (YKHO.X.T.dot(YKHO.T - YKHO.Y) - YKHO.reg_L1 * oyIN.sign(YKHO.w) - ... | [
"0.80830616",
"0.7857255",
"0.77221936",
"0.75878155",
"0.7544157",
"0.75073385",
"0.7503516",
"0.74666196",
"0.7415437",
"0.7407029",
"0.7364739",
"0.7336763",
"0.7227047",
"0.721761",
"0.7210267",
"0.71573895",
"0.7152569",
"0.7145055",
"0.7145055",
"0.7090362",
"0.7078788"... | 0.7508802 | 5 |
Create the reference file of a test using the response received. The file will be created in the git references folder provided in the settings file | def dgJD(YKHO, gnFo=q7MN.default_journey_checker):
Ux0P = YKHO.get_file_name()
VqRE = Hy7s.path.join(GPtr['REFERENCE_FILE_PATH'], Ux0P)
if Hy7s.path.isfile(VqRE):
bo34.warning('NO REF FILE CREATED - {} is already present'.format(VqRE))
else:
CLfm = U8Lr()
CLfm['query'] = YKHO.que... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bf9h(QePW):\n Mkmy = BYML.ref(QePW)\n B3B_ = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n Mkmy.set_data_location(Hy7s.path.join(B3B_, '..', 'reference'))\n return Mkmy",
"def Jo0z(YKHO):\n F3jJ = YKHO.create_repository(tool_name='Test')\n lnN1 = YKHO.create_review_request(repository=F3jJ, s... | [
"0.65603554",
"0.62640995",
"0.62635124",
"0.62011635",
"0.6008765",
"0.5936762",
"0.5884765",
"0.5857535",
"0.5827133",
"0.5797445",
"0.5793405",
"0.5725234",
"0.57189417",
"0.571022",
"0.5687655",
"0.5664678",
"0.5638524",
"0.56348014",
"0.5630147",
"0.5594338",
"0.55792326... | 0.70232326 | 0 |
Pure implement of heap sort algorithm in Python | def sEWy(xUwc):
exwG = len(xUwc)
for YRbF in range(exwG // 2 - 1, -1, -1):
QZno(xUwc, YRbF, exwG)
for YRbF in range(exwG - 1, 0, -1):
xUwc[0], xUwc[YRbF] = (xUwc[YRbF], xUwc[0])
QZno(xUwc, 0, YRbF)
return xUwc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEWy(list):\n pass",
"def sEWy(ezWE):\n if not isinstance(ezWE, list) or len(ezWE) == 0:\n return\n for YRbF in range(len(ezWE) // 2 - 1, -1, -1):\n QZno(ezWE, YRbF, len(ezWE))\n for YRbF in range(len(ezWE) - 1, 0, -1):\n ezWE[0], ezWE[YRbF] = (ezWE[YRbF], ezWE[0])\n Q... | [
"0.82783955",
"0.8089301",
"0.8086552",
"0.8035019",
"0.8015355",
"0.7985793",
"0.7985793",
"0.7959204",
"0.7954446",
"0.7736345",
"0.7736345",
"0.7707003",
"0.77046126",
"0.77045786",
"0.7695088",
"0.7671767",
"0.76464075",
"0.7600847",
"0.75952286",
"0.7574346",
"0.7545443"... | 0.7628612 | 17 |
Returns a string representation of a path | def HbSC(Rfm7):
Aofo = ''
for SXRB in Rfm7:
if isinstance(SXRB, jKi7.integer_types):
Aofo += '[{0}]'.format(SXRB)
else:
Aofo += "['{0}']".format(SXRB)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XltJ(pmON):\n hlel = 'PATH: '\n if pmON:\n for YRbF in pmON:\n hlel += str(YRbF.data) + ' -> '\n else:\n hlel += 'Empty'\n return hlel",
"def JRNQ(pmON):\n if hasattr(pmON, '__fspath__'):\n pmON = ivjA(pmON.__fspath__())\n return pmON",
"def CZBi(pmON: path... | [
"0.79950243",
"0.77772427",
"0.76012766",
"0.75008774",
"0.7465539",
"0.73858505",
"0.724589",
"0.7177473",
"0.71564364",
"0.70764357",
"0.70681226",
"0.70649594",
"0.70468634",
"0.70299315",
"0.6943011",
"0.69423383",
"0.6906489",
"0.6906489",
"0.69057655",
"0.68910974",
"0.... | 0.0 | -1 |
[channel] Retrieves the vote count for a poll. | def ne5b(YKHO, Hms_, tO9_, qIxc, YwkQ, Ii1o):
if YwkQ and tO9_.args[0] in Hms_.state.channels:
if tO9_.args[0] != YwkQ:
if kF3e.checkCapability(tO9_.prefix, 'admin') or kF3e.checkCapability(tO9_.prefix, 'owner'):
Hms_.error('Not Implemented')
else:
Hms... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaR1(YKHO, m8z6):\n return m8z6.vote_set.count()",
"async def _vote_count(YKHO, OaeV: Context, *, YwkQ: discord.TextChannel=None):\n lSCo: ZOrr.Guild = OaeV.guild\n if not YwkQ:\n YwkQ = await YKHO.get_vote_channel(lSCo)\n if isinstance(YwkQ, str):\n return await OaeV.send(Y... | [
"0.6773994",
"0.6712171",
"0.66255003",
"0.64222467",
"0.64080846",
"0.6403009",
"0.6307542",
"0.627525",
"0.62508446",
"0.6187831",
"0.6187831",
"0.61792505",
"0.6178627",
"0.61383927",
"0.61028653",
"0.6074583",
"0.60575265",
"0.60141224",
"0.6011861",
"0.60046905",
"0.6000... | 0.0 | -1 |
Gets information about a RuntimeConfig resource. | def RyOh(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOux(YKHO) -> str:\n return YKHO._node['app_data'].get('runtime_config')",
"def Xas7(pan_=False, DHvX=None):\n return VPQY(OaeV, 'resource_config', pan_, DHvX)",
"def GPtr(YKHO):\n XgyP = Vqy3(YKHO.context)\n return XgyP.get(hJ1x, {})",
"def D7Pr(YKHO) -> qe4Y.Output['outputs.RuntimeAccessCon... | [
"0.7309697",
"0.63536143",
"0.61861",
"0.61123216",
"0.60506386",
"0.6046548",
"0.60022986",
"0.59997743",
"0.59895045",
"0.5969095",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",
"0.5955346",... | 0.0 | -1 |
Creates a new RuntimeConfig resource. The configuration name must be unique within project. | def D50n(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, GPtr):\n Zu8l = GPtr.get('LaunchConfigurationName', YKHO._name)\n assert Zu8l == YKHO._name, 'Config name mismatch {} {}'.format(Zu8l, YKHO._name)\n GPtr['LaunchConfigurationName'] = YKHO._name\n YKHO._client.create_launch_configuration(**GPtr)",
"def BNGj(YKHO) -> None:\n pass",
... | [
"0.6188884",
"0.6090293",
"0.6090293",
"0.58227265",
"0.57470423",
"0.57029325",
"0.5658915",
"0.55869395",
"0.55303633",
"0.5527195",
"0.5509801",
"0.5489197",
"0.5486522",
"0.544036",
"0.54257023",
"0.5423881",
"0.54184675",
"0.5381031",
"0.5323874",
"0.532296",
"0.5305365"... | 0.0 | -1 |
Deletes a RuntimeConfig resource. | def SDju(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yitu(YKHO, PcW4, wIw1):\n pass",
"def uUDq(YKHO, PcW4, wIw1):\n pass",
"def PTpj(mWFP, GPtr, DDLl, S8SU, dsE5):\n pbUC(G9jH.DEBUG)\n Y4q3(mWFP)\n if GPtr:\n GPtr = Dodi(GPtr)\n pbUC(G9jH.DEBUG)\n Cyt6 = da9L(DDLl, S8SU, runtime_name=mWFP)\n GPtr = UiCc(GPtr, Cyt6)\n if GPt... | [
"0.63476586",
"0.6339625",
"0.6323798",
"0.6240317",
"0.62242293",
"0.619534",
"0.61792046",
"0.61713314",
"0.6144527",
"0.6141145",
"0.6128976",
"0.60849786",
"0.6033858",
"0.60115296",
"0.5929646",
"0.57731843",
"0.5771558",
"0.5689029",
"0.5676266",
"0.5670987",
"0.5560764... | 0.56942225 | 17 |
Lists variables within given a configuration, matching any provided filters. This only lists variable names, not the values, unless `return_values` is true, in which case only variables that user has IAM permission to GetVariable will be returned. | def Do1g(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXYZ(YKHO, QePW, QpfX):\n geh0 = QbHR()\n for Es0b in YKHO._delegator.list_variables(QePW.component):\n geh0.variables.append(Es0b)\n return geh0",
"def nNTj(YKHO, qIxc):\n gInv = gnPz.VariableClient()\n yEHD = gnPz.Messages()\n dC8Q = gnPz.ParseConfigName(gnPz.ConfigName(qIxc))\n ... | [
"0.6380369",
"0.5820642",
"0.57636815",
"0.56829864",
"0.5545043",
"0.552599",
"0.5512235",
"0.54310113",
"0.5424095",
"0.5416049",
"0.5415185",
"0.5367262",
"0.53486437",
"0.53446084",
"0.5319058",
"0.52849674",
"0.52658916",
"0.5254456",
"0.5228465",
"0.520828",
"0.5206558"... | 0.5790898 | 2 |
The logout view. Redirects to home page after. | def erK4(QePW):
if QePW.user.is_authenticated():
F5T4(QePW)
return Yd7Q(gxEw('voter_validation:index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AXg6(QePW):\n erK4(QePW)\n return vKnz('home')",
"def AXg6(QePW):\n F5T4(QePW)\n return vKnz('home')",
"def AXg6(QePW):\n erK4(QePW)\n return Yd7Q(gxEw('index'))",
"def AXg6(QePW):\n erK4(QePW)\n return Yd7Q(gxEw('index'))",
"def erK4():\n oLi7()\n return vKnz(nKyW('defaul... | [
"0.8744168",
"0.8659496",
"0.8525579",
"0.8507581",
"0.8489514",
"0.8458301",
"0.8458301",
"0.84309167",
"0.84134465",
"0.83970946",
"0.8394286",
"0.8385555",
"0.83608264",
"0.83608264",
"0.83596367",
"0.8345407",
"0.8336058",
"0.83315647",
"0.83303416",
"0.8329741",
"0.83283... | 0.7844669 | 100 |
See recipe_api.py for docs. | def vptb(YKHO):
return HXPI.defer_results | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jc7k(YKHO):\n pass",
"def YSCM(YKHO):\n return YKHO.__recipe",
"def h8CT(YKHO):\n pass",
"def qlxx(YKHO, _eu6):\n raise NotImplementedError()",
"def xtxm(YKHO):\n pass",
"def o0J8(YKHO):\n pass",
"def AHLC(YKHO) -> yszQ.protobuf.internal.containers.RepeatedCompositeFieldContainer[... | [
"0.7399995",
"0.7240145",
"0.7060982",
"0.69131684",
"0.68955857",
"0.6634333",
"0.6622917",
"0.6594366",
"0.6353314",
"0.63221014",
"0.63158387",
"0.6281272",
"0.6268768",
"0.62628794",
"0.6251283",
"0.6206122",
"0.6205642",
"0.61758476",
"0.61579376",
"0.6142557",
"0.613580... | 0.59413797 | 38 |
Compares two response objects based on equality. | def qk7K(pcdu, cJB0):
return ZsIw(pcdu) == ZsIw(cJB0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, oGir):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, yx0f):\n return False\n return YKHO.to_dict() == Elif.to_dict()",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, c1j2):... | [
"0.7743906",
"0.7587754",
"0.7484174",
"0.7346719",
"0.73336023",
"0.73172593",
"0.7316397",
"0.7289357",
"0.72549665",
"0.724851",
"0.72303915",
"0.722987",
"0.7205563",
"0.7172449",
"0.71693856",
"0.7155242",
"0.7135397",
"0.7128382",
"0.71163017",
"0.71147203",
"0.71114576... | 0.0 | -1 |
Return today's date (UTC) formatted as YYYYMMDD. | def kKWq() -> str:
return F803(GGme, WPt4()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeyU() -> str:\n return qcWV.now().strftime('%Y-%m-%d')",
"def yo7_():\n kBpN = qcWV.utcnow()\n hN8g = kBpN.strftime('%m/%d/%Y')\n return hN8g",
"def ugtm():\n return qcWV.datetime.strftime(qcWV.datetime.utcnow(), '%Y-%m-%d')",
"def slWZ():\n wzkt = qcWV.now()\n _c1T = wzkt.strftime(... | [
"0.8165175",
"0.77760684",
"0.77601326",
"0.77202994",
"0.76923996",
"0.7595528",
"0.7585238",
"0.7497268",
"0.7361167",
"0.7340656",
"0.73232466",
"0.7306702",
"0.72497416",
"0.7205314",
"0.71836877",
"0.71293193",
"0.7124812",
"0.70916235",
"0.7083198",
"0.7062737",
"0.7011... | 0.7295072 | 12 |