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 |
|---|---|---|---|---|---|---|
EventhubNamespaceSku defines the sku | def FIMM(Ro_8, *, b7hB: Optional[pulumi.Input[int]]=None, mWFP: Optional[pulumi.Input[str]]=None, EcuX: Optional[pulumi.Input[str]]=None):
if b7hB is not None:
qe4Y.set(Ro_8, 'capacity', b7hB)
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP)
if EcuX is not None:
qe4Y.set(Ro_8, 'tier... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> h8nf[qe4Y.Input['EventhubNamespaceSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['IotHubDpsSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input['IotHubDpsSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.I... | [
"0.81155515",
"0.70365",
"0.6889655",
"0.6780357",
"0.67479026",
"0.66723436",
"0.6621684",
"0.6621684",
"0.65824133",
"0.65824133",
"0.65824133",
"0.65482324",
"0.64734006",
"0.64734006",
"0.6449073",
"0.64273584",
"0.64273584",
"0.6356497",
"0.6356497",
"0.63426834",
"0.632... | 0.0 | -1 |
EventhubSpec defines the desired state of Eventhub | def FIMM(Ro_8, *, Rci7: pulumi.Input[str], vBTQ: pulumi.Input[str], Iinc: Optional[pulumi.Input['EventhubSpecAuthorizationRuleArgs']]=None, DVD_: Optional[pulumi.Input[str]]=None, _63S: Optional[pulumi.Input[str]]=None, C9U5: Optional[pulumi.Input['EventhubSpecPropertiesArgs']]=None, qnCX: Optional[pulumi.Input[str]]=N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CvN1(YKHO):\n pass",
"def snwK(YKHO):\n pass",
"async def test_event(Pjr8: lightbus.BusNode, Dy8c, fQPU):\n Pjr8.bus_client.transport_registry.get_event_transport('default').stream_use = fQPU\n oN1z({})\n mdKx = []\n w7Kr = None\n _z5n = None\n\n async def listener(s32t, jkf2, **B2f... | [
"0.57470316",
"0.55471534",
"0.53595334",
"0.5293586",
"0.5258583",
"0.5215196",
"0.5189524",
"0.51341164",
"0.51017606",
"0.5065276",
"0.5036942",
"0.49862343",
"0.4979512",
"0.49704596",
"0.49670807",
"0.4964356",
"0.49602917",
"0.49551234",
"0.48925504",
"0.48886102",
"0.4... | 0.5355655 | 3 |
MessageRetentionInDays Number of days to retain the events for this Event Hub, value should be 1 to 7 days | def bjXa(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'message_retention_in_days') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')",
"def zkeL(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'retention_days')",
"def Ezo4(YKHO) -> int:\n return qe4Y.get(YKHO, 'remaining_retention_days')",
"def zkeL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'retenti... | [
"0.69079363",
"0.68759406",
"0.684173",
"0.67357457",
"0.6631539",
"0.6548917",
"0.63111925",
"0.62610126",
"0.6173079",
"0.57759434",
"0.5710031",
"0.5526394",
"0.5431963",
"0.5377957",
"0.52475584",
"0.516884",
"0.51634234",
"0.5107976",
"0.506718",
"0.506307",
"0.506307",
... | 0.7918465 | 0 |
AccountName Name of the storage account | def n8Ek(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'account_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Gx(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_account_name')",
"def lyVV(YKHO):\n try:\n ZrNc = YKHO.instance_metadata.get_tags()['bkp_storage_account']\n G9jH.debug('Using storage account name from instance metadata: %s', ZrNc)\n except Exception:\n iIih = YKHO.get_custom... | [
"0.885021",
"0.79995525",
"0.7892335",
"0.7835469",
"0.7835469",
"0.71318054",
"0.7103977",
"0.7103977",
"0.7103977",
"0.70397264",
"0.703388",
"0.6771647",
"0.67408985",
"0.6714965",
"0.67045265",
"0.67045265",
"0.66372246",
"0.65092146",
"0.64859873",
"0.64859873",
"0.64312... | 0.69242465 | 12 |
ResourceGroup Name of the storage account resource group | def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_... | [
"0.7900516",
"0.7723234",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.7661297",
"0.764902",
"0.74493235",
"0.74493235",
"0.74493235",
"0.74493235",
"0.74493235",
"0.74493235"... | 0.69013786 | 78 |
KeyVaultSku the SKU of the Key Vault | def PXIM(YKHO) -> h8nf[qe4Y.Input['KeyVaultSpecSkuArgs']]:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> qe4Y.Input['LabVirtualMachineSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input['StorageAccountSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> 'outputs.SkuResponse':\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> 'outputs.SkuResp... | [
"0.7646807",
"0.76211065",
"0.75372154",
"0.75372154",
"0.7470512",
"0.74445903",
"0.74197114",
"0.7401715",
"0.7374842",
"0.7309626",
"0.729828",
"0.729828",
"0.72923553",
"0.7192968",
"0.7144767",
"0.7144767",
"0.71375906",
"0.7067842",
"0.7067842",
"0.68284833",
"0.6676762... | 0.8176889 | 0 |
IPRules The list of IP address rules. | def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'ip_rules') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EventhubNamespaceSpecNetworkRuleIpRulesArgs']]]]:\n return qe4Y.get(YKHO, 'ip_rules')",
"def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['StorageAccountSpecNetworkRuleIpRulesArgs']]]]:\n return qe4Y.get(YKHO, 'ip_rules')",
"def G9fK(YKHO) -> h8nf[bdIy[... | [
"0.76496",
"0.7548644",
"0.74054444",
"0.7380639",
"0.69958955",
"0.68092954",
"0.68092954",
"0.63832223",
"0.6261158",
"0.6135325",
"0.60355914",
"0.5967046",
"0.59655607",
"0.59314233",
"0.5805967",
"0.5789669",
"0.57281464",
"0.56940675",
"0.5657434",
"0.5657434",
"0.56044... | 0.7583248 | 1 |
VirtualNetworkRules The list of virtual network rules. | def z7C5(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'virtual_network_rules') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z7C5(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EventhubNamespaceSpecNetworkRuleVirtualNetworkRulesArgs']]]]:\n return qe4Y.get(YKHO, 'virtual_network_rules')",
"def z7C5(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['StorageAccountSpecNetworkRuleVirtualNetworkRulesArgs']]]]:\n return qe4Y.get(YKHO, 'virtual... | [
"0.7907061",
"0.78448915",
"0.75953215",
"0.75953215",
"0.6169978",
"0.5870965",
"0.5775226",
"0.5599528",
"0.5582663",
"0.5499094",
"0.54738176",
"0.5429269",
"0.53426695",
"0.5253109",
"0.515451",
"0.50497365",
"0.5023078",
"0.5018901",
"0.49850854",
"0.49832827",
"0.496324... | 0.74176955 | 4 |
KeyVaultSku the SKU of the Key Vault | def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None):
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> h8nf[qe4Y.Input['KeyVaultSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['LabVirtualMachineSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input['StorageAccountSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -... | [
"0.817566",
"0.76455826",
"0.76190823",
"0.7536969",
"0.7536969",
"0.746991",
"0.744263",
"0.74177456",
"0.7399863",
"0.73731464",
"0.7308772",
"0.72975844",
"0.72975844",
"0.7291478",
"0.71913093",
"0.7144333",
"0.7144333",
"0.713816",
"0.7067006",
"0.7067006",
"0.68288094",... | 0.0 | -1 |
MySQLFirewallRuleSpec defines the desired state of MySQLFirewallRule | def FIMM(Ro_8, *, NXSu: pulumi.Input[str], vBTQ: pulumi.Input[str], N5z6: pulumi.Input[str], CE9v: pulumi.Input[str]):
qe4Y.set(Ro_8, 'end_ip_address', NXSu)
qe4Y.set(Ro_8, 'resource_group', vBTQ)
qe4Y.set(Ro_8, 'server', N5z6)
qe4Y.set(Ro_8, 'start_ip_address', CE9v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KWEI(YKHO):\n Eorv = 'firewall_rule'\n HCmI = b0pZ.UpdateFirewallRule(oFyK.MyApp(HwRy.stdout), None)\n YKHO._test_update_resource(Eorv, HCmI, 'myid', ['myid', '--protocol', 'any'], {'protocol': None})",
"def kKK9(YKHO, iquo='tcp'):\n Eorv = 'firewall_rule'\n HCmI = b0pZ.CreateFirewallRule(oFyK... | [
"0.58980244",
"0.5564809",
"0.5302986",
"0.53005546",
"0.51207197",
"0.4977411",
"0.49605805",
"0.49408087",
"0.49079952",
"0.48587972",
"0.48423457",
"0.48284513",
"0.48178557",
"0.47900584",
"0.47553283",
"0.4728022",
"0.4724269",
"0.47188938",
"0.4717813",
"0.46965986",
"0... | 0.0 | -1 |
RedisCacheFirewallRuleSpec defines the desired state of RedisCacheFirewallRule | def FIMM(Ro_8, *, C9U5: pulumi.Input['RedisCacheFirewallRuleSpecPropertiesArgs'], vWKA: pulumi.Input[str], vBTQ: pulumi.Input[str]):
qe4Y.set(Ro_8, 'properties', C9U5)
qe4Y.set(Ro_8, 'redis_cache', vWKA)
qe4Y.set(Ro_8, 'resource_group', vBTQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9U5(YKHO) -> qe4Y.Input['RedisCacheFirewallRuleSpecPropertiesArgs']:\n return qe4Y.get(YKHO, 'properties')",
"def GHb8(YKHO, qIxc: dict, B2Dn: int=None, bNfU: int=None) -> cuzp[str, ImMB]:\n NArs = QXLU({'id': qIxc.get('rule_id'), 'description': qIxc.get('description'), 'action': qIxc.get('action'), '... | [
"0.64670515",
"0.49387297",
"0.48921567",
"0.4852446",
"0.47198328",
"0.4697007",
"0.46688896",
"0.4635285",
"0.4571405",
"0.4550623",
"0.45408437",
"0.45253858",
"0.45047858",
"0.4497345",
"0.4491649",
"0.44886386",
"0.44803116",
"0.4475603",
"0.4461498",
"0.4446517",
"0.442... | 0.6373335 | 1 |
ResourceGroupSpec defines the desired state of ResourceGroup | def FIMM(Ro_8, *, Rci7: pulumi.Input[str]):
qe4Y.set(Ro_8, 'location', Rci7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ed9_(YKHO):\n pass",
"def hDLo(YKHO):\n pass",
"def ZgOG(YKHO):\n pass",
"def iIGb(YKHO):\n pass",
"def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> qe4Y.Outp... | [
"0.6505509",
"0.6301065",
"0.61530906",
"0.6148361",
"0.6142357",
"0.60421413",
"0.58286417",
"0.58286417",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577",
"0.576577"... | 0.0 | -1 |
StorageAccountKind enumerates the values for kind. Only one of the following kinds may be specified. If none of the following kinds is specified, the default one is StorageV2. | def eJTR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gLEw(YKHO, pAtl, vdxi):\n if pAtl == MLF9.StorageControllerType_IntelAhci:\n if vdxi:\n return ('ahci', False)\n return ('ahci', True)\n if pAtl == MLF9.StorageControllerType_PIIX4:\n return ('piix3ide', False)\n if pAtl == MLF9.StorageControllerType_LsiLogicSas:\n ... | [
"0.47533482",
"0.46575654",
"0.46544495",
"0.46497372",
"0.46063492",
"0.45768434",
"0.45735317",
"0.44810522",
"0.44777015",
"0.4470783",
"0.44599375",
"0.43815556",
"0.43552122",
"0.43443552",
"0.43182033",
"0.42779818",
"0.42725334",
"0.42725334",
"0.42725334",
"0.42725334",... | 0.0 | -1 |
StorageAccountSku the SKU of the storage account. | def PXIM(YKHO) -> h8nf[qe4Y.Input['StorageAccountSpecSkuArgs']]:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> qe4Y.Input['ApiManagementServiceSkuPropertiesArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['IotHubDpsSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input['EventhubNamespaceSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(... | [
"0.69467324",
"0.69334656",
"0.6922027",
"0.68865705",
"0.68865705",
"0.6876564",
"0.687044",
"0.6859113",
"0.6849375",
"0.68090314",
"0.6784327",
"0.6546753",
"0.6546753",
"0.6534348",
"0.65298563",
"0.65298563",
"0.6486263",
"0.63881135",
"0.63881135",
"0.62186664",
"0.6213... | 0.7923365 | 0 |
StorageAccountSku the SKU of the storage account. | def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None):
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> h8nf[qe4Y.Input['StorageAccountSpecSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['ApiManagementServiceSkuPropertiesArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['IotHubDpsSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKH... | [
"0.7923365",
"0.69467324",
"0.69334656",
"0.6922027",
"0.68865705",
"0.68865705",
"0.6876564",
"0.687044",
"0.6859113",
"0.6849375",
"0.68090314",
"0.6784327",
"0.6546753",
"0.6546753",
"0.6534348",
"0.65298563",
"0.65298563",
"0.6486263",
"0.63881135",
"0.63881135",
"0.62186... | 0.0 | -1 |
VNetSubnets defines subnets for this vnet | def FIMM(Ro_8, *, qt_4: pulumi.Input[str], UkFk: pulumi.Input[str], UOEK: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
qe4Y.set(Ro_8, 'subnet_address_prefix', qt_4)
qe4Y.set(Ro_8, 'subnet_name', UkFk)
if UOEK is not None:
qe4Y.set(Ro_8, 'service_endpoints', UOEK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> h8nf[qe4Y.Inpu... | [
"0.73542285",
"0.73308",
"0.7224014",
"0.707693",
"0.70190054",
"0.70097846",
"0.70097846",
"0.69170034",
"0.69083375",
"0.6660492",
"0.6571413",
"0.65679055",
"0.6528275",
"0.6326189",
"0.6300819",
"0.62799764",
"0.6203635",
"0.6164927",
"0.6125909",
"0.6075279",
"0.6075279"... | 0.0 | -1 |
Return the field to which I refer | def Jyyj(YKHO):
return YKHO.reference.field | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RrJl(YKHO) -> str:\n return qe4Y.get(YKHO, 'field_ref')",
"def Jyyj(YKHO):\n return YKHO.__field",
"def RrJl(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'field_ref')",
"def Jyyj(YKHO):\n return YKHO.__field",
"def Jpfi(YKHO, Jyyj):\n if Jyyj in YKHO.aux_field_names and (not getattr(YKHO,... | [
"0.78582025",
"0.7691693",
"0.7650813",
"0.76154995",
"0.76145256",
"0.7483544",
"0.7483544",
"0.7483544",
"0.7483544",
"0.72307676",
"0.7154997",
"0.7084573",
"0.6939344",
"0.69102126",
"0.6900437",
"0.68984705",
"0.68928736",
"0.6873761",
"0.68402",
"0.683615",
"0.68066275"... | 0.84023654 | 0 |
Get the proper min/max range for the variable | def vMx6(YKHO, SRYB, MynD, n4wC):
if SRYB.xminmax():
DhKr, YqAf = SRYB.xminmax()
if XgWJ(MynD):
MynD = max(MynD, DhKr)
else:
MynD = DhKr
if XgWJ(n4wC):
n4wC = min(n4wC, YqAf)
else:
n4wC = YqAf
assert XgWJ(MynD), 'Invalid typ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZBvC(YKHO):\n dgIT, bQ6z = YKHO._raw_data.data_range\n return bQ6z - dgIT",
"def S0Lu(min, max, BWXx=None, YPaw=None):\n if BWXx is None:\n if min is None or max is None:\n raise ValueError('unable to infer range, value from: ({0}, {1}, {2})'.format(min, max, BWXx))\n yk4i =... | [
"0.75316525",
"0.7485886",
"0.7384613",
"0.7356289",
"0.72231376",
"0.7164665",
"0.70964175",
"0.7076812",
"0.7063247",
"0.705729",
"0.7055413",
"0.7037412",
"0.7023311",
"0.699551",
"0.69851154",
"0.694994",
"0.69257486",
"0.69132155",
"0.6906655",
"0.6900297",
"0.6845268",
... | 0.6713911 | 37 |
Min/max values for xvariable | def EFA2(YKHO):
return YKHO.xvar.minmax() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZfU(YKHO, JRC0=1000000000.0, IA3S=-1000000000.0, DNHh=[]):\n if YKHO.verbose > 1:\n print('MultiLinearSpectra.get_min_max_x()')\n for r8hN in range(len(YKHO.mess)):\n if r8hN not in DNHh and YKHO.mess[r8hN]['class'] not in DNHh:\n JRC0, IA3S = YKHO.mess[r8hN]['object'].get_min_m... | [
"0.720667",
"0.710442",
"0.70935297",
"0.6985304",
"0.6864827",
"0.6849282",
"0.6815381",
"0.678636",
"0.67706716",
"0.6729637",
"0.66622525",
"0.6648847",
"0.6641357",
"0.6628382",
"0.6610478",
"0.6606432",
"0.65855145",
"0.6585273",
"0.657884",
"0.6574708",
"0.65424234",
... | 0.8137068 | 0 |
Get the proper xmin/xmax range | def TSVe(YKHO, BQGg, bYzl):
return YKHO.vmnmx(YKHO.xvar, BQGg, bYzl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X7zS(YKHO):\n return (YKHO.xmin, YKHO.xmax, YKHO.ymin, YKHO.ymax)",
"def FQ61(WKvO, dgIT, bQ6z):\n return oyIN.maximum(dgIT, oyIN.minimum(WKvO, bQ6z))",
"def zpIh(YKHO) -> tuple[int, int]:\n return (YKHO.range_from, YKHO.range_to)",
"def range(YKHO):\n stud, sI4v = ([], [])\n for pNZh in Y... | [
"0.7715976",
"0.7351248",
"0.7245717",
"0.7244277",
"0.7217625",
"0.7149899",
"0.7148794",
"0.7143487",
"0.7076961",
"0.70282245",
"0.7013115",
"0.7012048",
"0.70070577",
"0.69957423",
"0.6985054",
"0.6973543",
"0.696343",
"0.6949011",
"0.6940179",
"0.69164306",
"0.69139504",... | 0.0 | -1 |
Min/max values for yvariable | def DVXS(YKHO):
return YKHO.yvar.minmax() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c4gB(YKHO):\n return max((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def rwK9(YKHO) -> _ABP.FloatingValue:\n return IPme.GeoYMax(YKHO).to_expr()",
"def rwK9(YKHO):\n return YKHO.get_max_value(YKHO.Y_INDEX)",
"def v6e1(YKHO):\n return min((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def xOWs(YKHO, nPrm, ... | [
"0.6969927",
"0.69609314",
"0.6916123",
"0.68843013",
"0.6877174",
"0.6854547",
"0.68303454",
"0.6701568",
"0.6643342",
"0.6635836",
"0.66347027",
"0.663",
"0.6557379",
"0.6557379",
"0.65480304",
"0.653643",
"0.6531591",
"0.65247154",
"0.64870334",
"0.64422137",
"0.64368397",... | 0.83712214 | 0 |
Get the proper ymin/ymax range | def C1wv(YKHO, h3cg, Z3uP):
return YKHO.vmnmx(YKHO.yvar, h3cg, Z3uP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X7zS(YKHO):\n return (YKHO.xmin, YKHO.xmax, YKHO.ymin, YKHO.ymax)",
"def h3cg(YKHO):\n return YKHO.bbox[0][1]",
"def kgGb(YKHO):\n return YKHO.__ymin",
"def YdMO(YKHO, WKvO):\n cviu = YKHO._tightbbox\n if cviu is None:\n return (oyIN.nan, oyIN.nan)\n if WKvO == 'x':\n retu... | [
"0.7536308",
"0.7256791",
"0.69486654",
"0.6858025",
"0.68088293",
"0.6783814",
"0.673076",
"0.6615128",
"0.65841734",
"0.65812343",
"0.6535311",
"0.64967",
"0.64850336",
"0.6468613",
"0.64352614",
"0.64218354",
"0.6407238",
"0.64023876",
"0.6389204",
"0.63664293",
"0.6316297... | 0.0 | -1 |
Min/max values for yvariable | def aswd(YKHO):
return YKHO.zvar.minmax() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVXS(YKHO):\n return YKHO.yvar.minmax()",
"def c4gB(YKHO):\n return max((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def rwK9(YKHO) -> _ABP.FloatingValue:\n return IPme.GeoYMax(YKHO).to_expr()",
"def rwK9(YKHO):\n return YKHO.get_max_value(YKHO.Y_INDEX)",
"def v6e1(YKHO):\n return min((YKHO(0).... | [
"0.83712214",
"0.6969927",
"0.69609314",
"0.6916123",
"0.68843013",
"0.6877174",
"0.6854547",
"0.68303454",
"0.6701568",
"0.6643342",
"0.6635836",
"0.66347027",
"0.663",
"0.6557379",
"0.6557379",
"0.65480304",
"0.653643",
"0.6531591",
"0.65247154",
"0.64870334",
"0.64422137",... | 0.59933335 | 77 |
Sentences that are shorter than the max sentence length will be padded | def tF9L(Wc9F, tNZn, YUWI):
ty06 = ht2j.nn.utils.rnn.pad_sequence([ht2j.tensor(WKvO) for WKvO in Wc9F], batch_first=True, padding_value=YUWI)
return ty06 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDVN(Rhv4, zxGv='<PAD/>'):\n NXmX = 30\n JCJ1 = []\n for YRbF in range(len(Rhv4)):\n yAmx = Rhv4[YRbF][:NXmX]\n CD_k = NXmX - len(yAmx)\n qTh2 = yAmx + [zxGv] * CD_k\n JCJ1.append(qTh2)\n return JCJ1",
"def CDVN(yAmx, NXmX, zxGv='<PAD/>'):\n NXmX = 20\n mTBh = yA... | [
"0.761549",
"0.759053",
"0.74325603",
"0.7414228",
"0.7383278",
"0.7364693",
"0.7356377",
"0.73005116",
"0.7231061",
"0.7146647",
"0.7117847",
"0.7095228",
"0.7011655",
"0.6829436",
"0.67847717",
"0.6759713",
"0.66450495",
"0.6596753",
"0.6590864",
"0.658838",
"0.64831376",
... | 0.0 | -1 |
Batch is the raw words (not indice) Batch should be at the first dim Batch should be sorted in the descending order to use the "packed padded sequence function" | def TrHo(Wc9F, Rk5C, Ep8u, tNZn=True, YUWI='<pad>'):
YUWI = Rk5C[YUWI]
I7JW = VhyA(Wc9F, Rk5C)
I7JW.sort(key=lambda KCHu: len(KCHu), reverse=True)
J2wu = p8N3(I7JW)
I7JW = VIAZ(I7JW, J2wu, YUWI, Ep8u)
ty06 = tF9L(I7JW, batch_first=tNZn, pad_token=YUWI)
return (ty06, J2wu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inEx(Wc9F):\n gRUF = Wc9F[0]['<PAD>']\n ESov = [aTqo['input'] for aTqo in Wc9F]\n lbEt = []\n for Q5mJ in ESov:\n BcCR = max([len(A97Q[1]) for A97Q in Q5mJ])\n lbEt.append(BcCR)\n g4y1 = []\n for d6pt, Q5mJ in enumerate(ESov):\n mCjD = len(Q5mJ)\n jo2U = ht2j.zeros... | [
"0.7186635",
"0.7027946",
"0.6945027",
"0.67812145",
"0.6743976",
"0.6734085",
"0.67259175",
"0.6716711",
"0.67107445",
"0.6706902",
"0.66253495",
"0.66055214",
"0.6585167",
"0.65343946",
"0.6502442",
"0.64708024",
"0.64295256",
"0.6395916",
"0.63934433",
"0.63934433",
"0.638... | 0.705422 | 1 |
This method returns object of loads that are failing error_state != None, failing error_state = None, success | def Bh4c(geh0):
W5y1.info('Got loads response, checking for errors')
UtOt = {}
try:
_1kr = qQXR.loads(geh0)
if 'data' not in _1kr or len(_1kr) == 0:
raise vWyB('Invalid response from loads api')
UtOt = {tyeH['source_name']: tyeH['error_state']['notification_data']['error'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QenL(YKHO):\n try:\n bTKY = YKHO._get_nearest_entry_with_artifact()\n if bTKY is None:\n return None\n if bTKY.tier == 'local':\n qaEx = y9HQ(bTKY.artifact_url)\n elif bTKY.tier == 'cloud':\n NOKg = bTKY.artifact_url\n qaEx = YKHO._file... | [
"0.54306763",
"0.53637487",
"0.5333311",
"0.5301838",
"0.5283001",
"0.5273002",
"0.5264489",
"0.5246199",
"0.5217972",
"0.5217148",
"0.5194477",
"0.5188971",
"0.51522297",
"0.51494706",
"0.51444006",
"0.5142842",
"0.51173574",
"0.51087344",
"0.5082586",
"0.50719994",
"0.50706... | 0.5907646 | 0 |
This method returns True if target_time + delta_hours >= current time. False otherwise. | def PwRp(LEp0, format, A7wA):
return qcWV.strptime(LEp0, format) + fCoM(hours=A7wA) >= qcWV.utcnow() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qj_V():\n WXkz = ra5c()\n C61p = abs((WXkz['local'] - WXkz['target']).total_seconds())\n return C61p < lb9x",
"def _YhM(YKHO, JRYC: datetime) -> bool:\n return YKHO.target_time >= QOQo(JRYC)",
"def mq1C(YKHO):\n wzkt = ITS7.time() * 1000\n if YKHO.prev_time is None:\n return True\n... | [
"0.70599633",
"0.64565754",
"0.6361258",
"0.633628",
"0.63154334",
"0.62607044",
"0.6176231",
"0.61137956",
"0.5971461",
"0.59303844",
"0.59226227",
"0.591145",
"0.5903801",
"0.58901465",
"0.5878395",
"0.58584213",
"0.58575547",
"0.58501834",
"0.5820352",
"0.57955676",
"0.578... | 0.73495626 | 0 |
Compares this user entity with another one. | def xa14(YKHO, YEnM):
if not YEnM:
return False
return str(YKHO.key()) == str(YEnM.key()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n... | [
"0.71119803",
"0.71119803",
"0.71119803",
"0.69198245",
"0.6897546",
"0.6850669",
"0.68227696",
"0.68066347",
"0.67957556",
"0.6604202",
"0.65775335",
"0.6567185",
"0.6539681",
"0.65378934",
"0.65139675",
"0.64989287",
"0.64036286",
"0.6400513",
"0.63941395",
"0.6365585",
"0.... | 0.0 | -1 |
Compares this user entity with another one. | def Vdqg(YKHO, YEnM):
return not YKHO.__eq__(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, mv1M):\n... | [
"0.71119803",
"0.71119803",
"0.71119803",
"0.69198245",
"0.6897546",
"0.6850669",
"0.68227696",
"0.68066347",
"0.67957556",
"0.6604202",
"0.65775335",
"0.6567185",
"0.6539681",
"0.65378934",
"0.65139675",
"0.64989287",
"0.64036286",
"0.6400513",
"0.63941395",
"0.6365585",
"0.... | 0.0 | -1 |
Return the number of prime numbers up to and including n. >>> count_primes(6) 3 2, 3, 5 >>> count_primes(13) 6 2, 3, 5, 7, 11, 13 | def Sq61(exwG):
YRbF, wjRY = (1, 0)
while YRbF <= exwG:
if T1qg(YRbF):
wjRY += 1
YRbF += 1
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCyP(YKHO, exwG: int) -> int:\n if exwG < 2:\n return 0\n zNig = (exwG - 3) // 2 + 1\n rPed = [2]\n T1qg = [True for YRbF in range(zNig)]\n for YRbF in range(zNig):\n if T1qg[YRbF]:\n XP5J = 2 * YRbF + 3\n rPed.append(XP5J)\n for r845 in range(2 * Y... | [
"0.8320163",
"0.74782383",
"0.7402222",
"0.72196627",
"0.71892047",
"0.701902",
"0.6861923",
"0.6677156",
"0.6675551",
"0.6666648",
"0.6635933",
"0.6500234",
"0.6486344",
"0.64378786",
"0.6426352",
"0.6356678",
"0.635557",
"0.6339933",
"0.6317071",
"0.6292331",
"0.62911236",
... | 0.85665524 | 0 |
Returns a function that is itself a higherorder function. | def n2fR(Dyub, EmyI, IxvY):
"""*** YOUR CODE HERE ***"""
def OOX3(exwG):
def Ynj4(WKvO):
YRbF = 0
while YRbF < exwG:
if YRbF % 3 == 0:
WKvO = Dyub(WKvO)
elif YRbF % 3 == 1:
WKvO = EmyI(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOJD(JfyU: Callable) -> YrBT:\n return lambda eHNT: eAbp(JfyU, eHNT)",
"def xSXf(eHNT):\n return lambda WKvO: lambda LVAh: eHNT(WKvO, LVAh)",
"def TLv5():\n return lambda eHNT: lambda WKvO: eHNT(eHNT(WKvO))",
"def a0GJ():\n return lambda eHNT: lambda WKvO: eHNT(WKvO)",
"def BRRQ(eHNT: Calla... | [
"0.6576693",
"0.63378894",
"0.6233256",
"0.6153265",
"0.6129069",
"0.6070844",
"0.6052302",
"0.6001915",
"0.5964916",
"0.594681",
"0.58936214",
"0.58842826",
"0.57823807",
"0.57667005",
"0.56814593",
"0.56791604",
"0.5664517",
"0.5645075",
"0.55790377",
"0.5564775",
"0.548919... | 0.0 | -1 |
Fetch questions from stack exchange API. | def MK9R(yKcO: int, Os4s: int, dJ1p: str, qpDA: str='stackoverflow', PWzq: int=1, **B2fa) -> cuzp[str, ImMB]:
NArs = {'fromdate': yKcO, 'todate': Os4s, 'order': 'desc', 'sort': 'votes', 'min': PWzq, 'tagged': dJ1p, 'site': qpDA}
Mkmy = G4JS.get(rOmR, params=NArs)
Mkmy.raise_for_status()
return Mkmy.json... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7No(wzkt):\n bD7m = 'https://api.stackexchange.com/2.2/questions'\n pB3N = {'site': 'stackoverflow', 'order': 'desc', 'sort': 'activity', 'filter': '!4)zhYBvQ2q6LTHHe8'}\n Mkmy = G4JS.get(bD7m, params=pB3N)\n dZPt = Mkmy.json()\n SX61.set_trace()\n pass",
"def u7No(YKHO):\n YKHO.post_qu... | [
"0.70330614",
"0.6882399",
"0.6545069",
"0.6543828",
"0.6393058",
"0.6292426",
"0.6230435",
"0.6219314",
"0.6076395",
"0.5953763",
"0.59307975",
"0.5902566",
"0.5899188",
"0.5769806",
"0.5736594",
"0.57222015",
"0.5721201",
"0.571375",
"0.5697367",
"0.56572676",
"0.56317586",... | 0.53076744 | 50 |
Get a json file and turns it into a dictionary file. | def zZDP(YKHO):
try:
with open('registered.json', 'r') as nUeQ:
YKHO.final_dicc = qQXR.load(nUeQ)
except (FileNotFoundError, ValueError, qQXR.decoder.JSONDecodeError):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = _1kr(nMY2)\n return zgjV",
"def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = qQXR.loads(nMY2)\n return zgjV",
"def D20L(aRNY):\n with open(aRNY) as ECmi:\n tbx9 = qQXR.load(ECmi)\n return tbx... | [
"0.75848216",
"0.75512147",
"0.7401128",
"0.7297878",
"0.72836757",
"0.7237917",
"0.7216209",
"0.71961683",
"0.7195884",
"0.71792805",
"0.7173089",
"0.7153463",
"0.71461594",
"0.7144102",
"0.7121728",
"0.71081513",
"0.7107323",
"0.7098076",
"0.7095392",
"0.702254",
"0.7015352... | 0.0 | -1 |
Finds all variables over which the given model is defined. | def kc1W(C3ST: Model) -> ZLWb[str]:
assert l5Y5(C3ST)
return C3ST.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kc1W(C3ST: Model) -> ZLWb[str]:\n assert l5Y5(C3ST)\n return C3ST.keys()",
"def iPtx():\n Oa1e = ZylS.get_default_graph()\n return set(Oa1e.get_collection(ZylS.GraphKeys.MODEL_VARIABLES))",
"def znY4(l9Ur, Es0b):\n Ylbp = []\n KCHu = p6Op()\n KCHu.add(l9Ur)\n while True:\n if... | [
"0.7272694",
"0.71490556",
"0.667702",
"0.66481906",
"0.65305126",
"0.6503552",
"0.6485774",
"0.6348526",
"0.6266385",
"0.61185426",
"0.61151373",
"0.60915273",
"0.60735244",
"0.60460764",
"0.6007835",
"0.60012186",
"0.59873295",
"0.5895373",
"0.58784264",
"0.5875211",
"0.586... | 0.73332566 | 0 |
Returns the default timezone. | def WmM4(YKHO):
if YKHO.no_dbus:
return
return YKHO.TimeZoneProperties.Get('(ss)', z6Qd, 'Timezone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n return ITS7.timezone",
"def Vsdc():\n return YdD0.get_timezone(_meq())",
"def MbZJ():\n return rIAI('Etc/GMT-10')",
"def _meq():\n return 'UTC'",
"def mfWn(YKHO):\n with open('/etc/timezone') as eHNT:\n d5dG = eHNT.readline().replace('\\n', '')\n return d5dG",
"def ... | [
"0.79179716",
"0.78254384",
"0.7603934",
"0.7593029",
"0.72600347",
"0.725074",
"0.72326636",
"0.71985435",
"0.70479274",
"0.70047355",
"0.6908444",
"0.68653435",
"0.68653435",
"0.68653435",
"0.685976",
"0.68284416",
"0.67740804",
"0.6761612",
"0.6725657",
"0.66827357",
"0.66... | 0.80930585 | 0 |
Returns the default timezone. This is an 'offline' method, so the target will be respected and DBus will not be used. | def mfWn(YKHO):
with open('/etc/timezone') as eHNT:
d5dG = eHNT.readline().replace('\n', '')
return d5dG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WmM4(YKHO):\n if YKHO.no_dbus:\n return\n return YKHO.TimeZoneProperties.Get('(ss)', z6Qd, 'Timezone')",
"def Vsdc():\n return YdD0.get_timezone(_meq())",
"def _meq():\n return 'UTC'",
"def rIAI():\n return ITS7.timezone",
"def Vsdc(YKHO) -> str:\n return YKHO.AD.time_zone",
... | [
"0.8489979",
"0.7383099",
"0.7375322",
"0.7365673",
"0.711081",
"0.70930594",
"0.6884481",
"0.68395865",
"0.68390113",
"0.68292636",
"0.67981756",
"0.67640585",
"0.67013127",
"0.66991365",
"0.6638373",
"0.6638373",
"0.6638373",
"0.66305315",
"0.6607288",
"0.65521634",
"0.6543... | 0.78908 | 1 |
Test if notification email is sent to Boardlist upon creation. | def JH5J(YKHO):
bEmD = nNXP.portal.get_tool('MailHost')
YKHO.assertEqual(len(bEmD.messages), 1)
tO9_ = NpT0(bEmD.messages[0])
YKHO.assertEqual(tO9_['To'], L8mK)
YKHO.assertEqual(tO9_['From'], 'EESTEC International <noreply@eestec.net>')
YKHO.assertEqual(tO9_['Subject'], '=?utf-8?q?=5BEVENTS=5D=5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZwc(YKHO):\n YKHO.assertEqual(len(cpYK.outbox), 0)\n t0qN = nqEK.plugins.get('inventreecorenotificationsplugin')\n t0qN.set_setting('ENABLE_NOTIFICATION_EMAILS', True)\n mU17.set_setting(key='NOTIFICATION_METHOD_MAIL', value=True, change_user=YKHO.user, user=YKHO.user, method=Ttlh.EmailNotificatio... | [
"0.6556735",
"0.65537953",
"0.63737667",
"0.6364501",
"0.63192624",
"0.628415",
"0.6258998",
"0.6213086",
"0.61988914",
"0.61858743",
"0.6121915",
"0.61117977",
"0.60874194",
"0.6074701",
"0.60646015",
"0.6010965",
"0.5982959",
"0.5968985",
"0.595813",
"0.5944277",
"0.5924927... | 0.7275896 | 0 |
Convert the content of a file, from a given path, to a list | def oTep(qaEx, g8rx='\n'):
kGys = Nwr9(qaEx)
return kGys.split(g8rx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HTzx(pmON):\n Gcbu = open(pmON)\n a1PO = list()\n for zFiD in Gcbu:\n a1PO += ZOi3(zFiD)\n return a1PO",
"def HTzx(pmON: str):\n RRlC = []\n with open(pmON, 'r') as L8wK:\n for zFiD in L8wK.readlines():\n lpha = zFiD.split(',')\n RRlC.append((lpha[1], lph... | [
"0.8602792",
"0.7987933",
"0.7973737",
"0.76790863",
"0.744752",
"0.74313194",
"0.7397077",
"0.7336752",
"0.72939026",
"0.7292768",
"0.7288939",
"0.7255037",
"0.7181154",
"0.71618915",
"0.71224266",
"0.71160537",
"0.71110123",
"0.7045281",
"0.70317",
"0.70078385",
"0.6999386"... | 0.78354794 | 3 |
Gets the ratio of the step of the foot given the time of the path | def m4lO(YKHO, a1PO: float, sBNB: PostPreSetting=iegf.POST_AND_PRE) -> (int, float, float):
ZZiS = YKHO.full_step_time()
iO_u = YKHO.half_step_time()
HPzc = YKHO.post_footstep_ratio * ZZiS
Wwqv = YKHO.pre_footstep_ratio * ZZiS
if sBNB == iegf.ONLY_POST_AND_PRE_ON_LAST_ONES:
if a1PO < iO_u:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iO_u(YKHO):\n return YKHO.full_step_time() * YKHO.half_to_full_step_time_ratio",
"def cfPJ(YKHO) -> float:\n return YKHO.xsecs[-1].chord / YKHO.xsecs[0].chord",
"def XA7I(YKHO):\n n9bo = oyIN.abs(YKHO.rho_dt / YKHO.rho)\n rOia = oyIN.max(n9bo)\n oZ61 = oyIN.abs(YKHO.e_dt / YKHO.e)\n Th8C ... | [
"0.6458688",
"0.62631404",
"0.6132712",
"0.60785115",
"0.60140437",
"0.5937692",
"0.5915294",
"0.58683693",
"0.5854346",
"0.58422595",
"0.5784637",
"0.5775838",
"0.5767585",
"0.57486767",
"0.57436156",
"0.5738492",
"0.5723011",
"0.569719",
"0.56890446",
"0.56781787",
"0.55622... | 0.6042406 | 4 |
Position of the right foot on the ground at a certain foot step | def ohOt(YKHO, exwG: int) -> ZiVz:
YVdK = YKHO.getTorsoStepPose(exwG)
n8dH = YVdK.position
Wp5x = ZiVz([0, -YKHO.foot_separation, -n8dH[2] + YKHO.foot_center_to_floor])
return YVdK @ Wp5x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1h0(YKHO):\n if YKHO.facing == 0:\n YKHO.facing = 1\n YKHO.x += YKHO.stepLeft\n elif YKHO.facing == 1:\n YKHO.facing = 2\n YKHO.y += YKHO.stepUp\n elif YKHO.facing == 2:\n YKHO.facing = 3\n YKHO.x -= YKHO.stepRight\n elif YKHO.facing == 3:\n YKHO.fa... | [
"0.6220426",
"0.6205104",
"0.6142532",
"0.6115129",
"0.6073426",
"0.60303456",
"0.6002727",
"0.6001177",
"0.5971134",
"0.59408754",
"0.59240866",
"0.59177285",
"0.5837172",
"0.58324254",
"0.58282083",
"0.58151126",
"0.5779304",
"0.57497555",
"0.57187366",
"0.5692062",
"0.5692... | 0.6751273 | 0 |
Position of the left foot on the ground at a certain foot step | def Xpa2(YKHO, exwG: int) -> ZiVz:
YVdK = YKHO.getTorsoStepPose(exwG)
n8dH = YVdK.position
JCM8 = ZiVz([0, YKHO.foot_separation, -n8dH[2] + YKHO.foot_center_to_floor])
return YVdK @ JCM8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAYT(YKHO) -> m7iN:\n return YKHO.position.offset(m7iN((-2.5, 0.5)))",
"def SpEv(eHNT: SwimmingFish) -> float:\n if eHNT.dx > 0:\n return eHNT.posn.x\n else:\n return eHNT.posn.x - eHNT.fish.size",
"def LFlW(YKHO):\n if YKHO.d in U5q9:\n d6pt = U5q9.index(YKHO.d)\n i... | [
"0.64178807",
"0.63937944",
"0.6290517",
"0.62835646",
"0.622797",
"0.6162648",
"0.6106532",
"0.6082986",
"0.6082986",
"0.60187197",
"0.5964649",
"0.59643507",
"0.59528923",
"0.59426326",
"0.5919873",
"0.5894431",
"0.5892018",
"0.5889113",
"0.5880736",
"0.5879636",
"0.5856236... | 0.68765485 | 0 |
Closes the cursor into the database. | def DDI8(YKHO):
YKHO._check_closed()
YKHO._statement_cache.shutdown()
YKHO._close_result_set()
YKHO.closed = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.cursor.close()",
"def voyW(YKHO, N1p7=None):\n if N1p7 != None:\n N1p7.close()\n else:\n YKHO.cur.close()\n YKHO.dbcon.commit()",
"def DDI8(YKHO):\n YKHO.db.close()",
"def DDI8(YKHO):\n if YKHO.cursor is None:\n return\n YKHO.cursor.close()\n ... | [
"0.82439345",
"0.81032735",
"0.80062336",
"0.78465134",
"0.7745423",
"0.7720044",
"0.7719967",
"0.7702749",
"0.7656007",
"0.761185",
"0.75760216",
"0.7487821",
"0.7459423",
"0.74485385",
"0.7448299",
"0.7438617",
"0.74236435",
"0.74235684",
"0.73971534",
"0.73632944",
"0.7353... | 0.6740459 | 64 |
Close current ResultSet on client and server side | def mHpn(YKHO):
if YKHO._result_set:
YKHO._result_set.close(YKHO.session)
YKHO._result_set = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO._check_closed()\n YKHO._statement_cache.shutdown()\n YKHO._close_result_set()\n YKHO.closed = True",
"def DDI8(YKHO):\n dsE5.write('[SourceRPG] handling SQL close', 1)\n YKHO.cursor.close()\n YKHO.connection.close()\n dsE5.write('[SourceRPG] SQL close handled', 1)",... | [
"0.7303431",
"0.66221654",
"0.6416366",
"0.63946855",
"0.6357354",
"0.6265299",
"0.62494904",
"0.6228407",
"0.6211641",
"0.6193648",
"0.6160745",
"0.6160745",
"0.6160745",
"0.60941464",
"0.6081423",
"0.6074532",
"0.6067966",
"0.60328",
"0.60275894",
"0.6024028",
"0.6007732",
... | 0.7495625 | 0 |
Parse a list of JSON objects into a result set of model instances. | def oOnU(Emd4, nPrm):
dixj = ce9s()
nPrm = nPrm or []
for YEnM in nPrm:
if YEnM:
dixj.append(Emd4.parse(YEnM))
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aK9N(Emd4: Type[T], BWXx: ResponseOrResults) -> x1iM['BaseModel']:\n return [Emd4.from_json(ZfUD) for ZfUD in MdLO(BWXx)]",
"def aK9N(Emd4, BWXx: JsonResponse, **B2fa) -> 'BaseModelCollection':\n return Emd4.from_json(BWXx)",
"def gUO7(Emd4, nPrm):\n FYrf = Emd4.to_model(nPrm, {'many': True})\n ... | [
"0.70385766",
"0.6717563",
"0.6142425",
"0.5847431",
"0.5741159",
"0.570719",
"0.5693447",
"0.5690963",
"0.56718355",
"0.562394",
"0.5595281",
"0.5455497",
"0.5440124",
"0.5433064",
"0.540744",
"0.54056185",
"0.5394713",
"0.53931516",
"0.53719157",
"0.5365601",
"0.53539413",
... | 0.7313941 | 0 |
Returns a properly formed service name based on the service and process names passed in. Will look up services in the service mapping dictionary to see if there's a preferred name. | def WIf8(zVa7, KCHu):
x7hV = rGs5[zVa7] if zVa7 in rGs5 else zVa7
if KCHu == 'web' or x7hV == KCHu:
return x7hV
return '{}-{}'.format(x7hV, KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpPM(zVa7, wXAI):\n k3Zu = wXAI.os.package_type\n try:\n return YrZE[zVa7][k3Zu]\n except KeyError:\n return None",
"def _8AV(WmM4=None):\n return YPxG.get('SERVICE_NAME', default=WmM4, store=YPxG.Stores.OS).value",
"def bSEa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 's... | [
"0.66432166",
"0.6257668",
"0.6223302",
"0.6223302",
"0.6223302",
"0.6210517",
"0.6210517",
"0.6210517",
"0.6126875",
"0.6126875",
"0.6123789",
"0.6123789",
"0.6123789",
"0.6099026",
"0.5897384",
"0.5817679",
"0.58041877",
"0.57994455",
"0.57889974",
"0.5719965",
"0.57155925"... | 0.6857236 | 0 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)",
"def rEkR():\n return H66R.Board()",
"def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(Y... | [
"0.8081514",
"0.7890486",
"0.7534929",
"0.72789717",
"0.72789717",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
... | 0.0 | -1 |
Returns player who has the next turn on a board. | def oyg0(iBIi):
if iBIi == W9gz():
return EcVT
if sum([rdlD.count(EcVT) for rdlD in iBIi]) <= sum([rdlD.count(LTX_) for rdlD in iBIi]):
return EcVT
else:
return LTX_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None",
"def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX... | [
"0.7910981",
"0.7522231",
"0.74202156",
"0.73700017",
"0.7195211",
"0.6975818",
"0.6961524",
"0.6925103",
"0.6919324",
"0.6899665",
"0.6847661",
"0.68389785",
"0.6838656",
"0.6825226",
"0.6774813",
"0.6774813",
"0.6769727",
"0.671182",
"0.67078507",
"0.6656021",
"0.66138667",... | 0.5978976 | 91 |
Returns the optimal action for the current player on the board. | def SR1K(iBIi):
if f9TP(iBIi):
return None
if oyg0(iBIi) is EcVT:
bGrB, NXPA = PtQX(iBIi, -epAf.inf, epAf.inf)
return NXPA
elif oyg0(iBIi) is LTX_:
bGrB, NXPA = vELP(iBIi, -epAf.inf, epAf.inf)
return NXPA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction",
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,... | [
"0.7767876",
"0.76326656",
"0.7583707",
"0.7527576",
"0.7518166",
"0.7459586",
"0.74264187",
"0.74171406",
"0.7394994",
"0.7373495",
"0.73339117",
"0.73138356",
"0.7306222",
"0.72836244",
"0.72657037",
"0.72657037",
"0.7249796",
"0.72338015",
"0.7202847",
"0.7173266",
"0.7171... | 0.74657345 | 5 |
Determine if rectangles overlap. | def _biM(VKg2, z5xq):
jzdc = z5xq[2] <= VKg2[0]
Fg_i = VKg2[2] <= z5xq[0]
Z9rn = z5xq[3] <= VKg2[1]
Csk6 = VKg2[3] <= z5xq[1]
return not (jzdc or Fg_i or Z9rn or Csk6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWdW(YKHO):\n VRm2 = x7Ls(10, 20, 30, 40)\n elcS = x7Ls(50, 60, 70, 80)\n assert not VRm2.overlap_with(elcS)\n assert not elcS.overlap_with(VRm2)\n assert not x7Ls.overlap(VRm2, elcS)\n assert not x7Ls.overlap(elcS, VRm2)\n VRm2 = x7Ls(-10, -20, 10, 60)\n elcS = x7Ls(0, 50, 100, 200)\n ... | [
"0.78785366",
"0.78189707",
"0.74654937",
"0.7433727",
"0.73448104",
"0.73079705",
"0.72908956",
"0.72661495",
"0.72529876",
"0.72025895",
"0.71837574",
"0.71644276",
"0.7121134",
"0.70713717",
"0.7053453",
"0.70287764",
"0.70260084",
"0.70231086",
"0.7020437",
"0.70099384",
... | 0.7547085 | 2 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, PhL6: ConfigEntry) -> bool:
if (yT1k := (await ajET.config_entries.async_unload_platforms(PhL6, aprE))):
ajET.data[Sugg].pop(PhL6.entry_id)
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k",
"async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True",
"async def async_unload_entry(ajET: HomeAssis... | [
"0.697284",
"0.6888074",
"0.6779855",
"0.6747459",
"0.6689002",
"0.6657831",
"0.66162205",
"0.6603433",
"0.65925974",
"0.65411645",
"0.6507643",
"0.6507643",
"0.6507643",
"0.6507643",
"0.64977276",
"0.64931643",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6469397",... | 0.65595686 | 9 |
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.803914",
"0.7924723",
"0.79231334",
"0.7884526",
"0.78771573",
"0.7815713",
"0.7765599",
"0.7755608",
"0.7743973",
"0.77318287",
"0.7728876",
"0.77249795",
"0.77027917",
"0.76890886",
"0.76890886",
"0.7664144",
"0.76570666",
"0.7655797",
"0.7655797",
"0.7645813",
"0.764581... | 0.7448972 | 78 |
A Hand object will always be constructed with an empty _cards list and replacement set to False | def FIMM(YKHO):
super().__init__()
YKHO._value = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhpT(YKHO):\n for bGrB in range(YKHO._handsize):\n if YKHO._deck.size() == 0:\n YKHO._discard.shuffle_collection()\n YKHO._deck.replace(YKHO._discard)\n YKHO._discard.clear_collection()\n dxhl = YKHO._deck.pop()\n YKHO._hand.push(dxhl)",
"def FIMM(YKHO... | [
"0.7613032",
"0.74924225",
"0.74772555",
"0.74301654",
"0.7287259",
"0.7262421",
"0.7251907",
"0.71440315",
"0.7057955",
"0.69956195",
"0.69634026",
"0.6960053",
"0.6800016",
"0.6773459",
"0.67476636",
"0.67013836",
"0.66852134",
"0.6676611",
"0.6665342",
"0.6657667",
"0.6640... | 0.0 | -1 |
Get system comments for the given report hash. | def Cnst(YKHO, KSlk):
return [Z9rn for Z9rn in YKHO._cc_client.getComments(KSlk) if Z9rn.kind == Yxen.SYSTEM] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IOY9(YKHO, IMHX):\n if not hasattr(YKHO, 'id'):\n raise tDiX('No matching issue on disk')\n return Hy7s.path.join(YKHO.paths['comments'], IMHX)",
"def aInN(YKHO):\n if not hasattr(YKHO, 'id'):\n raise tDiX('No matching issue on disk')\n return filter(lambda WKvO: len(WKvO) == 40, Hy... | [
"0.5537172",
"0.545937",
"0.5455009",
"0.5206663",
"0.51767915",
"0.51745874",
"0.5155963",
"0.50855726",
"0.50787807",
"0.50529563",
"0.4995812",
"0.49920028",
"0.49753758",
"0.49339846",
"0.49136597",
"0.48309815",
"0.4760609",
"0.47601953",
"0.47593158",
"0.47565213",
"0.4... | 0.8368234 | 0 |
Print self as an inline XML file. This should work on all input that did not generate a warning while parsing. The output file is identical to the input file modulo processing instructions, comments, and the order of attributes in an opening tag and the kind of quotes used. Also, tags that were printed as will be print... | def oaDJ(YKHO, Ux0P):
BbcR = u''
vgXP = 0
E5BI = []
for hcXw in YKHO.text:
E5BI, K_C7 = YKHO._matching_closing_tags(vgXP, E5BI, [])
for a1PO in K_C7:
BbcR += '</%s>' % a1PO.name
for a1PO in YKHO.source_tags.opening_tags.get(vgXP, []):
E5BI.append(a1PO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxjC(YKHO, ytgA):\n ytgA.write('<')\n ytgA.write(YKHO.tag)\n for G1Hx, Ty9i in YKHO.attrs.iteritems():\n ytgA.write(' ')\n (ytgA.write(G1Hx),)\n ytgA.write('=\"')\n ytgA.write(DvxF(Ty9i))\n ytgA.write('\"')\n if len(YKHO.contents) == 0:\n ytgA.write(' />')\... | [
"0.62197226",
"0.6048956",
"0.6016494",
"0.5944045",
"0.58689517",
"0.58488643",
"0.5817568",
"0.5681433",
"0.5657486",
"0.56079835",
"0.5561612",
"0.5530839",
"0.5529737",
"0.54898024",
"0.546645",
"0.5466347",
"0.5453806",
"0.5446715",
"0.54263365",
"0.5418585",
"0.53572667... | 0.7199937 | 0 |
Handles Page Not Found | def m7kB(tTpl):
return WsL5.render_template('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)",
"def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)",
"def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)",
"def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)",
"def m7kB(tTpl):\n return ('Sorry... | [
"0.8687298",
"0.8687298",
"0.8687298",
"0.8687298",
"0.8687298",
"0.8687298",
"0.8687298",
"0.8687298",
"0.8666211",
"0.8666211",
"0.8666211",
"0.8666211",
"0.8666211",
"0.8666211",
"0.8666211",
"0.86377716",
"0.86123717",
"0.8597504",
"0.85742",
"0.85742",
"0.85337675",
"0... | 0.8068309 | 38 |
Checks if tokens[x] is a compound expression. | def PUpT(s2mk, WKvO):
return _J2v.isoperator(s2mk[WKvO]) and (_J2v.iscolumn(_J2v.get(s2mk, WKvO - 1)) or _J2v.iscolumn(_J2v.get(s2mk, WKvO + 1))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yixj(s2mk: List[str]) -> True:\n LXIT = []\n for eOtH in s2mk:\n if eOtH in '([':\n LXIT.append(eOtH)\n elif eOtH in ')]':\n if not LXIT:\n raise WSEa(eOtH)\n BrOK = LXIT.pop()\n if eOtH == '(' and BrOK != ')' or (eOtH == '[' and Br... | [
"0.5669534",
"0.564794",
"0.5642666",
"0.5626602",
"0.5616339",
"0.5565577",
"0.5458162",
"0.54266393",
"0.5378607",
"0.5342598",
"0.5301539",
"0.5266454",
"0.52369833",
"0.52193666",
"0.5175678",
"0.51712704",
"0.51619214",
"0.5151816",
"0.5147043",
"0.51430595",
"0.50591195... | 0.8339693 | 0 |
Checks if tokens[x] is a function. | def CKBl(s2mk, WKvO):
return _J2v.iscolumn(s2mk[WKvO]) and _J2v.get(s2mk, WKvO + 1) == '(' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KeNZ(YKHO, V22M):\n if V22M[0] == 'function':\n if len(V22M) != 3:\n raise SyntaxError('File line {}: Invalid number of arguments for C_FUNCTION command.'.format(YKHO._file_line))\n return True\n else:\n return False",
"def rVKq(KCHu):\n return KCHu[0] >= 'f' and KCHu... | [
"0.710208",
"0.7015454",
"0.6900961",
"0.6894929",
"0.67121917",
"0.6656099",
"0.6635856",
"0.6470379",
"0.6424486",
"0.63378024",
"0.6241931",
"0.61632514",
"0.61535656",
"0.6138275",
"0.60397315",
"0.60176575",
"0.59207094",
"0.58425725",
"0.5819073",
"0.578338",
"0.5781441... | 0.81264156 | 0 |
Applies whitespace wrapping rules to token. | def i05p(l5Ny, eOtH):
if eOtH in ['*'] and (not l5Ny or l5Ny.endswith((' ', '('))):
return eOtH
if _J2v.isoperator(eOtH) or _J2v.islogicseparator(eOtH) or eOtH.lower() in ['in']:
return f' {eOtH} ' if not l5Ny.endswith(' ') else f'{eOtH} '
if _J2v.isseparator(eOtH):
return f'{eOtH} '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pUNT(l5Ny, TVTK):\n if type(l5Ny) is str:\n return Pusg(lambda zFiD, GIN8, TVTK=TVTK: '%s%s%s' % (zFiD, ' \\n'[len(zFiD[zFiD.rfind('\\n') + 1:]) + len(GIN8.split('\\n', 1)[0]) >= TVTK], GIN8), l5Ny.split(' '))\n elif type(l5Ny) is list:\n DIeq = ''\n ewCu = 0\n for tTpl in l5N... | [
"0.5774597",
"0.5737177",
"0.5731227",
"0.5696316",
"0.5644078",
"0.55580634",
"0.54953635",
"0.5490879",
"0.5487803",
"0.53908145",
"0.5341635",
"0.53410155",
"0.53251344",
"0.5309135",
"0.5299806",
"0.52769685",
"0.52598155",
"0.5224677",
"0.52198225",
"0.5203209",
"0.51878... | 0.6869686 | 0 |
Compares the object with the other specified object. The comparison logic is based purely on the boolean part of this object. Only that value is compared with the other object passed as the argument. Extra part is omitted and not involved at any point of the process. In other words, when two different RichBool objects ... | def Aicm(YKHO, Elif):
if not isinstance(Elif, lm4F):
return eHkp(YKHO.value, Elif)
else:
return YKHO.value.__cmp__(Elif.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cIT_(YKHO, Elif):\n return YKHO._get('eq', Elif, qOrJ)",
"def cIT_(YKHO, Elif):\n return YKHO._get('eq', Elif, qOrJ)",
"def xa14(YKHO, Elif: t.Any) -> bool:\n return YKHO._op_bool('__eq__', Elif)",
"def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))"... | [
"0.6444708",
"0.6444708",
"0.61909145",
"0.61883175",
"0.61757416",
"0.60792214",
"0.60736483",
"0.6002145",
"0.5997982",
"0.59928966",
"0.59888387",
"0.5987536",
"0.59808135",
"0.5980495",
"0.5978448",
"0.5975038",
"0.5930091",
"0.5916661",
"0.5912936",
"0.5902536",
"0.58995... | 0.77908385 | 0 |
Tests whether the object is non zero. The test is based entirely on the boolean part of this object. Therefore, the object evaluates to the same value as the boolean part. | def ebnO(YKHO):
return YKHO.value.__nonzero__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Witr(YKHO) -> bool:\n return YKHO.field.zero == YKHO",
"def ebnO(YKHO):\n return bool(QBs8(YKHO.obj, 'not %r' % YKHO.obj))",
"def ebnO(YKHO):\n return YKHO.__bool__()",
"def ebnO(YKHO):\n return YKHO.__bool__()",
"def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n re... | [
"0.7965036",
"0.7960964",
"0.7806893",
"0.7806893",
"0.77440876",
"0.769175",
"0.7613569",
"0.7597485",
"0.7534254",
"0.7503735",
"0.75008625",
"0.74094796",
"0.74091715",
"0.74091715",
"0.7406179",
"0.7334928",
"0.72950006",
"0.72581667",
"0.71952343",
"0.71816427",
"0.71474... | 0.74766535 | 11 |
Set the identifier on the given refobj | def V_9M(YKHO, qdJE, Ilxn):
ccKF.setAttr('%s.identifier' % qdJE, Ilxn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WwgK(YKHO, id):\n YKHO.objectID = id[0]",
"def f6Qh(YKHO, BWXx):\n pass",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def unpH(YKHO, qdJE):\n return ccKF.getAttr('%s.identifier' % qdJE)",
"def ekm0(YKHO, quXY):\n YKHO.id = quXY",
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn... | [
"0.68797815",
"0.6822181",
"0.6799036",
"0.67888385",
"0.6752616",
"0.6707806",
"0.6524266",
"0.6485014",
"0.64802206",
"0.6404837",
"0.6401697",
"0.6401697",
"0.6355947",
"0.6287689",
"0.6264787",
"0.6247668",
"0.62428343",
"0.62315834",
"0.62315834",
"0.62315834",
"0.623158... | 0.88734657 | 0 |
Return the taskfile that is loaded and represented by the refobj | def ExK9(YKHO, qdJE):
IFJL = ccKF.getAttr('%s.taskfile_id' % qdJE)
try:
return eAPb.taskfiles.get(pk=IFJL)
except eAPb.models.TaskFile.DoesNotExist:
raise eAPb.models.TaskFile.DoesNotExist('Could not find the taskfile that was set on the node %s. Id was %s' % (qdJE, IFJL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u5vm(YKHO) -> str:\n return YKHO._task_file",
"def nUeQ(YKHO):\n return YKHO._get_instantiation()[0]",
"def ZADB(YKHO):\n exwG = TzNe.get_current_scene_node()\n if not exwG:\n return None\n IFJL = ccKF.getAttr('%s.taskfile_id' % exwG)\n try:\n ZylS = eAPb.taskfiles.get(pk=IF... | [
"0.66803247",
"0.6412058",
"0.60803765",
"0.5927928",
"0.5887138",
"0.5884475",
"0.5860933",
"0.5825342",
"0.5825342",
"0.5825342",
"0.5822415",
"0.57887113",
"0.5777895",
"0.5774442",
"0.574729",
"0.5727233",
"0.57185227",
"0.57159585",
"0.5694699",
"0.5650569",
"0.564753",
... | 0.7678395 | 0 |
different test with positive and negative | def KDx6(YKHO):
kgDL = [([3, 4, 6, 8, 0], 192), ([1, -1, 1, -1, 1], 1), ([0, 0, 0, 0, -1], 0), ([6, 5, 4, 3, 2], 120), ([6, 5, 4, 3, -2], 120), ([6, 5, 4, -3, -2], 120), ([-6, -5, 4, 3, 0], 120), ([-6, 5, 4, 3, 2], 60), ([5, 6, -100, -1, 10], 1000)]
for yv6U, Aofo in kgDL:
YKHO.assertEqual(E1VC(yv6U), A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSua(YKHO, jzdc):\n return jzdc < 0",
"def VbSu(jzdc, Fg_i, tbib):\n if tbib:\n return jzdc < 0 and Fg_i < 0\n else:\n return jzdc < 0 and Fg_i < 0 or (jzdc > 0 and Fg_i < 0)",
"def tm4B(WKvO):\n if WKvO < 0:\n return True\n return False",
"def VbSu(jzdc, Fg_i, tbib):\... | [
"0.74023217",
"0.7301608",
"0.7271193",
"0.71770155",
"0.71551657",
"0.7132869",
"0.7059717",
"0.70369434",
"0.6985859",
"0.69822025",
"0.69079757",
"0.6871111",
"0.6859043",
"0.68541604",
"0.6837909",
"0.68238705",
"0.67702967",
"0.67277586",
"0.67213297",
"0.6687449",
"0.66... | 0.0 | -1 |
Helper to create a DeviceArray from an arbitrary array like. This is similar in purpose and usage to np.asarray, except that it takes a device as the first argument. This may not be the best mechanism for getting a DeviceArray, depending on your use case, but it is reliable and simple. This function may make a defensiv... | def HPN0(begE: HalDevice, jzdc, yDqo=None, *, INA8: bool=False, f8E3=KJkL.DEVICE_LOCAL, benH=T6TL.DEFAULT | T6TL.MAPPING, KqSu: Optional[HalElementType]=None) -> k9KF:
if isinstance(jzdc, k9KF):
if yDqo is None:
return jzdc
G9jH.warn('Implicit dtype conversion of a DeviceArray forces a h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t3jv(jzdc, yDqo=None, T4Wy='C'):\n if not U6YZ(jzdc):\n if isinstance(jzdc, cbQ7.ndarray):\n return jzdc\n if T4Wy != 'C':\n mDxu('asanyarray', 'order', T4Wy, 'C')\n return qw7D(jzdc, dtype=yDqo, order=T4Wy)\n return iexu(XTiz.asanyarray, jzdc, yDqo, T4Wy)",
"... | [
"0.57667375",
"0.5602861",
"0.5421812",
"0.53608096",
"0.53427565",
"0.5321783",
"0.5320466",
"0.52971774",
"0.5230859",
"0.5208777",
"0.5206086",
"0.51700985",
"0.5100557",
"0.50603163",
"0.503586",
"0.49814802",
"0.49739218",
"0.4933068",
"0.4913977",
"0.4875228",
"0.487265... | 0.7531969 | 0 |
r""" Creates a `Translation` from a permutation array and a displacement vector | def FIMM(YKHO, cZDQ: Array, ZJUk: Array):
super().__init__(cZDQ)
YKHO._vector = oyIN.asarray(ZJUk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9ag(Emd4, usx6, WfCS, iArr):\n nPrm = oyIN.eye(usx6, WfCS)\n nPrm[0:usx6 - 1, WfCS - 1] = iArr[0:usx6 - 1]\n return Emd4.create(usx6, WfCS, nPrm)",
"def hBUG(YKHO, ZJUk):\n YKHO._position = YKHO._position + oyIN.array(ZJUk)",
"def d9ag(Emd4, iArr):\n return super().fromTranslation(3, 3, iAr... | [
"0.6541649",
"0.61649334",
"0.59390616",
"0.59386325",
"0.583163",
"0.58079153",
"0.5788804",
"0.57135034",
"0.5708511",
"0.57003343",
"0.5693465",
"0.5666232",
"0.55613786",
"0.5332658",
"0.5307349",
"0.5289208",
"0.5282833",
"0.5278213",
"0.5267077",
"0.5228667",
"0.5218569... | 0.6529388 | 1 |
Checks whether the given user has access to the given object/attribute or not. | def _HUz(YKHO, CBIr, OXhj, vcaS, hkS8):
_2qK = efA5.getInstance('ACLResolver')
if CBIr:
rlUa = '%s.objects.%s.attributes.%s' % (YKHO.env.domain, vcaS, hkS8)
return _2qK.check(CBIr, rlUa, 'r', base=OXhj)
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()",
"def m4il(YKHO, QePW, tTee, CBIr):\n return CBIr == QePW.user or QePW.user.is_superuser",
"def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user.id == YEnM.user_id",
"d... | [
"0.7836353",
"0.7807786",
"0.77371716",
"0.771122",
"0.7672409",
"0.76431626",
"0.76171756",
"0.7579402",
"0.7507307",
"0.7499338",
"0.74848723",
"0.74727285",
"0.74495775",
"0.7447678",
"0.743351",
"0.7425586",
"0.74174947",
"0.73950535",
"0.73934233",
"0.73842424",
"0.73775... | 0.7988736 | 0 |
r"""AWSstyle quote a URL part. >>> aws_urlquote("/bucket/a key") '/bucket/a%20key' | def qHe0(BWXx):
if isinstance(BWXx, QMSQ):
BWXx = BWXx.encode('utf-8')
return NCC9(BWXx, '/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D2vs(vIwR):\n return NCC9(vIwR.encode('utf-8'))",
"def A5Qt(l5Ny):\n if khtY.sep == '\\\\':\n return uRlK.quote(l5Ny.replace('\\\\', '/'))\n else:\n return uRlK.quote(l5Ny)",
"def YUxO(KCHu, dT6y='/', tZ2K=None):\n if isinstance(KCHu, QMSQ):\n if tZ2K is None:\n ... | [
"0.71850055",
"0.6820925",
"0.66878295",
"0.66752934",
"0.6336278",
"0.6248485",
"0.6247598",
"0.62447345",
"0.62392414",
"0.62388104",
"0.6185441",
"0.6113482",
"0.60382205",
"0.59683627",
"0.5966279",
"0.5877668",
"0.5850622",
"0.5835752",
"0.5828804",
"0.58018637",
"0.5801... | 0.7945368 | 0 |
Splits the text into sentences | def lpha(l5Ny):
A97Q = K9NE(l5Ny)
Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]
return Rhv4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)",
"def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4",
"def Y2KJ(l5Ny):\n return l5Ny.split('.')",
"def bI8b(YKHO, l5Ny):\n return YKHO._support.splitInPhrase(l5Ny)",
"def c0FK(l5Ny: str) -> x1iM[str]:\n return N3rN(l5Ny)",
"def c0... | [
"0.8618131",
"0.84692633",
"0.8448708",
"0.8376191",
"0.8080729",
"0.8014871",
"0.7834365",
"0.7820921",
"0.77364206",
"0.77341825",
"0.7620127",
"0.7620127",
"0.75762755",
"0.7565037",
"0.7495662",
"0.7385169",
"0.7379681",
"0.730377",
"0.7302221",
"0.7296511",
"0.7295937",
... | 0.84483415 | 3 |
Create an iterator of pairs off terms from selected terms against each other. | def K5H_(YKHO, mjXo):
return Hs6x.permutations(mjXo, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fr5W(NHn2):\n return Hs6x.combinations(NHn2, 2)",
"def S9CM(rrSk, jzdc, Fg_i):\n kgDL = []\n oUw_ = uXGT(rrSk, jzdc)\n ZWbb = uXGT(rrSk, Fg_i)\n\n def OLTk(WKvO, LVAh):\n return WKvO.document_id == LVAh.document_id and WKvO.index == LVAh.index - 1\n\n def gZFB(WKvO, LVAh):\n i... | [
"0.738843",
"0.6366551",
"0.6194225",
"0.61930287",
"0.61878234",
"0.61712223",
"0.6112163",
"0.6028782",
"0.6018045",
"0.5965866",
"0.5958879",
"0.58453256",
"0.58418584",
"0.57792634",
"0.5774925",
"0.57153827",
"0.5618452",
"0.5570853",
"0.5570221",
"0.55380106",
"0.552626... | 0.5911248 | 11 |
Create an iterator of pairs of terms from selected terms against all other annotation terms. | def xquO(YKHO, mjXo, ahG8):
for OXAZ in mjXo:
for CU4K in ahG8.iterkeys():
if OXAZ != CU4K:
yield (OXAZ, CU4K)
yield (CU4K, OXAZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fr5W(NHn2):\n return Hs6x.combinations(NHn2, 2)",
"def NHn2(YKHO) -> AzJI[aw0m, ...]:\n ...",
"def Vs4Q(YKHO):\n for OXAZ in YKHO._terms:\n yield OXAZ",
"def N0is(YKHO) -> bDy6[AzJI[DhiK, ORbx]]:\n yield ((), YKHO)\n for d6pt, aUGN in enumerate(YKHO.children):\n for dQgj, OXA... | [
"0.66849136",
"0.62071425",
"0.61837894",
"0.5878103",
"0.583477",
"0.5712218",
"0.56987214",
"0.5652333",
"0.56468534",
"0.5578357",
"0.5553841",
"0.5486469",
"0.548385",
"0.5480822",
"0.5471624",
"0.54165804",
"0.5351309",
"0.53331155",
"0.5282495",
"0.5254025",
"0.52370644... | 0.7164845 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
tH2j = cmPJ.get('consumerId')
daV2 = cmPJ.get('consumerSsn')
jkf2 = cmPJ.get('eventName')
id = cmPJ.get('id')
jGRS = cmPJ.get('status')
tDvy = cmPJ.get('type')
for H5ew in Emd4._names.values():
if H5ew in cmPJ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.7602739 | 75 |
Get stderr of function or script, same for both. By default, output file is kept unless delete_file is True or self.auto_delete is True. | def BYef(YKHO, xkzz=True, cDRl=None, QdZT=True):
jLNG.log('Getting stderr, save={}, auto_delete={}, delete_file={}'.format(xkzz, YKHO.auto_delete, cDRl), 'debug')
if cDRl is None:
cDRl = YKHO.clean_outputs
if YKHO.done and YKHO._got_stderr:
jLNG.log('Getting stderr from _stderr', 'debug')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYef(YKHO):\n return YKHO._get_log('stderr')",
"def wIbz(YKHO):\n return YKHO.__stderr",
"def BYef(YKHO):\n if YKHO.__stderr is not None:\n YKHO.__stderr.flush()\n return YKHO.__stderr.getvalue()",
"def BYef(YKHO):\n bGrB = YKHO.get()\n if YKHO._stderr is not None:\n i... | [
"0.7353532",
"0.7304997",
"0.72000223",
"0.7167783",
"0.7108938",
"0.70323706",
"0.68595123",
"0.6780241",
"0.6545824",
"0.6528379",
"0.6460243",
"0.63623786",
"0.63265234",
"0.6292708",
"0.6249163",
"0.6218217",
"0.62067664",
"0.6155185",
"0.61359644",
"0.61210513",
"0.61100... | 0.7703393 | 0 |
Add linearly stacked data points to the problem. | def kPzY(YKHO, vk46, rAqE, A7AS, ueFG, aHLh, mbiB, jJuZ, IzPi, hzmW, KCUV):
assert not YKHO._finalized, "Can't add more after finalization"
assert len(vk46) == len(rAqE), 'Assumed valid correspondences'
YKHO._2d.extend(vk46)
assert len(rAqE) != 0
YKHO._3d.extend(rAqE)
assert len(YKHO._2d) == len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3g2(YKHO, yzCG):\n if len(yzCG) == 0:\n return\n LdiU = oyIN.empty((0, YKHO.domain_dim))\n JxIl = oyIN.empty(0)\n for YRbF in range(len(yzCG)):\n LdiU = oyIN.concatenate((LdiU, yzCG[YRbF].point.reshape(-1, YKHO.domain_dim)), axis=0)\n JxIl = oyIN.append(JxIl, [yzCG[YRbF].val],... | [
"0.62380075",
"0.58683753",
"0.5861876",
"0.5837011",
"0.5615771",
"0.55258864",
"0.54981256",
"0.54957575",
"0.54849035",
"0.54496783",
"0.5443693",
"0.54045206",
"0.53876233",
"0.5359485",
"0.5335805",
"0.5305189",
"0.5273833",
"0.5273377",
"0.5256303",
"0.524404",
"0.52325... | 0.0 | -1 |
Adds a 3D pose that's not optimized for and it's confidences for the occlusion loss. | def wgle(YKHO, shtX, MSdj, Ffgs, G2aR, HLgn, J0SB):
assert not YKHO._finalized
YKHO._static_pids_started = True
Ii1o = YKHO.get_next_pid()
if YKHO._pid_static_first is None:
YKHO._pid_static_first = Ii1o
YKHO._set_tid_static()
else:
assert Ii1o > YKHO._pid_static_first
j8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDV0(YKHO, HENy, WqF3, z8lF):\n HENy = HENy[:, 25:, :]\n Fv2L = WqF3[:, :, -1].unsqueeze(-1).clone()\n WqF3 = WqF3[:, :, :-1].clone()\n WqF3 = WqF3[z8lF == 1]\n Fv2L = Fv2L[z8lF == 1]\n HENy = HENy[z8lF == 1]\n if len(WqF3) > 0:\n E9_l = (WqF3[:, 2, :] + WqF3[:, 3, :]) / 2\n ... | [
"0.57470226",
"0.539369",
"0.5227385",
"0.5151389",
"0.50144655",
"0.5013465",
"0.4973527",
"0.4945913",
"0.49308166",
"0.49280363",
"0.4908333",
"0.48629856",
"0.4848461",
"0.483506",
"0.48333174",
"0.48047763",
"0.4788253",
"0.47723636",
"0.47217646",
"0.4716818",
"0.470899... | 0.47925353 | 16 |
Get player with given user_id | def nAM4(YKHO, uJjO):
Bwa6 = [XP5J for XP5J in YKHO.players if XP5J.id() == uJjO]
return Bwa6[0] if Bwa6 else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFCh(YKHO, n10L):\n return YKHO.__getitem__(n10L)",
"def heWK(YKHO, CBIr):\n for oyg0 in YKHO.members:\n if oyg0.uuid == CBIr.id:\n return oyg0\n return None",
"def uIRE(YKHO, CBIr):\n try:\n PObu = int(CBIr)\n except TypeError:\n try:\n PObu = CBIr... | [
"0.77376837",
"0.76827997",
"0.76463723",
"0.74241555",
"0.71831334",
"0.7124138",
"0.709597",
"0.6968963",
"0.69332516",
"0.69145083",
"0.69037503",
"0.6833335",
"0.6831861",
"0.6772205",
"0.6711818",
"0.6686504",
"0.66775745",
"0.6673603",
"0.66542155",
"0.66327447",
"0.661... | 0.88436645 | 0 |
Get list of players that are able to move. List is sorted by turn order. (Player on the dealer's left is first) | def UUnj(YKHO):
hl2Q = YKHO.get_highest_bid()
def XYov(oyg0):
return oyg0.is_active() and (oyg0.pot_money < hl2Q or oyg0.can_decide)
dZKU = (YKHO.dealer_index + 1) % len(YKHO.in_game_players)
syBi = YKHO.in_game_players[dZKU:] + YKHO.in_game_players[:dZKU]
return [XP5J for XP5J in syBi if X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wpwg(YKHO) -> list:\n if YKHO.p1_turn:\n mWFP = '2'\n else:\n mWFP = '1'\n UHFx = 0\n for YRbF in YKHO.claim:\n if YRbF == mWFP:\n UHFx += 1\n lT6G = UHFx >= 0.5 * len(YKHO.claim)\n oLdq = []\n if not lT6G:\n for YRbF in YKHO.letters:\n if ... | [
"0.70194936",
"0.67961556",
"0.67679745",
"0.6585016",
"0.65574604",
"0.65489334",
"0.6514725",
"0.64710397",
"0.6454037",
"0.6408303",
"0.6385914",
"0.6369085",
"0.630229",
"0.62995875",
"0.6278645",
"0.62700856",
"0.62328225",
"0.61893004",
"0.61708194",
"0.61578995",
"0.61... | 0.70623815 | 0 |
Input n>=6, Returns a list of primes, 2 <= p < n | def oHDU(exwG):
exwG, i0Uw = (exwG - exwG % 6 + 6, 2 - (exwG % 6 > 1))
KwQv = [True] * (exwG // 3)
for YRbF in range(1, int(exwG ** 0.5) // 3 + 1):
if KwQv[YRbF]:
G1Hx = 3 * YRbF + 1 | 1
KwQv[G1Hx * G1Hx // 3::2 * G1Hx] = [False] * ((exwG // 6 - G1Hx * G1Hx // 6 - 1) // G1Hx ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DwOa(exwG):\n return list(uVDW(exwG))",
"def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uED7.append(YRbF)\n return uED7",
"def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n ret... | [
"0.8541514",
"0.84436715",
"0.8406148",
"0.83585244",
"0.82618254",
"0.8233985",
"0.8214188",
"0.8212246",
"0.82071525",
"0.81704533",
"0.8101073",
"0.8004435",
"0.7959523",
"0.79544747",
"0.7944765",
"0.79406875",
"0.7890036",
"0.78695965",
"0.78695965",
"0.7863534",
"0.7858... | 0.7689422 | 31 |
Defaults params for `LmInput`. | def FD5x(Emd4):
XP5J = super(uhbn, Emd4).Params()
XP5J.Define('fixed_input_shape', False, 'Fixed input shape or not.')
XP5J.tokenizer = cjml.AsciiTokenizer.Params()
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4UW(YKHO) -> cuzp[str, ImMB]:\n ulQW = {'temperature': YKHO.temperature, 'max_tokens': YKHO.max_tokens, 'top_p': YKHO.top_p, 'frequency_penalty': YKHO.frequency_penalty, 'presence_penalty': YKHO.presence_penalty, 'n': YKHO.n, 'request_timeout': YKHO.request_timeout, 'logit_bias': YKHO.logit_bias}\n retu... | [
"0.68726116",
"0.67605543",
"0.6482413",
"0.63521385",
"0.6324739",
"0.6194862",
"0.61828744",
"0.617979",
"0.61631554",
"0.61158967",
"0.61079776",
"0.6100417",
"0.6078041",
"0.6072544",
"0.6024833",
"0.6020714",
"0.601865",
"0.60152096",
"0.59877026",
"0.5982867",
"0.597707... | 0.7556699 | 0 |
$\int_{0}^{t} 1/(t + c)^{p}$ | def KyzW(a1PO, Z9rn, XP5J):
if XP5J == 1:
return RKD7((a1PO + Z9rn) / Z9rn)
else:
return ((a1PO + Z9rn) ** (1 - XP5J) - Z9rn ** (1 - XP5J)) / (1 - XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWN9(XP5J, Z9rn, a1PO, WKvO):\n vexM = oyIN.array(Z9rn, dtype=oyIN.float64)\n for G1Hx in range(1, XP5J + 1):\n for r845 in range(0, XP5J - G1Hx + 1):\n vexM[r845] = (a1PO[r845 + G1Hx] - WKvO) / (a1PO[r845 + G1Hx] - a1PO[r845]) * vexM[r845] + (WKvO - a1PO[r845]) / (a1PO[r845 + G1Hx] - a... | [
"0.7614857",
"0.6934931",
"0.6923188",
"0.6862701",
"0.6708306",
"0.66852283",
"0.6614421",
"0.66054064",
"0.6521449",
"0.6511847",
"0.6485992",
"0.6462008",
"0.64511585",
"0.63874006",
"0.6331202",
"0.63274807",
"0.63235456",
"0.63163173",
"0.62996906",
"0.62286",
"0.6189329... | 0.6864281 | 3 |
Compose the error object json to be added in 'errors' in given operation's summary | def iAFP(YKHO, rohi, TnMG):
Ol8d = '{0} error/s reported.'.format(rohi)
RLxr = YKHO.logger.file_logger.log_file_path
Ol8d += ' The latest {0} error/s are shared in detail. To view all errors, review this log file on the machine: {1}'.format(len(TnMG), RLxr) if rohi > 0 else ''
return {'code': Byma.Patch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _rQm(UAju):\n try:\n return UAju['detail']\n except KeyError:\n isRP = ''\n for H5ew in UAju:\n isRP += '{0}\\n'.format(UAju[H5ew][0])\n return isRP",
"def bF7C(QGg5='DEFAULT', FMN3='english'):\n if FMN3 not in UAju.keys():\n FMN3 = 'english'\n if QGg... | [
"0.6166942",
"0.6034691",
"0.5928332",
"0.5909501",
"0.5879692",
"0.5865361",
"0.5827591",
"0.5798399",
"0.5795216",
"0.57915705",
"0.5767179",
"0.5752834",
"0.57390165",
"0.57163966",
"0.570569",
"0.5677877",
"0.56438595",
"0.56375134",
"0.56273156",
"0.55945367",
"0.5572995... | 0.7067888 | 0 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
Q6kx = YKHO.search_prefix(GIN8)
return Q6kx is not None and '#' in Q6kx and (Q6kx['#'] == 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838591",
"0.8151737",
"0.8122628",
"0.7856223",
"0.7829874",
"0.77924806",
"0.7791972",
"0.77632296",
"0.77523863",
"0.7746683",
"0.7710448",
"0.76799077",
"0.7676034",
"0.7663706",
"0.76495034",
"0.7633486",
"0.76275533",
"0.76097536",
"0.7576672",
"0.756812",
"0.75609034... | 0.7299974 | 46 |
Test a range of inacceptable project names. | def xNqL(YKHO):
YKHO.do_test_bad_name('', 'tmp/frog')
YKHO.do_test_bad_name('.b', 'tmp/frog')
YKHO.do_test_bad_name('a b', 'tmp/frog')
YKHO.do_test_bad_name('a-b', 'tmp/frog') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcFU(FyZa, Aq7q, gcBE, HDjX, yokr, x0SS):\n *bGrB, BH3N = u7Ba(FyZa, Aq7q, gcBE, HDjX, yokr, x0SS)\n BH3N.solve()\n bNKA = BH3N.projects[0]\n bNKA.matching = range(bNKA.capacity + 1)\n with trZe.raises(r7VV) as tTpl:\n BH3N.check_validity()\n P1dF = tTpl.oversubscribed_players[0]\n... | [
"0.6534595",
"0.63760275",
"0.6239839",
"0.622794",
"0.61762774",
"0.6062405",
"0.5859189",
"0.57978994",
"0.569069",
"0.5654902",
"0.5636386",
"0.55873895",
"0.5567264",
"0.55578",
"0.5521492",
"0.55059874",
"0.54254067",
"0.5405777",
"0.53826344",
"0.5364801",
"0.53454417",... | 0.0 | -1 |
Loads in the yaml file and splits the contents. | def tyeH(YKHO, nUeQ):
YKHO.__log(f'Starting to load settings from {nUeQ}', 'warning')
kGys = f9B0(nUeQ)
for ZfUD in kGys:
if ZfUD == 'options':
YKHO.__log(f'Found options in {nUeQ}, loading them', 'warning')
for YRbF in kGys[ZfUD]:
YKHO.__log(f'Setting {YRbF.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnN0(YKHO, pmON):\n with pmON.open('r') as nVrR:\n nPrm = f9B0(nVrR)\n YKHO.set_all(**YKHO.SCHEMA.load(nPrm).data)",
"def Xttm(YKHO):\n KCHu = YKHO.as_yamlstr()\n YKHO._config = eJb6.load(KCHu, Loader=eJb6.Loader)\n YKHO._comments = YKHO._extract_comments(YKHO._yaml_config)",
"def PaB... | [
"0.66595876",
"0.6529717",
"0.6519499",
"0.6496563",
"0.64642537",
"0.6453446",
"0.6436033",
"0.6417023",
"0.6402035",
"0.6380477",
"0.6365179",
"0.63462204",
"0.633313",
"0.63190305",
"0.63182473",
"0.6290642",
"0.6251451",
"0.62264425",
"0.617627",
"0.6171026",
"0.6117576",... | 0.5743891 | 56 |
Image to Tensor converter. This method takes an image and returns as deep learning compatible image tensor with proper transformation. | def cMYb(YKHO, LNo8):
rdlD, iVRZ, bGrB = LNo8.shape
LNo8 = XC5k.copyMakeBorder(LNo8, (iVRZ - rdlD) // 2, (iVRZ - rdlD) // 2, 0, 0, XC5k.BORDER_CONSTANT)
LNo8 = XC5k.resize(LNo8, (YKHO.shape[0], YKHO.shape[1]), interpolation=XC5k.INTER_CUBIC)
return YKHO.transform(LNo8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ia7W(LNo8):\n return SZFh(LNo8)",
"def KlI5(LNo8):\n aEZk = LNo8.transpose(2, 0, 1)\n aEZk = aEZk.astype(oyIN.float32)\n aEZk = ht2j.from_numpy(aEZk)\n if ht2j.cuda.is_available():\n aEZk = aEZk.cuda()\n return aEZk",
"def uaVh(VXjJ):\n a1PO = Ymkf.ToPILImage()\n return a1PO(... | [
"0.8300986",
"0.7623943",
"0.744452",
"0.74440616",
"0.73748606",
"0.7256048",
"0.6981082",
"0.6943973",
"0.6943973",
"0.6943973",
"0.6829764",
"0.6825344",
"0.67887414",
"0.67125404",
"0.66860247",
"0.666928",
"0.6638647",
"0.6632439",
"0.6613119",
"0.6607929",
"0.659306",
... | 0.0 | -1 |
Return the smallest value in the whole subtree. | def CL9V(YKHO):
return YKHO.pointers[0].smallest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k9Va(Q6kx):\n CL9V = Q6kx.value\n while Q6kx.left is not None:\n Q6kx = Q6kx.left\n CL9V = Q6kx.value\n return CL9V",
"def k9Va(YKHO):\n return YKHO._find_smallest(YKHO.root)",
"def aNDM(YKHO):\n if YKHO.root:\n return YKHO.root.min().value\n raise ValueError('cannot ... | [
"0.83880603",
"0.83494014",
"0.8261917",
"0.8084516",
"0.79809886",
"0.79490703",
"0.7915808",
"0.7887662",
"0.7875714",
"0.78674084",
"0.78292763",
"0.7816443",
"0.7798868",
"0.77252614",
"0.771773",
"0.770909",
"0.769711",
"0.7564198",
"0.7546694",
"0.75263035",
"0.7479972"... | 0.7448259 | 22 |
Generate a random string of fixed length | def BWvy(jZeW=10000):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for bGrB in range(jZeW))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')",
"def e7Tf(u54L):\n return ''.join((tuKI... | [
"0.8680464",
"0.8573714",
"0.85486245",
"0.85297275",
"0.85209286",
"0.84331024",
"0.8432044",
"0.84157014",
"0.84120053",
"0.8389201",
"0.8345882",
"0.8343962",
"0.83406156",
"0.83348686",
"0.83240855",
"0.82986933",
"0.82911193",
"0.8281826",
"0.82818025",
"0.82811046",
"0.... | 0.7796139 | 78 |
Try to do a Http GET to the create blog post page when you are logged in as a normal user. In real life the 'ADD' button is not on the screen but we can still send the GET request to create the user to the server. This should fail with a Http 403 Forbidden | def ifyo(YKHO):
MC83 = YKHO.client.login(username='testuser_normal', password='password12345')
if MC83:
bD7m = gxEw('blogs:create')
geh0 = YKHO.client.get(bD7m)
YKHO.assertEqual(geh0.status_code, 403)
YKHO.client.logout()
else:
YKHO.fail('Login Failed for the testuser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OKi3(YKHO):\n bD7m = gxEw('blogs:create')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 403)",
"def _L7Z(YKHO):\n bD7m = gxEw('post-list')\n ZmQk = gxEw('user-detail', kwargs={'pk': YKHO.superuser.id})\n leAC = 'Test Title'\n TBsA = 'Test Body'\n geh0 = YKHO.clie... | [
"0.7427427",
"0.7161118",
"0.71479446",
"0.70174766",
"0.6805963",
"0.67969424",
"0.67112637",
"0.6706168",
"0.65912634",
"0.65485734",
"0.65409946",
"0.6535743",
"0.65283424",
"0.6514738",
"0.6476121",
"0.6444468",
"0.64413774",
"0.6374397",
"0.6357739",
"0.6337469",
"0.6337... | 0.69489855 | 4 |
Try to do a Http POST to the create blog post page when you are logged in as a user with no privileges. You should get a Http 403 Forbidden. | def Hj9t(YKHO):
MC83 = YKHO.client.login(username='testuser_normal', password='password12345')
if MC83:
Elsm = 'this is a new title for create'
mypq = 'this is new content for create by nicholas herriot'
uH0k = '2017-01-01'
nPrm = {'title': Elsm, 'content': mypq, 'publish': uH0k}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OKi3(YKHO):\n bD7m = gxEw('blogs:create')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 403)",
"def _L7Z(YKHO):\n bD7m = gxEw('post-list')\n ZmQk = gxEw('user-detail', kwargs={'pk': YKHO.superuser.id})\n leAC = 'Test Title'\n TBsA = 'Test Body'\n geh0 = YKHO.clie... | [
"0.7521191",
"0.7360052",
"0.71726155",
"0.7158328",
"0.71339715",
"0.71001667",
"0.70535505",
"0.7036674",
"0.70145726",
"0.70005834",
"0.6948143",
"0.6898936",
"0.6688082",
"0.66641307",
"0.66127324",
"0.6608382",
"0.6592327",
"0.657401",
"0.65483195",
"0.6470003",
"0.64691... | 0.6504746 | 19 |
Try to do a Http GET to delete a blog post page when you are an anonymous user. You should get a Http 403 Forbidden as only an admin or staff user can delete posts. | def MCzC(YKHO):
uIly = T97t.objects.get(title='test3')
bD7m = gxEw('blogs:delete', kwargs={'slug': uIly.slug})
geh0 = YKHO.client.get(bD7m)
S5aT = T97t.objects.get(slug=uIly.slug)
YKHO.assertEqual(S5aT.title, uIly.title)
YKHO.assertEqual(S5aT.content, uIly.content)
YKHO.assertEqual(S5aT.pk, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMZF(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n geh0 = YKHO.client.delete(bD7m)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def w5i7(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n YKHO.client.force_authenticate(user=YKHO.user)\n ... | [
"0.760562",
"0.73647255",
"0.71092904",
"0.69990057",
"0.69843364",
"0.6967568",
"0.68355864",
"0.6793638",
"0.67839885",
"0.6779465",
"0.6773584",
"0.67699283",
"0.66953725",
"0.6641608",
"0.6606169",
"0.6604065",
"0.657507",
"0.6556101",
"0.6551979",
"0.6536588",
"0.6427880... | 0.7389012 | 1 |
Try to do a Http GET to delete a blog post page when you are a normal user. You should get a Http 403 Forbidden as only an admin or staff user can delete posts. | def Pv0L(YKHO):
MC83 = YKHO.client.login(username='testuser_normal', password='password12345')
if MC83:
uIly = T97t.objects.get(title='test3')
bD7m = gxEw('blogs:delete', kwargs={'slug': uIly.slug})
geh0 = YKHO.client.get(bD7m)
S5aT = T97t.objects.get(slug=uIly.slug)
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMZF(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n geh0 = YKHO.client.delete(bD7m)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def w5i7(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n YKHO.client.force_authenticate(user=YKHO.user)\n ... | [
"0.77090204",
"0.74142224",
"0.7378812",
"0.7183023",
"0.7164214",
"0.7092898",
"0.7021265",
"0.70211625",
"0.69831973",
"0.6925314",
"0.6921452",
"0.6913361",
"0.68595135",
"0.6820148",
"0.68057424",
"0.6794492",
"0.6771192",
"0.6744863",
"0.6743678",
"0.6719264",
"0.6574930... | 0.68058336 | 14 |
Try to do a Http GET to delete a blog post page when you are a staff user. You should get a Http 302 You should be redirected to the blogs URL. | def TuT1(YKHO):
MC83 = YKHO.client.login(username='testuser_staff', password='password12345')
if MC83:
uIly = T97t.objects.get(title='test3')
bD7m = gxEw('blogs:delete', kwargs={'slug': uIly.slug})
geh0 = YKHO.client.get(bD7m)
with YKHO.assertRaises(T97t.DoesNotExist):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLvU(YKHO):\n MC83 = YKHO.client.login(username='testuser_admin', password='password12345')\n if MC83:\n uIly = T97t.objects.get(title='test3')\n bD7m = gxEw('blogs:delete', kwargs={'slug': uIly.slug})\n geh0 = YKHO.client.get(bD7m)\n with YKHO.assertRaises(T97t.DoesNotExist):... | [
"0.73730916",
"0.714529",
"0.7044264",
"0.6994577",
"0.6966852",
"0.69542104",
"0.6918779",
"0.6860914",
"0.68360007",
"0.67813367",
"0.67721766",
"0.66289335",
"0.65948343",
"0.65824604",
"0.6578005",
"0.65455973",
"0.64570737",
"0.6450366",
"0.6446787",
"0.6425828",
"0.6420... | 0.7608611 | 0 |
Preregister BigQuery tables and Parquet directories as temporary views. | def fBgt(ujem, aO2O, BAPA):
iaF9 = {}
for tyNF in aO2O:
mWFP = tyNF.split('.')[-1]
G9jH.info('Loading %s', tyNF)
iaF9[mWFP] = ujem.read.format('bigquery').option('table', tyNF).load()
for zAYr in BAPA:
mWFP = zAYr.split('/')[-1]
G9jH.info('Loading %s', zAYr)
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jxwy():\n gGq6.storage.recreate_tables()",
"def kcUV():\n NCls.flush()\n for tyNF in yIVm.tables.values():\n NCls.execute(tyNF.delete())",
"def kx4u(YKHO):\n YKHO.delete_dataset_target_bigquery('ppw_e2e_tap_postgres')\n YKHO.delete_dataset_target_bigquery('ppw_e2e_tap_postgres_public2... | [
"0.60332733",
"0.5850599",
"0.5643817",
"0.55915076",
"0.5587126",
"0.55850476",
"0.55768234",
"0.55475914",
"0.55230784",
"0.55136365",
"0.55093753",
"0.5480773",
"0.54701746",
"0.5443543",
"0.5441625",
"0.54017884",
"0.5401201",
"0.5377228",
"0.53369397",
"0.5330783",
"0.53... | 0.62818336 | 0 |
returns boolean if the the lead intersects with the path of a particle | def ciB1(YKHO, il4J, Hydg):
iQin = YKHO.line.intersection(Hydg)
GfdN = isinstance(iQin, LBWB.geometry.Point)
if GfdN:
iQin = [iQin.x, iQin.y]
return [GfdN, iQin] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2W6(YKHO, spHt):\n WiOR = YKHO._sympy_plane.intersection(spHt.sympy_line)[0]\n if 'x' in YKHO._name:\n if YKHO._within_y_bounds(WiOR.y) and YKHO._within_z_bounds(WiOR.z):\n return (True, oyIN.array(map(float, [WiOR.x, WiOR.y, WiOR.z])))\n elif 'y' in YKHO._name:\n if YKHO._wi... | [
"0.6820177",
"0.6580403",
"0.6549938",
"0.65458953",
"0.65439326",
"0.6519521",
"0.6505728",
"0.6444002",
"0.63986945",
"0.6379889",
"0.6362897",
"0.6327882",
"0.6302101",
"0.6282149",
"0.62798524",
"0.62612164",
"0.62437475",
"0.6236044",
"0.6200129",
"0.6192624",
"0.6181581... | 0.6569451 | 2 |
Get an existing FirewallRule resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'FirewallRule':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = dict()
r6DL['end_ip'] = None
r6DL['name'] = None
r6DL['start_ip'] = None
r6DL['type'] = None
return J1wF(kFeU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, XSoh: Optional[pulumi.Input[str]]=None, TJ_E: Optional[pulumi.Input[bool]]=None, ZzAz: Optional[pulumi.Input[str]]=None, Ey19: Optional[pulumi.Input[int]]=None, wI2t: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType... | [
"0.6766867",
"0.64151376",
"0.63440967",
"0.6062281",
"0.6002148",
"0.59975606",
"0.5937825",
"0.5635326",
"0.56186944",
"0.54493845",
"0.5413885",
"0.5286892",
"0.5221827",
"0.51381284",
"0.51351386",
"0.51325524",
"0.51140153",
"0.5107555",
"0.5069736",
"0.50370955",
"0.503... | 0.7343628 | 0 |
Returns valid relative path without preceding / . | def NJ4L(pmON):
if pmON.startswith('/'):
pmON = pmON[1:]
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PqXl(YKHO, pmON):\n XVAW = None\n pmON = Hy7s.path.normpath(pmON)\n while pmON != XVAW:\n XVAW = pmON\n pmON = pmON.lstrip(Hy7s.sep).lstrip('/')\n pmON = pmON.lstrip(Hy7s.pardir).lstrip('..')\n RSBG, pmON = Hy7s.path.splitdrive(pmON)\n return pmON",
"def yuBB(P8oC):\n ... | [
"0.78773415",
"0.76372135",
"0.75466543",
"0.738993",
"0.73724186",
"0.7305083",
"0.7259217",
"0.71868014",
"0.71376234",
"0.71371746",
"0.71276987",
"0.7098929",
"0.7073184",
"0.70718753",
"0.7065884",
"0.7062364",
"0.7055339",
"0.7047333",
"0.7042753",
"0.7039734",
"0.70141... | 0.7014132 | 21 |
Checks that cdhit can be run, and returns version. | def dM4P(zUJG='cd-hit'):
XP5J = str(Yn3K.run(zUJG + ' -h', stdout=Yn3K.PIPE, shell=True))
DpZH = False
e0IH = ZbWC.search('CD-HIT version \\d+\\.\\d+', XP5J)
if e0IH:
DpZH = float(e0IH[0].split()[-1])
if not DpZH:
HwRy.stderr.write('Need cd-hit to be runnable through: ' + zUJG + '\n'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lpqi(YKHO):\n YKHO.assertTrue(Nygx('cd-hit'), 'cd-hit not found. This may or may not be a problem depending on ' + 'which components of QIIME you plan to use.')",
"def k3o6(YKHO):\n try:\n hlel = L_fd([YKHO.bin('mech'), '--version'])\n except JaPI as e:\n G9jH.error('Failed to execute ... | [
"0.67566645",
"0.6268092",
"0.6197752",
"0.6142676",
"0.6072033",
"0.59949404",
"0.59768623",
"0.5966653",
"0.5908998",
"0.5900754",
"0.58872926",
"0.5846061",
"0.58251655",
"0.5825078",
"0.5794901",
"0.57900554",
"0.5752349",
"0.5751359",
"0.5736305",
"0.5729775",
"0.5720715... | 0.7393205 | 0 |
Test that exception is raised if no email is given | def JmAV(YKHO):
YKHO.portal.portal_properties.site_properties.use_email_as_login = True
YKHO.assertRaises(ValueError, nNXP.user.create, username='chuck', password='secret') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NDUF(YKHO):\n pass",
"def RQB3():\n baE4(gr_i, DQrD, 'a', 'abdkjjd', 'a', 'A', '')",
"def c51Z():\n a5gr(email='harrypotter@gmail.com', password='qw3rtyAppl3s@99', name_first='Harry', name_last='Potter')\n wzbZ = 'fake_email@gmail.com'\n with trZe.raises(DQrD) as tTpl:\n j0Mr(email=wz... | [
"0.7807532",
"0.7694323",
"0.7610884",
"0.754362",
"0.74519366",
"0.744689",
"0.7444232",
"0.73221993",
"0.7275625",
"0.72517663",
"0.72512853",
"0.7218671",
"0.719487",
"0.7194725",
"0.7164603",
"0.70984656",
"0.7092247",
"0.7064556",
"0.70287913",
"0.7021593",
"0.70109934",... | 0.7321363 | 8 |
Test that email is parsed from the properties | def uZQB(YKHO):
CBIr = nNXP.user.create(username='chuck', password='secret', properties={'email': 'chuck@norris.org'})
YKHO.assertEquals(CBIr.getProperty('email'), 'chuck@norris.org') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZwc(YKHO):\n YKHO.assertEqual('maryc123@yahoo.com', YKHO.user.email)",
"def ocoh(YKHO):\n wrL9 = 'from=<user@domain.com>'\n Aofo = YBiq(wrL9)\n YKHO.assertEqual(Aofo, 'user@domain.com')",
"def NIKh(YKHO):\n H5ew = nNXP.portal.get_registry_record('plone.email_from_address')\n YKHO.assertE... | [
"0.70654356",
"0.69766766",
"0.692082",
"0.68756866",
"0.686623",
"0.68461347",
"0.68295705",
"0.68069005",
"0.67966443",
"0.6643023",
"0.6576639",
"0.6568408",
"0.652954",
"0.65173155",
"0.64472926",
"0.6422967",
"0.64181256",
"0.6360059",
"0.6350519",
"0.63356835",
"0.63014... | 0.6790841 | 9 |
Get the interval at which this function is executing. This translates an AWS Rate Schedule Expression ('rate(2 hours)') into a second interval | def NCDr(YKHO):
v6Zc = Ckaj.match(YKHO._schedule)
if not v6Zc:
raise Lb_c("Invalid 'rate' interval value: {}".format(YKHO._schedule))
BWXx = v6Zc.group(2) or v6Zc.group(4)
PXGI = v6Zc.group(3) or v6Zc.group(5).replace('s', '')
vZmk = {'minute': 60, 'hour': 60 * 60, 'day': 60 * 60 * 24}
V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOlW(YKHO) -> int:\n return qe4Y.get(YKHO, 'interval')",
"def eUH0(YKHO):\n return YKHO.interval * 1000",
"def VOlW(YKHO):\n return YKHO.__interval",
"def VOlW(YKHO):\n return YKHO._interval",
"def VOlW(YKHO):\n return YKHO._interval",
"def VOlW(YKHO) -> int:\n return YKHO._interval... | [
"0.7161424",
"0.71133465",
"0.6716398",
"0.6701243",
"0.6701243",
"0.6591058",
"0.6582625",
"0.6578035",
"0.6556201",
"0.6556201",
"0.6523063",
"0.6415974",
"0.6391763",
"0.6356646",
"0.62375575",
"0.6222892",
"0.6222892",
"0.6221555",
"0.61875314",
"0.61829716",
"0.617091",
... | 0.7932928 | 0 |
Get the last timestamp | def U_dL(YKHO):
S0MI.debug('Getting last_timestamp as: %s', YKHO._last_timestamp)
return YKHO._last_timestamp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U_dL(YKHO):\n return YKHO._last_timestamp",
"def jITp(YKHO):\n return YKHO._last",
"def ikwY(YKHO):\n return YKHO._frame_timestamp",
"def XWBC(YKHO):\n if hasattr(YKHO, '_lasttime'):\n return YKHO._lasttime\n else:\n return None",
"def tmKi(YKHO) -> qcWV:\n return YKHO.a... | [
"0.8668161",
"0.84046865",
"0.83760184",
"0.8173479",
"0.79495394",
"0.7847311",
"0.77691823",
"0.7763253",
"0.767657",
"0.7675941",
"0.7630592",
"0.7576935",
"0.75218123",
"0.7483857",
"0.7483232",
"0.74118686",
"0.7401233",
"0.7401233",
"0.7379154",
"0.73734283",
"0.7368113... | 0.86650693 | 1 |