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 |
|---|---|---|---|---|---|---|
Generate a random string | def e7Tf(y0cW, u54L):
return y0cW + ''.join([tuKI.choice(vIwR.ascii_lowercase) for YRbF in range(tuKI.randint(4, u54L))]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in... | [
"0.86462486",
"0.83785206",
"0.8227969",
"0.8174922",
"0.81455547",
"0.80791825",
"0.8054995",
"0.80422395",
"0.80208045",
"0.80147576",
"0.8006175",
"0.79879594",
"0.79409",
"0.7928403",
"0.79224646",
"0.7908624",
"0.7900033",
"0.7900033",
"0.78999007",
"0.7872771",
"0.78683... | 0.0 | -1 |
Returns a JSON response, transforming 'context' to make the payload. | def EK31(YKHO, QpfX, **TIVb):
return jnRN(YKHO.get_data(QpfX), **TIVb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4iE(YKHO, QpfX, **TIVb):\n TIVb['content_type'] = 'application/json'\n return YKHO.json_response_class(qQXR.dumps(QpfX), **TIVb)",
"def EK31(YKHO, QpfX, **TIVb):\n return igJ6(qQXR.dumps(QpfX), content_type='application/json', **TIVb)",
"def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(Qp... | [
"0.7995763",
"0.77249134",
"0.770435",
"0.770435",
"0.76753193",
"0.76753193",
"0.76446885",
"0.7582211",
"0.7538711",
"0.7429256",
"0.7421507",
"0.7421507",
"0.7421507",
"0.74140453",
"0.7145266",
"0.7081657",
"0.70215803",
"0.6992469",
"0.69255745",
"0.66316104",
"0.6631610... | 0.74089426 | 15 |
Returns the largest value in the interval. If the interval is empty, returns None. | def max(YKHO):
if not YKHO._extents:
return None
else:
return sum(YKHO._extents[-1]) - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CjUr(YKHO):\n if YKHO:\n return YKHO.intervals[-1][1]\n return None",
"def max(YKHO):\n KCHu = [Ty9i[0] for Ty9i in YKHO if Ty9i[0] is not None]\n if KCHu:\n return max(KCHu)\n else:\n return None",
"def hWiv(mSrU):\n if not len(mSrU):\n bQ6z = None\n else:\... | [
"0.83208454",
"0.71182054",
"0.7092114",
"0.7077956",
"0.6999094",
"0.69511044",
"0.6908781",
"0.6829829",
"0.68254435",
"0.6806893",
"0.6806003",
"0.6801877",
"0.67900974",
"0.6788907",
"0.67567664",
"0.67549354",
"0.6741837",
"0.6737684",
"0.6735741",
"0.6735377",
"0.672867... | 0.65463066 | 32 |
Returns a SQLAlchemy session currently just gets the current session from the threadlocal session context, but this is provided to allow migration toward a more SQLAlchemy 0.4 style of use. | def Dvct(YKHO):
return YKHO.app.model.context.current | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN(YKHO):\n DMju = fKRS(bind=YKHO.engine)\n return DMju()",
"def cuiw(YKHO):\n if not YKHO.parallel:\n return YKHO.cai_session\n if hasattr(YKHO._local, 'cai_session'):\n return YKHO._local.cai_session\n YKHO._local.cai_session = NCls.create_readonly_session(engine=YKHO.engine)... | [
"0.79535615",
"0.78865284",
"0.7832504",
"0.777168",
"0.77242535",
"0.7642808",
"0.7633496",
"0.7617598",
"0.7617598",
"0.7613034",
"0.76102257",
"0.75827044",
"0.75381887",
"0.7527177",
"0.7491425",
"0.74432594",
"0.7422711",
"0.7420299",
"0.73896545",
"0.7375359",
"0.737184... | 0.73378694 | 23 |
Return the current user if logged in or None. | def TKWP(YKHO):
if YKHO.galaxy_session:
return YKHO.galaxy_session.user
else:
return YKHO.__user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n if fnHH is not None:\n CBIr = YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])\n return CBIr\n return None",
"def W84Y():\n CBIr = getattr(dSLr, 'user', None)\n if CBIr:\n return CBIr\n else:\n return fC... | [
"0.87897575",
"0.84414786",
"0.8363082",
"0.8350689",
"0.8341245",
"0.8337597",
"0.8331058",
"0.833104",
"0.8288392",
"0.82000035",
"0.8191723",
"0.8184226",
"0.8179295",
"0.81308544",
"0.8109708",
"0.8108785",
"0.81050384",
"0.8101788",
"0.80830425",
"0.8062552",
"0.80372775... | 0.8011527 | 25 |
This takes as input the directory and file name (separately). The localDirectory should end in '/'. If the file exists, return True False otehrwise. | def x15s(GlTm, m7Kz):
nyyK = False
if GlTm[len(GlTm) - 1:] != '/':
GlTm = GlTm + '/'
if Hy7s.path.isfile(GlTm + m7Kz):
nyyK = True
return nyyK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TFmP(qaEx):\n if Hy7s.path.exists(str(qaEx).rstrip()):\n return True\n return False",
"def g0qT(YKHO) -> bool:\n rAod = YKHO.get_local_path()\n return Hy7s.path.isdir(rAod) if rAod is not None else False",
"def fepa(nUeQ, AGPF):\n bo34.debug('checking if file {0} exists in {1} directo... | [
"0.73893565",
"0.7145454",
"0.7069654",
"0.70611054",
"0.7030349",
"0.6962106",
"0.69610226",
"0.6931971",
"0.69066846",
"0.69012934",
"0.6883485",
"0.6878905",
"0.683698",
"0.68360645",
"0.67767555",
"0.67767555",
"0.67109555",
"0.6651929",
"0.6648391",
"0.6642231",
"0.66406... | 0.8319306 | 0 |
Function to add interaction terms in multiday ARX model. | def ZOxa(jQ3Z):
Rb9k = jQ3Z.copy()
for CjKC in ['Saturday', 'Sunday', 'Monday']:
Rb9k[f'{CjKC}_Price_MWh_l1'] = Rb9k[CjKC].multiply(Rb9k.Price_MWh_l1)
Rb9k['Monday_Price_MWh_l3'] = Rb9k['Monday'].multiply(Rb9k.Price_MWh_l1.shift(2))
return Rb9k.assign(Price_MWh_l1=Rb9k.mask((Rb9k.Saturday == 1) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zE6L(YKHO, *, NHn2: list[ModelType | dict]) -> None:\n for OXAZ in NHn2:\n YKHO.add(term=OXAZ)",
"def CaoY(YKHO, *qIxc):\n return KFJf.indx3___iadd__(YKHO, *qIxc)",
"def FOdN(YKHO, *qIxc):\n return KFJf.indx3___add__(YKHO, *qIxc)",
"def NHn2(YKHO, *qIxc, **B2fa):\n pass",
"def MDu0(Y... | [
"0.5812198",
"0.5603454",
"0.5504956",
"0.52988523",
"0.52822644",
"0.5263297",
"0.52535367",
"0.5169778",
"0.5140624",
"0.5121035",
"0.5114817",
"0.51067775",
"0.5094891",
"0.5082496",
"0.50689876",
"0.50598556",
"0.5044322",
"0.50135875",
"0.50015783",
"0.49527857",
"0.4935... | 0.0 | -1 |
Add the word word to this category if it is not already present, otherwise increase the frequency count of this word. | def NrOU(YKHO, GIN8):
if GIN8 not in YKHO._words:
YKHO._words[GIN8] = 1
else:
YKHO._words[GIN8] += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NrOU(YKHO, GIN8):\n YKHO.__number_of_words += 1\n if GIN8 in YKHO.__bag_of_words:\n YKHO.__bag_of_words[GIN8] += 1\n else:\n YKHO.__bag_of_words[GIN8] = 1",
"def NrOU(YKHO, GIN8):\n if GIN8 not in YKHO.word_to_index:\n YKHO.word_to_index[GIN8] = YKHO.n_words\n YKHO.ind... | [
"0.7932015",
"0.7930944",
"0.78783023",
"0.7813821",
"0.779818",
"0.77102417",
"0.761689",
"0.7575801",
"0.75411093",
"0.7490023",
"0.74180627",
"0.7369764",
"0.7292804",
"0.7243733",
"0.72198606",
"0.7185312",
"0.7183572",
"0.7181607",
"0.717622",
"0.71298075",
"0.7119203",
... | 0.80391127 | 0 |
Returns the reward based on distance to center line and delta heading | def JB6y(uzeU, jL6_, _2Qr, Ziv4, JAPK=1.0, pEdD=-1.0, _mSQ=[0.6, 0.4, 0.5]):
j0_R = max(JAPK - (uzeU / 0.6) ** 3, pEdD)
xbbD = max(1 - jL6_ / (1 / 3 * 90), pEdD)
vOGg = _mSQ[0] * j0_R + _mSQ[1] * xbbD
return vOGg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(YKHO):\n xlgI, PyTM, uczc = YKHO.sim.pose[:3]\n O5np, mdM9, xPiK = YKHO.target_pos\n lE0s = (YKHO.sim.pose[:3] - YKHO.target_pos) ** 2\n YKHO.euclidean_distance = oyIN.sqrt(lE0s.sum())\n vOGg = 1.5 * oyIN.tanh(2 - YKHO.euclidean_distance / 50)\n vOGg += 0.4 * oyIN.tanh(YKHO.sim.v[2] / 10... | [
"0.7311294",
"0.7282471",
"0.71933573",
"0.6964426",
"0.69192487",
"0.6870947",
"0.683552",
"0.6814709",
"0.6790315",
"0.67856574",
"0.67837375",
"0.6736518",
"0.6735984",
"0.6709755",
"0.6700798",
"0.6693072",
"0.6693072",
"0.6683066",
"0.66569966",
"0.6574881",
"0.64971346"... | 0.76310533 | 0 |
Compute value of inclination, I. | def ipRX(WKvO, LVAh, epBp, P6bq, Ty9i, yzQ0):
GUkd = WKvO * Ty9i - LVAh * P6bq
nQ85 = oyIN.sqrt((LVAh * yzQ0 - epBp * Ty9i) ** 2 + (epBp * P6bq - WKvO * yzQ0) ** 2 + (WKvO * Ty9i - LVAh * P6bq) ** 2)
return oyIN.arccos(GUkd / nQ85) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uu4R(YKHO):\n YKHO.integration += YKHO.currentInput\n if isinstance(YKHO.integration, gyIm):\n YKHO.integration = qw7D([YKHO._calculate_antiwindup(WKvO) for WKvO in YKHO.integration])\n else:\n YKHO.integration = YKHO._calculate_antiwindup(YKHO.integration)\n return YKHO.Ki * YKHO.int... | [
"0.6916164",
"0.6699619",
"0.6504187",
"0.6503879",
"0.6472544",
"0.6443144",
"0.6409629",
"0.6400638",
"0.6217128",
"0.6194448",
"0.618298",
"0.6150108",
"0.6120176",
"0.6099744",
"0.60487384",
"0.6042056",
"0.6042056",
"0.6003441",
"0.59553367",
"0.59357053",
"0.5926883",
... | 0.0 | -1 |
Perform core Gauss method. | def xTwR(AgaA, _Jrn, A3Vt, yGTL, luIL=0):
n2Q1 = _Jrn[0]
SpII = _Jrn[1]
WotO = _Jrn[2]
fy7g = HlWk(AgaA[0].ra.rad, AgaA[0].dec.rad)
IMyn = HlWk(AgaA[1].ra.rad, AgaA[1].dec.rad)
EfLN = HlWk(AgaA[2].ra.rad, AgaA[2].dec.rad)
WUJw = n2Q1 - SpII
XfeX = WotO - SpII
jmzt = XfeX - WUJw
X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, WKvO):\n return YKHO._gauss(WKvO, *YKHO.params)",
"def fwbF(YKHO, WKvO, jzdc, Fg_i, Z9rn):\n return jzdc * oyIN.exp(-0.5 * ((WKvO - Fg_i) / Z9rn) ** 2)",
"def b8X7(YKHO, AAjk):\n raise NotImplementedError()",
"def liMP(k0lF: Matrix, Fg_i: Vector):\n exwG = len(Fg_i)\n k0lF, Fg_i... | [
"0.7808567",
"0.71930045",
"0.69844586",
"0.6802826",
"0.674851",
"0.67478323",
"0.6737113",
"0.67342716",
"0.66914666",
"0.6677376",
"0.66570616",
"0.6624967",
"0.6621866",
"0.6608311",
"0.65993273",
"0.6577471",
"0.6572771",
"0.65627795",
"0.65164685",
"0.6507245",
"0.64782... | 0.0 | -1 |
translate shp into [ag0,ag1,ag2] | def A1uy(BLg0):
wjhC = []
for YRbF in range(0, len(BLg0)):
if type(BLg0[YRbF]) == tuple:
wjhC.append(BLg0[YRbF][0] * BLg0[YRbF][1])
else:
wjhC.append(BLg0[YRbF])
return wjhC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OkgQ(kQp9, hnFq):\n uRs1 = []\n fhFQ = []\n hnFq = sorted(hnFq, key=lambda WKvO: len(WKvO), reverse=True)\n for WKvO, Wmjn in enumerate(hnFq):\n I1mm = True\n for a1PO, MMRL in enumerate(uRs1):\n if U2Jm(Wmjn, MMRL):\n fhFQ[a1PO] += [WKvO]\n I1... | [
"0.5821704",
"0.57211494",
"0.5523013",
"0.54992455",
"0.53724915",
"0.5357451",
"0.5302319",
"0.52805847",
"0.52213824",
"0.51980644",
"0.51931334",
"0.5173409",
"0.5168226",
"0.5157777",
"0.515441",
"0.51262873",
"0.51066726",
"0.50990903",
"0.5065218",
"0.5063892",
"0.5055... | 0.5648073 | 2 |
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.70801866 | 94 |
Constructs a ResNet50 model. | def kFWi(Fmaf=2048, NqpV=None, _mSQ=None, **B2fa):
C3ST = azV0(MF6R, [3, 4, 6, 3], dropout_p=NqpV, fc_out=Fmaf, **B2fa)
if _mSQ:
try:
if ht2j.cuda.device_count() > 0:
JcBu = ht2j.load(_mSQ)['state_dict']
else:
JcBu = ht2j.load(_mSQ, map_location={'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()",
"def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet... | [
"0.7942998",
"0.7562238",
"0.7498587",
"0.74903464",
"0.748225",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.74686694",
"0.7455879",
"0.7455879",
"0.7453793",
"0.7451919",
"0.74174935",
"0.7413509",
... | 0.0 | -1 |
Constructs a ResNet50 model. | def fTja(Fmaf=512, NqpV=None, _mSQ=None, **B2fa):
C3ST = azV0(em1m, [2, 2, 2, 2], dropout_p=NqpV, fc_out=Fmaf, **B2fa)
if _mSQ:
try:
if ht2j.cuda.device_count() > 0:
JcBu = ht2j.load(_mSQ)['state_dict']
else:
JcBu = ht2j.load(_mSQ, map_location={'c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()",
"def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet... | [
"0.7942998",
"0.7562238",
"0.7498587",
"0.74903464",
"0.748225",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.7474884",
"0.74686694",
"0.7455879",
"0.7455879",
"0.7453793",
"0.7451919",
"0.74174935",
"0.7413509",
... | 0.0 | -1 |
List the zones associated with the current image. Since this involves forking and running zone commands, cache the results. | def BeDd(YKHO, vmtv=False, ZqaC=False):
if vmtv:
YKHO.__zoneadm_list_cache = None
if YKHO.__zoneadm_list_cache != None:
assert type(YKHO.__zoneadm_list_cache) == list
return YKHO.__zoneadm_list_cache
if not YKHO.__zones_supported():
YKHO.__zoneadm_list_cache = []
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M133(gtI8, qIxc):\n BfDw.print_list(gtI8.zones.list(), ['ID', 'Name', 'Is Active', 'API URL', 'Weight Offset', 'Weight Scale'])",
"def OEt5(tk5Y, b39x):\n im04 = dict()\n HCmI = qbr8.get_value('bin_zoneadm')\n if HCmI is not None:\n HCmI = [HCmI]\n else:\n HCmI = ['/usr/sbin/zone... | [
"0.71824634",
"0.7098214",
"0.7035207",
"0.7019835",
"0.6889892",
"0.68618363",
"0.68008137",
"0.67981863",
"0.6782817",
"0.6773672",
"0.67310756",
"0.66312575",
"0.65995616",
"0.6590519",
"0.6578664",
"0.65733224",
"0.65662074",
"0.65388596",
"0.6521666",
"0.65151894",
"0.65... | 0.71842134 | 0 |
Creates a meshgrid from possibly many elements (instead of only 2). Returns a nd tensor with as many dimensions as there are arguments | def XCDu(*qIxc):
qIxc = list(qIxc)
rPXJ = [1 for bGrB in qIxc]
for YRbF in range(len(qIxc)):
exwG = qIxc[YRbF].shape[0]
c3pB = rPXJ.copy()
c3pB[YRbF] = exwG
qIxc[YRbF] = qIxc[YRbF].view(*c3pB)
return tuple(qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKm(*qIxc):\n return oyIN.meshgrid(*qIxc, indexing='ij')",
"def na8F(*qIxc, **B2fa):\n B2fa['indexing'] = 'ij'\n return mWKm(*qIxc, **B2fa)",
"def mWKm(**DbyF):\n assert 'vector' not in DbyF\n uAcF = {}\n for tpio, Cqok in DbyF.items():\n if isinstance(Cqok, int):\n uAc... | [
"0.77130866",
"0.7523015",
"0.7505233",
"0.7464133",
"0.73150736",
"0.72494495",
"0.7151658",
"0.71197844",
"0.7078794",
"0.70717114",
"0.7068811",
"0.70577705",
"0.70200634",
"0.69571966",
"0.6924298",
"0.68942684",
"0.6870108",
"0.68637276",
"0.6858876",
"0.6805885",
"0.675... | 0.7587979 | 1 |
Initialize encoder and decoder block + final dense layer. | def FIMM(YKHO, KqpV, CLda, hfjP, hC9O, Yqh2, AFxS, lGVD, k7hM, GqZL, lo24=0.1):
super(VUcl, YKHO).__init__()
YKHO.encoder = UYOu(KqpV, CLda, hfjP, hC9O, Yqh2, AFxS, k7hM, lo24)
YKHO.decoder = quBk(KqpV, CLda, hfjP, hC9O, Yqh2, lGVD, GqZL, lo24)
YKHO.final_layer = ZylS.keras.layers.Dense(lGVD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n Ep8u = YKHO.encoder_outputs.size(0)\n oe5C = YKHO.encoder_outputs.size(1)\n YKHO.attention_hidden = iQnE(ht2j.zeros(Ep8u, YKHO.attention_units)).to(YKHO.device)\n YKHO.decoder_hiddens = [iQnE(ht2j.zeros(Ep8u, YKHO.decoder_units)).to(YKHO.device) for bGrB in range(len(YKHO.decoder_rnns... | [
"0.7000111",
"0.69086206",
"0.6864328",
"0.67937356",
"0.67254126",
"0.671364",
"0.67040265",
"0.6634579",
"0.66329384",
"0.6568085",
"0.65576184",
"0.6533817",
"0.6511536",
"0.6504833",
"0.65003306",
"0.64987284",
"0.64724576",
"0.6461549",
"0.6377962",
"0.637021",
"0.636522... | 0.0 | -1 |
Determines if a newick string represents a trivial tree (tree containing no quartets). | def YY7L(uilq):
UHFx = 0
for Z9rn in uilq:
if Z9rn == '(':
UHFx += 1
if UHFx > 1:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def KNQs(YKHO) -> bool:\n return len(YKHO.parents) == 1 and '' in YKHO",... | [
"0.6293045",
"0.6293045",
"0.6237204",
"0.6237204",
"0.6237204",
"0.61852396",
"0.6145025",
"0.6106157",
"0.60992587",
"0.6086143",
"0.6082219",
"0.6023327",
"0.5999216",
"0.59875816",
"0.59866965",
"0.59745526",
"0.5961106",
"0.59199417",
"0.5902736",
"0.5886404",
"0.5886404... | 0.63440984 | 0 |
Convert region object to photutils.aperture.aperture_photometry object. The wcs object is needed only if the input regions are in sky coordinates. | def YKj6(zn0c, LZCK=None):
mc0F = type(zn0c).__name__
if 'Pixel' in mc0F:
sewu = (zn0c.center.x, zn0c.center.y)
if mc0F == 'CirclePixelRegion':
return p84N(sewu, r=zn0c.radius)
elif mc0F == 'CircleAnnulusPixelRegion':
return XANi(sewu, r_in=zn0c.inner_radius, r_ou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YKj6(zn0c, LZCK=None):\n if type(zn0c) == str:\n zn0c = DlfK(zn0c)[0]\n print(zn0c)\n mc0F = type(zn0c).__name__\n if 'Pixel' in mc0F:\n sewu = (zn0c.center.x, zn0c.center.y)\n if mc0F == 'CirclePixelRegion':\n return p84N(sewu, r=zn0c.radius)\n elif mc0F == '... | [
"0.6836779",
"0.56605595",
"0.52382183",
"0.5200071",
"0.516878",
"0.5131769",
"0.49445382",
"0.48981255",
"0.48556435",
"0.482232",
"0.48149785",
"0.4793979",
"0.47892034",
"0.47818556",
"0.47815123",
"0.47737548",
"0.47499585",
"0.47490102",
"0.4655788",
"0.4641936",
"0.463... | 0.69980794 | 0 |
Gets the flavor of this CreateNotebookReq. | def k3Zu(YKHO):
return YKHO._flavor | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k3Zu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flavor')",
"def k3Zu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flavor')",
"def LIzI(YKHO):\n return YKHO.flavor",
"def k3Zu(YKHO) -> str:\n return qe4Y.get(YKHO, 'flavor')",
"def qu_i(YKHO):\n return YKHO.get('w... | [
"0.59511685",
"0.59511685",
"0.58292997",
"0.5826481",
"0.57605886",
"0.57220834",
"0.56251",
"0.5583446",
"0.5583446",
"0.5525264",
"0.537662",
"0.537662",
"0.53427577",
"0.5327891",
"0.52460885",
"0.5115149",
"0.50717616",
"0.5044911",
"0.5044911",
"0.5044911",
"0.5044911",... | 0.58511007 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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.0 | -1 |
Converts 3d image to grayscale | def IeP5(R98c):
Y0mG = oyIN.sum(oyIN.abs(R98c), axis=0)
Grnf = oyIN.percentile(Y0mG, 99)
jN4Q = oyIN.min(Y0mG)
Y0mG = oyIN.clip((Y0mG - jN4Q) / (Grnf - jN4Q), 0, 1)
Y0mG = oyIN.expand_dims(Y0mG, axis=0)
return Y0mG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qx_8(LNo8: pygame.Surface):\n ezWE = a9eO.surfarray.pixels3d(LNo8)\n ezWE = ezWE.dot([0.298, 0.587, 0.114])[:, :, None].repeat(3, axis=2)\n return a9eO.surfarray.make_surface(ezWE)",
"def zI1D(LNo8):\n return oyIN.dot(LNo8[..., :3], [0.299, 0.587, 0.114])",
"def tmqJ(VXjJ):\n return VXjJ.con... | [
"0.78024673",
"0.7321851",
"0.7122168",
"0.7063838",
"0.7063838",
"0.7038039",
"0.7037037",
"0.70243996",
"0.6985248",
"0.69680357",
"0.69680357",
"0.6956165",
"0.6956165",
"0.6956165",
"0.6956165",
"0.6956165",
"0.69387245",
"0.6938232",
"0.69069296",
"0.69069296",
"0.690692... | 0.6314129 | 97 |
Apply heatmap on image | def bONf(IB2U, YDYE, GwBX):
print(YDYE)
YDzg = jXU_.get_cmap(GwBX)
Lrks = YDzg(YDYE)
Y4Ek = jth9.copy(Lrks)
Y4Ek[:, :, 3] = 0.4
Y4Ek = hnIv.fromarray((Y4Ek * 255).astype(oyIN.uint8))
Lrks = hnIv.fromarray((Lrks * 255).astype(oyIN.uint8))
print(IB2U.size)
x65g = hnIv.new('RGBA', IB2U.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4Kg(VXjJ, TJdH, Y5YY):\n p6AN = ZhPI(VXjJ, TJdH, Y5YY)\n BQAG = oyIN.zeros_like(VXjJ[:, :, 0]).astype(oyIN.float)\n BQAG = FhkR(BQAG, p6AN)\n return BQAG",
"def Y4Ek(YKHO):\n Ud7_ = oyIN.array(YKHO.__data)\n cf3u.imshow(oyIN.flipud(Ud7_.T), extent=[YKHO.__tstart, YKHO.__tend, YKHO.__xstart... | [
"0.73253995",
"0.7098753",
"0.70961654",
"0.70492476",
"0.6936765",
"0.6936133",
"0.6908206",
"0.6893836",
"0.6890831",
"0.688557",
"0.686824",
"0.6857539",
"0.67646223",
"0.67637014",
"0.67606115",
"0.6737882",
"0.6722658",
"0.67226285",
"0.6639912",
"0.66233903",
"0.6618340... | 0.61948687 | 74 |
Sort a (list,tuple) of strings into natural order. | def Co0f(gfMK):
if isinstance(gfMK, tuple):
gfMK = gfMK[0]
return [iLIN(Z9rn) for Z9rn in ZbWC.split('(\\d+)', gfMK)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tcz1(vC9B):\n\n def Zn2L(l5Ny):\n return int(l5Ny) if l5Ny.isdigit() else l5Ny\n\n def E4UZ(l5Ny):\n if isinstance(l5Ny, tuple):\n l5Ny = l5Ny[0]\n return [Zn2L(Z9rn) for Z9rn in ZbWC.split('(\\\\d+)', l5Ny)]\n return sorted(vC9B, key=E4UZ)",
"def TGDD(vC9B):\n a8P... | [
"0.7523876",
"0.7502101",
"0.7495038",
"0.7482315",
"0.7474336",
"0.74742687",
"0.7431496",
"0.7429345",
"0.7412585",
"0.7396242",
"0.73809",
"0.7359506",
"0.73000985",
"0.72941834",
"0.72901285",
"0.7239923",
"0.7059093",
"0.70473266",
"0.6981095",
"0.69736034",
"0.6970154",... | 0.0 | -1 |
Encoder layer follows VGG rules + keeps pooling indices | def FIMM(YKHO, wOJr, uyvw, fOZ4=2):
super(wEsN, YKHO).__init__()
fhcK = [U78l.Conv2d(wOJr, uyvw, 3, 1, 1), U78l.BatchNorm2d(uyvw), U78l.ReLU()]
if fOZ4 > 1:
fhcK += [U78l.Conv2d(uyvw, uyvw, 3, 1, 1), U78l.BatchNorm2d(uyvw), U78l.ReLU()]
YKHO.features = U78l.Sequential(*fhcK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5, input_shape=(160, 320, 3)))\n a7Lb.add(Ym4f(cropping=((50, 20), (0, 0))))\n a7Lb.add(yHwh(64, (3, 3), padding='same', kernel_regularizer=V70B(0)))\n a7Lb.add(MroH('relu'))\n a7Lb.add(l2Dx((1, 1)))\n a7Lb.add(yHwh(64, ... | [
"0.69045883",
"0.66884696",
"0.664597",
"0.6639378",
"0.6541755",
"0.65225863",
"0.651342",
"0.64809895",
"0.64708126",
"0.64547616",
"0.6450836",
"0.64110136",
"0.64078104",
"0.6407592",
"0.63807523",
"0.6354234",
"0.63257045",
"0.6325112",
"0.6323419",
"0.63222605",
"0.6318... | 0.0 | -1 |
A helper method for converting a list of database record objects into a list of dictionaries, so they can be returned as JSON | def YTAi(HE13):
WLKS = []
for AIu6 in HE13:
print(AIu6)
Gky2 = AIu6.__dict__
del Gky2['_sa_instance_state']
WLKS.append(Gky2)
return WLKS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pz3A(J2us):\n return [dict(Mkmy.items()) for Mkmy in J2us]",
"def pz3A(J2us):\n return [dict(Mkmy.items()) for Mkmy in J2us]",
"def pz3A(J2us):\n eCwk = []\n OHcE = ['salary', 'address', 'age', 'id', 'name']\n for Mkmy in J2us:\n fvPg = [YRbF for YRbF in Mkmy]\n fvPg = zip(OHcE... | [
"0.7712251",
"0.7712251",
"0.7444726",
"0.7241218",
"0.723268",
"0.7171213",
"0.7082789",
"0.7066151",
"0.68218124",
"0.67652494",
"0.6700118",
"0.6669526",
"0.6448801",
"0.64477146",
"0.64151543",
"0.64148545",
"0.6401788",
"0.6393293",
"0.6363081",
"0.63349885",
"0.6313036"... | 0.6294989 | 21 |
Return the root path of the project | def Jout(YKHO):
if not YKHO.root_path:
YKHO.root_path = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))
return YKHO.root_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSqg(YKHO):\n return YKHO._project_dir",
"def Lw5n():\n VqRE = Hy7s.path.split(Hy7s.path.abspath(xAKo))[0]\n return GkAb(Hy7s.path.normpath(Hy7s.path.join(VqRE, '../../')))",
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo)... | [
"0.8957866",
"0.886004",
"0.8742298",
"0.87235117",
"0.86225903",
"0.86197424",
"0.8603601",
"0.8597001",
"0.8597001",
"0.8597001",
"0.8597001",
"0.85634303",
"0.8561032",
"0.85586035",
"0.85586035",
"0.85233283",
"0.8522823",
"0.8461307",
"0.8460952",
"0.84445244",
"0.842267... | 0.7706656 | 54 |
Get path of data file. | def s8df(h_xa, tFUs):
return '{}/{}'.format(h_xa, tFUs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO):\n return YKHO.data_path",
"def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(wd8X, '..', 'data', Ux0P)",
"def s8df(YKHO, i0XC):\n return Hy7s.path.join(YKHO.get_path(YKHO.config['data']), i0XC)",
"def s8df():\n QHUq = RUFc(xAKo)\n return TLI7(QHU... | [
"0.855263",
"0.84489846",
"0.83815515",
"0.8339601",
"0.8228636",
"0.81916887",
"0.81557494",
"0.80419916",
"0.798159",
"0.797591",
"0.79740083",
"0.79631734",
"0.79631734",
"0.7927457",
"0.79245275",
"0.79074377",
"0.78654903",
"0.78617036",
"0.78524727",
"0.7843213",
"0.784... | 0.7508899 | 44 |
Get path of pickled perm_indices file. | def uPdO(h_xa, tFUs):
return '{}/{}_perm_indices.pkl'.format(h_xa, tFUs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(YKHO) -> str:\n return rNI2('indices/{}.csv'.format(YKHO.name.lower()))",
"def mviP(YKHO):\n MJ48 = YKHO._get_data_name_folders_path(state='raw')\n return Hy7s.path.join(MJ48, YKHO.aggregation_level, ciuo)",
"def qaEx(YKHO):\n return YKHO.data_folder + '/' + YKHO.world_name + '/'",
"def ... | [
"0.59026664",
"0.58482885",
"0.58287644",
"0.57664615",
"0.5719527",
"0.56288403",
"0.5609843",
"0.556028",
"0.55243504",
"0.55113995",
"0.55085075",
"0.548166",
"0.54710186",
"0.54685235",
"0.54623246",
"0.5457505",
"0.5454377",
"0.5452246",
"0.5452246",
"0.5432444",
"0.5428... | 0.798497 | 0 |
Get taskspecific classifier, as set in build_module(). | def K4XL(YKHO, D5gV):
G02y = YKHO._get_task_params(D5gV.name)
agN2 = G02y['use_classifier']
if agN2 in [None, '', 'none']:
agN2 = D5gV.name
return getattr(YKHO, '%s_mdl' % agN2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UCa5():\n return haER()[_rcs]",
"def K4XL(YKHO):\n return YKHO.__classifier",
"def K4XL(YKHO):\n return YKHO.__classifier",
"def K4XL(YKHO):\n return YKHO.__classifier",
"def K4XL(YKHO):\n return YKHO.__classifier",
"def K4XL(YKHO):\n return YKHO.__classifier",
"def K4XL(YKHO):\n ... | [
"0.7147842",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.684393",
"0.6762007",
"0.67022514",
"0.66527843",
"0.6610524",
"0.6520274",
"0.63534725",
"0.63423586",
"0.63136446",
"0.62316877",
"0.60853684",
"0.60853684",
"0... | 0.7851783 | 0 |
Apply the shift vector in the system of the body's coordinates. | def _jXH(YKHO, WKvO, LVAh):
WKvO, LVAh = tEIf(WKvO, LVAh, YKHO._thrift_body.angle)
YKHO._thrift_body.position.x += WKvO
YKHO._thrift_body.position.y += LVAh
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkWr(YKHO, iArr):\n YKHO.surface.shift(iArr)",
"def EluE(YKHO, y917):\n aM8h = 1 + y917 / _P6x.c.to('km/s').value\n YKHO.spec.raw.x *= aM8h\n if len(YKHO.cont.x) > 0:\n print('shift cont')\n YKHO.cont.x *= aM8h\n if len(YKHO.fit.raw.x) > 0:\n print('shift fit')\n YK... | [
"0.6577014",
"0.65481573",
"0.64760923",
"0.6445142",
"0.6406754",
"0.6384572",
"0.63588595",
"0.63165224",
"0.6274617",
"0.62415516",
"0.62294877",
"0.62264276",
"0.6172573",
"0.6125124",
"0.6045619",
"0.6037293",
"0.5989597",
"0.5989597",
"0.5965153",
"0.5964043",
"0.596341... | 0.0 | -1 |
Check if theta is in the support of the posterior distribution | def nuOz(XP5J):
QZcN = all(XP5J > 0)
return QZcN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9az(YKHO):\n return not YKHO._no_weights",
"def M0pS(YKHO, q7In):\n return all([YKHO.priors[YRbF][0] <= q7In[YRbF] <= YKHO.priors[YRbF][1] for YRbF in range(len(q7In))])",
"def TEj5(YKHO, yokr, SkC9, **B2fa):\n return epAf.fabs(YKHO.ma_theta[yokr] - YKHO.ma_theta[SkC9]) < YKHO.p_thetathres_2",
... | [
"0.6861475",
"0.665266",
"0.6373131",
"0.6077902",
"0.5955813",
"0.59532535",
"0.5936654",
"0.59086335",
"0.5887213",
"0.58036125",
"0.57982385",
"0.57836837",
"0.5779538",
"0.57774764",
"0.577665",
"0.57308656",
"0.57242036",
"0.57242036",
"0.57242036",
"0.5659798",
"0.56492... | 0.5919728 | 7 |
Returns the current output of the last hidden layer. This is needed for linear regression, which calculates the weight matrix W of the full connection between this layer and the output layer. | def onmu(YKHO):
return jth9(YKHO._hid_layer.outputbuffer[YKHO.offset - 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FZGY(YKHO):\n if YKHO._last_hidden_layer is None:\n JGQq = YKHO.getOutputLayer()\n fhcK = []\n for Z9rn in YKHO.getConnections():\n if Z9rn.outmod is JGQq:\n fhcK.append(Z9rn.inmod)\n assert len(fhcK) == 1\n YKHO._last_hidden_layer = fhcK[0]\n ... | [
"0.8035315",
"0.7582433",
"0.74725586",
"0.7430092",
"0.73661554",
"0.73268265",
"0.73258704",
"0.7190227",
"0.7190227",
"0.71378696",
"0.71228194",
"0.7120954",
"0.7120954",
"0.6935565",
"0.692335",
"0.69042957",
"0.68719655",
"0.68384826",
"0.6823757",
"0.678267",
"0.672495... | 0.6612102 | 25 |
Returns the current output of the last hidden layer. This is needed for linear regression, which calculates the weight matrix W of the full connection between this layer and the output layer. | def onmu(YKHO):
return jth9(YKHO.getLastHiddenLayer().outputbuffer[YKHO.network.offset - 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FZGY(YKHO):\n if YKHO._last_hidden_layer is None:\n JGQq = YKHO.getOutputLayer()\n fhcK = []\n for Z9rn in YKHO.getConnections():\n if Z9rn.outmod is JGQq:\n fhcK.append(Z9rn.inmod)\n assert len(fhcK) == 1\n YKHO._last_hidden_layer = fhcK[0]\n ... | [
"0.8038136",
"0.7582556",
"0.7473476",
"0.73665833",
"0.7327045",
"0.73257387",
"0.7191152",
"0.7191152",
"0.7135865",
"0.71243477",
"0.7120679",
"0.7120679",
"0.6937046",
"0.6921429",
"0.6903942",
"0.68707794",
"0.6838378",
"0.6819078",
"0.6782265",
"0.672575",
"0.67171884",... | 0.74303424 | 3 |
Returns the input connection of the output layer. | def dAWE(YKHO):
if YKHO._output_connection is None:
JGQq = YKHO.getOutputLayer()
wrSm = YKHO.getLastHiddenLayer()
for Z9rn in YKHO.getConnections():
if Z9rn.outmod is JGQq:
assert Z9rn.inmod is wrSm
YKHO._output_connection = Z9rn
return YKHO._o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fpEZ(YKHO):\n assert len(YKHO.network.inmodules) == 1\n return YKHO.network.inmodules[0]",
"def fpEZ(YKHO):\n return YKHO.inputLayer",
"def gCJ0(YKHO, gEmA):\n siZ_ = []\n for Z9rn in sum(list(YKHO.network.connections.values()), []):\n if Z9rn.outmod is gEmA:\n if not isins... | [
"0.7221088",
"0.70359623",
"0.6956749",
"0.6942283",
"0.69335353",
"0.693342",
"0.67748547",
"0.67097354",
"0.6396928",
"0.6396928",
"0.63506424",
"0.63506424",
"0.6330684",
"0.63211054",
"0.6317339",
"0.6213689",
"0.62037206",
"0.6201069",
"0.61921585",
"0.6175148",
"0.61751... | 0.8049953 | 0 |
Tests GET 404 on //service// | def Yt16(fopq, WHq_):
geh0 = fopq.get('/api/1/accounts/service/idonotexist/myService')
assert geh0.status_code == 404
assert geh0.get_json() == {'account': 'Not found'}
WHq_.update({'method': 'get', 'service': 'service', 'endpoint': 'service.get_service_for_account', 'status_code': '404'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LoaF(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get(f'/api/foo/9999')\n YKHO.assertEqual(geh0.status_code, 404)",
"def NUqh():\n im04 = x0hE.get('/api/indicators/1/')\n assert im04.status_code == 404",
"def v4ew(YKHO):\n bD7m = '{0}'.format(YKHO.URL_GET)\n _hkX = G4JS.get(bD7m... | [
"0.7869779",
"0.78183436",
"0.77493805",
"0.7674741",
"0.7670942",
"0.7665541",
"0.7629366",
"0.75366974",
"0.750409",
"0.7464401",
"0.74557143",
"0.74167144",
"0.74078125",
"0.7403792",
"0.7386583",
"0.73311514",
"0.7299267",
"0.72828305",
"0.72704273",
"0.7268449",
"0.72232... | 0.0 | -1 |
View for home page | def d6pt(QePW):
return _1tc(QePW, 'pages/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"d... | [
"0.85769135",
"0.85369337",
"0.8423748",
"0.8423748",
"0.83923805",
"0.83582765",
"0.83579105",
"0.83115333",
"0.83051306",
"0.8283766",
"0.8274157",
"0.82657826",
"0.8262174",
"0.8260405",
"0.82518846",
"0.8242054",
"0.82413876",
"0.82413876",
"0.82413876",
"0.82402563",
"0.... | 0.0 | -1 |
Retrieve current values of the RAMSTKStakeholders data model attributes. | def h6gc(YKHO):
mIvx = {'stakeholders_id': YKHO.stakeholders_id, 'stakeholder': YKHO.stakeholder}
return mIvx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeFr(YKHO):\n return ['Body temperature', 'Systolic B.P', 'Diastolic B.P', 'Heart rate', 'Breath Rate']",
"def h6gc(YKHO):\n return YKHO.get_data()",
"def p79h(YKHO):\n return YKHO.SDS.attributes()",
"def h6gc(YKHO):\n return YKHO.data",
"def h6gc(YKHO):\n return YKHO.attributes",
"def... | [
"0.6496164",
"0.62125677",
"0.61421216",
"0.60593474",
"0.60240346",
"0.5944618",
"0.58953327",
"0.58718294",
"0.5864589",
"0.58645123",
"0.58025974",
"0.5801523",
"0.5789716",
"0.5786294",
"0.578168",
"0.5763863",
"0.57560784",
"0.57555306",
"0.57553494",
"0.5748967",
"0.570... | 0.59190357 | 6 |
Determine if there is a subset of the sequence for which the sum is 0. Solution is really inefficient. | def shGJ(aWuw):
for Ri7V in range(1, len(aWuw), 1):
E6VQ = WhY1.combinations(aWuw, Ri7V)
for _Fqy in E6VQ:
if sum(_Fqy) is 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oujO(mSrU):\n for vcn7 in wCK1(mSrU):\n if sum(vcn7) == 0:\n return True\n return False",
"def zHoL(aWuw):\n for FGW3 in aWuw:\n if -FGW3 in aWuw:\n return True\n return False",
"def zHoL(Q6uT, G1Hx):\n if min(Q6uT) > G1Hx:\n return False\n elif ... | [
"0.82999223",
"0.80765915",
"0.7090689",
"0.7074464",
"0.7047789",
"0.69061315",
"0.66691214",
"0.66410404",
"0.65998584",
"0.6583655",
"0.6522855",
"0.6474514",
"0.6406828",
"0.6388164",
"0.63724333",
"0.6356597",
"0.63388854",
"0.6314512",
"0.6261947",
"0.6229673",
"0.62007... | 0.6721892 | 6 |
is_same_class returns True if object is an instance of specified class. | def plAK(YEnM, J9Xy):
if type(YEnM) is J9Xy:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plAK(YEnM, J9Xy):\n return type(YEnM) is J9Xy",
"def plAK(YEnM, J9Xy):\n return type(YEnM) is J9Xy",
"def plAK(YEnM, J9Xy):\n return type(YEnM) == J9Xy",
"def plAK(YEnM, J9Xy):\n return type(YEnM) == J9Xy",
"def plAK(YEnM, J9Xy):\n return type(YEnM) == J9Xy",
"def plAK(YEnM, J9Xy):\n ... | [
"0.8788066",
"0.87701726",
"0.8766144",
"0.8766144",
"0.8766144",
"0.8754671",
"0.8754671",
"0.8749903",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87429553",
"0.87352145",
"0.87352145",
"0.87352145",
"0.... | 0.8723024 | 28 |
Update the parameters w/ gradient clipped, gradient descent updates. | def scxx(YRbF, il43, s1Dy, W6RH, rXp1, VXue, Smd1, LlyY):
NArs = W6RH(il43)
def yc__(NArs, rXp1, VXue, LlyY):
return N77f(NArs, rXp1, VXue, LlyY)['total']
vtNT = Ro40(yc__)(NArs, rXp1, VXue, LlyY)
dUlP = KES0.clip_grads(vtNT, Smd1)
return s1Dy(YRbF, dUlP, il43) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x2Fr(YKHO):\n c6SZ = 1\n if c6SZ > 1:\n YKHO._number_grad_accum = (YKHO._number_grad_accum + 1) % c6SZ\n if YKHO._number_grad_accum != 0:\n return\n if YKHO.opt['gradient_clip'] > 0:\n ht2j.nn.utils.clip_grad_norm_(YKHO.model_dis.parameters(), YKHO.opt['gradient_clip'])... | [
"0.7643698",
"0.7436571",
"0.73928875",
"0.69751084",
"0.68082565",
"0.67107207",
"0.6706775",
"0.66699284",
"0.6662056",
"0.66509044",
"0.66211486",
"0.66124916",
"0.6608455",
"0.66009724",
"0.6588854",
"0.6569496",
"0.65694684",
"0.65340275",
"0.65230685",
"0.64717937",
"0.... | 0.6413386 | 24 |
Gets current status of carrier specific duplex configuration. | def Wcp6(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J_xQ(YKHO):\n for H5ew, BWXx in YKHO._port_attributes_snmp_tables.duplex_table.items():\n if 'dot3StatsIndex' in BWXx.keys() and BWXx['dot3StatsIndex'] == str(YKHO.if_index):\n DJIe = YKHO._snmp.get_property('EtherLike-MIB', 'dot3StatsDuplexStatus', H5ew)\n if 'fullDuplex' in DJ... | [
"0.6564424",
"0.6479438",
"0.63834876",
"0.63068616",
"0.6141128",
"0.6141128",
"0.60095394",
"0.6007655",
"0.5997499",
"0.5975842",
"0.59375733",
"0.59375733",
"0.591518",
"0.5836309",
"0.5819758",
"0.58056384",
"0.58045906",
"0.57610774",
"0.5758187",
"0.57454884",
"0.57250... | 0.0 | -1 |
Gets the RRC connection state. | def GDmu(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRKJ(YKHO):\n return YKHO._connection_open",
"def uRKJ(YKHO) -> VaR6:\n return YKHO._connection_status",
"def cMf8(YKHO):\n return YKHO.__hub_state",
"def ynwu(YKHO):\n raise NotImplementedError('Not Implemented')",
"def uRKJ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection... | [
"0.7422864",
"0.73469055",
"0.7269038",
"0.72250694",
"0.7219123",
"0.71828884",
"0.71828884",
"0.70158845",
"0.7005084",
"0.69477105",
"0.6887315",
"0.68405855",
"0.67813635",
"0.67035127",
"0.66977537",
"0.66626155",
"0.66626155",
"0.6631976",
"0.66127664",
"0.65970427",
"0... | 0.623741 | 70 |
Gets dl antenna count of cell. | def BMkc(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G2zm(YKHO) -> int:\n ...",
"def f453(YKHO):\n return Ityi.count_cells(YKHO.ptr)",
"def nj9n(YKHO):\n CO5U = YKHO._usb_ctrl_transfer(128 | 32, 1, 129, 0, 2)\n if len(CO5U) >= 2:\n return CO5U[1]\n else:\n return -1",
"def xUyc(YKHO) -> int:\n return int(YKHO.__data.get('DFI... | [
"0.6060978",
"0.59749764",
"0.5896919",
"0.58951336",
"0.58818203",
"0.58772403",
"0.5874234",
"0.5851882",
"0.58344156",
"0.58273226",
"0.5820174",
"0.5815948",
"0.57779557",
"0.57605743",
"0.57605743",
"0.57605743",
"0.57605743",
"0.57605743",
"0.575407",
"0.575407",
"0.573... | 0.0 | -1 |
Gets the reduction of PDCCH resources state. | def MQLR(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n return YKHO.central_system.get_metric(YKHO.cp_id, YKHO.metric)",
"def PKJf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_state')",
"def MQLR(YKHO, QTBn):\n raise NotImplementedError()",
"def PKJf(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_state')",
"def J4B... | [
"0.6760919",
"0.64508086",
"0.6271356",
"0.6248635",
"0.6246497",
"0.5884819",
"0.5860154",
"0.583371",
"0.5809569",
"0.5768597",
"0.5757151",
"0.563621",
"0.56201345",
"0.5585353",
"0.55721873",
"0.5525504",
"0.55005926",
"0.5491399",
"0.547497",
"0.54666054",
"0.5455798",
... | 0.57138497 | 11 |
Add a password to the mystic. Takes no arguments. You will be prompted to enter the new password. If a password already exists, you will be prompted to enter it too. | def Vbut(*, JdE1: Mystic, **B2fa):
if not JdE1.mutable:
return 'the myst is in read-only mode, use the enable_write command to enable editing'
JdE1.add_password()
return 'new password added' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vbut():\n fjzC.delete(0, XW6u.END)\n t4Un = ikbr()\n fjzC.insert(0, t4Un)\n wUvD.copy(t4Un)",
"def J8Zg():\n jTXt = t4Un()\n d8fy.insert(0, jTXt)",
"def zZft(mWFP, jTXt):\n return QdZT(name=mWFP, password=jTXt)",
"def BbrR(CBIr: 'Name of user to add', jTXt: 'Password for the new user... | [
"0.7675676",
"0.71892446",
"0.7161194",
"0.7005865",
"0.699263",
"0.69737756",
"0.6901765",
"0.6853703",
"0.6849624",
"0.68293196",
"0.67276776",
"0.67109406",
"0.6710298",
"0.6707351",
"0.67061245",
"0.66238976",
"0.6602823",
"0.6582173",
"0.6569783",
"0.6549098",
"0.6548745... | 0.79591846 | 0 |
If the input is not a tuple, make it a tuple | def LnqA(zrIJ):
if isinstance(zrIJ, AzJI):
oi6k = zrIJ.spaces
return tuple([n294.n for n294 in oi6k])
elif isinstance(zrIJ, e7Z_):
return tuple((zrIJ.n,))
else:
raise Exception | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YElZ(WKvO):\n return WKvO if isinstance(WKvO, tuple) else (WKvO,)",
"def Cdjl(WKvO):\n if isinstance(WKvO, tuple):\n return WKvO\n return (WKvO,)",
"def uwcr(WKvO):\n if type(WKvO) is SnBA.ListType:\n return tuple(WKvO)\n elif type(WKvO) is SnBA.TupleType:\n return WKvO\... | [
"0.8273769",
"0.82603586",
"0.78505594",
"0.7711759",
"0.76521665",
"0.7650401",
"0.7492088",
"0.7458929",
"0.7446038",
"0.7416939",
"0.74102134",
"0.739225",
"0.7366581",
"0.7329504",
"0.73245925",
"0.73187596",
"0.72865057",
"0.72778755",
"0.7231376",
"0.7128049",
"0.711408... | 0.0 | -1 |
Method for finding player_id by map code. | def tieQ(Wxnj):
N1p7 = KUr9.connection.cursor()
Pe9W = 'SELECT player_id FROM maps WHERE download_code = %s'
N1p7.execute(Pe9W, (Wxnj,))
LZbL = N1p7.fetchone()
N1p7.close()
if LZbL:
return LZbL[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HCdI(Wxnj):\n N1p7 = KUr9.connection.cursor()\n Pe9W = 'SELECT id FROM maps WHERE download_code = %s'\n N1p7.execute(Pe9W, (Wxnj,))\n Mn4o = N1p7.fetchone()\n N1p7.close()\n if Mn4o:\n return Mn4o[0]\n return None",
"def W9fb(Wxnj):\n N1p7 = KUr9.connection.cursor()\n Pe9W =... | [
"0.75762767",
"0.6881145",
"0.6779427",
"0.6749604",
"0.671566",
"0.6256659",
"0.6229403",
"0.60211056",
"0.60011053",
"0.5998181",
"0.5991627",
"0.5985972",
"0.5976771",
"0.59665036",
"0.5891983",
"0.58719754",
"0.58427143",
"0.5834009",
"0.57795584",
"0.57458055",
"0.569361... | 0.81341755 | 0 |
Compute interval bounds for ReLU nonlinearity | def gpGF(NWAt, gTwQ):
SePQ = oyIN.maximum(0, NWAt)
Uc9c = oyIN.maximum(0, gTwQ)
return (SePQ, Uc9c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APUW(YKHO):\n VNqG = oyIN.zeros(YKHO.x.shape)\n return oyIN.greater(YKHO.x, VNqG).astype(int)",
"def X7zS(YKHO, WKvO):\n Zto0 = YKHO.lowerB\n AF8t = YKHO.upperB\n TP6R = YKHO.rangeB\n hsCd = YKHO.nlowerB\n n6cQ = YKHO.nupperB\n cpTZ = YKHO.nrangeB\n X1ie = YKHO.nbounds\n ubtm = ... | [
"0.6511924",
"0.6433259",
"0.6283993",
"0.61194146",
"0.60568863",
"0.6053874",
"0.60253125",
"0.59946",
"0.5994557",
"0.5987003",
"0.5975639",
"0.5935703",
"0.59334815",
"0.5931827",
"0.5929634",
"0.59222496",
"0.5920713",
"0.5911155",
"0.59011596",
"0.5885305",
"0.5876003",... | 0.56712896 | 56 |
Returns the destination preset for this Job. | def V9xd(YKHO, H5ew=None):
_ZvT = PMM2[YKHO.destination_preset]
if H5ew:
return _ZvT[H5ew]
return _ZvT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AfJR(YKHO):\n return YKHO.dest",
"def yFgu(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'destination')",
"def _ZvT(YKHO) -> h8nf['ChannelPreset']:\n return qe4Y.get(YKHO, 'preset')",
"def AfJR(YKHO):\n return YKHO.destination",
"def AfJR(YKHO):\n return YKHO.destination",
"def _ZvT(YKHO... | [
"0.65678877",
"0.65637064",
"0.65597",
"0.65475",
"0.65475",
"0.6485091",
"0.6361584",
"0.6361584",
"0.6361584",
"0.63299966",
"0.631581",
"0.6297815",
"0.6289567",
"0.6286964",
"0.6259196",
"0.6255681",
"0.62494224",
"0.6245614",
"0.6245614",
"0.6231272",
"0.6190951",
"0.6... | 0.7769538 | 0 |
Returns the path of the input file for this job. | def RHpC(YKHO):
return Hy7s.path.join(QqWC, str(YKHO.id) + '-upload' + Hy7s.path.splitext(YKHO.input_filename)[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qaYW(YKHO):\n return YKHO.__input_file_path",
"def RHpC(YKHO):\n return YKHO.input_path",
"def iUzs(YKHO, wxIh):\n return YKHO._filestore + '/input/' + wxIh",
"def qaEx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'file_path')",
"def oI28(YKHO):\n return YKHO._infile",
"def ... | [
"0.88197505",
"0.8387112",
"0.7963274",
"0.76934606",
"0.7648288",
"0.76084185",
"0.7426723",
"0.7426723",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7424558",
"0.7211221",
"0.7196941",
... | 0.7774671 | 3 |
Disconnects from signals. Removes the plugin menu item and icon from QGIS GUI. | def TO83(YKHO):
YKHO.iface.removeCustomActionForLayerType(YKHO.changeDSActionVector)
YKHO.iface.removeCustomActionForLayerType(YKHO.changeDSActionRaster)
for XeOP in YKHO.actions:
YKHO.iface.removePluginVectorMenu(YKHO.tr(u'&changeDataSource'), XeOP)
YKHO.iface.removeToolBarIcon(XeOP)
de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TO83(YKHO):\n for XeOP in YKHO.actions:\n YKHO.iface.removePluginMenu(YKHO.tr(u'&IIR'), XeOP)\n YKHO.iface.removeToolBarIcon(XeOP)",
"def TO83(YKHO) -> None:\n for XeOP in YKHO.actions:\n YKHO.iface.removePluginMenu('&' + _YpX, XeOP)\n YKHO.iface.removeToolBarIcon(XeOP)\n ... | [
"0.692941",
"0.6782232",
"0.6737229",
"0.67156905",
"0.66920877",
"0.6672209",
"0.6666918",
"0.6656349",
"0.66431606",
"0.6642009",
"0.66318357",
"0.6628098",
"0.6625759",
"0.65891576",
"0.65813756",
"0.655674",
"0.6527626",
"0.6525681",
"0.65204525",
"0.6519799",
"0.6505061"... | 0.61252177 | 69 |
Returns the SPS spec version for `xml_et` or raises ValueError. It also checks if the version is currently supported. | def DT4S(LoI6, lR5_=None):
if lR5_ is None:
lR5_ = nn_1.CURRENTLY_SUPPORTED_VERSIONS
XH1g = LoI6.getroot()
bcAl = XH1g.attrib.get('specific-use', None)
if bcAl is None:
raise Bx6I.XMLSPSVersionError('cannot get the SPS version from /article/@specific-use')
if bcAl not in lR5_:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g83q(YKHO):\n return YKHO.xml.attrib.get('ver', None)",
"def OaKr(YKHO):\n Mkmy = YKHO.cmd(TkY7.INTERFACE, [2])\n if len(Mkmy.data) != 1:\n raise yPJu('Invalid response')\n return YKHO.__bcd(Mkmy.data[0])",
"def OAvJ(YKHO) -> AzJI[str, str]:\n try:\n dixj = YKHO.get_objects(end... | [
"0.57234186",
"0.5696618",
"0.56185585",
"0.5491499",
"0.54910994",
"0.5469495",
"0.5457823",
"0.54535425",
"0.54487425",
"0.5443994",
"0.5419734",
"0.5394233",
"0.53847265",
"0.53670174",
"0.53428066",
"0.530877",
"0.5306623",
"0.5259923",
"0.52548426",
"0.5218966",
"0.51875... | 0.75788206 | 0 |
Returns an instance of `isoschematron.Schematron`. A standard schematron is one bundled with packtools. The returned instance is cached due to performance reasons. | def Q9Fu(QF7s):
wyyA = BfDw.setdefault(Q9Fu, 'cache', lambda: {})
if QF7s in wyyA:
return wyyA[QF7s]
else:
try:
IR_9 = nn_1.SCHEMAS[QF7s]
except KeyError:
raise ValueError('unrecognized schema: "%s"' % QF7s)
wyD1 = BfDw.get_schematron_from_filepath(IR_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w_l2(YKHO, wVC4, JT9N=None):\n if wVC4 is None:\n raise ValueError('Input schematron document cannot be None')\n tk5Y = BfDw.get_etree_root(wVC4)\n wyD1 = JrOA.isoschematron.Schematron(tk5Y, phase=JT9N, store_report=True, store_xslt=True, store_schematron=True)\n return wyD1",
"def wyD1(YK... | [
"0.716063",
"0.71453637",
"0.61212444",
"0.5385585",
"0.5248971",
"0.50974953",
"0.50441337",
"0.49754226",
"0.49213704",
"0.48859122",
"0.4859431",
"0.4857286",
"0.4831084",
"0.48134732",
"0.4740396",
"0.47271848",
"0.46907455",
"0.46826777",
"0.46472627",
"0.4596016",
"0.45... | 0.706986 | 2 |
Has the document been published aheadofprint? | def XiiI(YKHO):
akib = YKHO.lxml.findtext('front/article-meta/volume')
FGW3 = YKHO.lxml.findtext('front/article-meta/issue')
return akib == '00' and FGW3 == '00' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n if wzkt >= YKHO.pub_date:\n return True\n return False",
"def FhQf(YKHO):\n return YKHO.publish_time... | [
"0.7538826",
"0.7538826",
"0.7529194",
"0.7520991",
"0.73492515",
"0.729238",
"0.72814566",
"0.7167907",
"0.7167077",
"0.7121037",
"0.7078338",
"0.70771796",
"0.70771796",
"0.70771796",
"0.70771796",
"0.70160633",
"0.69780624",
"0.6867819",
"0.6632249",
"0.66223407",
"0.66223... | 0.0 | -1 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', {'site': YBEj.settings.site, 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the basket page. | def axwK(QePW):
if QePW.method == 'POST':
L03z = I6MO(QePW.POST)
if L03z.is_valid():
Npj5 = L03z.cleaned_data['region_choices_field']
MbIU = L03z.cleaned_data['category_choices_field']
YzC7 = L03z.cleaned_data['corp_choices_field']
BMgf = L03z.cleaned_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXs6():\n return TvZl('/basket.html')",
"def Ylqb(QePW):\n return _1tc(QePW, 'basket/basket.html')",
"def xk5c(QePW):\n e5kH = {'title': 'Basket'}\n QpfX = {'meta': e5kH}\n return _1tc(QePW, 'basket/basket.html', QpfX)",
"def gE_l(QePW):\n return _1tc(QePW, 'bag/bag.html')",
"def E7Bf... | [
"0.85968983",
"0.8004623",
"0.72729737",
"0.72148347",
"0.7194949",
"0.7150931",
"0.7079559",
"0.6981325",
"0.6659595",
"0.6626031",
"0.6547971",
"0.63947105",
"0.6332285",
"0.6332285",
"0.6332285",
"0.6332285",
"0.6332285",
"0.6332285",
"0.6332285",
"0.6332285",
"0.62962365"... | 0.5714509 | 58 |
Renders the genesis page. | def tDwD(QePW):
if QePW.method == 'POST':
L03z = NqSu(QePW.POST)
if 'set_selection' in L03z.data:
FYrf.g_selected = QePW.POST.getlist('selected[]')
FYrf.g_sel_form = QePW.POST.getlist('sel_form[]')
return vKnz('genesis')
if 'return_selection' in L03z.data:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RqgG():\n return TvZl('homepage.html')",
"def BZ0h():\n return TvZl('start.html')",
"def r6GU():\n return TvZl('index.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def s6RS():\n return TvZl('homepage.html', items=[])",
"def IC8O():\n return TvZl('homepage.html')",
"def l... | [
"0.66862756",
"0.66003543",
"0.65802413",
"0.6509981",
"0.6498298",
"0.6474038",
"0.63881916",
"0.63815665",
"0.6381178",
"0.6370709",
"0.6354014",
"0.63357157",
"0.6323554",
"0.628781",
"0.62695444",
"0.62669975",
"0.6256399",
"0.62355673",
"0.6231837",
"0.6220903",
"0.62209... | 0.0 | -1 |
Renders the contact page. | def Mxk0(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'FDM Fragrance Data Miner', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.74241817 | 88 |
Force v to be a contiguous array of the correct type, avoiding copies if possible. | def w0fi(Ty9i, yDqo='d'):
return XTiz.ascontiguousarray(Ty9i, dtype=yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLs6(nPrm, yDqo=oyIN.float32):\n if not nPrm.flags['C_CONTIGUOUS']:\n nPrm = oyIN.ascontiguousarray(nPrm, dtype=yDqo)\n if nPrm.dtype != yDqo:\n nPrm = nPrm.astype(yDqo, copy=False)\n return nPrm",
"def as0t(Ty9i, ROpF, yDqo=XTiz.float64):\n if Ty9i is None:\n return XTiz.emp... | [
"0.6958647",
"0.65215605",
"0.64069515",
"0.6123844",
"0.61055493",
"0.6032096",
"0.60305274",
"0.59407467",
"0.5869931",
"0.5808109",
"0.57831746",
"0.5769305",
"0.57282513",
"0.5716118",
"0.57022154",
"0.56847644",
"0.564424",
"0.56250143",
"0.5538062",
"0.5518954",
"0.5432... | 0.7431782 | 0 |
Create a contiguous array of the correct shape and type to hold a returned array, reusing an existing array if possible. | def as0t(Ty9i, ROpF, yDqo=XTiz.float64):
if Ty9i is None:
return XTiz.empty(ROpF, dtype=yDqo)
if not (isinstance(Ty9i, XTiz.ndarray) and Ty9i.dtype == XTiz.dtype(yDqo) and (Ty9i.shape == ROpF).all() and Ty9i.flags.contiguous):
raise TypeError('output vector must be contiguous %s of size %s' % (y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6NC(ezWE: np.ndarray):\n if ezWE.flags['C_CONTIGUOUS']:\n return ezWE\n if not ilt1(aDhW.MINIMAL):\n raise Fq26('Using non-contiguous memory layouts requires at least the MINIMAL memory policy')\n return oyIN.copy(ezWE, order='C')",
"def swd0() -> oyIN.ndarray:\n nPrm: oyIN.ndarray... | [
"0.7318289",
"0.71573627",
"0.6875722",
"0.66538787",
"0.65158707",
"0.6375453",
"0.63170886",
"0.62911016",
"0.6285349",
"0.6199111",
"0.61372334",
"0.6086252",
"0.60861623",
"0.60781157",
"0.6077174",
"0.6065526",
"0.6029605",
"0.60073274",
"0.6004723",
"0.5999205",
"0.5982... | 0.0 | -1 |
Filters columns for columns that have an aggregate function call. | def zrWy(YKHO, ZLJ_):
jUvS = {}
for iVRZ in ZLJ_:
iVRZ = iVRZ.lower()
if iVRZ.startswith(('count(', 'sum(', 'total(')):
jUvS[iVRZ] = sum
elif iVRZ.startswith('max('):
jUvS[iVRZ] = max
elif iVRZ.startswith('min('):
jUvS[iVRZ] = min
elif ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZq1(YKHO, jUvS: Dict[str, Aggregate], BwaX: List[GroupByColumn], tyNF: TableExpr, eHg6: Tree, jb6J: InternalTransformer, g4SI: List[Value]):\n YH9y = {iVRZ.get_name().lower() for iVRZ in g4SI}\n aMm8 = YKHO._get_aggregate_ibis_columns(jUvS, tyNF)\n eKe3 = YKHO._handle_having_expressions(eHg6, jb6J, t... | [
"0.64380944",
"0.63374156",
"0.61251676",
"0.6120806",
"0.5888494",
"0.58706075",
"0.5823838",
"0.575794",
"0.5754097",
"0.57103676",
"0.5707172",
"0.5686943",
"0.56835115",
"0.5679621",
"0.5671513",
"0.5635981",
"0.5635567",
"0.56214136",
"0.5603124",
"0.55238205",
"0.551908... | 0.6254525 | 2 |
Titlecases a mailing address except for its ordinals, i.e. 'nd', 'rd', 'st', 'th'. | def NEv0(UTX6):
Aofo = ''
TUcM = ['N', 'S', 'E', 'W', 'NW', 'NE', 'SW', 'SE']
JMoD = UTX6.split()
for YRbF in range(len(JMoD)):
ZbOB = JMoD[YRbF]
ZbOB = ZbOB.upper() if ZbOB in TUcM else ZbOB.capitalize()
Aofo += ZbOB
if YRbF < len(JMoD) - 1:
Aofo += ' '
A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAkZ(WKvO):\n try:\n LBQ_ = DMLK.tag(WKvO)\n LBQ_[0]['AddressNumber']\n except Exception:\n return ''\n if LBQ_[1] == 'Ambiguous':\n return ''\n LBQ_ = LBQ_[0]\n dkvI = LBQ_['AddressNumber']\n if dkvI and dkvI == 'one':\n dkvI = '1'\n if '-' in dkvI:\n ... | [
"0.68633246",
"0.6652551",
"0.6511445",
"0.6505183",
"0.6295576",
"0.6233837",
"0.6162111",
"0.6130074",
"0.6098088",
"0.6066908",
"0.6066908",
"0.60642403",
"0.60318387",
"0.5996848",
"0.5994404",
"0.5987523",
"0.59792686",
"0.5927724",
"0.5874311",
"0.5870243",
"0.5851113",... | 0.6313914 | 4 |
Checks whether or not the inputted string as an email address. | def gqOy(D3lj: str):
return ZbWC.match('[^@]+@[^@]+\\.[^@]+', D3lj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gqOy(KCHu):\n return bool(abGk.match(KCHu))",
"def QLqX(ombM):\n if '@' not in ombM:\n raise ValueError(f'An email address must be specified. You supplied {ombM}')\n return ombM",
"def Bt7w(UTX6):\n UTX6 = Qsf5(UTX6)\n if '@' not in UTX6:\n return False\n i9qL, Slw0 = UTX6.... | [
"0.8416963",
"0.8307994",
"0.81861323",
"0.8185087",
"0.81692445",
"0.81036395",
"0.7946069",
"0.7889763",
"0.7845173",
"0.7843295",
"0.7842171",
"0.7824674",
"0.77994084",
"0.77945274",
"0.7786503",
"0.77746993",
"0.777207",
"0.7763288",
"0.77569336",
"0.7746204",
"0.772175"... | 0.7825311 | 11 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode()[0]
print('Most common month is: ', sve5)
Mkm7 = jQ3Z['day_of_week'].mode()[0]
print('Most common day of week is: ', Mkm7)
gv0d = jQ3Z['start_hour'].mode()[0]
print... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.8000844",
"0.7921982",
"0.7892428",
"0.78627133",
"0.7859783",
"0.7839671",
"0.7801052",
"0.7785909",
"0.7736335",
"0.7724394",
"0.7714449",
"0.77094305",
"0.77053905",
"0.7702663",
"0.76906323",
"0.7686918",
"0.76811683",
"0.7679932",
"0.76733255",
"0.7662347",
"0.7661214... | 0.7603766 | 37 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('Most common start station is: ', _8rG)
oFx8 = jQ3Z['End Station'].mode()[0]
print('Most common end station is: ', oFx8)
jQ3Z['start_end_Station'] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.71954215 | 78 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('Total travel time in days:', jQ3Z['Trip Duration'].sum() / 86400)
print('Mean total travel time in mins:', jQ3Z['Trip Duration'].mean() / 60)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.78431284 | 68 |
Given a state and an action, returns step cost, which is the incremental cost of moving to that successor. | def ozc7(YKHO, QTBn, XeOP):
gnPz.raiseNotDefined() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zW71(YKHO, QTBn: Tuple[str, str], XeOP: Tuple[str, str]) -> float:\n tOnU = sum([YKHO.unigramCost(WKvO) for WKvO in QTBn[1].split()])\n EiLl = sum([YKHO.unigramCost(WKvO) for WKvO in XeOP[1].split()])\n IyZo = EiLl - tOnU\n return IyZo",
"def zW71(YKHO, QTBn: Tuple[str, str], XeOP: Tuple[str, str... | [
"0.82400113",
"0.7963252",
"0.7479255",
"0.73112226",
"0.71729565",
"0.71538943",
"0.71094424",
"0.7104858",
"0.7104858",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
"0.70819956",
... | 0.62123823 | 98 |
Plot the lensed and unlensed images | def JmFt(YKHO, xqJx=True, LkqB=False):
LZpg, aNZO = QrM1.subplots(1, 2)
LZpg.set_size_inches(20, 10)
aNZO[0].tick_params(axis='both', which='both', labelsize=20)
aNZO[1].tick_params(axis='both', which='both', labelsize=20)
RLh9 = [-YKHO.shape[1] * YKHO.pixel_size.value / 2, YKHO.shape[1] * YKHO.pixe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPsg(Zr75, aqvJ, XwV_):\n QrM1.gray()\n QrM1.figure('Light')\n QrM1.imshow(Zr75)\n QrM1.figure('Shear 0')\n QrM1.imshow(aqvJ)\n QrM1.figure('Shear 45')\n QrM1.imshow(XwV_)",
"def dZbU(VXjJ, pG0V, aTLP, IznC, k1TJ=None, xNJ1=True):\n QrM1.figure(figsize=(25, 25))\n p7kO = 1\n Oha... | [
"0.66188604",
"0.65126693",
"0.6390093",
"0.6322782",
"0.63148475",
"0.63113207",
"0.62899745",
"0.6280096",
"0.6245506",
"0.62368196",
"0.6231088",
"0.6219749",
"0.6215222",
"0.6204651",
"0.619787",
"0.61717963",
"0.6161275",
"0.61584044",
"0.6156148",
"0.6137793",
"0.613643... | 0.0 | -1 |
Returns theta given some beta | def sV3B(YKHO, UqYS):
vYgq = 1 / 2 * (UqYS + oyIN.sqrt(UqYS ** 2 + 4 * YKHO.einstein_radius ** 2))
i6d7 = 1 / 2 * (UqYS - oyIN.sqrt(UqYS ** 2 + 4 * YKHO.einstein_radius ** 2))
return (vYgq, i6d7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7In(jzdc=Cwt5, Fg_i=UqYS):\n return ppyF.invlogit(jzdc + Fg_i * WKvO)",
"def AMOe(UqYS, q7In):\n return UqYS * XTiz.sin(q7In) / (1 - UqYS * XTiz.cos(q7In))",
"def q7In(YKHO):\n if YKHO.beta == jBOT(YKHO.M_1) or YKHO.beta == oyIN.pi / 2:\n q7In = 0.0\n else:\n q7In = oyIN.arctan(2... | [
"0.80064845",
"0.77264315",
"0.7500616",
"0.7186477",
"0.7147364",
"0.70907396",
"0.70865333",
"0.70444506",
"0.70268416",
"0.6917846",
"0.68589365",
"0.68394786",
"0.6826746",
"0.6821339",
"0.6816603",
"0.67869794",
"0.67767686",
"0.6772397",
"0.6753564",
"0.670675",
"0.6706... | 0.8191823 | 0 |
test replying to comment with a non existing article slug | def y3JA(YKHO):
YKHO.user_signup()
Ow0d, eOtH, bD7m = YKHO.post_comment(YKHO.comment_data)
YKHO.assertEqual(Ow0d.status_code, jGRS.HTTP_201_CREATED)
pQGt = Ow0d.data['comment']['id']
bD7m = gxEw('articles:list-create-reply', kwargs={'article_slug': 'non-existing-article-slugs', 'comment_pk': pQGt})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHqn(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.create_comment(s5ru)\n pQGt = aM_I.data.get('id')\n qRCH = YKHO.client.post('/api/articles/{}/comments/{}/like/'.format('abc', pQGt), HTTP_AUTHORIZATION='Bearer ' + YKHO.token, format='json')\n qRCH = ... | [
"0.7858152",
"0.7773875",
"0.7544878",
"0.7395569",
"0.7339342",
"0.73173124",
"0.7297922",
"0.71009344",
"0.7054385",
"0.7047331",
"0.70243055",
"0.69633037",
"0.69385886",
"0.6698923",
"0.66784996",
"0.6664323",
"0.66637504",
"0.6580131",
"0.65710765",
"0.6560837",
"0.65497... | 0.78030056 | 1 |
test updating non existing reply id | def qJic(YKHO):
YKHO.user_signup()
Aofo, eOtH, bD7m = YKHO.post_comment(YKHO.comment_data)
pQGt = Aofo.data['comment']['id']
YKHO.post_reply(YKHO.reply_data, pQGt, bD7m, eOtH)
bLT7 = 4455555
geh0 = YKHO.test_client.delete(bD7m + str(pQGt) + '/replies/' + str(bLT7) + '/', format='json', HTTP_AUTH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYmT(YKHO):\n YKHO.user_signup()\n Aofo, eOtH, bD7m = YKHO.post_comment(YKHO.comment_data)\n pQGt = Aofo.data['comment']['id']\n Ow0d = YKHO.post_reply(YKHO.reply_data, pQGt, bD7m, eOtH)\n bLT7 = Ow0d.data['reply']['id']\n geh0 = YKHO.test_client.put(bD7m + str(pQGt) + '/replies/' + str(bLT7)... | [
"0.7873757",
"0.74314374",
"0.7325602",
"0.70809484",
"0.7073486",
"0.6972689",
"0.6960194",
"0.695579",
"0.6948882",
"0.69284606",
"0.6766518",
"0.67396736",
"0.66605306",
"0.6659775",
"0.66539156",
"0.65870106",
"0.65639514",
"0.6561874",
"0.6540352",
"0.6532401",
"0.653211... | 0.8324439 | 0 |
Load the page for a logged in user that displays the user's stories. Requires login | def tZV4(uJjO):
if 'user_id' not in cuiw or uJjO != cuiw['user_id']:
return vKnz('/login')
CBIr = mv1M.query.get(uJjO)
Yv78 = LC16.query.filter(LC16.user_id == CBIr.id).order_by(LC16.title)
return TvZl('user_home.html', user=CBIr, recipe_list=Yv78) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0hZ(QePW):\n QePW, btSg, Q9k3 = ViZA(request=QePW)\n QpfX = {r9bb: QePW, Edpv: QePW.user, BzHq: Q9k3, N2Jh: btSg}\n return _1tc(QePW, ie4P, QpfX)",
"def z39Z(CBIr):\n cepN = qzs1.find().sort('_id', -1)\n A0Gq = list(qzs1.find().sort('_id', 1))\n if 'user' in cuiw:\n BjjM = mQ30.find... | [
"0.67314094",
"0.6614929",
"0.6481086",
"0.6464127",
"0.6403776",
"0.63539886",
"0.6333834",
"0.6250776",
"0.6232516",
"0.61924213",
"0.6184988",
"0.61795425",
"0.6167467",
"0.6138679",
"0.61163455",
"0.60878396",
"0.6077591",
"0.6068549",
"0.60605043",
"0.6055545",
"0.604166... | 0.0 | -1 |
Retrieve form values, create a recipe instance and add it to the database | def sbfB():
if 'user_id' not in cuiw:
return vKnz('/login')
L03z = KYG4()
if L03z.validate_on_submit():
leAC = L03z.title.data
TBsA = L03z.body.data
YSCM = LC16(user_id=cuiw['user_id'], title=leAC, body=TBsA)
NCls.session.add(YSCM)
NCls.session.commit()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sbfB():\n L03z = H6V6.AddRecipe()\n if L03z.validate_on_submit():\n mWFP = L03z.title.data\n zKHR = L03z.ingredients.data\n tpqA = L03z.preparation.data\n dDGN = L03z.extra.data\n WjtZ = L03z.web_picture.data\n t3Zk = L03z.category1.data\n NSyJ = L03z.cate... | [
"0.7430339",
"0.7230897",
"0.7155403",
"0.7096518",
"0.7040023",
"0.7035387",
"0.697108",
"0.69635004",
"0.6932062",
"0.6931032",
"0.6866817",
"0.68190956",
"0.678346",
"0.67568946",
"0.67541116",
"0.67171675",
"0.6699856",
"0.6663427",
"0.6613006",
"0.657452",
"0.6569013",
... | 0.72777444 | 1 |
if array a is larger than shape, crop a; if a is smaller than shape, pad a with zeros | def Einh(jzdc, ROpF):
if jzdc.shape[0] < ROpF[0]:
jzdc = oyIN.pad(jzdc, ((0, ROpF[0] - jzdc.shape[0]), (0, 0)), mode='constant')
if jzdc.shape[1] < ROpF[1]:
jzdc = oyIN.pad(jzdc, ((0, 0), (0, ROpF[1] - jzdc.shape[1])), mode='constant')
if jzdc.shape[0] > ROpF[0]:
jzdc = jzdc[0:ROpF[0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QuSM(VOC_, u5Om):\n yDqo = VOC_.dtype\n cWEc = VOC_.shape[:2]\n u5Om = u5Om[:2]\n if tuple(cWEc) == tuple(u5Om):\n return VOC_\n naMS = tuple(oyIN.max([cWEc, u5Om], axis=0).astype(oyIN.int))\n VNV5 = oyIN.zeros(naMS, dtype=yDqo)\n VNV5[:cWEc[0], :cWEc[1]] = VOC_\n VNV5 = VNV5[:u5... | [
"0.75553143",
"0.7148587",
"0.71035933",
"0.70558155",
"0.6977604",
"0.6957374",
"0.6945232",
"0.6900099",
"0.68787795",
"0.67808884",
"0.67631125",
"0.67251086",
"0.6695918",
"0.6641166",
"0.663993",
"0.66334116",
"0.66221255",
"0.66052055",
"0.6560656",
"0.6556748",
"0.6519... | 0.6951865 | 6 |
This function takes two integers as input and returns the calculated Least Common Multiple(LCM) | def GAqO(NlhV, adAk):
if NlhV > adAk:
x5t6 = adAk
else:
x5t6 = NlhV
while True:
if x5t6 % NlhV == 0 and x5t6 % adAk == 0:
return x5t6
x5t6 += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(_1qI, zDMu):\n if _1qI == zDMu == 0:\n return 0\n return abs(_1qI * zDMu) // sHyq(_1qI, zDMu)",
"def hxpO(jzdc, Fg_i):\n import fractions\n return abs(jzdc * Fg_i) / fractions.gcd(jzdc, Fg_i) if jzdc and Fg_i else 0",
"def rrUl(jzdc: int, Fg_i: int) -> int:\n return jzdc * Fg_i /... | [
"0.8377061",
"0.83201915",
"0.8278881",
"0.8215407",
"0.8200354",
"0.8200354",
"0.8156142",
"0.814452",
"0.814452",
"0.8138107",
"0.8128534",
"0.8128534",
"0.8126506",
"0.812552",
"0.8111242",
"0.8111242",
"0.8111242",
"0.8111242",
"0.8111242",
"0.8111242",
"0.8111242",
"0.... | 0.7398525 | 88 |
The name of the Resource Group where the HPC Cache Blob NFS Target should exist. Changing this forces a new HPC Cache Blob NFS Target to be created. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return q... | [
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.... | 0.0 | -1 |
The Resource Manager ID of the Storage Container used as the HPC Cache Blob NFS Target. Changing this forces a new resource to be created. | def xlAP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'storage_container_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_dq(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_container_host_resource_id')",
"def C1RS(YKHO):\n return 'hmc_uuid'",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def LKQQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_db_server_resource_id')",
"def kqDp(YKHO):\n return YKHO._stor... | [
"0.6364979",
"0.58976346",
"0.58304274",
"0.579321",
"0.57372147",
"0.5702214",
"0.5627263",
"0.5579688",
"0.556077",
"0.55545735",
"0.55545735",
"0.5531923",
"0.5531923",
"0.5526726",
"0.55261517",
"0.55189",
"0.55189",
"0.5476115",
"0.5476115",
"0.54391766",
"0.5417777",
... | 0.5668263 | 6 |
The name of the Resource Group where the HPC Cache Blob NFS Target should exist. Changing this forces a new HPC Cache Blob NFS Target to be created. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return q... | [
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.63707584",
"0.61673105",
"0.61673105",
"0.61673105",
"0.61673105",
"0.61673105",
"0.61673105",
"0.61673105"... | 0.0 | -1 |
The Resource Manager ID of the Storage Container used as the HPC Cache Blob NFS Target. Changing this forces a new resource to be created. | def xlAP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'storage_container_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_dq(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_container_host_resource_id')",
"def C1RS(YKHO):\n return 'hmc_uuid'",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def LKQQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_db_server_resource_id')",
"def kqDp(YKHO):\n return YKHO._stor... | [
"0.63653123",
"0.5898157",
"0.5831215",
"0.57921994",
"0.57354325",
"0.5702955",
"0.5667151",
"0.5625766",
"0.5580955",
"0.5561071",
"0.55553746",
"0.55553746",
"0.5532959",
"0.5532959",
"0.5527619",
"0.5519817",
"0.5519817",
"0.547674",
"0.547674",
"0.5440103",
"0.5418777",
... | 0.5525251 | 15 |
The name of the Resource Group where the HPC Cache Blob NFS Target should exist. Changing this forces a new HPC Cache Blob NFS Target to be created. | def TRLE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_resource_group_name')",
"def S5YG(YKHO) -> h8nf[str]:\n return q... | [
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.63699096",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.6166565",
"0.... | 0.58648705 | 45 |
The Resource Manager ID of the Storage Container used as the HPC Cache Blob NFS Target. Changing this forces a new resource to be created. | def xlAP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'storage_container_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_dq(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_container_host_resource_id')",
"def C1RS(YKHO):\n return 'hmc_uuid'",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def LKQQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_db_server_resource_id')",
"def kqDp(YKHO):\n return YKHO._stor... | [
"0.63653123",
"0.5898157",
"0.5831215",
"0.57921994",
"0.57354325",
"0.5702955",
"0.5667151",
"0.5580955",
"0.5561071",
"0.55553746",
"0.55553746",
"0.5532959",
"0.5532959",
"0.5527619",
"0.5525251",
"0.5519817",
"0.5519817",
"0.547674",
"0.547674",
"0.5440103",
"0.5418777",
... | 0.5625766 | 7 |
Convert contour path to coordinates If closed is true, first and last point are coincident to form a closed loop (e.g., for plotting) If array is true, return 2D array with shape (N,2) Otherwise, return x and y components | def lEZU(YKHO, pmON, msNV=False, qw7D=False):
WKvO = [YKHO.x[YRbF, r845] for r845, YRbF in zip(pmON[:, 0], pmON[:, 1])]
LVAh = [YKHO.y[YRbF, r845] for r845, YRbF in zip(pmON[:, 0], pmON[:, 1])]
if msNV:
if not WKvO[-1] == WKvO[0] or not LVAh[-1] == LVAh[0]:
WKvO.append(WKvO[0])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e9c5(qw7D, WKvO, LVAh, hPuM, ABDL):\n Iowl = sorted(Tcon.find_contours(qw7D, ABDL), key=lambda WKvO: len(WKvO))\n YRbF = list(range(0, len(WKvO)))\n r845 = list(range(0, len(LVAh)))\n FDPT = []\n QnmL = []\n nsfK = []\n for G1Hx in range(0, len(Iowl)):\n iLki = Iowl[G1Hx]\n K... | [
"0.57655394",
"0.569858",
"0.56665844",
"0.56535006",
"0.56408596",
"0.5488758",
"0.5474831",
"0.54739344",
"0.5445592",
"0.5399787",
"0.53880495",
"0.53691447",
"0.534634",
"0.5283475",
"0.5281333",
"0.5249404",
"0.52362394",
"0.52067983",
"0.5203799",
"0.5178118",
"0.516988... | 0.7982585 | 0 |
Get all contours using cv2.findContours() | def qwfl(YKHO, knl1):
bGrB, Z3J6 = XC5k.threshold(YKHO.img, thresh=knl1, maxval=255, type=XC5k.THRESH_BINARY)
if XC5k.__version__.startswith('3'):
bGrB, ED9N, gEYm = XC5k.findContours(Z3J6, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)
else:
ED9N, gEYm = XC5k.findContours(Z3J6, XC5k.RETR_TREE, X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QG_z(YKHO):\n return XC5k.findContours(YKHO.input, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_SIMPLE)",
"def QG_z(VXjJ):\n bGrB, knl1 = XC5k.threshold(VXjJ, 127, 255, 0)\n bGrB, Iowl, bGrB = XC5k.findContours(knl1, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)\n return Iowl",
"def QG_z(YKHO):\n YKHO.pre... | [
"0.8519265",
"0.81610864",
"0.80616647",
"0.79757243",
"0.7921068",
"0.7852751",
"0.77906185",
"0.7781598",
"0.7781598",
"0.7781598",
"0.7781598",
"0.7781598",
"0.77734447",
"0.77734447",
"0.76984954",
"0.7638084",
"0.76201606",
"0.7525697",
"0.7493441",
"0.7445074",
"0.74244... | 0.8378283 | 1 |
Calculate the area enclosed by an arbitrary path using Green's Theorem, assuming that the path is closed. | def vn7_(YKHO, pmON=None, jNOo=None):
if jNOo is None:
fsgT, cEY3 = YKHO.to_coords(pmON, closed=True)
else:
fsgT = jNOo[:, 0]
cEY3 = jNOo[:, 1]
Jw7X = oyIN.diff(fsgT)
eUWA = oyIN.diff(cEY3)
return 0.5 * oyIN.abs(oyIN.sum(cEY3[:-1] * Jw7X - fsgT[:-1] * eUWA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWpP(pNZh):\n pass",
"def f0tD(YKHO):\n if ML2l(YKHO.height, YKHO.width) == 1:\n return (YKHO.height - 1) * (YKHO.width - 1) / 2 - sum(YKHO.path)\n else:\n return YKHO.max_area() - sum(YKHO.path)",
"def f0tD(YKHO):\n f0tD = 0\n for D70y in YKHO.edges:\n o4D3, si3g, bGrB ... | [
"0.6832533",
"0.67723215",
"0.6755936",
"0.66757435",
"0.64599615",
"0.63913447",
"0.6377481",
"0.63377786",
"0.62610394",
"0.62310064",
"0.6076843",
"0.60665727",
"0.60519636",
"0.60379416",
"0.6028649",
"0.60164165",
"0.60074794",
"0.59804475",
"0.5971872",
"0.59642696",
"0... | 0.6847725 | 0 |
Perform moving average in polar coordinates | def m_8V(yhy4, hLRM=(0, 0), KnxT=3):
WKvO = yhy4[:-1, 0] - hLRM[0]
LVAh = yhy4[:-1, 1] - hLRM[1]
TRVV = oyIN.sqrt(WKvO ** 2 + LVAh ** 2)
uO7a = oyIN.arctan2(LVAh, WKvO)
YRbF = int(KnxT / 2)
Mkmy = oyIN.concatenate((TRVV[-YRbF:], TRVV, TRVV[:YRbF]))
VllR = oyIN.concatenate((uO7a[-YRbF:], uO7a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGK(YKHO, dy_H):\n return dy_H.ix[-YKHO.window:].mean()",
"def ZCKv(hkxX: List[float]) -> float:\n qqgr = hkxX[0]\n for wEf2 in hkxX:\n qqgr = qqgr * 0.4 + wEf2 * 0.6\n return qqgr",
"def b5ju(agUT, DDI8):\n return DDI8.rolling(agUT).mean()",
"def mQgV(MEia):\n return oyIN.mean(... | [
"0.63432676",
"0.63077736",
"0.62753123",
"0.62710965",
"0.62673193",
"0.625939",
"0.62159854",
"0.62159854",
"0.62159854",
"0.62159854",
"0.62014365",
"0.61845565",
"0.6144159",
"0.6143414",
"0.6142383",
"0.6134464",
"0.6131479",
"0.6112974",
"0.61084",
"0.6093864",
"0.60786... | 0.0 | -1 |
Fetch configuration value stored for key | def Zmkp(H5ew, B7c0=None, n_Kh=None):
assert isinstance(H5ew, str)
if B7c0 is not None and n_Kh is not None:
assert isinstance(B7c0, str)
assert isinstance(n_Kh, str)
BJsk.b64decode(B7c0)
BJsk.b64decode(n_Kh)
with EVcG.DatabaseConnection() as H7GR:
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(H5ew):\n BWXx = NCls.query(\"SELECT value FROM config WHERE name = '%s' LIMIT 1\" % H5ew, fetch='one')[0]\n return BWXx",
"def rF6r(YKHO, H5ew):\n DpUl = YKHO.conn.cursor()\n DpUl.execute(YKHO.sql_config_select, (H5ew,))\n wEf2 = DpUl.fetchone()[0]\n DpUl.close()\n return wEf2",
"... | [
"0.84781927",
"0.84575284",
"0.8292224",
"0.8291215",
"0.8194743",
"0.81787217",
"0.81542444",
"0.81109303",
"0.80685544",
"0.8064746",
"0.7984181",
"0.78895223",
"0.7865849",
"0.7850392",
"0.78359044",
"0.78078544",
"0.77953905",
"0.7758388",
"0.7752862",
"0.7752862",
"0.775... | 0.0 | -1 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))",
"def MAw8(YKHO):\n ... | [
"0.6880629",
"0.64517695",
"0.6377572",
"0.63079625",
"0.62515086",
"0.6233768",
"0.62034684",
"0.61984754",
"0.61882585",
"0.61882585",
"0.6126888",
"0.61185306",
"0.60700804",
"0.6000492",
"0.5997249",
"0.5995625",
"0.5969928",
"0.59628063",
"0.59474343",
"0.5938205",
"0.59... | 0.5651715 | 49 |
Add the categorical count plots (stacked bar plot) data to the report | def SLi_(YKHO) -> None:
def TgJ0(FzaM: Dict, BZ2A: str, rsky: str, rKUn: str) -> None:
"""
Calculate the value counts for each dataset and for that particular categorical feature.
Then groups the value_counts() dataframes afterwards it computes the data needed for the stacked bar pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYUl(YKHO):\n if YKHO.color is None:\n qfpW = None\n else:\n qfpW = 'color'\n if YKHO.x_type == 'text':\n eQSh = mTJx(YKHO.plot_data, 'x', color=qfpW, max_features=25)\n YKHO.x_order = sorted(eQSh['x'].unique())\n else:\n eQSh = z5tr(YKHO.plot_data, 'x', color=qfp... | [
"0.7219214",
"0.6821402",
"0.6782039",
"0.66630185",
"0.6593445",
"0.6483899",
"0.64805436",
"0.64762205",
"0.63457495",
"0.6332501",
"0.6331262",
"0.6323201",
"0.63127965",
"0.63090205",
"0.627812",
"0.625866",
"0.62534696",
"0.62370104",
"0.6207601",
"0.62042904",
"0.618817... | 0.73255444 | 0 |
Get the device (CPU or GPU) on which the policy is stored. | def begE(YKHO) -> str:
return YKHO._device | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeaS():\n YMDC = tgzD().general\n wqL3 = YMDC.gpu\n begE = ht2j.device(f'cuda:{wqL3}' if wqL3 >= 0 else 'cpu')\n return begE",
"def VeaS():\n if ht2j.cuda.is_available():\n return ht2j.device('cuda')\n else:\n return ht2j.device('cpu')",
"def VeaS():\n return ht2j.device(... | [
"0.78359747",
"0.7673413",
"0.7649916",
"0.7635074",
"0.7593677",
"0.7588883",
"0.75705117",
"0.75705117",
"0.75620806",
"0.7545402",
"0.7538043",
"0.7480955",
"0.7477268",
"0.7454041",
"0.74438256",
"0.7438287",
"0.74244344",
"0.7404506",
"0.73996216",
"0.7388911",
"0.734964... | 0.0 | -1 |
Get the untransformed standard deviation vector given the logtransformed. | def yeSI(YKHO) -> Br5Q.Tensor:
return Br5Q.max(Br5Q.exp(YKHO.log_halfspan), YKHO.halfspan_min) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EhTY(tLLm):\n WTkW = oyIN.exp(tLLm)\n ROpF = WTkW.shape\n WTkW = WTkW.ravel()\n der0 = oyIN.argsort(WTkW)[::-1]\n rl2M = oyIN.argsort(der0)\n Cyy_ = WTkW[der0].cumsum()\n Cyy_ /= Cyy_[-1]\n return Cyy_[rl2M].reshape(ROpF)",
"def CTnU(WKvO):\n Z9rn = -0.5 * oyIN.log(2 * oyIN.pi)\n ... | [
"0.7219633",
"0.67777354",
"0.6719531",
"0.65320235",
"0.6306676",
"0.63055867",
"0.6239996",
"0.62221706",
"0.617924",
"0.6168582",
"0.6147761",
"0.6139714",
"0.61190414",
"0.60957927",
"0.60942715",
"0.6078906",
"0.60786027",
"0.60786027",
"0.6076993",
"0.6058594",
"0.60527... | 0.0 | -1 |
Get the exploration distribution's entropy. The entropy of a uniform distribution is independent of the mean. | def ebCz(YKHO) -> Br5Q.Tensor:
return Br5Q.log(2 * YKHO.halfspan) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqGu(YKHO):\n return YKHO._normal.entropy()",
"def oqGu(YKHO) -> float:\n return YKHO._distribution.entropy()[0]",
"def oqGu(YKHO):\n try:\n return YKHO._entropy()\n except AttributeError:\n return YKHO.dist.entropy()",
"def oqGu(YKHO):\n if YKHO.mean.ndim == YKHO.cov.ndim:\n... | [
"0.7746429",
"0.7711773",
"0.7626798",
"0.74403787",
"0.7393982",
"0.7384962",
"0.73616123",
"0.7258969",
"0.72498566",
"0.7209573",
"0.7193358",
"0.71855944",
"0.716122",
"0.716122",
"0.71123713",
"0.7083111",
"0.7055661",
"0.7053484",
"0.70526695",
"0.7040897",
"0.70351374"... | 0.6399755 | 78 |
find the whole contours and make a numpy array make a rotated bounding box, and rotate the image | def i_oL(LNo8):
mC4V = XC5k.Canny(XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY), 100, 200)
bGrB, Iowl, bGrB = XC5k.findContours(mC4V, XC5k.RETR_LIST, XC5k.CHAIN_APPROX_NONE)
LTIa = []
for MKlR, r9Hf in enumerate(Iowl):
f0tD = XC5k.contourArea(r9Hf)
if f0tD >= 90:
for XP5J in r9Hf:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i82s(YKHO, LNo8):\n Cd_s = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2HSV)\n pAtT = XC5k.inRange(Cd_s, YKHO.colors.low_blue, YKHO.colors.up_blue)\n Iowl, bGrB = XC5k.findContours(pAtT, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_NONE)\n YRdx = 0\n P6Dd = None\n for iLki in Iowl:\n f0tD = XC5k.contourAr... | [
"0.71809876",
"0.6615113",
"0.645663",
"0.6419329",
"0.6334722",
"0.6242815",
"0.6194969",
"0.6182662",
"0.6178048",
"0.6140244",
"0.61326337",
"0.61132765",
"0.61059016",
"0.6081515",
"0.6037455",
"0.60340685",
"0.6031587",
"0.6028574",
"0.60275656",
"0.599521",
"0.59934324"... | 0.72266465 | 0 |
return self's last name | def Gs8i(YKHO):
return YKHO.lastName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCKR(YKHO):\n return YKHO.last_name",
"def CCKR(YKHO) -> str:\n return YKHO.last_name",
"def CCKR(YKHO):\n return YKHO._last_name",
"def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')",
"def CCKR(YKHO):\n return YKHO._last_name",
"def zp3f(YKHO):\n return YKHO.__last_name",... | [
"0.93970996",
"0.93772346",
"0.93282735",
"0.929482",
"0.92648196",
"0.9239754",
"0.9228655",
"0.9228655",
"0.9228655",
"0.9228655",
"0.9228655",
"0.9168983",
"0.9160468",
"0.91595125",
"0.91595125",
"0.91595125",
"0.91595125",
"0.91595125",
"0.91595125",
"0.91595125",
"0.912... | 0.89252687 | 28 |
returns self's current age in days | def lUqL(YKHO):
if YKHO.birthday == None:
raise ValueError
return (qcWV.date.today() - YKHO.birthday).days | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZJe_(YKHO):\n return YKHO.get_relative_age(qcWV.date.today())",
"def N_N1(YKHO):\n if YKHO._birthday == None:\n raise ValueError\n return (qcWV.date.today() - YKHO._birthday).days",
"def lUqL(YKHO):\n if YKHO.birthday == None:\n raise ValueError\n return (qcWV.date.today() - YK... | [
"0.85277677",
"0.8429417",
"0.84287363",
"0.83987737",
"0.83515805",
"0.83490217",
"0.8342803",
"0.8295997",
"0.8293543",
"0.8278787",
"0.82377136",
"0.819992",
"0.8174079",
"0.8161252",
"0.80559266",
"0.80175316",
"0.79865646",
"0.79836994",
"0.79836994",
"0.7964313",
"0.793... | 0.84440595 | 2 |
return True if self's ame is lexicographically less than other's name, and False otherwise | def JWbp(YKHO, Elif):
if YKHO.lastName == Elif.lastName:
return YKHO.name < Elif.name
return YKHO.lastName < Elif.lastName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return YKHO.name <= Elif.name",
"def Zcf_(YKHO, Elif):\n return YKHO.name >= Elif.name",
"def JWbp(YKHO, Elif):\n return YKHO._name < Elif._name",
"def JWbp(YKHO, Elif):\n return YKHO.name < Elif.name",
"def JWbp(YKHO, Elif):\n return YKHO.name < Elif.name",
"def JW... | [
"0.7921357",
"0.78060967",
"0.77652186",
"0.772031",
"0.772031",
"0.7701398",
"0.7649676",
"0.7593787",
"0.7521888",
"0.7463246",
"0.73730975",
"0.7371062",
"0.73239654",
"0.7316127",
"0.7277144",
"0.7251779",
"0.72072965",
"0.7203955",
"0.7140669",
"0.7134035",
"0.706595",
... | 0.74411225 | 11 |
Read tokenized sentences from file | def Y2KJ(VqRE, Iav5=False):
Rhv4 = []
with open(VqRE) as eHNT:
for zFiD in eHNT.readlines():
g4y1 = zFiD.strip().split('|||')
A6ju = g4y1[0].strip().split()
O6wZ = g4y1[1].strip().split() if len(g4y1) > 1 else ['O' for bGrB in A6ju]
if Iav5:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjKH(Ux0P):\n yvT9 = []\n with open(Ux0P) as apum:\n for zFiD in apum:\n zFiD = zFiD.strip()\n s2mk = zFiD.split()\n yvT9.append(s2mk)\n return yvT9",
"def UlWi(gIsw):\n s2mk = []\n with open(gIsw, 'r') as nUeQ:\n for zFiD in nUeQ:\n zF... | [
"0.7910874",
"0.78219444",
"0.77251834",
"0.7684018",
"0.7531089",
"0.74810183",
"0.74053705",
"0.73968637",
"0.73968637",
"0.73968637",
"0.73186207",
"0.73173994",
"0.73005116",
"0.72535175",
"0.72535175",
"0.72499937",
"0.71943855",
"0.71484596",
"0.7145973",
"0.7144882",
"... | 0.6528753 | 85 |
Remove all invalidate characters in file path | def Aj7_(wEf2, pGQh=gbPf.gettempdir()):
IznC = '{}.lock'.format('_'.join(mm8C.findall(wEf2)))
if pGQh:
IznC = Hy7s.path.join(pGQh, IznC)
return IznC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWVE(pmON):\n sIC1 = ['&', ';', '(', ')', '$', '`', \"'\", ' ']\n for Z9rn in sIC1:\n pmON = pmON.replace(Z9rn, '\\\\' + Z9rn)\n return pmON",
"def beR0(pmON):\n return B3X0(pmON, '<>\"/|?*' + ''.join(map(chr, range(0, 31))))",
"def AWVE(pmON):\n return ''.join((YRbF for YRbF in pmON ... | [
"0.7939042",
"0.78772765",
"0.7857197",
"0.77713835",
"0.75714594",
"0.75307375",
"0.74337775",
"0.73384964",
"0.72811997",
"0.7278759",
"0.7272033",
"0.7226755",
"0.7208788",
"0.7191822",
"0.7164417",
"0.7147917",
"0.7147917",
"0.7142435",
"0.71259326",
"0.7082368",
"0.70749... | 0.0 | -1 |