language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
protected WorkManager parseWorkManager(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException { WorkManagerSecurity security = null; while (reader.hasNext()) { switch (reader.nextTag()) { case END_ELEMENT : { if (Com...
python
def _reduced_call(self, **params_to_override): """ Simplified version of PatternGenerator's __call__ method. """ p=param.ParamOverrides(self,params_to_override) fn_result = self.function(p) self._apply_mask(p,fn_result) result = p.scale*fn_result+p.offset ...
python
def delete_url_link(obj, **kwargs): """This method assumes that the "get_delete_url_link" method has been implemented on the obj. """ if hasattr(obj, 'get_delete_url_link'): return obj.get_delete_url_link(**kwargs) delete_url = obj.get_delete_url() return build_link(href=delete_url, **k...
java
public void internalClose() throws ThriftConnectionPoolException { try { if (this.thriftConnection != null) { this.thriftConnection.close(); } logicallyClosed.set(true); } catch (IOException e) { throw new ThriftConnectionPoolException(e); } }
python
def upload(s3_conn, filepath, s3_path): """Uploads the given file to s3 Args: s3_conn: (boto.s3.connection) an s3 connection filepath (str) the local filename s3_path (str) the destination path on s3 """ bucket_name, prefix = split_s3_path(s3_path) bucket = s3_conn.get_bucke...
java
public void addTemplateResolver(final ITemplateResolver templateResolver) { Validate.notNull(templateResolver, "Template Resolver cannot be null"); checkNotInitialized(); this.templateResolvers.add(templateResolver); }
java
public static boolean checkPermission(Member member, Permission... permissions) { Checks.notNull(member, "Member"); Checks.notNull(permissions, "Permissions"); long effectivePerms = getEffectivePermission(member); return isApplied(effectivePerms, Permission.ADMINISTRATOR.getRawValue...
java
public static String merge(String templateContent, VelocityContext context) { final StringWriter writer = new StringWriter(); try { Velocity.evaluate(context, writer, IdUtil.randomUUID(), templateContent); } catch (Exception e) { throw new UtilException(e); } return writer.toString(); }
python
def rescue(env, identifier): """Reboot into a rescue image.""" vsi = SoftLayer.VSManager(env.client) vs_id = helpers.resolve_id(vsi.resolve_ids, identifier, 'VS') if not (env.skip_confirmations or formatting.confirm("This action will reboot this VSI. Continue?")): raise exceptions.C...
python
def _draw_text(self, coords, text, foreground, font): """Draw the text and shorten it if required""" if text is None: return None x1_r, _, x2_r, _ = coords while True: text_id = self._timeline.create_text( (0, 0), text=text, fill=fo...
python
def run(command, input=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=None, copy_local_env=False, **kwargs): """ Cross platform compatible subprocess with CompletedProcess return. No formatting or encoding is performed on the output of subprocess, so it's output will appear the s...
python
def setup(self, app): """Setup the plugin's commands.""" super(Plugin, self).setup(app) if isinstance(self.cfg['locales_dirs'], str): self.cfg['locales_dirs'] = [self.cfg['locales_dirs']] @app.manage.command(init=False) def extract_messages( # noqa ...
java
@Override public java.util.concurrent.Future<DeleteMessageResult> deleteMessageAsync(String queueUrl, String receiptHandle) { return deleteMessageAsync(new DeleteMessageRequest().withQueueUrl(queueUrl).withReceiptHandle(receiptHandle)); }
java
public TreeRange get(Token t) { return getHelper(root, fullRange.left, fullRange.right, (byte)0, t); }
java
@BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture<AsyncBatchAnnotateImagesResponse, OperationMetadata> asyncBatchAnnotateImagesAsync( List<AnnotateImageRequest> requests, OutputConfig outputConfig) { AsyncBatchA...
java
public static double elementMin( DMatrix5 a ) { double min = a.a1; if( a.a2 < min ) min = a.a2; if( a.a3 < min ) min = a.a3; if( a.a4 < min ) min = a.a4; if( a.a5 < min ) min = a.a5; return min; }
java
@Override public boolean isValid(Object input) { long epochMillisec; try { epochMillisec = Long.parseLong(input.toString()); } catch (NumberFormatException e) { return false; } if (minValidTime != null && epochMillisec < minValidTime) retu...
python
def simplify(self): """Simplify the Term.""" def mul(op1, op2): if op1 == "I": return 1.0, op2 if op2 == "I": return 1.0, op1 if op1 == op2: return 1.0, "I" if op1 == "X": return (-1j, "Z") if...
java
Collection<MappingImpl> build(PropertyMap<S, D> propertyMap) { try { PROPERTY_MAP_CONFIGURE.invoke(propertyMap, this); saveLastMapping(); } catch (IllegalAccessException e) { errors.errorAccessingConfigure(e); } catch (InvocationTargetException e) { Throwable cause = e.getCaus...
java
public void analyze(AnalyzeContext context) { boolean bufferLockFlag = false; //处理英文字母 bufferLockFlag = this.processEnglishLetter(context) || bufferLockFlag; //处理阿拉伯字母 bufferLockFlag = this.processArabicLetter(context) || bufferLockFlag; //处理混合字母 bufferLockFlag = this.processMixLetter(context) || b...
python
def graph_to_svg(graph): """ Turn a networkx graph into an SVG string, using graphviz dot. Parameters ---------- graph: networkx graph Returns --------- svg: string, pictoral layout in SVG format """ import tempfile import subprocess with tempfile.NamedTemporaryFile() ...
python
def remote_bifurcation_angles(neurites, neurite_type=NeuriteType.all): '''Get a list of remote bifurcation angles in a collection of neurites''' return map_sections(_bifurcationfunc.remote_bifurcation_angle, neurites, neurite_type=neurite_type, ...
java
private void evaluateExpressions() throws JspException { Object obj = null; /* * Note: we don't check for type mismatches here; we assume * the expression evaluator will return the expected type * (by virtue of knowledge we give it about what that type is). * A Clas...
python
def create(self, neighbors): """ Method to create neighbors :param neighbors: List containing neighbors desired to be created on database :return: None """ data = {'neighbors': neighbors} return super(ApiV4Neighbor, self).post('api/v4/neighbor/', data)
python
def proxy_manager_for(self, proxy, **proxy_kwargs): """Return urllib3 ProxyManager for the given proxy. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param proxy: The prox...
java
public static boolean isValidIfNumber(Object obj) { if (obj != null && obj instanceof Number) { if (obj instanceof Double) { if (((Double) obj).isInfinite() || ((Double) obj).isNaN()) { return false; } } else if (obj instanceof Float) { if (((Float) obj).isInfinite() || ((Float) obj).isN...
python
def vmdk_to_ami(args): """ Calls methods to perform vmdk import :param args: :return: """ aws_importer = AWSUtilities.AWSUtils(args.directory, args.aws_profile, args.s3_bucket, args.aws_regions, args.ami_name, args.vmdk_upload_file) aws_importer.impor...
java
private void doPI(Node received) { if (log.isDebugEnabled()) { log.debug("Ignored processing instruction (" + received.getLocalName() + "=" + received.getNodeValue() + ")"); } }
java
public void setCOLSPCE(Integer newCOLSPCE) { Integer oldCOLSPCE = colspce; colspce = newCOLSPCE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GSPCOL__COLSPCE, oldCOLSPCE, colspce)); }
python
def create_disposable_app(clientInfo, config={}): """ Use an existing disposable app if data exists or create a new one and persist the data. """ file = _get_disposable_app_filename(clientInfo) existing = _get_existing_disposable_app(file, clientInfo, config) if existing: if _check_a...
java
@Override public GetThingShadowResult getThingShadow(GetThingShadowRequest request) { request = beforeClientExecution(request); return executeGetThingShadow(request); }
java
public void startReporting() { this.reportingStarted = true; for (ContextAwareReporter reporter : this.reporters) { try { reporter.start(); } catch (Throwable throwable) { log.error(String.format("Failed to start reporter with class %s", reporter.getClass().getCanonicalName()), ...
java
@Override public ScopDomain getDomainByScopID(String scopId) { try { ensureClaInstalled(); } catch (IOException e) { throw new ScopIOException(e); } if ( scopId.length() < 6) { throw new ScopIOException("Does not look like a scop ID! " + scopId); } String pdbId = scopId.substring(1,5); List<Sc...
python
async def main(): """ Main class.""" opts, args = option_parser() url = args[0] if opts.links: getlinks(url) raise SystemExit(0) depth = opts.depth sTime = time.time() webcrawler = Webcrawler(url, depth) webcrawler.crawl() eTime = time.time() tTime = eTime - sT...
java
private static void createTermvectorSecondRound( List<ComponentTermVector> termVectorList, Map<Integer, Integer> positionsData, List<Integer> docSet, Terms t, LeafReader r, LeafReaderContext lrc, Status status) throws IOException { if (t != null) { BytesRef term; TermsEnum termsEnum; ...
python
def dispatch_request(self, view, view_args): """ View dispatcher that calls before_request, the view, and then after_request. Subclasses may override this to provide a custom flow. :class:`ModelView` does this to insert a model loading phase. :param view: View method wrapped in ...
python
def _TypecheckDecorator(subject=None, **kwargs): """Dispatches type checks based on what the subject is. Functions or methods are annotated directly. If this method is called with keyword arguments only, return a decorator. """ if subject is None: return _TypecheckDecoratorFactory(kwargs) elif inspect....
java
protected final String createCacheControlHeader(final CacheControl cacheControl) { final StringBuilder builder = new StringBuilder(); if (cacheControl == null) { return null; } final CachePolicy[] policies = cacheControl.policy(); if (cacheControl.maxAge() >= 0) { builder.append("max-age=").append(c...
python
def derivative(self, t, n=1): """returns the nth derivative of the segment at t. Note: Bezier curves can have points where their derivative vanishes. If you are interested in the tangent direction, use the unit_tangent() method instead.""" p = self.bpoints() if n == 1: ...
java
public void setFunctions(java.util.Collection<FunctionConfiguration> functions) { if (functions == null) { this.functions = null; return; } this.functions = new com.amazonaws.internal.SdkInternalList<FunctionConfiguration>(functions); }
java
public static Record jsonToRecord(String json){ Map<String,Object> map = jsonToMap(json); return new Record().setColumns(map); }
java
private void garbageCollectCompletedTasks() { for (Iterator<TaskAttemptID> iter = tasks.keySet().iterator(); iter.hasNext();) { TaskAttemptID taskId = iter.next(); SimulatorTaskInProgress tip = tasks.get(taskId); if (tip.getTaskStatus().getRunState() != State.RUNNING) { iter.remov...
java
public static BeanMap create(Class srcClass) { BeanMappingObject describeConfig = BeanMappingConfigHelper.getInstance().getBeanMapObject(srcClass, Map.class, true); BeanMappingObject populateConfig = BeanM...
python
def extractFont(self, xref=0, info_only=0): """extractFont(self, xref=0, info_only=0) -> PyObject *""" if self.isClosed or self.isEncrypted: raise ValueError("operation illegal for closed / encrypted doc") return _fitz.Document_extractFont(self, xref, info_only)
java
public static void addData(final Crosstab<Number> mainCrosstab, final Crosstab<Number> partialCrosstab, final CrosstabDimension columnDimension, final CrosstabDimension measureDimension) { if (partialCrosstab != null) { final CrosstabNavigator<Number> mainNavigator = new CrosstabNavigat...
java
public void onGeometryEditStart(GeometryEditStartEvent event) { // Also look at the map for changes in the MapView: mapViewRegistration = mapWidget.getMapModel().getMapView().addMapViewChangedHandler(this); // Render the geometry on the map: groups.clear(); draw(event.getGeometry()); }
python
def refine_knotvector(obj, param, **kwargs): """ Refines the knot vector(s) of a spline geometry. The following code snippet illustrates the usage of this function: .. code-block:: python # Refines the knot vector of a curve operations.refine_knotvector(curve, [1]) # Refines the ...
java
public CommandLine setInterpolateVariables(boolean interpolate) { getCommandSpec().interpolateVariables(interpolate); for (CommandLine command : getCommandSpec().subcommands().values()) { command.setInterpolateVariables(interpolate); } return this; }
python
def withconfig(self, keysuffix): """ Load configurations with this decorator """ def decorator(cls): return self.loadconfig(keysuffix, cls) return decorator
python
def build(self, construct): """Build a single construct in CLIPS. The Python equivalent of the CLIPS build command. """ if lib.EnvBuild(self._env, construct.encode()) != 1: raise CLIPSError(self._env)
python
def remove_example(self, data, cloud=None, batch=False, api_key=None, version=None, **kwargs): """ This is an API made to remove a single instance of training data. This is useful in cases where a single instance of content has been modified, but the remaining examples remain valid. For ...
python
def update_layers_warper(service): """ Update layers for a Warper service. Sample endpoint: http://warp.worldmap.harvard.edu/maps """ params = {'field': 'title', 'query': '', 'show_warped': '1', 'format': 'json'} headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} re...
java
protected void unmark(final int level) { assert level <= this.seen.size(); while (level < this.seen.size()) { final int lit = this.seen.back(); this.seen.pop(); final CLVar v = var(lit); assert v.mark() == sign(lit); v.setMark(0); } ...
python
def find_biclique_embedding(a, b, m, n=None, t=None, target_edges=None): """Find an embedding for a biclique in a Chimera graph. Given a target :term:`Chimera` graph size, and a biclique (a bipartite graph where every vertex in a set in connected to all vertices in the other set), attempts to find an embed...
python
def get_active_lineage(): """ Query the lineage of the current timer level. Provides only timer names, not stamp names (as these have not been decided yet!). Returns: str: Formatted sequence of timer names in one string. """ lin_str = '' for active_timer in f.timer_stack: l...
python
def translate(obj, desired_locale=None): """Gets the translated unicode representation of the given object. If the object is not translatable it is returned as-is. If the locale is None the object is translated to the system locale. :param obj: the object to translate :param desired_locale: the lo...
python
def ls(ctx, name, list_formatted): """List AutoScaling groups""" session = create_session(ctx.obj['AWS_PROFILE_NAME']) client = session.client('autoscaling') if name == "*": groups = client.describe_auto_scaling_groups() else: groups = client.describe_auto_scaling_groups( ...
python
def rename(name, new_name): ''' Change the username for a named user CLI Example: .. code-block:: bash salt '*' user.rename name new_name ''' current_info = info(name) if not current_info: raise CommandExecutionError('User \'{0}\' does not exist'.format(name)) new_info...
python
def run_all2(protgroup, memornot, subsequences, base_outdir, protgroup_dict, protein_feathers_dir, date, errfile, impute_counts=True, cutoff_num_proteins=0, core_only_genes=None, length_filter_pid=.8, remove_correlated_feats=True, force_rerun_counts=False, force_rerun_per...
java
@Override public DescribeResizeResult describeResize(DescribeResizeRequest request) { request = beforeClientExecution(request); return executeDescribeResize(request); }
python
def get(cls, action, suffix=None): """ Get or register a handler for the given action. :param func action: Callback that is called when invoking the Handler :param func suffix: Optional suffix for the handler's ID """ action_id = _action_id(action, suffix) if act...
java
public void registerNewChecksums(File featureDir, String fileName, String checksum) { ChecksumData checksums = checksumsMap.get(featureDir); if (checksums == null) { checksums = new ChecksumData(); checksumsMap.put(featureDir, checksums); } checksums.registerNewCh...
java
public static Range create(Device _device, int _globalWidth) { final Range withoutLocal = create(_device, _globalWidth, 1); if (_device == JavaDevice.THREAD_POOL) { withoutLocal.setLocalSize_0(Runtime.getRuntime().availableProcessors()); withoutLocal.setLocalIsDerived(true); retu...
java
public void stopTracking() { if (!isTracking) { return; } Session session = getSession(); if (session != null) { session.removeCallback(callback); } broadcastManager.unregisterReceiver(receiver); isTracking = false; }
python
def Extract(self, components): """Extracts interesting paths from a given path. Args: components: Source string represented as a list of components. Returns: A list of extracted paths (as strings). """ for index, component in enumerate(components): if component.lower().endswith(...
java
public void setKeys(java.util.Collection<KeyListEntry> keys) { if (keys == null) { this.keys = null; return; } this.keys = new com.amazonaws.internal.SdkInternalList<KeyListEntry>(keys); }
java
private String getPropertyValueToWrite(Object obj) { String value; String valueToWrite = null; if (obj instanceof List<?>) { String[] values = {}; values = CmsCollectionsGenericWrapper.list(obj).toArray(values); // write it valueToWrite = "\\\n" +...
java
public void write(DataOutput out) throws IOException { UTF8.writeString(out, file); out.writeLong(start); out.writeLong(length); }
python
def stream_pty(self) -> 'StreamPty': ''' Opens a pseudo-terminal of the kernel (if supported) streamed via websockets. :returns: a :class:`StreamPty` object. ''' params = {} if self.owner_access_key: params['owner_access_key'] = self.owner_access_key ...
python
def criar_ip(self, id_vlan, id_equipamento, descricao): """Aloca um IP em uma VLAN para um equipamento. Insere um novo IP para a VLAN e o associa ao equipamento. :param id_vlan: Identificador da vlan. :param id_equipamento: Identificador do equipamento. :param descricao: Descri...
java
protected void configurePopup() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorderPainted(true); setBorder(LIST_BORDER); setOpaque(false); add(scroller); setDoubleBuffered(true); setFocusable(false); }
python
def _add_new(self, host_object): """Add a new host to the collection. Before a new hostname can be added, all its subdomains already present in the collection must be removed. Since the collection is sorted, we can limit our search for them to a slice of the collection starting ...
python
def warning( cls, template, default_params={}, cause=None, stack_depth=0, log_context=None, **more_params ): """ :param template: *string* human readable string with placeholders for parameters :param default_params: *dict* parameters t...
java
public static void rotate(Image image, int degree, ImageOutputStream out) throws IORuntimeException { writeJpg(rotate(image, degree), out); }
java
public void setAside(String text) { if (text == null) throw new RuntimeException("Cannot set aside to null. Call removeAside() if you wanted to remove the aside text"); if (asideElem == null) createAndAttachAsideElem(); asideElem.setInnerText(text); }
java
@Override public ResourceSet<SharedCost> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
python
def _build_request_factory(cls, session: AppSession): '''Create the request factory. A request factory is any callable object that returns a :class:`.http.Request`. The callable must accept the same arguments to Request. Returns: A callable object ''' ...
java
private String getNameValuePairForDisplay(final Object value) { if (value != null) { if (argumentAnnotation.sensitive()) { return String.format("--%s ***********", getLongName()); } else { // if we're displaying a tagged argument, include the tag name and ...
python
def desc(self): """Get a short description of the automation.""" # Auto Away (1) - Location - Enabled active = 'inactive' if self.is_active: active = 'active' return '{0} (ID: {1}) - {2} - {3}'.format( self.name, self.automation_id, self.type, active)
java
@Override public EClass getIfcMaterial() { if (ifcMaterialEClass == null) { ifcMaterialEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(356); } return ifcMaterialEClass; }
python
def create_dataset( self, group, chunk_size, compression=None, compression_opts=None): """Initialize the features subgoup""" group.attrs['format'] = self.dformat super(Features, self)._create_dataset( group, chunk_size, compression, compression_opts) # TODO attri...
python
def assert_branch_type(branch_type): # type: (str) -> None """ Print error and exit if the current branch is not of a given type. Args: branch_type (str): The branch type. This assumes the branch is in the '<type>/<title>` format. """ branch = git.current_branch(refr...
java
public void setWifiDisabled(Context context) { WifiManager wifiMan = (WifiManager) context .getSystemService(Context.WIFI_SERVICE); wifiMan.setWifiEnabled(false); }
java
@SuppressWarnings("unchecked") public T get() { if (value == null && id != null) { value = (T) buildQuery().find().tryNext(); } return value; }
java
@Deprecated public List<String> commonWhereConditions(List<QueryNode> nodes, List<Long> corpusList, List<Long> documents) { LinkedList<String> conditions = new LinkedList<>(); // annotations can always only be inside a subcorpus/document QueryNode[] copyNodes = nodes.toArray(new QueryNode[nodes.siz...
java
static JDOClass getJDOClass(Class c) { JDOClass rc = null; try { JavaModelFactory javaModelFactory = RuntimeJavaModelFactory.getInstance(); JavaModel javaModel = javaModelFactory.getJavaModel(c.getClassLoader()); JDOModel m = JDOModelFactoryImpl.getInstance().getJDOModel(javaModel); rc = m.ge...
java
private static GoogleCredentials getCredentialsWithScopes(final List<String> scopes) throws IOException { GoogleCredentials credentials = null; // first check whether the environment variable is set final String googleCredentialsPath = System.getenv("HELIOS_GOOGLE_CREDENTIALS"); if (googleCredent...
java
public void addEntry(String key, String type, String widget, String params, String optional) { m_entries.add(new CmsWorkplaceUserInfoEntry(key, type, widget, params, optional)); }
java
private void populate(final Element subroot, final Object o, final Collection<Object> col, final Class cl) throws Throwable { if (cb.skipElement(subroot)) { return; } Method meth = null; Class elClass = cb.forElement(sub...
java
protected void execute(Connection tx, String query, ExecuteFunction function) { try (Query q = new Query(objectMapper, tx, query)) { function.apply(q); } catch (SQLException ex) { throw new ApplicationException(ApplicationException.Code.BACKEND_ERROR, ex); } }
java
public DragItemRecyclerView insertColumn(final DragItemAdapter adapter, int index, final @Nullable View header, @Nullable View columnDragView, boolean hasFixedItemSize) { final DragItemRecyclerView recyclerView = insertColumn(adapter, index, header, hasFixedItemSize); setupColumnDragListener(columnDragV...
java
public Observable<ConnectionMonitorQueryResultInner> queryAsync(String resourceGroupName, String networkWatcherName, String connectionMonitorName) { return queryWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName).map(new Func1<ServiceResponse<ConnectionMonitorQueryResultInner>...
python
def get_parameter_dict(self, include_frozen=False): """ Get an ordered dictionary of the parameters Args: include_frozen (Optional[bool]): Should the frozen parameters be included in the returned value? (default: ``False``) """ return OrderedDict(zip...
python
def make_root(self, name): # noqa: D302 r""" Make a sub-node the root node of the tree. All nodes not belonging to the sub-tree are deleted :param name: New root node name :type name: :ref:`NodeName` :raises: * RuntimeError (Argument \`name\` is not valid) ...
java
@Override public PaxDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { return (PaxDate) super.resolveDate(fieldValues, resolverStyle); }
java
public final void entryRuleAbstractTerminal() throws RecognitionException { try { // InternalXtext.g:496:1: ( ruleAbstractTerminal EOF ) // InternalXtext.g:497:1: ruleAbstractTerminal EOF { before(grammarAccess.getAbstractTerminalRule()); pushFollow(...
java
@TargetApi(Build.VERSION_CODES.HONEYCOMB) public static PendingIntent getActivities(Context context, int requestCode, Intent[] intents, int flags) { PendingIntent.getActivities(context, requestCode, intents, flags).cancel(); return PendingIntent.getActivities(context, requestCode, intents, flags); ...
python
def name_from_setup_py(self): # type: () -> str """ Extract likley module name from setup.py args :return: """ source = self.setup_py_source() if not source: return "" for row in source.split("\n"): # if "packages=" in row: ...
python
def rnd_datetime_array(self, size, start=datetime(1970, 1, 1), end=datetime.now()): """Array or Matrix of random datetime generator. """ if isinstance(start, string_types): start = self.str2datetime(start) if isinstance(end, str): end = ...
java
private byte[] collectProcessResultsBytes(Process process, ProcessBuilder builder, SubProcessIOFiles outPutFiles) throws Exception { Byte[] results; try { LOG.debug(String.format("Executing process %s", createLogEntryFromInputs(builder.command()))); // If process exit value is not 0 then s...