language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public <T> T cast(Object obj, Class<T> clz) { if (!clz.isAssignableFrom(obj.getClass())) { return null; } return clz.cast(obj); }
python
def intersect_exposure_and_aggregate_hazard(self): """This function intersects the exposure with the aggregate hazard. If the the exposure is a continuous raster exposure, this function will set the aggregate hazard layer. However, this function will set the impact layer. ""...
python
def _parse (self): """Parse the BDF mime structure and record the locations of the binary blobs. Sets up various data fields in the BDFData object.""" feedparser = FeedParser (Message) binarychunks = {} sizeinfo = None headxml = None self.fp.seek (0, 0) ...
java
public void setViews(Collection<View> views) throws IOException { BulkChange bc = new BulkChange(this); try { this.views.clear(); for (View v : views) { addView(v); } } finally { bc.commit(); } }
python
def as_proximal_lang_operator(op, norm_bound=None): """Wrap ``op`` as a ``proximal.BlackBox``. This is intended to be used with the `ProxImaL language solvers. <https://github.com/comp-imaging/proximal>`_ For documentation on the proximal language (ProxImaL) see [Hei+2016]. Parameters -------...
java
public void setOptimizationOptions(Map<String, Boolean> options) { if (options == null) throw new IllegalArgumentException("provided option map must not be null"); optimizationOptions = options; }
python
def get_key(keyfile=None): """ Read the key content from secret_file """ keyfile = keyfile or application_path(settings.SECRETKEY.SECRET_FILE) with file(keyfile, 'rb') as f: return f.read()
python
def on_right_click(self, widget): """ Here with right click the change of cell is changed """ if self.opened: return self.state = (self.state + 1) % 3 self.set_icon() self.game.check_if_win()
java
@SuppressWarnings("unchecked") @Override protected void initParser() throws MtasConfigException { super.initParser(); if (config != null) { // always word, no mappings wordType = new MtasParserType<>(MAPPING_TYPE_WORD, null, false); for (int i = 0; i < config.children.size(); i++) { ...
python
def expand (self, user=False, vars=False, glob=False, resolve=False): """Return a new :class:`Path` with various expansions performed. All expansions are disabled by default but can be enabled by passing in true values in the keyword arguments. user : bool (default False) Expand ``~`` and ``~user`` home-...
python
def path_to_tuple(path, windows=False): """ Split `chan_path` into individual parts and form a tuple (used as key). """ if windows: path_tup = tuple(path.split('\\')) else: path_tup = tuple(path.split('/')) # # Normalize UTF-8 encoding to consistent form so cache lookups will...
java
private String getWord(String[] nodeFeatures) { String word = nodeFeatures[formIndex]; // Filter if neccessary. if (filter != null && !filter.accept(word)) return IteratorFactory.EMPTY_TOKEN; return word; }
java
public void setDbWorkUser(String dbWorkUser) { setExtProperty(CmsDbPoolV11.KEY_DATABASE_POOL + '.' + getPool() + '.' + CmsDbPoolV11.KEY_POOL_USER, dbWorkUser); }
python
def deliver(self, project, new_project_name, to_user, share_users, force_send, path_filter, user_message): """ Remove access to project_name for to_user, copy to new_project_name if not None, send message to service to email user so they can have access. :param project: RemoteProject pre...
java
@Override public int getCacheSize() { CacheConfig commonCacheConfig = ServerCache.getCacheService().getCacheConfig(); if (commonCacheConfig != null) { return commonCacheConfig.cacheSize; } return 0; }
python
def POST(self): # pylint: disable=arguments-differ """ Display main course list page """ if not self.app.welcome_page: raise web.seeother("/courselist") return self.show_page(self.app.welcome_page)
java
public static User decode(int contextId, String encodedString) { // Added proxy call to help in testing return decode(contextId, encodedString, User.getAuthenticationExtension()); }
python
def is_valid_channel(self, channel, conda_url='https://conda.anaconda.org', non_blocking=True): """Check if a conda channel is valid.""" logger.debug(str((channel, conda_url))) if non_blocking: method = self._...
java
private OnItemLongClickListener createItemLongClickListener() { return new OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { Pair<Integer, Integer> it...
java
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.adwords.axis.v201809.cm.AdGroupExtensionSettingServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.adwords.axis.v201...
java
public java.util.List<AttachmentDetails> getAttachmentSet() { if (attachmentSet == null) { attachmentSet = new com.amazonaws.internal.SdkInternalList<AttachmentDetails>(); } return attachmentSet; }
java
private static ConfigurationModule addAll(final ConfigurationModule conf, final OptionalParameter<String> param, final File folder) { ConfigurationModule result = conf; final File[] files = folder.listFiles(); if (files ...
java
public static List<CommonSynonymDictionary.SynonymItem> convert(List<Term> sentence, boolean withUndefinedItem) { List<CommonSynonymDictionary.SynonymItem> synonymItemList = new ArrayList<CommonSynonymDictionary.SynonymItem>(sentence.size()); for (Term term : sentence) { CommonSy...
python
def rss_parse(self, response): """ Extracts all article links and initiates crawling them. :param obj response: The scrapy response """ # get last_update zip url match = re.match(re_export, response.text) if match: last_update_zip_url = match.group(1)...
java
private MonitorInformation getMonitorInformation(L location) { final K monitorKey = getLocationKey(location); MonitorInformation monitorInformation = monitorInformations.get(monitorKey); if (monitorInformation == null) { // Not found, let's call delegate if (delegate.isMonitored(location)) { monitorInfo...
python
def ExportInstance(r, instance, mode, destination, shutdown=None, remove_instance=None, x509_key_name=None, destination_x509_ca=None): """ Exports an instance. @type instance: string @param instance: Instance name @type mode: string @param mode: Export mode...
java
private void resolveTypesUsingImports(Expression expression) { if (expression instanceof NodeWithType) { NodeWithType<?, ?> nodeWithType = ((NodeWithType<?, ?>) expression); nodeWithType.setType(getQualifiedName(nodeWithType.getType())); } // Recurse downward in the expression expression ...
python
def is_public(self): """Return True iff this function should be considered public.""" if self.dunder_all is not None: return self.name in self.dunder_all else: return not self.name.startswith('_')
python
def get(identifier, namespace='cid', domain='compound', operation=None, output='JSON', searchtype=None, **kwargs): """Request wrapper that automatically handles async requests.""" if (searchtype and searchtype != 'xref') or namespace in ['formula']: response = request(identifier, namespace, domain, None...
python
def run_setup(setup_script, args): """Run a distutils setup script, sandboxed in its directory""" setup_dir = os.path.abspath(os.path.dirname(setup_script)) with setup_context(setup_dir): try: sys.argv[:] = [setup_script] + list(args) sys.path.insert(0, setup_dir) ...
java
private VisibilityModifier getVisibility(int flags) { if (hasFlag(flags, Opcodes.ACC_PRIVATE)) { return VisibilityModifier.PRIVATE; } else if (hasFlag(flags, Opcodes.ACC_PROTECTED)) { return VisibilityModifier.PROTECTED; } else if (hasFlag(flags, Opcodes.ACC_PUBLIC)) { ...
python
def pre_release(version): """Generates new docs, release announcements and creates a local tag.""" create_branch(version) changelog(version, write_out=True) check_call(["git", "commit", "-a", "-m", f"Preparing release {version}"]) print() print(f"{Fore.GREEN}Please push your branch to your for...
java
@Override public Iterable<JavaFileObject> list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException { Iterable<JavaFileObject> stdList = stdFileManager.list(location, packageName, kinds, rec...
python
def extend_array(edges, binsz, lo, hi): """Extend an array to encompass lo and hi values.""" numlo = int(np.ceil((edges[0] - lo) / binsz)) numhi = int(np.ceil((hi - edges[-1]) / binsz)) edges = copy.deepcopy(edges) if numlo > 0: edges_lo = np.linspace(edges[0] - numlo * binsz, edges[0], nu...
python
def new_(self, df=pd.DataFrame(), db=None, quiet=False, nbload_libs=True): """ Returns a new DataSwim instance from a dataframe """ ds2 = Ds(df, db, nbload_libs) if quiet is False: self.ok("A new instance was created") return ds2
java
@Override public int read() throws IOException { if (ostart >= ofinish) { int temp; for (temp = 0; temp == 0; temp = getMoreData()) ; if (temp == -1) { return -1; } } return obuffer[ostart++] & 255; }
java
@Override public void setIsolationLevel(IsolationLevel level) throws IllegalStateException { if(level != IsolationLevels.SNAPSHOT){ throw new IllegalStateException("Only IsolationLevels.SNAPSHOT level supported."); }else{ super.setIsolationLevel(level); } }
python
def validate(self, auth_rest): """Validate user credentials whether format is right for Sha1 :param auth_rest: User credentials' part without auth_type :return: Dict with a hash and a salt part of user credentials :raises ValueError: If credentials' part doesn't contain delimiter ...
java
public CMAPreviewApiKey fetchOne(String spaceId, String keyId) { assertNotNull(spaceId, "entry"); assertNotNull(keyId, "keyId"); return service.fetchOne(spaceId, keyId).blockingFirst(); }
python
def get_cli_parser(func, skip_first=0, parser=None): """makes a parser for parsing cli arguments for `func`. :param callable func: the function the parser will parse :param int skip_first: skip this many first arguments of the func :param ArgumentParser parser: bind func to this parser. """ hel...
python
def rc_channels_raw_send(self, time_boot_ms, port, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, rssi, force_mavlink1=False): ''' The RAW values of the RC channels received. The standard PPM modulation is as follows: 1000 microsec...
java
@Override public void setAction(final Runnable action) { super.setAction(new Runnable() { @Override public void run() { if (!isRunning) { thread = new Thread(wrappedAction(action), "wunderboss-daemon-thread[" + name + "]"); thre...
python
def convert_ulog2csv(ulog_file_name, messages, output, delimiter): """ Coverts and ULog file to a CSV file. :param ulog_file_name: The ULog filename to open and read :param messages: A list of message names :param output: Output file path :param delimiter: CSV delimiter :return: None "...
java
public PagedList<SiteInner> beginChangeVnet(final String resourceGroupName, final String name, final VirtualNetworkProfile vnetInfo) { ServiceResponse<Page<SiteInner>> response = beginChangeVnetSinglePageAsync(resourceGroupName, name, vnetInfo).toBlocking().single(); return new PagedList<SiteInner>(resp...
java
public static void addEnvContextParam(Document doc, Element root) { Element ctxParam = doc.createElement("context-param"); Element paramName = doc.createElement("param-name"); paramName.appendChild(doc.createTextNode("shiroEnvironmentClass")); ctxParam.appendChild(paramName); Element paramValue = do...
java
public com.google.api.ads.adwords.axis.v201809.cm.CampaignLabel getCampaignLabel() { return campaignLabel; }
python
def accuracy(Ntp, Ntn, Nfp, Nfn, eps=numpy.spacing(1)): """Accuracy Parameters ---------- Ntp : int >= 0 Number of true positives. Ntn : int >= 0 Number of true negatives. Nfp : int >= 0 Number of false positives. Nfn : int >= 0 Number of false negatives. ...
python
def start_element (self, tag, attrs): """Search for links and store found URLs in a list.""" log.debug(LOG_CHECK, "LinkFinder tag %s attrs %s", tag, attrs) log.debug(LOG_CHECK, "line %d col %d old line %d old col %d", self.parser.lineno(), self.parser.column(), self.parser.last_lineno(), self.pa...
java
public final void invalidateKey(Data key, String dataStructureName, String sourceUuid) { checkNotNull(key, "key cannot be null"); checkNotNull(sourceUuid, "sourceUuid cannot be null"); Invalidation invalidation = newKeyInvalidation(key, dataStructureName, sourceUuid); invalidateInternal...
python
def show_new_activity(last_seen=None, cap=1000, template='grouped', include=None, exclude=None): """ Inclusion tag to show new activity, either since user was last seen or today (if not last_seen). Note that passing in last_seen is up to you. Usage: {% show_new_activity %} Or, to show since la...
python
def get_iface_mode(iface): """Return the interface mode. params: - iface: the iwconfig interface """ p = subprocess.Popen(["iwconfig", iface], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output, err = p.communicate() match = re.search(br"mode:([a-zA-Z]*)", out...
python
def _execute(self, app_, file_): """Run app with file as input. :param app_: application to run. :param file_: file to run app with. :return: success True, else False :rtype: bool """ app_name = os.path.basename(app_) args = [app_] args.extend(sel...
python
def check_basic_auth(self, username, password): """ This function is called to check if a username / password combination is valid via the htpasswd file. """ valid = self.users.check_password( username, password ) if not valid: log.warning(...
java
protected void store(SecurityEvent auditEvent) throws Exception { if (myDataStore == null) throw new InternalErrorException("No data store provided to persist audit events"); myDataStore.store(auditEvent); }
java
public void marshall(RecoveryPointByResource recoveryPointByResource, ProtocolMarshaller protocolMarshaller) { if (recoveryPointByResource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(recoveryPo...
java
@Override public String getOptStringProperty(final String name) throws OptionsException { Object val = getOptProperty(name); if (val == null) { return null; } if (!(val instanceof String)) { throw new OptionsException("org.bedework.calenv.bad.option.value"); } return (String)val...
java
@NotNull protected final JpaStream findStream(@NotNull final StreamId streamId) { Contract.requireArgNotNull("streamId", streamId); verifyStreamEntityExists(streamId); final String sql = createJpqlStreamSelect(streamId); final TypedQuery<JpaStream> query = getEm().createQuer...
java
@ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class }) public static <T> void noNullElements(final boolean condition, @Nonnull final T[] array) { if (condition) { Check.noNullElements(array); } }
python
def _smooth_fragment_list(self, real_wave_mfcc_audio_length, ns_string): """ Remove NONSPEECH fragments from list if needed, and set HEAD/TAIL begin/end. """ self.log(u"Called _smooth_fragment_list") self.smflist[0].begin = TimeValue("0.000") self.smflist[-1].end ...
java
public static String disentangleBiMap(final BiMap<Character, Character> rules, final String obfuscated) { return obfuscateBiMap(rules.inverse(), obfuscated); }
python
def from_epw_file(cls, epwfile, timestep=1): """Create a wea object using the solar irradiance values in an epw file. Args: epwfile: Full path to epw weather file. timestep: An optional integer to set the number of time steps per hour. Default is 1 for one value ...
python
def search_files_sql_builder(search): """ Create and populate an instance of :class:`meteorpi_db.SQLBuilder` for a given :class:`meteorpi_model.FileRecordSearch`. This can then be used to retrieve the results of the search, materialise them into :class:`meteorpi_model.FileRecord` instances etc. :pa...
python
def Ncomp_SVHT_MG_DLD_approx(X, zscore=True): """ This function implements the approximate calculation of the optimal hard threshold for singular values, by Matan Gavish and David L. Donoho: "The optimal hard threshold for singular values is 4 / sqrt(3)" http://ieeexplore.ieee.org/st...
java
@Override public Element useMarker(SVGPlot plot, Element parent, double x, double y, int stylenr, double size) { Element marker = plot.svgCircle(x, y, size * .5); final String col; if(stylenr == -1) { col = dotcolor; } else if(stylenr == -2) { col = greycolor; } else { co...
java
public String cql() { if (sb == null) { throw new AbacusException("This CQLBuilder has been closed after cql() was called previously"); } init(true); String cql = null; try { cql = sb.toString(); } finally { Objectory.rec...
python
def is_uid(uid, validate=False): """Checks if the passed in uid is a valid UID :param uid: The uid to check :param validate: If False, checks if uid is a valid 23 alphanumeric uid. If True, also verifies if a brain exists for the uid passed in :type uid: string :return: True if a valid uid ...
python
def is_causal_sink(graph: BELGraph, node: BaseEntity) -> bool: """Return true if the node is a causal sink. - Does have causal in edge(s) - Doesn't have any causal out edge(s) """ return has_causal_in_edges(graph, node) and not has_causal_out_edges(graph, node)
java
public synchronized EvernoteBusinessNotebookHelper getBusinessNotebookHelper() throws TException, EDAMUserException, EDAMSystemException { if (mBusinessNotebookHelper == null || isBusinessAuthExpired()) { mBusinessNotebookHelper = createBusinessNotebookHelper(); } return mBusinessNot...
python
def connect_sdb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): """ :type aws_access_key_id: string :param aws_access_key_id: Your AWS Access Key ID :type aws_secret_access_key: string :param aws_secret_access_key: Your AWS Secret Access Key :rtype: :class:`boto.sdb.connection.S...
java
public static Couple<String, String> parse(String pathstub) { String path = pathstub, type = null; int dot = pathstub.lastIndexOf('.') + 1; int slash = pathstub.lastIndexOf('/'); if (dot > 0 && dot > slash) { path = pathstub.substring(0, dot - 1); type = pathstub....
python
def edit_tc_pool(self, zone_name, owner_name, ttl, pool_info, rdata_info, backup_record): """Updates an existing TC Pool in the specified zone. :param zone_name: The zone that contains the RRSet. The trailing dot is optional. :param owner_name: The owner name for the RRSet. ...
java
static <T> T convertToCustomClass(Object object, Class<T> clazz) { return deserializeToClass(object, clazz, ErrorPath.EMPTY); }
python
def copy_to(source, dest, engine_or_conn, **flags): """Export a query or select to a file. For flags, see the PostgreSQL documentation at http://www.postgresql.org/docs/9.5/static/sql-copy.html. Examples: :: select = MyTable.select() with open('/path/to/file.tsv', 'w') as fp: co...
java
public OperationFuture<List<Server>> powerOff(Group... groups) { return serverService().powerOff( getServerSearchCriteria(groups) ); }
python
def get_profiles(self, overwrite=False): """Get all the minimum needs profiles. :returns: The minimum needs by name. :rtype: list """ def sort_by_locale(unsorted_profiles, locale): """Sort the profiles by language settings. The profiles that are in the s...
java
private ConfigurationRequest getConfigurationRequest(Map<String, String> userNames) { ConfigurationRequest configurationRequest = new ConfigurationRequest(); configurationRequest.addField(new TextField("sender", "Sender", "graylog@example.org", "The sender...
java
public long getLength(String path) { try { ZipEntry entry = getZipEntry(path); long length = entry != null ? entry.getSize() : -1; return length; } catch (IOException e) { log.log(Level.FINE, e.toString(), e); return -1; } }
java
public void execute( Example example ) { try { List<Fixture> fixtures = getFixtureList(); Example headers = example.at( 0, 0 ); if (columns == null) { columns = getHeaderColumns(headers); } if (example.hasSibling()) { ...
python
def setComponents(self, components): """Clears and sets the components contained in this widget :param components: list of documentation for subclasses of AbStractStimulusComponents :type Components: list<dict> """ layout = self.layout() for comp in components: ...
java
@Nonnull public static FileIOError createDir (@Nonnull final File aDir) { ValueEnforcer.notNull (aDir, "Directory"); // Does the directory already exist? if (aDir.exists ()) return EFileIOErrorCode.TARGET_ALREADY_EXISTS.getAsIOError (EFileIOOperation.CREATE_DIR, aDir); // Is the parent direc...
python
def user(self, extra_params=None): """ The User currently assigned to the Ticket """ if self.get('assigned_to_id', None): users = self.space.users( id=self['assigned_to_id'], extra_params=extra_params ) if users: ...
java
@Override public final void visitClass(@Nullable JavaTypeElement oldType, @Nullable JavaTypeElement newType) { depth++; doVisitClass(oldType, newType); }
java
public static int getColorAttr(Context ctx, @AttrRes int colorAttrId){ int[] attrs = new int[] { colorAttrId /* index 0 */}; TypedArray ta = ctx.obtainStyledAttributes(attrs); int colorFromTheme = ta.getColor(0, 0); ta.recycle(); return colorFromTheme; }
python
def make_saml_response(binding, http_args): """ Creates a SAML response. :param binding: SAML response binding :param http_args: http arguments :return: response.Response """ if binding == BINDING_HTTP_REDIRECT: headers = dict(http_args["headers"]) return SeeOther(str(headers...
python
def init_log_rate(output_f, N=None, message='', print_rate=None): """Initialze the log_rate function. Returnas a partial function to call for each event. If N is not specified but print_rate is specified, the initial N is set to 100, and after the first message, the N value is adjusted to emit prin...
java
public void closeElement() throws XMLException, IOException { if (!Type.START_ELEMENT.equals(event.type)) throw new IOException("Invalid call of closeElement: it must be called on a start element"); if (event.isClosed) return; ElementContext ctx = event.context.getFirst(); do { try { next(); } c...
java
public static RelationGraph from(@NonNull Collection<RelationEdge> edges) { RelationGraph gPrime = new RelationGraph(); edges.forEach(e -> { if (!gPrime.containsVertex(e.getFirstVertex())) { gPrime.addVertex(e.getFirstVertex()); } if (!gPrime.containsVertex(e.getSecond...
java
public PlanetFactorySchematicResponse getUniverseSchematicsSchematicId(Integer schematicId, String datasource, String ifNoneMatch) throws ApiException { ApiResponse<PlanetFactorySchematicResponse> resp = getUniverseSchematicsSchematicIdWithHttpInfo(schematicId, datasource, ifNoneMatc...
java
private int drainToSize(int minPooled, int maxDiscard) { // Stop draining if we have reached the maximum drain amount. // This slows the drain process, allowing for the pool to become // active before becoming fully drained (to minimum level). int numDiscarded = 0; Object o =...
java
@Override public void showLoading() { final FragmentIf fragmentIf = getFragmentIf(); fragmentIf.executeOnUIThread(new Runnable() { @Override public void run() { if (loading != null) { loading.show(fragmentIf); } } }); }
java
@Override public void onAdd(Response response) { notifyWebSocket("response", response); logger.info("Reporter observed response for user [" + response.getUser().getUsername() + "]"); }
java
public int compareSwappedTo(IntDoublePair other) { int fdiff = Double.compare(this.second, other.second); if(fdiff != 0) { return fdiff; } return this.first - other.first; }
java
public Observable<DetectorResponseInner> getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName) { return getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName).map(new Func1<ServiceResponse<DetectorResponseInner>, Dete...
python
def submit(self, job): """ Submits a given job :param job: The job to submit :type job: pyqueue.job.JobInterface """ script = self._printer.generate(job) stdin, stdout, stderr = self._ssh.exec_command('sbatch') stdin.write(script) stdin.flush() ...
java
public String showRPN() throws Exception { final StringBuilder sb = new StringBuilder(); showRPN(sb); return sb.toString(); }
java
public void setMaxBoxWd(Integer newMaxBoxWd) { Integer oldMaxBoxWd = maxBoxWd; maxBoxWd = newMaxBoxWd; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNC__MAX_BOX_WD, oldMaxBoxWd, maxBoxWd)); }
python
def _children(self): """Yield all direct children of this object.""" if isinstance(self.condition, CodeExpression): yield self.condition for codeobj in self.body._children(): yield codeobj for codeobj in self.else_body._children(): yield codeobj
java
public Client<? extends Options, ? extends OptionsBuilder, ? extends RequestBuilder> newClient() { if (clientClassName == null) { return new DefaultClient(); } else { try { return (Client) Thread.currentThread().getContextClassLoader().loadClass(clientClassName).n...
python
def get_column_type(column, column_values): """ Returns the type of the given column based on its row values on the given RunSetResult. @param column: the column to return the correct ColumnType for @param column_values: the column values to consider @return: a tuple of a type object describing the ...
java
public static StringBuilder replaceResources(StringBuilder sb, ResourceBundle reg, Map<String, Object> map, PropertyOwner propertyOwner) { return Utility.replaceResources(sb, reg, map, propertyOwner, false); }