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 |
|---|---|---|---|---|---|---|
The name of the flow. The name must be unique in an Alibaba Cloud account. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smSl(YKHO):\n return YKHO._flowdetail.name",
"def JtWF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_log_name')",
"async def create_flow_from_name(YKHO, smSl: str) -> S7kj:\n VYyo = gzjV(name=smSl)\n geh0 = await YKHO._client.post('/flows/', json=VYyo.dict(json_compatible=True))... | [
"0.8098582",
"0.7135818",
"0.66779625",
"0.6615425",
"0.6496065",
"0.63506716",
"0.6279238",
"0.6212589",
"0.6178735",
"0.61754745",
"0.6126986",
"0.6105918",
"0.60761833",
"0.6051269",
"0.6046129",
"0.5932031",
"0.59040743",
"0.58971757",
"0.5894412",
"0.589253",
"0.5882445"... | 0.0 | -1 |
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. | def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def _Kal(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'execution_role_arn')... | [
"0.65420634",
"0.6541184",
"0.6356929",
"0.6338323",
"0.6338323",
"0.6336413",
"0.6314953",
"0.6314953",
"0.6296176",
"0.62797946",
"0.619897",
"0.6191187",
"0.6191187",
"0.6138167",
"0.6012838",
"0.5938508",
"0.5938508",
"0.5938508",
"0.5743808",
"0.5673479",
"0.55946565",
... | 0.650819 | 2 |
Get an existing Flow 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, q_DO: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, S1v3: Optional[pulumi.Input[str]]=None, kMPX: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, axXk: Optional[pulumi.Input[str]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, AWa1: Optional[pulumi.Input[str]]=None, Ule1: Optional[pulumi.Input[str]]=None, xif0: Optional[pulumi.Input[str]]=None, ZIgK: Optional[pulumi.Input[str]]=None, F8xl: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType[... | [
"0.61467177",
"0.59977746",
"0.5887954",
"0.58686197",
"0.5769306",
"0.5760383",
"0.5744379",
"0.5731907",
"0.5695245",
"0.5681025",
"0.566572",
"0.5594203",
"0.55792254",
"0.55501205",
"0.55404574",
"0.5521873",
"0.5518314",
"0.55134875",
"0.5513117",
"0.5510912",
"0.5496914... | 0.68246835 | 0 |
The name of the flow. The name must be unique in an Alibaba Cloud account. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smSl(YKHO):\n return YKHO._flowdetail.name",
"def JtWF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_log_name')",
"async def create_flow_from_name(YKHO, smSl: str) -> S7kj:\n VYyo = gzjV(name=smSl)\n geh0 = await YKHO._client.post('/flows/', json=VYyo.dict(json_compatible=True))... | [
"0.8100065",
"0.71379757",
"0.6680146",
"0.661537",
"0.6500419",
"0.63507307",
"0.62835735",
"0.621761",
"0.6182228",
"0.61773825",
"0.61278",
"0.61080825",
"0.60720503",
"0.605248",
"0.60510796",
"0.592769",
"0.5900022",
"0.5894879",
"0.5893847",
"0.5891027",
"0.5878628",
... | 0.0 | -1 |
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. | def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO... | [
"0.6540856",
"0.6507507",
"0.6507507",
"0.6507507",
"0.6507507",
"0.6357072",
"0.63378197",
"0.63378197",
"0.6335595",
"0.63144666",
"0.63144666",
"0.6296718",
"0.62795156",
"0.6199739",
"0.6190946",
"0.6190946",
"0.6137535",
"0.6013427",
"0.5938013",
"0.5938013",
"0.5938013"... | 0.65417695 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = b0Ix * 0.1 ** (qtWj // 15)
if tspZ >= 0.0001:
tspZ = 0.0001
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79133433",
"0.7907211",
"0.7850508",
"0.77755034",
"0.7734465",
"0.773158",
"0.77232176",
"0.7722336",
"0.7719667",
"0.7709295",
"0.7693627",
"0.76746327",
"0.7665828",
"0.7665828",
"0.7665828",
"0.7655531",
"0.76423776",
"0.76399475",
"0.76379395",
"0.76263064",
"0.762507... | 0.74738246 | 60 |
Draw a matrix of scatter plots. | def qk54(f4IJ: DataFrame, Cwt5: float=0.5, wytA: tuple[float, float] | None=None, aNZO: Axes | None=None, Cs6h: bool=False, IjIm: str='hist', _5yy: str='.', lQq6: Mapping[str, Any] | None=None, FqGL: Mapping[str, Any] | None=None, v_dg: float=0.05, **B2fa) -> oyIN.ndarray:
vgOV = zTV9('matplotlib')
return vgOV.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNlx():\n EtfW = jEkL()\n nPrm = EtfW\n WQvx = nPrm['data'][nPrm['target'] == 0]\n AtwG = nPrm['data'][nPrm['target'] == 1]\n I6HY = nPrm['data'][nPrm['target'] == 2]\n mLGw = 4\n LZpg, MPlV = QrM1.subplots(nrows=mLGw, ncols=mLGw, figsize=(18, 18))\n LZpg.subplots_adjust(hspace=0.5, wsp... | [
"0.7632802",
"0.7094814",
"0.69083995",
"0.66950476",
"0.6512681",
"0.6503899",
"0.6478721",
"0.64720625",
"0.6403737",
"0.63482517",
"0.6196505",
"0.61825347",
"0.61799836",
"0.614676",
"0.61089444",
"0.6034682",
"0.60314435",
"0.602379",
"0.6016298",
"0.59965426",
"0.598982... | 0.59412354 | 25 |
Lag plot for time series. | def UmHu(dy_H: Series, nnVk: int=1, aNZO: Axes | None=None, **c_sp) -> MlUv:
vgOV = zTV9('matplotlib')
return vgOV.lag_plot(series=dy_H, lag=nnVk, ax=aNZO, **c_sp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1xh(OGm4, nnVk=1):\n QrM1.figure(figsize=(8, 5))\n QrM1.title('Lag Plot of the Trade Value of Imports')\n QrM1.xlim(min(OGm4), max(OGm4))\n QrM1.ylim(min(OGm4), max(OGm4))\n UmHu(OGm4, lag=nnVk)\n QrM1.show()",
"def wtsD(nPrm, fvDH, vVbW=None):\n if vVbW is None:\n return\n if... | [
"0.7554353",
"0.6381466",
"0.6196768",
"0.5745878",
"0.57405406",
"0.57405406",
"0.5705516",
"0.5619891",
"0.55574465",
"0.55381304",
"0.54294086",
"0.5428416",
"0.54275745",
"0.53875905",
"0.53862137",
"0.5356363",
"0.5351594",
"0.53365064",
"0.5318329",
"0.5305291",
"0.5292... | 0.75921804 | 0 |
Create a new HTTPTLSConnection. For client authentication, use one of these argument | def FIMM(YKHO, KcEq, bIwZ=None, U3Fm=None, vYBr=GGmw._GLOBAL_DEFAULT_TIMEOUT, Q1g5=None, NtEF=None, jTXt=None, IUUE=None, falt=None, ZUyI=None, gCuF=None, LgQ6=False, yu2O=False):
if Q1g5:
B3z0.HTTPConnection.__init__(YKHO, KcEq, bIwZ, U3Fm, vYBr, Q1g5)
if not Q1g5:
B3z0.HTTPConnection.__init__(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _mk_http_connection(YKHO) -> Qm_e:\n if YKHO._ssl_context is not None:\n SQvy = LWhY(ssl=YKHO._ssl_context)\n NKRf = f'https://{YKHO._netloc}/'\n else:\n SQvy = LWhY()\n NKRf = f'http://{YKHO._netloc}/'\n return Qm_e(NKRf, connector=SQvy, timeout=cCOh(YKHO._socket_tim... | [
"0.6850444",
"0.6834937",
"0.6576818",
"0.63885206",
"0.6375875",
"0.63229674",
"0.6259735",
"0.6212747",
"0.62018746",
"0.616409",
"0.6156553",
"0.6147293",
"0.6068201",
"0.6066661",
"0.6036333",
"0.60328496",
"0.60305214",
"0.6024671",
"0.6018019",
"0.60107994",
"0.6007894"... | 0.6953264 | 0 |
Get the name of this TLS version. | def EBCf(YKHO):
if YKHO.version == (3, 0):
return 'SSL 3.0'
elif YKHO.version == (3, 1):
return 'TLS 1.0'
elif YKHO.version == (3, 2):
return 'TLS 1.1'
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtRV(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_name')",
"def mWFP(YKHO):\n return o58j._NAME",
"def LXqN(YKHO):\n if YKHO.have_metadata is False:\n YKHO._get_metadata()\n YKHO.have_metadata = True\n try:\n return YKHO.keyinfo['context_tags'].attrs['version_name']\n ... | [
"0.7926065",
"0.76917684",
"0.74067014",
"0.7239027",
"0.694223",
"0.67377144",
"0.6716353",
"0.6716353",
"0.6700214",
"0.66756445",
"0.66634756",
"0.6595793",
"0.65939796",
"0.65939796",
"0.65939796",
"0.65939796",
"0.65939796",
"0.65939796",
"0.65939796",
"0.65939796",
"0.6... | 0.80969906 | 0 |
Get the name of the cipher implementation used with this connection. | def CNsr(YKHO):
if not YKHO._writeState.encContext:
return None
return YKHO._writeState.encContext.implementation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cRXR(YKHO):\n return d32i.canonicalCipherName(YKHO.cipherSuite)",
"def cRXR(YKHO):\n if not YKHO._writeState.encContext:\n return None\n return YKHO._writeState.encContext.name",
"def ekkV(YKHO) -> str:\n return qe4Y.get(YKHO, 'ssl_cipher')",
"def eedx(YKHO):\n return jbpC(open(YKHO... | [
"0.76559603",
"0.7466432",
"0.6878692",
"0.66345334",
"0.6439635",
"0.6427892",
"0.6328319",
"0.6182311",
"0.6103577",
"0.6103577",
"0.60825557",
"0.6077022",
"0.60077816",
"0.59789926",
"0.5919728",
"0.5902841",
"0.58775467",
"0.5876545",
"0.5876545",
"0.5876545",
"0.5876545... | 0.74420303 | 2 |
Return the socket's own address (socket emulation). | def XpKg(YKHO):
return YKHO.sock.getsockname() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAkW(YKHO):\n if YKHO._addr == None:\n return YKHO._socket.getpeername()\n return YKHO._addr",
"def Hh5z(YKHO) -> PirK:\n from anyio._core._sockets import convert_ipv6_sockaddr\n return convert_ipv6_sockaddr(YKHO.raw_socket.getsockname())",
"def pHEN():\n KCHu = GGmw.socket(GGmw.AF_IN... | [
"0.7759652",
"0.75405616",
"0.7500997",
"0.7415361",
"0.73486567",
"0.7257618",
"0.71555614",
"0.7124486",
"0.71074885",
"0.7051072",
"0.6976554",
"0.69279504",
"0.69074607",
"0.6873155",
"0.6864303",
"0.68543005",
"0.682299",
"0.68145925",
"0.67835015",
"0.6780395",
"0.67737... | 0.65780437 | 32 |
Shutdown the underlying socket. | def hqgk(YKHO, UAE4):
return YKHO.sock.shutdown(UAE4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgS3(YKHO):\n YKHO.socket.shutdown(GGmw.SHUT_RDWR)",
"def hqgk(YKHO):\n YKHO.sock.close()",
"def hqgk(YKHO):\n YKHO.socket_thread.stop()",
"def hqgk(YKHO):\n YKHO._send_command('shutdown')\n YKHO.sock.close()\n YKHO.disconnected = True",
"def hqgk(YKHO):\n YKHO.connected = False\n ... | [
"0.81339985",
"0.7954016",
"0.7920796",
"0.7766775",
"0.76770145",
"0.7673965",
"0.76631063",
"0.75524914",
"0.7443758",
"0.7422697",
"0.73872596",
"0.72678834",
"0.72663873",
"0.7198483",
"0.71174705",
"0.71149",
"0.710153",
"0.7054718",
"0.70176625",
"0.6976047",
"0.6952311... | 0.7355222 | 11 |
Return a string containing the key. | def Lsrz(YKHO, jTXt=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')",
"def H... | [
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"0.8365997",
"... | 0.0 | -1 |
Get the number of certificates in this chain. | def jSQ8(YKHO):
return len(YKHO.x509List) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO) -> int:\n zNig = len(YKHO['tbs_cert_list']['revoked_certificates'])\n return zNig",
"def fLQe(YKHO):\n return len(YKHO.chain_list)",
"def DgaU(YKHO):\n Rbeh = 0\n for eNCK in YKHO.chain:\n Rbeh += eNCK.numResidues()\n return Rbeh",
"def UHFx(YKHO):\n return YKHO.con... | [
"0.7009832",
"0.6706899",
"0.6436793",
"0.6413928",
"0.64091814",
"0.6407851",
"0.6390912",
"0.638814",
"0.6376616",
"0.63436776",
"0.6319794",
"0.62751573",
"0.62637293",
"0.62599695",
"0.6254115",
"0.6254115",
"0.6254115",
"0.6194693",
"0.6167812",
"0.61472887",
"0.61384344... | 0.79666656 | 0 |
Create the level2 BOSS enemy (smart bullets) | def pw6L():
if GPtr.B == '':
GPtr.B = fhZS.Boss(BJsk.R6, BJsk.MIDS_R)
else:
try:
GfdN.check(GPtr.B.x_pos, GPtr.B.y_pos, 'Boss')
if ajWY(0, 5) == 1:
GPtr.B.shoot(GPtr.M.x_pos)
except GPtr.MarioAbove:
GPtr.STAGE = 'won' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AywN(YKHO):\n JjEH = Xfn8(YKHO.__pos[0], YKHO.__pos[1], 30, 30, YKHO.__enemy_targets, SSjb)\n YKHO.__timer = gZbH(YKHO.__spawn_time, YKHO.__spawn_enemy)\n nE8L.fire_events(pU8M, JjEH)",
"def Y1gW(pFW3: sdl2.render.SDL_Renderer, dQgj: Vec2f) -> ahCL:\n JjEH = ahCL()\n JjEH.position = dQgj\n ... | [
"0.66980165",
"0.6650183",
"0.6605485",
"0.6583598",
"0.6558802",
"0.647644",
"0.6473566",
"0.6391405",
"0.6390596",
"0.6336965",
"0.6319591",
"0.62907",
"0.62625235",
"0.6193745",
"0.6157886",
"0.6128412",
"0.6126843",
"0.603238",
"0.59914124",
"0.5971777",
"0.59595853",
"... | 0.56400496 | 43 |
Negative of the shortest path distance from x to y. We exploit the smallworld property of the social network and apply expanded ring search to compute the shortest path distance from x to y efficiently. | def Ayfi(pNZh, WKvO, LVAh, RD1Q):
assert vZa6.IsConnected(pNZh)
o4sw, lWPh = (set([WKvO]), set([LVAh]))
AIZ9 = 0
while len(o4sw.intersection(lWPh)) == 0:
vi2A = o4sw if len(o4sw) < len(lWPh) else lWPh
UP4K = set()
for Q6kx in vi2A:
for AAbN in RD1Q[Q6kx]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\n eUWA = WKvO[1] - LVAh[1]\n TK2h = Jw7X ** 2 + eUWA ** 2\n TK2h = TK2h ** 0.5\n return TK2h",
"def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\n eUWA = WKvO[1] - LVAh[1]\n TK2h = Jw7X ** 2 + eUWA ** 2\n TK2h = TK2h ** 0.5\n return T... | [
"0.65123177",
"0.65119684",
"0.64018536",
"0.63468206",
"0.62222636",
"0.61802346",
"0.6165507",
"0.6148556",
"0.61319673",
"0.6112834",
"0.604815",
"0.5996762",
"0.5982471",
"0.5979966",
"0.5973196",
"0.59626305",
"0.59579194",
"0.59579194",
"0.59502864",
"0.5938989",
"0.593... | 0.59646356 | 15 |
Get the timestamp of a block. | def E3oo(Emd4, XkN1: Expr) -> EWKA:
return Emd4(a1qx.block_timestamp, XkN1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n return YKHO.block.create_time",
"def tUa7(YKHO):\n return YKHO.timestamp",
"def kMp9(YKHO):\n return YKHO.pair.data['timestamp']",
"def kMp9(YKHO):\n return YKHO.data['timestamp']",
"def E3oo(YKHO):\n return YKHO._timestamp",
"def E3oo(YKHO):\n return YKHO._timestamp",... | [
"0.7406969",
"0.7207374",
"0.7155695",
"0.7077625",
"0.7012697",
"0.7012697",
"0.7012697",
"0.7012697",
"0.7012697",
"0.7012697",
"0.7012697",
"0.69915336",
"0.69550216",
"0.6913949",
"0.69103074",
"0.68985236",
"0.6842196",
"0.680241",
"0.67972016",
"0.6777045",
"0.67653",
... | 0.807266 | 0 |
>>> patron = Patron(date_joined=datetime.datetime.now()) >>> patron.is_expired() False >>> patron = Patron(date_joined=datetime.datetime.now() datetime.timedelta(days=settings.ACCOUNT_ACTIVATION_DAYS + 1)) >>> patron.is_expired() True | def CJbn(YKHO):
ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)
return YKHO.date_joined + ad72 <= qcWV.datetime.now() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUPt(YKHO):\n return YKHO.date_joined + fCoM(days=gCuF.ACCOUNT_ACTIVATION_DAYS) < rIAI.now()",
"def CJbn(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.user.date_joined + ad72 <= qcWV.datetime.now()",
"def BIyx(YKHO):\n rG7T = fCoM(days=gCuF.ACCOUNT_ACTIVATION_D... | [
"0.69919384",
"0.6768022",
"0.6746742",
"0.67197365",
"0.6666293",
"0.66235864",
"0.65516394",
"0.651507",
"0.64621085",
"0.64423746",
"0.64357686",
"0.6358707",
"0.6342834",
"0.63334554",
"0.6317059",
"0.6215799",
"0.61647063",
"0.61488867",
"0.6081687",
"0.6039187",
"0.6029... | 0.71481943 | 0 |
Returns the variables used in the polynomial system. | def jzJH(YKHO):
return YKHO.__vars | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duEm(YKHO):\n return YKHO._polynomial_variables",
"def jbKh(YKHO) -> oyIN.array:\n pass",
"def jbKh(YKHO):\n return YKHO.variables",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def Zjnb(YKHO):\n return [YRbF[0] for YRbF in YKHO.parameters]",
"def qiMC(YKHO):\n ... | [
"0.8658112",
"0.73176146",
"0.72423136",
"0.7205187",
"0.7172086",
"0.7141185",
"0.71316177",
"0.7082384",
"0.699829",
"0.69913006",
"0.698765",
"0.6954985",
"0.6933052",
"0.69301057",
"0.69098586",
"0.68842596",
"0.68338484",
"0.68154585",
"0.6810749",
"0.67769015",
"0.67445... | 0.636993 | 45 |
Redraws the GUI and selects the first element | def r2SK(YKHO, **B2fa):
YKHO.baxter.menu.select(YKHO.modes[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6xQ(YKHO, QvKD, Ae2G, hVLt, tvqc):\n if Ae2G.size() == 0:\n return\n QvKD.focus()\n Ae2G.select_set(YKHO.cntlbcall)\n Ae2G.see(YKHO.cntlbcall)\n if YKHO.cntlbcall != 0:\n Ae2G.select_clear(YKHO.cntlbcall - 1)\n YKHO.cntlbcall += 1\n if YKHO.cntlbcall > Ae2G.size():\n ... | [
"0.63663656",
"0.6231262",
"0.6167951",
"0.60333204",
"0.60275155",
"0.6011662",
"0.598238",
"0.598238",
"0.5974353",
"0.5963918",
"0.5908105",
"0.59031874",
"0.59030247",
"0.58895534",
"0.5861371",
"0.5861371",
"0.585541",
"0.58549523",
"0.58008283",
"0.57977223",
"0.5793876... | 0.0 | -1 |
Returns True if the given vevent has some overlap with the given start and end datetimes. | def T0T_(SFY8, yKcO, Os4s):
CwIO = SFY8.dtstart.value
v96R = SFY8.dtend.value
assert not vwAB(yKcO), 'start dt is naive'
assert not vwAB(Os4s), 'end dt is naive'
assert not vwAB(CwIO), 'event_start dt is naive'
assert not vwAB(v96R), 'event_end dt is naive'
if yKcO <= CwIO <= Os4s:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHH9(KmOw, sBxj, vq0F, LTB2):\n return KmOw <= vq0F <= sBxj or vq0F <= KmOw <= LTB2",
"def yv_K(rzQ3, ZBCA, h4Iz, XljJ):\n return ZBCA >= h4Iz and XljJ >= rzQ3",
"def yHH9(N7sD, ksBp, uWrF, sbXL):\n return not (ksBp < uWrF or sbXL < N7sD)",
"def P10m(YKHO, Elif: 'DateRange') -> bool:\n return... | [
"0.73352504",
"0.7268612",
"0.7161323",
"0.7013083",
"0.6998358",
"0.6992018",
"0.69689727",
"0.6942219",
"0.6851224",
"0.6840325",
"0.6771528",
"0.67401946",
"0.6736302",
"0.6669218",
"0.6659572",
"0.6582103",
"0.6563542",
"0.6557208",
"0.6537529",
"0.6507601",
"0.6461299",
... | 0.8953565 | 0 |
if dt is None, default to today. | def UNsy(IT5d, JRYC=None):
JRYC = JRYC or RN2L()
if vwAB(JRYC):
JRYC = Uex5(JRYC)
yKcO = qcWV.datetime(JRYC.year, JRYC.month, JRYC.day, tzinfo=JRYC.tzinfo)
Os4s = yKcO.replace(hour=23, minute=59, second=59)
return (SFY8 for SFY8 in IT5d if T0T_(SFY8, yKcO, Os4s)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kKWq() -> qcWV.date:\n return qcWV.today().date()",
"def gVTZ() -> qcWV.date:\n return qcWV.date.today()",
"def gVTZ():\n return qcWV.today()",
"def yFTO():\n return _c1T.today()",
"def yo7_():\n return qcWV.today()",
"def WE8u():\n return JRYC.date.today().strftime('%B %d, %Y')",
... | [
"0.71831757",
"0.71790624",
"0.7157554",
"0.7062118",
"0.7044347",
"0.6987335",
"0.6947952",
"0.6940071",
"0.6775235",
"0.6730335",
"0.6727219",
"0.6708656",
"0.6657537",
"0.663685",
"0.6627343",
"0.65890807",
"0.65724427",
"0.6568634",
"0.6430637",
"0.6354221",
"0.63142675",... | 0.0 | -1 |
This function creates the torch layers and initialize them with xavier | def e6dr(YKHO):
YKHO.lin_layers_hpm.append(U78l.Linear(8, YKHO.noFeatures_hpm))
for bGrB in range(YKHO.noLayers_hpm):
YKHO.lin_layers_hpm.append(U78l.Linear(YKHO.noFeatures_hpm, YKHO.noFeatures_hpm))
YKHO.lin_layers_hpm.append(U78l.Linear(YKHO.noFeatures_hpm, 2))
for r8hN in YKHO.lin_layers_hpm:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO) -> None:\n YKHO.self_attn = io5z(**YKHO.self_attn_cfg)\n YKHO.cross_attn = io5z(**YKHO.cross_attn_cfg)\n YKHO.embed_dims = YKHO.self_attn.embed_dims\n YKHO.ffn = JcZC(**YKHO.ffn_cfg)\n XHJ3 = [n0Aj(YKHO.norm_cfg, YKHO.embed_dims)[1] for bGrB in range(3)]\n YKHO.norms = tz2I(XHJ3)",... | [
"0.6642476",
"0.65308994",
"0.65087086",
"0.6487073",
"0.6440769",
"0.6419816",
"0.64024603",
"0.63926256",
"0.63651925",
"0.6359809",
"0.63499576",
"0.630579",
"0.6304811",
"0.6298035",
"0.62806535",
"0.6274737",
"0.62613934",
"0.62458605",
"0.62357026",
"0.6222217",
"0.6207... | 0.0 | -1 |
Load yaml files, expand sheet paths, handle implied sheets | def fuSq(VAvQ: Path) -> None:
KNLa: dict = {}
for Y09R in VAvQ.glob('*.*'):
if Y09R.suffix != '.yaml':
pf8G: str = Y09R.stem
KNLa[pf8G] = Y09R
continue
V724: dict = a8T7(Y09R)
try:
pf8G: str = next(iter(V724))
except TypeError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qXsa(YKHO, Ly_o: Path, *, BQn7: str, SD9b: str='npc') -> None:\n\n def fuSq(VAvQ: Path) -> None:\n \"\"\"Load yaml files, expand sheet paths, handle implied sheets\n\n This internal helper method scans all the files in search_dir and tries to load them by their type:\n * yaml fi... | [
"0.6173981",
"0.5809555",
"0.5713919",
"0.5698637",
"0.5692844",
"0.56898934",
"0.56480736",
"0.5596296",
"0.55962557",
"0.5579956",
"0.5485794",
"0.53606164",
"0.5349578",
"0.5334283",
"0.5326996",
"0.53183305",
"0.53127784",
"0.5294708",
"0.5284989",
"0.5284458",
"0.5276784... | 0.513062 | 33 |
Get a system object for the given system key Creates a System object using the definition from the given key. If the key does not have a definition, returns None. | def ksjT(YKHO, H5ew: str) -> wk86:
if H5ew not in YKHO.get('npc.systems'):
bo34.error(f"System '{H5ew}' is not defined")
return None
return wk86(H5ew, YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYZQ(H5ew: str) -> H4ba:\n if H5ew == Qqoa:\n return oIpd\n if H5ew == c5u7:\n return lErx\n raise ValueError(f'`{H5ew}` is not a valid unit system key')",
"def neBz(H5ew):\n return TC9A.find(vRkn, H5ew)",
"def uYZQ(Oz1B: SystemLike) -> _aQo.UnitSystem:\n if isinstance(Oz1B, _a... | [
"0.6655925",
"0.5816783",
"0.5782495",
"0.5711011",
"0.56320685",
"0.54713273",
"0.53890646",
"0.5377853",
"0.53597015",
"0.52539897",
"0.52343905",
"0.5231077",
"0.5175568",
"0.5134399",
"0.5125192",
"0.50195485",
"0.49772644",
"0.4964879",
"0.49590507",
"0.49144542",
"0.488... | 0.8242922 | 0 |
Works like `eq`, but checks a column value does NOT equal to a value. | def fNgN(Emd4, tbQY=True, lZ8k=None, **B2fa):
sMub = lambda Z9rn: (f'{Z9rn} IS NOT NULL', [])
return IcnB('!=', lZ8k, tbQY, B2fa.items(), sMub) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xjdh(YKHO, Elif: Any) -> kJ7p:\n return YKHO.operate(xjdh, Elif)",
"def JhT2(YKHO, BWXx):\n G7cG = YKHO.copy()\n G7cG.setOp(_aLO.Op.IsNot)\n G7cG.setValue(BWXx)\n return G7cG",
"def Vdqg(YKHO, hkxX):\n YKHO = YKHO.__eq__(hkxX)\n return YKHO.__invert__()",
"def d_5N(YKHO, wEf2):\n ... | [
"0.7091873",
"0.6960923",
"0.6841301",
"0.67689764",
"0.6698606",
"0.6638352",
"0.66256446",
"0.65977436",
"0.6589736",
"0.6571715",
"0.65579796",
"0.65313697",
"0.65139925",
"0.647015",
"0.64653003",
"0.64653003",
"0.64653003",
"0.64653003",
"0.64391655",
"0.64391655",
"0.64... | 0.0 | -1 |
Works like `eq`, but checks a column value is one of list items using `IN` operator. | def AgUk(Emd4, tbQY=True, lZ8k=None, **B2fa):
return IcnB('IN', lZ8k, tbQY, [(G1Hx, cmJd) for G1Hx, cmJd in B2fa.items()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8Vl(YKHO, z0q4: str, v9CE: list):\n return RyuO.column(z0q4).in_(v9CE)",
"def qnba(YKHO, wEf2, pOqt):\n if isinstance(wEf2, (list, tuple)):\n if len(wEf2) == 1:\n return pOqt == wEf2[0]\n else:\n return pOqt.in_(wEf2)\n else:\n return pOqt == wEf2",
"def... | [
"0.7084676",
"0.69178337",
"0.6864878",
"0.6592657",
"0.6559162",
"0.64334726",
"0.6316192",
"0.6284205",
"0.62085086",
"0.6180624",
"0.61562",
"0.60635245",
"0.5991598",
"0.5989757",
"0.5969422",
"0.5958182",
"0.59320325",
"0.5864638",
"0.5831125",
"0.5803822",
"0.58037597",... | 0.5472265 | 34 |
Writes a PVMeterReport to a CSV file. The CSV file is named using the timestamp of the report. | def Itjo(MrjS: PVMeterReportItem) -> None:
JvEs = MrjS.timestamp.split('T')[0]
Ux0P = oAb3.Path('/results', f'{JvEs}.csv')
with open(Ux0P, 'a') as LtY3:
Wq02 = ['timestamp', 'pv_meter', 'pv_photovoltaic', 'pv_total_meter_photovoltaic']
jVe6 = m6_J.DictWriter(LtY3, fieldnames=Wq02)
EU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iaXM(YKHO):\n mWFP = qcWV.today().date()\n with open(f'{mWFP}.csv', 'w', newline='') as izUN:\n Wq02 = ['date', 'value_in_pln']\n WJI9 = m6_J.DictWriter(izUN, fieldnames=Wq02)\n WJI9.writeheader()\n while qcWV.today() < YKHO.track_to:\n aQhx = FfOa.track_price()\n wi... | [
"0.6339773",
"0.6316681",
"0.61627203",
"0.5998259",
"0.59788954",
"0.5929746",
"0.5871269",
"0.58422667",
"0.5842232",
"0.58375883",
"0.5768369",
"0.5765931",
"0.5748804",
"0.57439953",
"0.57248306",
"0.5689246",
"0.5671947",
"0.5661374",
"0.5658581",
"0.56122154",
"0.559822... | 0.6791999 | 0 |
Determine Serverless config file name. | def QXuz(pmON, EtM5, zn0c):
for mWFP in rluj(EtM5, zn0c):
if Hy7s.path.isfile(Hy7s.path.join(pmON, mWFP)):
return mWFP
return 'config-%s.json' % EtM5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0cB and len(E0cB) > 1:\n Xf8z = E0cB[1]\n Nu1S = Xf8z + '.cfg'\n bo34.info('get_config_file_name() return : ' + Nu1S)\n return Nu1S",
"def _NTK(YKHO):\n return YKHO._config_file_name",
"def ayhn(YKHO):\n return YKHO.... | [
"0.72659236",
"0.7194783",
"0.6951808",
"0.6914893",
"0.68098885",
"0.68029743",
"0.6801206",
"0.6740329",
"0.6726474",
"0.6718891",
"0.66243696",
"0.6568594",
"0.6564246",
"0.6507737",
"0.64303386",
"0.6410679",
"0.63609934",
"0.6346263",
"0.63338715",
"0.6318404",
"0.631142... | 0.6559069 | 13 |
Queue worker always needs a queue. | def doz7(YKHO):
with trZe.raises(ValueError):
KQkY(None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJw2(YKHO):\n raise NotImplementedError",
"def HWHq() -> None:\n l7bS.enableQueue = l7bS.queueSize > 0",
"def Ze0F(YKHO):\n while True:\n QePW = YKHO.queue.get()\n YKHO.worker(QePW)\n YKHO.queue.task_done()",
"def ljvn(YKHO):\n YKHO.logger.info('declaring queue %s', YKHO.... | [
"0.7278178",
"0.70632046",
"0.67487836",
"0.6740838",
"0.6720609",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.6676101",
"0.66736865",
... | 0.7316133 | 0 |
Print and plot the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
if NkkI:
Bcwd = Bcwd.astype... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.816587",
"0.7955341",
"0.7950839",
"0.79455096",
"0.7940542",
"0.7918728",
"0.79035467",
"0.78979486",
"0.7895601",
"0.78907657",
"0.7889559",
"0.7889291",
"0.7887709",
"0.78846425",
"0.7883517",
"0.7876319",
"0.78719187",
"0.786987",
"0.7864194",
"0.786126",
"0.78563774",... | 0.0 | -1 |
Displays the empty grid to add/remove walls if needeed You can also edit walls when the ants are working | def Mkmo(YKHO):
a9eO.init()
YKHO.display = a9eO.display.set_mode(YKHO.disp_size)
a9eO.display.set_caption('Map Editing')
o9av = a9eO.font.SysFont('arial', 15)
_CS_ = ['Press ESC to Start Drawing Obstacles', 'Click Left to Draw & Right to Erase', 'To finish Drawing,press Escape ', 'During search, Esc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G4E1():\n kj9G = {'Walls': ['N', 'S', 'W'], 'TARDIS': False, 'Transmat': False, 'Plot': f'\\nEerie blue lights lit the cold corridors. To the NORTH, SOUTH, and WEST are solid metal walls.\\n'}\n return kj9G",
"def OhZd():\n kj9G = {'Walls': ['S', 'W', 'E'], 'TARDIS': False, 'Transmat': False, 'Plot'... | [
"0.639976",
"0.63657",
"0.6182506",
"0.61376375",
"0.6095459",
"0.5972917",
"0.5963494",
"0.5957542",
"0.59346217",
"0.5934094",
"0.59316003",
"0.592572",
"0.59188735",
"0.59078985",
"0.5828266",
"0.5822109",
"0.5798862",
"0.5762491",
"0.57509893",
"0.5743138",
"0.57376915",
... | 0.57025665 | 24 |
Calculate haversine distance based on coordinates p,q | def GeVo(XP5J, vexM):
iT5T, igSk = XP5J
JSDM, TGuP = vexM
BYW5 = abs(JSDM - iT5T)
n_9K = abs(TGuP - igSk)
jzdc = oyIN.sin(0.5 * BYW5) ** 2 + oyIN.cos(iT5T) * oyIN.cos(JSDM) * oyIN.sin(0.5 * n_9K) ** 2
Z9rn = 2 * oyIN.arctan2(oyIN.sqrt(jzdc), oyIN.sqrt(1 - jzdc))
return Z9rn * 6371 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeVo(XP5J: np.ndarray, vexM: np.ndarray) -> float:\n Csk6 = vexM - XP5J\n jzdc = epAf.sin(Csk6[0] / 2.0) ** 2 + epAf.cos(XP5J[0]) * epAf.cos(vexM[0]) * epAf.sin(Csk6[1] / 2.0) ** 2\n Z9rn = 2 * epAf.atan2(epAf.sqrt(jzdc), epAf.sqrt(1.0 - jzdc))\n return Z9rn",
"def p1YX(XP5J: np.ndarray, vexM: np... | [
"0.7775793",
"0.77700186",
"0.74964947",
"0.7475149",
"0.7248531",
"0.7091504",
"0.7064187",
"0.69917274",
"0.6956939",
"0.68603015",
"0.68597496",
"0.6855843",
"0.6854278",
"0.6843162",
"0.6841937",
"0.682354",
"0.6807128",
"0.67887187",
"0.67769873",
"0.6769428",
"0.6761421... | 0.82636094 | 0 |
given a list of groups, output all combinations of picking one element from each group e.g. groups = [[1,2,3], [4,5], [6]], output [[1,4,6], [2,4,6], [3,4,6], [1,5,6], [2,5,6], [3,5,6]] | def _KiI(QKAN):
gGq6 = [QKAN]
Aofo = []
while len(gGq6) > 0:
jvSB = gGq6.pop(0)
if sum([len(uOe2) for uOe2 in jvSB]) == len(jvSB):
Aofo.append([uOe2[0] for uOe2 in jvSB])
continue
kyBI = []
for YRbF, uOe2 in enumerate(jvSB):
if len(uOe2) ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0cw(Yamj):\n return list(E6VQ(Yamj, 2))",
"def ioFf(moMn, mLGw=3):\n A1r9 = sorted(moMn, key=aZiB)\n for Z9rn in A1r9:\n if mLGw == 1:\n yield (Z9rn,)\n else:\n wl6z = (a1PO for a1PO in A1r9 if not set.intersection(a1PO, Z9rn))\n for g2cN in ioFf(wl6z,... | [
"0.7897111",
"0.6321369",
"0.6285078",
"0.61166495",
"0.60999864",
"0.6024628",
"0.59690535",
"0.59381866",
"0.5827599",
"0.5825397",
"0.5821363",
"0.57815963",
"0.5715693",
"0.571543",
"0.56768656",
"0.56106424",
"0.5593368",
"0.55808634",
"0.55752385",
"0.5567021",
"0.55468... | 0.7122247 | 1 |
Get the current file name. | def Jso9(YKHO):
return Hy7s.path.basename(YKHO.filePath) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def W0tD(YKHO):\n return YKHO.file_name",
"def g_2H(YKHO):\n return YKHO.__file_name",
"def g_2H(YKHO):\n return YKHO.file_name",
"def g_2H(YKHO):\n return YKHO._fileName",
"def W0tD(YKHO):\n return YKHO._file.name",
"def gIsw(YKHO):\n ... | [
"0.8406656",
"0.814089",
"0.81398875",
"0.81064373",
"0.8088809",
"0.8048407",
"0.7991949",
"0.79845554",
"0.79845554",
"0.79845554",
"0.79845554",
"0.79845554",
"0.79813814",
"0.79557765",
"0.79138213",
"0.7907894",
"0.7811998",
"0.7810537",
"0.7797176",
"0.7765043",
"0.7646... | 0.87200963 | 0 |
Get the absolute path of the current file path. | def V8OU(YKHO):
return Hy7s.path.abspath(YKHO.filePath) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQbV(YKHO):\n if YKHO.__abspath is None:\n YKHO.__abspath = U3Cx.abspath(YKHO)\n return YKHO.__abspath",
"def Zg0d(YKHO):\n return Hy7s.path.abspath(YKHO.path)",
"def OyQC():\n return pmON.abspath(pmON.dirname(pmON.dirname(xAKo)))",
"def NVxF(YKHO):\n try:\n Zg0d = Hy7s.path.... | [
"0.765076",
"0.76308316",
"0.7538255",
"0.7470339",
"0.7344921",
"0.7339244",
"0.7311921",
"0.7304363",
"0.72982013",
"0.7280575",
"0.7242775",
"0.7227705",
"0.72150815",
"0.72097427",
"0.71977425",
"0.71851784",
"0.71776885",
"0.7147296",
"0.71029615",
"0.70936203",
"0.70308... | 0.82042825 | 0 |
Get human readable file size. | def iTQC(zNig, ZI14='B'):
for PXGI in ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z']:
if abs(zNig) < 1024.0:
return f'{zNig:3.1f} {PXGI}{ZI14}'
zNig /= 1024.0
return f'{zNig:3.1f} Y{ZI14}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZkV(nUeQ: Path) -> str:\n return lYHg.naturalsize(nUeQ.stat().st_size) if nUeQ.stat().st_size else 'unknown'",
"def mfF2():\n return Hy7s.path.getsize(bkJI)",
"def mfF2(qaEx):\n if Hy7s.path.isfile(qaEx):\n GkYq = Hy7s.stat(qaEx)\n return GkYq.st_size",
"def cZkV(YKHO) -> int:\n ... | [
"0.8141374",
"0.7742803",
"0.77379185",
"0.77307975",
"0.7678914",
"0.76662236",
"0.76577383",
"0.76530725",
"0.76248133",
"0.76033276",
"0.7546457",
"0.7505311",
"0.7442776",
"0.74394625",
"0.7399071",
"0.7387684",
"0.7368004",
"0.73213285",
"0.7321178",
"0.7315039",
"0.7315... | 0.0 | -1 |
Create a schedule with a learning rate that decreases following the values of the cosine function between 0 and `pi cycles` after a warmup period during which it increases linearly between 0 and 1. | def MIxn(K0do, USzt, aNjR, rabA=0.5, IKjI=-1):
def EAQd(cVyJ):
if cVyJ < USzt:
return float(cVyJ) / float(max(1, USzt))
Eb4t = float(cVyJ - USzt) / float(max(1, aNjR - USzt))
return max(0.0, 0.5 * (1.0 + epAf.cos(epAf.pi * float(rabA) * 2.0 * Eb4t)))
return y31S(K0do, EAQd, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FvGu(uH9w):\n b0Ix = Seb7.cosine_decay_with_warmup(global_step=ZylS.train.get_or_create_global_step(), learning_rate_base=0.04, total_steps=uH9w, warmup_learning_rate=0.0133, warmup_steps=100)\n return b0Ix",
"def ZT_s(Zbwy):\n return lambda qtWj: 1.0",
"def FIMM(YKHO, Gysa, uH9w, hZF9=0, hzUc=0.0... | [
"0.7110258",
"0.6899497",
"0.6645041",
"0.66412514",
"0.66396636",
"0.65876544",
"0.656348",
"0.65522355",
"0.65375656",
"0.6533283",
"0.64711654",
"0.6444276",
"0.6400903",
"0.63530403",
"0.6331092",
"0.6331092",
"0.6308138",
"0.6225471",
"0.6215995",
"0.6215995",
"0.6215995... | 0.6749555 | 3 |
Get all network devices for this region. | def NMoC(YKHO, QpfX, M5Bl, KUnM):
HAZE = D1aL.netdevices_get_by_region(QpfX, M5Bl, KUnM)
return (S3sg.to_primitive(HAZE), 200, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_all_units():\n fGFq = []\n if eVVj is None:\n import netifaces\n kdXA = netifaces.gateways().get('default', {})\n VWZy = kdXA.get(netifaces.AF_INET, ())[0][:-1] + '0/24'\n else:\n VWZy = eVVj\n async with AiqX() as cuiw:\n GwNC = BSaD(lGbz, cuiw)\n ... | [
"0.70637935",
"0.70637935",
"0.70436645",
"0.70395154",
"0.6983511",
"0.6799626",
"0.67813176",
"0.6545613",
"0.65258086",
"0.6512126",
"0.64987904",
"0.6498579",
"0.64944524",
"0.6494098",
"0.6494098",
"0.6494098",
"0.6494098",
"0.6372017",
"0.63600343",
"0.6333063",
"0.6325... | 0.6117905 | 32 |
Turn a column of a dataframe to a list | def HfTe(iVRZ):
iVRZ = iVRZ.tolist()
EWwv = ''
for YRbF in range(len(iVRZ)):
kaNW = iVRZ[YRbF]
try:
EWwv = EWwv + kaNW + ' '
except:
pass
JN9H = EWwv.split()
return JN9H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B0qV(jQ3Z, fvDH='Question and Answer'):\n l5Ny = jQ3Z[fvDH].values.tolist()\n return l5Ny",
"def pfsR(jQ3Z: pandas.DataFrame) -> list:\n return qQXR.loads(jQ3Z.to_json(orient='records'))",
"def TSF4(jQ3Z):\n return jQ3Z.columns.values.tolist()",
"def eK7y(jQ3Z: pandas.DataFrame, rdlD=-1) -> l... | [
"0.7913185",
"0.7860143",
"0.75342023",
"0.7515385",
"0.72171956",
"0.70776105",
"0.6996278",
"0.68677944",
"0.682513",
"0.6784916",
"0.6738049",
"0.66197",
"0.6535956",
"0.6498092",
"0.64457047",
"0.6424981",
"0.6303053",
"0.6254872",
"0.6238206",
"0.6238206",
"0.6222104",
... | 0.76806366 | 2 |
Remove stop words from a list | def g8pp(__n6):
for exwG in range(len(__n6)):
try:
rjJn = __n6.iloc[exwG]['Title of Post']
nmdc = __n6.iloc[exwG]['Post Description']
MTBm = dFss(rjJn)
ONF6 = dFss(nmdc)
uEPl = []
pZSz = []
for GIN8 in ONF6:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8pp(a1Ws, s2mk):\n return [a1PO for a1PO in s2mk if len(a1PO) > 2 and (not a1PO in a1Ws)]",
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in RhrR:\n g68O.append(GIN8)\n return g68O",
"def xAlq(OafS):\n bTfA = [yzQ0 for yzQ0 in OafS if not yzQ0 in jMRN]\n ... | [
"0.86323434",
"0.859134",
"0.8583607",
"0.8509769",
"0.8430332",
"0.83935827",
"0.8340073",
"0.82639337",
"0.82298374",
"0.8201932",
"0.81800085",
"0.81800085",
"0.81800085",
"0.81800085",
"0.8174687",
"0.8173034",
"0.8165588",
"0.81278485",
"0.8122506",
"0.8101775",
"0.80927... | 0.70677227 | 85 |
Tests if the user has one of the required_privileges to view the requested component. | def daP4(CBIr, *RaAu):
for IuXB in RaAu:
if CBIr.has_property(IuXB):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTee(YKHO, CBIr, XeOP, *qIxc):\n if CBIr.is_anonymous or CBIr.is_client:\n return False\n if CBIr.is_administrator:\n return True\n if CBIr.is_manager:\n return False\n if CBIr.is_advisor:\n return True\n return YKHO.admin_permission(CBIr, XeOP, *qIxc)",
"def rVDy(E... | [
"0.677943",
"0.676476",
"0.6701923",
"0.6583988",
"0.6502213",
"0.6458945",
"0.64465076",
"0.64342135",
"0.6399644",
"0.63561565",
"0.6345719",
"0.6342242",
"0.63280624",
"0.63173866",
"0.629907",
"0.62907666",
"0.62755305",
"0.6272019",
"0.6266269",
"0.6259914",
"0.6239875",... | 0.6589128 | 3 |
Converts a string to camelCase. | def iHWN(nrbE):
if nrbE.find(' ') > -1:
V22M = nrbE.split(' ')
elif nrbE.find('_') > -1:
V22M = nrbE.split('_')
else:
return nrbE.lower()
yzlD = V22M[0].lower()
flZV = ''.join((yzQ0.title() for yzQ0 in V22M[1:]))
return '%s%s' % (yzlD, flZV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCQi(vIwR: str):\n return ''.join((dMQI.title() for dMQI in vIwR.split('_')))",
"def fH8d(vIwR: str):\n return ''.join((GIN8.title() if or8S > 0 else GIN8 for or8S, GIN8 in enumerate(vIwR.split('_'))))",
"def I2jr(KCHu):\n V22M = ZbWC.split('[^a-zA-Z0-9]+', KCHu)\n return ''.join((yzQ0.lower() ... | [
"0.80392295",
"0.8031913",
"0.79394627",
"0.7901044",
"0.7833852",
"0.78256905",
"0.77288073",
"0.7708457",
"0.7674313",
"0.7616286",
"0.75567776",
"0.7530756",
"0.75295156",
"0.74956876",
"0.7494626",
"0.7472603",
"0.7465178",
"0.7458354",
"0.7424288",
"0.73764414",
"0.73708... | 0.7677759 | 8 |
Gets the Collection Id of the image. | def bOgX(YKHO):
return YKHO.metadata['collectionId'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EZ2Z(YKHO) -> str:\n return qe4Y.get(YKHO, 'collection_id')",
"def AptV(YKHO):\n return YKHO.__get_multi_images_ids(1)",
"def r8m5(YKHO):\n return YKHO._image_id",
"def mlLR(YKHO):\n return '%s:collection' % YKHO._model._name",
"def r8m5(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO,... | [
"0.8341236",
"0.72648305",
"0.7071441",
"0.6999181",
"0.66345394",
"0.66345394",
"0.65594953",
"0.6440482",
"0.64248866",
"0.6415687",
"0.64123917",
"0.62969553",
"0.62969553",
"0.6283656",
"0.6283656",
"0.6266854",
"0.6237935",
"0.6112573",
"0.6072695",
"0.6019608",
"0.59818... | 0.79555047 | 1 |
Initializer for the OrderItem class. | def FIMM(YKHO, sMtK, LNo8=None, ht7m=None, zJ7I=None):
YKHO.eod = sMtK
YKHO.image = LNo8
YKHO.metadata = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zJ7I):\n YKHO.order_items = []\n YKHO.order_id = zJ7I",
"def FIMM(YKHO, hX9X: list):\n YKHO.order_items = hX9X\n YKHO.destination = None",
"def FIMM(YKHO, o61b, y7DO, cTRz, XSoh):\n YKHO.type = 'ORDER'\n YKHO.symbol = o61b\n YKHO.order_type = y7DO\n YKHO.quantity = cTRz\n... | [
"0.76594025",
"0.7427641",
"0.732067",
"0.7254301",
"0.7160641",
"0.700218",
"0.69533116",
"0.6896037",
"0.6828501",
"0.6770729",
"0.6741956",
"0.6710476",
"0.6707126",
"0.66969275",
"0.6675865",
"0.6666613",
"0.6634283",
"0.66086656",
"0.6602787",
"0.65787166",
"0.6560563",
... | 0.61871004 | 37 |
Gets the Image related to the Order Item. | def cMYb(YKHO):
return YKHO.image | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSio(YKHO, ht7m):\n for ZfUD in YKHO.order_items:\n if ZfUD.get_itemId() == ht7m:\n return ZfUD.get_image()",
"def cMYb(YKHO, Wgp8):\n for ZfUD in YKHO.order_items:\n VXjJ = ZfUD.get_image()\n if VXjJ is None:\n return None\n if VXjJ.get_recordId() == W... | [
"0.80854374",
"0.73633593",
"0.7132757",
"0.6805643",
"0.6712752",
"0.66810024",
"0.65586793",
"0.65447974",
"0.6536117",
"0.6526761",
"0.64795303",
"0.63217163",
"0.62937945",
"0.6279285",
"0.61947167",
"0.61695516",
"0.61475",
"0.60869825",
"0.60743755",
"0.6012644",
"0.595... | 0.65521765 | 9 |
Gets the Record Id of the Image contained in the OrderItem. | def CsEr(YKHO):
return YKHO.metadata['recordId'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cMYb(YKHO, Wgp8):\n for ZfUD in YKHO.order_items:\n VXjJ = ZfUD.get_image()\n if VXjJ is None:\n return None\n if VXjJ.get_recordId() == Wgp8:\n return VXjJ",
"def QVJv(YKHO, Wgp8):\n for ZfUD in YKHO.order_items:\n VXjJ = ZfUD.get_image()\n if V... | [
"0.7548376",
"0.7429157",
"0.7235652",
"0.7019394",
"0.6867325",
"0.68467665",
"0.67605275",
"0.67605275",
"0.66752636",
"0.6465909",
"0.6443632",
"0.6443632",
"0.64379287",
"0.64379287",
"0.6380701",
"0.6219178",
"0.6152122",
"0.61322004",
"0.6080134",
"0.6050484",
"0.604176... | 0.65461445 | 10 |
Gets the Order Item Id of the OrderItem. | def Wr6o(YKHO):
return YKHO.metadata['itemId'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dN50(YKHO):\n return YKHO._order_item_id",
"def ht7m(YKHO):\n return YKHO._item_id",
"def wfbg(YKHO, ZfUD):\n id = YKHO.item_itemId.get(ZfUD)\n if id:\n return id\n id = YKHO.nextItemId\n YKHO.nextItemId += 1\n YKHO.item_itemId[ZfUD] = id\n YKHO.itemId_item[id] = ZfUD\n re... | [
"0.87890446",
"0.7759012",
"0.73298526",
"0.7221307",
"0.7137265",
"0.69507325",
"0.6940846",
"0.69297034",
"0.6926659",
"0.6901709",
"0.687732",
"0.67830044",
"0.67114824",
"0.6453359",
"0.64288414",
"0.6312031",
"0.6220112",
"0.61873883",
"0.6170198",
"0.6103751",
"0.607865... | 0.6841653 | 11 |
Gets the Order Id of the OrderItem. | def Fxh7(YKHO):
return YKHO.metadata['orderId'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dN50(YKHO):\n return YKHO._order_item_id",
"def zJ7I(YKHO) -> str:\n return qe4Y.get(YKHO, 'order_id')",
"def Fxh7(YKHO):\n return YKHO.order_id",
"def vcCJ(YKHO, cuiw, dN50):\n Wxnj = YKHO.getWorkflowByOrderItemId(cuiw, dN50)\n return YKHO.workflows.getId(Wxnj)",
"def m8Fj(YKHO, TY0P):\... | [
"0.8806455",
"0.78389424",
"0.77038",
"0.6982702",
"0.6946828",
"0.6941641",
"0.68327236",
"0.66065",
"0.6557132",
"0.64556277",
"0.63304263",
"0.63278496",
"0.6311979",
"0.63009757",
"0.61975074",
"0.61184084",
"0.6103081",
"0.607089",
"0.60097975",
"0.5931507",
"0.5889583",... | 0.70974106 | 3 |
Gets the number of Order Items for the order. | def UHFx(YKHO):
return len(YKHO.order_items) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XK3U(YKHO):\n UHFx = 0\n for z1Rg in YKHO.order_lst:\n UHFx += z1Rg.count()\n return UHFx",
"def UHFx(YKHO):\n return len(YKHO.order_lst)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def J5Qe(YKHO):\n _hkX = YKHO.app.get('/orders')\n YKHO.assertEqual(_hkX.status_code, jGRS.HT... | [
"0.8346433",
"0.79781455",
"0.76167053",
"0.753026",
"0.73925185",
"0.73681617",
"0.7281924",
"0.7260821",
"0.7260821",
"0.72342044",
"0.7104526",
"0.7045387",
"0.70258796",
"0.69970834",
"0.6945575",
"0.6915006",
"0.69072825",
"0.6829324",
"0.68170524",
"0.6736703",
"0.67130... | 0.8536371 | 0 |
Gets the Order Id of the order. | def Fxh7(YKHO):
return YKHO.order_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJ7I(YKHO) -> str:\n return qe4Y.get(YKHO, 'order_id')",
"def Fxh7(YKHO):\n return YKHO.metadata['orderId']",
"def dN50(YKHO):\n return YKHO._order_item_id",
"def XBXw(zJ7I):\n return lfHN.orders.get_order_guid_by_order_id(zJ7I)",
"def Ijcl(YKHO):\n return YKHO.__order_number",
"def uu... | [
"0.8710611",
"0.7937176",
"0.75049937",
"0.7248133",
"0.720956",
"0.69093657",
"0.68471295",
"0.6718101",
"0.6586725",
"0.65214396",
"0.6451534",
"0.64397424",
"0.6430433",
"0.64009523",
"0.6382825",
"0.63303614",
"0.63206",
"0.62308764",
"0.62051505",
"0.62051505",
"0.620515... | 0.8556586 | 1 |
Gets a particular Order with a given Order Id. | def gG9h(YKHO, zJ7I):
for z1Rg in YKHO.order_lst:
if z1Rg.get_orderId() == zJ7I:
return z1Rg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gG9h(YKHO, zJ7I):\n QePW = Cdxy(zJ7I)\n geh0 = YKHO.client.execute(QePW)\n return geh0",
"def gG9h(YKHO, P69d):\n return YKHO.get_orders(orderid=P69d)",
"def hB3M(zJ7I):\n \"\"\"Method to get order\"\"\"\n QePW = Cdxy(zJ7I)\n geh0 = x0hE.execute(QePW)\n return geh0.result.__dict__['... | [
"0.8376587",
"0.8183502",
"0.8012559",
"0.78738725",
"0.78394556",
"0.7638045",
"0.74547035",
"0.7320312",
"0.7300171",
"0.7257783",
"0.72426236",
"0.71875983",
"0.7185175",
"0.7064301",
"0.70390755",
"0.703618",
"0.6993463",
"0.697223",
"0.6950605",
"0.69504607",
"0.6939309"... | 0.81800294 | 2 |
takes a pile object as input and returns True/False if the pile can be placed on the pile | def vMfS(YKHO, fwgj):
if fwgj.get_length() == 1:
dxhl = fwgj.get_bottommost_card()
if YKHO.get_length() == 0:
return dxhl.get_rank_value() == 1
else:
return YKHO.get_topmost_card().get_suit() == dxhl.get_suit() and YKHO.get_topmost_card().get_rank_value() + 1 == dxhl.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H6vl(YKHO):\n raise RuntimeError('Not implemented')\n return False",
"def nxnH(iJCq: GriddedPerm, dawz: 'Tiling') -> bool:\n return dawz.add_requirement(iJCq.patt, iJCq.pos).is_empty()",
"def FYXB(YKHO, ZfUD):\n try:\n oeNL = q955(*ZfUD)\n return oeNL.x >= YKHO.origin.x and oeNL.y... | [
"0.6202819",
"0.6187063",
"0.61520624",
"0.60824275",
"0.5946219",
"0.59342146",
"0.59274",
"0.5873695",
"0.5853587",
"0.5803937",
"0.5779417",
"0.5776014",
"0.5744567",
"0.5727454",
"0.57186925",
"0.57150114",
"0.56969875",
"0.5693772",
"0.5683235",
"0.568186",
"0.56593263",... | 0.6485839 | 0 |
takes a pile object as input and returns True/False if it can be placed on this pile | def vMfS(YKHO, fwgj):
dxhl = fwgj.get_bottommost_card()
if YKHO.get_length() == 0:
return dxhl.get_rank_value() == 13
else:
return YKHO.get_topmost_card().get_color() != dxhl.get_color() and YKHO.get_topmost_card().get_rank_value() - 1 == dxhl.get_rank_value() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vMfS(YKHO, fwgj):\n if fwgj.get_length() == 1:\n dxhl = fwgj.get_bottommost_card()\n if YKHO.get_length() == 0:\n return dxhl.get_rank_value() == 1\n else:\n return YKHO.get_topmost_card().get_suit() == dxhl.get_suit() and YKHO.get_topmost_card().get_rank_value() +... | [
"0.6341556",
"0.6230321",
"0.62277555",
"0.60474247",
"0.60162956",
"0.58754706",
"0.58564156",
"0.58322114",
"0.58012825",
"0.5791161",
"0.5722445",
"0.5721765",
"0.57155216",
"0.5714138",
"0.569503",
"0.56773084",
"0.56750566",
"0.56311923",
"0.56178105",
"0.5596447",
"0.55... | 0.5719372 | 12 |
Instantiates a new Randomizer test. | def FIMM(YKHO, MpXb=''):
DuvM.TestCase.__init__(YKHO, MpXb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _4Nn=t0Nv(), Ba0i=False):\n YKHO._randomizer = _4Nn\n YKHO._number = YKHO._randomizer.getNumber()\n YKHO._useAlternative = Ba0i",
"def FIMM(YKHO, zhTK, yokr=0):\n YKHO._user_ctor = zhTK\n YKHO._seed = yokr\n YKHO.reset_sampler()",
"def FCbF(YKHO) -> None:\n YKHO.random = oyI... | [
"0.66976887",
"0.63714814",
"0.6344554",
"0.628294",
"0.62630504",
"0.6215402",
"0.6176607",
"0.6060905",
"0.6051847",
"0.6041937",
"0.5968584",
"0.5921714",
"0.5900688",
"0.58927",
"0.5885444",
"0.58638424",
"0.585527",
"0.5823883",
"0.5793972",
"0.5788863",
"0.5780561",
"... | 0.0 | -1 |
Given a text embedding and mel_target, generate until we have enough. Note this is for reference only. | def ap82(YKHO, l5Ny, Z_t7):
H9qB = ht2j.zeros(1, 80, 1).to(YKHO.device)
for YRbF in range(Z_t7.shape[2]):
LVAh, Z_Wd, jzdc = YKHO.generate(l5Ny, H9qB)
H9qB = ht2j.cat((H9qB, LVAh[:, :, -1].view(1, 80, 1)), dim=-1)
N77f = vuvg.l1_loss(LVAh, Z_t7)
return (N77f, LVAh, jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vUDb(C3ST, ZxnZ, cYMm, EoIn, G1Hx=5, KLk8=30, yKcO='START', Crtz=True):\n with ht2j.no_grad():\n begE = ZxnZ.device\n N93T = U78l.Softmax(dim=1)\n if Crtz:\n ZxnZ = ZxnZ.view(1, -1)\n pKvt = [ht2j.LongTensor([cYMm[yKcO]]).to(begE)]\n pKvt = U78l.utils.rnn.pack_s... | [
"0.5941551",
"0.57749313",
"0.572244",
"0.5606113",
"0.5592264",
"0.55832815",
"0.5542636",
"0.5512056",
"0.5479165",
"0.5469707",
"0.5465859",
"0.5463732",
"0.54558533",
"0.54458934",
"0.54245216",
"0.5412163",
"0.54068685",
"0.53842026",
"0.53804755",
"0.5337354",
"0.527893... | 0.7151947 | 0 |
r"""Quote string according to | def FQK6(KCHu):
if KCHu is None:
return None
QJFU = str(KCHu).replace('\\', '\\\\').replace("'", "\\'")
return "'{}'".format(QJFU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLmC(l5Ny):\n return \"'%s'\" % l5Ny.replace(\"'\", \"'\\\\''\")",
"def vPob(vIwR):\n return vIwR.replace('\"', \"'\")",
"def HDLy(YKHO, d7pR):\n d7pR = d7pR.replace('\\\\', '\\\\\\\\')\n d7pR = d7pR.replace('\"', '\\\\\"')\n return '\"%s\"' % d7pR",
"def HDLy(Ty9i):\n return '\"' + Ty9... | [
"0.80535495",
"0.7900592",
"0.78692704",
"0.78209245",
"0.7751507",
"0.762904",
"0.7605343",
"0.7557973",
"0.7550649",
"0.7538957",
"0.7525345",
"0.7524699",
"0.7501083",
"0.746809",
"0.744895",
"0.74325407",
"0.74325407",
"0.7400226",
"0.72602093",
"0.7195997",
"0.71789336",... | 0.70544463 | 27 |
Using the special method __eq__ to compare a dotted dict with a normal dict | def QE1F(YKHO):
for QOe9 in YKHO.test_dict_data:
YKHO.assertEqual(Uvq9(QOe9[0]), QOe9[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return dict.__eq__(YKHO, Elif)",
"def hjJW(AjzU: Dict, _sQW: Dict) -> bool:\n if len(_sQW) > len(AjzU):\n CG54 = _sQW\n legC = AjzU\n else:\n CG54 = AjzU\n legC = _sQW\n for H5ew, BWXx in CG54.items():\n if H5ew not in legC.keys():\n ... | [
"0.70567685",
"0.7030499",
"0.69945276",
"0.69496226",
"0.6893899",
"0.68598694",
"0.68520963",
"0.67593527",
"0.67554206",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
"0.67449075",
... | 0.7175389 | 0 |
Test that user can't see dashboard page when logged out. | def LchW(YKHO):
Aofo = YKHO.client.get('/dashboard', follow_redirects=True)
YKHO.assertNotIn(b'Family Ties - Dashboard', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J69Q(YKHO):\n c3Xe = ('/dashboard/', '/accounts/picture/')\n for tTee in c3Xe:\n geh0 = YKHO.client.get(tTee)\n YKHO.assertEqual(geh0.status_code, 302, msg=str(geh0.request))",
"def Isz2(YKHO):\n BfDw.test_not_logged_cannot_access(YKHO, YKHO.url)",
"def J4ca(YKHO):\n BfDw.test_not... | [
"0.77127415",
"0.7410981",
"0.74059564",
"0.74059564",
"0.74059564",
"0.74059564",
"0.7377276",
"0.72838855",
"0.7191166",
"0.7114832",
"0.7099439",
"0.7087196",
"0.7080443",
"0.7062934",
"0.70530087",
"0.70370275",
"0.7027886",
"0.7023831",
"0.70222175",
"0.70222175",
"0.702... | 0.77490085 | 0 |
Testing that the user object 'email' has been constructed properly | def aZwc(YKHO):
YKHO.assertEqual('maryc123@yahoo.com', YKHO.user.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KIov(YKHO):\n pass",
"def Fynw(YKHO):\n CBIr = mv1M()\n YKHO.assertTrue(hasattr(CBIr, 'email'))\n YKHO.assertEqual(CBIr.email, '')",
"def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', s... | [
"0.7803552",
"0.77379304",
"0.7714331",
"0.7556535",
"0.74997526",
"0.74679047",
"0.7436216",
"0.7416348",
"0.74111354",
"0.7369994",
"0.73494637",
"0.7337338",
"0.72906685",
"0.7267479",
"0.72565883",
"0.72532207",
"0.7245863",
"0.7243337",
"0.72333694",
"0.72056276",
"0.720... | 0.8290128 | 0 |
Return ``True`` if the code is this function is being called from an IPython kernel. | def y_5x() -> bool:
try:
from IPython import get_ipython
return get_ipython() is not None
except ImportError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwME():\n return 'get_ipython' in globals()",
"def Au58():\n try:\n MZlh\n return True\n except NameError:\n return False",
"def QE2E():\n try:\n MZlh\n return True\n except NameError:\n return False",
"def vFch(YKHO):\n try:\n MZlh\n ... | [
"0.79321265",
"0.7862566",
"0.777043",
"0.77517426",
"0.7743101",
"0.7703482",
"0.76765686",
"0.7490539",
"0.7485736",
"0.74706435",
"0.7398897",
"0.7368418",
"0.7311856",
"0.7287088",
"0.71761143",
"0.7102788",
"0.70817024",
"0.7075315",
"0.69422483",
"0.6597528",
"0.6555550... | 0.78931624 | 1 |
Initialize a _Node instance. | def FIMM(YKHO, LihS, or8S, _AKB=None, afYC=None):
YKHO._elem = LihS
YKHO._index = or8S
YKHO._parent = _AKB
YKHO._children = afYC if afYC is not None else [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)",
"def FIMM(YKHO):\n YKHO.root = o7DN(None)",
"def FIMM(YKHO):\n YKHO.__root = o7DN()",
"def FIMM(YKHO):\n YKHO.root = YKHO.Node()",
"def FIMM(YKHO):\n YKHO.root = o7DN('')",
"def FIMM(YKHO):\n YKHO.root = o7DN('')",
"def FIMM(YKHO):\n ... | [
"0.78850067",
"0.7797428",
"0.7776527",
"0.7674465",
"0.76540625",
"0.7571528",
"0.7571528",
"0.75055903",
"0.75055903",
"0.75055903",
"0.74776316",
"0.74457496",
"0.74301153",
"0.73774654",
"0.73232526",
"0.72661924",
"0.7256435",
"0.72451985",
"0.7206691",
"0.7194062",
"0.7... | 0.0 | -1 |
Return Position representing the root of the tree. | def tk5Y(YKHO):
return YKHO._make_position(YKHO._root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk5Y(YKHO):\n return YKHO._make_position(YKHO._root)",
"def uGqx(YKHO):\n if YKHO.is_binary_tree:\n return 0\n return -1",
"def hm3W(YKHO):\n return YKHO.process_tree",
"def LIOs(YKHO):\n return YKHO._root",
"def LIOs(YKHO):\n return YKHO.root",
"def tk5Y(YKHO):\n if YKHO.... | [
"0.8176423",
"0.75669944",
"0.7053235",
"0.7034105",
"0.7007992",
"0.69898534",
"0.69779855",
"0.69779855",
"0.6940688",
"0.69380456",
"0.682193",
"0.6804064",
"0.6804064",
"0.6804064",
"0.67927355",
"0.676885",
"0.6723106",
"0.6690636",
"0.66734755",
"0.6660903",
"0.6654477"... | 0.81233585 | 5 |
Instantiate a fake HTTP Request, complete with a database session. This is a functionlevel fixture, so every new request will have a new database session. | def fiHr(ouvA):
return kO5c.DummyRequest(dbsession=ouvA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fiHr(xlyK):\n return kO5c.DummyRequest(dbsession=xlyK)",
"def fiHr(xlyK, NKcE='GET'):\n QePW = kO5c.DummyRequest()\n QePW.method = NKcE\n QePW.dbsession = xlyK\n return QePW",
"def x7NM():\n Tz0H = i48E.create_engine('sqlite://', echo=False)\n zqhD = i48E.orm.sessionmaker(bind=Tz0H)\n ... | [
"0.73897773",
"0.7043923",
"0.7006996",
"0.6651173",
"0.6429848",
"0.6423533",
"0.63124603",
"0.62354213",
"0.61863494",
"0.6134273",
"0.6091861",
"0.60249496",
"0.6009063",
"0.59958273",
"0.5993505",
"0.5985961",
"0.598009",
"0.5968758",
"0.59425914",
"0.59221756",
"0.590924... | 0.74959946 | 2 |
Test that the home view returns no objects in the expenses iterable. | def cr66(fiHr):
from learning_journal.views.default import home_view
Aofo = home_view(fiHr)
assert len(Aofo['entries']) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C5Do(YKHO):\n geh0 = YKHO.client.get(gxEw('infinite:index'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'There are no games present.')\n YKHO.assertQuerysetEqual(geh0.context['games'], [])",
"def ik_4(YKHO):\n YKHO.model.objects.all().delete()\n geh0 = YKHO._get()... | [
"0.7065249",
"0.6918311",
"0.6895581",
"0.6791274",
"0.6755123",
"0.6750124",
"0.6738067",
"0.6681425",
"0.66096",
"0.6573949",
"0.656964",
"0.6565591",
"0.6495336",
"0.6459751",
"0.6459081",
"0.64568466",
"0.6430726",
"0.64072657",
"0.635334",
"0.62979174",
"0.62961143",
"... | 0.71341634 | 0 |
Test that the create_view method returns an empty dict on a get request. | def _9NE(fiHr):
from learning_journal.views.default import create_view
Aofo = create_view(fiHr)
assert Aofo == {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHzj(fiHr):\n from learning_journal.views.default import new_entry\n assert new_entry(fiHr) == {}",
"def NaNP(fiHr):\n from learning_journal.views.default import login_view\n assert login_view(fiHr) == {}",
"def S7qW(YKHO):\n qv1X = YKHO.req('get', '/the/url', data={'action-doit': '3'})\n ... | [
"0.7403495",
"0.72789055",
"0.7004455",
"0.69699925",
"0.6892958",
"0.68705904",
"0.68061334",
"0.6796355",
"0.67233723",
"0.672114",
"0.6715737",
"0.6682679",
"0.6610521",
"0.6604622",
"0.657207",
"0.6552488",
"0.6522793",
"0.65139127",
"0.6503516",
"0.6472757",
"0.64031726"... | 0.8844149 | 0 |
Create an instance of webtests TestApp for testing routes. With the alchemy scaffold we need to add to our test application the setting for a database to be used for the models. We have to then set up the database by starting a database session. Finally we have to create all of the necessary tables that our app normall... | def vY7J():
from webtest import TestApp
from pyramid.config import Configurator
def b8V_(ePNl, **gCuF):
""" This function returns a Pyramid WSGI application."""
GPtr = Configurator(settings=gCuF)
GPtr.include('pyramid_jinja2')
GPtr.include('.models')
GPtr.include('.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n P4t4 = LUif({'TESTING': True, 'DATABASE_NAME': 'AAPI_DB_Test'})\n with P4t4.app_context():\n JawI()\n yield P4t4",
"def P4t4():\n cmRX = '{0}_test'.format(gCuF.SQLALCHEMY_DATABASE_URI)\n NArs = {'DEBUG': False, 'TESTING': True, 'WTF_CSRF_ENABLED': False, 'SQLALCHEMY_DATABASE_U... | [
"0.7921316",
"0.77649575",
"0.77635676",
"0.7674326",
"0.7643252",
"0.76162076",
"0.7584429",
"0.757256",
"0.7570243",
"0.75544906",
"0.7538623",
"0.7538623",
"0.75385076",
"0.75229317",
"0.75209075",
"0.74971277",
"0.7478079",
"0.74633783",
"0.7461909",
"0.74604017",
"0.7456... | 0.7216184 | 57 |
Test the update view redirects on a post request and changes title. | def ywI6(vY7J):
lqvN = {'title': 'Some Title.', 'body': 'Some Body.'}
geh0 = vY7J.post('/journal/2/edit-entry', lqvN, status=302)
qZ9t = geh0.follow()
assert geh0.text[0:3] == '302'
assert qZ9t.html.find_all(href='http://localhost/journal/2')[0].text == lqvN['title'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zV91(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n leAC = 'Random New Title Patched'\n ZmQk = gxEw('user-detail', kwargs={'pk': YKHO.superuser.id})\n YKHO.client.force_authenticate(user=YKHO.superuser)\n geh0 = YKHO.client.patch(bD7m, {'title': leAC}, format='json')\n YKH... | [
"0.7723399",
"0.7444177",
"0.7282646",
"0.72503036",
"0.71905655",
"0.7089848",
"0.7061609",
"0.703184",
"0.69167626",
"0.6870537",
"0.680971",
"0.68068796",
"0.6763964",
"0.6755622",
"0.6694032",
"0.6663651",
"0.65292186",
"0.65274686",
"0.6527144",
"0.6524805",
"0.6524466",... | 0.84657437 | 0 |
Save today mean temperature to database and reset today table. | def KTWR(zn0c, NCls, cQGd):
UKiO = {'table': 'today', 'conditions': ['region_id'], 'condition_data': (zn0c.id,), 'filters': ['hour_{}'.format(WKvO) for WKvO in range(0, 24, 3)]}
iXwA = NCls.select(**UKiO)
if None in iXwA[0]:
return 0.0
BBZj = round(Dz7Y.mean(iXwA[0]), 2)
rg4j = oKfy(list(cQG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWoL(YKHO):\n lO87 = YKHO._current_date.year\n x0eS = YKHO._current_date.month\n YKHO.ensure_temperatures(JRYC.date(lO87, x0eS, 15))\n YKHO.set_temperature_arrays(JRYC.date(lO87, x0eS, 15))",
"def rXOJ(YKHO):\n YKHO.save()",
"def rXOJ(YKHO):\n YKHO.save()",
"def xkzz(YKHO):\n YKHO.up... | [
"0.60187536",
"0.5993358",
"0.5993358",
"0.56885904",
"0.56885904",
"0.56733537",
"0.5628096",
"0.55071306",
"0.5345769",
"0.53326154",
"0.5319162",
"0.5309182",
"0.5303772",
"0.5237228",
"0.52265894",
"0.52029026",
"0.5197194",
"0.5196578",
"0.5189538",
"0.5181746",
"0.51609... | 0.582651 | 3 |
Check if current month is spring (marchaugust). | def NAHl(_c1T=None):
if not _c1T:
_c1T = qcWV.datetime.now().month
if _c1T in [3, 4, 5, 6, 7, 8]:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rpEc(YKHO):\n a1PO = ITS7()\n FAjd = AqQd(a1PO + SED2(YKHO._tz, a1PO))\n return FAjd[0] == YKHO._year and FAjd[1] == YKHO._month",
"def uvu3(yo7_):\n if isinstance(yo7_, qcWV):\n if yo7_.day == 1:\n return True\n return False\n else:\n raise Exception('{} is no... | [
"0.7236549",
"0.6544689",
"0.63760155",
"0.61577076",
"0.6055105",
"0.603532",
"0.5949159",
"0.5937832",
"0.5937832",
"0.59302235",
"0.59184843",
"0.59134305",
"0.59085244",
"0.58865815",
"0.58748585",
"0.5817417",
"0.581496",
"0.57800984",
"0.57604784",
"0.57313764",
"0.5731... | 0.77690476 | 0 |
Check regions, that have last_date set to zero. | def BaDq(NCls):
iKVW = {'table': 'regions', 'conditions': [], 'condition_data': (), 'filters': ['id', 'last_date']}
_wuz = NCls.select(**iKVW)
ojSA = [WKvO for WKvO in _wuz if WKvO[1] == 0]
if ojSA:
return [WKvO[0] for WKvO in ojSA]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sbx9(YKHO) -> bool:\n return YKHO._algorithm.is_last_zero(YKHO._stat)",
"def icAB(YKHO, e5kH: 'CardMeta') -> bool:\n if len(e5kH.past_quality) < 1:\n return False\n return e5kH.past_quality[-1] == 0",
"def nMv5(XMfK, _nxd=48, eQB2=5, ECls=8):\n Byl2 = XMfK.meter_id.iloc[0]\n Witr = XM... | [
"0.556572",
"0.55298465",
"0.55213886",
"0.533535",
"0.531173",
"0.52079725",
"0.51966786",
"0.514397",
"0.5142353",
"0.51168656",
"0.50809765",
"0.50446415",
"0.5017214",
"0.49615896",
"0.49445885",
"0.4944367",
"0.4918328",
"0.49082747",
"0.4901023",
"0.4891084",
"0.4885123... | 0.6996689 | 0 |
Generate `Package` object for a `url` string | def T_2m(bD7m):
_hkX = G4JS.get(bD7m)
if _hkX.status_code == 200:
return _hkX.json()
raise Exception(f'Failed to fetch: {bD7m}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quBT(hxGQ, eJy1, DuqQ):\n D_BU = 'http://rubygems.org/downloads/{0}-{1}.gem'\n d8he = 'https://pypi.python.org/packages/source/{0}/{1}/{2}-{3}.tar.gz'\n Pjv_ = 'https://pypi.python.org/packages/source/{0}/{1}/{2}-{3}.zip'\n if DuqQ == 0:\n return D_BU.format(hxGQ, eJy1)\n elif DuqQ == 1:\... | [
"0.6365717",
"0.60857993",
"0.60832125",
"0.6081528",
"0.60082346",
"0.59590834",
"0.5824557",
"0.57134306",
"0.5693194",
"0.5676577",
"0.55692726",
"0.5564248",
"0.5531907",
"0.55270225",
"0.5525655",
"0.55057466",
"0.5503707",
"0.54816616",
"0.54611915",
"0.54479426",
"0.54... | 0.0 | -1 |
Initialize Bessel basis layer. | def FIMM(YKHO, JuVA, tAX0, E3Mb=6) -> None:
super(Ec6d, YKHO).__init__()
YKHO.cutoff = tAX0
YKHO.envelope = ltXn(E3Mb)
YKHO.freq = ht2j.nn.Parameter(ht2j.Tensor(JuVA))
YKHO.reset_parameters() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePAC(YKHO, dE5V):\n D4ww = YKHO.getnumcon()\n if YKHO.getnumcon() > 0 and dE5V is not None and (len(dE5V) != YKHO.getnumcon()):\n raise ValueError('Array argument basis is not long enough: Is %d, expected %d' % (len(dE5V), YKHO.getnumcon()))\n if isinstance(dE5V, XTiz.ndarray) and (not dE5V.fla... | [
"0.674475",
"0.65515566",
"0.5975523",
"0.5974542",
"0.5944401",
"0.59138846",
"0.58952105",
"0.58952105",
"0.58952105",
"0.585648",
"0.58523905",
"0.5825225",
"0.58150333",
"0.58132696",
"0.58031493",
"0.57976377",
"0.578624",
"0.57804686",
"0.5753966",
"0.5695529",
"0.56482... | 0.66127914 | 1 |
Returns central account number for a given account from accounts config. | def _L0c(ZrNc: str):
for GPtr in L8Py:
if ZrNc in GPtr['streamers']:
return GPtr['central']
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E(YKHO):\n return YKHO.config.account_id",
"def ZrNc(YKHO, MBgB):\n qxJS = YKHO.acctManager\n if len(qxJS.accounts) <= MBgB:\n raise Exception('requested unknown account number %i' % MBgB)\n return qxJS.account(MBgB)",
"def Z31E(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'a... | [
"0.6999533",
"0.695133",
"0.66567826",
"0.6569194",
"0.65294087",
"0.6383802",
"0.6383657",
"0.6380516",
"0.6380516",
"0.6380516",
"0.6380516",
"0.6380516",
"0.6380516",
"0.6380516",
"0.6380516",
"0.63515407",
"0.63515407",
"0.63515407",
"0.63515407",
"0.63515407",
"0.6351540... | 0.6600531 | 3 |
Strips `.git` from the given URL of a git repository. | def MLXy(bD7m: str) -> str:
"""Strip trailing .git"""
return bD7m[:-len('.git')] if bD7m.endswith('.git') else bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYAr(bD7m):\n return bD7m.replace('.git', '')",
"def gmoQ(bD7m):\n if not bD7m.startswith(('git+', 'hg+')):\n return bD7m\n return bD7m[4:]",
"def vMzB(F3jJ, jSYO, vGKz):\n K04J = F3jJ.split('/')\n if len(K04J) != 2:\n YIoF('repository must be formatted as organization/project'... | [
"0.82751054",
"0.6612633",
"0.6415065",
"0.64105713",
"0.6285297",
"0.6237822",
"0.6158248",
"0.6067515",
"0.60550964",
"0.5934063",
"0.59173226",
"0.5832029",
"0.5669091",
"0.56549984",
"0.56549615",
"0.5622156",
"0.5611518",
"0.56023824",
"0.5559296",
"0.5550014",
"0.553892... | 0.8182727 | 1 |
Set the value of the AWSAccessKeyId input for this Choreo. ((required, string) The Access Key ID provided by Amazon Web Services.) | def I8O8(YKHO, BWXx):
super(pPpf, YKHO)._set_input('AWSAccessKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8O8(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def ZluZ(TiI2, xL6j, CGqc=None):\n if TiI2 is None:\n ... | [
"0.72723484",
"0.710617",
"0.54324937",
"0.47658166",
"0.46092838",
"0.45972604",
"0.45739532",
"0.4472829",
"0.4248372",
"0.4191702",
"0.41222933",
"0.41142592",
"0.41121876",
"0.41105497",
"0.40660536",
"0.39658597",
"0.3951813",
"0.39157018",
"0.38724113",
"0.38406",
"0.38... | 0.67074126 | 2 |
Set the value of the AWSMarketplaceId input for this Choreo. ((required, string) The Marketplace ID provided by Amazon Web Services.) | def dMWo(YKHO, BWXx):
super(pPpf, YKHO)._set_input('AWSMarketplaceId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZe0(YKHO, aZe0):\n YKHO._marketplace_id = aZe0",
"def saFh(SsWt):\n bbcv = S8SU.get('Place', SsWt)\n if bbcv is None:\n eTsH(404)\n TLbt = QePW.get_json()\n if not QePW.json:\n return (pz3A('Not a JSON'), 400)\n PrmE = ['id', 'user_id', 'city_id', 'created_at', 'updated_at']\... | [
"0.72879887",
"0.58116764",
"0.5750025",
"0.55713093",
"0.547708",
"0.53217125",
"0.5183841",
"0.5151255",
"0.5129524",
"0.4927995",
"0.49077547",
"0.48618492",
"0.4845483",
"0.47783786",
"0.4730123",
"0.47192258",
"0.46833223",
"0.46547133",
"0.46401277",
"0.45902717",
"0.45... | 0.7679715 | 0 |
Set the value of the AWSMerchantId input for this Choreo. ((required, string) The Merchant ID provided by Amazon Web Services.) | def MEbH(YKHO, BWXx):
super(pPpf, YKHO)._set_input('AWSMerchantId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu",
"def kPlE(YKHO, vkFH):\n YKHO.merchant_transaction_id = vkFH",
"def aCFu(YKHO, aCFu):\n if aCFu is None:\n raise ValueError('Invalid value for `merchant_id`, must not be `None`')\n YKHO._merchant_id = aCFu",
"def aXtn(YKHO, aXtn):\n YKH... | [
"0.6719796",
"0.6547163",
"0.62715065",
"0.56438535",
"0.5553008",
"0.5232778",
"0.5110247",
"0.5004952",
"0.4971088",
"0.4896",
"0.48900896",
"0.48170877",
"0.48170877",
"0.47717518",
"0.47717518",
"0.47717518",
"0.47222784",
"0.46926683",
"0.46465647",
"0.46089354",
"0.4608... | 0.70061433 | 0 |
Set the value of the AWSSecretKeyId input for this Choreo. ((required, string) The Secret Key ID provided by Amazon Web Services.) | def uGYF(YKHO, BWXx):
super(pPpf, YKHO)._set_input('AWSSecretKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGYF(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def xOeT(YKHO, xOeT):\n YKHO._vpc_id = xOeT",
"def I8O8(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8... | [
"0.7063978",
"0.70151764",
"0.5468902",
"0.5332704",
"0.51895",
"0.48366946",
"0.48366946",
"0.48366946",
"0.48366946",
"0.48366946",
"0.48366946",
"0.47255194",
"0.46391213",
"0.46391213",
"0.46391213",
"0.46391213",
"0.46391213",
"0.46391213",
"0.46391213",
"0.46391213",
"0... | 0.64663893 | 2 |
Set the value of the CreatedAfter input for this Choreo. ((optional, date) A date used for selecting orders created after (or at) a specified time, in ISO 8601 date format (i.e. 20120101). Defaults to today's date if not provided.) | def TNdW(YKHO, BWXx):
super(pPpf, YKHO)._set_input('CreatedAfter', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UGo4(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('LastUpdatedAfter', BWXx)",
"def rHLX(YKHO, rHLX):\n YKHO._auto_expire_after = rHLX",
"def PZaC(YKHO, _c1T: datetime):\n return YKHO.created_search(_c1T, search_type='after')",
"def _EYN(YKHO, _EYN):\n if _EYN is None:\n raise ValueError... | [
"0.53310245",
"0.499854",
"0.49263355",
"0.4918126",
"0.48875487",
"0.48875487",
"0.48875487",
"0.48875487",
"0.48875487",
"0.48875487",
"0.482363",
"0.4775686",
"0.47677907",
"0.47677907",
"0.47677907",
"0.47677907",
"0.47677907",
"0.47677907",
"0.47677907",
"0.47677907",
"0... | 0.6866181 | 0 |
Set the value of the MWSAuthToken input for this Choreo. ((optional, string) The Amazon MWS authorization token for the given seller and developer.) | def cahg(YKHO, BWXx):
super(pPpf, YKHO)._set_input('MWSAuthToken', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDCx(YKHO, eOtH):\n YKHO.token = eOtH\n YKHO._token_header = 'Bearer ' + eOtH['access_token']",
"def _6P0(YKHO, eOtH):\n YKHO._data['maptoken'] = eOtH",
"def KSZx(YKHO, eOtH):\n YKHO.__current_request_mock.headers['Authorization'] = eOtH",
"def wKqC(YKHO, DLqY, NT__):\n YKHO.consumer_token... | [
"0.576967",
"0.56646496",
"0.54909223",
"0.53241736",
"0.499911",
"0.49847585",
"0.49391955",
"0.48916435",
"0.485251",
"0.47882146",
"0.47711712",
"0.47595584",
"0.47500035",
"0.46695724",
"0.4666555",
"0.46046934",
"0.46013397",
"0.46013397",
"0.45143178",
"0.4475756",
"0.4... | 0.57973063 | 0 |
Set the value of the OrderStatus input for this Choreo. ((optional, string) One or more OrderStatus values separated by commas. This options selects only orders with a certain status (e.g. Pending, Unshipped, PartiallyShipped, Shipped, Canceled, Unfulfillable, etc).) | def hoHD(YKHO, BWXx):
super(pPpf, YKHO)._set_input('OrderStatus', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KmsU(YKHO, jGRS, P69d=0, xDjg=0):\n if int(jGRS) not in ul4z.REV_ORDER_STATUS:\n h9sr = p008 + 'the type of status is wrong '\n return (drOU, h9sr)\n if not ul4z.check_envtype_cn(xDjg):\n h9sr = p008 + 'the type of environment param is wrong '\n return (drOU, h9sr)\n m7Ay =... | [
"0.68667966",
"0.59143144",
"0.58812493",
"0.5829258",
"0.57479376",
"0.5743604",
"0.5699317",
"0.56922853",
"0.56759113",
"0.56418455",
"0.5613556",
"0.5605197",
"0.55898786",
"0.55781007",
"0.5570754",
"0.55453914",
"0.5509893",
"0.5509893",
"0.5509893",
"0.5507921",
"0.549... | 0.6059685 | 1 |
Retrieve the value for the "Response" output from this Choreo execution. (Stores the response from Amazon.) | def _O3m(YKHO):
return YKHO._output.get('Response', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def geh0(YKHO):\n return YKHO._response",
"def gje0(YKHO):\n return YKHO._response_variable",
"def T_2m(YKHO):\n Aofo = YKHO.get_response_impl()\n if YKHO.log_dest is not None:\n WOls, geh0 = Aofo\n if WOls:\n geh0 = '? ' + geh0\n else:\n geh0 = '= ' + geh... | [
"0.6562457",
"0.6433181",
"0.6348591",
"0.6296991",
"0.6100417",
"0.60615295",
"0.5932142",
"0.5932142",
"0.5838001",
"0.58311445",
"0.57775015",
"0.5776427",
"0.5766878",
"0.5676285",
"0.5671042",
"0.56706774",
"0.56524163",
"0.56200385",
"0.555828",
"0.5549343",
"0.55422133... | 0.78551126 | 11 |
Set the time frequency and prediction length parameters. This method must be called before being able to use `predict`, otherwise, default values of 'D' and `20` wil be used. | def WKoC(YKHO, QTg7, XNWE):
YKHO.__freq = QTg7
YKHO.__prediction_length = XNWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKoC(YKHO, QTg7, XNWE):\n YKHO.freq = QTg7\n YKHO.prediction_length = XNWE",
"def RDjF(YKHO, QTg7):\n YKHO.seq.add_param(YKHO.mng_name, 'restFrequency', str(QTg7), 1)",
"def cpSF(YKHO, GPtr: ConfigDict, Ks2C: int, YEkH: int):\n YKHO.configure_steps(GPtr, Ks2C, YEkH)\n YKHO.configure_reportin... | [
"0.77073056",
"0.603881",
"0.5882509",
"0.5843632",
"0.5705226",
"0.555827",
"0.5515937",
"0.54392076",
"0.5419948",
"0.5381452",
"0.5332829",
"0.5328178",
"0.53256583",
"0.5324762",
"0.5317084",
"0.53148115",
"0.5274992",
"0.52570456",
"0.52333546",
"0.5226578",
"0.5214578",... | 0.7637484 | 1 |
Return RDF graph from string in RDF format. | def WC_0(nPrm, format):
pNZh = E5Ed.ConjunctiveGraph()
pNZh.parse(data=nPrm, format=format)
return pNZh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YKHO, KCHu: str) -> Q1Kq:\n J_Es = YKHO.parse(KCHu)\n return LAOT.interpret(J_Es, YKHO.model)",
"def WC_0(TcPZ):\n Wol3 = H2st()\n for eD8c in TcPZ.strip().split('\\n'):\n Wol3._add_rule(eD8c)\n return Wol3",
"def RdfN(IS_q):\n\n def oP9L(U6D_):\n return U6D_ == '%p' or... | [
"0.6251406",
"0.6150217",
"0.5808122",
"0.5771754",
"0.57404643",
"0.57347673",
"0.5717157",
"0.5675358",
"0.56235784",
"0.5577144",
"0.5577132",
"0.5570535",
"0.55701023",
"0.5566668",
"0.5534513",
"0.55311775",
"0.5520769",
"0.5444301",
"0.5435471",
"0.5430321",
"0.5400082"... | 0.76013386 | 0 |
Return JSONLD data from string in RDF format. | def DakK(nPrm, format):
if format != 'nquads':
pNZh = WC_0(nPrm, format)
nPrm = pNZh.serialize(format='nquads')
nPrm = aDy3(nPrm)
return y0lE.from_rdf(nPrm, {'format': 'application/nquads'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxy9(nPrm, format):\n WAlw = y0lE.to_rdf(nPrm, {'format': 'application/nquads'})\n pNZh = E5Ed.ConjunctiveGraph()\n pNZh.parse(data=WAlw, format='nquads')\n return pNZh.serialize(format=format)",
"def Cxy9(nPrm, xAU6=None):\n if xAU6 is None:\n xAU6 = {}\n return cbwk.from_jsonld(nPr... | [
"0.70386475",
"0.6830937",
"0.6499018",
"0.60162544",
"0.5972186",
"0.59118605",
"0.5666557",
"0.54337317",
"0.54079944",
"0.5407438",
"0.53756696",
"0.5372349",
"0.53442997",
"0.5324621",
"0.5295188",
"0.5291021",
"0.52686954",
"0.5262139",
"0.5262139",
"0.5262139",
"0.51815... | 0.66917145 | 2 |
Convert a column name to a Human Readable name. 1) Strip _id from the end 2) Convert _ to spaces 3) Convert CamelCase to Camel Case 4) Upcase first character of Each Word | def zb33(mWFP):
if mWFP.endswith('_id'):
mWFP = mWFP[:-3]
return ' '.join([KCHu.capitalize() for KCHu in ZbWC.findall('([A-Z][a-z0-9]+|[a-z0-9]+|[A-Z0-9]+)', mWFP)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ad29(GClg):\n V22M = GClg.lower().split('_')\n\n def Fd1k(GIN8):\n if GIN8.lower() == 'id':\n return GIN8.upper()\n else:\n return GIN8.capitalize()\n return V22M[0] + ''.join(map(Fd1k, V22M[1:]))",
"def W0tD(k9X4):\n return k9X4[k9X4.find('_') + 1:].replace('_... | [
"0.7947337",
"0.76116705",
"0.746672",
"0.7297153",
"0.7064601",
"0.7010538",
"0.6869773",
"0.68463653",
"0.68183714",
"0.6796953",
"0.67753136",
"0.67194307",
"0.6705654",
"0.6704382",
"0.66594183",
"0.6654219",
"0.66311765",
"0.6627455",
"0.66231257",
"0.6612792",
"0.659154... | 0.6544164 | 27 |
Return a relative version of a path | def PsRC(pmON, yKcO=None):
if yKcO is None:
yKcO = Hy7s.curdir
if not pmON:
raise ValueError('no path specified')
W8qs = khtY.abspath(yKcO).split(khtY.sep)
BTLB = khtY.abspath(pmON).split(khtY.sep)
if W8qs[0].lower() != BTLB[0].lower():
uHSV, wOmD = khtY.splitunc(pmON)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)",
"def sueC(pmON: str):\n return gzes('.', pmON)",
"def vT7J(pmON):\n iQZE = ToLc(pmON)\n return iQZE[-1]",
"def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())",
"def PsRC(pmON):\n return Hy7s.p... | [
"0.7916205",
"0.77834916",
"0.77383643",
"0.765349",
"0.7530642",
"0.7522436",
"0.7415771",
"0.7404095",
"0.729165",
"0.72837",
"0.7279967",
"0.723366",
"0.7217335",
"0.71864855",
"0.7178365",
"0.7105353",
"0.7092798",
"0.70900303",
"0.70873284",
"0.70858437",
"0.70681816",
... | 0.0 | -1 |
Returns a flattened list of the pixel values in the given image | def itWy(LNo8):
return list(LNo8.getdata()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHeM(VXjJ: np.ndarray):\n usx6 = VXjJ.tolist()\n return PWgb(usx6)",
"def f9it(VXjJ):\n JNn7 = VXjJ.shape\n if len(VXjJ.shape) == 3:\n VXjJ = VXjJ.reshape(VXjJ.shape[0] * VXjJ.shape[1], VXjJ.shape[2])\n elif len(VXjJ.shape) == 2:\n VXjJ = VXjJ.reshape(VXjJ.shape[0] * VXjJ.shape[1... | [
"0.74113065",
"0.72225505",
"0.71249163",
"0.6606414",
"0.65086937",
"0.63527626",
"0.6273149",
"0.62535197",
"0.6250372",
"0.6213591",
"0.61786884",
"0.6161101",
"0.61584926",
"0.6114489",
"0.6076528",
"0.60503703",
"0.6006491",
"0.59575236",
"0.5925627",
"0.5920589",
"0.592... | 0.7165411 | 2 |
Initializes a BankAccount object. | def FIMM(YKHO, lb7m: str, pl8n: str, KAc2: float):
super().__init__(lb7m)
YKHO.bank_name = pl8n
YKHO.starting_balance = KAc2
YKHO.current_balance = KAc2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, pl8n, dDSB, wMl7):\n YKHO._bank_name = pl8n\n YKHO._account_num = dDSB\n YKHO._balance = wMl7",
"def FIMM(YKHO, GeWQ: str, pl8n: str, l6Dm: float, rNpb: BudgetManager):\n YKHO.bank_account_no = GeWQ\n YKHO.bank_name = pl8n\n YKHO.bank_balance = l6Dm\n YKHO.transactions = []\n ... | [
"0.7464518",
"0.7125881",
"0.7048491",
"0.6928638",
"0.6702527",
"0.6696143",
"0.66097623",
"0.6511847",
"0.64748144",
"0.6454926",
"0.6446487",
"0.6336224",
"0.6143344",
"0.6119951",
"0.61141336",
"0.6087811",
"0.60279584",
"0.60151327",
"0.5985857",
"0.59757334",
"0.5965742... | 0.70853716 | 2 |
turns lst into an comma separated list (with an and) | def EGiT(yv6U, SQvy='and'):
if not getattr(yv6U, '__iter__', False):
return yv6U
else:
KCHu = ''
cxFb = len(yv6U) - 1
for YRbF, ZfUD in enumerate(yv6U):
if YRbF == 0:
a1PO = '%s'
elif YRbF == cxFb and cxFb > 1:
a1PO = ', ' +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6RL(yv6U):\n return ','.join(yv6U)",
"def qyZ8(aqea):\n return ', '.join(aqea[::2]) + (' and ' + aqea[-1])",
"def G8UU(yv6U):\n if isinstance(yv6U, exCv):\n return yv6U\n else:\n return ', '.join(yv6U)",
"def KP6z(qgK3):\n rIkN = ''\n for ZfUD in qgK3:\n rIkN += ' ... | [
"0.726906",
"0.7209211",
"0.7127806",
"0.69960785",
"0.6922471",
"0.68679875",
"0.68348783",
"0.67072034",
"0.6532871",
"0.649417",
"0.64898336",
"0.6469987",
"0.64242995",
"0.63352627",
"0.63352144",
"0.63254964",
"0.6258312",
"0.6204422",
"0.616759",
"0.61672246",
"0.610879... | 0.6957715 | 4 |
Count the leaf nodes (nodes without children) in a binary tree. | def OmSc(J_Es):
K3B_ = 0
def nDZ0(Q6kx=None):
nonlocal leaves
if Q6kx is None:
return
if Q6kx.left is not None:
nDZ0(Q6kx.left)
if Q6kx.left is None and Q6kx.right is None:
K3B_ += 1
if Q6kx.right is not None:
nDZ0(Q6kx.rig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8Ya(a1PO: Tree) -> int:\n if a1PO.children == []:\n return 1\n else:\n return sum([W8Ya(aUGN) for aUGN in a1PO.children])",
"def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n return sum([WKvO.leaf_count() for WKvO in YKHO.children])",
"def ARYw(Y... | [
"0.8611108",
"0.8577685",
"0.8219669",
"0.82086986",
"0.8101236",
"0.8007054",
"0.7959547",
"0.7828511",
"0.7792144",
"0.7649316",
"0.759935",
"0.74482566",
"0.7375579",
"0.72643894",
"0.7254502",
"0.7242194",
"0.7211113",
"0.71378016",
"0.7077008",
"0.7042455",
"0.7039904",
... | 0.8025071 | 5 |
This function propagates the visible units activation upwards to the hidden units Note that we return also the presigmoid activation of the layer. As it will turn out later, due to how Theano deals with optimizations, this symbolic variable will be needed to write down a more stable computational graph (see details in ... | def qO86(YKHO, XmRU):
FpnS = Kt_s.dot(XmRU, YKHO.hidden_layer.W) + YKHO.hidden_layer.b
return [FpnS, Kt_s.nnet.sigmoid(FpnS)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmxe(WKvO):\n return WKvO",
"def XEql(YKHO, EcVT):\n return oyIN.tanh(EcVT)",
"def sNVR(YKHO, g_JE=['input', 'transformation']):\n G1Hx = YKHO.config.sigmoid_smoothing\n HD80 = YKHO.x @ YKHO.w_xh\n HD80 += YKHO.t @ YKHO.w_th\n HD80 += YKHO.o @ YKHO.w_ho.T\n HD80 += YKHO.z @ YKHO.w_hz.T... | [
"0.7030802",
"0.6913472",
"0.6762452",
"0.6704351",
"0.6700018",
"0.6678635",
"0.6612527",
"0.658353",
"0.6529057",
"0.6527184",
"0.6527184",
"0.65248376",
"0.65188223",
"0.65141374",
"0.65075374",
"0.64993757",
"0.64784855",
"0.6477241",
"0.64526045",
"0.6397212",
"0.6388405... | 0.6348157 | 23 |
Retrieve the content of a semeval element, related comment included. That is to say an original question will return the textual content of the subject and the body whereas a related thread will return the textual content of the subject, the body and the comment. For consistency's sake, if the element is a comment, its... | def vx25(U6D_):
if U6D_.tag == 'OrgQuestion':
return zYsr(U6D_)
if U6D_.tag == 'Thread':
return ' '.join(eNCK([Gq9q(U6D_.find('./RelQuestion'))], [uHM2(aM_I) for aM_I in U6D_.findall('./RelComment')]))
if U6D_.tag == 'RelComment':
return uHM2(U6D_)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7st(U6D_):\n if U6D_.tag == 'OrgQuestion':\n return zYsr(U6D_)\n if U6D_.tag == 'RelQuestion':\n return Gq9q(U6D_)\n if U6D_.tag == 'Thread':\n return Gq9q(U6D_.find('./RelQuestion'))\n if U6D_.tag == 'RelComment':\n return uHM2(U6D_)\n return None",
"def uHM2(L9Gx... | [
"0.85557586",
"0.64067656",
"0.6333302",
"0.5952012",
"0.5858457",
"0.57282865",
"0.5615626",
"0.5573541",
"0.54975265",
"0.5465886",
"0.5389816",
"0.5381278",
"0.537047",
"0.5340623",
"0.5325312",
"0.52776366",
"0.5276527",
"0.52570295",
"0.5255687",
"0.5205689",
"0.51989204... | 0.8135843 | 1 |
Retrieve all the textual contents from the source file. | def HSFg(YKHO):
Aofo = list()
for pmON in ['./OrgQuestion/OrgQSubject', './OrgQuestion/OrgQBody', './OrgQuestion/Thread/RelQuestion/RelQSubject', './OrgQuestion/Thread/RelQuestion/RelQBody', './OrgQuestion/Thread/RelComment/']:
Aofo.extend([U6D_.text if U6D_.text is not None else '' for U6D_ in YKHO.mer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGys(nUeQ):\n with open(nUeQ) as eHNT:\n return eHNT.read()",
"def dOZT(SvhR, gIsw):\n w0w7 = gzes(SvhR, gIsw)\n with open(w0w7, encoding='utf-8') as G3WP:\n return G3WP.read().rstrip()",
"def Rj7V(YKHO):\n with open(YKHO.source_text_path, 'r') as DfdU:\n nPrm = DfdU.read()... | [
"0.70003587",
"0.694869",
"0.6776172",
"0.6767544",
"0.6765933",
"0.6701171",
"0.6618421",
"0.6612728",
"0.66108614",
"0.6607338",
"0.66039366",
"0.6586121",
"0.6566214",
"0.65456206",
"0.6505693",
"0.6485631",
"0.64638436",
"0.64569646",
"0.6450626",
"0.64445966",
"0.6420914... | 0.0 | -1 |
Check is password hash matches actual password | def sNjs(idSV, jTXt):
return z8jj(idSV, jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)",
"def sNjs(jTXt, vhgk):\n cgqW = qzFd(jTXt)\n return FXSn.compare_digest(cgqW, vhgk)",
"def sNjs(YKHO, hash, jTXt):\n try:\n ioxe().verify(hash, jTXt)\n return True\n except:\n return False",
"def nz9i(NTfD: by... | [
"0.8260071",
"0.81936216",
"0.8160942",
"0.8063793",
"0.8010711",
"0.79847986",
"0.7961684",
"0.7936859",
"0.7936859",
"0.7936753",
"0.7880315",
"0.78775156",
"0.78746045",
"0.784547",
"0.784547",
"0.784547",
"0.784547",
"0.78434813",
"0.7838017",
"0.7836477",
"0.782339",
"... | 0.7841804 | 18 |
Checks if user is an admin | def dp9S(YKHO):
if YKHO.is_admin:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')",
"def _Kb1(YKHO, CBIr):\n return CBIr.name in YKHO.admins",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n r... | [
"0.869197",
"0.86895347",
"0.86148757",
"0.8535919",
"0.8519844",
"0.85183984",
"0.8441354",
"0.84074885",
"0.8294952",
"0.8294699",
"0.82883656",
"0.8284562",
"0.82232165",
"0.8207838",
"0.8189341",
"0.8189341",
"0.81872666",
"0.81783974",
"0.81645346",
"0.8138416",
"0.81239... | 0.7770666 | 40 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.7642627",
"0.7417984",
"0.7417116",
"0.72703016",
"0.7245068",
"0.7244174",
"0.72359973",
"0.7221287",
"0.72093123",
"0.70574844",
"0.68535876",
"0.6785699",
"0.6785369",
"0.6770165",
"0.6727407",
"0.67198336",
"0.67198336",
"0.67198336",
"0.67198336",
"0.67198336",
"0.671... | 0.0 | -1 |
Determines if the student is allowed to submit to a project The motivation behind stopping student submissions is to prevent overloading the system, and (in theory) to instill a more thorough manual debugging process. There are three trivial cases when a user can | def DYaT(YKHO, bNKA):
if YKHO.user.is_superuser or bNKA.course.instructor == YKHO:
return 'yes'
if bNKA.locked:
return 'locked'
dEaJ = YKHO.latest_submission(bNKA)
if not dEaJ:
return 'yes'
if dEaJ.num_tbd != 0:
return 'submission'
vHj7 = wyKz.normalize(qcWV.now(d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knZD(lgWp):\n return lgWp.project and lgWp.project.access != QCEZ.ProjectAccess.ANYONE",
"def dB_d(QePW):\n return not gCuF.REQUIRE_LOGIN or QePW.user.is_authenticated()",
"def rW_x(bNKA):\n if _uZf():\n return True\n if EFRR(bNKA):\n return True\n return False",
"def XEBs(YK... | [
"0.6543977",
"0.64155585",
"0.63898766",
"0.6379843",
"0.6355436",
"0.63152146",
"0.63093466",
"0.6307389",
"0.62786525",
"0.6256665",
"0.6170355",
"0.61667645",
"0.6143017",
"0.61172736",
"0.6092657",
"0.6071305",
"0.6064613",
"0.6042243",
"0.6004346",
"0.59895617",
"0.59537... | 0.71871376 | 0 |