language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def removeDataset(self): """ Removes a dataset from the repo. """ self._openRepo() dataset = self._repo.getDatasetByName(self._args.datasetName) def func(): self._updateRepo(self._repo.removeDataset, dataset) self._confirmDelete("Dataset", dataset.get...
java
public static String generateFilename( String topologyName, String role, String tag, int version, String extension) { return String.format("%s-%s-%s-%d-%d%s", topologyName, role, tag, version, new Random().nextLong(), extension); }
java
public void initImpl() throws ConfigException { if (_handler != null) { } else if (_pathHandler != null) { } else { setPath(Paths.get(".")); } /* if (_formatter instanceof ELFormatter) { ((ELFormatter)_formatter).init(); } */ if (_formatter != null) { ...
python
def QA_util_time_stamp(time_): """ 字符串 '2018-01-01 00:00:00' 转变成 float 类型时间 类似 time.time() 返回的类型 :param time_: 字符串str -- 数据格式 最好是%Y-%m-%d %H:%M:%S 中间要有空格 :return: 类型float """ if len(str(time_)) == 10: # yyyy-mm-dd格式 return time.mktime(time.strptime(time_, '%Y-%m-%d')) elif l...
python
def get_attr(self): """ get the data for this column """ self.values = getattr(self.attrs, self.kind_attr, None) self.dtype = getattr(self.attrs, self.dtype_attr, None) self.meta = getattr(self.attrs, self.meta_attr, None) self.set_kind()
java
private List<CmsSelectWidgetOption> getIndexerClassWidgetConfiguration() { List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>(); result.add(new CmsSelectWidgetOption(CmsVfsIndexer.class.getName(), true)); return result; }
python
def _exportFile(self, otherCls, jobStoreFileID, url): """ Refer to exportFile docstring for information about this method. :param AbstractJobStore otherCls: The concrete subclass of AbstractJobStore that supports exporting to the given URL. Note that the type annotation here is n...
java
public void addListener(final WebAppListener listener) { NullArgumentException.validateNotNull(listener, "Listener"); NullArgumentException.validateNotNull(listener.getListenerClass(), "Listener class"); if (!listeners.contains(listener)) { listeners.add(listener); } }
python
def _method_complete(self, result): """Called after a registered method with the result.""" if isinstance(result, (PrettyTensor, Loss, PrettyTensorTupleMixin)): return result elif (isinstance(result, collections.Sequence) and not isinstance(result, six.string_types)): return self.with_...
python
def get_klout_score(tweet): """ Warning: Klout is deprecated and is being removed from Tweet payloads May 2018. \n See https://developer.twitter.com/en/docs/tweets/enrichments/overview/klout \n Get the Klout score (int) (if it exists) of the user who posted the Tweet Args: tweet (Tweet): A...
java
public void setPolicies(java.util.Collection<LifecyclePolicySummary> policies) { if (policies == null) { this.policies = null; return; } this.policies = new java.util.ArrayList<LifecyclePolicySummary>(policies); }
java
@Override public int compareTo(BigRational b) { BigRational a = this; return a.numerator.multiply(b.denominator).compareTo(a.denominator.multiply(b.numerator)); }
java
public boolean dependsOn(Extension extension, AddOn addOn) { String classname = extension.getClass().getCanonicalName(); for (ExtensionWithDeps extensionWithDeps : extensionsWithDeps) { if (extensionWithDeps.getClassname().equals(classname)) { return dependsOn(extension...
python
def check_and_update_action_task_group_id(parent_link, decision_link, rebuilt_definitions): """Update the ``ACTION_TASK_GROUP_ID`` of an action after verifying. Actions have varying ``ACTION_TASK_GROUP_ID`` behavior. Release Promotion action tasks set the ``ACTION_TASK_GROUP_ID`` to match the action ``tas...
python
def set_level(self, level): """ Set the logging level of this logger. :param level: must be an int or a str. """ for handler in self.__coloredlogs_handlers: handler.setLevel(level=level) self.logger.setLevel(level=level)
java
public final void load(final File fDirectory) throws PluginConfigurationException { File[] vFiles = fDirectory.listFiles(); if (vFiles != null) { for (File f : vFiles) { if (f.isDirectory()) { configurePlugins(f); } } } ...
python
def send_message(self, opcode, message): """ Send a message to the peer over the socket. :param int opcode: The opcode for the message to send. :param bytes message: The message data to send. """ if not isinstance(message, bytes): message = message.encode('utf-8') length = len(message) if not select...
python
def launch(self, host="local", port=8080): """Calling the Launch method on a Site object will serve the top node of the cherrypy Root object tree""" # Need to add in the appbar if many apps self.root.templateVars['app_bar'] = self.site_app_bar for fullRoute, _ in self.site_a...
python
def parse_options(): """ parse_options() -> opts, args Parse any command-line options given returning both the parsed options and arguments. """ parser = optparse.OptionParser(usage=USAGE, version=VERSION) parser.add_option("-q", "--query", action="store", type="string", defau...
java
public double getFitness(List<String> candidate, List<? extends List<String>> population) { int totalDistance = 0; int cityCount = candidate.size(); for (int i = 0; i < cityCount; i++) { int nextIndex = i < cityCount - 1 ? i + 1 : 0; ...
python
def _InstallImportHookBySuffix(): """Lazily installs import hook.""" global _real_import if _real_import: return # Import hook already installed _real_import = getattr(builtins, '__import__') assert _real_import builtins.__import__ = _ImportHookBySuffix if six.PY3: # In Python 2, importlib.imp...
java
@Override public void iconst(int value) throws IOException { if (value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) { super.iconst(value); } else { ldc(value); } }
python
def outlook(self, qs): """CSV format suitable for importing into outlook""" csvf = writer(sys.stdout) columns = ['Name', 'E-mail Address', 'Notes', 'E-mail 2 Address', 'E-mail 3 Address', 'Mobile Phone', 'Pager', 'Company', 'Job Title', 'Home Phone', 'Home Phone 2', ...
java
public static <E> RegularExpression<E> compile(final String expression, final Function<String, BaseExpression<E>> factoryDelegate) { return new RegularExpressionParser<E>() { @Override public BaseExpression<E> factory(String token) { return factoryDelegate.app...
python
def get(self, point): """ Get the pixel values at the requested point. :param point: A GeoVector(POINT) with the coordinates of the values to get :return: numpy array of values """ if not (isinstance(point, GeoVector) and point.type == 'Point'): raise TypeErr...
python
async def executemany(self, command: str, args, *, timeout: float=None): """Execute an SQL *command* for each sequence of arguments in *args*. Example: .. code-block:: pycon >>> await con.executemany(''' ... INSERT INTO mytab (a) VALUES ($1, $2, $3); .....
java
@Pure @Inline(value = "Base64Coder.decode(($1).toCharArray())", imported = {Base64Coder.class}) public static byte[] decode(String string) { return decode(string.toCharArray()); }
java
public static String join(String delimiter, String wrap, Iterable<?> objs) { Iterator<?> iter = objs.iterator(); if (!iter.hasNext()) { return ""; } StringBuilder buffer = new StringBuilder(); buffer.append(wrap).append(iter.next()).append(wrap); while (iter.h...
python
def renameTable(self, login, oldTableName, newTableName): """ Parameters: - login - oldTableName - newTableName """ self.send_renameTable(login, oldTableName, newTableName) self.recv_renameTable()
java
private List<Resource<?>> allDirectoriesOnPath(Resource<?> startingDir) { List<Resource<?>> result = new ArrayList<>(); while (startingDir != null) { result.add(startingDir); startingDir = startingDir.getParent(); } return result; }
java
public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); }
python
def verify(self): """ Verifies an IPN and a PDT. Checks for obvious signs of weirdness in the payment and flags appropriately. """ self.response = self._postback().decode('ascii') self.clear_flag() self._verify_postback() if not self.flag: if s...
java
public void initiateOnReceivingSide(Socket socket, boolean isForOutgoing, int version) throws IOException { if (isForOutgoing) outgoing.start(socket, version); else incoming.start(socket, version); }
python
def base_warfare(name, bases, attributes): """ Adds any number of attributes to an existing class. :param name: Name. :type name: unicode :param bases: Bases. :type bases: list :param attributes: Attributes. :type attributes: dict :return: Base. :rtype: object """ asser...
python
def get(self, s, df=None, invert=False, records=('ATOM', 'HETATM')): """Filter PDB DataFrames by properties Parameters ---------- s : str in {'main chain', 'hydrogen', 'c-alpha', 'heavy'} String to specify which entries to return. df : pandas.DataFrame, default: No...
python
def ask_yes_no(*question: Token, default: bool = False) -> bool: """Ask the user to answer by yes or no""" while True: tokens = [green, "::", reset] + list(question) + [reset] if default: tokens.append("(Y/n)") else: tokens.append("(y/N)") info(*tokens) ...
java
public void deltaTotalPoolTime(long delta) { if (enabled.get() && delta > 0) { totalPoolTime.addAndGet(delta); totalPoolTimeInvocations.incrementAndGet(); if (delta > maxPoolTime.get()) maxPoolTime.set(delta); } }
python
def empbayes_fit(z0, fitargs, **minargs): """ Return fit and ``z`` corresponding to the fit ``lsqfit.nonlinear_fit(**fitargs(z))`` that maximizes ``logGBF``. This function maximizes the logarithm of the Bayes Factor from fit ``lsqfit.nonlinear_fit(**fitargs(z))`` by varying ``z``, starting at ``z0...
java
public static boolean isNumeric(Object obj) { if (obj == null) { return false; } char[] chars = obj.toString().toCharArray(); int length = chars.length; if(length < 1) return false; int i = 0; if(length > 1 && chars[0] == '-') i = 1; for (; i < length; i++) { if (!Character.isDigit(cha...
python
def _prep_pub(self, tgt, fun, arg, tgt_type, ret, jid, timeout, **kwargs): ''' Set up the payload_kwargs to be sent down to the master ''' if tg...
python
def has_concluded(self, bigchain, current_votes=[]): """Check if the election can be concluded or not. * Elections can only be concluded if the validator set has not changed since the election was initiated. * Elections can be concluded only if the current votes form a supermajority. ...
python
def geq_multiple(self, other): """ Return the next multiple of this time value, greater than or equal to ``other``. If ``other`` is zero, return this time value. :rtype: :class:`~aeneas.exacttiming.TimeValue` """ if other == TimeValue("0.000"): return...
java
public void clear() throws InterruptedException { if (thread != null) { synchronized (this) { if (thread != null) { thread.interrupt(); thread.join(); thread = null; queue.clear(); } } } }
python
def query(self): """Group the self.special_coverages queries and memoize them.""" if not self._query: self._query.update({ "excluded_ids": [], "included_ids": [], "pinned_ids": [], "groups": [], }) for sp...
python
def multipart_encode(self, vars): "Enconde form data (vars dict)" boundary = mimetools.choose_boundary() buf = StringIO() for key, value in vars.items(): if not isinstance(value, file): buf.write('--%s\r\n' % boundary) buf.write('Content-Dispos...
java
@Override // for covariant return type @SuppressWarnings("unchecked") public ChronoLocalDateTime<InternationalFixedDate> atTime(LocalTime localTime) { return (ChronoLocalDateTime<InternationalFixedDate>) super.atTime(localTime); }
python
def calc_dmgrid(d, maxloss=0.05, dt=3000., mindm=0., maxdm=0.): """ Function to calculate the DM values for a given maximum sensitivity loss. maxloss is sensitivity loss tolerated by dm bin width. dt is assumed pulse width in microsec. """ # parameters tsamp = d['inttime']*1e6 # in microsec k ...
java
private static Tree traverse(Tree parent, List<Tree> kids, Tree node) { for (Tree kid : kids) { if (kid == node) { return parent; } Tree ret = node.parent(kid); if (ret != null) { return ret; } } return ...
java
protected static <T> T modifyKeys(T object, Function<String, String> keyMapper, String toReplace) { if (object instanceof Map) { Map<String, Object> document = (Map<String, Object>) object; List<String> keysWithDots = new LinkedList<>(); for (Map.Entry<String, Object> entry :...
python
def verify_axis_labels(self, expected, actual, source_name): """Verify that axis labels for a given source are as expected. Parameters ---------- expected : tuple A tuple of strings representing the expected axis labels. actual : tuple or None A tuple of ...
python
def _init_refl3x(self, projectables): """Initiate the 3.x reflectance derivations.""" if not Calculator: LOG.info("Couldn't load pyspectral") raise ImportError("No module named pyspectral.near_infrared_reflectance") _nir, _tb11 = projectables self._refl3x = Calcul...
java
public Waiter<DescribeDBInstancesRequest> dBInstanceDeleted() { return new WaiterBuilder<DescribeDBInstancesRequest, DescribeDBInstancesResult>() .withSdkFunction(new DescribeDBInstancesFunction(client)) .withAcceptors(new DBInstanceDeleted.IsDeletedMatcher(), new DBInstanceDele...
python
def pick_config_ids(device_type, os, navigator): """ Select one random pair (device_type, os_id, navigator_id) from all possible combinations matching the given os and navigator filters. :param os: allowed os(es) :type os: string or list/tuple or None :param navigator: allowed browser engin...
java
public int setValue(double value, boolean bDisplayOption, int iMoveMode) { m_bSetData = true; // Make sure getNextConverter is called correctly (if it is called). int iErrorCode = super.setValue(value, bDisplayOption, iMoveMode); m_bSetData = false; return iErrorCode; }
java
@Nonnull LessException createException( Throwable cause ) { LessException lessEx = cause.getClass() == LessException.class ? (LessException)cause : new LessException( cause ); lessEx.addPosition( filename, line, column ); return lessEx; }
python
def get_command(all_pkg, hook): """ Collect the command-line interface names by querying ``hook`` in ``all_pkg`` Parameters ---------- all_pkg: list list of package files hook: str A variable where the command is stored. ``__cli__`` by default. Returns ------- list ...
java
public Observable<ServerBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerBlobAuditingPolicyInner>, Ser...
java
public static SlotProfile priorAllocation(ResourceProfile resourceProfile, Collection<AllocationID> priorAllocations) { return new SlotProfile(resourceProfile, Collections.emptyList(), priorAllocations); }
java
public static snmpalarm[] get(nitro_service service) throws Exception{ snmpalarm obj = new snmpalarm(); snmpalarm[] response = (snmpalarm[])obj.get_resources(service); return response; }
java
@FFDCIgnore(IllegalStateException.class) public URL getBundleEntry(Bundle bundleToTest, String pathAndName) { try { URL bundleEntry = bundleToTest.getEntry(pathAndName); /* * Defect 54588 discovered that if a directory does not have a zip entry then calling getEntry wil...
python
def cred_init( self, *, secrets_dir: str, log: Logger, bot_name: str="", ) -> None: """Initialize what requires credentials/secret files.""" super().__init__(secrets_dir=secrets_dir, log=log, bot_name=bot_name) self.ldebug("Retriev...
java
public FessMessages addSuccessStartedDataUpdate(String property) { assertPropertyNotNull(property); add(property, new UserMessage(SUCCESS_started_data_update)); return this; }
java
@SubscribeEvent public void onGetPotentialSpawns(PotentialSpawns ps) { // Decide whether or not to allow spawning. // We shouldn't allow spawning unless it has been specifically turned on - whether // a mission is running or not. (Otherwise spawning may happen in between missions.) ...
java
public static sslfipskey[] get(nitro_service service, String fipskeyname[]) throws Exception{ if (fipskeyname !=null && fipskeyname.length>0) { sslfipskey response[] = new sslfipskey[fipskeyname.length]; sslfipskey obj[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++) { obj[i...
java
public Stream<T> sort(final Comparator<T> comparator) { return new Stream<T>() { @Override public Iterator<T> iterator() { final ArrayList<T> array = ToArrayList.<T>toArrayList().call(Stream.this); Collections.sort(array, comparator); retur...
python
def videoWrite(path, imgs, levels=None, shape=None, frames=15, annotate_names=None, lut=None, updateFn=None): ''' TODO ''' frames = int(frames) if annotate_names is not None: assert len(annotate_names) == len(imgs) if levels is None: if i...
java
public static DesignDocument create(final String name, final List<View> views, Map<Option, Long> options) { return new DesignDocument(name, views, options); }
java
public String getSplitNodes() { if (!isMapTask() || jobSetup || jobCleanup) { return ""; } String[] nodes = rawSplit.getLocations(); if (nodes == null || nodes.length == 0) { return ""; } StringBuffer ret = new StringBuffer(nodes[0]); for(int i = 1; i < nodes.length;i++) { ...
python
def getMsg(self): ''' getMsg - Generate a default message based on parameters to FunctionTimedOut exception' @return <str> - Message ''' return 'Function %s (args=%s) (kwargs=%s) timed out after %f seconds.\n' %(self.timedOutFunction.__name__, repr(self.timedOutArgs), re...
python
def write_seqinfo(self, out_fp, include_name=True): """ Write a simple seq_info file, suitable for use in taxtastic. Useful for printing out the results of collapsing tax nodes - super bare bones, just tax_id and seqname. If include_name is True, a column with the taxon name is ...
python
async def create_custom_emoji(self, *, name, image, roles=None, reason=None): r"""|coro| Creates a custom :class:`Emoji` for the guild. There is currently a limit of 50 static and animated emojis respectively per guild, unless the guild has the ``MORE_EMOJI`` feature which extends the ...
java
public static Integer getOpenFileLimit() { try { Rlimit rlimit = new Rlimit(); int retval = getrlimit( System.getProperty("os.name").equals("Linux") ? RLIMIT_NOFILE_LINUX : RLIMIT_NOFILE_MAC_OS_X, rlimit); if (re...
java
public Object nextValue() { char c = lookAhead(); switch (c) { case '"': return nextString(); case '{': return nextObject(); case '[': return nextArray(); } /* * Handle unquoted text. This could...
java
public static boolean isValidPropValue(Object value) { boolean isValid = false; if(value instanceof Boolean || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof String) { isValid = true; } ...
python
def get_linux_config(browser: str) -> dict: """Get the settings for Chrome/Chromium cookies on Linux. Args: browser: Either "Chrome" or "Chromium" Returns: Config dictionary for Chrome/Chromium cookie decryption """ # Verify supported browser, fail early otherwise if browser.lo...
java
public Observable<Page<DatabaseOperationInner>> listByDatabaseNextAsync(final String nextPageLink) { return listByDatabaseNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DatabaseOperationInner>>, Page<DatabaseOperationInner>>() { @Override ...
python
def show_firmware_version_output_show_firmware_version_control_processor_memory(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") show_firmware_version = ET.Element("show_firmware_version") config = show_firmware_version output = ET.SubElement(show...
python
def path(self): """Iterate over all parent nodes and one-self.""" yield self if not self.parent: return for node in self.parent.path: yield node
python
def wandb_pty(resize=True): """Get a PTY set to raw mode and registered to hear about window size changes. """ master_fd, slave_fd = pty.openpty() # raw mode so carriage returns etc. don't get added by the terminal driver, # bash for windows blows up on this so we catch the error and do nothing ...
java
private Map<String, String> filterProps(Map<String, Object> props) { HashMap<String, String> filteredProps = new HashMap<>(); Iterator<String> it = props.keySet().iterator(); boolean debug = tc.isDebugEnabled() && TraceComponent.isAnyTracingEnabled(); while (it.hasNext()) { ...
python
def parse_input(self, **kwargs): """Build peptide table has no input file (though it has a lookup), which is why we set it to outfile name so the infile fetching and outfile creating wont error.""" super().parse_input(**kwargs) self.fn = os.path.join(os.getcwd(), 'built_peptide_t...
python
def get_template_name(self, request): """Returns the name of the template to be used for rendering this tab. By default it returns the value of the ``template_name`` attribute on the ``Tab`` class. """ if not hasattr(self, "template_name"): raise AttributeError("%s m...
java
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/tunnel/2.0", name = "FloorSurface", substitutionHeadNamespace = "http://www.opengis.net/citygml/tunnel/2.0", substitutionHeadName = "_BoundarySurface") public JAXBElement<FloorSurfaceType> createFloorSurface(FloorSurfaceType value) { return new JAX...
java
void removeUnknownMembers() { ClusterServiceImpl clusterService = node.getClusterService(); for (InternalPartitionImpl partition : partitions) { for (int i = 0; i < InternalPartition.MAX_REPLICA_COUNT; i++) { PartitionReplica replica = partition.getReplica(i); ...
java
@Pure public static byte[] parseString(String text) { return Base64.getDecoder().decode(Strings.nullToEmpty(text).trim()); }
python
def valid(self, instance, schema): """Validate schema.""" try: jsonschema.validate(instance, schema) except jsonschema.exceptions.ValidationError as ex: self.stderr.write(" VALIDATION ERROR: {}".format(instance['name'] if 'name' in instance else '')) self.s...
python
def _create_split(pymux, window, split): """ Create a prompt_toolkit `Container` instance for the given pymux split. """ assert isinstance(split, (arrangement.HSplit, arrangement.VSplit)) is_vsplit = isinstance(split, arrangement.VSplit) def get_average_weight(): """ Calculate average w...
java
@Override public void set(String key, String value) { if("dn".equals(key)) { this.dn = value; } else if (value != null && !value.isEmpty() && key != null && !key.isEmpty()) { addAttribute(new BasicAttribute(key, value, true)); } ...
java
public static void setShort(int n, byte[] b, int off, boolean littleEndian) { if (littleEndian) { b[off] = (byte) n; b[off + 1] = (byte) (n >>> 8); } else { b[off] = (byte) (n >>> 8); b[off + 1] = (byte) n; } }
java
public static List<String> extractAttributeEmptyCheck(List<Entry> entries, String attributeType) { List<String> result = new LinkedList<String>(); for (Entry e : entries) { result.add(extractAttributeEmptyCheck(e, attributeType)); } return result; }
python
def split(s, by=None, maxsplit=None): """Split a string based on given delimiter(s). Delimiters can be either strings or compiled regular expression objects. :param s: String to split :param by: A delimiter, or iterable thereof. :param maxsplit: Maximum number of splits to perform. ...
java
@BetaApi public final ForwardingRule getForwardingRule(ProjectRegionForwardingRuleName forwardingRule) { GetForwardingRuleHttpRequest request = GetForwardingRuleHttpRequest.newBuilder() .setForwardingRule(forwardingRule == null ? null : forwardingRule.toString()) .build(); ret...
java
public static Object loadInstance(Class clazz) throws ClassException { try { return clazz.newInstance(); } catch (InstantiationException e) { throw new ClassException("the specified class object [" + clazz.getName() + "()] cannot be instantiated"); } catch (IllegalAccessException e) { throw new Clas...
java
protected static INDArray rebuildUpdaterStateArray(INDArray origUpdaterState, List<UpdaterBlock> orig, List<UpdaterBlock> newUpdater){ if(origUpdaterState == null) return origUpdaterState; //First: check if there has been any change in the updater blocks to warrant rearranging the updater s...
java
static File getTargetFile(final File root, final MiscContentItem item) { return PatchContentLoader.getMiscPath(root, item); }
java
@SuppressWarnings("deprecation") protected boolean isSitemapConfiguration(String rootPath, int type) { if (type == m_configType.getTypeId()) { return rootPath.endsWith(CmsADEManager.CONFIG_SUFFIX); } else { return OpenCms.getResourceManager().matchResourceType(TYPE_SIT...
java
public void referencedElementRemoved(ModelElementInstance referenceTargetElement, Object referenceIdentifier) { for (ModelElementInstance referenceSourceElement : findReferenceSourceElements(referenceTargetElement)) { if (referenceIdentifier.equals(getReferenceIdentifier(referenceSourceElement))) { re...
java
@Override public void setAuthType( final String authType ) { if ( !equals( authType, this.authType ) ) { _authenticationChanged = true; } super.setAuthType( authType ); }
java
@Override public DeleteProjectResult deleteProject(DeleteProjectRequest request) { request = beforeClientExecution(request); return executeDeleteProject(request); }
python
def resolveExpression(self, retina_name, body, sparsity=1.0): """Resolve an expression Args: retina_name, str: The retina name (required) body, ExpressionOperation: The JSON formatted encoded to be evaluated (required) sparsity, float: Sparsify the resulting expressio...