language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def do(self, repetitions=1, locations=np.arange(-0.5, 0.6, 0.2), plot=True): """generates, plots and saves function values ``func(y)``, where ``y`` is 'close' to `x` (see `__init__()`). The data are stored in the ``res`` attribute and the class instance is saved in a file with (the weire...
java
public static void addDynamicProperties( CmsObject cms, CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, CmsResource resource, Set<String> filter) { List<I_CmsPropertyProvider> providers = typeManager.getPropertyProviders(); f...
python
def create_tags_from_dict(cls, tag_dict): """ Build a tuple of list of Tag objects based on the tag_dict. The tuple contains 3 lists. - The first list contains skill tags - The second list contains misconception tags - The third list contains category...
java
@Override protected ClassEntry getClassEntry(String name, String pathName) throws ClassNotFoundException { if (_pathMap != null) { JarMap.JarList jarEntryList = _pathMap.get(pathName); if (jarEntryList != null) { JarEntry jarEntry = jarEntryList.getEntry(); PathImpl path = jarE...
java
protected void write(JsonWriter out, T value, TypeAdapter<JsonElement> elementAdapter, TypeAdapter<T> delegate) throws IOException { JsonElement tree = delegate.toJsonTree(value); beforeWrite(value, tree); elementAdapter.write(out, tree); }
python
def _read_managed_gavs(artifact, repo_url=None, mgmt_type=MGMT_TYPE.DEPENDENCIES, mvn_repo_local=None): """ Reads all artifacts managed in dependencyManagement section of effective pom of the given artifact. It places the repo_url in settings.xml and then runs help:effective-pom with these settings. There s...
python
def bundle_javascript(context: Context): """ Compiles javascript """ args = ['--bail'] if context.verbosity > 0: args.append('--verbose') if not context.use_colour: args.append('--no-colors') return context.node_tool('webpack', *args)
java
@Override public void process(List<EllipseRotated_F64> ellipses , List<List<EllipsesIntoClusters.Node>> clusters ) { foundGrids.reset(); for (int i = 0; i < clusters.size(); i++) { List<EllipsesIntoClusters.Node> cluster = clusters.get(i); int clusterSize = cluster.size(); if( clusterSize < 2 ) cont...
java
public boolean setValue(int ch, int value) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { return false; } int block = getDataBlock(ch); if (block < 0) { return false; } ...
java
public Head getHead() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_head == null) jcasType.jcas.throwFeatMissing("head", "de.julielab.jules.types.ace.EntityMention"); return (Head)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityMention_Type)jcasT...
java
public Object getProperty(Class aClass, Object object, String property, boolean b, boolean b1) { if (null == interceptor) { return super.getProperty(aClass, object, property, b, b1); } if (interceptor instanceof PropertyAccessInterceptor) { PropertyAccessInterceptor pae =...
java
@Override public void initialize(Integer pollingPeriodMs) { if (timer == null) { timer = new Timer(); TimerTask task = new TimerTask() { /* (non-Javadoc) * @see java.util.TimerTask#run() */ @Override pu...
python
def _java_is_subclass(cls, obj, class_name): """Given a deserialized JavaObject as returned by the javaobj library, determine whether it's a subclass of the given class name. """ clazz = obj.get_class() while clazz: if clazz.name == class_name: return ...
java
static String getPipeName(final String fieldName, final Pipe annot) { String attributeName = null; if (annot.name().equals("")) { attributeName = fieldName; } else { attributeName = annot.name(); } return attributeName; }
java
public void setupEnvironment(Hashtable<String, Object> env, String userDn, String password) { env.put(Context.SECURITY_AUTHENTICATION, SIMPLE_AUTHENTICATION); env.put(Context.SECURITY_PRINCIPAL, userDn); env.put(Context.SECURITY_CREDENTIALS, password); }
java
public <T1> Mutable<T1> mapInputToObj(final Function<T1, Integer> fn) { final MutableInt host = this; return new Mutable<T1>() { @Override public Mutable<T1> set(final T1 value) { host.set(fn.apply(value)); return this; } }; ...
python
def get_ascii(self, show_internal=True, compact=False, attributes=None): """ Returns a string containing an ascii drawing of the tree. Parameters: ----------- show_internal: include internal edge names. compact: use exactly one line per ...
java
public synchronized int addElement(E theElement) { if (theElement == null) { return -1; } if (elementCount == currentCapacity) { // try to expand the table to handle the new value, if that fails // then it will throw an illegalstate exception expan...
java
@Pure public BusItineraryHalt[] toValidBusHaltArray() { final BusItineraryHalt[] tab = new BusItineraryHalt[this.validHalts.size()]; return this.validHalts.toArray(tab); }
python
def fetch(self, kernel_version, manifest_type): """ Search repository for kernel module matching kernel_version :type kernel_version: str :param kernel_version: kernel version to search repository on :type manifest_type: str :param manifest_type: kernel module manifest t...
python
def get_subdirs(directory): """ Returns: a list of subdirectories of the given directory """ return [os.path.join(directory, name) for name in os.listdir(directory) if os.path.isdir(os.path.join(directory, name))]
java
public Observable<SourceUploadDefinitionInner> getBuildSourceUploadUrlAsync(String resourceGroupName, String registryName) { return getBuildSourceUploadUrlWithServiceResponseAsync(resourceGroupName, registryName).map(new Func1<ServiceResponse<SourceUploadDefinitionInner>, SourceUploadDefinitionInner>() { ...
python
def node(self, source, args=(), env={}): """ Calls node with an inline source. Returns decoded output of stdout and stderr; decoding determine by locale. """ return self._exec(self.node_bin, source, args=args, env=env)
java
@Override public boolean isReadOnly(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); boolean result = th...
java
public JBBPTextWriter Byte(final byte[] array, int off, int len) throws IOException { ensureValueMode(); while (len-- > 0) { Byte(array[off++]); } return this; }
java
public static List<Annotation> selectCovered(CAS cas, AnnotationFS coveringAnnotation) { final int begin = coveringAnnotation.getBegin(); final int end = coveringAnnotation.getEnd(); final List<Annotation> list = new ArrayList<Annotation>(); final FSIterator<AnnotationFS> it...
python
def make_table(self): """Make numpy array from timeseries data.""" num_records = int(np.sum([1 for frame in self.timeseries])) dtype = [ ("frame",float),("time",float),("proteinring",list), ("ligand_ring_ids",list),("distance",float),("angle",float), ...
java
public boolean exists(String nodeDN) throws NamingException { try { ctx.search(nodeDN, "(objectclass=*)", existanceConstraints); return true; } catch (NameNotFoundException e) { return false; } catch (NullPoin...
python
def factoring_qaoa(n_step, num, minimizer=None, sampler=None, verbose=True): """Do the Number partition QAOA. :param num: The number to be factoring. :param n_step: The number of step of QAOA :param edges: The edges list of the graph. :returns result of QAOA """ def get_nbit(n): m =...
java
public static Boolean getYesNoAttrVal(final NamedNodeMap nnm, final String name) throws SAXException { String val = getAttrVal(nnm, name); if (val == null) { return null; } if ((!"yes".equals(val)) && (!"no".equals(val))) { throw new SAXException("Invalid attribute value: " + val); ...
python
def clean_previous_run(self): """Clean variables from previous configuration, such as schedulers, broks and external commands :return: None """ # Execute the base class treatment... super(Satellite, self).clean_previous_run() # Clean my lists del self.br...
java
protected void doLoginByGivenEntity(USER_ENTITY givenEntity, LoginSpecifiedOption option) { assertGivenEntityRequired(givenEntity); handleLoginSuccess(givenEntity, option); }
python
def parse_rich_header(self): """Parses the rich header see http://www.ntcore.com/files/richsign.htm for more information Structure: 00 DanS ^ checksum, checksum, checksum, checksum 10 Symbol RVA ^ checksum, Symbol size ^ checksum... ... XX Rich, checksum,...
java
protected void indexNode(int expandedTypeID, int identity) { ExpandedNameTable ent = m_expandedNameTable; short type = ent.getType(expandedTypeID); if (DTM.ELEMENT_NODE == type) { int namespaceID = ent.getNamespaceID(expandedTypeID); int localNameID = ent.getLocalNameID(expandedTypeID); ...
java
@Override public void writeTo(final Viewable viewable, final Class<?> type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap<String, Object> ...
python
def convert_idx_to_name(self, y, lens): """Convert label index to name. Args: y (list): label index list. lens (list): true length of y. Returns: y: label name list. Examples: >>> # assumes that id2label = {1: 'B-LOC', 2: 'I-LOC'} ...
java
public static Annotation getAnnotatedChunk(List<CoreLabel> tokens, int tokenStartIndex, int tokenEndIndex, int totalTokenOffset, Class tokenChunkKey, Class tokenTextKey, Class tokenLabelKey) { Annotation chunk = getAnnotatedChunk(tokens, tokenStartIndex, tokenEndIn...
python
def python_lib_rpm_dirs(self): """Both arch and non-arch site-packages directories.""" libs = [self.python_lib_arch_dir, self.python_lib_non_arch_dir] def append_rpm(path): return os.path.join(path, 'rpm') return map(append_rpm, libs)
java
public static boolean containsAny(Collection source, Collection candidates) { if (isEmpty(source) || isEmpty(candidates)) { return false; } for (Object candidate : candidates) { if (source.contains(candidate)) { return true; } } ...
java
private File extractThriftFile(String artifactId, String fileName, Set<File> thriftFiles) { for (File thriftFile : thriftFiles) { boolean fileFound = false; if (fileName.equals(thriftFile.getName())) { for (String pathComponent : thriftFile.getPath().split(File.separator)) { if (pathCo...
java
@Override public void deleteSnapshots(Pattern pattern) throws IOException { for (SnapshotDescription snapshotDescription : listSnapshots(pattern)) { deleteSnapshot(snapshotDescription.getName()); } }
java
public static final void setWriter(String format, TreeWriter writer) { String key = format.toLowerCase(); writers.put(key, writer); if (JSON.equals(key)) { cachedJsonWriter = writer; } }
java
protected <V extends ATSecDBValidator> Set<ATError> createError(V validator, String key, String suffix, String defaultMessagePrefix, Object... arguments ) { Set<ATError> errors = new HashSet<>(1); if (null != validator) { errors.add(new ATError(key, validator.getMessageWithSuffix(suffix, arguments, def...
python
def train(self, training_set, iterations=500): """Trains itself using the sequence data.""" if len(training_set) > 2: self.__X = np.matrix([example[0] for example in training_set]) if self.__num_labels == 1: self.__y = np.matrix([example[1] for example in training...
python
def get_domain_and_name(self, domain_or_name): """ Given a ``str`` or :class:`boto.sdb.domain.Domain`, return a ``tuple`` with the following members (in order): * In instance of :class:`boto.sdb.domain.Domain` for the requested domain * The domain's...
python
def reset(self): "Close the current failed connection and prepare for a new one" log.info("resetting client") rpc_client = self._rpc_client self._addrs.append(self._peer.addr) self.__init__(self._addrs) self._rpc_client = rpc_client self._dispatcher.rpc_client = r...
java
@Override public String substring(int beginIndex, int endIndex) { if (beginIndex < 0) { throw new StringIndexOutOfBoundsException(beginIndex); } char[] buf = this.buf; int sz = buf.length; if (endIndex > sz) { throw new StringIndexOutOfBoundsException(...
python
def _post_processing(kwargs, skip_translate, invalid): ''' Additional container-specific post-translation processing ''' # Don't allow conflicting options to be set if kwargs.get('port_bindings') is not None \ and kwargs.get('publish_all_ports'): kwargs.pop('port_bindings') ...
java
@CanIgnoreReturnValue // some processors won't return a useful result public static <T> T readLines(File file, Charset charset, LineProcessor<T> callback) throws IOException { return asCharSource(file, charset).readLines(callback); }
java
public synchronized NetworkServiceDescriptorAgent getNetworkServiceDescriptorAgent() { if (this.networkServiceDescriptorAgent == null) { if (isService) { this.networkServiceDescriptorAgent = new NetworkServiceDescriptorAgent( this.serviceName, this.projectId...
python
def set_role(self, name, value=None, default=False, disable=False): """Configures the user role vale in EOS Args: name (str): The name of the user to create value (str): The value to configure for the user role default (bool): Configure the user role using the EOS ...
python
def attribute_md5(self): """ The MD5 of all attributes is calculated by first generating a utf-8 string from each attribute and MD5-ing the concatenation of them all. Each attribute is encoded with some bytes that describe the length of each part and the type of attribute. ...
java
public final int getInt16(final int pos) { final int position = origin + pos; if (pos + 1 >= limit || pos < 0) throw new IllegalArgumentException("limit excceed: " + (pos < 0 ? pos : (pos + 1))); byte[] buf = buf...
python
def get_param(self, name): """ Get a WinDivert parameter. See pydivert.Param for the list of parameters. The remapped function is WinDivertGetParam:: BOOL WinDivertGetParam( __in HANDLE handle, __in WINDIVERT_PARAM param, __out UINT64...
python
def json_request(endpoint, verb='GET', session_options=None, **options): """Like :func:`molotov.request` but extracts json from the response. """ req = functools.partial(_request, endpoint, verb, session_options, json=True, **options) return _run_in_fresh_loop(req)
python
def translate_to_arpabet(self): ''' 转换成arpabet :return: ''' translations = [] for phoneme in self._phoneme_list: if phoneme.is_vowel: translations.append(phoneme.arpabet + self.stress.mark_arpabet()) else: translat...
python
def kill(self): """Kill instantiated process :raises: `AttributeError` if instantiated process doesn't seem to satisfy `constraints <relshell.daemon_shelloperator.DaemonShellOperator>`_ """ BaseShellOperator._close_process_input_stdin(self._batcmd.batch_to_file_s) BaseShellOpera...
python
def indexByComponent(self, component): """Returns a location for the given component, or None if it is not in the model :param component: Component to get index for :type component: :class:`AbstractStimulusComponent<sparkle.stim.abstract_component.AbstractStimulusComponent>` :re...
python
def gen_signature(priv, pub, signature_path, auto_create=False, keysize=None): ''' Generate master public-key-signature ''' skey = get_key(__opts__) return skey.gen_keys_signature(priv, pub, signature_path, auto_create, keysize)
java
protected void logEntityModification(EntityIdValue entityId, String numberLabel, ArrayList<String> languages) { modifiedEntities++; System.out.println(entityId.getId() + ": adding label " + numberLabel + " for languages " + languages.toString() + " (" + modifiedEntities + " entities modified so far)"); ...
python
def rerun(version="3.7.0"): """ Rerun last example code block with specified version of python. """ from commandlib import Command Command(DIR.gen.joinpath("py{0}".format(version), "bin", "python"))( DIR.gen.joinpath("state", "examplepythoncode.py") ).in_dir(DIR.gen.joinpath("state")).r...
java
public <T, S> CallResults call(InputHandler<T> inputHandler, OutputHandler<S> outputHandler, String catalog, String schema, boolean useCache) throws SQLException { AssertUtils.assertNotNull(inputHandler, nullException()); AssertUtils.assertNotNull(outputHandler, nullException()); QueryParameter...
python
def running_service_owners( exclude=('/dev', '/home', '/media', '/proc', '/run', '/sys/', '/tmp', '/var') ): ''' Determine which packages own the currently running services. By default, excludes files whose full path starts with ``/dev``, ``/home``, ``/media``, ``/proc``, ``...
java
public RemoteCommand getRemoteCommand(Jid jid, String node) { return new RemoteCommand(connection(), node, jid); }
java
@Override public void rebuildModifiedBundles() { List<JoinableResourceBundle> bundlesToRebuild = rsHandler.getBundlesToRebuild(); for (JoinableResourceBundle bundle : bundlesToRebuild) { ResourceBundlePathsIterator bundlePaths = this.getBundlePaths(bundle.getId(), new NoCommentCallbackHandler(), Collections.EMP...
python
def read_namespaced_job_status(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_job_status # noqa: E501 read status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=...
python
def input_fields(self, preamble, *args): """Get a set of fields from the user. Optionally a preamble may be shown to the user secribing the fields to return. The fields are specified as the remaining arguments with each field being a a list with the following entries: - a pr...
java
@Override public boolean shouldUseLtpaIfJwtAbsent() { // TODO Auto-generated method stub JwtSsoBuilderConfig jwtssobuilderConfig = getJwtSSOBuilderConfig(); if (jwtssobuilderConfig != null) { return jwtssobuilderConfig.isUseLtpaIfJwtAbsent(); } return true; }
java
public static String firstCharToUpperCase(String str) { char firstChar = str.charAt(0); if (firstChar >= 'a' && firstChar <= 'z') { char[] arr = str.toCharArray(); arr[0] -= ('a' - 'A'); return new String(arr); } return str; }
python
def warn(self, message, *args, **kwargs): """alias to message at warning level""" self.log("warn", message, *args, **kwargs)
python
def to_dict(self, serial=False): '''A dictionary representing the the data of the class is returned. Native Python objects will still exist in this dictionary (for example, a ``datetime`` object will be returned rather than a string) unless ``serial`` is set to True. ''' ...
java
public void marshall(DeleteCodeRepositoryRequest deleteCodeRepositoryRequest, ProtocolMarshaller protocolMarshaller) { if (deleteCodeRepositoryRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
java
public ObjectAccessor<T> getRedAccessor(TypeTag enclosingType) { ObjectAccessor<T> result = buildObjectAccessor(); result.scramble(prefabValues, enclosingType); return result; }
java
@Override final CancellableTask<K, T> scheduleImpl(final T task, long period, TimeUnit unit) { final ScheduledFuture<?> future = this.executorService.scheduleAtFixedRate(new RunnableTask(task), 0, period, unit); return new CancellableScheduledFuture<>(task, future); }
python
def _handle_param_list(self, node, scope, ctxt, stream): """Handle ParamList nodes :node: TODO :scope: TODO :ctxt: TODO :stream: TODO :returns: TODO """ self._dlog("handling param list") # params should be a list of tuples: # [(<name>, <f...
java
public static boolean isValidInt(@Nullable final String integerStr, final int lowerBound, final int upperBound, final boolean includeLowerBound, final boolean includeUpperBound) { if (lowerBound > upperBound) { throw new IllegalArgumentException(ExceptionValues.INVALID_BOUNDS); } else if (!i...
python
def _parse_all_radfuncs(self, func_name): """Parse all the nodes with tag func_name in the XML file.""" for node in self.root.findall(func_name): grid = node.attrib["grid"] values = np.array([float(s) for s in node.text.split()]) yield self.rad_grids[grid], values, n...
python
def ajContractions(self): """ Charge et établit une liste qui donne, chaque contraction, forme non contracte qui lui correspond. """ for lin in lignesFichier(self.path("contractions.la")): ass1, ass2 = tuple(lin.split(':')) self.lemmatiseur._contractions[ass1] = ass2
python
def get_stp_mst_detail_output_cist_port_interface_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") ...
python
def storage_set(self, key, value): """ Store a value for the module. """ if not self._module: return self._storage_init() module_name = self._module.module_full_name return self._storage.storage_set(module_name, key, value)
java
public static int searchIgnoreCase(String str, String keyw) { return search(str.toLowerCase(), keyw.toLowerCase()); }
java
@VisibleForTesting Configuration getHMDriverConf() { String topologyPackageName = new File(topologyPackageLocation).getName(); String corePackageName = new File(coreReleasePackage).getName(); // topologyName and other configurations are required by Heron Driver/Scheduler to load // configuration file...
java
public boolean setFeatureStyle(MarkerOptions markerOptions, FeatureRow featureRow) { return StyleUtils.setFeatureStyle(markerOptions, featureStyleExtension, featureRow, density, iconCache); }
python
def WriteProtoFile(self, printer): """Write the messages file to out as proto.""" self.Validate() extended_descriptor.WriteMessagesFile( self.__file_descriptor, self.__package, self.__client_info.version, printer)
java
static boolean isFormula(String value, EvaluationWorkbook workbook) { try { return FormulaParser.parse(value, (FormulaParsingWorkbook) workbook, 0, 0).length > 1; } // TODO: formulaType and sheet index are 0 catch (FormulaParseException e) { return false; } }
java
public boolean isLegalStartColor (int classId, int colorId) { ColorRecord color = getColorRecord(classId, colorId); return (color == null) ? false : color.starter; }
python
def _check_train_time(self) -> None: """ Stop the training if the training time exceeded ``self._minutes``. :raise TrainingTerminated: if the training time exceeded ``self._minutes`` """ if self._minutes is not None and (datetime.now() - self._training_start).total_seconds()/60 ...
python
def circle_pattern(pattern_radius, circle_radius, count, center=[0.0, 0.0], angle=None, **kwargs): """ Create a Path2D representing a circle pattern. Parameters ------------ pattern_radius : float R...
java
public ListJobsResult withJobListEntries(JobListEntry... jobListEntries) { if (this.jobListEntries == null) { setJobListEntries(new java.util.ArrayList<JobListEntry>(jobListEntries.length)); } for (JobListEntry ele : jobListEntries) { this.jobListEntries.add(ele); ...
python
def get_instance_by_type(dst, disk, do_compress, *args, **kwargs): """ Args: dst (str): The path of the new exported disk. can contain env variables. disk (dict): Disk attributes (of the disk that should be exported) as found in wor...
java
public Buffer capacity(long capacity) { if (capacity > maxCapacity) { throw new IllegalArgumentException("capacity cannot be greater than maximum capacity"); } else if (capacity < this.capacity) { throw new IllegalArgumentException("capacity cannot be decreased"); } else if (capacity != this.cap...
java
public java.util.List<com.google.appengine.v1.InboundServiceType> getInboundServicesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.appengine.v1.InboundServiceType>(inboundServices_, inboundServices_converter_); }
python
def remove_accessibility_type(self, accessibility_type=None): """Removes an accessibility type. :param accessibility_type: accessibility type to remove :type accessibility_type: ``osid.type.Type`` :raise: ``NoAccess`` -- ``Metadata.isReadOnly()`` is ``true`` :raise: ``NotFound``...
python
def value(self): """ Read the value from BACnet network """ try: res = self.properties.device.properties.network.read( "{} {} {} presentValue".format( self.properties.device.properties.address, self.properties.type, ...
java
public static void assertEmpty(String message, DataSource dataSource) throws DBAssertionError { DBAssert.stateAssertion(CallInfo.create(message), empty(dataSource)); }
java
private boolean simpleReturn(CmsSSLMode mode) { if (m_server.getValue() == null) { return true; } if (mode != null) { if (mode.equals(CmsSSLMode.NO)) { if (((CmsSite)m_server.getValue()).getUrl().contains("http:")) { return true; ...
java
public void marshall(VirtualServiceData virtualServiceData, ProtocolMarshaller protocolMarshaller) { if (virtualServiceData == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(virtualServiceData.getMes...
java
public static int manhattanDistance (int x1, int y1, int x2, int y2) { return Math.abs(x2 - x1) + Math.abs(y2 - y1); }
java
public BatchGetApplicationRevisionsResult withRevisions(RevisionInfo... revisions) { if (this.revisions == null) { setRevisions(new com.amazonaws.internal.SdkInternalList<RevisionInfo>(revisions.length)); } for (RevisionInfo ele : revisions) { this.revisions.add(ele); ...
java
@Nullable public static String safeDecodeAsString (@Nullable final String sEncoded, @Nonnull final Charset aCharset) { ValueEnforcer.notNull (aCharset, "Charset"); if (sEncoded != null) try { final byte [] aDecoded = decode (sEncoded, DONT_GUNZIP); return new String (aDecoded, aC...