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
Set lifeline's lifetime length.
def IBVV(YKHO, u54L): YKHO.bottom.pos.y = YKHO.top.pos.y + u54L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXmB(YKHO, BWXx):\n YKHO.layer.tail_length = BWXx", "def e2Jd(YKHO, _A3A):\n YKHO.length = _A3A", "def Fnf3(YKHO, sTns):\n YKHO.__lifetime = sTns", "def u54L(YKHO, u54L):\n YKHO._length = u54L", "def QC0b(YKHO, u54L):\n fttG = YKHO.segments[-1].get_length()\n if fttG != -1:\n Y...
[ "0.6628996", "0.6548008", "0.6527316", "0.6292543", "0.61618847", "0.60966504", "0.605155", "0.59509474", "0.59412754", "0.59316313", "0.59247273", "0.5702406", "0.56750685", "0.5643853", "0.5622231", "0.55569696", "0.55228", "0.5480967", "0.54594636", "0.5426649", "0.5416591...
0.5764367
11
Find distance to lifeline item. We calculate the distance to the lifeline's head, and then we calculate the lifetime. We return the minimum.
def AU8u(YKHO, WKvO, LVAh): AjzU = super().point(WKvO, LVAh) tlxW = YKHO._lifetime.top es2x = YKHO._lifetime.bottom _sQW = Pbcr(tlxW.pos, es2x.pos, (WKvO, LVAh))[0] return min(AjzU, _sQW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h87b(YKHO, d7YE):\n hE0n, H68S = K8P0(d7YE.state['box_vectors'])\n SpII = ITS7.time()\n PMJ3 = WsOK.Trajectory(d7YE.state['positions'], topology=YKHO._mdj_top, unitcell_lengths=hE0n, unitcell_angles=H68S)\n WotO = ITS7.time()\n Tm2h = oyIN.min(WsOK.compute_distances(PMJ3, WhY1.product(YKHO.ligan...
[ "0.64288473", "0.6343981", "0.629061", "0.6034535", "0.602224", "0.6003383", "0.5981095", "0.593175", "0.5914017", "0.5857995", "0.5832663", "0.5826591", "0.5805714", "0.5800851", "0.57828003", "0.5737947", "0.5734673", "0.56870914", "0.56647193", "0.56186366", "0.55836093", ...
0.5248442
77
Load JSON as a protobuf (pb2) object. Any calls to load protobuf objects from JSON in this repository should be through this function. Returns `None` if the loading failed.
def ewgH(pmON, b8Ap): assert pmON.endswith('.json'), 'File extension for {} needs to be json.'.format(pmON) if pmON.startswith('s3://'): return M0pc(pmON, b8Ap) assert Hy7s.path.exists(pmON), f'Path not found: {pmON}' with open(pmON, 'r', encoding='UTF-8') as wM3v: Vnvz = cEkE(wM3v.read(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO):\n with xDSY.open(YKHO.filename, encoding='utf-8') as eHNT:\n YKHO.load_from_dict(qQXR.loads(eHNT.read()))", "def lc9H(nMY2):\n return X1VS._load_json(nMY2)", "def DXiT(pmON: str) -> JKNE:\n with open(pmON, encoding='utf-8') as Ga6V:\n return qQXR.load(Ga6V)", "def tyeH(...
[ "0.57719094", "0.57548875", "0.5741168", "0.568899", "0.5675841", "0.55961937", "0.5520938", "0.55098826", "0.55086243", "0.5459598", "0.54020417", "0.5388325", "0.5387577", "0.5386068", "0.5349237", "0.533662", "0.53339887", "0.53334725", "0.5324513", "0.5323394", "0.5311550...
0.5887734
0
Save protobuf (pb2) object to JSON file with our standard indent, key ordering, and other settings. Any calls to save protobuf objects to JSON in this repository should be through this function.
def XRcN(Vnvz, gXgy): if Hy7s.path.isdir(gXgy): gXgy = Hy7s.path.join(gXgy, BsSL(Vnvz) + '.json') assert gXgy.endswith('.json'), 'File extension for {} needs to be json.'.format(gXgy) with open(gXgy, 'w', encoding='UTF-8') as ECmi: qQXR.dump(OGVj(Vnvz, including_default_value_fields=True, pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wiPd(YKHO):\n with open(YKHO.file_path, 'w') as hOYR:\n qQXR.dump(YKHO.data, hOYR, indent=4, sort_keys=True)", "def xkzz(YKHO):\n with open(YKHO.file_path, 'w', encoding=PSrQ.ENCODING) as nUeQ:\n qQXR.dump(YKHO.data, nUeQ, indent=2, ensure_ascii=False)", "def xkzz(YKHO):\n AjzU = {}\...
[ "0.64825857", "0.63305324", "0.62367463", "0.61235774", "0.61045235", "0.6103396", "0.60486585", "0.59887636", "0.5981807", "0.5977813", "0.59710145", "0.5964725", "0.5957643", "0.5951203", "0.5950735", "0.59460485", "0.59422106", "0.5939334", "0.592283", "0.59114516", "0.591...
0.72667795
0
Dock for RhoChi object.
def Gf5G(YEnM: RhoChi, MgeT: QtCore.QThread): mZXl = [] gUxa = YEnM.crystals() evlW = YEnM.experiments() cGC9 = len(gUxa) != 0 cdhj = len(evlW) != 0 ETtL = any([isinstance(kLQb, ZnLP) for kLQb in evlW]) if cGC9 & cdhj & YEnM.is_defined(): m4ox = x5x0.QToolButton() m4ox.setTex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y_lH(YKHO):\n YKHO.centralDock = eUTX(YKHO.globalSession)\n YKHO.setCentralWidget(YKHO.centralDock)", "def pRTn(YKHO):\n super(A3Ry, YKHO).init_layout()\n YKHO.widget.SetDockWidget(YKHO.dock_widget())", "def eLpg(YKHO, PJWX=False):\n if ccKF.window(YKHO.window, exists=True):\n ccKF.de...
[ "0.6622695", "0.5954567", "0.5893806", "0.57845724", "0.57674456", "0.5709266", "0.5709266", "0.5704553", "0.56602496", "0.5624555", "0.5622377", "0.55571485", "0.5540067", "0.5499297", "0.54939884", "0.5486771", "0.54789144", "0.54647344", "0.5457878", "0.5430313", "0.542813...
0.0
-1
Returns the total amount of the order without discounts.
def OCe_(YKHO): woGg = 0.0 for G1Hx, Ty9i in YKHO.order.product_orders.items(): woGg += Ty9i.quantity * Ty9i.product.price return woGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GRd6(YKHO):\n Aofo = YKHO.lines.aggregate(total=zphJ('line_price_before_discounts_excl_tax'))\n return Aofo['total']", "def KpBD(YKHO):\n PYx8 = sum((ZfUD.price for ZfUD in YKHO._products)) if YKHO._products else 0.0\n return PYx8 - YKHO._get_discount()", "def wjRY(YKHO):\n woGg = YKHO.get_t...
[ "0.7163056", "0.69267505", "0.69222707", "0.6920065", "0.66498226", "0.6615668", "0.660972", "0.65836567", "0.6532857", "0.6476015", "0.6449595", "0.6415554", "0.6324086", "0.63018864", "0.62091404", "0.61972386", "0.61502963", "0.61472183", "0.6100125", "0.60200626", "0.6015...
0.64590997
10
Gets the id of this MessagingCampaign. The globally unique identifier for the object.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO.__id", "def unpH(YKHO):\n ...
[ "0.77193385", "0.77193385", "0.77193385", "0.77193385", "0.77193385", "0.77193385", "0.765815", "0.765815", "0.7566762", "0.7515753", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0.75107026", "0...
0.0
-1
Sets the id of this MessagingCampaign. The globally unique identifier for the object.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def ekm0(YKHO, id):\n YKHO._id = id\n return YKH...
[ "0.7718702", "0.7609532", "0.757609", "0.74520427", "0.7333251", "0.73325944", "0.72652215", "0.7247922", "0.720335", "0.7196361", "0.7196361", "0.7196361", "0.71722925", "0.71722925", "0.71722925", "0.71394897", "0.71394897", "0.71394897", "0.71394897", "0.71394897", "0.7139...
0.72002715
13
Gets the name of this MessagingCampaign.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPjH(YKHO):\n return YKHO._campaign_name", "def BPjH(YKHO):\n return YKHO._campaign_name", "def BPjH(YKHO):\n return YKHO._campaign_name", "def W0tD(YKHO) -> str:\n return YKHO.name_", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def...
[ "0.83846724", "0.83846724", "0.83846724", "0.7315201", "0.7272899", "0.7272899", "0.72664964", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.717051", "0.7166163", "0.7131615", "0.7131615", "0.711222", "0.71059...
0.0
-1
Sets the name of this MessagingCampaign.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPdd(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO,...
[ "0.735443", "0.7340858", "0.7322299", "0.7251668", "0.7251668", "0.7251668", "0.7251668", "0.7251668", "0.72128856", "0.7197441", "0.7195748", "0.7195748", "0.7178476", "0.70947015", "0.7060306", "0.6969277", "0.6966887", "0.6966887", "0.69516367", "0.6950923", "0.6910362", ...
0.66005486
90
Gets the date_created of this MessagingCampaign.
def JjkJ(YKHO): return YKHO._date_created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created", "def a0GP(YKHO):\n return YKHO._created_date", "def a0GP(YKHO):\n return YKHO._created_date", "def sNKb(YKHO):\n return str(YKHO.datecreated)", "def JjkJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'date_created')", "def qL1h(YKHO) -> str:\n ...
[ "0.797184", "0.78968954", "0.78968954", "0.75586146", "0.7542879", "0.7494075", "0.73534364", "0.73534364", "0.73233813", "0.7312706", "0.7265856", "0.7256938", "0.7255421", "0.7170623", "0.7149717", "0.7149717", "0.7149717", "0.71311", "0.7127949", "0.7127949", "0.7127949", ...
0.7941877
3
Gets the version of this MessagingCampaign. Required for updates, must match the version number of the most recent update
def DpZH(YKHO): return YKHO._version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO):\n return YKHO.bot_data_file['version']", "def kaPv(YKHO):\n return YKHO.__make_api_call('get/version')", "def kaPv(YKHO):\n return YKHO._version", "def kaPv(YKHO):\n return YKHO._version", "def DpZH(YKHO):\n YKHO._get_latest_content()\n return YKHO._data.get('version', Non...
[ "0.74936455", "0.7484783", "0.7445432", "0.7445432", "0.74160135", "0.7414787", "0.72851366", "0.7277261", "0.72265685", "0.7201598", "0.71837974", "0.7182243", "0.7182243", "0.71736085", "0.7157434", "0.7147735", "0.7075582", "0.7058257", "0.70546836", "0.7049833", "0.703816...
0.6938133
37
Gets the division of this MessagingCampaign. The division this entity belongs to.
def rAjW(YKHO): return YKHO._division
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SnpH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subdivision')", "def SnpH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subdivision')", "def aiHR(YKHO):\n return YKHO._group", "def Cnxh(YKHO):\n return YKHO.Group", "def vK05(YKHO):\n return YKHO._domain", "def jpgQ(YKHO):\n return ...
[ "0.5810358", "0.5810358", "0.51984763", "0.5110629", "0.50223154", "0.5020974", "0.50027514", "0.49567127", "0.49472067", "0.49352798", "0.49319625", "0.49162114", "0.4908078", "0.4903234", "0.488874", "0.488874", "0.488874", "0.4876585", "0.4860735", "0.48574632", "0.4844820...
0.6648795
0
Sets the division of this MessagingCampaign. The division this entity belongs to.
def rAjW(YKHO, rAjW): YKHO._division = rAjW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rAjW(YKHO, rAjW):\n YKHO._division = rAjW", "def SLNM(YKHO, ARsO):\n YKHO.set_parameter('divide', ARsO)\n return YKHO", "def WE3e(YKHO, *qIxc):\n return nxZz.ShapeUpgrade_ShapeDivideContinuity_SetBoundaryCriterion(YKHO, *qIxc)", "def bKFm(YKHO, XaTu):\n if not XaTu.data or XaTu.data == '':...
[ "0.6715935", "0.48573586", "0.48263213", "0.45991567", "0.45864677", "0.458617", "0.45811203", "0.44704387", "0.44482273", "0.4443386", "0.4443386", "0.44264278", "0.44212875", "0.439743", "0.43385282", "0.43234468", "0.43153226", "0.4298492", "0.4283395", "0.42175615", "0.41...
0.66989917
1
Gets the campaign_status of this MessagingCampaign. The current status of the messaging campaign. A messaging campaign may be turned 'on' or 'off'.
def nbXs(YKHO): return YKHO._campaign_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO._status", "def VLTN(YKHO):\n kL40 = dict(AEQJ)\n return kL40.get(YKHO.status, 'N/A')", "def nbXs(YKHO, nbXs):\n BbPm = ['on', 'stopping', 'off', 'complete', 'invalid']\n if nbXs.lower() not in map(str.lower, BbPm):\n ...
[ "0.6404847", "0.6360354", "0.62657183", "0.62341815", "0.6217242", "0.6217242", "0.6217242", "0.62143916", "0.61250436", "0.6114817", "0.6114813", "0.60491306", "0.6047289", "0.6042757", "0.6023667", "0.6022818", "0.5983734", "0.59719783", "0.5946572", "0.5946572", "0.5946572...
0.8441347
0
Sets the campaign_status of this MessagingCampaign. The current status of the messaging campaign. A messaging campaign may be turned 'on' or 'off'.
def nbXs(YKHO, nbXs): BbPm = ['on', 'stopping', 'off', 'complete', 'invalid'] if nbXs.lower() not in map(str.lower, BbPm): YKHO._campaign_status = 'outdated_sdk_version' else: YKHO._campaign_status = nbXs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nbXs(YKHO):\n return YKHO._campaign_status", "def Cfr5(YKHO, jGRS):\n YKHO._activity = jGRS", "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def w8Lw(YKHO, jGRS: str) -> None:\n try:\n ...
[ "0.6368695", "0.61262167", "0.5973353", "0.5973353", "0.5973353", "0.5827563", "0.57827497", "0.5776234", "0.5757022", "0.5722353", "0.5680996", "0.56777996", "0.5648092", "0.5639821", "0.5627372", "0.55989665", "0.5592994", "0.5582759", "0.5582326", "0.55720466", "0.55364394...
0.7548788
0
Gets the dnc_lists of this MessagingCampaign. The dnc lists to check before sending a message for this messaging campaign.
def IDmJ(YKHO): return YKHO._dnc_lists
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kIYm(YKHO):\n yEHD = []\n try:\n if YKHO.opt_use_ssl:\n YKHO.server = dLEw.POP3_SSL(YKHO.opt_pop3_server)\n YKHO.server.user(YKHO.opt_global_account['username'])\n YKHO.server.pass_(YKHO.opt_global_account['password'])\n else:\n YKHO.server = dLEw...
[ "0.5988404", "0.58297056", "0.56870914", "0.55929554", "0.5453402", "0.5412666", "0.5395899", "0.5304845", "0.5249858", "0.5206307", "0.5206069", "0.5170666", "0.5170228", "0.51614743", "0.5143177", "0.51181716", "0.5111123", "0.50970674", "0.50523174", "0.504655", "0.5045429...
0.70566237
0
Gets the always_running of this MessagingCampaign. Whether this messaging campaign is always running
def oDOy(YKHO): return YKHO._always_running
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GhOV(YKHO):\n return YKHO.running", "def HX9S(YKHO):\n return YKHO.scheduler.running", "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO._running.is_set()", "def HX9S(YKHO):\n return YKHO._running", "def WTIh(YKHO):\...
[ "0.684747", "0.68215805", "0.6736479", "0.6736479", "0.67310226", "0.67029005", "0.6684114", "0.6684114", "0.6658457", "0.6658457", "0.6658457", "0.6624625", "0.6622321", "0.6609278", "0.6596", "0.6578254", "0.65689", "0.65341485", "0.6479026", "0.6433435", "0.6432685", "0....
0.8078336
0
Gets the contact_sorts of this MessagingCampaign. The order in which to sort contacts for dialing, based on up to four columns.
def Q1Pt(YKHO): return YKHO._contact_sorts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNTp(YKHO):\n return sorted(YKHO.contacts)", "def Q1Pt(YKHO, Q1Pt):\n YKHO._contact_sorts = Q1Pt", "def qIcv(YKHO):\n LsJh = YKHO.gridpreference_sort.all().values_list('column__id', flat=True)\n return gH4A.objects.select_related().all().filter(id__in=LsJh)", "def Sjca(YKHO, v2pS):\n xAU6 ...
[ "0.6996267", "0.6311992", "0.60650474", "0.60044813", "0.5959529", "0.5943762", "0.5862135", "0.57969254", "0.5660018", "0.5624674", "0.5591094", "0.55369407", "0.52994704", "0.52872974", "0.52799004", "0.5243885", "0.5241674", "0.5228304", "0.5202736", "0.51900417", "0.51636...
0.8388801
0
Sets the contact_sorts of this MessagingCampaign. The order in which to sort contacts for dialing, based on up to four columns.
def Q1Pt(YKHO, Q1Pt): YKHO._contact_sorts = Q1Pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1Pt(YKHO):\n return YKHO._contact_sorts", "def MzEz(YKHO, zS5u: List[DataGridSort]):\n YKHO.sorts = zS5u", "def naYp(YKHO, T1p0):\n if T1p0 is not None and (not isinstance(T1p0, list)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: contacts EXPECTED TYPE: list', None, None)\n YKHO.__contacts...
[ "0.68852335", "0.62442034", "0.55268556", "0.55110604", "0.5504529", "0.5504529", "0.5466908", "0.5404668", "0.53766954", "0.5268589", "0.5230543", "0.51540035", "0.5129339", "0.51096964", "0.5105754", "0.5105754", "0.50918037", "0.5086296", "0.5057816", "0.50474155", "0.5042...
0.8539102
0
Gets the messages_per_minute of this MessagingCampaign. How many messages this messaging campaign will send per minute.
def Cb4v(YKHO): return YKHO._messages_per_minute
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cb4v(YKHO, Cb4v):\n YKHO._messages_per_minute = Cb4v", "def AFCP(YKHO):\n return YKHO.words_per_minute", "def Yd51(YKHO) -> int:\n return qe4Y.get(YKHO, 'query_plans_per_minute')", "def GKYO(YKHO):\n return YKHO.MsgSendCount_interval", "def Vh81(YKHO):\n return YKHO._message_count", "d...
[ "0.686777", "0.6715453", "0.5897515", "0.57897204", "0.5508112", "0.5492951", "0.5468848", "0.5431342", "0.5427984", "0.54239345", "0.5376645", "0.5357198", "0.52036357", "0.5193324", "0.5188115", "0.51773685", "0.51770973", "0.51570386", "0.51300323", "0.512672", "0.51112086...
0.8563438
0
Gets the sms_config of this MessagingCampaign. Configuration for this messaging campaign to send SMS messages.
def U5fK(YKHO): return YKHO._sms_config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U5fK(YKHO, U5fK):\n YKHO._sms_config = U5fK", "def GPtr(YKHO):\n if YKHO.__config is None:\n YKHO.__config = YKHO._get_config(YKHO.bot)\n return YKHO.__config", "def hTnp(YKHO):\n return hTnp.SMS(YKHO)", "def eMhT(YKHO) -> dict:\n return YKHO.config", "def tgzD(YKHO):\n return ...
[ "0.66070634", "0.592993", "0.56343", "0.54566157", "0.5446236", "0.5412347", "0.53807044", "0.53407514", "0.5317883", "0.52791315", "0.52556473", "0.52439207", "0.52439207", "0.52175206", "0.52175206", "0.52135134", "0.5207754", "0.5194879", "0.5194879", "0.5194879", "0.51929...
0.8423905
0
Gets the self_uri of this MessagingCampaign. The URI for this object
def lmpq(YKHO): return YKHO._self_uri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFcP(YKHO):\n return YKHO.__uri", "def zFcP(YKHO):\n return YKHO.url", "def j8eK(YKHO) -> str:\n return YKHO._uri", "def hfrf(YKHO):\n return _VfD.SBase_getURI(YKHO)", "def hfrf(YKHO):\n return _VfD.SBasePlugin_getURI(YKHO)", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\...
[ "0.72447217", "0.72073245", "0.7078981", "0.7075188", "0.6987316", "0.6909857", "0.6909857", "0.6909857", "0.6909857", "0.6909857", "0.6909857", "0.68474865", "0.6822147", "0.68092525", "0.68092525", "0.68092525", "0.68092525", "0.68092525", "0.68092525", "0.68092525", "0.680...
0.8186954
3
Sets the self_uri of this MessagingCampaign. The URI for this object
def lmpq(YKHO, lmpq): YKHO._self_uri = lmpq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def j8eK(YKHO) -> str:\n return YKHO._uri", "def zFcP(YKHO):\n return YKHO.__uri", "def nTtQ(YKHO) -> PRV_:\n ...
[ "0.7107602", "0.7107602", "0.7107602", "0.7107602", "0.591665", "0.58686566", "0.5748005", "0.574481", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.57201016", "0.5711726", "0.5708703", "0.5708703", "0.57087...
0.8014554
3
Returns true if both objects are equal
def xa14(YKHO, Elif): 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.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
41
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
Sets the learning rate to the initial LR decayed by 0.5 every 5 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.4 ** (qtWj // 4) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(K0do, qtWj):\n tspZ = y7GR.lr * 0.5 ** (qtWj // y7GR.step)\n return tspZ", "def e_63(ouZy, K0do, qtWj, dLlC):\n ...
[ "0.75293964", "0.75141555", "0.75137126", "0.74792343", "0.7465126", "0.7460736", "0.7442363", "0.73354864", "0.73117834", "0.72968334", "0.72968334", "0.72960633", "0.7283488", "0.7278503", "0.72781247", "0.72749794", "0.72587585", "0.723886", "0.72382396", "0.7237294", "0.7...
0.7062625
74
Return a dataframe of distance matrix of x and y. Indexes are letters of x and columns are letters of y.
def JBUg(YKHO, WKvO, LVAh, OKYZ=None): oWao = YKHO.distance_matrix(WKvO, LVAh, OKYZ) GZNK = rLdf.DataFrame(oWao, index=['', *list(WKvO)], columns=['', *list(LVAh)]) return GZNK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9FN(YKHO):\n YKHO.dist_matrix = Catu.distance.squareform(Catu.distance.pdist(YKHO.data_vector, metric='hamming'))\n YKHO.dist_frame = rLdf.DataFrame(YKHO.dist_matrix, index=YKHO.seq_strings, columns=YKHO.seq_strings)", "def jDSb(YKHO):\n ezWE = oyIN.repeat(0, YKHO.num_col)\n Rl02 = oyIN.repeat(e...
[ "0.69271284", "0.67564255", "0.6533258", "0.6516786", "0.6428106", "0.63869244", "0.6351963", "0.6319464", "0.63100487", "0.62420344", "0.62378067", "0.62373847", "0.62171084", "0.62104243", "0.62080455", "0.6201593", "0.61032706", "0.6101561", "0.60353494", "0.6023481", "0.5...
0.8356927
0
get only classes defined in this schema
def FMhg(YKHO): return list(YKHO._get_class_defs().values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kxkk(YKHO):\n KndY = list(YKHO.extended_class_only_graph.nodes())\n KndY = [siC4(yaEe, YKHO) for yaEe in KndY]\n return KndY", "def ylai(YKHO):\n return", "def HJmR(YKHO):\n return YKHO.classes", "def ylai(YKHO):\n xDcj = oOLZ('structure exploration/classes')\n geh0 = YKHO._submit_qu...
[ "0.78731024", "0.71519256", "0.7128944", "0.7102175", "0.7069883", "0.6910617", "0.67119366", "0.66961735", "0.6668723", "0.6640557", "0.66171163", "0.6541783", "0.6539696", "0.65327054", "0.65109813", "0.64602256", "0.6432275", "0.64070165", "0.63955426", "0.6380493", "0.637...
0.65426725
11
return the probability of a given reaction
def k8QR(YKHO, tj0V): return YKHO.__getitem__(tj0V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7Be(YKHO, ZfUD):\n UHFx = YKHO.counter.get(ZfUD, 0)\n if YKHO.smoothing_dict:\n FJ3W = YKHO.smoothing_dict.get(UHFx, UHFx)\n assert FJ3W > 0\n return FJ3W / YKHO.smooth_total\n else:\n return UHFx / YKHO.total", "def Q7Be(g8x2, Q6uT, Uw2J=None):\n return cBB7(tJ9h(Q6u...
[ "0.6590192", "0.6571907", "0.647744", "0.64491594", "0.6418756", "0.63888365", "0.63714635", "0.6371433", "0.6367964", "0.63313365", "0.6296423", "0.62912256", "0.62699294", "0.62629133", "0.62573755", "0.6252374", "0.62146765", "0.6207749", "0.62025577", "0.6187049", "0.6182...
0.8662731
0
Deserialize a ReactionProbabilities from a JSON file
def refC(pmON): with open(pmON, 'r') as eHNT: return DBFC.from_json(eHNT.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB_Q(gIsw):\n with open(gIsw, 'r') as ytgA:\n f0BO = qQXR.load(ytgA)\n return f0BO", "def oZpy(FYKK):\n with open(FYKK) as eHNT:\n D4rG = qQXR.load(eHNT)\n eHNT.close()\n return D4rG", "def rB_Q(YKHO, wM3v):\n with open(wM3v, 'r') as Kunh:\n YKHO.priors_dict = qQX...
[ "0.6095132", "0.60795057", "0.5984798", "0.59495234", "0.57160014", "0.56639713", "0.5619954", "0.5497838", "0.5492578", "0.53609985", "0.5356933", "0.53483236", "0.5318638", "0.53132015", "0.52867985", "0.52783847", "0.5249616", "0.52431166", "0.5227828", "0.5201468", "0.519...
0.85232556
0
Gets an object representation in a string format.
def wHJl(YKHO): return 'IAMLTools.BlobProperties object.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HRRg(YKHO, YEnM):\n if YKHO.pretty:\n return CgYo.pformat(YEnM)\n else:\n return str(YEnM)", "def UG2P(YEnM):\n if hasattr(YEnM, '__iter__'):\n if len(YEnM) == 0:\n return ''\n elif hasattr(YEnM[0], '__iter__'):\n return KncO(YEnM)\n else:\n ...
[ "0.79434896", "0.76730764", "0.74159396", "0.7268582", "0.7246455", "0.7231229", "0.7168203", "0.710605", "0.7084541", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0.70546156", "0....
0.0
-1
slick solution in python ONLY zeros = [0 for i in range(zeros_and_ones.count(0))] ones = [1 for j in range(zeros_and_ones.count(1))] return zeros + ones
def QQyO(KBxl): hIPb = 0 FHeM = len(KBxl) - 1 while hIPb < FHeM: if KBxl[hIPb] == 1 and KBxl[FHeM] == 0: KBxl[hIPb], KBxl[FHeM] = (KBxl[FHeM], KBxl[hIPb]) hIPb += 1 FHeM -= 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSz9(exwG):\n pSfY = 0\n while exwG > 0:\n if exwG & 1:\n pSfY += 1\n exwG = exwG >> 1\n return 0 if pSfY % 2 == 0 else 1", "def Z9rn(CMrw):\n return sum(range(1, sum((YRbF > 0 for YRbF in CMrw)) + 1))", "def YqWL(YKHO, VNqG, pSfY):\n g4y1 = list(YKHO.inputs)\n lm...
[ "0.6483679", "0.624784", "0.61705774", "0.610907", "0.6090902", "0.6031265", "0.59823155", "0.59540856", "0.59308344", "0.59170455", "0.5842495", "0.5830201", "0.5826083", "0.5814207", "0.578468", "0.57763344", "0.5771295", "0.57675946", "0.5759372", "0.5745411", "0.5724746",...
0.6798596
0
Get a random element from the set.
def UIrZ(YKHO): return tuKI.choice(YKHO.nums)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]...
[ "0.77060276", "0.738916", "0.7296881", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.66000897", "0.6567767", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.640...
0.6388269
23
Returns an enumeration member with a value matching `value`.
def heWK(Emd4, BWXx: str): if not BWXx: return None DgAC = [(mS46, mS46.value) for mS46 in Emd4.__members__.values()] for mS46, pCin in DgAC: if pCin == BWXx: return mS46 return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHD7(qQ1Y, BWXx, WmM4=None):\n if BWXx is None:\n return WmM4\n for q2Xo in qQ1Y:\n if q2Xo.value == BWXx:\n return q2Xo\n raise KeyError(\"Value '{}' not contained in enum type\".format(BWXx))", "def x3f2(Emd4, BWXx: str):\n return Emd4._value2member_map_[BWXx]", "def ...
[ "0.67772806", "0.66527843", "0.64541763", "0.6362393", "0.611267", "0.6082106", "0.5995382", "0.59891886", "0.5980627", "0.5902926", "0.5802926", "0.57012653", "0.560989", "0.5605811", "0.5560168", "0.55101895", "0.55054975", "0.5468104", "0.5463636", "0.5452052", "0.5404608"...
0.7054582
0
Get a keystone auth session.
def KfiN(YKHO): if YKHO.session is None: Jpbe = bUZ8.Password(**YKHO.auth_kwargs) YKHO.session = cuiw.Session(auth=Jpbe) return YKHO.session
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KfiN():\n assert GPtr.AUTH_URL, 'Environment variable OS_AUTH_URL is not defined'\n\n def UE9y(AU45=None, NtEF=None, jTXt=None, B5PH=None, AgBQ=None, hqb4=None):\n AU45 = AU45 or GPtr.AUTH_URL\n NtEF = NtEF or GPtr.USERNAME\n jTXt = jTXt or GPtr.PASSWORD\n B5PH = B5PH or GPtr....
[ "0.8036264", "0.7163002", "0.705678", "0.7039849", "0.69910294", "0.69805986", "0.6977348", "0.69680965", "0.68606806", "0.6850855", "0.68429095", "0.6802599", "0.6802599", "0.6759136", "0.6674402", "0.6669936", "0.6636045", "0.6635824", "0.6607306", "0.6601134", "0.65489656"...
0.6903718
8
Get a keystone client instance.
def dvTJ(YKHO, DpZH='3'): if YKHO.keystone is None: YmHP = Hy7s.getenv('OS_ENDPOINT_TYPE', 'public') YKHO.keystone = SBaN.Client(version=DpZH, session=YKHO.get_session(), interface=YmHP) return YKHO.keystone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGmk(YKHO):\n try:\n if YKHO.token is None:\n x0hE = SBaN.Client(user_name=YKHO.cluster_account.cluster_user_name, password=YKHO.cluster_account.cluster_password, auth_url=YKHO.cluster_account.cluster.auth_url, tenant_name=YKHO.name)\n YKHO.token = qQXR.dumps(x0hE.auth_ref)\n ...
[ "0.81075597", "0.8094052", "0.7934589", "0.76208735", "0.76208735", "0.74618495", "0.7417962", "0.7401862", "0.73747593", "0.729122", "0.7265158", "0.7255715", "0.7149866", "0.7061689", "0.70608056", "0.704505", "0.70287734", "0.7017763", "0.6964742", "0.6892199", "0.6867459"...
0.7938663
2
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry): yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(bTKY, UksD) for UksD in aprE])) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.6459733
29
Calculate by how many cells the moving window should be moved. If this is nonzero, shift the fields on the interpolation grid, and add new particles.
def wkXR(YKHO, pOqt, JZ1r, ITS7): aUJK = JZ1r.dz if JZ1r.rank == 0: YKHO.zmin += YKHO.v * (ITS7 - YKHO.t_last_move) Rl8s, WCD1 = JZ1r.get_zmin_zmax(local=False, with_damp=False, with_guard=False) KEBW = int((YKHO.zmin - Rl8s) / aUJK) else: KEBW = None if JZ1r.size > 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fu4L(YKHO):\n Cs6h = YKHO.grid\n for pmZb in range(4):\n vp9s = 4 - oyIN.count_nonzero(Cs6h[:, pmZb])\n for q7pA in range(4):\n ewCu = 0\n while Cs6h[q7pA, pmZb] == 0 and ewCu < 4:\n ewCu += 1\n if oyIN.count_nonzero(Cs6h[q7pA:4, pmZb]) !=...
[ "0.59834635", "0.5809151", "0.57765406", "0.56846297", "0.55949116", "0.5528766", "0.5480749", "0.54742026", "0.54698974", "0.54524153", "0.54521763", "0.54496145", "0.5448103", "0.5435209", "0.54142", "0.5403219", "0.53876007", "0.5387515", "0.5371499", "0.5368437", "0.53605...
0.67525464
0
The x coordinate for top left corner of window
def WKvO(YKHO): return YKHO._x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YH9x(YKHO):\n return YKHO.rect.x", "def nIKw(YKHO):\n return YKHO.posX", "def Aco_(YKHO):\n return YKHO.__pos_x", "def SL_8(YKHO):\n return YKHO.position_x + YKHO.margin_left + YKHO.padding_left + YKHO.border_left_width", "def Oiy6(YKHO):\n return YKHO.position_x + YKHO.margin_left", "...
[ "0.7928865", "0.7497541", "0.74468994", "0.7431216", "0.7420587", "0.7373978", "0.73659885", "0.7315604", "0.73032784", "0.7258727", "0.7226243", "0.72176665", "0.71952814", "0.71450615", "0.7142987", "0.70740926", "0.70560735", "0.705076", "0.7001769", "0.7001769", "0.696133...
0.0
-1
The y coordinate for top left corner of window
def LVAh(YKHO): return YKHO._y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return YKHO.top", "def boAb(YKHO):\n return YKHO.rect.y", "def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk", "def yDCK(YKHO):\n return YKHO.posY", "def BBTF(YKHO):\n return YKHO.position.y", "def LVAh(YKHO):\n return YKHO.position.y", "def CU0i(YKH...
[ "0.8223235", "0.7753512", "0.7607309", "0.75265026", "0.74642813", "0.74340755", "0.74284726", "0.7398167", "0.7398167", "0.73863155", "0.7359533", "0.73249245", "0.73192805", "0.7303369", "0.7265452", "0.71478647", "0.7138041", "0.71298176", "0.7127513", "0.71184486", "0.711...
0.0
-1
The list of all turtles attached to this Window This attribute may not be altered directly
def NTlE(YKHO): return YKHO._turtles[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTlE(YKHO):\n return YKHO._turtles", "def cpVa(YKHO):\n return YKHO.turbine_map.turbines", "def SLi2(YKHO):\n return YKHO", "def RO6q(YKHO):\n return YKHO._thermostats", "def PhxM(YKHO):\n return list(YKHO.GetLights())", "def s7ep(YKHO):\n return YKHO.light_array", "def PhxM(YKHO)...
[ "0.8411543", "0.6130211", "0.5962633", "0.59047854", "0.5882312", "0.5679309", "0.56639826", "0.5651566", "0.5635582", "0.5587322", "0.5562676", "0.5513544", "0.5510087", "0.5497294", "0.54633754", "0.54598933", "0.5458061", "0.5453143", "0.5407893", "0.53814805", "0.53572404...
0.8240958
1
The color of this turtle. All subsequent draw commands (forward/back) draw using this color. If the color changes, it only affects future draw commands, not past ones.
def qfpW(YKHO): return YKHO._color
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfpW(YKHO):\n assert False, 'Pen does not have a color; use pencolor or fillcolor'", "def PICn(YKHO):\n return YKHO.__color", "def qfpW(YKHO):\n return YKHO.__color", "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n if YKHO.color:\n return 'RED'\n else:\n return...
[ "0.69709", "0.6779695", "0.6763572", "0.672866", "0.6717508", "0.67131394", "0.67123073", "0.6694104", "0.6650042", "0.6650042", "0.6635534", "0.66264987", "0.66009176", "0.6586705", "0.65372753", "0.65127057", "0.6490231", "0.6490231", "0.6490231", "0.6489274", "0.6463869", ...
0.6654484
9
The xcoordinate of this turtle. To change the x coordinate, use one of the drawing methods. This attribute may not be (directly) altered
def WKvO(YKHO): return YKHO._turtle.xcor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIZJ(YKHO, WKvO):\n YKHO.position.setX(WKvO)", "def p5xg(YKHO):\n return YKHO.x_coord", "def YjSW(YKHO, WKvO):\n YKHO.scene.set_x_loc(WKvO)\n YKHO.redraw()", "def nIKw(YKHO):\n return YKHO.posX", "def WKvO(YKHO):\n return _VfD.Point_x(YKHO)", "def YjSW(YKHO, WKvO):\n YKHO._x = WK...
[ "0.76434016", "0.7627431", "0.76259303", "0.75785303", "0.75745726", "0.75719124", "0.7553244", "0.7533228", "0.7502078", "0.75011337", "0.74811924", "0.74758", "0.7464989", "0.7426505", "0.7388529", "0.7332591", "0.73232895", "0.72585595", "0.71786386", "0.71688503", "0.7164...
0.7628367
2
The ycoordinate of this turtle. To change the x coordinate, use one of the drawing methods. This attribute may not be (directly) altered
def LVAh(YKHO): return YKHO._turtle.ycor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return _VfD.Point_y(YKHO)", "def n_tS(YKHO) -> float:\n return YKHO.y_coord", "def z9NM(YKHO, LVAh):\n YKHO._y = LVAh", "def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass", "def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.dy", "def bDS1(YKHO):\n return YKH...
[ "0.77648014", "0.7557941", "0.75414705", "0.7519196", "0.7517687", "0.75156283", "0.74248564", "0.7424172", "0.7424172", "0.7421405", "0.74198735", "0.74136454", "0.73714113", "0.7355722", "0.73076034", "0.7266436", "0.7265773", "0.72609174", "0.7236153", "0.7231107", "0.7228...
0.7376552
13
Deletes this turtle object.
def fFx9(YKHO): YKHO.clear() YKHO._screen._removeTurtle(YKHO) del YKHO._turtle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFx9(YKHO):\n YKHO._screen._removePen(YKHO)\n del YKHO._turtle", "def PTpj(YKHO):\n YKHO.graph._del(handle=YKHO.handle)", "def kSdD(YKHO):\n YKHO.node.destroy()", "def PTpj(YKHO):\n YKHO.canvas.delete('node_' + YKHO.identifier)\n YKHO.canvas.tag_unbind('node_' + YKHO.identifier, '<Any>'...
[ "0.72901684", "0.69489294", "0.6906722", "0.68213683", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.68130356", "0.6793991", "0.6787353", ...
0.79840356
0
The pen color of this pen. The pen color is used for drawing lines and circles. All subsequent draw commands draw using this color. If the color changes, it only affects future draw commands, not past ones. This color is only used for lines and the border of circles. It is not the color used for filling in solid areas ...
def ft26(YKHO): return YKHO._pencolor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sq7Y(YKHO):\n return YKHO._penColor", "def qfpW(YKHO):\n assert False, 'Pen does not have a color; use pencolor or fillcolor'", "def ft26(YKHO, *qIxc):\n if qIxc:\n qfpW = YKHO._colorstr(qIxc)\n if qfpW == YKHO._pencolor:\n return\n YKHO.pen(pencolor=qfpW)\n else...
[ "0.81438965", "0.7675859", "0.7551927", "0.6896309", "0.67128396", "0.6509215", "0.64415", "0.64415", "0.64305776", "0.6405034", "0.6389262", "0.6373281", "0.6373281", "0.6361102", "0.6361102", "0.6361102", "0.6358667", "0.63095975", "0.62246627", "0.62037814", "0.6115269", ...
0.7982437
1
Represents the pen origin in the draw window. This property is used by the Window to reset the pen. This is a "friend" property and the invariant is not enforced.
def hLRM(YKHO): return YKHO._origin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7Ws(YKHO):\n return YKHO._dottedPen", "def sq7Y(YKHO):\n return YKHO._penColor", "def ft26(YKHO):\n return YKHO._pencolor", "def dQSa(YKHO):\n YKHO += B0gN.circle(cx=YKHO.__dict__['x'], cy=YKHO.__dict__['y'], r=2, fill='black', stroke='black', style='fill-opacity: 50%')\n YKHO += B0gN.tex...
[ "0.6315457", "0.6157232", "0.5957476", "0.5798523", "0.5758914", "0.574672", "0.5725725", "0.57172686", "0.5713631", "0.5709259", "0.5697349", "0.56255484", "0.56203943", "0.5529922", "0.5509871", "0.5480417", "0.5455918", "0.5441902", "0.5405522", "0.5344211", "0.52710193", ...
0.545472
20
The xcoordinate of this pen. To change the x coordinate, use one of the drawing methods. This attribute may not be (directly) altered
def WKvO(YKHO): return YKHO._turtle.xcor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YjSW(YKHO, kNbz):\n YKHO.x = kNbz", "def WKvO(YKHO):\n return _VfD.Point_x(YKHO)", "def nIKw(YKHO):\n return YKHO.posX", "def VIZJ(YKHO, *qIxc):\n return _VfD.Point_setX(YKHO, *qIxc)", "def VIZJ(YKHO, WKvO):\n YKHO.position.setX(WKvO)", "def VIZJ(YKHO, WKvO):\n YKHO._x = WKvO", "d...
[ "0.76575345", "0.75913805", "0.7514827", "0.7482172", "0.7476596", "0.74066937", "0.73871195", "0.7383479", "0.7373789", "0.7351436", "0.73434395", "0.7271025", "0.72605467", "0.7225597", "0.71805465", "0.71784794", "0.71032804", "0.70959073", "0.69787765", "0.69621176", "0.6...
0.6752364
34
The ycoordinate of this pen. To change the y coordinate, use one of the drawing methods. This attribute may not be (directly) altered
def LVAh(YKHO): return YKHO._turtle.ycor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return _VfD.Point_y(YKHO)", "def lcEV(YKHO, eLqP):\n YKHO.y = eLqP", "def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass", "def z9NM(YKHO, LVAh):\n YKHO._y = LVAh", "def bDS1(YKHO):\n return YKHO.__y", "def z9NM(YKHO, *qIxc):\n return _VfD.Point_setY(YKHO, *qIxc)", "def...
[ "0.7824647", "0.7789776", "0.77398807", "0.7738483", "0.7698442", "0.7642297", "0.7619385", "0.76075387", "0.76014006", "0.7586667", "0.7569661", "0.7569661", "0.7532064", "0.7500866", "0.74680847", "0.7445015", "0.7398983", "0.73577964", "0.7341188", "0.72738236", "0.7256707...
0.68330735
78
Deletes this pen object.
def fFx9(YKHO): YKHO._screen._removePen(YKHO) del YKHO._turtle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO):\n YKHO.exit()\n Dsvz.GenericAnimatedProp.delete(YKHO)", "def PTpj(YKHO):\n YKHO.graph._del(handle=YKHO.handle)", "def PTpj(YKHO):\n del YKHO.shx.atoms[YKHO.index]", "def fFx9(YKHO):\n try:\n YKHO.canvas.delete(YKHO.sprite)\n except AttributeError:\n pass\n e...
[ "0.6839339", "0.6739376", "0.66108614", "0.65926075", "0.6585168", "0.6571784", "0.65023196", "0.64651775", "0.6461599", "0.6461599", "0.63839555", "0.63446337", "0.63371813", "0.63204235", "0.63204235", "0.63204235", "0.63204235", "0.63204235", "0.63204235", "0.63204235", "0...
0.71101624
0
Return true if if the line drawn through a, b, and c makes a right turn.
def VYTo(jzdc, Fg_i, Z9rn): def JdM7(FGW3): """Function to check if a number is very small.""" return abs(FGW3) < _hZ2 def BVi6(iArr): return [kteF.from_float(WKvO) for WKvO in iArr] def XHzM(EBgd, HpuQ, Lq8X): """Compute the crossProduct of the vectors p2 - p1 and p3 - p1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRH2(KwKv, YBrO, Qz2I):\n return tQzj(KwKv, YBrO, Qz2I) > 0", "def fDlz(jzdc, Fg_i, Z9rn):\n if jzdc == 0 or Fg_i == 0 or Z9rn == 0:\n return False\n else:\n return jzdc == Fg_i + Z9rn or Fg_i == Z9rn + jzdc or Z9rn == jzdc + Fg_i", "def Zu9i(YKHO):\n lCHq = oyIN.array([1, 1])\n ...
[ "0.7412801", "0.7080334", "0.7044733", "0.68451196", "0.6785564", "0.6677456", "0.63376695", "0.63277566", "0.63084525", "0.6250756", "0.62460744", "0.6239518", "0.6237629", "0.6189446", "0.6157471", "0.6096383", "0.6095791", "0.6095791", "0.6009904", "0.5992941", "0.59842193...
0.0
-1
Function to check if a number is very small.
def JdM7(FGW3): return abs(FGW3) < _hZ2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fLTW(jzdc: int, Fg_i: int) -> bool:\n return jzdc <= Fg_i", "def CC8f(Z9rn, tTpl):\n return tTpl < -qoqK and tTpl < -ev5Q(abs(Z9rn)) - 1", "def nLEJ(jzdc: int, Fg_i: int) -> bool:\n return jzdc >= Fg_i", "def U_a5(exwG, MWZg):\n BHGE = [int(mLGw) for mLGw in str(exwG)]\n return all([mLGw <...
[ "0.71358377", "0.70233357", "0.6894309", "0.64070696", "0.6313465", "0.623198", "0.62296844", "0.6060151", "0.605466", "0.6032642", "0.5905205", "0.58516663", "0.58045554", "0.571476", "0.5698064", "0.56735736", "0.5664453", "0.5655646", "0.5649527", "0.5642045", "0.5599978",...
0.81616944
0
Compute the crossProduct of the vectors p2 p1 and p3 p1.
def XHzM(EBgd, HpuQ, Lq8X): return -(EBgd[1] * HpuQ[0]) + EBgd[0] * HpuQ[1] + EBgd[1] * Lq8X[0] - HpuQ[1] * Lq8X[0] - EBgd[0] * Lq8X[1] + HpuQ[0] * Lq8X[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(y4fz, EBgd, HpuQ):\n return (EBgd[0] - y4fz[0]) * (HpuQ[1] - y4fz[1]) - (HpuQ[0] - y4fz[0]) * (EBgd[1] - y4fz[1])", "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def XHzM(YKH...
[ "0.7840646", "0.7627517", "0.7564835", "0.75022256", "0.7371499", "0.716658", "0.7165488", "0.71437544", "0.7071827", "0.69996214", "0.6967165", "0.69446385", "0.6910858", "0.6805146", "0.67996776", "0.67702717", "0.67530876", "0.6737045", "0.6727149", "0.6688273", "0.6610096...
0.92136556
0
Read SQL table from database and return as dataframe.
def QjtW(tyNF: str, DfZ1='id'): bD7m = Hy7s.getenv('DATABASE_URL') if bD7m is None: G9jH.error('Environment variable DATABASE_URL not set.') return rLdf.DataFrame() eHpk = y2U9(bD7m, pool_recycle=3600) w2B8 = eHpk.connect() nR6k = rLdf.read_sql(f'select * from "{tyNF}"', w2B8, index_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def libV(xDcj, RZ33):\n bOBl = CwDs.read_sql(xDcj, con=RZ33)\n print('Data from database: ', bOBl.head(5))\n print('Size of dataframe from database: ', bOBl.shape)\n return bOBl", "def UpBV(tyNF):\n eHpk = y2U9(GzKZ, encoding='latin1')\n w2B8 = eHpk.connect()\n EfUA = w2B8.execute('select * ...
[ "0.81299627", "0.805204", "0.80501723", "0.80095464", "0.7997728", "0.7991211", "0.79572374", "0.787298", "0.783609", "0.78281873", "0.7788777", "0.77415526", "0.77030283", "0.7697647", "0.7693436", "0.76739347", "0.7665277", "0.76047397", "0.7588384", "0.7585602", "0.7566514...
0.7388874
22
Updates a job build description for the current build. This method is intended to be run in an environment where JOB_NAME and BUILD_NUMBER are set in the environment, such as from within the job build itself. If either of the environment variables is not set, setting the description is not attempted at all.
def lUmS(YKHO, JBZA): wxIh = Hy7s.environ.get('JOB_NAME', None) Kl7k = Hy7s.environ.get('BUILD_NUMBER', None) if wxIh is not None and Kl7k is not None: YKHO.set_build_description(wxIh, Kl7k, JBZA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTT_(YKHO, wxIh, Cc7Y, JBZA):\n try:\n Yn3K.check_call(YKHO.cli + [UdU8.SET_DESCRIPTION, wxIh, Cc7Y, JBZA])\n except Yn3K.CalledProcessError:\n Ol8d = \"Setting build description failed (job={0}, build={1}, description='{2}')\".format(wxIh, Cc7Y, JBZA)\n raise q1Jo(Ol8d)", "def bup...
[ "0.77581465", "0.58388937", "0.55399406", "0.5432845", "0.5427102", "0.5406418", "0.5297104", "0.524192", "0.5240581", "0.5238138", "0.519109", "0.51833254", "0.5152861", "0.5104744", "0.5102506", "0.50946575", "0.50842863", "0.50842136", "0.5079061", "0.50598854", "0.5059168...
0.8271981
0
Salt and hashes the password.
def G3s8(YKHO, jTXt): YKHO.password = JPYf(jTXt, zB84())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hexlify(mNdd)\n return (NTfD + mNdd).decode('ascii')", "def...
[ "0.7726546", "0.76877874", "0.76764584", "0.75947", "0.7566996", "0.7513428", "0.74172544", "0.7408706", "0.7395221", "0.7364182", "0.7327813", "0.73232174", "0.7280142", "0.7258137", "0.72416675", "0.72343624", "0.72303843", "0.72061163", "0.72061163", "0.72061163", "0.72013...
0.6528625
74
>>> create_grid(4) [['0', '0', '0', '0'], ['0', '0', '0', '0'], ['0', '0', '0', '0'], ['0', '0', '0', '0']]
def Lm0U(zNig): Cs6h = [] for YRbF in range(zNig): rdlD = ['0'] * zNig Cs6h.append(rdlD) return Cs6h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([0] * 4)\n return Cs6h", "def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([])\n for r845 in range(4):\n Cs6h[YRbF].append(0)", "def Lm0U(Cs6h):\n _gRY = [0] * 4\n for YRbF in range(4):\n Cs6h.appen...
[ "0.89446443", "0.8844845", "0.88298595", "0.8797042", "0.84641975", "0.82472247", "0.8149008", "0.78898084", "0.7839033", "0.7772447", "0.7658475", "0.76574105", "0.76080716", "0.7555471", "0.75466675", "0.74476326", "0.7441377", "0.74026555", "0.7387294", "0.73625684", "0.73...
0.848049
4
Method is used to send request to the api to add a bucketlist for testing
def Tliu(YKHO, D3lj, jTXt, lWUy, zDRZ): YR4Q = str(_c1T(2020, 9, 22)) MOPg = YKHO.authentication_headers(email=D3lj, password=jTXt) return YKHO.client.post('/api/v1/bucketlist/{}/items/'.format(lWUy), data=qQXR.dumps({'name': zDRZ, 'finished_by': YR4Q}), content_type='application/json', headers=MOPg, follow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5fQ(YKHO):\n _hkX = YKHO.client.post('/bucketlists', data=qQXR.dumps(YKHO.bucketlist), content_type='application/json', headers={'Authorization': YKHO.token})\n YKHO.assertEqual(_hkX.status_code, 201)\n geh0 = YKHO.client.get('/bucketlists/1', headers={'Authorization': YKHO.token})\n YKHO.assertEq...
[ "0.7808094", "0.7646647", "0.76416534", "0.7634788", "0.73911667", "0.7332509", "0.7283901", "0.7266109", "0.72469544", "0.7237784", "0.7166871", "0.7161714", "0.7063952", "0.70266515", "0.7024281", "0.7019768", "0.69053954", "0.6877802", "0.6849187", "0.67823607", "0.6734943...
0.7050521
13
Returns length of memory buffer as a property.
def WRfu(YKHO): return len(YKHO.memory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO.buffer)", "def szAg(YKHO):\n return len(YKHO.buffer)", "def szAg(YKHO):\n return len(YKHO.buffer)", "def szAg(YKHO):\n return len(YKHO.memory)", "def szAg(YKHO):\n return len(YKHO.memory)", "def szAg(YKHO):\n return len(YKHO.memory)", "def szAg...
[ "0.7560014", "0.7533779", "0.7533779", "0.74142253", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", "0.7374192", ...
0.0
-1
Returns the projected value distribution for the input state/action pair While there are several very similar implementations of this Categorical Projection methodology around github, this function owes the most
def zChS(YKHO, vwlo, BFeB, nQSc): MynD = YKHO.vmin n4wC = YKHO.vmax RR8p = YKHO.atoms C2a_ = YKHO.num_atoms KMvS = YKHO.gamma uZXo = YKHO.rollout vwlo = vwlo.unsqueeze(-1) nQSc = nQSc.unsqueeze(-1).type(ht2j.float) LTyj = (n4wC - MynD) / (C2a_ - 1) mXpd = vwlo + KMvS ** uZXo * RR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H54O(YKHO, QTBn):\n B9EC, NdnM = YKHO.__call__(QTBn)\n pImw = WGTe(B9EC, ht2j.exp(NdnM))\n return pImw", "def jrYK(YKHO, QTBn, XeOP):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n hG19 = YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP)\n U89Q = 0\n for xOOJ, Q7Be in hG19:\n ZZmu = YKHO.m...
[ "0.6413469", "0.5924323", "0.58160555", "0.5754944", "0.57004154", "0.56944776", "0.5661935", "0.56419706", "0.5618396", "0.56179804", "0.5609571", "0.55921984", "0.558994", "0.55720055", "0.55444455", "0.5505725", "0.55023724", "0.5493882", "0.5492896", "0.5434973", "0.54172...
0.0
-1
Checks that X has coordinates named as specified by x_lat_dim, x_lon_dim, x_sample_dim, and x_feature_dim
def Amk3(EcVT, GxHN, tPTQ, lIsw, ebRI): assert GxHN in EcVT.coords.keys(), 'XCast requires a dataset_lat_dim to be a coordinate on X' assert tPTQ in EcVT.coords.keys(), 'XCast requires a dataset_lon_dim to be a coordinate on X' assert lIsw in EcVT.coords.keys(), 'XCast requires a dataset_sample_dim to be a ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fs1z(EcVT, GxHN, tPTQ, lIsw, ebRI):\n HKeW(EcVT, GxHN, tPTQ, lIsw, ebRI)\n Amk3(EcVT, GxHN, tPTQ, lIsw, ebRI)\n Okhd(EcVT, GxHN, tPTQ, lIsw, ebRI)\n TSw_(EcVT, GxHN, tPTQ, lIsw, ebRI)", "def HKeW(EcVT, GxHN, tPTQ, lIsw, ebRI):\n assert 4 <= len(EcVT.dims) <= 5, 'XCast requires a dataset to be ...
[ "0.77260077", "0.7620336", "0.7221872", "0.6576378", "0.6310555", "0.6308388", "0.6186717", "0.608041", "0.58673334", "0.5852697", "0.5782202", "0.5687635", "0.5607326", "0.5584896", "0.55696183", "0.5523855", "0.5504535", "0.5483882", "0.54531854", "0.54332227", "0.5432066",...
0.8039974
0
Checks that X is an Xarray.DataArray
def TSw_(EcVT, GxHN, tPTQ, lIsw, ebRI): assert type(EcVT) == zuVY.DataArray, 'XCast requires a dataset to be of type "Xarray.DataArray"'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JSN0(YKHO, nPrm):\n if type(nPrm) is zuVY.core.dataarray.DataArray or type(nPrm) is zuVY.core.dataarray.Dataset:\n return True\n else:\n tO9_ = 'Variable {data} is not an xarray DataArray/Dataset'\n raise Exception(tO9_)", "def NBAd(EcVT, g24C=None):\n if g24C is None:\n ...
[ "0.86942047", "0.71866673", "0.7029208", "0.69669193", "0.6887847", "0.67700577", "0.66643125", "0.6535942", "0.63918483", "0.63843584", "0.636618", "0.63450086", "0.63026375", "0.6252001", "0.6233888", "0.6226298", "0.6150564", "0.61219764", "0.6118666", "0.6112856", "0.6090...
0.8198799
1
Getter only property. Returns publishing topic name.
def rlUa(YKHO): return YKHO._topic_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlUa(YKHO) -> str:\n return YKHO._topic", "def T3RU(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'pubsub_topic')", "def rlUa(YKHO):\n return YKHO.config.get('topic', f'{glCj}/{YKHO.id}')", "def qZtn(YKHO):\n return YKHO.topic", "def T3RU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4...
[ "0.7873912", "0.77815044", "0.7672942", "0.7589836", "0.7427634", "0.73527247", "0.7141051", "0.7079695", "0.70687497", "0.70312816", "0.7003432", "0.6849306", "0.6837315", "0.6716", "0.66638047", "0.6615674", "0.65900433", "0.6494008", "0.6449045", "0.6389532", "0.6370327", ...
0.8160925
0
Return string representation of the instance.
def zAg0(YKHO): return YKHO.branch_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZBi(YKHO):\n return YKHO.__repr__()", "def wHJl(YKHO):\n return YKHO.to_str()", "def wHJl(YKHO):\n return YKHO.to_str()", "def wHJl(YKHO):\n return YKHO.to_str()", "def wHJl(YKHO):\n return YKHO.to_str()", "def wHJl(YKHO):\n return YKHO.to_str()", "def wHJl(YKHO):\n return YKH...
[ "0.85652095", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", "0.8392225", ...
0.0
-1
Return repr representation of the instance.
def wHJl(YKHO): return '<Branch: %s>' % YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(...
[ "0.8206054", "0.8206054", "0.8206054", "0.81909746", "0.8183906", "0.8177763", "0.8165392", "0.8165392", "0.8165392", "0.8165392", "0.81573534", "0.81573534", "0.81573534", "0.81428844", "0.81360096", "0.81360096", "0.81360096", "0.81360096", "0.81360096", "0.81360096", "0.81...
0.0
-1
test upsert user template as anonymous raises access control error
def kXwz(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.upsert(YKHO.fixture.user1_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEmU(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.user1_template, request=Sdbo)", "def myjI(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request...
[ "0.79757524", "0.78699815", "0.77971363", "0.7779306", "0.7315423", "0.7268201", "0.72340584", "0.71491605", "0.711088", "0.70220673", "0.66764414", "0.6670372", "0.66626596", "0.6651719", "0.656055", "0.65165913", "0.6485727", "0.64777356", "0.64196575", "0.6418435", "0.6411...
0.81394374
0
test upsert user template as anonymous with access right raises access control error
def BEmU(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.upsert(YKHO.fixture.user1_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXwz(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.user1_template, request=Sdbo)", "def dK1m(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)", ...
[ "0.80965334", "0.7977133", "0.7963794", "0.7793425", "0.7664125", "0.7498813", "0.72754526", "0.7163729", "0.71102697", "0.708983", "0.6803297", "0.6699159", "0.6673843", "0.6615065", "0.66076845", "0.66003054", "0.6594539", "0.65447944", "0.6544686", "0.65272033", "0.6497763...
0.82011104
0
test upsert global template as anonymous raises access control error
def myjI(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QeUW(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)", "def dK1m(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)",...
[ "0.7650722", "0.756786", "0.73319674", "0.72709674", "0.71599734", "0.6970519", "0.68684846", "0.67423", "0.65906715", "0.6536628", "0.64568055", "0.64072675", "0.6396326", "0.6376108", "0.6357626", "0.63539773", "0.6263191", "0.6222696", "0.6143397", "0.6139016", "0.6118972"...
0.7757241
0
test upsert global template as anonymous raises access control error
def QeUW(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myjI(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)", "def dK1m(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n with YKHO.assertRaises(T0EN):\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)",...
[ "0.7756423", "0.75673836", "0.7331551", "0.7270877", "0.7159347", "0.6970686", "0.6868954", "0.6742805", "0.65919876", "0.6536369", "0.6457105", "0.6407503", "0.6395695", "0.63756883", "0.6357793", "0.6353528", "0.62642133", "0.6223189", "0.6144017", "0.61375785", "0.61193377...
0.76497203
1
test upsert global template as user raises access control error
def dK1m(YKHO): Sdbo = QrDS(user=YKHO.user1) with YKHO.assertRaises(T0EN): QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eu56(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.upsert(YKHO.fixture.global_template, request=Sdbo)", "def Z1Mi(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.upsert(YKHO.fixture.user1_template, request=Sdbo)", "def pka7(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n QUSm.upsert(YKHO.fi...
[ "0.8106673", "0.76909196", "0.7503215", "0.7482491", "0.7482349", "0.747998", "0.74361557", "0.7395664", "0.7269864", "0.72538686", "0.72130823", "0.7131496", "0.701815", "0.6556384", "0.65447783", "0.6527001", "0.64378923", "0.6381135", "0.6367743", "0.6320074", "0.63030666"...
0.82474107
0
test set display name global template as anonymous with right access raises access control error
def E0_8(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.set_display_name(YKHO.fixture.global_template, 'new_name', request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGah(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n with YKHO.assertRaises(T0EN):\n QUSm.set_display_name(YKHO.fixture.global_template, 'new_name', request=Sdbo)", "def xsCq(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.set_display_name(YKHO.fixture....
[ "0.7787586", "0.7674045", "0.7377819", "0.7261662", "0.6899707", "0.68808687", "0.6835308", "0.66616756", "0.665786", "0.659236", "0.64996874", "0.64823717", "0.6461565", "0.64222765", "0.6356866", "0.63562834", "0.6349354", "0.62561953", "0.62519723", "0.6238655", "0.6195329...
0.781777
0
test get user template as anonymous raises access control error
def zZqS(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.get_by_id(YKHO.fixture.user1_template.id, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjRr(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n rPXJ = QUSm.get_by_id(YKHO.fixture.global_template.id, request=Sdbo)\n YKHO.assertEqual(rPXJ, YKHO.fixture.global_template)", "def tGsz(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.get_by_id(Y...
[ "0.7613135", "0.7530476", "0.74307054", "0.7373814", "0.7083884", "0.70543534", "0.68818855", "0.68209565", "0.6811224", "0.6782865", "0.67101246", "0.6708908", "0.6702115", "0.6648804", "0.6645128", "0.6643842", "0.6637662", "0.66228014", "0.6600431", "0.6600431", "0.6591543...
0.771759
0
test get global template as anonymous raises access control error
def osoC(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.get_by_id(YKHO.fixture.global_template.id, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjRr(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n rPXJ = QUSm.get_by_id(YKHO.fixture.global_template.id, request=Sdbo)\n YKHO.assertEqual(rPXJ, YKHO.fixture.global_template)", "def NKC_(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n DqlU = QUSm.get_all(request=Sdbo)\n YKHO.assertEqual...
[ "0.785796", "0.71265125", "0.6954985", "0.68960994", "0.6858321", "0.6774985", "0.6732087", "0.6653357", "0.6604685", "0.6559678", "0.65291065", "0.6520919", "0.6491397", "0.64557844", "0.6435501", "0.6425238", "0.6417766", "0.64098907", "0.6396767", "0.6332146", "0.63056093"...
0.71931285
1
test get other users template raises access control error
def MnTQ(YKHO): Sdbo = QrDS(user=YKHO.user1) with YKHO.assertRaises(T0EN): QUSm.get_by_id(YKHO.fixture.user2_template.id, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sunk(YKHO):\n Sdbo = QrDS(user=YKHO.staff_user1)\n with YKHO.assertRaises(T0EN):\n QUSm.get_by_id(YKHO.fixture.user2_template.id, request=Sdbo)", "def BuJS(YKHO):\n Sdbo = QrDS(user=YKHO.user)\n DqlU = QUSm.get_all(request=Sdbo)\n YKHO.assertEqual(DqlU.count(), 2)\n YKHO.assertTrue(Y...
[ "0.77614397", "0.744975", "0.7427578", "0.74270964", "0.73795503", "0.7345958", "0.7273537", "0.71408963", "0.70783716", "0.70651674", "0.7050977", "0.7047117", "0.7017474", "0.6984865", "0.69814235", "0.6955635", "0.69546133", "0.6926745", "0.691739", "0.68871033", "0.688575...
0.7893574
0
test get any template as superuser returns template
def R5RE(YKHO): Sdbo = QrDS(user=YKHO.superuser1) rPXJ = QUSm.get_by_id(YKHO.fixture.user1_template.id, request=Sdbo) YKHO.assertEqual(rPXJ, YKHO.fixture.user1_template) rPXJ = QUSm.get_by_id(YKHO.fixture.user2_template.id, request=Sdbo) YKHO.assertEqual(rPXJ, YKHO.fixture.user2_template) rPXJ =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_Q5(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n rPXJ = QUSm.get_by_id(YKHO.fixture.user1_template.id, request=Sdbo)\n YKHO.assertEqual(rPXJ, YKHO.fixture.user1_template)", "def BuJS(YKHO):\n Sdbo = QrDS(user=YKHO.user)\n DqlU = QUSm.get_all(request=Sdbo)\n YKHO.assertEqual(DqlU.count(), 2)\n ...
[ "0.7339057", "0.7293115", "0.72650164", "0.7177737", "0.71384394", "0.7035053", "0.69855136", "0.6984406", "0.69122374", "0.68956125", "0.6870337", "0.6849097", "0.68091345", "0.6803988", "0.6782561", "0.6699082", "0.6676653", "0.66753626", "0.6625917", "0.6607886", "0.659822...
0.8227463
0
test get all accessible by id list as superuser returns accessible templates
def oUiu(YKHO): Sdbo = QrDS(user=YKHO.superuser1) DqlU = QUSm.get_all_accessible_by_id_list(YKHO.template_id_list, request=Sdbo) YKHO.assertTrue(YKHO.fixture.user1_template in list(DqlU)) YKHO.assertTrue(YKHO.fixture.user2_template in list(DqlU)) YKHO.assertTrue(YKHO.fixture.global_template in list(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ljMz(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n DqlU = QUSm.get_all_accessible_by_id_list(YKHO.template_id_list, request=Sdbo)\n YKHO.assertTrue(YKHO.fixture.user1_template in list(DqlU))\n YKHO.assertTrue(YKHO.fixture.user2_template not in list(DqlU))\n YKHO.assertTrue(YKHO.fixture.global_template...
[ "0.8283416", "0.8071495", "0.7812368", "0.7686281", "0.7590276", "0.7461408", "0.73253256", "0.7286531", "0.72477025", "0.7221876", "0.7189584", "0.7163987", "0.71550506", "0.7076607", "0.70374113", "0.7007362", "0.6996137", "0.6994254", "0.69909936", "0.6976883", "0.6971435"...
0.848242
0
test get all accessible by hash as staff returns global template
def Zosd(YKHO): Sdbo = QrDS(user=YKHO.staff_user1) DqlU = QUSm.get_all_accessible_by_hash(YKHO.fixture.global_template.hash, request=Sdbo) YKHO.assertTrue(YKHO.fixture.user1_template not in list(DqlU)) YKHO.assertTrue(YKHO.fixture.user2_template not in list(DqlU)) YKHO.assertTrue(YKHO.fixture.global...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QU2s(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n DqlU = QUSm.get_all_accessible_by_hash(YKHO.fixture.global_template.hash, request=Sdbo)\n YKHO.assertTrue(YKHO.fixture.user1_template not in list(DqlU))\n YKHO.assertTrue(YKHO.fixture.user2_template not in list(DqlU))\n YKHO.assertTrue(YKHO.fixtu...
[ "0.7497486", "0.74746835", "0.7385293", "0.7356151", "0.73261195", "0.72790205", "0.7225152", "0.71621686", "0.7087019", "0.7080861", "0.7057837", "0.7043345", "0.6963795", "0.678838", "0.66819537", "0.6676437", "0.6665664", "0.66606534", "0.66260237", "0.65794927", "0.655635...
0.7554428
0
test get all accessible by hash as superuser returns global template
def QU2s(YKHO): Sdbo = QrDS(user=YKHO.superuser1) DqlU = QUSm.get_all_accessible_by_hash(YKHO.fixture.global_template.hash, request=Sdbo) YKHO.assertTrue(YKHO.fixture.user1_template not in list(DqlU)) YKHO.assertTrue(YKHO.fixture.user2_template not in list(DqlU)) YKHO.assertTrue(YKHO.fixture.global_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S1ZJ(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n DqlU = QUSm.get_all_accessible_by_hash_list([YKHO.fixture.global_template.hash], request=Sdbo)\n YKHO.assertTrue(YKHO.fixture.user1_template not in list(DqlU))\n YKHO.assertTrue(YKHO.fixture.user2_template not in list(DqlU))\n YKHO.assertTrue(YKH...
[ "0.7841484", "0.779551", "0.7761922", "0.76789105", "0.7675325", "0.75503117", "0.75284576", "0.75161767", "0.7387159", "0.73823154", "0.73564553", "0.73227084", "0.72829455", "0.716237", "0.7129225", "0.7032054", "0.69710624", "0.6944363", "0.68697715", "0.68558455", "0.6848...
0.80500853
0
test delete global template as anonymous raises access control error
def GUch(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.delete(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QPTb(YKHO):\n pass", "def U5PZ(YKHO):\n pass", "def CERx(YKHO):\n pass", "def BI05(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.delete(YKHO.fixture.global_template, request=Sdbo)", "def kgpy(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n wit...
[ "0.81480706", "0.7738205", "0.76446134", "0.760553", "0.74554205", "0.73302263", "0.7171768", "0.71101874", "0.7082718", "0.6964324", "0.69628876", "0.6946534", "0.68553317", "0.6727042", "0.66276026", "0.65248346", "0.6505133", "0.6429171", "0.6403121", "0.6380354", "0.63574...
0.76803684
2
test delete global template as anonymous with access right raises access control error
def BI05(YKHO): Sdbo = QrDS(user=YKHO.anonymous_user) with YKHO.assertRaises(T0EN): QUSm.delete(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QPTb(YKHO):\n pass", "def kgpy(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n with YKHO.assertRaises(T0EN):\n QUSm.delete(YKHO.fixture.global_template, request=Sdbo)", "def GUch(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.delete(YKHO.fixture.g...
[ "0.7957372", "0.78233325", "0.7783485", "0.7648756", "0.73494995", "0.724509", "0.7238044", "0.7229371", "0.7146958", "0.70505244", "0.694791", "0.6860597", "0.6852993", "0.67819417", "0.66837376", "0.66768485", "0.6628545", "0.6627234", "0.6593351", "0.65602285", "0.6522194"...
0.78978837
1
test delete global template as user raises access control error
def kgpy(YKHO): Sdbo = QrDS(user=YKHO.user1) with YKHO.assertRaises(T0EN): QUSm.delete(YKHO.fixture.global_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3yI(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.delete(YKHO.fixture.global_template, request=Sdbo)", "def QPTb(YKHO):\n pass", "def BI05(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.delete(YKHO.fixture.global_template, request=Sdbo)", ...
[ "0.8058154", "0.78446215", "0.7595148", "0.75532234", "0.75362784", "0.753489", "0.74993956", "0.7437848", "0.72980475", "0.7283631", "0.726282", "0.7225051", "0.7123989", "0.711558", "0.7096376", "0.7071216", "0.70578927", "0.70301336", "0.70142186", "0.69239014", "0.6853447...
0.8217039
0
test delete own template as staff saves
def ikMq(YKHO): Sdbo = QrDS(user=YKHO.staff_user1) QUSm.delete(YKHO.fixture.user1_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmBS(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.delete(YKHO.fixture.user1_template, request=Sdbo)", "def cTk3(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n QUSm.delete(YKHO.fixture.user1_template, request=Sdbo)", "def ZynL(YKHO):\n Sdbo = QrDS(user=YKHO.staff_user1)\n QUSm.delete(YKHO.fi...
[ "0.8108582", "0.80523485", "0.80356413", "0.7905152", "0.76571864", "0.76172143", "0.7565759", "0.7552634", "0.74682933", "0.74544466", "0.73570675", "0.7341402", "0.7218155", "0.7113023", "0.7024291", "0.7003252", "0.69519466", "0.6912048", "0.69030714", "0.6814051", "0.6802...
0.8403106
0
test delete own template as superuser saves
def nmBS(YKHO): Sdbo = QrDS(user=YKHO.superuser1) QUSm.delete(YKHO.fixture.user1_template, request=Sdbo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTk3(YKHO):\n Sdbo = QrDS(user=YKHO.user1)\n QUSm.delete(YKHO.fixture.user1_template, request=Sdbo)", "def r3yI(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.delete(YKHO.fixture.global_template, request=Sdbo)", "def B7Se(YKHO):\n Sdbo = QrDS(user=YKHO.superuser1)\n QUSm.delete(YKHO.fi...
[ "0.8280397", "0.8224194", "0.8060117", "0.78996503", "0.75895417", "0.7520532", "0.7519773", "0.75025415", "0.73786604", "0.73680294", "0.721002", "0.70879525", "0.702414", "0.70129967", "0.7012797", "0.7012797", "0.6967623", "0.6949611", "0.68701947", "0.68661785", "0.679306...
0.8697194
0
check that columns_lst is tbset of self.df.columns.names
def fseh(YKHO, jQ3Z, Hwvv): if Hwvv == []: raise ValueError('column_lst is empty') cBZD = set(Hwvv) JdHa = set(list(jQ3Z)) if cBZD - JdHa != set(): tO9_ = 'col_lst has columns name that does not exists in the DataFrame columns:{}'.format(str(cBZD - JdHa)) print(tO9_) rais...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jP2o(jQ3Z, ZLJ_):\n if not isinstance(ZLJ_, list):\n ZLJ_ = [ZLJ_]\n return set(ZLJ_).issubset(jQ3Z.columns)", "def V0OA(jQ3Z: pd.DataFrame, ZWCE: typing.Sequence[str]) -> None:\n for aEqx in ZWCE:\n if aEqx not in jQ3Z.columns:\n raise ValueError(f\"'{aEqx}' column not foun...
[ "0.7229939", "0.69595104", "0.6792466", "0.6648041", "0.66035503", "0.65919405", "0.65672946", "0.6438893", "0.64331186", "0.6377156", "0.6362247", "0.63079476", "0.62102634", "0.61988276", "0.6196506", "0.61454993", "0.61221856", "0.61137414", "0.61022323", "0.6095521", "0.6...
0.83148104
0
Generate a side by side plot of expected and predicted
def DKnD(input, hlel, aEqx, UXqs, LZpg, MPlV): fO_R = len(input) for Wc9F in range(0, fO_R): AT86 = oyIN.clip(oyIN.reshape(input[Wc9F], (28, 28)), 0, 1) nPp5 = oyIN.clip(oyIN.reshape(aEqx[Wc9F], (28, 28)), 0, 1) cAg3 = oyIN.clip(oyIN.reshape(hlel[Wc9F], (28, 28)), 0, 1) MPlV[Wc9F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJzi(nPrm, _Xkt, V1xi):\n assert nPrm.shape[0] == _Xkt.shape[0]\n assert nPrm.shape[0] == V1xi.shape[0]\n QrM1.figure()\n QrM1.subplot(1, 2, 1)\n QrM1.title('Ground Truth', fontsize=18)\n for or8S in range(nPrm.shape[0]):\n if _Xkt[or8S] == 0:\n QrM1.plot(nPrm[or8S][0], nPrm...
[ "0.7095982", "0.7095982", "0.6836742", "0.6829876", "0.6635602", "0.6579234", "0.6553575", "0.65293133", "0.6511318", "0.64920896", "0.6491192", "0.6463729", "0.6444954", "0.64443487", "0.6430439", "0.6392063", "0.6367903", "0.635039", "0.6348396", "0.63420445", "0.6334286", ...
0.6863375
2
Extract EPSG number from file name.
def anCO(IznC): IznC = IznC.split('_') YRbF = IznC.index('epsg') return IznC[YRbF + 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anCO(IznC):\n IznC = IznC.split('_')\n YRbF = IznC.index('epsg')\n return IznC[YRbF + 1]", "def u9Qn(YKHO):\n U34r = YKHO._info['coordinateSystem']['wkt'].rsplit('\"EPSG\",', 1)[-1]\n return int(ZbWC.findall('\\\\d+', U34r)[0])", "def wGkq(Ux0P):\n return ZbWC.search('\\\\d+', Ux0P).group...
[ "0.63735604", "0.62062746", "0.6061637", "0.58868164", "0.5818382", "0.5740342", "0.5669474", "0.5658069", "0.5641101", "0.5620341", "0.5620254", "0.56191593", "0.56164837", "0.56108224", "0.5606117", "0.55956405", "0.5589816", "0.558568", "0.557769", "0.5521931", "0.55009794...
0.6381265
1
Test that initializing a Matern1/2 kernel with 0 variance raises an exception
def BFOe(Dxrs): with trZe.raises(ValueError) as kLQb: Dxrs(lengthscale=1.0, variance=0.0, output_dim=1) assert kLQb.value.args[0].find('variance must be positive.') >= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3yu():\n liMP = h3z1(2, 5)\n assert liMP.shape == (5, 5)\n assert liMP[2, 2] == 0.039788735772973836", "def VEkw(kTwQ):\n with trZe.raises(ValueError):\n NJRn.Matern(input_dim=1, nu=kTwQ)", "def r4g0(YKHO):\n with YKHO.assertRaisesRegexp(ValueError, '`kernel_shape` cannot be None.'):...
[ "0.64694107", "0.64663404", "0.63284683", "0.6302467", "0.60142285", "0.59726274", "0.5947721", "0.589947", "0.5893144", "0.589087", "0.5890487", "0.581995", "0.5760517", "0.57496685", "0.57280266", "0.5705864", "0.56650275", "0.5636754", "0.56325996", "0.56217444", "0.560097...
0.6615188
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(KCMF, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.goal_id is None: YKHO.goal_id = tkft.msg.GoalID() if YKHO.goal is None: YKHO.goal = _197.msg.M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77939296", "0.7720264", "0.7720264", "0.76866186", "0.7626193", "0.756387", "0.74395823", "0.7416946", "0.7308225", "0.72806025", "0.72379386", "0.72272825", "0.7224187", "0.7224187", "0.7218873", "0.7211484", "0.7211484", "0.7211484", "0.7211484", "0.7211484", "0.7211484"...
0.73519075
8
Compute pdf at a fixed point on the support.
def kzAT(WKvO): return lambda AU8u: YKHO.information_manifold.point_to_pdf(AU8u)(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzAT(WKvO, AU8u):\n raise NotImplementedError('The pdf method has not yet been implemented.')", "def kzAT(YKHO, WKvO):\n raise NotImplementedError", "def kzAT(YKHO, WKvO):\n ENEm = YKHO._distribution.pdf(WKvO)\n return ENEm", "def kzAT(YKHO, WKvO):\n if YKHO.base == 'natural':\n Tja...
[ "0.7687768", "0.74538267", "0.74296933", "0.73647636", "0.7215672", "0.71905404", "0.7085889", "0.70647675", "0.70454675", "0.69965947", "0.69869745", "0.69869745", "0.697386", "0.6928952", "0.6928614", "0.69227785", "0.69120353", "0.684598", "0.68387115", "0.6809058", "0.678...
0.73273325
4
Predict movement of game controler where is epsilon probability randomly move.
def NlX8(YKHO, rVnq, O9in): YKHO.a_count += 1 RuG3 = None if YKHO.a_count < YKHO.warmup: if len(O9in) > 0: RuG3 = [jzdc for jzdc in YKHO.actions if jzdc not in O9in] XeOP = YKHO.random_action(RuG3) return (XeOP, None) elif YKHO.a_count == YKHO.warmup and YKHO.verbose:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2mi(YKHO, nPrm, _hZ2):\n crly = YKHO.model.predict(nPrm, batch_size=1)\n BahE = oyIN.argmax(crly)\n V4rn = oyIN.random.random()\n if V4rn < _hZ2:\n BahE = oyIN.random.randint(0, KPX9)\n return (BahE, crly[0, BahE])", "def z2mi(YKHO, nPrm, _hZ2):\n crly = YKHO.model.predict(nPrm.resh...
[ "0.702739", "0.69440806", "0.61970955", "0.60627735", "0.60549825", "0.6046344", "0.5988161", "0.5935208", "0.59265876", "0.59182566", "0.58736765", "0.5839762", "0.58332235", "0.5812775", "0.5812775", "0.5780309", "0.5775754", "0.5767696", "0.57500184", "0.57460207", "0.5745...
0.0
-1
Perform one step of gradient descent on (yj Q(phi, aj, w))^2
def pzsb(YKHO, Wc9F): x6A0 = YKHO.get_target(Wc9F) GbBQ = oyIN.vstack(Wc9F[0]) oGem = YKHO.get_masks(Wc9F[1]) YpWv = x6A0.max(axis=1) EcVT = [GbBQ, x6A0, oGem] fuBA = [YpWv, x6A0] Wbxz = YKHO.train_model.train_on_batch(EcVT, fuBA) YKHO.c_count += 1 if YKHO.c_count == YKHO.c: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vxp7(LVAh, UShr, yzQ0, KMvS):\n N77f = Lvgp(LVAh, UShr, yzQ0)\n Ro40 = tbeP(LVAh, UShr, yzQ0)\n g86m = yzQ0 - KMvS * Ro40\n return (N77f, g86m, Ro40)", "def Vxp7(LVAh, UShr, yzQ0, KMvS):\n N77f = Lvgp(LVAh, UShr, yzQ0)\n Ro40 = tbeP(LVAh, UShr, yzQ0)\n yzQ0 = yzQ0 - KMvS * Ro40\n retu...
[ "0.7216477", "0.71876305", "0.71149236", "0.7052852", "0.7013499", "0.69575596", "0.69293684", "0.68894744", "0.6888488", "0.688774", "0.6869979", "0.68588704", "0.6835098", "0.6807218", "0.6702064", "0.66813123", "0.66674036", "0.65884393", "0.6562325", "0.6562148", "0.65378...
0.0
-1
Returns the LibXCFunctional references.
def de7T(YKHO): return YKHO._refs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFxL(YKHO) -> x1iM[GMVa]:\n return YKHO._function_refs", "def iNep(YKHO):\n ufUJ = []\n aaFy = []\n if z1LY.get_func_flags(YKHO.func_ea) != -1:\n bf9h = z1LY.get_first_cref_to(YKHO.func_ea)\n while bf9h != GTZY.BADADDR:\n ufUJ.append(bf9h)\n bf9h = GTZY.get_nex...
[ "0.69382197", "0.6387038", "0.6072197", "0.58689415", "0.5774684", "0.57471573", "0.57462764", "0.57416767", "0.5685982", "0.561145", "0.5598167", "0.5594494", "0.55660653", "0.5555497", "0.55140364", "0.55033904", "0.5478641", "0.54763013", "0.5456211", "0.5435863", "0.54161...
0.56396455
9
Sets the density threshold below which the functional will not be evaluated.
def Oi12(YKHO, ym9O): if ym9O < 0: raise ValueError('The density threshold cannot be smaller than 0.') aM69.xc_func_set_dens_threshold(YKHO.xc_func, gk2W.c_double(ym9O))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OB7A(YKHO, gwAu):\n pass", "def nt6v(YKHO):\n YKHO._density = None", "def vm5J(YKHO, gwAu):\n YKHO._threshold = gPW0('threshold', gwAu)", "def gwAu(YKHO, CHXu):\n pass", "def DZbg(YKHO):\n YKHO.threshold.data.clamp_(YKHO.min_threshold)", "def OB7A(YKHO, Ty9i):\n YKHO._set(threshold=...
[ "0.63226175", "0.61955786", "0.6171416", "0.61262935", "0.59644085", "0.58235157", "0.58235157", "0.58235157", "0.58235157", "0.58235157", "0.57770663", "0.5771117", "0.5760468", "0.5694355", "0.5690046", "0.56802684", "0.5664838", "0.56599784", "0.56505716", "0.5615393", "0....
0.7752366
0
Sets the smallest value allowed for tau. Smaller values than this get overwritten in the evaluation.
def GwVn(YKHO, pti5): if pti5 < 0: raise ValueError('The tau threshold cannot be smaller than 0.') aM69.xc_func_set_tau_threshold(YKHO.xc_func, gk2W.c_double(pti5))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, jmzt=0.001):\n YKHO._tau = jmzt\n pass", "def FIMM(YKHO, jmzt=1, SGf8=None):\n YKHO.tau = jmzt\n YKHO.eps = SGf8 or oyIN.finfo(GPtr.precision).eps\n YKHO.rng = oyIN.random.default_rng()\n YKHO.smax = lMfz()", "def WyFy(YKHO, type: str='safest', upAO: float=1.5):\n V6IE = YKH...
[ "0.64921534", "0.61496323", "0.61187613", "0.6012751", "0.59901506", "0.58402216", "0.5835517", "0.56944895", "0.5693752", "0.5693752", "0.5661594", "0.55744827", "0.55099267", "0.5492436", "0.5492436", "0.54596823", "0.5449228", "0.5433668", "0.54214495", "0.54214495", "0.54...
0.60347635
3
Strip path and extension. Return base filename.
def aPr_(YKHO): return sYT0(YKHO.filename)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcGC(Ux0P):\n P8oC = Hy7s.path.basename(Ux0P)\n return Hy7s.path.splitext(P8oC)[0]", "def yFjF(qaEx):\n lBIM = Hy7s.path.basename(qaEx)\n return Hy7s.path.splitext(lBIM)[0]", "def MjJ9(pmON: str) -> str:\n return Hy7s.path.basename(pmON)", "def jXPH(pmON):\n rnHI = ZbWC.compile('[^/]*\\...
[ "0.80113024", "0.7722132", "0.7642737", "0.7580186", "0.7531498", "0.74958444", "0.7461117", "0.72882116", "0.726376", "0.72585756", "0.7248201", "0.72440237", "0.7239742", "0.7233385", "0.7215656", "0.721015", "0.72061", "0.7173597", "0.7156511", "0.7147149", "0.7107287", ...
0.6472341
80
Construct and return a filename for this tile.
def pcWg(YKHO, AGPF=Hy7s.getcwd(), y0cW='tile', format='png', pmON=True): Ux0P = y0cW + '_{col:02d}_{row:02d}.{ext}'.format(col=YKHO.column, row=YKHO.row, ext=format.lower().replace('jpeg', 'jpg')) if not pmON: return Ux0P return Hy7s.path.join(AGPF, Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVRR(YKHO, WKvO, LVAh, epBp):\n sbUp = WKvO + LVAh * YKHO.tierSizeInTiles[epBp][0] + YKHO.tileCountUpToTier[epBp]\n return Hy7s.path.join('TileGroup%.0f' % epAf.floor(sbUp / 256), '%s-%s-%s.%s' % (epBp, WKvO, LVAh, YKHO.tileformat))", "def tVRR(YKHO, WKvO, LVAh, epBp):\n sbUp = WKvO + LVAh * YKHO.ti...
[ "0.7717686", "0.77164763", "0.74944174", "0.73645", "0.71533597", "0.7137769", "0.7135323", "0.71192485", "0.7112908", "0.7089001", "0.69753784", "0.69214255", "0.6892904", "0.6883375", "0.686652", "0.68156606", "0.6811536", "0.6807842", "0.6796225", "0.6787518", "0.6782904",...
0.7444088
3
Split an image into a specified number of tiles.
def slice(Ux0P, tc4v=None, fvDH=None, rdlD=None, xkzz=True, eWdL=True): if eWdL is False: hnIv.MAX_IMAGE_PIXELS = None Xn71 = hnIv.open(Ux0P) f8GA, Y6U4 = Xn71.size ZLJ_ = 0 usx6 = 0 if tc4v: aO7N(Xn71, tc4v) ZLJ_, usx6 = DpTF(tc4v) else: Ucxl(Xn71, fvDH, rdlD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SeFB(YKHO, LNo8: np.ndarray) -> a1PO.Sequence[a1PO.Tuple[a1PO.Tuple[a1PO.Any, ...], oyIN.ndarray]]:\n MKlR, yzQ0, Z9rn = LNo8.shape\n eqIj = epAf.ceil(MKlR / (YKHO._n_tiles // 2 - 1)) if YKHO._n_tiles > 4 else epAf.ceil(MKlR / (YKHO._n_tiles // 2))\n qnml = epAf.ceil(yzQ0 / (YKHO._n_tiles // 2))\n ...
[ "0.7739236", "0.76190794", "0.70275676", "0.67776227", "0.6704536", "0.66682243", "0.6638104", "0.6595239", "0.65494275", "0.6480226", "0.646695", "0.6428937", "0.6403003", "0.6392269", "0.6336873", "0.62955356", "0.6278064", "0.6265527", "0.6264345", "0.624642", "0.614579", ...
0.64391273
11
Open all images in a directory. Return tuple of Tile instances.
def Q69H(AGPF): RRlC = [Ux0P for Ux0P in Hy7s.listdir(AGPF) if '_' in Ux0P and (not Ux0P.startswith('joined'))] PttE = [] if len(RRlC) > 0: YRbF = 0 for nUeQ in RRlC: oeNL = cWGK(nUeQ) Xn71 = hnIv.open(Hy7s.path.join(AGPF, nUeQ)) ER2_ = [0, 0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vylf(AGPF):\n return [hnIv.open(Hy7s.path.join(AGPF, VXjJ)) for VXjJ in Hy7s.listdir(AGPF)]", "def bN20(AGPF=None):\n if AGPF == None:\n AGPF = Hy7s.getcwd()\n CL5K = []\n MVVZ = []\n ALix = Hy7s.listdir(AGPF)\n for bTKY in ALix:\n MKBi = Hy7s.path.join(AGPF, bTKY)\n tr...
[ "0.67336595", "0.6599813", "0.6416653", "0.63725936", "0.61642754", "0.6014441", "0.5978408", "0.59570676", "0.5940081", "0.5896447", "0.58877945", "0.5837525", "0.5792128", "0.5787893", "0.5751572", "0.57426775", "0.5739392", "0.57090163", "0.57005966", "0.56994253", "0.5688...
0.81790555
0
If a media resource has an image, its type property should indicate it's an image.
def dcxg(LNo8): Eorv = FYrf.MediaResource(image=LNo8) assert Eorv.type == FYrf.MediaResource.TYPE_IMAGE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETKF(m5r4):\n return m5r4 == 'image/jpeg' or m5r4 == 'image/png'", "def ETKF(YKHO):\n na1r.debug('content type')\n na1r.debug(YKHO.content_type)\n if YKHO.content_type is not None and YKHO.content_type.lower() in q85s.values():\n return True\n else:\n return False", "def Mc10(Y...
[ "0.71367157", "0.6835922", "0.6663885", "0.6654667", "0.6619548", "0.648332", "0.6373138", "0.6143732", "0.6071515", "0.59954345", "0.5967518", "0.596137", "0.59485954", "0.5918796", "0.5918796", "0.5918796", "0.5918796", "0.5918796", "0.5918796", "0.5918796", "0.5918796", ...
0.7742908
0