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 |
|---|---|---|---|---|---|---|
Return the email address to satisfy FlaskLogin's requirements. | def unpH(YKHO):
return IguF(YKHO.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return ... | [
"0.74655795",
"0.74655795",
"0.74655795",
"0.74655795",
"0.7447328",
"0.7447328",
"0.7447328",
"0.7441319",
"0.7441319",
"0.7441319",
"0.7441319",
"0.7441319",
"0.7441319",
"0.7441319",
"0.7423188",
"0.7293557",
"0.7235087",
"0.7231287",
"0.72089976",
"0.7177663",
"0.71498156... | 0.0 | -1 |
Return True if the user is authenticated. | def rts1(YKHO):
return YKHO.authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(Vu5X())",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n retu... | [
"0.8739372",
"0.87086535",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.8613915",
"0.8609252",
"0.8578436",
"0.83723366",
"0.83587176",
"0.8258534",
"0.82273275",
"0.8209421",
"0.8200795",
"0.8174884",
"0.81280386",
"0.8... | 0.8580474 | 21 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn():\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed",
"def rts1(YKHO):\n return False",
"def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w",
"def... | [
"0.85624325",
"0.83800477",
"0.82456774",
"0.7815806",
"0.7576082",
"0.72904116",
"0.72619915",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72338396",
"0.715833",
"0.7106215",
"0.70944613",
"0.70567185",
"0.70209265",
"... | 0.8360155 | 14 |
Creates the app and initializes the config of the app | def LUif(suDX=eJgE.Config):
P4t4 = WsL5.Flask(__name__)
P4t4.config.from_object(eJgE.Config)
NCls.init_app(P4t4)
B8ni.init_app(P4t4)
_ZMm.init_app(P4t4)
cpYK.init_app(P4t4)
import flaskblog.controller.user_controller as eQMO
import flaskblog.controller.general_controller as ea9W
impo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)",
"def LUif(YKHO):\n P4t4.config.from_object('conf... | [
"0.84064645",
"0.8173824",
"0.8027341",
"0.80095035",
"0.8000431",
"0.7800716",
"0.7797619",
"0.77753365",
"0.7758949",
"0.7753913",
"0.7747754",
"0.77299917",
"0.769039",
"0.7676692",
"0.76550883",
"0.76211506",
"0.7621147",
"0.75770366",
"0.7571011",
"0.75448424",
"0.754074... | 0.72276217 | 58 |
Given a word, we return its embedding. If the word is @ we return an empty embedding. | def B9eb(YKHO, GIN8):
if GIN8 == '@PAD@':
return ht2j.zeros(YKHO.embeddings_dim)
else:
return YKHO.embeddings[GIN8] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJO_(YKHO):\n return YKHO.emb.get_keras_embedding(dropout=YKHO.emb_dropout, trainable=YKHO.trainable_emb, input_length=YKHO.sent_maxlen)",
"def EJO_(YKHO):\n return YKHO.emb.get_keras_embedding(trainable=YKHO.trainable_emb, input_length=YKHO.sent_maxlen)",
"def Q1PJ(YKHO, GIN8: Any) -> eUWA.Expressio... | [
"0.7205014",
"0.7154769",
"0.6953269",
"0.6738175",
"0.6409667",
"0.63891476",
"0.6343911",
"0.63125765",
"0.6245909",
"0.6232979",
"0.6217436",
"0.6154561",
"0.60386926",
"0.599839",
"0.59487975",
"0.5948101",
"0.59232",
"0.5914193",
"0.58986837",
"0.5824677",
"0.5799542",
... | 0.7745891 | 0 |
Get the path to our resources folder. | def wldo(*qIxc):
pmON = Hy7s.path.dirname(xAKo)
pmON = Hy7s.path.abspath(Hy7s.path.join(pmON, Hy7s.path.pardir, 'resources'))
for ZfUD in qIxc:
pmON = Hy7s.path.abspath(Hy7s.path.join(pmON, ZfUD))
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def qU5e(Emd4) -> str:\n return Hy7s.path.join(Hy7s.path.realpath(Hy7s.path.dirname(xAKo)), Hy7s.pardir, Hy7s.pardir, Hy7s.pardir, 'gem5', 'resources')",
"def LNFL() -> oAb3.Path:\n return w2XM._ROOT.joinpath(... | [
"0.86643046",
"0.8378637",
"0.7743809",
"0.75804335",
"0.72275496",
"0.719225",
"0.71488607",
"0.7127047",
"0.70747894",
"0.70379436",
"0.70340073",
"0.6962204",
"0.69613093",
"0.6918871",
"0.69143313",
"0.68873346",
"0.68873346",
"0.68871725",
"0.68836594",
"0.68566465",
"0.... | 0.7199979 | 5 |
Returns the vector pointing from particle p1 to particle p2 | def k4a8(YKHO):
return YKHO.p2.pos - YKHO.p1.pos | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c1Wi(YKHO):\n return lNLu.createFromTwoPoints(YKHO.p1, YKHO.p2)",
"def iArr(y4fz, EBgd):\n jzdc = EBgd[0] - y4fz[0]\n Fg_i = EBgd[1] - y4fz[1]\n return (jzdc, Fg_i)",
"def AFi4(YKHO, EBgd, HpuQ):\n Ty9i = HpuQ - EBgd\n vC9B = Ty9i.Length\n return YKHO.toMatrix(Ty9i) / vC9B",
"def f6j... | [
"0.73576176",
"0.7047879",
"0.6773854",
"0.6745668",
"0.6736915",
"0.6667882",
"0.6557451",
"0.6445764",
"0.64060533",
"0.6363815",
"0.6324329",
"0.62883544",
"0.6274881",
"0.6254005",
"0.6224072",
"0.6191755",
"0.6177164",
"0.61661214",
"0.6116368",
"0.60950935",
"0.6084235"... | 0.55415106 | 96 |
Test that xlam is successfully generated from a OLE file | def zY1j():
I8Xa('tests/vbaProject.bin', 'src/data', 'success_bin.xlam')
assert vtfo('success_bin.xlam')
uu2V('success_bin.xlam')
JzWO = WDML('md5')
assert JzWO.hash_file('tests/vbaProject.bin') == JzWO.hash_file('xl/vbaProject.bin')
US14('success_bin.xlam', 'src/data', 'success_xlam.xlam')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a6Oo(YKHO):\n oUZx = '{0}'.format(Hy7s.path.join(YKHO.datadir, 'monol_testA_E3-50_pds_rebin2') + stou)\n HUqx.save_as_xspec.main(oUZx.split())\n Hy7s.path.exists(Hy7s.path.join(YKHO.datadir, 'monol_testA_E3-50_pds_rebin2.pha'))",
"def Qepy(MjEW):\n if fieZ.utils.is_excel_file_97(MjEW):\n h... | [
"0.61650157",
"0.5973011",
"0.5962556",
"0.5873756",
"0.57847834",
"0.5691951",
"0.5665343",
"0.5651631",
"0.56285954",
"0.5508423",
"0.5508423",
"0.5465604",
"0.54196095",
"0.54172206",
"0.5400182",
"0.53908134",
"0.5385172",
"0.53850764",
"0.5357528",
"0.533315",
"0.5330364... | 0.5414168 | 14 |
Test to see if all numbers in a list are consecutive. | def MSbe(JTgH):
izFS = JTgH[0] - 1
for FGW3 in JTgH:
izFS += 1
if izFS != FGW3:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LRK5(PVOR):\n if set(oyIN.diff(PVOR)) == set([1]):\n return True\n else:\n return False",
"def Ibft(gXtX):\n if len(gXtX) == 0:\n return False\n for G1Hx in range(len(gXtX) - 1):\n yk4i = abs(gXtX[G1Hx] - gXtX[G1Hx + 1])\n if yk4i == 1:\n return True\... | [
"0.8298181",
"0.76965404",
"0.7653472",
"0.66523486",
"0.6632553",
"0.6485024",
"0.6289722",
"0.6228376",
"0.6180459",
"0.61781263",
"0.6171568",
"0.6038927",
"0.6026836",
"0.6026329",
"0.6010284",
"0.5998613",
"0.5995241",
"0.59898204",
"0.59724677",
"0.5964205",
"0.596208",... | 0.84912145 | 0 |
Return a list of rook neighbors for face | def ih3m(YKHO, RpU_):
mC4V = YKHO.cw_face_edges(RpU_)
return list(set([YKHO.left_region[D70y] for D70y in mC4V])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIRx(YKHO):\n return []",
"def BTfj(YKHO):\n return [AAbN for AAbN, bGrB in YKHO.neighbors.items()]",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BT... | [
"0.7214258",
"0.7183325",
"0.7142914",
"0.7142914",
"0.7142914",
"0.7142914",
"0.711689",
"0.71140546",
"0.6957072",
"0.69526535",
"0.6927171",
"0.6880746",
"0.6863481",
"0.68318206",
"0.6790902",
"0.67848825",
"0.67337227",
"0.67166096",
"0.6711103",
"0.6708115",
"0.6705029"... | 0.8326925 | 0 |
Hide all the give buttons | def lcO2(YKHO):
for BcQj in YKHO.health_panels.values():
BcQj.hide_button() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XP2V(YKHO):\n pass",
"def Gp7C(YKHO):\n YKHO.settings_button.hide()\n YKHO.radio_button.hide()\n YKHO.blank_button.hide()\n YKHO.close_button.hide()",
"def Q3fA(YKHO):\n for nn7k in YKHO.__UI_objects:\n nn7k.hide()",
"def Z5ii(YKHO):\n for Npgh in YKHO.cboxes:\n Npgh.hi... | [
"0.8248472",
"0.815214",
"0.75692564",
"0.7316705",
"0.72356105",
"0.71855",
"0.71508044",
"0.70098287",
"0.69590956",
"0.6945517",
"0.683434",
"0.6802762",
"0.6763833",
"0.6708051",
"0.66740304",
"0.6670731",
"0.6657909",
"0.6651214",
"0.6629681",
"0.66175836",
"0.66152686",... | 0.81163603 | 2 |
Returns true if there are more elements in queue | def ebnO(YKHO):
AIu6 = YKHO.db.crawl_queue.find_one({'status': {'$ne': YKHO.COMPLETE}})
return True if AIu6 else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yykn(YKHO):\n if len(YKHO.queue) == YKHO.maxlen:\n return True\n else:\n return False",
"def any(YKHO) -> bool:\n return len(YKHO.queue) > 0",
"def Yykn(YKHO):\n return len(YKHO.queue) == YKHO.size",
"def SPTI(YKHO):\n h5J3 = 0\n while YKHO.Q.qsize() == 0 and (not YKHO.sto... | [
"0.7951514",
"0.7912515",
"0.78353816",
"0.77081764",
"0.7494042",
"0.74458694",
"0.74082726",
"0.7340187",
"0.73131305",
"0.7286642",
"0.7200341",
"0.7200341",
"0.7167515",
"0.7162698",
"0.71610945",
"0.71314126",
"0.712629",
"0.71022844",
"0.70930105",
"0.7091202",
"0.70807... | 0.0 | -1 |
Calculates the output shape of Conv2d | def hKmu(H2v2, TVTK, St08, l7WZ, tYiq, _0fC):
return (tYiq, (H2v2 - St08) / _0fC + 1, (TVTK - l7WZ) / _0fC + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UjwI(YKHO):\n return YKHO.__y2.shape",
"def iNRX(yIp6, zNig):\n w6pM = oyIN.array(zNig) + 2 * oyIN.array(yIp6.padding)\n w6pM -= oyIN.array(yIp6.dilation) * (oyIN.array(yIp6.kernel_size) - 1)\n w6pM -= 1\n w6pM = w6pM / oyIN.array(yIp6.stride) + 1\n return oyIN.floor(w6pM)",
"def I_E2(YKH... | [
"0.75668865",
"0.7222983",
"0.7196394",
"0.71196187",
"0.7083144",
"0.7083144",
"0.7083144",
"0.70378643",
"0.70119876",
"0.69937086",
"0.69783646",
"0.6930829",
"0.6912558",
"0.6906636",
"0.6898835",
"0.68910575",
"0.68647295",
"0.6860347",
"0.68561816",
"0.6854668",
"0.6854... | 0.7670311 | 0 |
Change the format of `hwc` from `(height, width, channels)` to `(batch, channels, height, width)` | def fZ4g(WB3F):
return TFH7(dAIX(WB3F)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dAIX(WB3F):\n return WB3F.permute(2, 0, 1)",
"def fBED(vhpA):\n if isinstance(vhpA, iQnE):\n return oyIN.transpose(vhpA.data.numpy(), (0, 2, 3, 1))\n elif isinstance(vhpA, ht2j.FloatTensor):\n return oyIN.transpose(vhpA.numpy(), (0, 2, 3, 1))\n else:\n raise Exception('covert... | [
"0.7169065",
"0.657868",
"0.6575038",
"0.64615595",
"0.5821664",
"0.5802621",
"0.57856226",
"0.5765042",
"0.57223004",
"0.56864095",
"0.5671263",
"0.5671263",
"0.5603312",
"0.55933166",
"0.55847925",
"0.5583463",
"0.5577185",
"0.5563041",
"0.5563041",
"0.5563041",
"0.5563041"... | 0.7195695 | 0 |
Clean the name of a company to get a better match with the url | def SREd(fgWZ):
tUAC = fgWZ.lower()
tUAC = ZbWC.sub('\\s(\\w\\.)+[\\s]*', '', tUAC)
tUAC = ZbWC.sub('\\(.*\\).*$', '', tUAC)
tUAC = ZbWC.sub('[&"]', '', tUAC)
tUAC = ZbWC.sub('\\s+', '', tUAC)
return tUAC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xU2x(YKHO, geh0):\n SQ3m = uRlK.parse.urlparse(geh0.url)\n SzCd = SQ3m.netloc.split('.')\n if len(SzCd) > 2:\n mWFP = SzCd[1]\n else:\n mWFP = SzCd[0]\n w1vn = geh0.xpath('//*/meta[@property=\"description\"]/@content').extract_first()\n if w1vn:\n return w1vn\n else:\n... | [
"0.71099955",
"0.63638985",
"0.633686",
"0.62193596",
"0.61567163",
"0.6127627",
"0.6085141",
"0.6069341",
"0.6022241",
"0.5999505",
"0.5960077",
"0.5943585",
"0.5923806",
"0.59202087",
"0.5861695",
"0.5860611",
"0.58260995",
"0.58212453",
"0.58029526",
"0.58026606",
"0.57968... | 0.52862364 | 99 |
Return the dataset given by attrname | def kY3f(YKHO):
M4N3 = YKHO.getParentObj()
tlxW = M4N3.getFileDescriptor()
for hkS8 in YKHO._attr_list:
nPrm = tlxW.get(hkS8)
if nPrm is None:
tO9_ = "Unable to open object (Object %s doesn't exist)" % hkS8
raise LsA2(tO9_)
tlxW = nPrm
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LrZq(mWFP):\n return iujc[mWFP.lower()]",
"def JgjC(YKHO, mWFP):\n return getattr(YKHO.dataset, mWFP)",
"def j_oG(YKHO, mWFP: str) -> h8nf['Dataset']:\n raise NotImplementedError",
"def G7Ug(YKHO, hGI9, hDmM=None):\n if YKHO.science_product:\n return YKHO.__nc_attr(hGI9, hDmM)\n ret... | [
"0.7200736",
"0.71141005",
"0.7057059",
"0.70067424",
"0.7004232",
"0.68233305",
"0.6647473",
"0.6621773",
"0.65331525",
"0.6517861",
"0.65117925",
"0.650482",
"0.64580303",
"0.6431572",
"0.6393592",
"0.6387506",
"0.63523895",
"0.63523895",
"0.63523895",
"0.63087416",
"0.6294... | 0.0 | -1 |
Determine whether `type_` is a subclass of `dtype`. | def Ja3L(kN9s, yDqo):
if not isinstance(kN9s, laHg.Type):
return False
return laHg.is_subclass(kN9s, yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLSt(DQwO: DType, joNQ: DType):\n return oyIN.issubdtype(a8Pe(DQwO, Pmh9), a8Pe(joNQ, Pmh9))",
"def WUsn(YKHO, cM24):\n return cM24 == YKHO.__class__.__name__",
"def WUsn(BWXx):\n if isinstance(BWXx, type):\n return issubclass(BWXx, eBH2)\n return isinstance(BWXx, eBH2)",
"def bQk0(Aoc... | [
"0.65836364",
"0.65212995",
"0.6351597",
"0.6338538",
"0.630703",
"0.62895465",
"0.62218565",
"0.6181548",
"0.6132877",
"0.6069795",
"0.6044105",
"0.59636736",
"0.59330523",
"0.59306806",
"0.59108436",
"0.5885851",
"0.57967913",
"0.5784766",
"0.57831836",
"0.57495224",
"0.570... | 0.8298411 | 0 |
Test case for create_subscription_template Create a subscription template | def _ofk(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yq4E(YKHO):\n pass",
"def _NLG(YKHO):\n pass",
"def VZXE(YKHO):\n pass",
"def mMZh(YKHO):\n pass",
"def sLBy(YKHO):\n pass",
"def lKXm(YKHO):\n pass",
"def t4Ii(YKHO):\n pass",
"def dzKy(YKHO):\n pass",
"def Zot0(YKHO):\n pass",
"def YsYP(YKHO):\n try:\n Y... | [
"0.7693981",
"0.75977504",
"0.73393166",
"0.7164994",
"0.7105468",
"0.7067066",
"0.6902376",
"0.68949294",
"0.68894017",
"0.6603974",
"0.65185064",
"0.64694715",
"0.6436654",
"0.6404223",
"0.627481",
"0.62104964",
"0.61859465",
"0.6167123",
"0.60983783",
"0.6070475",
"0.60679... | 0.8850013 | 0 |
Test case for get_subscription Retrieve a single subscription item and associated plans | def u6Ll(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nxRy(UzPC, JuHa, ekCf, V_D6=None, tf1m=None):\n return UzPC.get(url=f'{UzPC.base_url}/api/subscriptions/{JuHa}', params={'fields': V_D6}, headers={'X-MSTR-ProjectID': ekCf})",
"def nxRy(YKHO):\n return YKHO.request({'path': '/' + S7kj + '/subscription'})",
"def zfRC(YKHO, AZgw):\n ZG9D = {'subscri... | [
"0.7221876",
"0.71086645",
"0.6822837",
"0.65896064",
"0.64945227",
"0.6428486",
"0.6427117",
"0.64120084",
"0.63664573",
"0.635409",
"0.6335369",
"0.63264954",
"0.6279728",
"0.6278634",
"0.61629564",
"0.61160654",
"0.60799325",
"0.6067734",
"0.60591614",
"0.6056659",
"0.6052... | 0.74298936 | 0 |
Test case for get_subscription_templates List and search subscription templates | def dzKy(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _NLG(YKHO):\n pass",
"def Yq4E(YKHO):\n pass",
"def zcdG(YKHO):\n pass",
"def SWk4(YKHO):\n pass",
"def _ofk(YKHO):\n pass",
"def lKXm(YKHO):\n pass",
"def rcRW(YKHO):\n im04 = g6r9.get('/templates')\n Aofo = im04.json()\n aEqx = gnPz.MOCK_TEMPLATE_LIST\n YKHO.assertEq... | [
"0.8001164",
"0.78203017",
"0.7742171",
"0.7320913",
"0.6945081",
"0.6711903",
"0.6619258",
"0.65529203",
"0.6517631",
"0.6393329",
"0.6345983",
"0.6248021",
"0.6238697",
"0.6226552",
"0.6212653",
"0.6145476",
"0.61196834",
"0.6118657",
"0.60788804",
"0.607802",
"0.6051913",
... | 0.86588573 | 0 |
Test case for get_subscriptions List available subscription items and associated plans | def zlod(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6Ll(YKHO):\n pass",
"def pFo4(YKHO):\n pass",
"def utgL(YKHO, AZgw):\n ZG9D = {'foo': 'bar'}\n AZgw.patch.object(ovuz, 'list', return_value=ZG9D)\n Aofo = YKHO.runner.invoke(GSyo, ['subscription', 'list'])\n assert Aofo.output == qQXR.dumps(ZG9D, indent=4, sort_keys=True) + '\\n'",
"de... | [
"0.7344387",
"0.70370054",
"0.69961584",
"0.69321305",
"0.6892585",
"0.6881295",
"0.6822648",
"0.67232937",
"0.6693409",
"0.66729087",
"0.66596293",
"0.66575223",
"0.6639008",
"0.6598915",
"0.6580591",
"0.65343857",
"0.65290195",
"0.65274036",
"0.65196717",
"0.65025175",
"0.6... | 0.7793709 | 0 |
Test case for update_subscription_template Update a subscription template | def mMZh(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lKXm(YKHO):\n pass",
"def _ofk(YKHO):\n pass",
"def O97i(YKHO):\n pass",
"def _NLG(YKHO):\n pass",
"def Yq4E(YKHO):\n pass",
"def t4Ii(YKHO):\n pass",
"def Zot0(YKHO):\n pass",
"def hUQI(YKHO):\n pass",
"def O97i(YKHO):\n qIxc = dict(trial_amount=5.0, trial_occurrence... | [
"0.8910484",
"0.7591905",
"0.73899454",
"0.73409426",
"0.7193628",
"0.7031251",
"0.70294935",
"0.70098615",
"0.69227225",
"0.6597859",
"0.65406775",
"0.6487217",
"0.6396656",
"0.63029706",
"0.6278784",
"0.6124437",
"0.6115093",
"0.6085949",
"0.60779536",
"0.60753375",
"0.6017... | 0.9010842 | 0 |
Sets the signature_type of this PresentationRequest. | def hZjE(YKHO, hZjE):
YKHO._signature_type = hZjE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lcJm(YKHO, lcJm):\n YKHO._signer_id_type = lcJm",
"def aadv(YKHO, aadv: object):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv: object):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def YJ7w(YKHO, YJ7w... | [
"0.6334617",
"0.6109964",
"0.6109964",
"0.5990726",
"0.5990726",
"0.584678",
"0.5743265",
"0.5655761",
"0.5628889",
"0.56207186",
"0.54199916",
"0.5411409",
"0.5411409",
"0.53656065",
"0.53580594",
"0.53580594",
"0.53326476",
"0.532455",
"0.5309663",
"0.5275425",
"0.5270677",... | 0.82128924 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ehbg):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Get the camera state | def kEnG(YKHO, k78t):
return YKHO.opt.getParameter(k78t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.get_pose()",
"def yDvq(YKHO):\n return YKHO.__camera",
"def N0ND(YKHO):\n bGrB, f4IJ = YKHO.camera.read()\n return YKHO.mirror(f4IJ)",
"def yDvq(YKHO):\n return YKHO._camera",
"def yDvq(YKHO):\n return YKHO._camera",
"def zSQ_(YKHO):\n raTX, DHps = YKHO.... | [
"0.7418702",
"0.70903325",
"0.70849323",
"0.7024534",
"0.7024534",
"0.69902366",
"0.6969179",
"0.6958566",
"0.6876306",
"0.6854023",
"0.6830306",
"0.68080044",
"0.67785543",
"0.6737057",
"0.67324007",
"0.6631569",
"0.6520229",
"0.6471183",
"0.6469549",
"0.64381623",
"0.637073... | 0.8026797 | 0 |
Display image using imshow and some default values adapted to holoviews | def ILlc(waEm, xx9t=None, **B2fa):
vvmJ = B2fa.pop('alpha_below', 0.0)
muwo = {'origin': 'lower', 'aspect': 'auto', 'extent': xx9t}
muwo.update(**B2fa)
return QrM1.imshow(oyIN.ma.masked_less_equal(waEm, vvmJ), origin='lower', extent=xx9t, aspect='auto', **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t38H(YKHO, VXjJ):\n QrM1.figure(1)\n QrM1.subplot(111)\n QrM1.imshow(VXjJ, interpolation='nearest')\n QrM1.show()",
"def r2sP(YKHO):\n MPlV([0, 0, 1, 1], xticks=[], yticks=[])\n r2sP(YKHO.rgb_image())",
"def i5J1(YKHO):\n XC5k.imshow(YKHO.config.DISPLAY_NAME, YKHO.image)",
"def _Sny(... | [
"0.73273027",
"0.7198707",
"0.71909684",
"0.71902835",
"0.7145402",
"0.7119222",
"0.70969856",
"0.70824677",
"0.7069617",
"0.7018782",
"0.7003706",
"0.6973448",
"0.696171",
"0.6938317",
"0.6931517",
"0.69012994",
"0.6896671",
"0.6892891",
"0.6892891",
"0.6892891",
"0.68766886... | 0.6399075 | 74 |
Test the Film model can create a film. | def LGvi(YKHO):
YKHO.assertEqual(YKHO.film.title, 'test_a') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXwU(YKHO):\n Ylbp = YKHO.client().post('/movies', headers={'Authorization': 'Bearer {}'.format(YKHO.executive_producer_token)}, json=YKHO.VALID_NEW_MOVIE)\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 201)\n YKHO.assertTrue(nPrm['success'])\n YKHO.assertIn('created', nPrm)... | [
"0.7326092",
"0.71253955",
"0.70071846",
"0.67962664",
"0.67277986",
"0.6709954",
"0.66037697",
"0.65550524",
"0.64937556",
"0.6485218",
"0.6376396",
"0.63730735",
"0.6359602",
"0.6328501",
"0.63191885",
"0.63143927",
"0.6291337",
"0.62862486",
"0.6258519",
"0.62030053",
"0.6... | 0.845936 | 0 |
Test the api can handle POST requests. | def Sf42(YKHO):
YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_201_CREATED)
YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_201_CREATED)
YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_201_CREATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWhd(YKHO):\n YKHO.assertEqual(jGRS.HTTP_405_METHOD_NOT_ALLOWED, YKHO.response.status_code)",
"def tXk1(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_post_method()\n YKHO.assertEqual(geh0.request.method, 'POST')\n YKHO.assertEqual(geh0.status_code, 200)",
"def AWhd(YKHO):\n pass",
"def hiBY... | [
"0.81288964",
"0.8070564",
"0.79866374",
"0.78895104",
"0.7874037",
"0.786408",
"0.7684014",
"0.75225013",
"0.7472585",
"0.74551374",
"0.7442403",
"0.7430293",
"0.74298954",
"0.73765373",
"0.73765373",
"0.7321075",
"0.7302121",
"0.7235971",
"0.72245127",
"0.7190952",
"0.71374... | 0.7364214 | 15 |
Test the api can handle POST requests. | def rRkM(YKHO):
Br4M = tHpU.objects.get()
geh0 = YKHO.client.get(gxEw('create_person'), format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
YKHO.assertContains(geh0, Br4M)
VtiV = oV1n.objects.get()
geh0 = YKHO.client.get(gxEw('create_studio'), format='json')
YKHO.assertEqual(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWhd(YKHO):\n YKHO.assertEqual(jGRS.HTTP_405_METHOD_NOT_ALLOWED, YKHO.response.status_code)",
"def tXk1(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_post_method()\n YKHO.assertEqual(geh0.request.method, 'POST')\n YKHO.assertEqual(geh0.status_code, 200)",
"def AWhd(YKHO):\n pass",
"def hiBY... | [
"0.81288964",
"0.8070564",
"0.79866374",
"0.78895104",
"0.7874037",
"0.786408",
"0.7684014",
"0.75225013",
"0.7472585",
"0.74551374",
"0.7442403",
"0.7430293",
"0.74298954",
"0.73765373",
"0.73765373",
"0.7364214",
"0.7321075",
"0.7302121",
"0.7235971",
"0.72245127",
"0.71909... | 0.0 | -1 |
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.81218547",
"0.81218547",
"0.80773693",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80042696",
"0.7871678",
"0.7845623",
"0.7828392",
"0.7827006",
"0.78138447",
"... | 0.80533457 | 14 |
Assumes f is a function of one argument x_vals is an array of suitable arguments for f Returns array containing results of applying f to the elements of x_vals | def ZCQP(eHNT, mMG6):
VUzz = []
for YRbF in mMG6:
VUzz.append(eHNT(mMG6[YRbF]))
return oyIN.array(VUzz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP2T(eHNT, fUYa):\n vC9B = []\n for WKvO in fUYa:\n vC9B.append(eHNT(WKvO))\n return vC9B",
"def kla6(eHNT, y5bX):\n yvT9 = oyIN.zeros(1)\n\n def eK5b():\n for Xf84 in y5bX.reshape(2, -1).T:\n eHNT.eval(yvT9, Xf84)\n yield yvT9[0]\n hkxX = list(eK5b())\n ... | [
"0.7281645",
"0.6742578",
"0.658591",
"0.65140915",
"0.6400086",
"0.61604524",
"0.61573714",
"0.61381084",
"0.6107468",
"0.61030596",
"0.60999453",
"0.6063513",
"0.6055219",
"0.6043663",
"0.603129",
"0.5961085",
"0.5960057",
"0.59515846",
"0.59507626",
"0.5949912",
"0.594965"... | 0.7910308 | 0 |
Get global config instance. If global instance does not exist, creates it and returns it. | def tgzD(KWZ_: Dict={}) -> PSrQ:
global global_config
if ePNl is None:
ePNl = PSrQ(KWZ_)
return ePNl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(Emd4) -> tFs8:\n if Emd4.config is None:\n raise ValueError('Config is not loaded')\n return Emd4.config",
"def tgzD(Emd4) -> '__Config':\n if Emd4.__instance is None:\n Emd4.__instance = Emd4.__Config()\n return Emd4.__instance",
"def iSDi(Emd4):\n if not Emd4._instance:\... | [
"0.7702124",
"0.7666447",
"0.74472445",
"0.73517764",
"0.7137227",
"0.6890116",
"0.68409854",
"0.68341744",
"0.68113756",
"0.6741357",
"0.6717012",
"0.67168754",
"0.67119265",
"0.6708008",
"0.6545631",
"0.64705616",
"0.6428417",
"0.64224553",
"0.64224553",
"0.64224553",
"0.64... | 0.7058225 | 5 |
Sets the name of this ComAdobeGraniteAuthOauthAccesstokenProviderProperties. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n if mWFP is not None and (not isinstance(mWFP, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: str', None, None)\n YKHO.__name = mWFP\n YKHO.__key_modified['name'] = 1",
"def WZrJ(YKHO, r5PZ):\n YKHO.set_parameter('name', r5PZ)\n return YKHO",
"d... | [
"0.60287666",
"0.6024407",
"0.60225886",
"0.5862234",
"0.5850794",
"0.58209664",
"0.58209664",
"0.58209664",
"0.58209664",
"0.58209664",
"0.5820882",
"0.5798398",
"0.57773155",
"0.57608837",
"0.57555205",
"0.57384616",
"0.57384616",
"0.5729308",
"0.57279676",
"0.57265085",
"0... | 0.5715665 | 80 |
Sets the auth_token_provider_title of this ComAdobeGraniteAuthOauthAccesstokenProviderProperties. | def ldpT(YKHO, ldpT):
YKHO._auth_token_provider_title = ldpT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TCmq(YKHO, TCmq):\n YKHO._authority_title = TCmq",
"def nEvu(YKHO, nEvu: str):\n YKHO._provider_display_name = nEvu",
"def F10C(YKHO, F10C):\n YKHO._auth_token_provider_client_id = F10C",
"def mDCx(YKHO, eOtH):\n YKHO.token = eOtH\n YKHO._token_header = 'Bearer ' + eOtH['access_token']",
... | [
"0.60304767",
"0.57130814",
"0.5510178",
"0.5489032",
"0.5331379",
"0.52722764",
"0.5268265",
"0.5230474",
"0.52094156",
"0.52050406",
"0.5178924",
"0.51139545",
"0.510355",
"0.50551885",
"0.5054401",
"0.5011264",
"0.5011264",
"0.5008644",
"0.5000477",
"0.49910516",
"0.497040... | 0.8455562 | 0 |
Sets the auth_token_provider_default_claims of this ComAdobeGraniteAuthOauthAccesstokenProviderProperties. | def ifwn(YKHO, ifwn):
YKHO._auth_token_provider_default_claims = ifwn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upAD(YKHO):\n return YKHO.default_access_token",
"def DAJg(RZVq, CBIr):\n return RZVq",
"def MpQR(YKHO):\n for QAIN in YKHO.list_orgs():\n RrVN = YKHO.get_org(QAIN)\n if RrVN.default:\n del RrVN.config['default']\n RrVN.save()\n p3Na('force:config:set default... | [
"0.5696187",
"0.5610402",
"0.4889846",
"0.48809984",
"0.4812448",
"0.47694296",
"0.47215286",
"0.46632028",
"0.46542785",
"0.4609655",
"0.45344913",
"0.45305893",
"0.4524699",
"0.4516228",
"0.44998387",
"0.44568896",
"0.44416875",
"0.44141147",
"0.4407804",
"0.44063386",
"0.4... | 0.89118713 | 0 |
Sets the auth_token_validator_type of this ComAdobeGraniteAuthOauthAccesstokenProviderProperties. | def cFVy(YKHO, cFVy):
YKHO._auth_token_validator_type = cFVy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOU6(YKHO, sOU6):\n if YKHO.local_vars_configuration.client_side_validation and sOU6 is None:\n raise ValueError('Invalid value for `token_type`, must not be `None`')\n YKHO._token_type = sOU6",
"def Tdht(YKHO):\n cots = YKHO.oauth_validator_class\n if cots is not None:\n return cot... | [
"0.62380844",
"0.59773284",
"0.57731944",
"0.57731944",
"0.5772862",
"0.5731854",
"0.5603095",
"0.5092965",
"0.5038968",
"0.49872926",
"0.49421284",
"0.48805046",
"0.48672032",
"0.4865523",
"0.4845931",
"0.47426105",
"0.47426105",
"0.47108474",
"0.46993667",
"0.46798113",
"0.... | 0.8329697 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, kTFC):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Initializes a JustLatticeChord from a conventional chord name. | def JT5y(Emd4, FTSl: float, tk5Y: List[int], mWFP: str) -> Td7o:
Ziit = {'sub-minor triad': [[1, 0, 0], [-1, 0, 1]], 'minor triad': [[1, -1, 0], [1, 0, 0]], 'diminished triad': [[1, -1, 0], [0, -1, 1]], 'major triad': [[0, 1, 0], [1, 0, 0]], 'sub-minor seventh': [[-1, 0, 1], [1, 0, 0], [0, 0, 1]], 'minor seventh': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, erK7: np.ndarray=oyIN.array([0, 0, 0]), xJtk: float=1.0, AznW: float=0, xMgP: np.ndarray=oyIN.array([0, 1, 0]), Lz6s: Airfoil=dIAE('naca0012'), YF5C: bool=True, XdcU: float=0.75, npuT: float=0.0):\n YKHO.xyz_le = oyIN.array(erK7)\n YKHO.chord = xJtk\n YKHO.twist = AznW\n YKHO.twist_axis ... | [
"0.57136005",
"0.55517083",
"0.5463547",
"0.53032833",
"0.5247908",
"0.52317935",
"0.5225093",
"0.5200174",
"0.51757944",
"0.5069886",
"0.50385845",
"0.500643",
"0.49973315",
"0.49876717",
"0.4955709",
"0.4950091",
"0.4918065",
"0.49147013",
"0.49086618",
"0.4907211",
"0.4901... | 0.66535735 | 0 |
Warp image using perspective transform 1. undistort image using camera calibration 2. warp to birdseye view | def NChi(VXjJ, t2_1, pImw, E3D9):
VXjJ = XC5k.undistort(VXjJ, t2_1, pImw, None, t2_1)
Ylkb = (VXjJ.shape[1], VXjJ.shape[0])
bz0Z = XC5k.warpPerspective(VXjJ, E3D9, Ylkb, flags=XC5k.INTER_LINEAR)
return bz0Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zpfi(kauQ, _YGI, E3D9):\n s1k6, zhMh = kauQ.shape[:2]\n xMw6, WL4f = _YGI.shape[:2]\n Vk5U = oyIN.float32([[0, 0], [0, xMw6], [WL4f, xMw6], [WL4f, 0]]).reshape(-1, 1, 2)\n HA7B = oyIN.float32([[0, 0], [0, s1k6], [zhMh, s1k6], [zhMh, 0]]).reshape(-1, 1, 2)\n AtG2 = fb1Z(HA7B, E3D9)\n qInl = oy... | [
"0.7196996",
"0.7192724",
"0.71216667",
"0.71152675",
"0.7111254",
"0.6961423",
"0.6892092",
"0.673013",
"0.6703743",
"0.66898274",
"0.66599053",
"0.6609936",
"0.6608387",
"0.66074306",
"0.6594465",
"0.64382154",
"0.6433926",
"0.6328231",
"0.62793535",
"0.6255697",
"0.6190480... | 0.64864296 | 15 |
Return the home page | def d6pt(QePW):
QpfX = {'is_logged_in': QePW.user.is_authenticated}
return _1tc(QePW, 'sacms/index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy() -> ImMB:\n return vja_()",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def kZiy... | [
"0.8526042",
"0.8460915",
"0.82822025",
"0.8280693",
"0.82573193",
"0.82547617",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
... | 0.0 | -1 |
Return the home page | def GhgS(QePW):
QpfX = {'is_logged_in': QePW.user.is_authenticated}
return _1tc(QePW, 'sacms/index_en.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy() -> ImMB:\n return vja_()",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def kZiy... | [
"0.8526042",
"0.8460915",
"0.82822025",
"0.8280693",
"0.82573193",
"0.82547617",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
"0.8248272",
... | 0.0 | -1 |
Return the page for the list of all news articles | def v0cs(QePW):
NB3P = wHLq.objects.order_by('published_date')
QpfX = {'article_list': NB3P}
return _1tc(QePW, 'sacms/newsfeed.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpVt():\n AG34 = I0sS.objects.filter(tags='news').order_by('-created')\n return {'news_list': AG34}",
"def dJO_():\n sFZU = iqGZ('health')\n sJYL = iqGZ('technology')\n return TvZl('articles.html', health=sFZU, tech=sJYL)",
"def nWKz():\n return rPXJ('index', articles=iqGZ())",
"def nWK... | [
"0.781636",
"0.76884675",
"0.76201373",
"0.7255485",
"0.7250988",
"0.7234691",
"0.7175664",
"0.71060944",
"0.7067236",
"0.70360106",
"0.7008968",
"0.6983359",
"0.69572264",
"0.69443256",
"0.69374955",
"0.68874454",
"0.68850803",
"0.6802306",
"0.6745521",
"0.67309004",
"0.6694... | 0.729258 | 3 |
Return the page for the list of all news articles | def DFrZ(QePW):
NB3P = wHLq.objects.order_by('published_date')
QpfX = {'article_list': NB3P}
return _1tc(QePW, 'sacms/newsfeed_en.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpVt():\n AG34 = I0sS.objects.filter(tags='news').order_by('-created')\n return {'news_list': AG34}",
"def dJO_():\n sFZU = iqGZ('health')\n sJYL = iqGZ('technology')\n return TvZl('articles.html', health=sFZU, tech=sJYL)",
"def nWKz():\n return rPXJ('index', articles=iqGZ())",
"def v0c... | [
"0.781636",
"0.76884675",
"0.76201373",
"0.729258",
"0.7255485",
"0.7250988",
"0.7234691",
"0.7175664",
"0.71060944",
"0.7067236",
"0.70360106",
"0.7008968",
"0.6983359",
"0.69572264",
"0.69443256",
"0.69374955",
"0.68850803",
"0.6802306",
"0.6745521",
"0.67309004",
"0.669415... | 0.68874454 | 16 |
Return the page for a notice | def vTGh(QePW, CZZV):
vTGh = Iofl(I9Ld, pk=CZZV)
QpfX = {'notice': vTGh}
return _1tc(QePW, 'sacms/notice.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AZ42(QePW, ZMJR):\n return igJ6('This will be the {0} page.'.format(ZMJR))",
"def m7kB(tTpl):\n return (\"Hey Bozo. You don't belong here -- scramo.\", 403)",
"def bvqU(tTpl):\n return TvZl('404.html')",
"def m7kB(tTpl):\n return (TvZl('500.html'), 500)",
"def m7kB(D4AW):\n return (TvZl(... | [
"0.6926425",
"0.6661499",
"0.65547436",
"0.65507066",
"0.6485495",
"0.643029",
"0.641658",
"0.6396737",
"0.63873595",
"0.6383726",
"0.63831925",
"0.63764995",
"0.63660586",
"0.63660586",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63... | 0.65961283 | 2 |
Return the page for a notice | def szRD(QePW, CZZV):
vTGh = Iofl(I9Ld, pk=CZZV)
QpfX = {'notice': vTGh}
return _1tc(QePW, 'sacms/notice_en.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AZ42(QePW, ZMJR):\n return igJ6('This will be the {0} page.'.format(ZMJR))",
"def m7kB(tTpl):\n return (\"Hey Bozo. You don't belong here -- scramo.\", 403)",
"def vTGh(QePW, CZZV):\n vTGh = Iofl(I9Ld, pk=CZZV)\n QpfX = {'notice': vTGh}\n return _1tc(QePW, 'sacms/notice.html', QpfX)",
"def... | [
"0.6926425",
"0.6661499",
"0.65961283",
"0.65547436",
"0.65507066",
"0.6485495",
"0.643029",
"0.641658",
"0.6396737",
"0.63873595",
"0.6383726",
"0.63831925",
"0.63764995",
"0.63660586",
"0.63660586",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63484246",
"0.63... | 0.5975454 | 51 |
The end of the path. This is a calculated property because sometimes the end is 'open', which means that the end is automatically adjusted to be the end of the current phase. | def Os4s(YKHO):
return YKHO._end if YKHO._end != YKHO.inf else YKHO.e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HH7c(YKHO) -> str:\n return YKHO.get_from_redis('end_path')",
"def D37a(YKHO) -> None:\n pass",
"def A_2I(YKHO):\n return YKHO._end",
"def A_2I(YKHO):\n return YKHO.__end",
"def Os4s(YKHO):\n return YKHO.__end_line",
"def q0ht(YKHO):\n return YKHO._end",
"def A_2I(YKHO):\n retu... | [
"0.74222875",
"0.734482",
"0.7165774",
"0.71453667",
"0.7130121",
"0.7125757",
"0.69665",
"0.67791015",
"0.67788714",
"0.6747188",
"0.6747188",
"0.6747188",
"0.67163265",
"0.6669577",
"0.6655419",
"0.6638375",
"0.66092044",
"0.66042536",
"0.65963286",
"0.65836364",
"0.6577562... | 0.6790509 | 7 |
Calculate water absorbed, water available and water exchanged for all plants of a group. | def eJHN(YKHO, DgAC, mSvl):
SppC = YKHO.getBGresourcesMatrixGroup(members=DgAC, link_list=mSvl)
_9HU = len(DgAC)
KyU2 = len(mSvl)
zNig = 2 * _9HU + KyU2
k0lF = SppC[:, 0:zNig]
tjUW = SppC[:, zNig]
EcVT = oyIN.linalg.inv(k0lF).dot(tjUW) / oyIN.pi * YKHO.time
YKHO._water_absorb[DgAC] = EcV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h8PX(YKHO):\n Z9Gk = YKHO.water_needed_by_trunk()\n Z9Gk += sum(map(lambda tTpl: tTpl.water_needed(), YKHO.children))\n return Z9Gk",
"def TPpk(YKHO):\n KgAl = ['SPC', 'TIP3', 'TIP4', 'TIP5', 'WAT']\n YKHO.__mkGroupByRes('Water', hfX9)",
"def vjPH(YKHO, YRbF, yo7_, wVwT, DzYq, sV_Q, dU3c, t_... | [
"0.6520833",
"0.65047836",
"0.64149517",
"0.6147245",
"0.5994674",
"0.59680545",
"0.5958425",
"0.5918724",
"0.5738272",
"0.5683999",
"0.56510717",
"0.5650601",
"0.5620681",
"0.5565135",
"0.54853106",
"0.54817617",
"0.5480861",
"0.544079",
"0.54350835",
"0.54263306",
"0.538163... | 0.5643535 | 12 |
This function identifies the target company from the tweet text, issuing a warning for unrecognized texts. It assumes that the full, untruncated tweet text has already been constructed (see compute_full_text()). | def jfso(rdlD):
global unknown_company_count_global
Sq7O = []
Mau6 = rdlD['text_derived'].lower()
taDc = rdlD['user_screen_name'].lower()
for WkUN in bNC7:
if ZbWC.compile(taDc).fullmatch(WkUN[2]):
Sq7O.append(WkUN[0])
break
if WkUN[1].search(Mau6):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h9e4(QVSk: Dict[str, List[tuple]], VMDN: str) -> str:\n YAq3 = []\n for sjXb in QVSk:\n YRf9 = wA1O(QVSk[sjXb])\n Sz73 = HMzD(VMDN)\n if set(Sz73).issubset(YRf9):\n YAq3.append(sjXb)\n if len(YAq3) == 1:\n return YAq3[0]\n return 'unknown'",
"def AjI4(l5Ny: ... | [
"0.5696613",
"0.5613782",
"0.5514986",
"0.5482968",
"0.5312689",
"0.52721834",
"0.52462196",
"0.52161294",
"0.5197548",
"0.5151859",
"0.5115014",
"0.50731903",
"0.5070537",
"0.5059215",
"0.50575215",
"0.49826312",
"0.49778822",
"0.49527124",
"0.49474606",
"0.4944147",
"0.4891... | 0.72649103 | 0 |
Initialize account with balance | def FIMM(YKHO, wMl7=0):
YKHO.balance = wMl7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zXdC=0):\n YKHO.balance = zXdC",
"def FIMM(YKHO):\n YKHO.account_balance = 0\n YKHO.amount = 0",
"def FIMM(YKHO, Z31E, wMl7):\n YKHO.account_id = Z31E\n YKHO.balance = wMl7",
"def FIMM(YKHO, lb7m: str, pl8n: str, KAc2: float):\n super().__init__(lb7m)\n YKHO.bank_name = pl... | [
"0.7953162",
"0.7900487",
"0.78326696",
"0.77097565",
"0.752457",
"0.7395256",
"0.7373415",
"0.7363574",
"0.7194487",
"0.7131793",
"0.7113572",
"0.70813423",
"0.7035591",
"0.7028225",
"0.6953366",
"0.6916816",
"0.6916816",
"0.69029516",
"0.6776953",
"0.6776953",
"0.6776953",
... | 0.76181877 | 4 |
Instance is truthy if balance is greater than zero | def eRwN(YKHO):
return YKHO.balance > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMl7(wMl7):\n if float(wMl7) >= 0.0:\n return True\n else:\n return False",
"def rqJ4(YKHO, UTX6, BWXx):\n return int(YKHO.addresses[UTX6]['balance']) >= int(BWXx)",
"def U6Ui(YKHO, Z5kt):\n if Z5kt > YKHO.get_balance():\n return False\n else:\n return True",
"d... | [
"0.7943185",
"0.7281657",
"0.7105397",
"0.7074409",
"0.70273745",
"0.6837374",
"0.67857534",
"0.6771081",
"0.67654467",
"0.6764264",
"0.6686117",
"0.6426282",
"0.6422742",
"0.63583505",
"0.62760806",
"0.6258149",
"0.62156785",
"0.6191746",
"0.61761296",
"0.6165583",
"0.608799... | 0.82115215 | 0 |
Convert value to packed form. | def xVZL(YKHO, BWXx):
if not isinstance(BWXx, YKHO.unpacked_type):
raise TypeError(BWXx)
I2Si = YKHO._to_packed(BWXx)
if len(I2Si) < YKHO.min_length or YKHO.max_length < len(I2Si):
raise RJjB(BWXx)
return I2Si | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RfYD(YKHO, BWXx):\n raise NotImplementedError",
"def pMmC(YKHO, BWXx):\n raise NotImplementedError",
"def yJla(YKHO, wEf2, wOb_=''):\n try:\n return wOb_ + BlNT.pack('>' + YKHO.fmt, wEf2)\n except:\n raise ValueError",
"def Ux5F(BWXx):\n return qk1z.packb(BWXx, default=wO7A, ... | [
"0.86481655",
"0.7108504",
"0.7064377",
"0.6873717",
"0.6660088",
"0.6626896",
"0.6540108",
"0.65126115",
"0.64760154",
"0.6456696",
"0.64265656",
"0.64181685",
"0.63404316",
"0.6320312",
"0.62513894",
"0.6200925",
"0.614832",
"0.61402667",
"0.61320525",
"0.61204624",
"0.6112... | 0.71905196 | 1 |
Return ``True`` iff number identifies a critical option. | def L9Vo(FGW3):
return FGW3 & 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSVB(YKHO):\n return str(YKHO) in ('AbiCritical', 'QCritical', 'Unconverged', 'Error')",
"def GfdN(YKHO, FGW3: int) -> bool:\n return FGW3 in YKHO.numbers_set",
"def Hpa0(YKHO, FGW3):\n return not YKHO.whitelist_numbers or FGW3 in YKHO._number_whitelist",
"def GfdN(YKHO, FGW3: int) -> bool:\n ... | [
"0.6351736",
"0.58683264",
"0.58652014",
"0.58082044",
"0.5716863",
"0.5604739",
"0.545997",
"0.54408807",
"0.5311502",
"0.52967334",
"0.5275748",
"0.5272906",
"0.52376837",
"0.52361184",
"0.5205041",
"0.51771677",
"0.5172219",
"0.5158954",
"0.51563734",
"0.51476204",
"0.5140... | 0.8124632 | 0 |
Return ``True`` iff this option may appear at least once in a request message. | def bZ5n(YKHO):
return YKHO._repeatable[0] is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aN85(YKHO, H5ew):\n return H5ew in YKHO.__opt",
"def T72_(YKHO):\n return YKHO._repeatable[0] is True",
"def A5Zf() -> bool:\n return pAF4.is_set()",
"def JLZp(YKHO):\n return YKHO._repeatable[1] is not None",
"def aFSw(YKHO, y7GR):\n return y7GR in YKHO.results",
"def PiS7(YKHO):\n ... | [
"0.665786",
"0.6317925",
"0.6219058",
"0.6210447",
"0.6032289",
"0.6002273",
"0.5971877",
"0.5920948",
"0.59110945",
"0.59110594",
"0.58678997",
"0.5866624",
"0.5852941",
"0.5841195",
"0.5835512",
"0.58019596",
"0.5747506",
"0.57084405",
"0.5702802",
"0.5680196",
"0.5673516",... | 0.6528612 | 1 |
Return ``True`` iff this option may appear multiple times in a request message. | def T72_(YKHO):
return YKHO._repeatable[0] is True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BkfR(YKHO):\n return YKHO._repeatable[1] is True",
"def Ajro(YKHO) -> bool:\n return YKHO.times == 1",
"def yAeb(YKHO):\n return YKHO._field.label == lNNJ.LABEL_REPEATED",
"def JLZp(YKHO):\n return YKHO._repeatable[1] is not None",
"def bZ5n(YKHO):\n return YKHO._repeatable[0] is not Non... | [
"0.7004605",
"0.64946336",
"0.6176985",
"0.6144877",
"0.613378",
"0.59813803",
"0.5912566",
"0.5871078",
"0.58548886",
"0.5815144",
"0.56824976",
"0.56668687",
"0.56362414",
"0.5606027",
"0.5598573",
"0.5547338",
"0.5475107",
"0.54587466",
"0.5447439",
"0.54259616",
"0.540797... | 0.71789455 | 0 |
Return ``True`` iff this option may appear multiple times in a response message. | def BkfR(YKHO):
return YKHO._repeatable[1] is True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T72_(YKHO):\n return YKHO._repeatable[0] is True",
"def JLZp(YKHO):\n return YKHO._repeatable[1] is not None",
"def Ajro(YKHO) -> bool:\n return YKHO.times == 1",
"def yAeb(YKHO):\n return YKHO._field.label == lNNJ.LABEL_REPEATED",
"def LEdV(YKHO):\n return YKHO.subscription_list.mode ==... | [
"0.66930914",
"0.6651821",
"0.6563542",
"0.6267618",
"0.6073747",
"0.605344",
"0.5985226",
"0.58709383",
"0.57483464",
"0.57360125",
"0.5726517",
"0.569678",
"0.56690544",
"0.5585781",
"0.5551369",
"0.55468005",
"0.5492985",
"0.5435823",
"0.5404594",
"0.5379182",
"0.53619486"... | 0.73638296 | 0 |
Contains the value of the option. This is an instance of | def umPh(YKHO):
return YKHO.__value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO._get_value(YKHO.optionType, YKHO.value, YKHO.defaultValue)",
"def hmBa(YKHO):\n return YKHO._opt_value",
"def VBzb(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('OptionValue')\n return YKHO._OptionValue",
"def yhpV(YKHO):\n MTKo = YKHO.selected_option\n r... | [
"0.83000505",
"0.82788384",
"0.8106803",
"0.74754095",
"0.74112713",
"0.7403821",
"0.7240465",
"0.7123255",
"0.6999006",
"0.6970556",
"0.6969828",
"0.6948097",
"0.6939403",
"0.6927413",
"0.69100994",
"0.69100994",
"0.69100994",
"0.6908598",
"0.6876871",
"0.6858926",
"0.685837... | 0.66906303 | 71 |
Ensure logging levels are correct when set to INFO. | def zRfu(YKHO) -> None:
YKHO.f_logger.setLevel(i2fF.CRITICAL)
YKHO.boto3_logger.setLevel(i2fF.CRITICAL)
YKHO.botocore_logger.setLevel(i2fF.CRITICAL)
tqPq()
YKHO.assertTrue(YKHO.f_logger.isEnabledFor(i2fF.CRITICAL))
YKHO.assertTrue(YKHO.f_logger.isEnabledFor(i2fF.ERROR))
YKHO.assertTrue(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HG2N(YKHO):\n for E70h, ABDL in YKHO.named_levels.items():\n bo34 = G9jH.getLogger(E70h)\n bo34.setLevel(ABDL)\n na1r.info('Set %s to use logging level %s', E70h, ABDL)",
"def HXXU(YKHO):\n pass",
"def f8MA(YKHO, ABDL):\n if str(ABDL) == '1':\n YKHO.logging_level = G9jH... | [
"0.73784083",
"0.7127363",
"0.7117754",
"0.71155375",
"0.70637476",
"0.70030844",
"0.6958855",
"0.6896499",
"0.6856032",
"0.6764709",
"0.6715727",
"0.65778124",
"0.6569934",
"0.6544587",
"0.6544587",
"0.6528209",
"0.6518626",
"0.6502518",
"0.6468188",
"0.6428952",
"0.64262253... | 0.73524535 | 1 |
This method is very important to keep blockchain safe from spamming. This method will use an algorithm to generate a number that will be used to create a new mined block. You can use your own algorithm and set a difficulty level so that people can't mine block easily. Bitcoin uses the Hashcash proof of work system. Gen... | def fQFq(HtBp):
XwK4 = HtBp + 1
while (XwK4 + HtBp) % 7 != 0:
XwK4 += 1
return XwK4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V9xh(YKHO, XkN1):\n XkN1.nonce = 0\n d8JQ = XkN1.compute_hash()\n while not d8JQ.starswith('0' * pNHx.difficulty):\n XkN1.nonce += 1\n d8JQ = XkN1.compute_hash()",
"def V9xh(XkN1):\n XkN1.nonce = 0\n d8JQ = XkN1.compute_hash()\n while not d8JQ.startswith('0' * pNHx.difficulty)... | [
"0.6941896",
"0.6678171",
"0.6649563",
"0.6480323",
"0.64600503",
"0.64379865",
"0.6354243",
"0.6332005",
"0.6331568",
"0.6223958",
"0.61551034",
"0.6153683",
"0.61233366",
"0.60393184",
"0.60290134",
"0.5987292",
"0.59602284",
"0.59555304",
"0.5929251",
"0.59126353",
"0.5904... | 0.6374833 | 6 |
This just updates the limits on the plot. We put it in a separate function so it can be called when the time selection menu is changed. | def rqHn(YKHO, *qIxc):
jS5y = {'10 minutes': 10, '1 hour': 60, '6 hours': 6 * 60, '24 hours': 24 * 60, 'All': 0}
try:
IULq = x5MY.dates.num2date(YKHO.stage60K.get_xdata()[-1])
mvgZ = x5MY.dates.num2date(YKHO.stage60K.get_xdata()[0])
except IndexError:
wzkt = qcWV.datetime.utcnow().to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeGS(YKHO):\n if YKHO.pos_x > YKHO.max_x:\n YKHO.max_x = YKHO.pos_x\n if YKHO.pos_y > YKHO.max_y:\n YKHO.max_y = YKHO.pos_y\n if YKHO.pos_x < YKHO.min_x:\n YKHO.min_x = YKHO.pos_x\n if YKHO.pos_y < YKHO.min_y:\n YKHO.min_y = YKHO.pos_y",
"def zVoP(YKHO, AtCm=[], a8WT=[... | [
"0.69729424",
"0.6846867",
"0.678547",
"0.67705965",
"0.6707118",
"0.66986716",
"0.66781026",
"0.6658897",
"0.65214163",
"0.6466103",
"0.6416409",
"0.6387019",
"0.63638526",
"0.636111",
"0.63448435",
"0.6336131",
"0.63080037",
"0.62865794",
"0.62640834",
"0.62546",
"0.6203816... | 0.69809914 | 0 |
Returns chart configuration object for a chart with given id. Communicates with external database api to fetch chart. | def qNDY(a6JU: int) -> tuOd:
if a6JU is None:
raise ValueError('No id provided.')
else:
raise ConnectionError('No external service implemented.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Twgo(S8MR):\n cuiw = UzPC.Session()\n try:\n wl0t = cuiw.query(y8cn).filter(y8cn.config_id == S8MR).first()\n except:\n cuiw.rollback()\n raise\n finally:\n cuiw.close()\n UzPC.engine.dispose()\n return wl0t",
"def Z91k(a6JU):\n yKcO = QePW.args.get('start... | [
"0.65118104",
"0.5924878",
"0.5913172",
"0.5764782",
"0.57080287",
"0.5707849",
"0.568426",
"0.56425965",
"0.5635276",
"0.5604807",
"0.53932196",
"0.53927666",
"0.5385305",
"0.5377597",
"0.5372954",
"0.535501",
"0.5349873",
"0.5257758",
"0.5255764",
"0.5248607",
"0.52438027",... | 0.78142834 | 0 |
alpha is the desired bound on the false discovery rate (i.e. proportion of false positives against total positives. m is the total number of hypotheses that we test, and P is an array of Pvalues. Use independent = False if the pvalues are not independent of one and other. | def ZIwh(V6IE, Cwt5=0.05, TxP0=True):
V6IE = oyIN.sort(V6IE)
r8hN = len(V6IE)
if TxP0:
Nq1b = 1
else:
Nq1b = sum((1.0 / G1Hx for G1Hx in range(1, r8hN + 1)))
y4NN = oyIN.arange(1, r8hN + 1) * Cwt5 / (Nq1b * r8hN)
A3Vt = oyIN.argmax(oyIN.diff(V6IE < y4NN))
return V6IE[A3Vt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e7zw(YKHO, Cwt5=0.01):\n MhOK = int((1 - Cwt5) * 100)\n if YKHO.p_value < Cwt5:\n print('Null hypothesis rejected at {:d}%CL => distributions are different'.format(MhOK))\n else:\n print('Null hypothesis NOT rejected => distributions are the same')",
"def dI5B(r8hN, Cwt5):\n LhhF = ... | [
"0.67532045",
"0.6600006",
"0.6322233",
"0.60776556",
"0.60411966",
"0.5920807",
"0.5916072",
"0.58885115",
"0.5857885",
"0.5852425",
"0.58407646",
"0.57969815",
"0.5740167",
"0.5726601",
"0.5695958",
"0.5687992",
"0.5663067",
"0.5655382",
"0.5655106",
"0.5611235",
"0.5604963... | 0.5577038 | 23 |
custom function to remove the stopwords | def dKBi(l5Ny):
vDyF = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in vDyF]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def aUcs(l5Ny):\n di0c = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him'... | [
"0.8823565",
"0.8401623",
"0.8289207",
"0.8248563",
"0.8228253",
"0.82197374",
"0.8181915",
"0.8181915",
"0.8181915",
"0.8181915",
"0.8164255",
"0.81541234",
"0.81183577",
"0.8115647",
"0.81121063",
"0.8105464",
"0.8080783",
"0.8072988",
"0.806302",
"0.80382043",
"0.80332667"... | 0.7410538 | 69 |
Set the amount of rolls. | def mHzO(YKHO, mHzO):
YKHO._rolls = mHzO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uEgi(YKHO):\n YKHO._total_rolls += 1",
"def y5hq(YKHO):\n YKHO._rolls += 1",
"def rKSe(YKHO):\n YKHO.rolled = tuKI.randint(1, 6)\n return YKHO.rolled",
"def mqS_(YKHO):\n YKHO.roll = (tuKI.randint(1, 6), tuKI.randint(1, 6))\n return YKHO.roll",
"def rKSe(YKHO, *cJ8X):\n if not cJ8X... | [
"0.75398564",
"0.7385004",
"0.68502325",
"0.64957064",
"0.6463144",
"0.64352345",
"0.6241606",
"0.6231023",
"0.6191605",
"0.6190525",
"0.6190275",
"0.61355335",
"0.61262727",
"0.60738546",
"0.6051682",
"0.60251045",
"0.6009221",
"0.5981302",
"0.5972627",
"0.593244",
"0.588104... | 0.78020304 | 0 |
Setup the configuration for the Flask app. This method is meant to be overridden in the case that a Flask app needs extra configuration. By default it sets the app Secret Key. | def HxEq(YKHO, P4t4: Flask) -> L2w0:
P4t4.secret_key = GPtr.get_setting('SECRET_KEY')
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgEG(P4t4):\n LtJP = Hy7s.path.join(P4t4.instance_path, 'secret.key')\n P4t4.config['SECRET_KEY'] = lpZ1(LtJP)",
"def fOck():\n if 'FLASKUTILS_SETTINGS_MODULE' not in Hy7s.environ:\n raise KpxQ('No settings has been defined')\n P4t4.config['BASE_DIR'] = Odyn\n for Ty9i in dir(i7V_):\n ... | [
"0.7199223",
"0.6930156",
"0.6919864",
"0.6879763",
"0.68642753",
"0.6853833",
"0.6583093",
"0.65813184",
"0.6574622",
"0.6487712",
"0.64572114",
"0.64319974",
"0.6359506",
"0.63439614",
"0.62976485",
"0.62691975",
"0.62650275",
"0.62260985",
"0.6220788",
"0.62140787",
"0.620... | 0.8373161 | 0 |
Generate a Flask application with our preferred defaults. | def C6M2(YKHO) -> L2w0:
P4t4 = L2w0(YKHO.name, *YKHO.args, **YKHO.kwargs)
P4t4 = YKHO.setup_app_config(P4t4)
P4t4 = YKHO.add_app_headers(P4t4)
P4t4 = YKHO.add_xsrf_error_handler(P4t4)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta', static_url_path='/static', static_folder='./static', template_folder='./views')\n GPtr.flask.SECRET_KEY = Hy7s.urandom(32)\n GPtr.flask.SERVER_NAME = None\n P4t4.config.from_mapping(GPtr.flask)\n return P4t4",
... | [
"0.7909486",
"0.7618156",
"0.7587956",
"0.751445",
"0.7501904",
"0.7484817",
"0.74160194",
"0.73780286",
"0.73758",
"0.7372829",
"0.7326809",
"0.7324248",
"0.73174256",
"0.72977144",
"0.72930497",
"0.7288373",
"0.7286618",
"0.7284041",
"0.7281885",
"0.72580165",
"0.72394854",... | 0.8261068 | 0 |
return a date one month in advance of 'date'. If the next month has fewer days then the current date's month, this will return an early date in the following month. | def xD8K(_c1T):
return _c1T + qcWV.timedelta(days=GRk0.monthrange(_c1T.year, _c1T.month)[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2Yj(_8eQ):\n lO87, x0eS = KTgU(_8eQ.year, _8eQ.month, 1)\n return type(_8eQ)(lO87, x0eS, 1)",
"def xD8K(tUMc):\n S_sJ, i1GJ = divmod(tUMc.month, 12)\n return qcWV.date(tUMc.year + S_sJ, i1GJ + 1, 1)",
"def hCRm(_c1T):\n if _c1T.month == 12:\n _c1T = qcWV(_c1T.year + 1, 1, 1)\n els... | [
"0.75237036",
"0.75181353",
"0.7469637",
"0.7203281",
"0.6971175",
"0.69181037",
"0.69181037",
"0.680561",
"0.6780251",
"0.6780251",
"0.6707535",
"0.6682568",
"0.6662633",
"0.6621288",
"0.6621288",
"0.65722543",
"0.65586656",
"0.6508916",
"0.6506974",
"0.64988816",
"0.6491393... | 0.8587938 | 0 |
a constrainable version of tf.argmax | def INkS(YKHO, FRUf, e_2d, Z9rn):
with YKHO.session.graph.as_default():
IMb4 = ZylS.reduce_min(FRUf, reduction_indices=[e_2d], keep_dims=True)
CHSM = ZylS.abs(Z9rn - 1)
return ZylS.argmax(FRUf * Z9rn + CHSM * IMb4, e_2d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1NN(vhpA):\n raise NotImplementedError",
"def max(vhpA, jDK_=None):\n raise NotImplementedError",
"def m7Yz(g4y1):\n U5bT = g4y1[0]\n g4y1 = g4y1[1:]\n for WKvO in g4y1:\n U5bT = ZylS.maximum(U5bT, WKvO)\n return U5bT",
"def U_16(pKvt, jDK_=-1):\n yvT9 = pKvt - ZylS.reduce_ma... | [
"0.7678649",
"0.69429123",
"0.6933782",
"0.6898688",
"0.6898688",
"0.67980206",
"0.67398393",
"0.6685052",
"0.66439664",
"0.6575737",
"0.6575708",
"0.6470778",
"0.64617753",
"0.64558613",
"0.64127415",
"0.64127415",
"0.6411897",
"0.64095986",
"0.63736093",
"0.636324",
"0.6362... | 0.7244173 | 1 |
Returns an increasing subsequence of array of length k (if found). | def eBTf(jzdc, G1Hx):
if G1Hx > len(jzdc):
return None
TifC = [0] * len(jzdc)
p06G = [FfMS] * (G1Hx + 1)
p06G[0] = -FfMS
ODP9 = 0
for YRbF in range(len(jzdc)):
TifC[YRbF] = SPuy(p06G, jzdc[YRbF])
p06G[TifC[YRbF]] = min(p06G[TifC[YRbF]], jzdc[YRbF])
ODP9 = max(ODP9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYKK(ezWE, G1Hx):\n TK2h = []\n for YRbF, WKvO in enumerate(ezWE):\n while TK2h and TK2h[-1] < WKvO and (len(TK2h) + len(ezWE) - YRbF > G1Hx):\n TK2h.pop()\n if len(TK2h) < G1Hx:\n TK2h.append(WKvO)\n return TK2h",
"def XKfa(ezWE: list, G1Hx: int):\n return ezW... | [
"0.71905845",
"0.6790254",
"0.67700154",
"0.67575175",
"0.6747199",
"0.6681213",
"0.65809906",
"0.65525365",
"0.6528025",
"0.6467839",
"0.6421712",
"0.63624656",
"0.6333768",
"0.63275117",
"0.6289315",
"0.62862104",
"0.6285352",
"0.6275237",
"0.6243933",
"0.62083817",
"0.6190... | 0.79856455 | 0 |
Create a tree from a node that is "root" in the tree. | def FIMM(YKHO, tk5Y):
YKHO.root = tk5Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iuYD():\n tk5Y = i8DB(5)\n tk5Y.left = i8DB(3)\n tk5Y.right = i8DB(8)\n tk5Y.left.left = i8DB(2)\n tk5Y.left.right = i8DB(4)\n tk5Y.right.left = i8DB(7)\n return tk5Y",
"def Cc7Y():\n tk5Y = o7DN(9)\n tk5Y.left = o7DN(6)\n tk5Y.left.left = o7DN(3)\n tk5Y.left.right = o7DN(8)\... | [
"0.77264977",
"0.7302258",
"0.726413",
"0.70362383",
"0.6717743",
"0.66498417",
"0.6613964",
"0.6604173",
"0.6604173",
"0.6602139",
"0.6586775",
"0.6520381",
"0.6508259",
"0.6507987",
"0.6481189",
"0.64737415",
"0.64601386",
"0.6451135",
"0.64422506",
"0.6435912",
"0.6400039"... | 0.0 | -1 |
Returns all nodes as a list | def CDNe(YKHO, OuMq='DEPTH-FIRST'):
Ziit = []
gGq6 = [YKHO.root]
while len(gGq6) > 0:
Q6kx = gGq6.pop()
Ziit.append(Q6kx)
if not Q6kx.isLeaf():
gGq6.extend(Q6kx.children)
return Ziit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTxU(YKHO):\n return []",
"def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]",
"def Ziit(YKHO):\n return [exwG for exwG in YKHO.iternodes()]",
"def eK7y(YKHO):\n Ziit = []\n Q6kx = YKHO.first_node\n while Q6kx:\n Ziit.append(Q6kx)\n Q6kx = Q6kx.next\n retur... | [
"0.8597381",
"0.84329146",
"0.8410721",
"0.83637947",
"0.8165994",
"0.8165994",
"0.8144975",
"0.8026371",
"0.7985809",
"0.7977207",
"0.7923016",
"0.7916445",
"0.79031473",
"0.7877641",
"0.7864353",
"0.7771399",
"0.7759789",
"0.7757811",
"0.7757811",
"0.7746061",
"0.7737144",
... | 0.0 | -1 |
Returns string with node (incl descendants) in a Newick style. | def zAg0(YKHO):
Fwno = ['' for bGrB in range(YKHO.nChildren())]
UXqs = pImw = ''
for YRbF in range(YKHO.nChildren()):
Fwno[YRbF] = str(YKHO.children[YRbF])
if YKHO.dist or YKHO.dist == 0.0:
pImw = ':' + str(YKHO.dist)
if YKHO.label != None:
UXqs = str(YKHO.label)
if YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HMjp(YKHO):\n nogO = YKHO.get_cluster_elements_labels\n QjvZ = '('\n QjvZ = ZFS4(nogO, QjvZ, False)\n QjvZ = QjvZ[0] + ');'\n return QjvZ",
"def tg7_(Q6kx: Node) -> str:\n Cfqp = xDSY.StringIO()\n S3XZ(Q6kx, fzGn(Cfqp, show_trigger=True, show_event=True, show_limit=True, show_meter=True,... | [
"0.68169594",
"0.6401403",
"0.63146996",
"0.63013405",
"0.6249807",
"0.6249058",
"0.6213708",
"0.621351",
"0.6205817",
"0.6199942",
"0.6184481",
"0.6131897",
"0.61220986",
"0.60794437",
"0.6071962",
"0.6069767",
"0.6069327",
"0.6047322",
"0.6034819",
"0.6032283",
"0.6031069",... | 0.0 | -1 |
Returns string with node (incl descendants) in a Newick style. | def w3jw(YKHO, yKcO, Os4s):
Fwno = ['' for bGrB in range(YKHO.nChildren())]
UXqs = pImw = ''
for YRbF in range(YKHO.nChildren()):
Fwno[YRbF] = YKHO._printSequences(YKHO.children[YRbF], yKcO, Os4s)
if YKHO.dist or YKHO.dist == 0.0:
pImw = ':' + str(YKHO.dist)
if YKHO.label != None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HMjp(YKHO):\n nogO = YKHO.get_cluster_elements_labels\n QjvZ = '('\n QjvZ = ZFS4(nogO, QjvZ, False)\n QjvZ = QjvZ[0] + ');'\n return QjvZ",
"def tg7_(Q6kx: Node) -> str:\n Cfqp = xDSY.StringIO()\n S3XZ(Q6kx, fzGn(Cfqp, show_trigger=True, show_event=True, show_limit=True, show_meter=True,... | [
"0.6817552",
"0.64031994",
"0.63166195",
"0.630312",
"0.62489796",
"0.6248956",
"0.6216337",
"0.62125653",
"0.62071484",
"0.6201597",
"0.6186492",
"0.6134584",
"0.61230206",
"0.6079712",
"0.6071914",
"0.6071524",
"0.6068265",
"0.6049392",
"0.6037761",
"0.6035471",
"0.603411",... | 0.0 | -1 |
Find a node by label at this node or in any descendants (recursively). | def Hybi(YKHO, UXqs):
if YKHO.label == UXqs:
return YKHO
else:
for YRbF in range(YKHO.nChildren()):
EmMj = YKHO.children[YRbF]._findLabel(UXqs)
if EmMj:
return EmMj
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UdFN(YKHO, UXqs):\n for K4sN in YKHO.listNodes.keys():\n for Q6kx in YKHO.listNodes[K4sN]:\n if Q6kx.GGLabel.getValue() == UXqs:\n return Q6kx\n return None",
"def xEEJ(YKHO, UXqs):\n return YKHO.root._findLabel(UXqs)",
"def I1MG(Kt_s, WKvO):\n if Kt_s.is_empty:... | [
"0.7505685",
"0.7443465",
"0.6713871",
"0.66146094",
"0.65507793",
"0.6399838",
"0.63660276",
"0.6361973",
"0.63149834",
"0.627915",
"0.6244611",
"0.6209815",
"0.61728686",
"0.61343277",
"0.6127704",
"0.61018175",
"0.61007464",
"0.6076795",
"0.6007735",
"0.6007589",
"0.600758... | 0.82340354 | 0 |
Retrieve and return (list of) nodes descendant of this. If transitive is False (default), only direct descendants are included. If transitive is True, all descendants are (recursively) included. | def zENo(YKHO, AJcw=False):
afYC = []
for YRbF in range(YKHO.nChildren()):
afYC.append(YKHO.children[YRbF])
if not AJcw:
return afYC
else:
k2sj = []
for Z9rn in afYC:
Csk6 = Z9rn.getDescendants(AJcw)
if Csk6:
k2sj.extend(Csk6)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqNT(YKHO, Q6kx, AJcw=False):\n if not isinstance(Q6kx, vCQX):\n Q6kx = YKHO.findLabel(Q6kx)\n if Q6kx:\n return Q6kx.getDescendants(AJcw)\n return None",
"def CaaC(YKHO, AJcw=False):\n if YKHO.parent == None:\n return []\n if not AJcw:\n return [YKHO.parent]\n e... | [
"0.71189356",
"0.68233633",
"0.6454984",
"0.62291974",
"0.60535073",
"0.59824556",
"0.5946516",
"0.59396183",
"0.5736286",
"0.5713195",
"0.56391734",
"0.55963564",
"0.55955654",
"0.557082",
"0.55042374",
"0.5422957",
"0.5419807",
"0.5373518",
"0.53246486",
"0.5303088",
"0.530... | 0.8021294 | 0 |
Search through the matrix by row. | def k_Cv(rdlD, vR9A, P6Dd, ZHfW):
if rdlD == gg4D:
return vR9A
if vR9A + Oyb5[rdlD] <= P6Dd:
return 0
for iVRZ in range(0, gg4D):
if ZHfW[iVRZ]:
continue
l0Pg = ZHfW.copy()
l0Pg[iVRZ] = True
jvSB = k_Cv(rdlD + 1, vR9A + XXoK[rdlD][iVRZ], P6Dd, l0Pg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeOz(r8hN, geyT):\n usx6, WfCS = (len(r8hN), len(r8hN[0]))\n Mkmy, Z9rn = (0, WfCS - 1)\n while Mkmy < usx6 and Z9rn >= 0:\n if r8hN[Mkmy][Z9rn] == geyT:\n break\n elif r8hN[Mkmy][Z9rn] > geyT:\n Z9rn -= 1\n else:\n Mkmy += 1\n return (Mkmy, Z9r... | [
"0.670191",
"0.6475018",
"0.6182763",
"0.6162033",
"0.61033976",
"0.608357",
"0.6024721",
"0.59828436",
"0.5973569",
"0.5933769",
"0.5860181",
"0.58508646",
"0.58001566",
"0.5790146",
"0.57711226",
"0.5756141",
"0.5746149",
"0.57427377",
"0.5705183",
"0.57048434",
"0.5680376"... | 0.52803665 | 62 |
Add a related language to an existing relation graph. | def xFNk(mGQW, DLnL):
Q5mJ = DLnL['documents']
dy_H = DLnL['series']
Epbd = yQaM.get_record_by_pid(Q5mJ[0]['document_pid'])
y1nG = yQaM.get_record_by_pid(Q5mJ[4]['document_pid'])
kwIL = oM6q.get_record_by_pid(dy_H[1]['series_pid'])
with trZe.raises(Ket2):
kwIL.related.add_language(Epbd)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEfj(P4t4, DLnL):\n Epbd = yQaM.get_record_by_pid(DLnL['documents'][0]['document_pid'])\n ci7j = yQaM.get_record_by_pid(DLnL['documents'][1]['document_pid'])\n Epbd.related.add_language(ci7j)\n pFoc = Epbd.related.languages\n ZYL3 = ci7j.related.languages\n assert len(pFoc) == 1\n assert l... | [
"0.69292474",
"0.61778337",
"0.5919428",
"0.59173226",
"0.57819486",
"0.5642437",
"0.5611441",
"0.54581183",
"0.54461926",
"0.5445164",
"0.5439688",
"0.53914607",
"0.5359619",
"0.52514625",
"0.5185728",
"0.5168728",
"0.5165889",
"0.5150778",
"0.5142409",
"0.5122622",
"0.51053... | 0.5245591 | 14 |
Returns True if the given user can do the given action, otherwise returns False | def ldgd(CBIr, XeOP):
Ty9i = Dh3z.BitVector(CBIr.access_level)
return Ty9i.is_set(OF04) or Ty9i.is_set(XeOP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTee(YKHO, CBIr, XeOP, *qIxc):\n if CBIr.is_anonymous or CBIr.is_client:\n return False\n if CBIr.is_administrator:\n return True\n if CBIr.is_manager:\n return False\n if CBIr.is_advisor:\n return True\n return YKHO.admin_permission(CBIr, XeOP, *qIxc)",
"def rjN5(C... | [
"0.81791806",
"0.7705522",
"0.7603144",
"0.72223186",
"0.72076553",
"0.715557",
"0.71461904",
"0.71443003",
"0.7113385",
"0.7083939",
"0.7063524",
"0.7024482",
"0.7008355",
"0.7002953",
"0.69669217",
"0.6959421",
"0.69452924",
"0.692764",
"0.69036293",
"0.68946594",
"0.68795"... | 0.81053865 | 1 |
Retrieve a list of question objects that belong to the category id provided along with the total of questions and the current category. | def jldz(VMw8):
try:
SuM2 = Y4Gy.query.filter(Y4Gy.category == VMw8).order_by(Y4Gy.id).all()
if len(SuM2) == 0:
eTsH(404)
WlEx = []
for bAls in SuM2:
WlEx.append(bAls.format())
return pz3A({'success': True, 'questions': WlEx, 'total_questions': len(WlE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F48B(VMw8):\n WlEx = Y4Gy.query.filter(Y4Gy.category == VMw8).all()\n if len(WlEx) == 0:\n eTsH(404)\n BGYc = [bAls.format() for bAls in WlEx]\n return pz3A({'success': True, 'questions': BGYc, 'total_questions': len(BGYc), 'current_category': VMw8})",
"def aDst(VMw8):\n WlEx = Y4Gy.que... | [
"0.77762574",
"0.7582906",
"0.75824726",
"0.754328",
"0.74690384",
"0.6553724",
"0.65512806",
"0.65091383",
"0.62899417",
"0.62215126",
"0.6205137",
"0.61774516",
"0.612792",
"0.61184573",
"0.6090481",
"0.60302997",
"0.59339976",
"0.5869045",
"0.5841057",
"0.58367103",
"0.581... | 0.7688467 | 1 |
Return a random question that belong to the category provided and that is not any of the previous questions. | def GIQ5():
TBsA = QePW.get_json()
GEZz = TBsA.get('previous_questions', [])
Ydg2 = TBsA.get('quiz_category', None)
try:
Ydg2['id'] = int(Ydg2['id'])
except:
eTsH(405)
SuM2 = []
qGDC = 0
if Ydg2['id'] == qGDC:
SuM2 = Y4Gy.query.filter(~Y4Gy.id.in_(GEZz)).order_by(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4SM(YKHO):\n JSQF = YKHO.available_qs\n if JSQF.exists():\n return tuKI.choice(JSQF)",
"def F4hs():\n if QePW.content_type != 'application/json':\n eTsH(415)\n GEZz: list[int] = QePW.json['previous_questions']\n Ghho: str = QePW.json['quiz_category']\n IX9P: list[qZuN] = qZuN... | [
"0.67102814",
"0.63656265",
"0.5974335",
"0.59122866",
"0.5873354",
"0.57505035",
"0.56965464",
"0.56834596",
"0.56058484",
"0.5604836",
"0.5598445",
"0.55806845",
"0.5580359",
"0.5572733",
"0.5571551",
"0.5545844",
"0.55259943",
"0.5524069",
"0.5489524",
"0.5481339",
"0.5417... | 0.50594187 | 50 |
Convenience property to access the `Plotter` instance, which contains easy methods for basic plots. Returns `Plotter` The plotter class instance. | def kj9G(YKHO):
return VvZE(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZhmA(YKHO):\n return Y7oh.TrajectoryPlotter(YKHO)",
"def W2Ro(YKHO):\n YKHO.plotter = VvZE(axes=YKHO._make_axes() if gCuF.SHOW_AXES else None, pos=(0, 0), title='brainrender', bg=gCuF.BACKGROUND_COLOR, offscreen=gCuF.OFFSCREEN, size='full' if gCuF.WHOLE_SCREEN else 'auto')\n YKHO.plotter.keyPressFun... | [
"0.8083355",
"0.78201425",
"0.7065065",
"0.6762227",
"0.66604626",
"0.65556526",
"0.6434893",
"0.61674476",
"0.6077074",
"0.6050804",
"0.604349",
"0.6037413",
"0.59835124",
"0.58849126",
"0.56851816",
"0.56005305",
"0.55608624",
"0.55183",
"0.5513459",
"0.54961085",
"0.548577... | 0.84322476 | 0 |
Perform a spatial query to calculate the projected density. | def NDC7(YKHO, jDuz, H3Xp, YGdt=0.01):
a8Zj = len(YKHO)
HGCR = oyIN.zeros_like(YKHO['ra'])
I1iR = HGCR * 0.0
Ir38 = HGCR * 0.0
qDv8 = oyIN.zeros(a8Zj)
YPJ1 = oyIN.unique(YKHO['root'])
BBto, VQR3, nhy7 = YKHO.separation_radius(H3Xp)
for tk5Y in PRqg(YPJ1):
F5DM = oyIN.where(YKHO['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPXT(YKHO):\n if YKHO.crs.is_geographic:\n f0tD = YKHO.area_grid()\n elif YKHO.crs.is_projected:\n XAzW = B9Vf.crs.CRS.from_user_input(YKHO.crs).linear_units_factor[1]\n f0tD = abs(YKHO.res[0] * YKHO.res[0]) * XAzW ** 2\n PXGI = YKHO._obj.attrs.get('unit', '')\n HaT5 = YKHO._ob... | [
"0.59410423",
"0.58309245",
"0.5766859",
"0.5720934",
"0.566541",
"0.5612836",
"0.55774325",
"0.5555027",
"0.55545056",
"0.54892445",
"0.5480157",
"0.5479234",
"0.5475572",
"0.5420816",
"0.5413919",
"0.54037374",
"0.53500783",
"0.53466976",
"0.5308443",
"0.526394",
"0.5252955... | 0.6005363 | 0 |
Converts time in Gitilesspecific format to datetime. | def LrXp(YGfs):
Va0u = YGfs.split()
rIAI = None
if len(Va0u) == 6:
YGfs = ' '.join(Va0u[:-1])
rIAI = Va0u[-1]
JRYC = qcWV.datetime.strptime(YGfs, '%a %b %d %H:%M:%S %Y')
if rIAI:
r8hN = ZbWC.match('([+-])(\\d\\d):?(\\d\\d)?', rIAI)
assert r8hN, 'Could not parse time z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w6KO(_c1T, ITS7):\n return qcWV.datetime.strptime(_c1T + ' ' + ITS7, '%Y-%m-%d %H:%M:%S')",
"def QBVI(Emd4, jmHs):\n if Emd4.date_ignore_pattern:\n jmHs = ZbWC.sub(Emd4.date_ignore_pattern, '', jmHs)\n return qcWV.strptime(jmHs, Emd4.date_format)",
"def hEym(qO61, nXJf='_'):\n qO61 = qO6... | [
"0.70353776",
"0.70126784",
"0.6687761",
"0.6670276",
"0.6649802",
"0.6617577",
"0.6615495",
"0.65611935",
"0.6508349",
"0.64830565",
"0.6482019",
"0.64736116",
"0.64291036",
"0.6427242",
"0.64181316",
"0.64057714",
"0.6382053",
"0.63651353",
"0.635569",
"0.6352932",
"0.63412... | 0.584788 | 76 |
Removing stop words from user query | def i4Gr(xDcj):
cfuW = [GIN8 for GIN8 in xDcj.split() if GIN8 not in di0c.words('english')]
return ' '.join(cfuW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8pp(YKHO, xDcj):\n TK2h = ''\n V22M = xDcj.split()\n for GIN8 in V22M:\n if GIN8.lower() not in YKHO.stop_words:\n TK2h += GIN8 + ' '\n return TK2h",
"def oRP1(YKHO):\n TKMu = XKrx(YKHO.user_query).lower()\n TKMu = ZbWC.compile('\\\\w+').findall(TKMu)\n return [ZfUD fo... | [
"0.864622",
"0.79861206",
"0.77600175",
"0.76680076",
"0.7317824",
"0.72542",
"0.71821",
"0.71496654",
"0.713319",
"0.7123882",
"0.7118023",
"0.7090382",
"0.70888937",
"0.7082846",
"0.70590854",
"0.7045588",
"0.69747204",
"0.69121045",
"0.69018644",
"0.68773144",
"0.6839356",... | 0.7873931 | 2 |
Removing text containing http. This is done in addition to removing stop words because stack exchnage data contains a lot of http links We did not want to include them as categories. | def rHDL(cfuW):
cB3J = []
for yzQ0 in cfuW:
e1T3 = str(yzQ0[0]).split()
for A0cm in e1T3:
if A0cm.startswith('http') is True:
A0cm = ''
cB3J.append((e1T3, yzQ0[1]))
return cB3J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o5jW(YKHO, l5Ny: str) -> str:\n mXDZ = 'http\\\\S+'\n return ZbWC.sub(mXDZ, ' ', str(l5Ny))",
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)",
"def EGZf(l5Ny):\n pass",
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return... | [
"0.8140522",
"0.77796614",
"0.7572648",
"0.755092",
"0.7473635",
"0.73308855",
"0.7298877",
"0.7282836",
"0.7276318",
"0.71344036",
"0.71276087",
"0.71054554",
"0.70693886",
"0.7044119",
"0.700906",
"0.69958794",
"0.6991723",
"0.69413084",
"0.69242114",
"0.68023324",
"0.67670... | 0.6711569 | 21 |
Non200 status codes are treated as NotFoundErrors. | def lQpe():
with Po4F('cheddar.index.remote.get') as _xNI:
_xNI.return_value = CFMy()
_xNI.return_value.status_code = cwhV.bad_request
with DQkc(mgaz):
K2qG('http://example.com', D2fq, fhOf()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf():\n return c1Bu(404)",
"def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)",
"def o3cf(P1dF):\n geh0 = pz3A({'success': False, 'error_code': 404, 'message': 'Not Found'})\n return (geh0, 404)",
"def a5AH(tTpl):\n return (pz3A({'error': 'Not found'}), 404)",
"def Z5Z... | [
"0.75049514",
"0.74509406",
"0.74472773",
"0.74261755",
"0.7411975",
"0.73083514",
"0.72996825",
"0.7260912",
"0.7172013",
"0.71331763",
"0.7122226",
"0.7112234",
"0.70796347",
"0.70678174",
"0.70619994",
"0.70543873",
"0.70320284",
"0.7022096",
"0.70210284",
"0.7016814",
"0.... | 0.0 | -1 |
Return descendants of type `type` | def B5QF(YKHO, type: str):
return list(B5QF(YKHO.type_tree, type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5QF(YKHO):\n for jzdc in YKHO._related(set(), 'children'):\n yield jzdc",
"def B5QF(Emd4):\n return Emd4.__subclasses__() + [Oa1e for KCHu in Emd4.__subclasses__() for Oa1e in KCHu.descendants()]",
"def RbaF(YKHO, *W_jW: str) -> x1iM[QDX8]:\n yxzR = []\n for pG0V in YKHO.segments:\n ... | [
"0.6539508",
"0.63285637",
"0.62924606",
"0.6242546",
"0.62076044",
"0.619932",
"0.6165065",
"0.61643106",
"0.613949",
"0.6115447",
"0.60811734",
"0.60654396",
"0.6010511",
"0.5990686",
"0.5948994",
"0.59063995",
"0.5904499",
"0.589363",
"0.58906347",
"0.5852431",
"0.58033055... | 0.8702833 | 0 |
Turn off the switch. | async def async_turn_off(YKHO, **B2fa: Any) -> None:
await YKHO.entity_description.set_command(YKHO, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, F... | [
"0.86709875",
"0.8610023",
"0.8504171",
"0.84375894",
"0.8349381",
"0.83241683",
"0.83171844",
"0.8292722",
"0.8285083",
"0.82738924",
"0.8258591",
"0.8195308",
"0.81797874",
"0.81612587",
"0.81196177",
"0.8116077",
"0.8111577",
"0.8107184",
"0.8093609",
"0.80684984",
"0.8002... | 0.0 | -1 |
Returns a boolean indicating whether or not the resource is in the cache | def wdFg(YKHO, j8eK):
return j8eK in YKHO.cache | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VfG7(YKHO):\n try:\n wyyA = YKHO.get_cache()\n return True\n except (KeyError, AttributeError):\n return False",
"def KwDD(YKHO, H5ew):\n return H5ew in YKHO._cache",
"def ImCi(YKHO):\n return False",
"def NVNH(YKHO):\n return Hy7s.path.exists(YKHO._cache_key)",
"def... | [
"0.7866917",
"0.77674526",
"0.7758504",
"0.7644629",
"0.75820166",
"0.7533671",
"0.7475945",
"0.7470769",
"0.73873365",
"0.7298565",
"0.7272562",
"0.72211844",
"0.7182152",
"0.7167297",
"0.7162016",
"0.7155817",
"0.70938087",
"0.7085736",
"0.7072006",
"0.7070189",
"0.7043332"... | 0.77047527 | 3 |
Get the duration of given audio file, in seconds. | def cbEK(qaEx):
KtwN = oAb3.PurePath(qaEx)
DHJ_ = ajo_.AudioSegment.from_file(KtwN, KtwN.suffix[1:])
return DHJ_.duration_seconds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(YKHO):\n with skD0.audio_open(YKHO.path) as eHNT:\n return eHNT.duration",
"def O74l(YKHO):\n if getattr(YKHO, '_duration_cache', None):\n return YKHO._duration_cache\n WbTE = Drlr(L6EP(M9e8(YKHO))).get('duration')\n if not WbTE:\n raise Exception(u'Not an audio file')\n... | [
"0.83321285",
"0.7888963",
"0.7677617",
"0.7675698",
"0.75412136",
"0.7523174",
"0.7491303",
"0.72688806",
"0.7209963",
"0.7174759",
"0.71186584",
"0.70174086",
"0.68890023",
"0.6839329",
"0.67705494",
"0.6701813",
"0.66989267",
"0.6694544",
"0.66904783",
"0.6683922",
"0.6672... | 0.8561251 | 0 |
Regroup utterances by using wordlevel timestamps and speaker indices. A boundary between the utterances in `utterances` are respected in the regrouped utterances, if and only if there is a gap between the two words at the two sides of the boundary. | def VthR(Ikh1, V22M):
QPxx = []
dpnK = []
for HDFI in Ikh1:
J2BF = [yzQ0.strip() for yzQ0 in HDFI.split(' ') if yzQ0]
QPxx.extend(J2BF)
dpnK.append(len(J2BF) + dpnK[-1] if dpnK else len(J2BF))
jn6K = []
SqVv = []
DBf4 = None
HwuW = None
r9he = -1
acax = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFGH(VDnN):\n zI1W = {}\n for PObu, V4kk in VDnN.items():\n XIcQ = False\n if V4kk.reply_to is not None and V4kk.speaker is not None:\n nFdY = VDnN[V4kk.reply_to]\n if nFdY.root == V4kk.root and nFdY.speaker == V4kk.speaker:\n zI1W[nFdY.id].text += ' ' +... | [
"0.5898699",
"0.58307666",
"0.5811763",
"0.53933984",
"0.51648027",
"0.5043441",
"0.4940336",
"0.48946774",
"0.4894231",
"0.48705527",
"0.48530787",
"0.48474246",
"0.4759834",
"0.47258553",
"0.46977386",
"0.46818677",
"0.46809426",
"0.4675914",
"0.4660164",
"0.46399462",
"0.4... | 0.8262106 | 0 |
Return true if set s contains value v as an element. >>> s = Link(1, Link(3, Link(2))) >>> contains(s, 2) True >>> contains(s, 5) False | def sjXf(KCHu, Ty9i):
if lsmZ(KCHu):
return False
elif KCHu.first == Ty9i:
return True
else:
return sjXf(KCHu.rest, Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, Ty9i):\n for YRbF in YKHO:\n if Ty9i in YRbF:\n return True\n False",
"def sjXf(KCHu, Ty9i):\n sdCG = KCHu\n while not lsmZ(sdCG):\n if sdCG.first == Ty9i:\n return True\n sdCG = sdCG.rest\n return False",
"def xc3U(YKHO, Ty9i):\n retu... | [
"0.75835574",
"0.70220816",
"0.68833876",
"0.679169",
"0.679169",
"0.67805535",
"0.6682476",
"0.65120304",
"0.64799297",
"0.64611685",
"0.64540267",
"0.6444838",
"0.6421102",
"0.6414975",
"0.6395543",
"0.63935304",
"0.6388657",
"0.6359729",
"0.6352513",
"0.6351029",
"0.632172... | 0.7086441 | 1 |
Filters a list of words to those are are valuable. Currently only makes sure that words are at least three characters. >>> w = ['hello', 'world', 'the', 'a', 'an'] >>> important_words(w) ['hello', 'world', 'the'] | def RLrN(V22M):
return [WKvO for WKvO in V22M if len(WKvO) >= 3] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vl6w(V22M):\n return [wm2H(yzQ0) for yzQ0 in V22M if len(wm2H(yzQ0)) >= 3]",
"def NWqD(YKHO, V22M, XAAn):\n cRrN = [GIN8 for GIN8 in V22M if GIN8 in XAAn]\n return cRrN",
"def tAXU(YKHO, I24A=[]):\n V22M = set([])\n for eOtH in YKHO.importantTokenList(ignoreSemanticTagList=I24A):\n V2... | [
"0.6960841",
"0.65794",
"0.65569043",
"0.63303006",
"0.629485",
"0.6271312",
"0.627032",
"0.62578964",
"0.6222073",
"0.61230373",
"0.60830384",
"0.6039497",
"0.6024355",
"0.593345",
"0.5821956",
"0.57900864",
"0.5753196",
"0.5730822",
"0.5704613",
"0.5701098",
"0.56928223",
... | 0.8137876 | 0 |
function that computes equilibrium profile for a game using multiplicative weights algorithm iters = number of iterations epsilon = epsilon parameter game = instance of Game class | def nU9F(BH3N, S7dm, tTpl):
Ggta = BH3N.numActions()
cdJN = BH3N.numPlayers()
_mSQ = [[1 for bGrB in Ni9Y(zNig)] for zNig in Ggta]
for bGrB in Ni9Y(S7dm):
tepw = O5dd(_mSQ)
dixj = []
for YRbF in Ni9Y(cdJN):
KmmF = []
for jzdc in Ni9Y(Ggta[YRbF]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(BH3N, oyg0):\n _mSQ = [2, 200, 2000, 20000]\n vOGg = 0\n xzj7 = Yx99(oyg0)\n for u54L in range(2, 6):\n vOGg += _mSQ[u54L - 2] * U5kQ(BH3N, oyg0, u54L)\n vOGg -= _mSQ[u54L - 2] * U5kQ(BH3N, xzj7, u54L)\n return vOGg",
"def CfhF(E5hX):\n JxU2 = izHr(E5hX)\n print(JxU2.p... | [
"0.6525867",
"0.6091914",
"0.6087904",
"0.602307",
"0.60155195",
"0.5941081",
"0.5901388",
"0.5884387",
"0.58605963",
"0.5843595",
"0.5824338",
"0.58238405",
"0.58139104",
"0.58092314",
"0.5804368",
"0.5798249",
"0.5778337",
"0.576247",
"0.5749912",
"0.57452184",
"0.5742998",... | 0.59205437 | 6 |
Generate a name for a DiskType using a given uuid. | def ths1(lD3m, qxeD, cll5=False):
y0cW = '%s_' % (lD3m[0] if cll5 else lD3m)
return NDaY.sanitize_file_name_for_api(qxeD, prefix=y0cW, max_len=jEha.MaxLen.VDISK_NAME if cll5 else jEha.MaxLen.FILENAME_DEFAULT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def enlV(lD3m, KAOR, cll5=False):\n y0cW = '%s_' % (lD3m[0] if cll5 else lD3m)\n P8oC = '%s_%s' % (KAOR.name[:8], KAOR.uuid[:4]) if cll5 else KAOR.name\n return NDaY.sanitize_file_name_for_api(P8oC, prefix=y0cW, max_len=jEha.MaxLen.VDISK_NAME if cll5 else jEha.MaxLen.FILENAME_DEFAULT)",
"def HvHm(KcEq, ... | [
"0.7109476",
"0.6545667",
"0.6507195",
"0.63580865",
"0.63459915",
"0.6298941",
"0.61929977",
"0.6152433",
"0.6098004",
"0.6096052",
"0.60402924",
"0.60274416",
"0.59869426",
"0.5974399",
"0.59345067",
"0.59241945",
"0.5918831",
"0.58771276",
"0.58720386",
"0.58717984",
"0.58... | 0.807177 | 0 |
Convert a GB size (usually of a disk) to bytes, with a minimum. | def a8pH(yblE, pBSp=None):
QJOj = yblE * rYO3.Gi
if pBSp is not None:
if QJOj < pBSp:
QJOj = pBSp
return QJOj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S2B1(YKHO, BWXx):\n GPal = ZbWC.search('[0-9]+', BWXx)\n if GPal:\n GPal = int(ZbWC.search('[0-9]+', BWXx).group())\n else:\n return 0\n if 'MB' in BWXx:\n return GPal / 1024 if GPal else 0\n elif 'GB' in BWXx:\n return GPal\n else:\n return 0",
"def TSQb(... | [
"0.81912106",
"0.7962849",
"0.7753249",
"0.76488125",
"0.74980754",
"0.7431103",
"0.7334594",
"0.72826415",
"0.7237502",
"0.7195972",
"0.7169093",
"0.71073925",
"0.70719355",
"0.70651174",
"0.70054996",
"0.69910496",
"0.69440705",
"0.6942241",
"0.6941221",
"0.6938423",
"0.691... | 0.81869435 | 1 |
Returns an instance of an Elasticsearch cluster connection. | def Ykhp(qIxc):
return C0iM.Elasticsearch([f'{qIxc.host}:{qIxc.port}'], use_ssl=True, verify_certs=True, ca_certs=qIxc.ca_certs, client_cert=qIxc.cert, client_key=qIxc.key) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxP0(YKHO):\n return wxaU(YKHO.conn_info['DATABASE_URI']['hosts'], use_ssl=YKHO.conn_info.get('USE_SSL', False), verify_certs=YKHO.conn_info.get('VERIFY_CERTS', False))",
"def NEpr():\n x0hE = wxaU([{'host': 'localhost', 'port': 9200}])\n V_s1 = 'fs_metadata_'\n return (x0hE, V_s1)",
"def fS3I(... | [
"0.79400486",
"0.7268057",
"0.72395104",
"0.704553",
"0.70328546",
"0.7029432",
"0.69135934",
"0.6854855",
"0.6729422",
"0.67037433",
"0.6615468",
"0.66135854",
"0.64333665",
"0.6384744",
"0.6353994",
"0.6326236",
"0.61957157",
"0.60788625",
"0.5993861",
"0.5960883",
"0.59299... | 0.68109375 | 8 |
Creates a temp folder which is deleted after used | def z_es():
TBXe = gbPf.mkdtemp()
yield TBXe
RDuA.rmtree(TBXe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zvz_():\n Ja5X = Hy7s.path.join(gbPf.gettempdir(), wPWn(5))\n Hy7s.makedirs(Ja5X)\n return Ja5X",
"def wOor(YKHO):\n try:\n Hy7s.mkdir(YKHO.temp_dir)\n except FileExistsError:\n pass",
"def xQQn(YKHO):\n YMBJ = str(ITS7.time()).replace('.', '')\n ESvo = Hy7s.path.join(YKH... | [
"0.81757224",
"0.7930139",
"0.7839827",
"0.7827467",
"0.77690333",
"0.77499795",
"0.77215666",
"0.7672008",
"0.766672",
"0.76290923",
"0.7528828",
"0.7482216",
"0.74566203",
"0.7454235",
"0.7401601",
"0.73948306",
"0.7387412",
"0.7382071",
"0.73796713",
"0.7376745",
"0.737605... | 0.75813866 | 10 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
ch_k = False
T_fj = 'Chosen city is {}? Enter "y" to confirm. '
while True:
j5sA = input('\nFor which city would you like to run an evaluation? Chicago (CH), New York City (NY) or Washington (WA)? \nPlease Enter abbreviation. ')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.0 | -1 |