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 |
|---|---|---|---|---|---|---|
Get the latest state of the sensor. | def QdZT(YKHO):
YKHO.api.update()
if YKHO.api.result is None:
return
mWFP = '{}{}{}'.format(YKHO.var_name.lower(), YKHO.var_type, YKHO.var_period)
QTBn = YKHO.api.result[mWFP]
if YKHO.var_type == 'Time':
YKHO.var_state = QTBn
elif YKHO.var_type == 'Value':
YKHO.var_state ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZruU(YKHO):\n with YKHO.lock:\n QTBn = YKHO.sensor_state\n return QTBn",
"def QTBn(YKHO):\n return YKHO.get_lock()[YKHO._sensor]",
"def QTBn(YKHO):\n return YKHO._api.getSensorValue(YKHO._id)",
"def QTBn(YKHO):\n return YKHO._sensor.value",
"def QTBn(YKHO):\n return YKHO.collec... | [
"0.79969513",
"0.7963408",
"0.78610283",
"0.76866114",
"0.74917316",
"0.74481046",
"0.73880404",
"0.7233962",
"0.7177857",
"0.70842415",
"0.70663893",
"0.7055828",
"0.700439",
"0.6961523",
"0.69068635",
"0.6904393",
"0.68979603",
"0.68808556",
"0.6849821",
"0.6844764",
"0.676... | 0.0 | -1 |
Creates an identity provider for a user pool. | def abPc(Rtqy=None, ypOi=None, kQr1=None, K81b=None, gxOC=None, EmtN=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVt1(dBuj, NtEF=NtEF, jTXt=jTXt, kU3K=kU3K):\n return wen_(auth=Jpbe, username=NtEF, password=jTXt, endpoint=w2IS, pool=dBuj, convergence_tenant_override=kU3K)",
"def CYnk(Rtqy=None, QW3d=None, fOGv=None, eCPS=None, H1LW=None, o9EF=None, QsQm=None, dVZR=None, AuOw=None, _f75=None, _WZC=None, aY7D=None, bP... | [
"0.678054",
"0.67309135",
"0.6683012",
"0.6680699",
"0.6654969",
"0.6560108",
"0.63703704",
"0.6089103",
"0.60349685",
"0.5863255",
"0.57281834",
"0.57011825",
"0.56387365",
"0.562181",
"0.55417114",
"0.5521655",
"0.54883343",
"0.5450257",
"0.5367118",
"0.5301944",
"0.5301763... | 0.83537436 | 0 |
Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user's password. For the Username parameter, you can use the username or user alias. If a verified phone number exists for the user, the confirmation code is sent to the phone number. Otherwise, if a ver... | def uUN2(EipS=None, E_Q3=None, uFW8=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RYNv(EipS=None, E_Q3=None, uFW8=None, FQl7=None, XDID=None):\n pass",
"def EpQo(EipS=None, E_Q3=None, uFW8=None):\n pass",
"def yH0F(YKHO):\n D3lj = YKHO.request.params['email']\n nyyK = False\n if D3lj:\n ydfA = Y1x4.query(Y1x4.email == D3lj).fetch()\n if ydfA:\n CB... | [
"0.7270839",
"0.6433554",
"0.6431169",
"0.6309223",
"0.6256499",
"0.6249222",
"0.6178266",
"0.6037024",
"0.60284394",
"0.5989711",
"0.5975751",
"0.5973342",
"0.5930085",
"0.5922504",
"0.59200394",
"0.5915887",
"0.59145117",
"0.58944166",
"0.58926404",
"0.5864652",
"0.5851478"... | 0.70180464 | 1 |
Gets the header information for the .csv file to be used as input for the user import job. | def z5Xr(Rtqy=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_hp(YKHO, Jmpp):\n with open(Jmpp, 'r') as apum:\n ixsc = NP2y(apum)\n MOPg = next(ixsc)\n return MOPg",
"def _cyv(YKHO, mWFP='test_file.csv'):\n EY3W = open(mWFP)\n return EY3W.readline()",
"def ql4B(XjpM):\n with open(XjpM) as nUeQ:\n zFiD = nUeQ.readline()\n M... | [
"0.7661386",
"0.7482921",
"0.7446777",
"0.7233714",
"0.71409875",
"0.71399665",
"0.7034317",
"0.6989838",
"0.69890165",
"0.6913435",
"0.68139124",
"0.6778715",
"0.67174256",
"0.67050594",
"0.6676912",
"0.66700596",
"0.6653224",
"0.6631688",
"0.66040295",
"0.65928644",
"0.6527... | 0.7321592 | 3 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7636185",
"0.7047126",
"0.67344195",
"0.63823366",
"0.63067836",
... | 0.772605 | 0 |
Lists the users in the Amazon Cognito user pool. | def s0TM(Rtqy=None, XDA4=None, FLei=None, aMky=None, kEyY=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0TM():\n ESns = UXsa.get_all_users()\n return TvZl('users.html', all_users=ESns)",
"def fSX_():\n DW23 = mv1M.query.all()\n return TvZl('user_listing.html', users=DW23)",
"def s0TM():\n TRFU = []\n ACO7 = {}\n Az5W = {'Action': 'ListUsers'}\n return crPO(TRFU, ACO7, Az5W)",
"def ... | [
"0.768555",
"0.7614004",
"0.7567723",
"0.7545976",
"0.7543339",
"0.75420904",
"0.75350475",
"0.7512604",
"0.75118566",
"0.7501487",
"0.7491105",
"0.74736905",
"0.7473368",
"0.7457515",
"0.74452215",
"0.74421984",
"0.7426458",
"0.74245054",
"0.74245054",
"0.74245054",
"0.74245... | 0.81947243 | 0 |
VGG 16layer model (configuration "D") | def wNbF(jTqs=10):
C3ST = s3br(_Fei['vgg11'], jTqs)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8484293",
"0.8455034",
"0.8304048",
"0.82432175",
"0.81335926",
"0.8081727",
"0.80001795",
"0.79979706",
"0.7952176",
"0.79117894",
"0.79074234",
"0.78867006",
"0.788359",
"0.788359",
"0.788359",
"0.78279686",
"0.78202784",
"0.78138644",
"0.77701163",
"0.7761444",
"0.77414... | 0.75198984 | 38 |
VGG 16layer model (configuration "D") | def ZsU2(jTqs=10):
C3ST = s3br(_Fei['vgg13'], jTqs)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8482543",
"0.8453662",
"0.83023703",
"0.8240353",
"0.81314003",
"0.8079578",
"0.7999773",
"0.7996756",
"0.7950659",
"0.79101694",
"0.79068863",
"0.7885296",
"0.78825146",
"0.78825146",
"0.78825146",
"0.7827089",
"0.7819219",
"0.7813056",
"0.77699214",
"0.7741364",
"0.77048... | 0.7759704 | 19 |
VGG 16layer model (configuration "D") | def a7Lb(jTqs=10):
C3ST = s3br(_Fei['vgg16'], jTqs)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n return s3br(AaDq(_Fei['D']))",
"def XF5m(**B2fa):\n C3ST = s3br(AaDq(_Fei['D'], batch... | [
"0.8482543",
"0.8453662",
"0.83023703",
"0.81314003",
"0.8079578",
"0.7999773",
"0.7996756",
"0.7950659",
"0.79101694",
"0.79068863",
"0.7885296",
"0.78825146",
"0.78825146",
"0.78825146",
"0.7827089",
"0.7819219",
"0.7813056",
"0.77699214",
"0.7759704",
"0.7741364",
"0.77048... | 0.8240353 | 3 |
VGG 16layer model (configuration "D") | def k4RQ(jTqs=10, GPtr=None, FBfN=63):
C3ST = s3br(GPtr, jTqs, FBfN)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8482543",
"0.8453662",
"0.83023703",
"0.8240353",
"0.81314003",
"0.8079578",
"0.7999773",
"0.7996756",
"0.7950659",
"0.79101694",
"0.79068863",
"0.7885296",
"0.78825146",
"0.78825146",
"0.78825146",
"0.7827089",
"0.7819219",
"0.7813056",
"0.77699214",
"0.7759704",
"0.77413... | 0.713323 | 73 |
VGG 16layer model (configuration "D") | def AndN(jTqs=10):
C3ST = s3br(_Fei['vgg19'], jTqs)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8484293",
"0.8455034",
"0.8304048",
"0.82432175",
"0.81335926",
"0.8081727",
"0.80001795",
"0.79979706",
"0.7952176",
"0.79117894",
"0.79074234",
"0.78867006",
"0.788359",
"0.788359",
"0.788359",
"0.78279686",
"0.78202784",
"0.78138644",
"0.77701163",
"0.7761444",
"0.77414... | 0.7651878 | 29 |
VGG 11layer model (configuration "A") | def a3QF(mL4f=False, **B2fa):
C3ST = wsUm(AaDq(IFG2['A']), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg11']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNbF(**B2fa):\n C3ST = s3br(AaDq(_Fei['A']), **B2fa)\n return C3ST",
"def wNbF():\n return s3br(AaDq(_Fei['A']))",
"def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))",
"def ZsU2():\n return s3br(AaDq(_Fei['B']))",
"def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n ... | [
"0.8561846",
"0.8528357",
"0.8266595",
"0.8174459",
"0.8169166",
"0.81288993",
"0.7844362",
"0.7815675",
"0.7798872",
"0.7752156",
"0.7752156",
"0.77488863",
"0.77369756",
"0.77261806",
"0.7652191",
"0.76373684",
"0.7524913",
"0.7484841",
"0.74788743",
"0.74782026",
"0.746969... | 0.67968225 | 85 |
VGG 11layer model (configuration "A") with batch normalization | def qzou(mL4f=False, **B2fa):
C3ST = wsUm(AaDq(IFG2['A'], batch_norm=True), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg11_bn']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))",
"def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))",
"def CAz4(**B2fa):\n C3ST = s3br(AaDq(_Fei['A'], batch_norm=True), **B2fa)\n return C3ST",
"def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.... | [
"0.7625577",
"0.75265867",
"0.7345912",
"0.7283954",
"0.72391117",
"0.7218601",
"0.72153735",
"0.71929127",
"0.71593374",
"0.70889014",
"0.7081512",
"0.7056463",
"0.70361775",
"0.70166016",
"0.7016175",
"0.7004718",
"0.6972465",
"0.69601643",
"0.69554317",
"0.69446725",
"0.68... | 0.0 | -1 |
VGG 13layer model (configuration "B") | def aQBw(mL4f=False, **B2fa):
C3ST = wsUm(AaDq(IFG2['B']), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg13']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))",
"def ZsU2():\n return s3br(AaDq(_Fei['B']))",
"def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n return C3ST",
"def Cxkw(**B2fa):\n C3ST = s3br(AaDq(_Fei['B'], batch_norm=True), **B2fa)\n return C3ST",
"def ZsU2(jTqs=1... | [
"0.8477868",
"0.8465897",
"0.8463193",
"0.8337648",
"0.8061902",
"0.80160695",
"0.7966153",
"0.7870948",
"0.78542745",
"0.7847819",
"0.78449655",
"0.7840387",
"0.7830252",
"0.7802169",
"0.77512956",
"0.77200717",
"0.7678957",
"0.76687014",
"0.7640897",
"0.76353616",
"0.761971... | 0.0 | -1 |
VGG 16layer model (configuration "D") | def _GMO(mL4f=False, **B2fa):
C3ST = wsUm(AaDq(IFG2['D']), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg16']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST",
"def a7Lb():\n return s3br(AaDq(_Fei['D']))",
"def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))",
"def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST",
"def a7Lb(jTqs=10):\n return s3br... | [
"0.8482543",
"0.8453662",
"0.83023703",
"0.8240353",
"0.81314003",
"0.8079578",
"0.7999773",
"0.7996756",
"0.7950659",
"0.79101694",
"0.79068863",
"0.7885296",
"0.78825146",
"0.78825146",
"0.78825146",
"0.7827089",
"0.7819219",
"0.7813056",
"0.77699214",
"0.7759704",
"0.77413... | 0.69560647 | 93 |
VGG 19layer model (configuration "E") | def Kn3c(mL4f=False, **B2fa):
C3ST = wsUm(AaDq(IFG2['E']), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg19']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AndN(**B2fa):\n C3ST = s3br(AaDq(_Fei['E']), **B2fa)\n return C3ST",
"def AndN():\n return s3br(AaDq(_Fei['E']))",
"def bFDE():\n return s3br(AaDq(_Fei['E'], batch_norm=True))",
"def bFDE(**B2fa):\n C3ST = s3br(AaDq(_Fei['E'], batch_norm=True), **B2fa)\n return C3ST",
"def ZsU2():\n ... | [
"0.84032625",
"0.8357504",
"0.8207867",
"0.80626094",
"0.80340594",
"0.8002266",
"0.79124343",
"0.78631854",
"0.7821841",
"0.77572435",
"0.77047306",
"0.7658324",
"0.7656703",
"0.76538116",
"0.7615078",
"0.7603496",
"0.7598256",
"0.75641656",
"0.7563316",
"0.7558401",
"0.7551... | 0.0 | -1 |
Normalizes a path and returns an output path relative to the current workdir | def GaIf(pmON, QqCf):
return Hy7s.path.normpath(QqCf + Hy7s.path.basename(pmON)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bTPP(_JNu):\n _JNu = ZbWC.sub('^\\\\.+', '', _JNu)\n _JNu = ZbWC.sub('^([^/])', '/\\\\1', _JNu)\n _JNu = ZbWC.sub('^/out/target/.*/root', '', _JNu)\n return _JNu",
"def s5sT(pmON):\n if pmON == '.':\n return Hy7s.path.join('..', Hy7s.getcwd().split('/')[-1])\n else:\n return p... | [
"0.7383468",
"0.73364776",
"0.73067766",
"0.7253077",
"0.7184888",
"0.7109983",
"0.7109983",
"0.7099529",
"0.70734227",
"0.70491105",
"0.70014215",
"0.69912606",
"0.6956899",
"0.6889776",
"0.6840292",
"0.68182176",
"0.6810377",
"0.68061715",
"0.6763513",
"0.67591107",
"0.6736... | 0.66899025 | 27 |
Manhattan distance from current position to target | def OLkv(NArs):
jvSB, pan_, GERS = NArs
if not GERS:
return -100
pImw = abs(pan_[0] - jvSB[0]) + abs(pan_[1] - jvSB[1])
fwGa = pImw == 0
return -pImw + 100 * fwGa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jbj8(YKHO):\n return abs(YKHO.x) + abs(YKHO.y)",
"def q0Tb(Q6kx, BHck):\n return abs(Q6kx.row - BHck.row) + abs(Q6kx.col - BHck.col)",
"def fkhm(yKcO, pan_):\n Jssk = abs(yKcO.position[0] - pan_.position[0])\n q6fc = abs(yKcO.position[1] - pan_.position[1])\n return Jssk + q6fc",
"def q0Tb... | [
"0.80809826",
"0.80233026",
"0.800529",
"0.79144835",
"0.7823851",
"0.78188026",
"0.77948976",
"0.77751863",
"0.7764839",
"0.77124494",
"0.7708573",
"0.76906323",
"0.7688569",
"0.7688569",
"0.7664974",
"0.7651596",
"0.76472723",
"0.7634766",
"0.758844",
"0.75625736",
"0.75361... | 0.7901533 | 4 |
Determine if a genome has passed the filters required to be marked as complete Return True/False and the number of unambiguous bases | def ZZQq(YNZY, y0cW):
WhcR = Hy7s.path.join(YNZY, y0cW + '.complete.fasta')
if Hy7s.path.exists(WhcR):
sDym = list(Rg82.parse(open(WhcR), 'fasta'))[0]
sDym = list(sDym.seq.upper())
assert len(sDym) == 29903
ga5a = sDym.count('N')
return (True, 29903 - ga5a)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGJC(YKHO):\n return len(YKHO.name) > 0 and len(YKHO.axiom) > 0 and (len(YKHO.ruleset) > 0) and (YKHO.angle is not 0)",
"def ZZQq(YKHO):\n return len(YKHO.segments_completed) == 4",
"def qIw3(CtXk, cwj5, YRbF, mJ1j):\n _d91 = 0\n for Q6uT in CtXk:\n if Q6uT[YRbF] != '-':\n _d9... | [
"0.61360824",
"0.6079068",
"0.5926241",
"0.59178966",
"0.59053516",
"0.59048194",
"0.58908945",
"0.5816339",
"0.58159333",
"0.5813214",
"0.5797773",
"0.5767678",
"0.5746584",
"0.5743965",
"0.57408965",
"0.5740301",
"0.5726011",
"0.5705722",
"0.56980735",
"0.567093",
"0.565260... | 0.64967006 | 0 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
ZylS.summary.scalar('stddev', z2bo)
ZylS.summary.scalar(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.77362424",
"0.763582",
"0.715505",
"0.70680046",
"0.70090437",
"0.70041543",
"0.6865109",
"0.67910004",
"0.6712132",
"0.6702456",
"0.6698499",
"0.66536295",
"0.6650547",
"0.6646345",
"0.6623147",
"0.660498",
"0.65962845",
"0.65807754",
"0.65701014",
"0.6537889",
"0.6536997... | 0.0 | -1 |
Create a bias variable with appropriate initialization. | def Y7ph(ROpF, FijD, z_aY=None):
if not list(z_aY):
RqgG = ZylS.constant(0.1, shape=ROpF)
else:
RqgG = ZylS.constant(z_aY)
if YKHO.config.iftl and FijD < YKHO.config.NoFixedLayer:
return ZylS.Variable(RqgG, trainable=False)
else:
return ZylS.Variable(RqgG, trainable=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1Xm(ROpF, MuED=ZylS.zeros_initializer()):\n return ZylS.get_variable(name='b', shape=ROpF, initializer=MuED)",
"def Y7ph(ROpF, ECSy=0.025):\n RqgG = ZylS.constant(ECSy, shape=ROpF)\n return ZylS.Variable(RqgG)",
"def KR18(YKHO, ROpF):\n return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype... | [
"0.79858303",
"0.7918969",
"0.78149676",
"0.7800119",
"0.77055323",
"0.7608229",
"0.75624096",
"0.75623584",
"0.7561029",
"0.7559047",
"0.75428504",
"0.75428504",
"0.75323683",
"0.7528323",
"0.7528323",
"0.7528323",
"0.7528323",
"0.7528323",
"0.7528323",
"0.7528323",
"0.75283... | 0.755641 | 10 |
Filters out stop words from NLTK corpus and Python String class punctuation to create a list of tokenized sentences and tokenized words | def x1CH(YKHO, l5Ny):
hwHU = set(di0c.words('english') + list(pC3l))
V22M = dFss(l5Ny.lower())
return [N3rN(l5Ny), [GIN8 for GIN8 in V22M if GIN8 not in hwHU]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izSx(l5Ny):\n njyT = ZbWC.compile('<.+?>|[^a-zA-Z]')\n GveK = njyT.sub(' ', l5Ny)\n s2mk = GveK.split()\n AwHw = [a1PO.lower() for a1PO in s2mk]\n Tj9d = []\n for GIN8 in AwHw:\n qgmB = ''.join([sZqf for sZqf in GIN8 if not sZqf in vK1s])\n Tj9d.append(qgmB)\n STkf = [yzQ0 fo... | [
"0.8207576",
"0.815968",
"0.79015344",
"0.7809691",
"0.77391934",
"0.76358926",
"0.76334494",
"0.7612382",
"0.75770855",
"0.7569285",
"0.7544775",
"0.7538741",
"0.75373745",
"0.7522178",
"0.75179595",
"0.75155795",
"0.7490729",
"0.7489366",
"0.7486623",
"0.7472914",
"0.746907... | 0.7725303 | 5 |
Find the k nearest neighbors (NNs) of a query image, in the feature space of the specified mode. | def nCRS(C3ST, GCu1, DWkG, G1Hx, begE):
bcVy = []
GDhf = ht2j.stack([WKvO for YRbF, WKvO in enumerate(DWkG)])
or8S = [YRbF for YRbF in range(len(GDhf)) if ht2j.all(GDhf[YRbF].eq(GCu1))][0]
z8Af = DWkG.image_files
with ht2j.no_grad():
bcVy = C3ST(GDhf)
myQS = HFk3(n_neighbors=G1Hx + 1, al... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def Wfq3(bf9h, xDcj, G1Hx=2, CkYf=None):\n rIB8 = bf9h.unsqueeze(0).repeat(xDcj.shape[0], 1, 1)\n wUj_ = xDcj.unsqueeze(1).repeat(1, bf9h.shape[0], 1)... | [
"0.67501014",
"0.67501014",
"0.67501014",
"0.6714453",
"0.6712168",
"0.6689655",
"0.66435057",
"0.6630223",
"0.6626529",
"0.6618758",
"0.6527839",
"0.6494812",
"0.64942276",
"0.64802325",
"0.64201987",
"0.64054316",
"0.6355666",
"0.6338883",
"0.6336476",
"0.63295645",
"0.6310... | 0.61622745 | 37 |
Valid if user can be authenticated. | def tkjX(YKHO, x0hE, oRxS):
geh0 = x0hE.post(gxEw('login'), {'username': oRxS.username, 'password': 'm=9UaK^C,Tbq9N=T', 'robot': True}, follow=True)
assert geh0.context['user'].is_authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y18l(YKHO, CBIr):\n return True",
"def Y18l(YKHO, CBIr):\n return True",
"def gDhF(YKHO):\n if not YKHO.authenticated:\n raise ValueError('User is not authenticated')",
"def NLCy(YKHO, QePW):\n return YKHO.access_manager.check_user(QePW.user)",
"async def is_valid_auth(YKHO, CBIr, jT... | [
"0.7510524",
"0.7510524",
"0.7483032",
"0.7252067",
"0.70942074",
"0.7024544",
"0.7013905",
"0.6935121",
"0.6920307",
"0.69044477",
"0.68905526",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.68763703",
"0.6... | 0.0 | -1 |
Unvalid user login if user doesn't exist in database. | def PQr2(YKHO, x0hE, oRxS):
geh0 = x0hE.post(gxEw('login'), {'username': oRxS.username, 'password': 'anonymous', 'robot': True}, follow=True)
assert not geh0.context['user'].is_authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1uQ(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.login('this_user_doesnt_exist', 'myPassword'))",
"def _r7T(YKHO):\n dsbO = mv1M.login('testuserbad', 'pass123')\n YKHO.assertFalse(dsbO)",
"def OOBF():\n return cuiw['user_id'] != ''",
"def xiJ6(YKHO):\n YKHO.assertEqual(FYrf.FAILURE,... | [
"0.767872",
"0.75076604",
"0.7078893",
"0.7045221",
"0.70142716",
"0.6981929",
"0.6947239",
"0.6943412",
"0.69176877",
"0.69176877",
"0.6900779",
"0.6900779",
"0.6900779",
"0.69000506",
"0.68669564",
"0.6831802",
"0.6810798",
"0.68034154",
"0.67967093",
"0.6740855",
"0.673750... | 0.0 | -1 |
After login process, user should be redirect to home page. | def PsEU(YKHO, x0hE, oRxS):
geh0 = x0hE.post(gxEw('login'), {'username': oRxS.username, 'password': 'm=9UaK^C,Tbq9N=T', 'robot': True}, follow=True)
assert geh0.context['user'].is_authenticated
HGUJ(geh0, '/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VSpo():\n return vKnz(nKyW('home_page'))",
"def kZiy():\n return vKnz(nKyW('.login'))",
"def C_QL():\n if 'authenticated' not in cuiw:\n return vKnz(nKyW('login'))\n elif cuiw['authenticated'] is not True:\n return vKnz(nKyW('login'))\n return vKnz(nKyW('dashboard'))",
"def k... | [
"0.81936836",
"0.812346",
"0.7962002",
"0.7948848",
"0.78806275",
"0.7875855",
"0.7840341",
"0.77770764",
"0.77462935",
"0.77125055",
"0.76861143",
"0.7672101",
"0.76631385",
"0.7660256",
"0.7635185",
"0.76157844",
"0.7607236",
"0.75424206",
"0.7532598",
"0.7531529",
"0.74896... | 0.0 | -1 |
Show Profile Page should be accessible by name. | def UM1e(YKHO, x0hE, oRxS):
bD7m = gxEw('show_profile_page', args=[f'{oRxS.pk}'])
geh0 = x0hE.get(bD7m)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QyAW():\n return TvZl('user_profile_page.html')",
"def z39Z():\n return TvZl('profile.html', name=c5ow.name)",
"def z39Z():\n return TvZl('profile.html', title='Profile')",
"def vJua():\n return TvZl('profile.html')",
"def z39Z(QePW):\n return igJ6('View profile here...')",
"def z39Z()... | [
"0.7407858",
"0.739279",
"0.7288038",
"0.7224036",
"0.717242",
"0.71397704",
"0.7106985",
"0.7090071",
"0.7062788",
"0.70371294",
"0.7017708",
"0.6977156",
"0.6972314",
"0.69432527",
"0.6942667",
"0.69334835",
"0.68617195",
"0.68617195",
"0.6823052",
"0.68106717",
"0.6808148"... | 0.70726347 | 8 |
edit_user_profile page should exist at desired location. | def XfI6(YKHO, x0hE, oRxS):
x0hE.login(username=f'{oRxS.username}', password='m=9UaK^C,Tbq9N=T')
geh0 = x0hE.get(f'/members/{oRxS.pk}/edit_user_profile/')
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KOf():\n if not CBIr.logged_in:\n return vKnz(nKyW('index'))\n else:\n return TvZl('profile/edit_profile.html', user=CBIr)",
"def QY_B(YKHO):\n YKHO.client.post(Rmd_('login'), {'username': 'bob', 'password': 'password'}, follow=True)\n geh0 = YKHO.client.post(Rmd_('updateuser'), {'... | [
"0.8262306",
"0.7510756",
"0.7399452",
"0.7372379",
"0.73583406",
"0.73535836",
"0.7303672",
"0.72997093",
"0.7281777",
"0.72387344",
"0.7226353",
"0.72213274",
"0.7214571",
"0.72047883",
"0.7177031",
"0.71322566",
"0.7121418",
"0.7119794",
"0.71012956",
"0.7080941",
"0.70512... | 0.77539927 | 1 |
Helper method for all Signature Validator tests to get an LtiConsumer object. | def STFa():
return k2K9(consumer_name='Consumer Name', consumer_key='Consumer Key', consumer_secret='Consumer Secret') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGS7(QePW):\n try:\n AyZz = VBkw.from_django_request(request=QePW)\n aBkf = t2pA()\n if AyZz.is_valid_request(aBkf):\n return AyZz\n except (NlO7.OAuth1Error, KLoF, ValueError) as err:\n RKD7.error('Error happened while LTI request: {}'.format(XObx.__str__()))\n ... | [
"0.5689004",
"0.5526635",
"0.54456544",
"0.52824557",
"0.52778345",
"0.52550656",
"0.51667273",
"0.50884044",
"0.50720996",
"0.5053277",
"0.50519747",
"0.49975246",
"0.49912262",
"0.49691513",
"0.49670923",
"0.49670923",
"0.4964162",
"0.4956785",
"0.49455753",
"0.49226472",
"... | 0.77090114 | 0 |
Initialize an opaque material. | def FIMM(YKHO, av29, oWhY, m1I4, rlv5=0.7, s8eo=0.9, zMEi=0.7, al3o='Rough', paog=0, MPRT=1, NGEg=50, X50l=0.45, BuXj=0, yzki=0, GjZ2=0, N6Fq=0, ft0l=None, nO9q=20, **B2fa):
super(MWtN, YKHO).__init__(av29, Cost=paog, EmbodiedCarbon=X50l, EmbodiedEnergy=BuXj, SubstitutionTimestep=nO9q, TransportCarbon=yzki, Transpo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, TVTK, H2v2, qfpW, QuID):\n YKHO.main_surface = QuID\n YKHO.width = TVTK\n YKHO.height = H2v2\n YKHO.color = qfpW",
"def FIMM(YKHO, A4tf, id=None, **onGm):\n super(DLSy, YKHO).__init__(id, A4tf, **onGm)",
"def FIMM(YKHO, mWFP: str, Mx95: str, dGrG: float=1):\n super().__init__()... | [
"0.67314327",
"0.64757794",
"0.64231545",
"0.6323376",
"0.6316584",
"0.6309786",
"0.62912494",
"0.6233009",
"0.6229819",
"0.62061566",
"0.6193737",
"0.6173883",
"0.61304224",
"0.609606",
"0.6059201",
"0.60290474",
"0.60122955",
"0.59889555",
"0.5960383",
"0.59490776",
"0.5948... | 0.6614991 | 1 |
Get or set the specific heat of the material [J/(kgK)]. | def m1I4(YKHO):
return YKHO._specific_heat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rBmA(E8NC):\n return 1 / (jzF4 * Cns2 * diNy ** 2) * (oyIN.mean(E8NC ** 2) - oyIN.mean(E8NC) ** 2)",
"def ovGo(YKHO):\n if YKHO.mass > 0:\n return YKHO.thermal_energy / (YKHO.mass * YKHO.specific_heat_capacity)\n else:\n return 0.0",
"def y1QO(YKHO) -> float:\n return YKHO.specifi... | [
"0.66871184",
"0.6534001",
"0.63968015",
"0.63830215",
"0.6373934",
"0.6282111",
"0.62693655",
"0.61722606",
"0.60330045",
"0.5956784",
"0.59341705",
"0.5862179",
"0.5859745",
"0.58382916",
"0.5815953",
"0.57392293",
"0.5736191",
"0.57299393",
"0.57198304",
"0.571926",
"0.571... | 0.67981535 | 0 |
Get or set the vapor resistance factor of the material [%]. | def NGEg(YKHO):
return YKHO._moisture_diffusion_resistance | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OCTm(YKHO):\n OCTm = YKHO.read_rtd()\n OCTm /= 32768\n OCTm *= YKHO.ref_resistor\n return OCTm",
"def x26z(YKHO, OCTm):\n YKHO.resistance = int(input('Enter the Value from (0-256)= '))\n if YKHO.resistance > 256:\n YKHO.resistance = int(input('Enter the Value from (0-256)= '))\n r... | [
"0.65941846",
"0.65568644",
"0.6400268",
"0.6222039",
"0.6160706",
"0.6059259",
"0.6054221",
"0.5907384",
"0.5881648",
"0.58468103",
"0.58240193",
"0.5689088",
"0.5686505",
"0.56753093",
"0.56611085",
"0.5653943",
"0.5641403",
"0.56333375",
"0.5608774",
"0.55943173",
"0.55838... | 0.55518156 | 22 |
Return a generic material based on properties of plaster board. | def ngUu(Emd4, **B2fa):
return Emd4(Conductivity=0.16, SpecificHeat=1090, Density=800, Name='GP01 GYPSUM', Roughness='Smooth', SolarAbsorptance=0.7, ThermalEmittance=0.9, VisibleAbsorptance=0.5, DataSource='ASHRAE 90.1-2007', MoistureDiffusionResistance=8.3, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(ug3y=None, VmPb=None, **sjXb):\n for property in C9U5:\n if ug3y._cell2properties[VmPb].has_key(property):\n if ug3y.cell_property(VmPb, property):\n return nKgI\n return RwOz",
"def ASmI(YKHO):\n return None",
"def VPSx(YKHO):\n from cross3d.constants impo... | [
"0.6895893",
"0.6796213",
"0.65839916",
"0.6551884",
"0.65299344",
"0.6527287",
"0.64904404",
"0.6440085",
"0.64391065",
"0.6378984",
"0.6373441",
"0.63042486",
"0.62782425",
"0.6201791",
"0.61266464",
"0.6111095",
"0.6061167",
"0.6058607",
"0.60550493",
"0.6035903",
"0.59767... | 0.0 | -1 |
Return OpaqueMaterial dictionary representation. | def MNRr(YKHO):
YKHO.validate()
Mjw9 = g760.OrderedDict()
Mjw9['$id'] = str(YKHO.id)
Mjw9['MoistureDiffusionResistance'] = YKHO.MoistureDiffusionResistance
Mjw9['Roughness'] = YKHO.Roughness
Mjw9['SolarAbsorptance'] = YKHO.SolarAbsorptance
Mjw9['SpecificHeat'] = YKHO.SpecificHeat
Mjw9['T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVrb():\n from alfasim_sdk._internal import constants\n assert TL4s(name='Acme').as_dict() == {'density': (1.0, 'kg/m3'), 'expansion': (0.0, '1/K'), 'heat_capacity': (0.0, 'J/kg.degC'), 'inner_emissivity': (0.0, '-'), 'material_type': constants.MaterialType.Solid, 'name': 'Acme', 'outer_emissivity': (0.0... | [
"0.681511",
"0.6625533",
"0.65235186",
"0.65177333",
"0.64462054",
"0.633838",
"0.6312605",
"0.6256239",
"0.6205079",
"0.6189936",
"0.617253",
"0.617253",
"0.6144246",
"0.6127276",
"0.61131793",
"0.609119",
"0.6074733",
"0.60448676",
"0.60381216",
"0.60334754",
"0.60272825",
... | 0.0 | -1 |
Get copy of self. | def LHwl(YKHO):
return YKHO.__copy__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO",
"def jth9(YKHO):\n return jth9(YKHO)",
"def n061(YKHO):\n return _qLf(YKHO... | [
"0.89709187",
"0.89709187",
"0.89709187",
"0.89709187",
"0.8948012",
"0.8934627",
"0.8913779",
"0.8912243",
"0.8880196",
"0.8880196",
"0.8880196",
"0.8880196",
"0.8880196",
"0.8880196",
"0.8801772",
"0.8801772",
"0.8801772",
"0.8801772",
"0.8801772",
"0.8801772",
"0.8801772",... | 0.0 | -1 |
Return the hash value of self. | def rjHV(YKHO):
return hash(YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OoXC(YKHO):\n return YKHO.hash",
"def OoXC(YKHO):\n return YKHO.__hash",
"def OoXC(YKHO):\n return YKHO._hash",
"def uk0M(YKHO):\n return YKHO.hash",
"def rjHV(YKHO):\n try:\n return YKHO.hash_value\n except AttributeError:\n YKHO.hash_value = YKHO.get_hash()\n re... | [
"0.9006021",
"0.89587486",
"0.8918577",
"0.8872698",
"0.87804115",
"0.8741188",
"0.86838794",
"0.8580177",
"0.84687716",
"0.84563804",
"0.8451453",
"0.8307163",
"0.82966805",
"0.8287575",
"0.8258828",
"0.8250239",
"0.8250239",
"0.8244496",
"0.8220872",
"0.8220872",
"0.8220872... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.0 | -1 |
returns list of paths matching a suffix by walking directory from root_dir | def Gn9F(jNha, T_Ia):
ckRy = []
for pmON, iIh5, _PsJ in Hy7s.walk(jNha):
Dn78 = filter(_PsJ, T_Ia)
if not Dn78:
continue
for FYKK in Dn78:
ckRy.append(Hy7s.path.join(pmON, FYKK))
return ckRy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(tk5Y, y0cW, ZI14):\n RRlC = []\n for pGQh, bGrB, iumf in Hy7s.walk(tk5Y):\n for eHNT in iumf:\n if not eHNT.endswith(ZI14):\n continue\n PsRC = Hy7s.path.relpath(pGQh, y0cW)\n RRlC.append(GkAb(PsRC) / eHNT)\n return RRlC",
"def jkkx(tTqh='.... | [
"0.77873695",
"0.77114433",
"0.76711565",
"0.76514906",
"0.7555445",
"0.74503255",
"0.7431806",
"0.7414125",
"0.740174",
"0.73921275",
"0.7336421",
"0.73172605",
"0.7275081",
"0.72444534",
"0.7201541",
"0.7177639",
"0.7158822",
"0.7158822",
"0.7152437",
"0.7152187",
"0.714090... | 0.66413665 | 62 |
Reset the classvariable created_nodes_stack to an empty list | def uHdS(Emd4):
Emd4.created_nodes_stack = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n YKHO._nodes = []",
"def Y7Bk(YKHO):\n YKHO._stack = []",
"def xQu6(YKHO):\n YKHO.pure_sources = []\n YKHO.personas = []\n YKHO.sources = []\n YKHO.contexts = []\n YKHO.targets = []",
"def FIMM(YKHO):\n YKHO.stack_list = []",
"def IMDW(YKHO):\n for Q6kx in YKHO.n... | [
"0.74806315",
"0.7225585",
"0.7078787",
"0.7071677",
"0.6994337",
"0.6880918",
"0.6880148",
"0.6835897",
"0.6804175",
"0.6794937",
"0.6790426",
"0.67462075",
"0.6727876",
"0.6727849",
"0.6727849",
"0.6727849",
"0.6727849",
"0.6727849",
"0.6727849",
"0.6727849",
"0.6727849",
... | 0.8444014 | 0 |
Concatenates kwargs for Tracer. | def vPhv(**B2fa):
Ddpb = []
for H5ew, wEf2 in B2fa.iteritems():
if isinstance(wEf2, exCv):
Ddpb.append("{}='{}'".format(H5ew, wEf2))
else:
Ddpb.append('{}={}'.format(H5ew, wEf2))
sx2t = ', '.join(Ddpb)
return sx2t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uCzn(YKHO, **B2fa):\n if not B2fa:\n return\n nZ09 = YKHO.kwargs\n if nZ09 is None:\n YKHO.kwargs = B2fa\n else:\n nZ09.update(B2fa)",
"def uCzn(YKHO, **B2fa):\n if not B2fa:\n return\n nZ09 = YKHO.kwargs\n if nZ09 is None:\n YKHO.kwargs = B2fa\n els... | [
"0.6719597",
"0.66230786",
"0.6322059",
"0.6274207",
"0.6260442",
"0.62581927",
"0.6106884",
"0.6040911",
"0.6039885",
"0.6029553",
"0.5967303",
"0.5940962",
"0.59213936",
"0.5920269",
"0.5902107",
"0.590113",
"0.5878783",
"0.5837457",
"0.5827705",
"0.58170545",
"0.5810362",
... | 0.6309839 | 3 |
Return a clean list of values or plugs | def f4MD(OdaF):
RKD7.debug('About to unravel >{0}< with {1}'.format(OdaF, type(OdaF)))
zT6d = C2tG(OdaF)
if not isinstance(zT6d, list):
zT6d = [zT6d]
RKD7.info('Input >{0}< --> unravelled to >{1}<'.format(OdaF, zT6d))
return zT6d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0SS(YKHO, BWXx):\n return [eHNT.clean(Ty9i) for Ty9i, eHNT in zip(BWXx, YKHO.fields)]",
"def iOdm(BWXx):\n if isinstance(BWXx, list):\n if BWXx and isinstance(BWXx[0], list):\n Raji = {ZfUD for bCES in BWXx for ZfUD in bCES}\n return MGQ_(list(Raji))\n return MGQ_(l... | [
"0.66795516",
"0.654287",
"0.63865006",
"0.6361952",
"0.62961507",
"0.6292391",
"0.62867236",
"0.6096347",
"0.6082586",
"0.5980473",
"0.59790695",
"0.5971892",
"0.59043777",
"0.5884383",
"0.5876685",
"0.58539325",
"0.5837317",
"0.58135",
"0.5811993",
"0.58057785",
"0.5802823"... | 0.0 | -1 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.69191396",
"0.67619044",
"0.6581402",
"0.64894295",
"0.6456341",
"0.63765323",
"0.62858677",
"0.62703115",
"0.6270176",
"0.6245304",
"0.62181896",
"0.62148076",
"0.61940026",
"0.6179036",
"0.6151994",
"0.614341",
"0.6132687",
"0.61295456",
"0.60511667",
"0.6007611",
"0.598... | 0.56214476 | 72 |
Returns the dust limit in satoshis. | async def dust_threshold(ee8p: CoinNetwork) -> int:
pq0_ = 182 * 3 * await ee8p.relay_fee
return pq0_ // 1000 + (pq0_ % 1000 > 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWl1(YKHO) -> float:\n return 30",
"def v8Nw(YKHO):\n ga2c = float(max([1, YKHO.sbMeanSalary.value()]))\n return ga2c",
"def TWl1(YKHO):\n return 30",
"def Gin_(YKHO):\n return YKHO.world.worldData.getWeatherDuration()",
"def TWl1(YKHO):\n return 30",
"def uTWm(YKHO) -> h8nf[float]:... | [
"0.6322166",
"0.62278825",
"0.6075914",
"0.6055367",
"0.60479677",
"0.6042526",
"0.6039294",
"0.6033098",
"0.60262865",
"0.60007113",
"0.60007113",
"0.60007113",
"0.5994248",
"0.59899616",
"0.59899616",
"0.59852475",
"0.59666216",
"0.5926084",
"0.5921877",
"0.5920897",
"0.588... | 0.6499281 | 0 |
Return the most valuable item from the given set. | def c5ft(YKHO, DumB: Bundle):
return max(DumB, key=lambda ZfUD: YKHO.item_value(ZfUD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyF2(YKHO):\n m8fs = YKHO.get_completions()\n QwHm = 1\n for xw3C in m8fs:\n if xw3C[1] > QwHm:\n QwHm = xw3C[1]\n return QwHm",
"def qfB5(YKHO, DumB):\n Q0a1 = None\n SkJr = -999999999\n for G1Hx, Ty9i in DumB.items():\n if Ty9i > SkJr:\n SkJr = Ty9i\... | [
"0.6546961",
"0.6467897",
"0.6251037",
"0.61990887",
"0.61782235",
"0.61703295",
"0.61244386",
"0.6055517",
"0.6036879",
"0.6036375",
"0.6034535",
"0.6032036",
"0.60301554",
"0.6020044",
"0.6014252",
"0.60064673",
"0.5983689",
"0.59758425",
"0.58961713",
"0.5891624",
"0.58760... | 0.7010951 | 0 |
Return True iff the bundle contains the maximum (capacity) number of items. | def FQKV(YKHO, DumB: Bundle) -> bool:
return YKHO.num_items_in_bundle(DumB) >= YKHO.capacity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWCs(YKHO) -> bool:\n return YKHO.total_item >= YKHO.max_item",
"def LWCs(YKHO):\n return YKHO.num_items == YKHO.capacity",
"def CvKN(YKHO):\n return True if YKHO.size >= 31 else False",
"def tJb8(YKHO):\n return YKHO.capacity > 0",
"def LWCs(YKHO):\n lJj5.check_items(YKHO)\n if YKHO.... | [
"0.7260646",
"0.72576237",
"0.7169575",
"0.71468157",
"0.71162796",
"0.70733726",
"0.7072058",
"0.7060303",
"0.7041928",
"0.70330703",
"0.69663805",
"0.69517696",
"0.6947608",
"0.6938504",
"0.6916227",
"0.69070125",
"0.6856908",
"0.68556964",
"0.6844146",
"0.6823432",
"0.6812... | 0.6562652 | 37 |
Computing iou between bboxes1 and bboxes2. | def Rxci(Bsc6, IUcw, NKcE='union'):
Bsc6 = oyIN.transpose(Bsc6)
IUcw = oyIN.transpose(IUcw)
Pt29 = oyIN.maximum(Bsc6[0], IUcw[0])
x4Ym = oyIN.maximum(Bsc6[1], IUcw[1])
ZLhb = oyIN.minimum(Bsc6[2], IUcw[2])
FgLc = oyIN.minimum(Bsc6[3], IUcw[3])
wBxj = oyIN.maximum(ZLhb - Pt29 + 1, 0.0)
Jk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjuK(wgcq, jRFy):\n HDwO, lrqa = (wgcq[:, 0] - wgcq[:, 2] / 2, jRFy[:, 0] - jRFy[:, 2] / 2)\n yKcm, t57X = (wgcq[:, 1] - wgcq[:, 3] / 2, jRFy[:, 1] - jRFy[:, 3] / 2)\n ZAsR, ruF1 = (wgcq[:, 0] + wgcq[:, 2] / 2, jRFy[:, 0] + jRFy[:, 2] / 2)\n b07p, aKIv = (wgcq[:, 1] + wgcq[:, 2] / 2, jRFy[:, 1] + j... | [
"0.8661324",
"0.85682297",
"0.83334243",
"0.83131164",
"0.8278807",
"0.82779187",
"0.8230769",
"0.82056093",
"0.8201812",
"0.8184843",
"0.8116106",
"0.8067792",
"0.8066999",
"0.8001418",
"0.7962282",
"0.7955261",
"0.7943133",
"0.7942679",
"0.7925254",
"0.7919421",
"0.7914601"... | 0.8426113 | 2 |
Translate a boolean value to a 'yes' or 'no' string. Use this function whenever showing a boolean value to the user. That way, we don't get the confusion on how to represent a flag to the user, which happens when you leave every developer to their own devices. | def oQyn(I1mm):
return 'yes' if I1mm else 'no' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NSqi(bool):\n return 'Yes' if bool else 'No'",
"def gstE(Fg_i):\n if Fg_i:\n return 'Yes'\n return 'No'",
"def YF7L(_J6_):\n return 'Yes' if _J6_ else 'No'",
"def Ux8e(YKHO, Fg_i):\n if Fg_i:\n return 'yes'\n else:\n return 'no'",
"def hFpI(BWXx: bool) -> str:\n ... | [
"0.8360974",
"0.80689347",
"0.8011636",
"0.80038846",
"0.80015326",
"0.7876526",
"0.77304393",
"0.7686373",
"0.76830536",
"0.7663053",
"0.76476383",
"0.75081724",
"0.74316984",
"0.73568577",
"0.7356525",
"0.73257345",
"0.73097354",
"0.7251363",
"0.7186051",
"0.7163595",
"0.70... | 0.7828026 | 6 |
save plot as a png figure, confusion_matrix as a feather file | def geH4(VqRE, kj9G, G16A, iumf):
if not Hy7s.path.exists(VqRE):
Hy7s.makedirs(VqRE)
kj9G.figure_.savefig(VqRE + '/' + iumf[0])
jQ3Z = rLdf.DataFrame(G16A).T.reset_index()
jQ3Z.to_csv(VqRE + '/' + iumf[1] + '.csv') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pf5f(YKHO, ugYP):\n Ux0P = QN9E(title='Save plot as png or pdf.', afilename=ugYP)\n if Ux0P:\n YKHO.figure.savefig(Ux0P)",
"def PqmM(Y8eF, aMgO, KndY, wytA=(10, 10), gXgy=None, leAC='Confusion matrix', iMGt=QrM1.cm.Reds):\n Bcwd = YsYU(Y8eF, aMgO)\n bOjG = rLdf.DataFrame(Bcwd)\n QrM1.fi... | [
"0.6989318",
"0.67855895",
"0.6691333",
"0.6647209",
"0.66427594",
"0.6618263",
"0.6600986",
"0.65748245",
"0.6562499",
"0.65379024",
"0.65289927",
"0.6523762",
"0.65232867",
"0.64782465",
"0.64558536",
"0.6438349",
"0.64176124",
"0.64133346",
"0.63941026",
"0.63906366",
"0.6... | 0.0 | -1 |
Compute the power flow Jacobian for partial derivative of real power flow to voltage angle | def kTO0(GZiu, LWLo, jJhr, H7zX, shHt=_sEy.FLATSTART, D0M0=w85k.PTDF):
jPKN = len(H7zX)
n_cb = {YRbF: H7zX[YRbF] for YRbF in list(range(0, jPKN))}
gMSn = len(jJhr)
ACym = {YRbF: jJhr[YRbF] for YRbF in list(range(0, gMSn))}
s85a = oyIN.zeros((gMSn, jPKN))
for rTwx, srZT in ACym.items():
j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8WM(YKHO):\n raise NotImplementedError",
"def HFmv(WKvO, P6bq):\n xTkQ = WKvO[2, 0]\n Ty9i = P6bq[0, 0]\n TBa6 = oyIN.array([[1.0, 0.0, -lwT1 * Ty9i * epAf.sin(xTkQ), lwT1 * epAf.cos(xTkQ)], [0.0, 1.0, lwT1 * Ty9i * epAf.cos(xTkQ), lwT1 * epAf.sin(xTkQ)], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.... | [
"0.64612675",
"0.6443457",
"0.63687027",
"0.63527095",
"0.63137305",
"0.62603074",
"0.6252167",
"0.6236291",
"0.6214794",
"0.6207844",
"0.61845",
"0.614631",
"0.60836136",
"0.6026448",
"0.60069835",
"0.59976375",
"0.5985474",
"0.598172",
"0.59096766",
"0.5872966",
"0.587124",... | 0.0 | -1 |
Compute the power flow Jacobian for partial derivative of real power losses to voltage angle | def lPwn(GZiu, LWLo, jJhr, H7zX, shHt=_sEy.FLATSTART):
jPKN = len(H7zX)
n_cb = {YRbF: H7zX[YRbF] for YRbF in list(range(0, jPKN))}
gMSn = len(jJhr)
ACym = {YRbF: jJhr[YRbF] for YRbF in list(range(0, gMSn))}
QGK9 = oyIN.zeros((gMSn, jPKN))
for rTwx, srZT in ACym.items():
jehQ = GZiu[srZT]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sW1x(YKHO):\n raise NotImplementedError",
"def v8WM(YKHO):\n raise NotImplementedError",
"def OdRK(YKHO, a1PO, LVAh):\n return YKHO.lambd",
"def HFmv(WKvO, P6bq):\n xTkQ = WKvO[2, 0]\n Ty9i = P6bq[0, 0]\n TBa6 = oyIN.array([[1.0, 0.0, -lwT1 * Ty9i * epAf.sin(xTkQ), lwT1 * epAf.cos(xTkQ)... | [
"0.6503906",
"0.64417344",
"0.63733405",
"0.6329935",
"0.62935966",
"0.6243406",
"0.6206512",
"0.6206452",
"0.620236",
"0.6170242",
"0.61227936",
"0.607543",
"0.6055865",
"0.60391194",
"0.60286546",
"0.60096896",
"0.5975313",
"0.59393513",
"0.58809346",
"0.58767945",
"0.58576... | 0.0 | -1 |
Return length of one degree of latitude and longitude. The lengths are a function of latitude. | def mSA2(QnmL):
XOOk = 111132.92
pHXX = -559.82
MgfK = 1.175
h2Hz = -0.0023
kYGz = 111412.84
ftz7 = -93.5
_2fo = 0.118
QnmL = epAf.radians(QnmL)
cijI = XOOk + pHXX * epAf.cos(2 * QnmL) + MgfK * epAf.cos(4 * QnmL) + h2Hz * epAf.cos(6 * QnmL)
pp1T = kYGz * epAf.cos(QnmL) + ftz7 * e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return G_T2.lattice.lengthlat(YKHO._accelerator.lattice)",
"def yall(YKHO):\n k_Cy, LD1b = (YKHO.fault_trace.lons, YKHO.fault_trace.lats)\n ESFk, azxU = (k_Cy[:-1], LD1b[:-1])\n HeGA, oJsh = (k_Cy[1:], LD1b[1:])\n TaUL = KdCa.geo.geodetic.geodetic_distance(ESFk, azxU, HeGA, oJsh)... | [
"0.7253737",
"0.72302294",
"0.70832205",
"0.6888812",
"0.68472344",
"0.68229836",
"0.67553985",
"0.67553526",
"0.6711054",
"0.6652917",
"0.664018",
"0.66387427",
"0.66320103",
"0.66241777",
"0.6621279",
"0.6601444",
"0.65855134",
"0.65732384",
"0.6568966",
"0.65594536",
"0.65... | 0.7669919 | 0 |
Returns a debiased estimate based on beta and the timestep. | def NmOo(YKHO, bbTD, UqYS, i7_E):
return bbTD / (1 - ZylS.pow(UqYS, i7_E)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ms28(v173, a1PO, UqYS, KMvS):\n yhVA = -UqYS * v173[0] * v173[1] / oyIN.sum(v173)\n djpk = KMvS * v173[1]\n _yQ6 = -(yhVA + djpk)\n return (yhVA, _yQ6, djpk)",
"def XTtZ(bb_G, Cwt5, oP0T, lWPh):\n return bb_G * (1 + Cwt5) + Cwt5 * oP0T.sum() / lWPh",
"def Yh3_(LVAh, a1PO, ywwl, UqYS, KMvS):\... | [
"0.6934413",
"0.6671009",
"0.650643",
"0.64722574",
"0.6384216",
"0.63832194",
"0.63003516",
"0.62778056",
"0.6223387",
"0.6218264",
"0.61883783",
"0.61800003",
"0.617959",
"0.61304456",
"0.61298466",
"0.6101473",
"0.60983145",
"0.6092487",
"0.60873586",
"0.6087057",
"0.60820... | 0.72786665 | 0 |
List the fields stored in the model, including data, model, and training options. Each field can be queried with the ``get`` method. Returns | def Uj1j(YKHO):
VKhi = {'model': YKHO.__proxy__, 'model_name': YKHO.__name__}
geh0 = hapy.toolkits._main.run('supervised_learning_list_keys', VKhi)
return sorted(geh0.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nQuP(YKHO):\n tTee = ZZSa.ListView(YKHO.model)\n return tTee.table_info['fields_list']",
"def V_D6(YKHO):\n return RCT5._fields(getattr(YKHO, 'model'))",
"def q50D(YKHO):\n VKhi = {'model': YKHO.__proxy__}\n geh0 = h3YN.extensions._recsys.list_fields(VKhi)\n return [KCHu for KCHu in geh0[... | [
"0.7640754",
"0.7626309",
"0.75366455",
"0.75277233",
"0.75130886",
"0.7470662",
"0.7470662",
"0.7402758",
"0.73759085",
"0.731343",
"0.72867095",
"0.72834504",
"0.72834504",
"0.7225292",
"0.72077584",
"0.72004336",
"0.7182437",
"0.7182437",
"0.7182437",
"0.7182437",
"0.71824... | 0.73213756 | 9 |
Return the match with ` quotes transformed to '. | def Ukdb(YKHO, kUBT):
kUBT, zFiD, fvDH, P1dF, pEH_, Ol8d, Qh4y = super().split_match(kUBT)
if Ol8d == 'no PHP code found at all':
kUBT = None
else:
Ol8d = Ol8d.replace('`', "'")
if "function '" in Ol8d and Qh4y and Qh4y.endswith('()'):
Qh4y = Qh4y[:-2]
return (kUBT, z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQkN(vIwR: str) -> str:\n return xXxc.sub('\"', vIwR)",
"def BNZ8(KCHu):\n return Htlk.sub('\"', KCHu)",
"def xvvY():\n r8hN = MjOo.UNQUOTED_STRING.search(\"'foo'\")\n assert r8hN\n assert r8hN.groups()[0] == 'foo'\n r8hN = MjOo.UNQUOTED_STRING.search('\"bickey bam #\"')\n assert r8hN\... | [
"0.6643754",
"0.6616982",
"0.6434216",
"0.64096117",
"0.6369041",
"0.6337016",
"0.62854445",
"0.62049174",
"0.62049174",
"0.6114332",
"0.6086477",
"0.6082482",
"0.60794806",
"0.6073274",
"0.60664123",
"0.6063063",
"0.6060612",
"0.60594183",
"0.6056248",
"0.60345685",
"0.60275... | 0.0 | -1 |
Fetch index idx image and labels from dataset. Perform transforms on image. | def OP2O(YKHO, or8S):
ai9l = YKHO.audio_feat[YKHO.filenames[or8S]]
if ai9l.shape[1] != 20:
ai9l = oyIN.transpose(ai9l, (1, 0))
if ai9l.shape[0] > YKHO.frame_length:
ai9l = ai9l[:YKHO.frame_length, :]
elif ai9l.shape[0] < YKHO.frame_length:
ai9l = oyIN.block([[ai9l], [oyIN.zeros((... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, or8S):\n LNo8, UXqs = YKHO.dataset[or8S]\n LNo8 = oyIN.array(LNo8)\n if YKHO.transforms is not None:\n LNo8 = YKHO.transforms(image=LNo8)['image']\n return (LNo8, UXqs)",
"def OP2O(YKHO, or8S):\n if ht2j.is_tensor(or8S):\n or8S = or8S.to_list()\n r8m5 = YKHO.labels_... | [
"0.7424892",
"0.72086763",
"0.71984375",
"0.7182614",
"0.7146215",
"0.7116802",
"0.7105899",
"0.7090277",
"0.70686656",
"0.7011899",
"0.7001349",
"0.6985243",
"0.6963336",
"0.6932451",
"0.6918935",
"0.68587583",
"0.68587583",
"0.68587583",
"0.68587",
"0.6817223",
"0.67890924"... | 0.0 | -1 |
This method provides a useful string representation of this model | def zAg0(YKHO):
return f'[{YKHO.full_name} | {YKHO.element}]' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'",
"def zAg0(YKHO):\n return YKHO.dumpattrs()",
"def zAg0(YKHO):\n oOUF = '--------------------------------------------------------------------------... | [
"0.821808",
"0.8140077",
"0.80954015",
"0.8086891",
"0.8086891",
"0.8086891",
"0.80843043",
"0.8062324",
"0.8047468",
"0.8047468",
"0.80418026",
"0.80401117",
"0.8039971",
"0.8039971",
"0.80021656",
"0.79982996",
"0.7984363",
"0.7979199",
"0.7979199",
"0.7979199",
"0.7979199"... | 0.0 | -1 |
Get the licence reference for the supplied import application | def ehxq(dc6x: 'LockManager', SCWY: 'ImportApplication', OqJk: 'ImportApplicationLicence') -> str:
if not SCWY.licence_reference:
SCWY.licence_reference = UQNC(dc6x, prefix=HAg4.IMPORT_LICENCE_DOCUMENT, use_year=False)
SCWY.save()
UTEr = 'paper' if OqJk.issue_paper_licence_only else 'electronic'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zMdt(dc6x: 'LockManager', SCWY: 'ImpOrExp') -> str:\n if SCWY.is_import_application():\n y0cW = HAg4.IMPORT_APP\n elif SCWY.process_type == sH7v.GMP:\n y0cW = HAg4.EXPORT_APP_GA\n else:\n y0cW = HAg4.EXPORT_APP_CA\n VpFA = True\n Hnal = UQNC(dc6x, prefix=y0cW, use_year=VpFA)... | [
"0.63918",
"0.5412874",
"0.5403247",
"0.5256627",
"0.5102369",
"0.50902045",
"0.5057651",
"0.49867585",
"0.4959451",
"0.49347594",
"0.492283",
"0.48671898",
"0.48667485",
"0.4846292",
"0.4846233",
"0.4843356",
"0.48284167",
"0.48266196",
"0.48102024",
"0.48101938",
"0.4786999... | 0.8002799 | 0 |
Return the next available CaseReference instance. | def UQNC(dc6x: 'LockManager', *, y0cW: str, VpFA: bool) -> 'CaseReference':
dc6x.ensure_tables_are_locked([HSnO])
lO87: int | None
if VpFA:
lO87 = rIAI.now().year
else:
lO87 = None
F9vX = HSnO.objects.filter(prefix=y0cW, year=lO87).order_by('reference').last()
if F9vX:
Gj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uuSL():\n global next_case_index\n lH68 = ajHT[NXvg]\n NXvg += 1\n if NXvg >= len(ajHT):\n HwRy.stdout.write('WARNING: All cases used. Wrapping around back to start of collection')\n NXvg = 0\n return lH68",
"def WYTH(YKHO):\n if YKHO.coref_index + 1 < len(YKHO.list_of_corefs)... | [
"0.6631116",
"0.643691",
"0.643691",
"0.59200037",
"0.58581704",
"0.5755504",
"0.5747328",
"0.57212037",
"0.5711801",
"0.5706137",
"0.56990695",
"0.56664497",
"0.5606596",
"0.5600545",
"0.5598166",
"0.55857086",
"0.5579599",
"0.55665845",
"0.55616605",
"0.5560843",
"0.5549679... | 0.6978456 | 0 |
Get an import application licence reference. | def rk_F(UTEr: Literal['electronic', 'paper'], NHZE: str, lMZu: int) -> str:
LIWp = m2fY(lMZu)
UXur = f'{lMZu:07}{LIWp}'
if UTEr == 'electronic':
y0cW = {sH7v.DEROGATIONS: 'SAN', sH7v.FA_DFL: 'SIL', sH7v.FA_OIL: 'OIL', sH7v.FA_SIL: 'SIL', sH7v.IRON_STEEL: 'AOG', sH7v.SPS: 'AOG', sH7v.SANCTIONS: 'SAN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehxq(dc6x: 'LockManager', SCWY: 'ImportApplication', OqJk: 'ImportApplicationLicence') -> str:\n if not SCWY.licence_reference:\n SCWY.licence_reference = UQNC(dc6x, prefix=HAg4.IMPORT_LICENCE_DOCUMENT, use_year=False)\n SCWY.save()\n UTEr = 'paper' if OqJk.issue_paper_licence_only else 'el... | [
"0.8158571",
"0.58951724",
"0.5705459",
"0.552659",
"0.5513532",
"0.5510227",
"0.5479656",
"0.5476317",
"0.5381874",
"0.5352439",
"0.5331197",
"0.53209865",
"0.5313982",
"0.52937925",
"0.5286909",
"0.527343",
"0.527343",
"0.5249496",
"0.5243767",
"0.5243767",
"0.5243767",
"... | 0.5391313 | 8 |
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | def iquo(YKHO) -> h8nf[ZHT8.Protocol]:
return YKHO.__protocol | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V9Vu(YKHO) -> str:\n return qe4Y.get(YKHO, 'ip_protocol')",
"def V9Vu(YKHO) -> str:\n return qe4Y.get(YKHO, 'ip_protocol')",
"def V9Vu(YKHO) -> str:\n return qe4Y.get(YKHO, 'ip_protocol')",
"def V9Vu(YKHO) -> str:\n return qe4Y.get(YKHO, 'ip_protocol')",
"def V9Vu(YKHO) -> h8nf[str]:\n r... | [
"0.8144271",
"0.8144271",
"0.8144271",
"0.8144271",
"0.8021347",
"0.78960544",
"0.78353566",
"0.75574595",
"0.742274",
"0.742274",
"0.73692816",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
"0.7254394",
... | 0.65029037 | 85 |
The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | def bIwZ(YKHO) -> h8nf[int]:
return YKHO.__port | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIwZ(YKHO) -> h8nf[int]:\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port",
"def bIwZ(YKHO):\n return YKHO._port... | [
"0.7738312",
"0.7661778",
"0.7661778",
"0.7661778",
"0.7661778",
"0.7661778",
"0.7661778",
"0.76388866",
"0.76388866",
"0.76330125",
"0.76315325",
"0.76315325",
"0.76044506",
"0.76044506",
"0.76044506",
"0.76044506",
"0.76044506",
"0.76044506",
"0.76044506",
"0.76044506",
"0.... | 0.77369696 | 1 |
Get a random element from the set. | def UIrZ(YKHO):
if YKHO.count == 0:
return False
YRbF = ajWY(1, YKHO.count)
return YKHO.dic[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def UIrZ(YKHO) -> int:\n IZL_ = YKHO.randomizedSet.pop()\n YKHO.randomizedSet.add(IZL_)\n return IZL_",
"def UIrZ(YKHO):\n or8S = tuKI.randint(0, YKHO.length - 1... | [
"0.78055954",
"0.77602583",
"0.76503676",
"0.69756",
"0.6970386",
"0.69696873",
"0.69170576",
"0.6903906",
"0.68794334",
"0.6843657",
"0.68179744",
"0.68171364",
"0.6815859",
"0.6779796",
"0.6774275",
"0.6763151",
"0.67292315",
"0.6693236",
"0.6683133",
"0.66699433",
"0.66512... | 0.6747374 | 16 |
Returns the transactions for this account. | def gQVK(YKHO, qoqK: Optional[int]=Az6F, bNfU: int=lJHs, jGRS: str=None, pw_q: datetime=None, ZsYj: datetime=None, Ghho: str=None, TZ9E: str=None) -> 'PaginatedList[Transaction]':
return YKHO._client.transactions(limit=qoqK, page_size=bNfU, status=jGRS, since=pw_q, until=ZsYj, category=Ghho, tag=TZ9E, account_id=YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HkQT(YKHO, ZrNc):\n raise NotImplementedError('Method not implemented')",
"def HkQT(YKHO):\n return YKHO._get('/me/transactions')",
"def HkQT(YKHO):\n return YKHO.transactions",
"def HkQT(YKHO):\n return YKHO.__transactions",
"def gQVK(YKHO):\n return YKHO._query_api_object(T74E, '/rest/... | [
"0.8655319",
"0.84952134",
"0.8452648",
"0.83004075",
"0.8260213",
"0.8259047",
"0.8171364",
"0.8081784",
"0.8045175",
"0.80304325",
"0.77959937",
"0.7644659",
"0.7584588",
"0.7530386",
"0.7510304",
"0.73778385",
"0.736625",
"0.7363776",
"0.73321545",
"0.73299176",
"0.7270242... | 0.69417524 | 31 |
Return the representation of the account. | def wHJl(YKHO) -> str:
return f"<Account '{YKHO.name}' ({YKHO.type}): {YKHO.balance} {YKHO.currency}>" | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Ylbp = '*** Account Info ***\\n'\n Ylbp += 'Account ID: ' + str(YKHO.number) + '\\n'\n Ylbp += 'Holder: ' + YKHO.holder + '\\n'\n Ylbp += 'Balance: ' + str(YKHO.balance) + '\\n'\n return Ylbp",
"def wHJl(YKHO) -> str:\n return '<Twilio.Accounts.V1>'",
"def zAg0(YKHO):\n r... | [
"0.76027447",
"0.74460447",
"0.70516384",
"0.7036605",
"0.70153826",
"0.7012375",
"0.6994827",
"0.69888914",
"0.69812673",
"0.6971643",
"0.69680315",
"0.69580936",
"0.69427073",
"0.693872",
"0.6923286",
"0.68960285",
"0.6869717",
"0.6864669",
"0.6849305",
"0.683663",
"0.68154... | 0.8091021 | 0 |
The cost function for logistic regression | def qzBL(q7In, EcVT, LVAh):
Mkmy = m1Hg(EcVT.dot(q7In.reshape(EcVT.shape[1], 1)))
XP5J = -1 * oyIN.log(Mkmy)
vexM = -1 * oyIN.log(1 - Mkmy)
a1PO = oyIN.ones([1, EcVT.shape[0]]) - LVAh.reshape(1, EcVT.shape[0])
SCpB = LVAh.reshape(1, EcVT.shape[0]).dot(XP5J) + a1PO.dot(vexM)
sSN_ = SCpB / EcVT.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Il7w(YKHO, q7In, FhWq=0):\n EcVT = YKHO.X\n LVAh = YKHO.y\n C7Ls = 1 / (1 + oyIN.exp(-oyIN.matmul(EcVT, q7In)))\n assert C7Ls.shape == LVAh.shape\n r8hN = len(LVAh)\n sSN_ = sum(-LVAh * oyIN.log(C7Ls) - (1 - LVAh) * oyIN.log(1 - C7Ls))\n sSN_ = sSN_ / r8hN\n return sSN_",
"def SdiN(WK... | [
"0.8066541",
"0.80165523",
"0.7916839",
"0.78838754",
"0.78198725",
"0.77795833",
"0.77123606",
"0.76460594",
"0.7574094",
"0.75426483",
"0.74070096",
"0.7398899",
"0.7381949",
"0.7362396",
"0.73281765",
"0.7326038",
"0.7268164",
"0.7263531",
"0.72571576",
"0.723888",
"0.7235... | 0.77491975 | 6 |
Test that an anonymous user cannot rate an article | def brt6(YKHO):
Fb5b, JBvl = YKHO.rate(is_authenticated=False)
YKHO.assertIn('error', Fb5b)
YKHO.assertEqual(401, JBvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ltcd(YKHO):\n Fb5b, JBvl = YKHO.rate(user=YKHO.author)\n YKHO.assertIn('You cannot rate your own article', Fb5b)\n YKHO.assertEqual(400, JBvl)",
"def _YIa(YKHO):\n Fb5b, JBvl = YKHO.rate(is_found=False)\n YKHO.assertIn('not found', Fb5b)\n YKHO.assertEqual(400, JBvl)",
"def PDZx(YKHO):\n ... | [
"0.7784285",
"0.7119499",
"0.6878881",
"0.6784588",
"0.6784588",
"0.6708932",
"0.67028743",
"0.66196525",
"0.6609979",
"0.6592319",
"0.6588961",
"0.65673596",
"0.6558669",
"0.6504015",
"0.64944077",
"0.6491583",
"0.64749706",
"0.6464406",
"0.6456788",
"0.6427389",
"0.6427389"... | 0.7966319 | 0 |
Test that an authenticated user can rate an article | def Vvc5(YKHO):
Fb5b, JBvl = YKHO.rate()
YKHO.assertIn('ratings', Fb5b)
YKHO.assertEqual(201, JBvl)
YKHO.assertIn('user', Fb5b)
YKHO.assertIn('stars', Fb5b)
Fb5b, JBvl = YKHO.rate(stars=4)
YKHO.assertIn('4', Fb5b)
Fb5b, JBvl = YKHO.rate(stars=40)
YKHO.assertEqual(400, JBvl)
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ltcd(YKHO):\n Fb5b, JBvl = YKHO.rate(user=YKHO.author)\n YKHO.assertIn('You cannot rate your own article', Fb5b)\n YKHO.assertEqual(400, JBvl)",
"def brt6(YKHO):\n Fb5b, JBvl = YKHO.rate(is_authenticated=False)\n YKHO.assertIn('error', Fb5b)\n YKHO.assertEqual(401, JBvl)",
"def TiIo(YKHO)... | [
"0.7998354",
"0.74692816",
"0.676303",
"0.6512255",
"0.6501086",
"0.64646286",
"0.64246607",
"0.6333826",
"0.62914133",
"0.62527424",
"0.6244519",
"0.6137238",
"0.6075225",
"0.6054278",
"0.6048931",
"0.6031392",
"0.6002204",
"0.5987176",
"0.5952016",
"0.5914558",
"0.5914298",... | 0.8058524 | 0 |
Test that when an article is not found an error is displayed | def _YIa(YKHO):
Fb5b, JBvl = YKHO.rate(is_found=False)
YKHO.assertIn('not found', Fb5b)
YKHO.assertEqual(400, JBvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGGc(YKHO):\n geh0 = YKHO.authorized_post_request(YKHO.create_list_article_url)\n s5ru = geh0.data['slug'] + 'no-such-article'\n bD7m = YKHO.single_article_url(s5ru)\n geh0 = YKHO.client.get(bD7m, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n Ol8d = 'No arti... | [
"0.80096585",
"0.79175615",
"0.7774146",
"0.7743218",
"0.7709414",
"0.7605203",
"0.7575004",
"0.7453725",
"0.72347",
"0.7215516",
"0.7177402",
"0.71735495",
"0.71652234",
"0.71258074",
"0.7082468",
"0.7064291",
"0.6993992",
"0.69876397",
"0.6964341",
"0.6935934",
"0.6935845",... | 0.6919629 | 21 |
Test that an author cannot rate their own article | def ltcd(YKHO):
Fb5b, JBvl = YKHO.rate(user=YKHO.author)
YKHO.assertIn('You cannot rate your own article', Fb5b)
YKHO.assertEqual(400, JBvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGty(YKHO):\n geh0 = YKHO.create_article(YKHO.login_verified_user(YKHO.user_data), YKHO.article_data)\n geh0 = YKHO.client.get('/api/articles?author=Wrong')\n YKHO.assertNotIn('Django', geh0.content.decode())\n YKHO.assertNotIn('Nerd', geh0.content.decode())",
"def _YIa(YKHO):\n Fb5b, JBvl = Y... | [
"0.71322906",
"0.7037021",
"0.6951465",
"0.67669016",
"0.6742834",
"0.66216296",
"0.64991224",
"0.6377463",
"0.63634557",
"0.6317777",
"0.62092364",
"0.61926866",
"0.61673045",
"0.60907114",
"0.60770273",
"0.6050301",
"0.6042511",
"0.60362434",
"0.6033919",
"0.6033171",
"0.60... | 0.8384662 | 0 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1, moMn=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, groups=moMn, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.0 | -1 |
Return number of used nodes, i.e. those in the MIXED or ALLOCATED states. | def CCdS(Qubi):
return len([Q6kx for Q6kx, hkxX in Qubi.iteritems() if hkxX['state'] == 'ALLOCATED' or hkxX['state'] == 'MIXED']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LkmU(YKHO):\n UHFx = 0\n for Q6kx in YKHO.IterateNodes():\n UHFx += 1\n return UHFx",
"def R1kP(YKHO):\n return YKHO.nodes",
"def OtzW(YKHO):\n return YKHO.nnodes",
"def tgFE(YKHO) -> int:\n kRap = len(YKHO.nodes)\n return kRap",
"def OtzW(YKHO):\n return YKHO.graph.numbe... | [
"0.86965793",
"0.80630475",
"0.78297997",
"0.78063446",
"0.78033406",
"0.7758786",
"0.7745414",
"0.76987374",
"0.76713574",
"0.7670907",
"0.76652265",
"0.7653543",
"0.7653489",
"0.76240367",
"0.7607976",
"0.75552726",
"0.7555143",
"0.75529057",
"0.7545213",
"0.753481",
"0.752... | 0.75569737 | 15 |
Visualize conv filters as an image (mostly for the 1st layer). Arranges filters into a grid, with some paddings between adjacent filters. | def v9W7(WZcn, hVLt=1):
def MFHL(exwG):
for YRbF in range(int(PZyS(float(exwG))), 0, -1):
if exwG % YRbF == 0:
if YRbF == 1:
print('Who would enter a prime number of filters')
return (YRbF, int(exwG / YRbF))
F7nu, EL27 = MFHL(WZcn.get_shap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WoUF(YKHO, KUnM, lzjZ, UHFx, exwG=None, YPaw=1.0, HasU=15, dw8I=9, droh=1.2, EDoJ=(412, 412), Z6fm=(0, None)):\n if exwG is None:\n exwG = int(oyIN.floor(oyIN.sqrt(len(KUnM))))\n KUnM.sort(key=lambda WKvO: WKvO[1], reverse=True)\n KUnM = KUnM[:exwG * exwG]\n NjiM = 5\n TVTK = exwG * EDoJ[... | [
"0.7409279",
"0.7223512",
"0.71972674",
"0.71885705",
"0.69414985",
"0.6922803",
"0.6721939",
"0.667767",
"0.65269756",
"0.64916056",
"0.649062",
"0.644252",
"0.6325405",
"0.63183206",
"0.63103396",
"0.63031006",
"0.6287217",
"0.6280165",
"0.627399",
"0.6270887",
"0.6266362",... | 0.0 | -1 |
Attach summaries for tensorboard | def u2Mr(SRYB, mWFP, hAEw=True, thJw=True, LNo8=False):
with ZylS.name_scope(mWFP):
if hAEw:
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.7525849",
"0.7338034",
"0.73051274",
"0.7216686",
"0.6946923",
"0.6787772",
"0.67686933",
"0.6755411",
"0.669871",
"0.66652644",
"0.66610503",
"0.6614616",
"0.655483",
"0.6519164",
"0.6512197",
"0.649488",
"0.64941794",
"0.6464891",
"0.64637506",
"0.64625937",
"0.6444357",... | 0.0 | -1 |
Gets a slice of the batch for a given index. | def hcIl(nPrm, or8S, SQ3m):
ROpF = ZylS.shape(nPrm)
zNig = ZylS.concat([ROpF[:1] // SQ3m, ROpF[1:]], axis=0)
_0fC = ZylS.concat([ROpF[:1] // SQ3m, ROpF[1:] * 0], axis=0)
yKcO = _0fC * or8S
return ZylS.slice(nPrm, yKcO, zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XLp3(YKHO, d6pt):\n assert isinstance(d6pt, slice)\n\n def BGth(bCYe):\n yKcO, JCyR = YKHO._recalc_slice(d6pt.start, d6pt.stop)\n hkxX = bCYe.lrange(YKHO.key, yKcO, JCyR)\n if d6pt.step:\n hkxX = hkxX[::d6pt.step]\n hkxX = map(YKHO._unpickle, hkxX)\n bCYe.mul... | [
"0.7743245",
"0.75031525",
"0.74971455",
"0.74930143",
"0.72123176",
"0.72007567",
"0.7198072",
"0.71889216",
"0.7159072",
"0.6971434",
"0.69103307",
"0.6909577",
"0.68985164",
"0.687523",
"0.6842698",
"0.6838649",
"0.68359673",
"0.68132585",
"0.68109053",
"0.67931366",
"0.67... | 0.70593864 | 9 |
Create upscaling branch of UNet. | def Zuz4(YKHO, rb7a=4, TVTK=2, KUnM=32, EpEz=128, QxIo=True, Wpdc=True):
assert YKHO.net is not None, 'Branches are not merged. Call merge_branches.'
for JBAi in YKHO.saved_layers:
assert JBAi is not None, 'No saved layers for branch. Call add_unet_down.'
assert len(JBAi) == rb7a - 1, 'Depth of ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlWg(YKHO, IAN4):\n Cs6h = IAN4.grid\n Fptp = Cs6h.upscale(factors=Cs6h.dimens)\n assert oyIN.all(Fptp.dimens == [1, 1, 1])\n assert oyIN.all(Fptp.coord == [[[0.0, 0.0, 0.0, 0.0, 0.0, 6.0], [0.0, 1.0, 0.0, 0.0, 1.0, 6.0]], [[2.0, 0.0, 0.0, 2.0, 0.0, 6.0], [2.0, 1.0, 0.0, 2.0, 1.0, 6.0]]])\n asse... | [
"0.66636604",
"0.6357508",
"0.6334811",
"0.6036022",
"0.6036022",
"0.59695464",
"0.5921816",
"0.58719736",
"0.5858272",
"0.57936835",
"0.57901365",
"0.5780608",
"0.57662266",
"0.57621104",
"0.5694604",
"0.56883794",
"0.5682743",
"0.5662162",
"0.56400055",
"0.56256187",
"0.560... | 0.5298801 | 63 |
test the /specimen/ page for anon user | def MFW0(YKHO):
with P4t4.test_client() as x0hE:
_hkX = x0hE.get('/specimen/12')
_R2e = _hkX.get_data(as_text=True)
YKHO.assertEqual(_hkX.status_code, 200)
YKHO.assertIn('Quercus', _R2e)
YKHO.assertNotIn('Edit', _R2e) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m5Ob(YKHO):\n with P4t4.test_client() as x0hE:\n x0hE.post('/login', data={'username': 'tester1', 'password': 'password1'}, follow_redirects=True)\n _hkX = x0hE.get('/specimen/12')\n _R2e = _hkX.get_data(as_text=True)\n YKHO.assertEqual(_hkX.status_code, 200)\n YKHO.assert... | [
"0.71364623",
"0.7077382",
"0.6969761",
"0.6969761",
"0.684719",
"0.68324167",
"0.6826031",
"0.6816108",
"0.6730391",
"0.6711473",
"0.6672732",
"0.66633266",
"0.6619622",
"0.66074836",
"0.6581151",
"0.65773356",
"0.65531343",
"0.65315324",
"0.64914924",
"0.64848614",
"0.64814... | 0.75044835 | 0 |
Sets the random_seed of this KerasOptimizationConfig. | def igb0(YKHO, igb0):
YKHO._random_seed = igb0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of(YKHO, yokr):\n YKHO.seed = yokr\n oyIN.random.seed(YKHO.seed)",
"def e3of(YKHO, V0DL=None):\n oyIN.random.seed(V0DL)",
"def yokr(YKHO, yokr=None):\n YKHO.np_random = oyIN.random.RandomState(yokr)",
"def FshV(YKHO, *qIxc, **B2fa):\n pass",
"def yokr(YKHO, yokr=None):\n YKHO.np_ran... | [
"0.7355272",
"0.72576416",
"0.720663",
"0.71185064",
"0.7114147",
"0.7098598",
"0.7044682",
"0.70416844",
"0.7002695",
"0.7000761",
"0.6991329",
"0.6982751",
"0.6974951",
"0.6963609",
"0.6958122",
"0.69329095",
"0.6903558",
"0.6903558",
"0.6903558",
"0.6903558",
"0.6890489",
... | 0.7120242 | 3 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86416155",
"0.8510352",
"0.78545547",
"0.77443707",
"0.77117187",
"0.7697595",
"0.76603293",
"0.7638324",
"0.76217484",
"0.7607743",
"0.7607743",
"0.7607743",
"0.76074046",
"0.75997984",
"0.7585864",
"0.7583017",
"0.75715595",
"0.75687325",
"0.7539626",
"0.7539626",
"0.752... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Constructs the necessary attributes for the WordGame object. | def FIMM(YKHO):
YKHO.__my_words = input('Please enter a word or sentence: ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP):\n YKHO.name = mWFP\n YKHO.words = {}\n YKHO.wordlengths = {}\n YKHO.stems = {}\n YKHO.sentencelengths = {}\n YKHO.dialogue = {}",
"def FIMM(YKHO):\n YKHO.words = {}\n YKHO.word_lengths = {}\n YKHO.stems = {}\n YKHO.sentence_lengths = {}\n YKHO.my_feature = {... | [
"0.65700936",
"0.6469143",
"0.63762337",
"0.626522",
"0.62354887",
"0.62188524",
"0.6191585",
"0.6176833",
"0.6081765",
"0.6061811",
"0.6041638",
"0.6034259",
"0.5931534",
"0.5918155",
"0.5917214",
"0.5909093",
"0.58847815",
"0.58571315",
"0.582782",
"0.57957506",
"0.5791917"... | 0.0 | -1 |
Property method to return the value of the user inputted word or sentence. | def mtAQ(YKHO):
return YKHO.__my_words | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kp__(YKHO):\n YKHO.userInput = _G0M('Enter String value:')",
"def wBK6():\n return input('\\nPlease enter a noun: ')",
"def IxSf() -> str:\n pass",
"def QRiV(YKHO):\n return YKHO.term_input.get()",
"def JPtZ(YKHO) -> str:\n fZOT: str = input('Please enter a Start word: ').lower()\n hl... | [
"0.69501173",
"0.6902579",
"0.6635555",
"0.65551937",
"0.65306646",
"0.64966357",
"0.6361091",
"0.6352121",
"0.6352121",
"0.6340393",
"0.62969995",
"0.6296598",
"0.62939525",
"0.6284968",
"0.6284399",
"0.6280925",
"0.6271378",
"0.6243039",
"0.62144613",
"0.6210534",
"0.617492... | 0.0 | -1 |
Gets the realtime_cic of this OrganizationFeatures. | def dQ9R(YKHO):
return YKHO._realtime_cic | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dQ9R(YKHO, dQ9R):\n YKHO._realtime_cic = dQ9R",
"def Hx3G(YKHO):\n return YKHO._cct",
"def ekwu(YKHO):\n YJDD = oyIN.sqrt(oyIN.diag(YKHO.cov_00))\n return oyIN.dot(YKHO.cov_00, YKHO.eigenvectors[:, :YKHO.output_dimension()]) / YJDD[:, oyIN.newaxis]",
"def oZuw(YKHO):\n return YKHO.ricciten... | [
"0.64137286",
"0.5747837",
"0.56824654",
"0.55652773",
"0.5554709",
"0.5554709",
"0.55010074",
"0.5435906",
"0.5302335",
"0.5286089",
"0.5261449",
"0.52608377",
"0.52487946",
"0.52487946",
"0.5244619",
"0.523286",
"0.52099144",
"0.5204327",
"0.5189107",
"0.51690465",
"0.51563... | 0.8014772 | 0 |
Gets the hipaa of this OrganizationFeatures. | def mxoX(YKHO):
return YKHO._hipaa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxoX(YKHO, mxoX):\n YKHO._hipaa = mxoX",
"def V2Wq(YKHO):\n return YKHO._alh",
"def YqAF(YKHO):\n return YKHO._heketi",
"def am1e(YKHO):\n Hnxh = YKHO.data['featurecollection'][0]['feature']\n am1e = Hnxh['features'][0]['properties']['HUCID']\n return am1e",
"def ywbh(YKHO):\n retu... | [
"0.6029421",
"0.58393145",
"0.5637811",
"0.5578172",
"0.5286765",
"0.52072495",
"0.5187184",
"0.5181036",
"0.51331407",
"0.5106868",
"0.5070552",
"0.5037639",
"0.50340575",
"0.5013352",
"0.50083005",
"0.4987941",
"0.4975478",
"0.49642166",
"0.4953634",
"0.4942287",
"0.4935934... | 0.8118996 | 0 |
Gets the uc_enabled of this OrganizationFeatures. | def gMkR(YKHO):
return YKHO._uc_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gMkR(YKHO, gMkR):\n YKHO._uc_enabled = gMkR",
"def V4BH(YKHO):\n return YKHO._get_attribute('enabled')",
"def V4BH(YKHO):\n return YKHO._get_attribute('enabled')",
"def V4BH(YKHO):\n return YKHO._get_attribute('enabled')",
"def V4BH(YKHO):\n return YKHO._get_attribute('enabled')",
"def... | [
"0.61863416",
"0.60076904",
"0.60076904",
"0.60076904",
"0.60076904",
"0.60076904",
"0.5999471",
"0.59795827",
"0.59396183",
"0.5812733",
"0.5787089",
"0.5787089",
"0.57805246",
"0.57775646",
"0.57775646",
"0.57775646",
"0.57775646",
"0.57775646",
"0.57775646",
"0.57775646",
... | 0.79891074 | 0 |
Gets the pci of this OrganizationFeatures. | def Ib7R(YKHO):
return YKHO._pci | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZ7F(cuiw):\n return nvv3(['lspci', '-vmmnk'])",
"def wqL3(YKHO):\n return YKHO._gpu",
"def Ib7R(YKHO, Ib7R):\n YKHO._pci = Ib7R",
"def GHbR(YKHO):\n mjO6 = '^.*Bus(\\\\s+)(\\\\d+), device(\\\\s+)(\\\\d+), function (\\\\d+)'\n KHu6 = '^.*id \\\\\"(.*)\\\\\"'\n wIZv = []\n yvT9 = YKHO... | [
"0.563487",
"0.53783923",
"0.5377464",
"0.5374193",
"0.5367394",
"0.53476655",
"0.5307762",
"0.5293526",
"0.52902085",
"0.52872354",
"0.5274799",
"0.5274799",
"0.52299875",
"0.51026106",
"0.50869477",
"0.50539356",
"0.5039658",
"0.5038246",
"0.50303656",
"0.49987486",
"0.4980... | 0.8007812 | 0 |
Gets the xmpp_federation of this OrganizationFeatures. | def jmNG(YKHO):
return YKHO._xmpp_federation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmNG(YKHO, jmNG):\n YKHO._xmpp_federation = jmNG",
"def Hj_8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'federation_id')",
"def Hj_8(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'federation_id')",
"def Hj_8(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'federation_id')"... | [
"0.67502344",
"0.62424505",
"0.5986457",
"0.58208376",
"0.5641723",
"0.547717",
"0.52506876",
"0.508068",
"0.4976968",
"0.49371743",
"0.48166984",
"0.47950637",
"0.4691775",
"0.4594038",
"0.45628583",
"0.45628583",
"0.45080727",
"0.44728634",
"0.446856",
"0.4459979",
"0.44483... | 0.8501147 | 0 |
Gets the chat of this OrganizationFeatures. | def khKA(YKHO):
return YKHO._chat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UrV6(YKHO):\n if YKHO._effective_chat:\n return YKHO._effective_chat\n khKA = None\n if YKHO.message:\n khKA = YKHO.message.chat\n elif YKHO.edited_message:\n khKA = YKHO.edited_message.chat\n elif YKHO.callback_query and YKHO.callback_query.message:\n khKA = YKHO.cal... | [
"0.6844461",
"0.67933214",
"0.63830006",
"0.635674",
"0.6267709",
"0.6100284",
"0.6051146",
"0.5999908",
"0.59260446",
"0.5757412",
"0.57038546",
"0.56489223",
"0.56336844",
"0.5616448",
"0.55664647",
"0.55389684",
"0.5515076",
"0.5500918",
"0.5500237",
"0.54174733",
"0.54159... | 0.76508313 | 0 |
Gets the unified_communications of this OrganizationFeatures. | def ymnK(YKHO):
return YKHO._unified_communications | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VpUO(YKHO):\n return YKHO._communities.values()",
"def _49d(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'communities')",
"def MebX(YKHO):\n rBjP = YKHO.client.icommunity.list()\n return rBjP",
"def ymnK(YKHO, ymnK):\n YKHO._unified_communications = ymnK",
"def VpU... | [
"0.6401607",
"0.6397407",
"0.6228964",
"0.61862946",
"0.613149",
"0.5769834",
"0.5646257",
"0.5629766",
"0.5522351",
"0.54985183",
"0.5440368",
"0.5361301",
"0.53493273",
"0.52295536",
"0.5185026",
"0.5074672",
"0.49731946",
"0.49632832",
"0.49492803",
"0.49395838",
"0.492539... | 0.8270922 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 24 |
'''given a multiline text, removes identation >>> remove_identation_multiline_string("""Complex is better than complicated. Flat is better than nested.""") "Complex is better than complicated. Flat is better than nested." ''' | def fk4N(l5Ny):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEWc(Pml0: MultilineStr) -> str:\n Pml0 = Pml0.expandtabs(4)\n Nqlg = M4p5(Pml0.split('\\n'), trim='')\n if not Nqlg:\n return ''\n dtZg = ZpDX(Nqlg[0], char=' ')\n Nqlg = TQkT(Nqlg, dtZg)\n return '\\n'.join(Nqlg)",
"def IEWc(fWxu: str) -> str:\n return TI0e.dedent(pSVw(fWxu))",
... | [
"0.6851365",
"0.67004794",
"0.6436783",
"0.63696814",
"0.6239573",
"0.6156523",
"0.5953747",
"0.59311384",
"0.5878074",
"0.58603436",
"0.58492976",
"0.5848328",
"0.5845451",
"0.5829036",
"0.58232194",
"0.57717276",
"0.5770793",
"0.57473665",
"0.5745438",
"0.57107025",
"0.5707... | 0.8861875 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
azoT = OVEI.from_dictionary(cmPJ.get('attributes')) if cmPJ.get('attributes') else None
si3H = cmPJ.get('constant')
JBZA = cmPJ.get('description')
id = cmPJ.get('id')
PFXX = cmPJ.get('isArray')
EN6N = cmPJ.get('isAttribute')
bEBg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Init an EdmodoApi object. | def FIMM(YKHO, rJDA, DRaz=False):
YKHO.api_key = rJDA
if DRaz:
YKHO.base_url = 'https://appsapi.edmodobox.com/%s/' % YKHO.VERSION
else:
YKHO.base_url = 'https://appsapi.edmodo.com/%s/' % YKHO.VERSION
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO) -> None:\n YKHO.api = fyIx()",
"def FIMM(YKHO, nNXP: OpVersion) -> None:\n YKHO.api = nNXP",
"def E14P(YKHO, **B2fa):\n from .. import Devices, Instances, Users, Vulnerabilities\n YKHO.api_devices: Devices = Devices(auth=YKHO.auth, **B2fa)\n 'API model for cross reference.'\n Y... | [
"0.7372221",
"0.6927232",
"0.69234025",
"0.6899757",
"0.6838372",
"0.6645712",
"0.6645712",
"0.6645712",
"0.6614778",
"0.6593425",
"0.65529406",
"0.6504591",
"0.6463446",
"0.6463446",
"0.6457454",
"0.643613",
"0.643613",
"0.643613",
"0.643613",
"0.6427589",
"0.6423366",
"0.... | 0.6204736 | 33 |
Deletes the undirected edge between vertex v and w from the graph. | def Qmvo(YKHO, Ty9i: int, yzQ0: int) -> None:
if yzQ0 in YKHO._adj[Ty9i] and Ty9i in YKHO._adj[yzQ0]:
YKHO._adj[Ty9i].remove(yzQ0)
YKHO._adj[yzQ0].remove(Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, P6bq, Ty9i):\n YKHO.graph.remove_edge(P6bq, Ty9i)",
"def AYvI(YKHO, Ty9i: Vertex):\n WKvO = Ty9i.element()\n for D70y in YKHO.incident_edges(Ty9i, outgoing=False):\n YKHO.remove_edge(D70y)\n del Ty9i\n return WKvO",
"def yKa3(YKHO, P6bq, Ty9i):\n if YKHO.is_Matrix == Tru... | [
"0.7633407",
"0.74667513",
"0.7453429",
"0.743099",
"0.73377234",
"0.73132074",
"0.7285572",
"0.7226061",
"0.7139301",
"0.7124469",
"0.7123299",
"0.71085286",
"0.70743763",
"0.70731866",
"0.7041786",
"0.70204663",
"0.6954555",
"0.6907477",
"0.690115",
"0.68523496",
"0.6805680... | 0.8621375 | 0 |
Returns the degree of vertex v. | def tjON(YKHO, Ty9i):
YKHO._validate_vertex(Ty9i)
return len(YKHO._adj[Ty9i]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjON(YKHO, XV92: Hashable) -> AzJI[int, int]:\n if XV92 not in YKHO._vertices:\n raise IRDu(f\"vertex '{XV92}' isn't in the graph '{YKHO}'\")\n return (YKHO.in_degree(XV92), YKHO.out_degree(XV92))",
"def tjON(YKHO, Ty9i):\n if Ty9i not in YKHO._Gr.getVertices():\n return None\n retu... | [
"0.8331433",
"0.80309784",
"0.7997779",
"0.79438734",
"0.79103386",
"0.7849012",
"0.77187496",
"0.76210445",
"0.7579744",
"0.7514521",
"0.74695957",
"0.73825216",
"0.71996427",
"0.717505",
"0.71244746",
"0.71112275",
"0.69658315",
"0.69654614",
"0.69654614",
"0.69524467",
"0.... | 0.86530215 | 0 |
Username must be unique so we check against the database to ensure it doesn't | def QMK0(L03z, Jyyj):
Aofo = Ditx.query.filter_by(username=L03z.username.data).count()
if Aofo > 0:
Jyyj.errors.append('A user with this username has already registered.')
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3WL(YKHO, NtEF):\n if NtEF.data != c5ow.username:\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('The username is used already')",
"def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise s... | [
"0.82146215",
"0.808895",
"0.80180746",
"0.79603785",
"0.79522943",
"0.7950435",
"0.79129106",
"0.79021126",
"0.787928",
"0.78662133",
"0.78496766",
"0.7847796",
"0.78427523",
"0.782316",
"0.78181547",
"0.7805044",
"0.78012437",
"0.7798921",
"0.7789863",
"0.77727586",
"0.7742... | 0.71310717 | 66 |
Convert string to token indices. | def hfK9(YKHO, l5Ny):
return YKHO.dict.txt2vec(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, l5Ny):\n s2mk = ZylS.strings.unicode_split(l5Ny, 'UTF-8')\n if isinstance(s2mk, ZylS.RaggedTensor):\n s2mk = s2mk.to_tensor(default_value=Sbzz)\n _0VL = YKHO.char2idx_table.lookup(s2mk)\n return _0VL",
"def quvW(YKHO, Rhv4: tf.Tensor) -> ZylS.Tensor:\n return YKHO._string_to_... | [
"0.6877401",
"0.67897266",
"0.6760222",
"0.6710777",
"0.67038",
"0.6602709",
"0.6549863",
"0.6496731",
"0.6427748",
"0.64182407",
"0.63766336",
"0.63559914",
"0.6355623",
"0.62906134",
"0.6269374",
"0.6265198",
"0.6237314",
"0.61613715",
"0.61560565",
"0.61249447",
"0.6096223... | 0.0 | -1 |
Convert token indices to string of tokens. | def z5kj(YKHO, he6J):
return YKHO.dict.vec2txt(he6J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dP1x(YKHO, _0VL: Union[int, List[int]]) -> uLKX[str, x1iM[str]]:\n if isinstance(_0VL, list):\n return [YKHO._idx_to_token[or8S] for or8S in _0VL]\n else:\n return YKHO._idx_to_token[_0VL]",
"def dP1x(YKHO, _0VL):\n hhFd = False\n if not isinstance(_0VL, list):\n _0VL = [_0VL... | [
"0.7669736",
"0.74461126",
"0.736086",
"0.7356544",
"0.69345087",
"0.6867405",
"0.685056",
"0.68393046",
"0.68068093",
"0.68038034",
"0.67268825",
"0.6700792",
"0.6689665",
"0.66319245",
"0.64892733",
"0.6417549",
"0.64023054",
"0.63976526",
"0.6379721",
"0.63459533",
"0.6336... | 0.0 | -1 |
Converts hidden state vectors into indices into the dictionary. | def nNvz(YKHO, Zode, ReNU=False):
if Zode.size(0) > 1:
raise RuntimeError('bad dimensions of tensor:', Zode)
Zode = Zode.squeeze(0)
cCrA = YKHO.d2o(Zode)
if ReNU:
cCrA = YKHO.dropout(cCrA)
cCrA = YKHO.softmax(cCrA)
I_UC, or8S = cCrA.max(1)
return (or8S, cCrA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdzk(YKHO, cAlv, V06R):\n iJKf = oyIN.concatenate((V06R, [1]))\n XcU5 = []\n for YRbF in range(len(iJKf)):\n if YRbF == 0:\n eiBr = cAlv[0:iJKf[YRbF]]\n else:\n eiBr = cAlv[iJKf[YRbF - 1]:iJKf[YRbF - 1] + iJKf[YRbF]]\n XcU5.append(eiBr)\n yv6U = range(1, l... | [
"0.67127806",
"0.623144",
"0.62195027",
"0.6198908",
"0.6172852",
"0.6136626",
"0.6118146",
"0.60644895",
"0.6060945",
"0.60343456",
"0.6022827",
"0.6009145",
"0.5988001",
"0.59867716",
"0.5981009",
"0.5981009",
"0.5981009",
"0.5968189",
"0.59420025",
"0.5930943",
"0.5920244"... | 0.5880848 | 24 |
Returns a table of relevant stimulus_conditions. Returns | def bAHY(YKHO):
if YKHO._stimulus_conditions is None:
Wunn = YKHO.stim_table['stimulus_condition_id'].unique()
YKHO._stimulus_conditions = YKHO.ecephys_session.stimulus_conditions[YKHO.ecephys_session.stimulus_conditions.index.isin(Wunn)]
return YKHO._stimulus_conditions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMGD(YKHO):\n if YKHO._conditionwise_statistics is None:\n YKHO._conditionwise_statistics = YKHO.ecephys_session.conditionwise_spike_statistics(YKHO.stim_table.index.values, YKHO.unit_ids)\n return YKHO._conditionwise_statistics",
"def iPqd(YKHO) -> qe4Y.Output[GySg[str, str]]:\n return qe4Y.... | [
"0.6856616",
"0.65477353",
"0.65265536",
"0.64831346",
"0.64831346",
"0.64831346",
"0.64751047",
"0.64611244",
"0.6407273",
"0.63696086",
"0.63685334",
"0.63647914",
"0.6308494",
"0.6286202",
"0.62679875",
"0.6261906",
"0.624586",
"0.6243601",
"0.61972755",
"0.6157227",
"0.61... | 0.79986674 | 0 |