language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def set_applications_from_meta(self, metadata, exclude=None): """ Parses meta and update or create each application :param str metadata: path or url to meta.yml :param list[str] exclude: List of application names, to exclude from meta. This might be need...
python
def node_mustInclude(self, al_mustInclude, ab_reset=False): """ Either appends or resets the <mustInclude> list of snode_current depending on <ab_reset>. """ if ab_reset: self.snode_current.l_mustInclude = al_mustInclude[:] else: ...
java
@Override public void applyUpdater(INDArray gradient, int iteration, int epoch) { if (v == null) throw new IllegalStateException("Updater has not been initialized with view state"); double momentum = config.currentMomentum(iteration, epoch); double learningRate = config.getLearn...
python
def hist(x, mode='overlay', label=None, opacity=None, horz=False, histnorm=None): """Histogram. Parameters ---------- x : array-like mode : str, optional label : TODO, optional opacity : float, optional horz : bool, optional histnorm : None, "percent", "probability", "density", "pro...
python
def combine_sources(sources, chunksize=None): r""" Combines multiple data sources to stream from. The given source objects (readers and transformers, eg. TICA) are concatenated in dimension axis during iteration. This can be used to couple arbitrary features in order to pass them to an Estimator expecting ...
python
def multinomial_sample(x, vocab_size=None, sampling_method="random", temperature=1.0): """Multinomial sampling from a n-dimensional tensor. Args: x: Tensor of shape [..., vocab_size]. Parameterizes logits of multinomial. vocab_size: Number of classes in multinomial distribution. ...
java
public void execute() { if ( runOnlyAtExecutionRoot && !getProject().isExecutionRoot() ) { getLog().info( "Skip getting the rootlocation in this project because it's not the Execution Root" ); } else { defineProperty( rootLocationProperty, session.getT...
java
public static String extractCommonAncestor(String pattern, String absPath) { pattern = normalizePath(pattern); absPath = normalizePath(absPath); String[] patterEntries = pattern.split("/"); String[] pathEntries = absPath.split("/"); StringBuilder ancestor = new StringBuilder(); ...
java
public static boolean cs_usolve(DZcs U, DZcsa x) { int p, j, n, Up[], Ui[] ; DZcsa Ux = new DZcsa() ; if (!CS_CSC(U) || x == null) return (false) ; /* check inputs */ n = U.n ; Up = U.p ; Ui = U.i ; Ux.x = U.x ; for (j = n - 1 ; j >= 0 ; j--) { x.set(j, cs_cdiv(x.get(j), Ux.get(Up [j+1] - 1))) ;...
python
def getMedia(self): """ Returns list of :class:`~plexapi.base.Playable` which belong to this sync item. """ server = self.server().connect() key = '/sync/items/%s' % self.id return server.fetchItems(key)
java
static Matcher removeSequentialMatchAny(Matcher matcher) { if (matcher instanceof ZeroOrMoreMatcher) { ZeroOrMoreMatcher zm1 = matcher.as(); if (zm1.repeated() instanceof AnyMatcher && zm1.next() instanceof ZeroOrMoreMatcher) { ZeroOrMoreMatcher zm2 = zm1.next().as(); if (zm2.repeated() ...
java
@Override public DescribeListenersResult describeListeners(DescribeListenersRequest request) { request = beforeClientExecution(request); return executeDescribeListeners(request); }
java
@SuppressWarnings("unchecked") public <T, K extends T> K valueByUniqueDeclaredType(final Class<T> type) { return (K) uniqueTypePaths.stream() .filter(it -> type.equals(it.getDeclaredType())) .findFirst() .map(ConfigPath::getValue) .orElse(null)...
python
def edit_conversation(self, id, conversation_starred=None, conversation_subscribed=None, conversation_workflow_state=None, filter=None, filter_mode=None, scope=None): """ Edit a conversation. Updates attributes for a single conversation. """ path = {} data = {} ...
java
private JTable withColRenderers(final JTable table) { // Data renderers final DefaultTableCellRenderer dtcr = new DefaultTableCellRenderer(); // BigDecimal table.setDefaultRenderer(BigDecimal.class, new TableCellRenderer() { public Component getTableCellRendererComponent(fin...
python
def median2D(const, bin1, label1, bin2, label2, data_label, returnData=False): """Return a 2D average of data_label over a season and label1, label2. Parameters ---------- const: Constellation or Instrument bin#: [min, max, number of bins] label#: string i...
java
public void buildConstructorComments(XMLNode node, Content constructorDocTree) { if (!configuration.nocomment) { writer.addComments( (ConstructorDoc) constructors.get(currentConstructorIndex), constructorDocTree); } }
java
public final static <R,T> R foldLeftMapToType(final Stream<T> stream, final Reducer<R,T> reducer) { return reducer.foldMap(stream); }
java
public static Byte toByte(Object o, Byte defaultValue) { if (o instanceof Byte) return (Byte) o; if (defaultValue != null) return new Byte(toByteValue(o, defaultValue.byteValue())); byte res = toByteValue(o, Byte.MIN_VALUE); if (res == Byte.MIN_VALUE) return defaultValue; return new Byte(res); }
python
def set_rest_notification(self, hit_type, url, event_types=None): """ Performs a SetHITTypeNotification operation to set REST notification for a specified HIT type """ return self._set_notification(hit_type, 'REST', url, event_types)
java
public static <P> DirectMetaProperty<P> ofReadOnlyBuildable( MetaBean metaBean, String propertyName, Class<?> declaringType, Class<P> propertyType) { Field field = findField(metaBean, propertyName); return new DirectMetaProperty<>(metaBean, propertyName, declaringType, propertyType, Prope...
python
def probePlayer(requested_player=''): """ Probes the multimedia players which are available on the host system.""" ret_player = None if logger.isEnabledFor(logging.INFO): logger.info("Probing available multimedia players...") implementedPlayers = Player.__subclasses__() if logger.isEnabl...
python
def tensor_to_6component(tensor, frame='USE'): ''' Returns a tensor to six component vector [Mrr, Mtt, Mpp, Mrt, Mrp, Mtp] ''' if 'NED' in frame: tensor = ned_to_use(tensor) return [tensor[0, 0], tensor[1, 1], tensor[2, 2], tensor[0, 1], tensor[0, 2], tensor[1, 2]]
python
def _build_data(self, amplification_group): """ Creates the numpy array tables from the hdf5 tables """ # Determine shape of the tables n_levels = len(amplification_group) # Checks the first group in the amplification group and returns the # shape of the SA array ...
java
@Deprecated public static String getRequestContextPath(ExternalContext ec) { if (!isPortlet(ec)) { return ec.getRequestContextPath(); } else { return null; } }
java
public void updateCondition(UpdateConditionRequest request) { call( new PostRequest(path("update_condition")) .setParam("error", request.getError()) .setParam("id", request.getId()) .setParam("metric", request.getMetric()) .setParam("op", request.getOp()) .setParam("org...
java
private void rebuildIndexOneEntity(String entityTypeId, String untypedEntityId) { LOG.trace("Indexing [{}].[{}]... ", entityTypeId, untypedEntityId); // convert entity id string to typed entity id EntityType entityType = dataService.getEntityType(entityTypeId); if (null != entityType) { Object en...
java
public static synchronized void cancel(TimerTask task) { if (task == null) { return; } task.cancel(); usageCount.decrementAndGet(); if (usageCount.get() == 0) { timer.cancel(); timer = null; } }
python
def schema_map(schema): """Return a valid ICachedItemMapper.map for schema""" mapper = {} for name in getFieldNames(schema): mapper[name] = name return mapper
python
def additions_install(**kwargs): ''' Install VirtualBox Guest Additions. Uses the CD, connected by VirtualBox. To connect VirtualBox Guest Additions via VirtualBox graphical interface press 'Host+D' ('Host' is usually 'Right Ctrl'). See https://www.virtualbox.org/manual/ch04.html#idp52733088 for m...
java
public Set<LdapEntry> searchEntities(String name, String filterExpr, Object[] filterArgs, int scope, List<String> inEntityTypes, List<String> propNames, boolean getMbrshipAttr, boolean getMbrAttr) throws WIMException { return searchEntities(name, filterExpr, filterArgs, ...
java
private void _saveMessages(FacesContext facesContext) { if (isKeepMessages()) { // get all messages from the FacesContext and store // them on the renderMap List<MessageEntry> messageList = null; Iterator<String> iterClientIds = faces...
python
def link_in(self, other, preserve=False): """ Link the *other* module into this one. The *other* module will be destroyed unless *preserve* is true. """ if preserve: other = other.clone() link_modules(self, other)
python
def preview(file): """Render appropiate template with embed flag.""" return render_template( 'invenio_previewer/xml_prismjs.html', file=file, content=render(file), js_bundles=['previewer_prism_js'], css_bundles=['previewer_prism_css'], )
python
async def _report(self): """ Call _update_cb with the status dict as an argument whenever a status update occurs. This method is a coroutine """ while True: oldstatus = dict(self.status) stat = await self._updateq.get() if self._update...
java
public void setDefBInc(Integer newDefBInc) { Integer oldDefBInc = defBInc; defBInc = newDefBInc; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNORG__DEF_BINC, oldDefBInc, defBInc)); }
python
def synchronize_task(self, func, *args, **kwargs): """Run callable in the rpc thread and wait for it to finish. The callable ``func`` will be passed into the EmulationLoop and run there. This method will block until ``func`` is finished and return/raise whatever that callable returns/r...
python
def EnableNetworkInterfaces( self, interfaces, logger, dhclient_script=None): """Enable the list of network interfaces. Args: interfaces: list of string, the output device names to enable. logger: logger object, used to write to SysLog and serial port. dhclient_script: string, the path ...
java
public ValueReference getValueReference(ELContext context) { // Expected to be over-ridden by implementation context.notifyBeforeEvaluation(getExpressionString()); context.notifyAfterEvaluation(getExpressionString()); return null; }
java
public boolean transportInterClusterAuthEnabled() { final boolean interClusterAuthInitiallyDisabled = staticSettings.getAsBoolean(ConfigConstants.SEARCHGUARD_UNSUPPORTED_DISABLE_INTERTRANSPORT_AUTH_INITIALLY, false); if(interClusterAuthInitiallyDisabled) { if(dynamicSgConfig == null...
java
@Override protected void init() { dataJoinNo = StringUtil.getMatchNos(labels, conf.getStrings(SimpleJob.JOIN_DATA_COLUMN)); }
java
private boolean mustParseAsType(Type type) { if (type instanceof Type.Primitive) { // All primitive types must be parsed as types, since their // identifiers are keywords. return true; } else if (type instanceof Type.Record) { // Record types must be parsed as types, since e.g. {int f} is not a // va...
java
public P2SVpnServerConfigurationInner createOrUpdate(String resourceGroupName, String virtualWanName, String p2SVpnServerConfigurationName, P2SVpnServerConfigurationInner p2SVpnServerConfigurationParameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWanName, p2SVpnServerConfigura...
java
public final void entryRuleXBasicForLoopExpression() throws RecognitionException { try { // InternalXbase.g:984:1: ( ruleXBasicForLoopExpression EOF ) // InternalXbase.g:985:1: ruleXBasicForLoopExpression EOF { if ( state.backtracking==0 ) { before(...
python
def _deregister_config_file(self, key): """ Deregister a previously registered config file. The caller should ensure that it was previously registered. """ state = self.__load_state() if 'remove_configs' not in state: state['remove_configs'] = {} state['remov...
python
def recipe_list(backend, kitchen): """ List the Recipes in a Kitchen """ err_str, use_kitchen = Backend.get_kitchen_from_user(kitchen) if use_kitchen is None: raise click.ClickException(err_str) click.secho("%s - Getting the list of Recipes for Kitchen '%s'" % (get_datetime(), use_kitche...
java
public final EObject entryRuleUntilToken() throws RecognitionException { EObject current = null; EObject iv_ruleUntilToken = null; try { // InternalXtext.g:3365:51: (iv_ruleUntilToken= ruleUntilToken EOF ) // InternalXtext.g:3366:2: iv_ruleUntilToken= ruleUntilToken EO...
python
def remove_role(self, groups=None, role_type=RoleTypes.admin): """ Remove user from a role (typically admin) of some groups. :param groups: list of group names the user should NOT have this role for :param role_type: the type of role (defaults to "admin") :return: the User, so yo...
python
async def on_isupport_maxbans(self, value): """ Maximum entries in ban list. Replaced by MAXLIST. """ if 'MAXLIST' not in self._isupport: if not self._list_limits: self._list_limits = {} self._list_limits['b'] = int(value)
java
public static <I, O> SequenceTaggerError evaluateTagger(SequenceTagger<I, O> tagger, Collection<? extends TaggedSequence<I, O>> evaluationData) { MapReduceExecutor executor = MapReduceConfiguration.getMapReduceExecutor(); return executor.mapReduce(evaluationData, new SequenceTaggerEvaluationMapper<I, O>(t...
python
def exists(self, target, path, path_sep="/"): """Check if path refers to an existing path on the device :param target: The device(s) to be targeted with this request :type target: :class:`devicecloud.sci.TargetABC` or list of :class:`devicecloud.sci.TargetABC` instances :param path: The...
java
public PageSnapshot blurExcept(WebElement element) { try{ image = ImageProcessor.blurExceptArea(image, new Coordinates(element,devicePixelRatio)); }catch(RasterFormatException rfe){ throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE,rfe); } ...
python
def add_n_trend(trend_input, average_time, initial_trend, subs, subscript_dict): """Trend. Parameters ---------- trend_input: <string> average_time: <string> trend_initial: <string> subs: list of strings List of strings of subscript indices that corre...
java
public java.util.Map<java.lang.String, java.lang.Long> getValuesMap() { return internalGetValues().getMap(); }
java
@Override public int compare(final Comparable<?> obj1, final Comparable<?> obj2) { return Util.compareAllowNull(obj1, obj2); }
python
def inspect_sensors(self, name=None, timeout=None): """Inspect all or one sensor on the device. Update sensors index. Parameters ---------- name : str or None, optional Name of the sensor or None to get all sensors. timeout : float or None, optional Timeo...
python
def do(self, callback, *userdata): """ The callback and userdata gets stored, and if there is some javascript to add the js code is appended as attribute for the event source """ if hasattr(self.event_method_bound, '_js_code'): self.event_source_instance.attributes[self.e...
java
public static byte[] bigToBytes(BIG big) { byte[] ret = new byte[IdemixUtils.FIELD_BYTES]; big.toBytes(ret); return ret; }
python
def _set_addpath_select(self, v, load=False): """ Setter method for addpath_select, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/addpath_select (container) If this variable is read-only (config: false) in the source YANG fil...
python
def truncate_line(line, colno, max_before, max_after): """ Truncate the line (binary string) so that left of the 1-based colno poasition there are at most max_before characters, and right of the colno position there are at most max_after characters. If truncated, '...' is added before or after to in...
java
public static UUID fromString( String name ) { UUID newUUID = new UUID(); newUUID.uuidValue = name; return newUUID; }
python
def get_expectations_config(self, discard_failed_expectations=True, discard_result_format_kwargs=True, discard_include_configs_kwargs=True, discard_catch_exceptions_kwargs=True, ...
python
def get_sql_results( ctask, query_id, rendered_query, return_results=True, store_results=False, user_name=None, start_time=None): """Executes the sql query returns the results.""" with session_scope(not ctask.request.called_directly) as session: try: return execute_sql_statement...
java
private static List<Tokenizer.Token> toReversePolishNotation(List<Tokenizer.Token> tokens) { LinkedList<Tokenizer.Token> queue = new LinkedList<Tokenizer.Token>(); Stack<Tokenizer.Token> stack = new Stack<Tokenizer.Token>(); for (int i = 0; i < tokens.size(); i++) { Tokenizer.Token ...
python
def statistical_inefficiency(X, truncate_acf=True): """ Estimates the statistical inefficiency from univariate time series X The statistical inefficiency [1]_ is a measure of the correlatedness of samples in a signal. Given a signal :math:`{x_t}` with :math:`N` samples and statistical inefficiency :math:`I...
java
protected void doExecuteListener(Session session, List<Message> messages) throws JMSException { if (!isAcceptMessagesWhileStopping() && !isRunning()) { if (logger.isWarnEnabled()) { logger.warn("Rejecting received messages because of the listener container " +...
python
def report(self, message, http_context=None, user=None): """ Reports a message to Stackdriver Error Reporting https://cloud.google.com/error-reporting/docs/formatting-error-messages :type message: str :param message: A user-supplied message to report :type http_context: :class...
java
public OvhOvhId serviceName_vendor_ovhId_POST(String serviceName, OvhVendorObjectTypeEnum objectType, String vendorId) throws IOException { String qPath = "/dedicatedCloud/{serviceName}/vendor/ovhId"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(...
java
public PGDYpgBase createPGDYpgBaseFromString(EDataType eDataType, String initialValue) { PGDYpgBase result = PGDYpgBase.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
python
def post(self, endpoint, d, *args, **kwargs): """ **post** Make a POST call to a remote endpoint Input: * An endpoint relative to the ``base_url`` * POST data **NOTE**: Passed POST data will be automatically serialized to a JSON string if it's n...
python
def subpackets(*items): """Serialize several GPG subpackets.""" prefixed = [subpacket_prefix_len(item) for item in items] return util.prefix_len('>H', b''.join(prefixed))
java
public static Group getGroupByUnitClass(Class<? extends Unit> unitClass) { readWriteLock.readLock().lock(); try { return searchGroupByUnitClass.get(unitClass); } finally { readWriteLock.readLock().unlock(); } }
python
def get_tabular_stream(self, url, **kwargs): # type: (str, Any) -> tabulator.Stream """Get Tabulator stream. Args: url (str): URL to download **kwargs: headers (Union[int, List[int], List[str]]): Number of row(s) containing headers or list of headers ...
python
def match_input_fmt(self, fmt_list): """Given a list of Fortran format specifiers, e.g., ['I5', '2X', 'F4.1'], this function constructs a list of tuples for matching an input string against those format specifiers.""" rexp_list = [] for fmt in fmt_list: rexp_list.ext...
java
public final void synpred171_Java_fragment() throws RecognitionException { // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:787:17: ( 'if' parExpression ) // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:787:17: 'if' parExpression { match(input,87,FOLLOW_87_in_synpred...
python
def zincrby(self, key, increment, member): """Increment the score of a member in a sorted set. :raises TypeError: increment is not float or int """ if not isinstance(increment, (int, float)): raise TypeError("increment argument must be int or float") fut = self.execu...
python
def _build_graph(self): """ Produce a dependency graph based on a list of tasks produced by the parser. """ self._graph.add_nodes_from(self.tasks) for node1 in self._graph.nodes: for node2 in self._graph.nodes: for input_file in node1.inputs: ...
python
def merge(self, conflicted, tables=[], diff_only=True): """ Merges specific **tables** or all tables of **conflicted** database into the master database. Parameters ---------- conflicted: str The path of the SQL database to be merged into the master. tables: ...
python
def learn(self, grad_arr): ''' Update this Discriminator by ascending its stochastic gradient. Args: grad_arr: `np.ndarray` of gradients. Returns: `np.ndarray` of delta or gradients. ''' deconvolution_layer_list = self.__deconvoluti...
python
def order_by(self, **kwargs): """ Orders the query by the key passed in +kwargs+. Only pass one key, as it cannot sort by multiple columns at once. Raises QueryInvalid if this method is called when there is already a custom order (i.e. this method was already called on this query...
java
public Integer nextValue() { // Regenerate the fixed point representation of p if it has changed. double newP = p.nextValue(); if (pBits == null || newP != lastP) { lastP = newP; pBits = BinaryUtils.convertDoubleToFixedPointBits(newP); } int t...
java
public PactDslJsonRootValue matchUrl(String basePath, Object... pathFragments) { UrlMatcherSupport urlMatcher = new UrlMatcherSupport(basePath, Arrays.asList(pathFragments)); PactDslJsonRootValue value = new PactDslJsonRootValue(); value.setValue(urlMatcher.getExampleValue()); value.setMatcher(value.reg...
java
public Coordinate snap(Coordinate coordinate, double distance) { // Some initialization: calculatedDistance = distance; hasSnapped = false; Coordinate snappingPoint = coordinate; // Go over all geometries and consider only the intersecting ones: for (Geometry geometry : geometries) { if (MathService.isW...
java
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled)...
python
def has_update_permission(self, request, obj): """ Returns True if the requesting user is allowed to update the given object, False otherwise. """ perm_string = '%s.change_%s' % (self.model._meta.app_label, self.model._meta.object_name.lower() ) return request...
python
def parse_opml_file(filename: str) -> OPML: """Parse an OPML document from a local XML file.""" root = parse_xml(filename).getroot() return _parse_opml(root)
java
public String getColumn(String pProperty) { if (mPropertiesMap == null || pProperty == null) return null; return (String) mPropertiesMap.get(pProperty); }
java
public NetworkRequest build() { if (parts.isEmpty()) { throw new IllegalStateException("Multipart body must have at least one part."); } MultipartRequest mrb = new MultipartRequest(type, boundary, parts); Buffer bb = new Buffer(); try { mrb.writeOrCountByt...
python
def parser(self): """ This function returns a parser. The grammar should be like most full text search engines (Google, Tsearch, Lucene). Grammar: - a query consists of alphanumeric words, with an optional '*' wildcard at the end of a word - a sequence ...
java
public static List<Class<?>> resolveGenericsOf(final Type type, final Map<String, Type> generics) { final Type[] typeGenerics = getGenerics(type, generics); if (typeGenerics.length == 0) { return Collections.emptyList(); } final List<Class<?>> res = new ArrayList<Class<?>>();...
python
def pop(self, timeout=None): """ :param timeout: OPTIONAL DURATION :return: None, IF timeout PASSES """ with self.lock: while not self.please_stop: if self.db.status.end > self.start: value = self.db[str(self.start)] ...
python
def parse_create(prs, conn): """Create record. Arguments: prs: parser object of argparse conn: dictionary of connection information """ prs_create = prs.add_parser( 'create', help='create record of specific zone') set_option(prs_create, 'domain') conn_options(prs_creat...
python
def _memory_usage(func, gallery_conf): """Get memory usage of a function call.""" if gallery_conf['show_memory']: from memory_profiler import memory_usage assert callable(func) mem, out = memory_usage(func, max_usage=True, retval=True, multiprocess=True) ...
python
def execute(self, slave_id, route_map): """ Execute the Modbus function registered for a route. :param slave_id: Slave id. :param eindpoint: Instance of modbus.route.Map. """ for index, value in enumerate(self.values): address = self.starting_address + index ...
python
def _extract_subdomain(self, rowdata): """ Extract a single subdomain from a DB cursor Raise SubdomainNotFound if there are no valid rows """ name = str(rowdata['fully_qualified_subdomain']) domain = str(rowdata['domain']) n = str(rowdata['sequence']) enco...
java
public CompletableFuture<Void> unregisterEventProcessor() { TRACE_LOGGER.info(this.hostContext.withHost("Stopping event processing")); if (this.unregistered == null) { // PartitionManager is created in constructor. If this object exists, then // this.partitionManager is not null...
python
def local_time(unix_time, utc_offset, microseconds): """ Returns a UNIX time as a broken down time for a particular transition type. :type unix_time: int :type utc_offset: int :type microseconds: int :rtype: tuple """ year = EPOCH_YEAR seconds = int(math.floor(unix_time)) ...
java
public String generateSecuredApiKey(String privateApiKey, Query query) throws NoSuchAlgorithmException, InvalidKeyException { return generateSecuredApiKey(privateApiKey, query, null); }
java
public Observable<OperationStatusResponseInner> deallocateAsync(String resourceGroupName, String vmScaleSetName) { return deallocateWithServiceResponseAsync(resourceGroupName, vmScaleSetName).map(new Func1<ServiceResponse<OperationStatusResponseInner>, OperationStatusResponseInner>() { @Override ...
java
public void redraw(){ mItemCount = getShouldDrawCount(); mPreviousSelectedIndicator = null; for(View i:mIndicators){ removeView(i); } for(int i =0 ;i< mItemCount; i++){ ImageView indicator = new ImageView(mContext); indicator.setImageDrawable...