language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def fill_package_digests(generated_project: Project) -> Project: """Temporary fill package digests stated in Pipfile.lock.""" for package_version in chain(generated_project.pipfile_lock.packages, generated_project.pipfile_lock.dev_packages): if package_version.hashes: # Already filled from t...
java
@Deprecated public void addWatcher(File file, Listener watcher) { addWatcher(file.toPath(), watcher); }
python
def execute(self, **minimizer_kwargs): """ Execute the chained-minimization. In order to pass options to the seperate minimizers, they can be passed by using the names of the minimizers as keywords. For example:: fit = Fit(self.model, self.xx, self.yy, self.ydata, ...
java
public static String fieldName(Class<?> aClass,String regex){ if(isNestedMapping(regex)) return regex; String result = null; for(Class<?> clazz: getAllsuperClasses(aClass)) if(!isNull(result = getFieldName(clazz, regex))) return result; return result; }
python
def rpm(self, vol_per_rev): """Return the pump speed required for the reactor's stock of material given the volume of fluid output per revolution by the stock's pump. :param vol_per_rev: Volume of fluid pumped per revolution (dependent on pump and tubing) :type vol_per_rev: float ...
python
def delete_edge_by_nodes(self, node_a, node_b): """Removes all the edges from node_a to node_b from the graph.""" node = self.get_node(node_a) # Determine the edge ids edge_ids = [] for e_id in node['edges']: edge = self.get_edge(e_id) if edge['vertices']...
python
def include(self, *keys): """ 指定查询返回结果中包含关联表字段。 :param keys: 关联子表字段名 :rtype: Query """ if len(keys) == 1 and isinstance(keys[0], (list, tuple)): keys = keys[0] self._include += keys return self
python
def _create_or_update_version(app_name, version, app_spec, try_update=True): """ Creates a new version of the app. Returns an app_id, or None if the app has already been created and published. """ # This has a race condition since the app could have been created or # published since we last look...
python
def insert(self, index, key): """Adds an element at a dedicated position in an OrderedSet. This implementation is meant for the OrderedSet from the ordered_set package only. """ if key in self.map: return # compute the right index size = len(self.items) if index < 0: ind...
python
def toUnicode(data, encoding=DEFAULT_ENCODING): """ Converts the inputted data to unicode format. :param data | <str> || <unicode> || <iterable> :return <unicode> || <iterable> """ if isinstance(data, unicode_type): return data if isinstance(data, bytes_type): ...
java
public static String toQualifiedName(char[][] typeName) { int len = typeName.length - 1; // number of dots if (len == 0) return new String(typeName[0]); for (char[] c : typeName) len += c.length; char[] ret = new char[len]; char[] part = typeName[0]; System.arraycopy(part, 0, ret, 0, part.length); int ...
python
def load_workflow(self, workflow_id): """ Load workflow from the database and store in memory :param workflow_id: The workflow id :return: The workflow """ with switch_db(WorkflowDefinitionModel, db_alias='hyperstream'): workflow_definition = WorkflowDefinitio...
java
public AssemblyResponse getAssemblyByUrl(String url) throws RequestException, LocalOperationException { Request request = new Request(this); return new AssemblyResponse(request.get(url)); }
java
public BufferedImage copyImage(BufferedImage image) { BufferedImage newImage = new BufferedImage(image.getWidth(), image.getHeight(), image.getType()); Graphics2D g2d = newImage.createGraphics(); g2d.drawImage(image, 0, 0, null); g2d.dispose(); return newImage; }
java
public static String getEffectiveBackgroundColor(Element element) { String backgroundColor = CmsDomUtil.getCurrentStyle(element, Style.backgroundColor); if ((CmsStringUtil.isEmptyOrWhitespaceOnly(backgroundColor) || isTransparent(backgroundColor) || backgroundColor.equals(StyleV...
python
def statcast(start_dt=None, end_dt=None, team=None, verbose=True): """ Pulls statcast play-level data from Baseball Savant for a given date range. INPUTS: start_dt: YYYY-MM-DD : the first date for which you want statcast data end_dt: YYYY-MM-DD : the last date for which you want statcast data t...
python
def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods='', python2_bin='python2', python3_bin='python3', absonly=True, compress='gzip', extended_cfg=None): ''' Generate the salt-thin tarball and print the location of the tarball Optional additional mods to include (e.g. mak...
java
public UploadImgResponse uploadImg(File file){ UploadImgResponse response; String url = "https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=#"; BaseResponse r = executePost(url, null, file); response = JSONUtil.toBean(r.getErrmsg(), UploadImgResponse.class); return re...
java
private void paintMinimizePressed(Graphics2D g, JComponent c, int width, int height) { iconifyPainter.paintPressed(g, c, width, height); }
python
def predict_heatmap(pdf_path, page_num, model, img_dim=448, img_dir="tmp/img"): """ Return an image corresponding to the page of the pdf documents saved at pdf_path. If the image is not found in img_dir this function creates it and saves it in img_dir. :param pdf_path: path to the pdf document. ...
python
def jaccard_similarity(self,s1,s2): """ Calculate jaccard index of inferred associations of two subjects |ancs(s1) /\ ancs(s2)| --- |ancs(s1) \/ ancs(s2)| """ a1 = self.inferred_types(s1) a2 = self.inferred_types(s2) num_union = len(a1.union(a2))...
java
public static KamSummary summarizeKamNetwork(Collection<KamEdge> edges, int statementCount) { KamSummary summary = new KamSummary(); Set<KamNode> nodes = new HashSet<KamNode>(); //unique set of nodes for (KamEdge edge : edges) { nodes.add(edge.getSourceNode()); ...
java
private void lockRow(int row, int colsToLock) { // Put in an entry for all the row's columns for (int col = 0; col < colsToLock; ++col) { Entry e = new Entry(row, col); // Spin waiting for the entry to be unlocked while (lockedEntries.putIfAbsent(e, new Object()) != n...
java
public static void setMatrix(final double[][] m1, final int r0, final int r1, final int[] c, final double[][] m2) { assert r0 <= r1 : ERR_INVALID_RANGE; assert r1 <= m1.length : ERR_MATRIX_DIMENSIONS; for(int i = r0; i < r1; i++) { final double[] row1 = m1[i], row2 = m2[i - r0]; for(int j = 0; j...
java
@SuppressWarnings("unchecked") public static <S, T extends S> Predicate<T> narrow(Predicate<S> p) { return (Predicate<T>) p; }
python
def save_dynamic_class(self, obj): """ Save a class that can't be stored as module global. This method is used to serialize classes that are defined inside functions, or that otherwise can't be serialized as attribute lookups from global modules. """ clsdict = di...
java
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String path = request.getRequestURI().substring(request.getContextPath().length() + urlPrefix.length()); ActionContext actionContext = new ActionContext(request, response, path); ...
java
private static ResultSet getImportedKeys(String tableDef, String tableName, String catalog, MariaDbConnection connection) throws ParseException { String[] columnNames = { "PKTABLE_CAT", "PKTABLE_SCHEM", "PKTABLE_NAME", "PKCOLUMN_NAME", "FKTABLE_CAT", "FKTABLE_SCHEM", "FKTABLE_NAME", "F...
java
public static QR factorize(Matrix A) { return new QR(A.numRows(), A.numColumns()).factor(new DenseMatrix(A)); }
java
@InterfaceAudience.Public public SavedRevision save() throws CouchbaseLiteException { boolean allowConflict = false; return document.putProperties(properties, parentRevID, allowConflict); }
java
public static void validateClusterNodeState(final Cluster subsetCluster, final Cluster supersetCluster) { if(!supersetCluster.getNodeIds().containsAll(subsetCluster.getNodeIds())) { throw new VoldemortException("Superset cluster does not contain all no...
python
def solve(self,verbose=False): ''' Solve the model for this instance of an agent type by backward induction. Loops through the sequence of one period problems, passing the solution from period t+1 to the problem for period t. Parameters ---------- verbose : boole...
python
def _parse_field_descriptor(self, encoding): """Parse the 'Field Descriptor' (Metadata) packet. This is compatible with MySQL 4.1+ (not compatible with MySQL 4.0). """ self.catalog = self.read_length_coded_string() self.db = self.read_length_coded_string() self.table_nam...
python
def _detect_correlation(self): """ Detect correlation by computing correlation coefficients for all allowed shift steps, then take the maximum. """ correlations = [] shifted_correlations = [] self.time_series_a.normalize() self.time_series_b.normalize() ...
java
static public InputStream replace(File file, File props) throws IOException, SubstitutionException{ return replace(file, props, null, false); }
python
def find_bounds(model): """ Return the median upper and lower bound of the metabolic model. Bounds can vary from model to model. Cobrapy defaults to (-1000, 1000) but this may not be the case for merged or autogenerated models. In these cases, this function is used to iterate over all the bounds of...
python
def _write_config(self, memory): """Write the configuration for this probe to memory.""" memory.seek(0) memory.write(struct.pack("<II", # sim_length self._simulator.length, # input_key ...
python
async def reset_wallet(self) -> str: """ Close and delete HolderProver wallet, then create and open a replacement on prior link secret. Note that this operation effectively destroys private keys for credential definitions. Its intended use is primarily for testing and demonstration. ...
java
private void compileDatabase( Database db, HSQLInterface hsql, VoltDDLElementTracker voltDdlTracker, VoltCompilerReader cannonicalDDLIfAny, Database previousDBIfAny, List<VoltCompilerReader> schemaReaders, Collection<Class<?>> classDepe...
python
def get_preorder_burn_info( outputs ): """ Given the set of outputs, find the fee sent to our burn address. This is always the third output. Return the fee and burn address on success as {'op_fee': ..., 'burn_address': ...} Return None if not found """ if len(outputs) != 3: ...
python
def _get_key_props(phase=None, diameter='throat.diameter', surface_tension='pore.surface_tension', contact_angle='pore.contact_angle'): r""" Many of the methods are generic to pores and throats. Some information may be stored on either the pore or throat and needs to be...
java
void defineCoordinateSystem(View viewA, Motion motion) { View viewB = motion.destination(viewA); viewA.viewToWorld.reset(); // identity since it's the origin viewB.viewToWorld.set(motion.motionSrcToDst(viewB)); // translation is only known up to a scale factor so pick a reasonable scale factor double scale =...
python
def _flush_stack(self): ''' Returns the final output and resets the machine's state. ''' output = self._postprocess_output(''.join(self.stack)) self._clear_char() self._empty_stack() if not PYTHON_2: return output else: return unic...
java
public void marshall(UpdateRobotApplicationRequest updateRobotApplicationRequest, ProtocolMarshaller protocolMarshaller) { if (updateRobotApplicationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
python
def convert(cycle, pyroleLike, usedPyroles): """cycle, pyroleLike, aromatic=0-> aromatize the cycle pyroleLike is a lookup of the pyrole like atoms in the cycle. return 1 if the cycle was aromatized 2 if the cycle could not be aromatized""" bonds = cycle.bonds atoms = cycle.atoms ...
java
public void marshall(ListDocumentsRequest listDocumentsRequest, ProtocolMarshaller protocolMarshaller) { if (listDocumentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listDocumentsReques...
python
def serialize_b58(self, private=True): """Encode the serialized node in base58.""" return ensure_str( base58.b58encode_check(unhexlify(self.serialize(private))))
java
@Override public Iterator<Vertex> vertices(Object... ids) { // get current session Neo4JSession session = currentSession(); // transaction should be ready for io operations transaction.readWrite(); // find vertices return session.vertices(ids); }
java
public static String format(final String messagePattern, final Object[] arguments) { return ParameterFormatter.format(messagePattern, arguments); }
python
def to_pandas(self): """Convert to pandas Index. Returns ------- pandas.base.Index """ if not self.is_raw(): raise ValueError('Cannot convert to pandas Index if not evaluated.') from pandas import Index as PandasIndex return PandasIndex(sel...
java
public SipTransaction sendReply(SipTransaction transaction, int statusCode, String reasonPhrase, String toTag, Address contact, int expires, ArrayList<Header> additionalHeaders, ArrayList<Header> replaceHeaders, String body) { initErrorInfo(); if ((transaction == null) || (transaction.getRequest() ...
python
def require(self, name): """Return the value of the requested parameter or raise an error.""" value = self.get(name) if value is None: raise TypeError( "{0} requires the parameter '{1}'.".format( self.__class__, name ) )...
python
def find(self, obj): """Returns the index of the given object in the queue, it might be string which will be searched inside each task. :arg obj: object we are looking :return: -1 if the object is not found or else the location of the task """ if not self.connected: ...
python
def _get_or_add_rich(self): """ Return the `c:rich` element representing the text frame for this data label, newly created with its ancestors if not present. """ dLbl = self._get_or_add_dLbl() # having a c:spPr or c:txPr when a c:tx is present causes the "can't #...
java
public static int compareStructure(final File pFile, IConfigurationPath[] pPaths) { int existing = 0; for (final IConfigurationPath path : pPaths) { final File currentFile = new File(pFile, path.getFile().getName()); if (currentFile.exists()) { existing++; ...
java
public static long getMonthEndTime(final long time) { final Calendar end = Calendar.getInstance(); end.setTimeInMillis(getDayStartTime(time)); end.set(Calendar.DAY_OF_MONTH, end.getActualMaximum(Calendar.DAY_OF_MONTH)); end.set(Calendar.HOUR, 23); end.set(Calendar.MINUTE, 59); ...
java
public static EncodedElement getMetadataBlockHeader(boolean lastBlock, MetadataBlockType type, int length) { EncodedElement ele = new EncodedElement(4, 0); int encodedLastBlock = (lastBlock) ? 1:0; ele.addInt(encodedLastBlock, 1); int encodedType = 0; MetadataBlockType[] vals = MetadataBlockTy...
java
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.IDD__UNITBASE: setUNITBASE(UNITBASE_EDEFAULT); return; case AfplibPackage.IDD__XRESOL: setXRESOL(XRESOL_EDEFAULT); return; case AfplibPackage.IDD__YRESOL: setYRESOL(YRESOL_EDEFAULT); return; case...
python
def pauli_product(*elements: Pauli) -> Pauli: """Return the product of elements of the Pauli algebra""" result_terms = [] for terms in product(*elements): coeff = reduce(mul, [term[1] for term in terms]) ops = (term[0] for term in terms) out = [] key = itemgetter(0) ...
java
@Override public final void clearReplyFields() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearReplyFields"); getApi().setChoiceField(JsApiAccess.REPLYDISCRIMINATOR, JsApiAccess.IS_REPLYDISCRIMINATOR_UNSET); getApi().setChoiceField(J...
python
def cached_unless_authenticated(timeout=50, key_prefix='default'): """Cache anonymous traffic.""" def caching(f): @wraps(f) def wrapper(*args, **kwargs): cache_fun = current_cache.cached( timeout=timeout, key_prefix=key_prefix, unless=lambda: current_c...
python
def exif_orientation(im): """ Rotate and/or flip an image to respect the image's EXIF orientation data. """ try: exif = im._getexif() except Exception: # There are many ways that _getexif fails, we're just going to blanket # cover them all. exif = None if exif: ...
python
def note_update(self, note_id, coor_x=None, coor_y=None, width=None, height=None, body=None): """Function to update a note (Requires login) (UNTESTED). Parameters: note_id (int): Where note_id is the note id. coor_x (int): The x coordinates of the note in pix...
java
public static void addConnectionListener (@Nonnull final ConnectionListener aConnectionListener) { ValueEnforcer.notNull (aConnectionListener, "ConnectionListener"); s_aRWLock.writeLocked ( () -> s_aConnectionListeners.add (aConnectionListener)); }
java
public static void validateLifeCycleSignatureExceptParameters(InterceptorMethodKind kind, String lifeCycle, Method m, bool...
java
public int getSerializedDataSize() { // includes signature, option, dataoffset and datalength output int result = (4 << 2); result += (m_dataOffset_ << 1); if (isCharTrie()) { result += (m_dataLength_ << 1); } else if (isIntTrie()) { result += ...
python
def _set_arrayorder(obj, arrayorder='C'): """ Set the memory order of all np.ndarrays in a tofu object """ msg = "Arg arrayorder must be in ['C','F']" assert arrayorder in ['C','F'], msg d = obj.to_dict(strip=-1) account = {'Success':[], 'Failed':[]} for k, v in d.items(): if type(v) is...
python
def create_ambiente_logico(self): """Get an instance of ambiente_logico services facade.""" return AmbienteLogico( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def execute(self, SQL, fetchOne=False): '''Directly execute queries Works on all SELECT, UPDATE, INSERT AND DELETE QUERIES SQL: query to execute fetchOne: bool >> cursor.fetchone() Return: False if an exception occurs True: No errors in queries ...
java
public void setInitialLearningRate(double initialLearningRate) { if(initialLearningRate <= 0 || Double.isInfinite(initialLearningRate) || Double.isNaN(initialLearningRate)) throw new IllegalArgumentException("Learning rate must be a positive constant, not " + initialLearningRate); this.i...
java
public void add(IntFloatVector other) { if (other instanceof IntFloatUnsortedVector) { IntFloatUnsortedVector vec = (IntFloatUnsortedVector) other; for (int i=0; i<vec.top; i++) { this.add(vec.idx[i], vec.vals[i]); } } else { // TODO: Add ...
java
public List getCollectionDescriptors(boolean withInherited) { if(withInherited && getSuperClassDescriptor() != null) { List result = new ArrayList(m_CollectionDescriptors); result.addAll(getSuperClassDescriptor().getCollectionDescriptors(true)); return resul...
java
private static void checkNamedOutput(JobConf conf, String namedOutput, boolean alreadyDefined) { List<String> definedChannels = getNamedOutputsList(conf); if (alreadyDefined && definedChannels.contains(namedOutput)) { throw new IllegalArgumentException("Named output ...
java
public HashMap<FuzzyAllenIntervalConstraint.Type, Double> getPossibilities() { HashMap<FuzzyAllenIntervalConstraint.Type, Double> fr = new HashMap<FuzzyAllenIntervalConstraint.Type, Double>(); for (Type t : Type.values()) fr.put(t, 0.0); for (Type type : types) { for(int t = 0; t < FuzzyAllenIntervalCons...
python
def quarter(dt): """ Return start/stop datetime for the quarter as defined by dt. """ quarters = rrule.rrule( rrule.MONTHLY, bymonth = (1, 4, 7, 10), bysetpos = -1, dtstart = datetime(dt.year, 1, 1), count = 8 ) first_day = quarters.before(dt, True) last_da...
java
public alluxio.grpc.GetMasterIdPOptions getOptions() { return options_ == null ? alluxio.grpc.GetMasterIdPOptions.getDefaultInstance() : options_; }
java
public <T> List<T> getComponentInstancesOfType(Class<T> componentType) { return container.getComponentInstancesOfType(componentType); }
java
private void aztecUserSizeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aztecUserSizeActionPerformed // TODO add your handling code here: aztecUserSizeCombo.setEnabled(true); aztecUserEccCombo.setEnabled(false); encodeData(); }
python
def resize(self, shape): """ Resize all attached buffers with the given shape Parameters ---------- shape : tuple of two integers New buffer shape (h, w), to be applied to all currently attached buffers. For buffers that are a texture, the number of c...
java
protected ArrayModifiableDBIDs initialMedoids(DistanceQuery<V> distQ, DBIDs ids) { if(getLogger().isStatistics()) { getLogger().statistics(new StringStatistic(getClass().getName() + ".initialization", initializer.toString())); } Duration initd = getLogger().newDuration(getClass().getName() + ".initial...
java
public NodeRepresentation createNodeRepresentation(Node node, String mediaTypeHint) { try { NodeRepresentation content = nodeRepresentationService.getNodeRepresentation(node.getNode("jcr:content"), mediaTypeHint); // return nodeRepresentationService.getNodeRepresentation(...
java
private boolean checkBuffer(long offset) throws IOException { if (offset - bufferOffset < 0 || offset - bufferOffset >= currentBufferSize) { // the given offset is not contained in the buffer bufferOffset = offset; int index = 0; input.seek(offset); try { //input.read(buffer, 0...
python
def commit(self, index_update=True, label_guesser_update=True): """ Apply the changes to the index """ logger.info("Index: Commiting changes") self.docsearch.index.commit(index_update=index_update, label_guesser_update=label_guesser_update)
python
def pairwise_intersection(boxlist1, boxlist2): """Compute pairwise intersection areas between boxes. Args: boxlist1: Nx4 floatbox boxlist2: Mx4 Returns: a tensor with shape [N, M] representing pairwise intersections """ x_min1, y_min1, x_max1, y_max1 = tf.split(boxlist1, 4, axis=...
java
@SuppressWarnings({"static-method"}) protected String generateXml(Map<String, Object> map) throws JsonProcessingException { final XmlMapper mapper = new XmlMapper(); return mapper.writerWithDefaultPrettyPrinter().withRootName(XML_ROOT_NAME).writeValueAsString(map); }
java
private MapObject populateRmap(EntityMetadata entityMetadata, Object entity) { MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata() .getMetamodel(entityMetadata.getPersistenceUnit()); Class entityClazz = entityMetadata.getEntityClazz(); EntityTyp...
java
public EClass getIfcSite() { if (ifcSiteEClass == null) { ifcSiteEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(515); } return ifcSiteEClass; }
java
public int command_inout_asynch(final DeviceProxy deviceProxy, final String cmdname, final DeviceData data_in) throws DevFailed { return command_inout_asynch(deviceProxy, cmdname, data_in, false); }
python
def not0(a): """Return u if u!= 0, return 1 if u == 0""" return matrix(list(map(lambda x: 1 if x == 0 else x, a)), a.size)
python
def refine_cell(self, tilde_obj): ''' NB only used for perovskite_tilting app ''' try: lattice, positions, numbers = spg.refine_cell(tilde_obj['structures'][-1], symprec=self.accuracy, angle_tolerance=self.angle_tolerance) except Exception as ex: self.error = 'Symmetr...
python
def column_widths(self, size, focus=False): """ Return a list of column widths. 0 values in the list mean hide corresponding column completely """ maxcol = size[0] self._cache_maxcol = maxcol widths = [width for i, (w, (t, width, b)) in enumerate(self.contents)] ...
python
def cbpdn_xstep(k): """Do the X step of the cbpdn stage. The only parameter is the slice index `k` and there are no return values; all inputs and outputs are from and to global variables. """ YU = mp_Z_Y[k] - mp_Z_U[k] b = mp_DSf[k] + mp_xrho * sl.rfftn(YU, None, mp_cri.axisN) if mp_cri.Cd ...
python
def init_tasks(): """ Performs basic setup before any of the tasks are run. All tasks needs to run this before continuing. It only fires once. """ # Make sure exist are set if "exists" not in env: env.exists = exists if "run" not in env: env.run = run if "cd" not in en...
python
def gen_password(password, crypt_salt=None, algorithm='sha512'): ''' .. versionadded:: 2014.7.0 Generate hashed password .. note:: When called this function is called directly via remote-execution, the password argument may be displayed in the system's process list. This may b...
java
public WorkflowTriggerCallbackUrlInner listContentCallbackUrl(String resourceGroupName, String integrationAccountName, String mapName, GetCallbackUrlParameters listContentCallbackUrl) { return listContentCallbackUrlWithServiceResponseAsync(resourceGroupName, integrationAccountName, mapName, listContentCallbackU...
java
public void deleteAllStaticExportPublishedResources(CmsDbContext dbc, int linkType) throws CmsException { getProjectDriver(dbc).deleteAllStaticExportPublishedResources(dbc, linkType); }
python
def decode(dct, intype='json', raise_error=False): """ decode dict objects, via decoder plugins, to new type Parameters ---------- intype: str use decoder method from_<intype> to encode raise_error : bool if True, raise ValueError if no suitable plugin found Examples ------...
java
public final void setTimeZone(final TimeZone timezone) { this.timezone = timezone; if (timezone != null) { getFormat().setTimeZone(timezone); } else { resetTimeZone(); } time = new Time(time, getFormat().getTimeZone(), false); }
java
public static final SerIterable array(final Class<?> valueType) { final List<Object> list = new ArrayList<>(); return new SerIterable() { @Override public SerIterator iterator() { return array(build(), Object.class, valueType); } @Override ...
java
@Override public String disentangle() { final String obfuscated = SimpleObfuscatorExtensions.obfuscateWith(rules, this.key); return disentangle(obfuscated); }