code
stringlengths
10
174k
nl
stringlengths
3
129k
public GenericFeed retrievePageOfMembers(Link next) throws AppsForYourDomainException, MalformedURLException, IOException, ServiceException { return getNextPage(next); }
Retrieves next page of members of a group as a GenericFeed.
public void deleteRow(int selectedRow){ int i=0; for ( final TradelogDetail element : getData().getTradelogDetail()) { if (i == selectedRow) { getData().getTradelogDetail().remove(element); final Vector<Object> currRow=rows.get(selectedRow); rows.remove(currRow); this.fireTableRowsDelet...
deleteRow() -
static String pathToCookiePath(String path){ if (path == null) { return "/"; } int lastSlash=path.lastIndexOf('/'); return path.substring(0,lastSlash + 1); }
Returns a cookie-safe path by truncating everything after the last "/". When request path like "/foo/bar.html" yields a cookie, that cookie's default path is "/foo/".
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value="EI_EXPOSE_REP") public String[] validBaudRates(){ return validSpeeds; }
Get an array of valid baud rates. This is currently just a message saying its fixed
@Override public Vertex parseEquationByteCode(Vertex equation,BinaryData data,Network network) throws IOException { return new SelfDecompiler().parseEquationByteCode(equation,data,network); }
Parse the Self2 equation from bytecode.
protected void finishFont() throws IOException { out=writer.getOutStream(); int glyphCount=glyphByteArrays.size(); int offset=glyphCount * 2; out.writeUI16(offset); for (int i=0; i < glyphCount - 1; i++) { offset+=((byte[])glyphByteArrays.get(i)).length; out.writeUI16(offset); } for (int i=0; i < ...
Description of the Method
public SVG12URIResolver(SVGDocument doc,DocumentLoader dl){ super(doc,dl); }
Creates a new SVG12URIResolver object.
public void localTransactionRolledback(ConnectionEvent event){ }
Ignored event callback
private List<Extension> matchExtensions(List<String> plugins,Extension[] extensions,String contentType){ List<Extension> extList=new ArrayList<Extension>(); if (plugins != null) { for ( String parsePluginId : plugins) { Extension ext=getExtension(extensions,parsePluginId,contentType); if (ext == ...
Tries to find a suitable parser for the given contentType. <ol> <li>It checks if a parser which accepts the contentType can be found in the <code>plugins</code> list;</li> <li>If this list is empty, it tries to find amongst the loaded extensions whether some of them might suit and warns the user.</li> </ol>
public void offline(TungstenProperties params) throws Exception { try { doShutdown(params); context.getEventDispatcher().put(new OfflineNotification()); } catch ( ReplicatorException e) { String pendingError="Replicator service shutdown failed"; if (logger.isDebugEnabled()) logger.debug(pendin...
Puts the replicator immediately into the offline state, which turns off replication. This operation is a hard shutdown that does no clean-up. If clean-up is required, call deferredShutdown() instead.
public static String m2s(Map map){ if (isDebug) { if (map == null) { return ""; } StringBuilder sb=new StringBuilder(); Set set=map.entrySet(); for ( Object aSet : set) { Map.Entry entry=(Map.Entry)aSet; sb.append(entry.getValue()); } return sb.toString(); } return...
map to str
protected int convertText(String text,Locale locale){ return GJLocaleSymbols.forLocale(locale).dayOfWeekTextToValue(text); }
Convert the specified text and locale into a value.
public static <T>T waitForState(Supplier<T> supplier,Predicate<T> predicate,Runnable cleanup,String timeoutMessage) throws Throwable { return waitForState(supplier,predicate,WAIT_ITERATION_SLEEP_MILLIS,WAIT_ITERATION_COUNT,cleanup,timeoutMessage); }
Generic wait function.
@Override public void updateStatus(JobContext jobContext) throws Exception { DbClient dbClient=jobContext.getDbClient(); try { if (_status == JobStatus.IN_PROGRESS) { return; } String opId=getTaskCompleter().getOpId(); _logger.info(String.format("Updating status of job %s to %s",opId,_status.n...
Called to update the job status when the snapshot delete job completes.
private boolean compileSWsequenceZR(int baseRegister,int[] offsets,int[] registers){ for (int i=0; i < registers.length; i++) { if (registers[i] != _zr) { return false; } } for (int i=1; i < offsets.length; i++) { if (offsets[i] != offsets[i - 1] + 4) { return false; } } int offset...
Compile a sequence sw $zr, n($reg) sw $zr, n+4($reg) sw $zr, n+8($reg) ... into System.arraycopy(FastMemory.zero, 0, memoryInt, (n + $reg) >> 2, length)
public ST(String template){ this(STGroup.defaultGroup,template); }
Used to make templates inline in code for simple things like SQL or log records. No formal arguments are set and there is no enclosing instance.
public Value convert(Value v){ try { return v.convertTo(type); } catch ( DbException e) { if (e.getErrorCode() == ErrorCode.DATA_CONVERSION_ERROR_1) { String target=(table == null ? "" : table.getName() + ": ") + getCreateSQL(); throw DbException.get(ErrorCode.DATA_CONVERSION_ERROR_1,v.getSQL(...
Convert a value to this column's type.
public void registerModelUpdatePeriodChangeListener(final PropertyChangeListener listener){ modelUpdatePeriodListeners.add(listener); }
Register a listener which is notified when the modelUpdate period value is changed. Registration is allowed only during
public AccountHeaderBuilder withSelectionListEnabledForSingleProfile(boolean selectionListEnabledForSingleProfile){ this.mSelectionListEnabledForSingleProfile=selectionListEnabledForSingleProfile; return this; }
enable or disable the selection list if there is only a single profile
private OsmUser readUser(){ String rawUserId; String rawUserName; rawUserId=reader.getAttributeValue(null,ATTRIBUTE_NAME_USER_ID); rawUserName=reader.getAttributeValue(null,ATTRIBUTE_NAME_USER); if (rawUserId != null) { int userId; String userName; userId=Integer.parseInt(rawUserId); if (rawUs...
Creates a user instance based on the current entity attributes. This includes identifying the case where no user is available.
public static String[] values(){ return ALL_VALUES; }
Returns an array of all values defined in this class.
protected boolean registerProperty(String namespaceURI,String propertyName,String type){ if (namespaceURI == null) { throw new IllegalArgumentException("Argument namespaceURI can not be null"); } if (propertyName == null) { throw new IllegalArgumentException("Argument property name can not be null"); } ...
Registers property with known value type
private void mergeForceCollapse(){ while (stackSize > 1) { int n=stackSize - 2; if (n > 0 && runLen[n - 1] < runLen[n + 1]) n--; mergeAt(n); } }
Merges all runs on the stack until only one remains. This method is called once, to complete the sort.
public Object deserializeObject(File file) throws FileNotFoundException, IOException, ClassNotFoundException { logger.info("Loading cache from file: " + file.getAbsolutePath()); ObjectInputStream ois=new ObjectInputStream(new FileInputStream(file)); Object o=ois.readObject(); ois.close(); logger.info("Done.")...
Loads the cache from file
public Hash(byte[] hash){ if (hash.length != 32) { throw new IllegalArgumentException("Digest length must be 32 bytes for Hash"); } this.bytes=new byte[32]; System.arraycopy(hash,0,this.bytes,0,32); }
create a Hash from a digest
private String secondsToTime(int seconds){ String time=""; String minutesText=String.valueOf(seconds / 60); if (minutesText.length() == 1) minutesText="0" + minutesText; String secondsText=String.valueOf(seconds % 60); if (secondsText.length() == 1) secondsText="0" + secondsText; time=minutesText + ":" ...
Convert seconds to time
public void addChild(ZkDataNode child){ allChildren.add(child); }
Add a ZkData Node to the child.
static char processCharLiteral(String entity) throws IOException, XMLParseException { if (entity.charAt(2) == 'x') { entity=entity.substring(3,entity.length() - 1); return (char)Integer.parseInt(entity,16); } else { entity=entity.substring(2,entity.length() - 1); return (char)Integer.parseInt(entit...
Processes a character literal.
public final RegExp rev(Macros macros){ RegExp1 unary; RegExp2 binary; RegExp content; switch (type) { case sym.BAR: binary=(RegExp2)this; return new RegExp2(sym.BAR,binary.r1.rev(macros),binary.r2.rev(macros)); case sym.CONCAT: binary=(RegExp2)this; return new RegExp2(sym.CONCAT,binary.r2.rev(macros),binar...
Create a new regexp that matches the reverse text of this one.
public final double SFMeanSchemeEntropy(){ return m_delegate.SFMeanSchemeEntropy(); }
Returns the entropy per instance for the scheme.
public static boolean containsOnlyAlphaDigitHyphen(final String... values){ if (values == null) { return true; } return containsOnlyAlphaDigitHyphen(Arrays.asList(values)); }
<p> This is useful since vCard 3.0 often requires the ("X-") properties and groups should contain only alphabets, digits, and hyphen. </p> <p> Note: It is already known some devices (wrongly) outputs properties with characters which should not be in the field. One example is "X-GOOGLE TALK". We accept such kind of inpu...
public void appendBoolean(boolean val){ buf[pos++]=(byte)(val ? 1 : 0); }
Append a boolean value to the message.
@SuppressWarnings({"rawtypes","unchecked"}) @Override public java_cup.runtime.Symbol do_action(int act_num,java_cup.runtime.lr_parser parser,java.util.Stack stack,int top) throws java.lang.Exception { return action_obj.CUP$Parser$do_action(act_num,parser,stack,top); }
Invoke a user supplied parse action.
public int hashCode(){ long bits=java.lang.Double.doubleToLongBits(getX()); bits+=java.lang.Double.doubleToLongBits(getY()) * 37; bits+=java.lang.Double.doubleToLongBits(getWidth()) * 43; bits+=java.lang.Double.doubleToLongBits(getHeight()) * 47; return (((int)bits) ^ ((int)(bits >> 32))); }
Returns the hashcode for this <code>Ellipse2D</code>.
public Epoch createEpoch(ServerViewController recManager){ epochsLock.lock(); Set<Integer> keys=epochs.keySet(); int max=-1; for ( int k : keys) { if (k > max) max=k; } max++; Epoch epoch=new Epoch(recManager,this,max); epochs.put(max,epoch); epochsLock.unlock(); return epoch; }
Creates a epoch associated with this consensus, supposedly the next
public void validateParseTree(DMLProgram dmlp) throws LanguageException, ParseException, IOException { boolean fWriteRead=prepareReadAfterWrite(dmlp,new HashMap<String,DataIdentifier>()); for ( String namespaceKey : dmlp.getNamespaces().keySet()) { for ( String fname : dmlp.getFunctionStatementBlocks(namesp...
Validate parse tree
public ErrorResponse(final TimeInstant timeStamp,final Exception e,final HttpStatus status){ this(timeStamp,e.getMessage(),status.value()); }
Creates a new error response.
@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:04.796 -0500",hash_original_method="152402B1F19F5AF3A149355992289F4E",hash_generated_method="5A7C233B5CE9F29C1DD832CCE8FC99D4") static Item retrieveItem(ComprehensionTl...
Retrieves Item information from the COMPREHENSION-TLV object.
public ECPair transform(ECPair cipherText){ if (key == null) { throw new IllegalStateException("ECNewPublicKeyTransform not initialised"); } ECDomainParameters ec=key.getParameters(); BigInteger n=ec.getN(); ECMultiplier basePointMultiplier=createBasePointMultiplier(); BigInteger k=ECUtil.generateK(n,ra...
Transform an existing cipher text pair using the ElGamal algorithm. Note: the input cipherText will need to be preserved in order to complete the transformation to the new public key.
@SuppressWarnings("UnusedReturnValue") public boolean signOut(Context ctx,String providerName){ Context appContext=ctx.getApplicationContext(); CookieManager cookieManager=CookieManager.getInstance(); cookieManager.removeAllCookie(); if (providerName != null) { if (socialAuthManager.getConnectedProvidersIds...
Signs out the user out of current provider
public static void debug(String trace){ log.debug(trace); }
Used to debug program action. Actually shorthand for <br> <code> Tracer.trace(trace, Tracer.DEBUG) </code>
public static void startCalendarMetafeedSync(Account account){ Bundle extras=new Bundle(); extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL,true); extras.putBoolean("metafeedonly",true); ContentResolver.requestSync(account,Calendars.CONTENT_URI.getAuthority(),extras); }
Checks the server for an updated list of Calendars (in the background). If a Calendar is added on the web (and it is selected and not hidden) then it will be added to the list of calendars on the phone (when this finishes). When a new calendar from the web is added to the phone, then the events for that calendar are a...
public static byte[] toBytes(String value){ return doToBytes(value,"UTF-8"); }
Encodes the given string as bytes in UTF-8 encoding.
public Builder newBuilder(){ return new Builder(this); }
Creates a new Builder using the current values.
public void addAll(Iterator<? extends Number> values){ while (values.hasNext()) { add(values.next().doubleValue()); } }
Adds the given values to the dataset.
public List<Integer> emit(Tuple anchor,List<Object> tuple){ return emit(Utils.DEFAULT_STREAM_ID,anchor,tuple); }
Emits a new tuple to the default stream anchored on a single tuple. The emitted values must be immutable.
public static double squarePointsToMillis(double area){ return squareInchToMillis(squarePointsToInch(area)); }
Converts an area measure in points to square millimeters.
public FilledList(final Collection<? extends T> collection){ super(collection); for ( final T t : collection) { Preconditions.checkNotNull(t,"Error: Can not add null-elements to filled lists"); } }
Creates a filled list from a collection.
public MLetObjectInputStream(InputStream in,MLet loader) throws IOException, StreamCorruptedException { super(in); if (loader == null) { throw new IllegalArgumentException("Illegal null argument to MLetObjectInputStream"); } this.loader=loader; }
Loader must be non-null;
public boolean isShowingPopup(){ return getListPopupWindow().isShowing(); }
Gets whether the popup window with activities is shown.
public WebPermission(String name,String... roles){ this(name,null,roles); }
New instance requiring an authenticated user with specific roles.
public void clear(){ messages=Collections.emptyList(); isMessagesListMutable=false; if (builders != null) { for ( SingleFieldBuilder<MType,BType,IType> entry : builders) { if (entry != null) { entry.dispose(); } } builders=null; } onChanged(); incrementModCounts(); }
Removes all of the elements from this list. The list will be empty after this call returns.
private byte deltaMarkState(boolean increment){ byte mask=(byte)(((1 << Options.markSweepMarkBits.getValue()) - 1) << COUNT_BASE); byte rtn=(byte)(increment ? markState + MARK_COUNT_INCREMENT : markState - MARK_COUNT_INCREMENT); rtn&=mask; if (VM.VERIFY_ASSERTIONS) VM.assertions._assert((markState & ~MARK_COU...
Return the mark state incremented or decremented by one.
@Override public void eUnset(int featureID){ switch (featureID) { case SexecPackage.TIME_EVENT__PERIODIC: setPeriodic(PERIODIC_EDEFAULT); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static void saveClassBackup(String className,ClassLoader loader,byte[] classBytes) throws IOException { long t0=System.nanoTime(); try { File bkpFile=getClassFile(className,loader); if (bkpFile.exists()) { throw new Profiler4JError("Backup file already exists: " + bkpFile); } Log.print(...
Saves the bytes of a given class in the backup directory.
public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity,GT_Recipe aRecipe,boolean aNotUnificated,long aVoltage,FluidStack[] aFluids,ItemStack aSpecialSlot,ItemStack... aInputs){ if (mRecipeList.isEmpty()) return null; if (GregTech_API.sPostloadFinished) { if (mMinimalInputFluids > 0) { if (aFlu...
finds a Recipe matching the aFluid and ItemStack Inputs.
public CUDA_TEXTURE_DESC(){ }
Creates a new, uninitialized CUDA_TEXTURE_DESC
final public int hashCode(){ final char[] a=pattern; final int l=a.length; int h; for (int i=h=0; i < l; i++) h=31 * h + a[i]; return h; }
Returns a hash code for this text pattern. <P>The hash code of a text pattern is the same as that of a <code>String</code> with the same content (suitably lower cased, if the pattern is case insensitive).
public static JNIWriter instance(Context context){ JNIWriter instance=context.get(jniWriterKey); if (instance == null) instance=new JNIWriter(context); return instance; }
Get the ClassWriter instance for this context.
public BusinessObjectFormatCreateRequest createBusinessObjectFormatCreateRequest(String namespaceCode,String businessObjectDefinitionName,String businessObjectFormatUsage,String businessObjectFormatFileType,String partitionKey,String description,List<Attribute> attributes,List<AttributeDefinition> attributeDefinitions,...
Creates a business object format create request.
public void clear(){ oredCriteria.clear(); orderByClause=null; distinct=false; }
This method was generated by MyBatis Generator. This method corresponds to the database table comment
public static void addQueryOrTemplateCalls(Resource cls,Property predicate,List<QueryOrTemplateCall> results){ List<Statement> ss=JenaUtil.listAllProperties(cls,predicate).toList(); if (ss.isEmpty() && cls != null && cls.isURIResource()) { Template template=SPINModuleRegistry.get().getTemplate(cls.getURI(),null...
Collects all queries or template calls at a given class.
public static void main(String[] args){ int n=StdIn.readInt(); int source=2 * n; int sink=2 * n + 1; EdgeWeightedDigraph G=new EdgeWeightedDigraph(2 * n + 2); for (int i=0; i < n; i++) { double duration=StdIn.readDouble(); G.addEdge(new DirectedEdge(source,i,0.0)); G.addEdge(new DirectedEdge(i + n...
Reads the precedence constraints from standard input and prints a feasible schedule to standard output.
private void initResponseSource() throws IOException { responseSource=ResponseSource.NETWORK; if (!policy.getUseCaches()) return; OkResponseCache responseCache=client.getOkResponseCache(); if (responseCache == null) return; CacheResponse candidate=responseCache.get(uri,method,requestHeaders.getHeaders().t...
Initialize the source for this response. It may be corrected later if the request headers forbids network use.
public boolean startDrag(int position,int deltaX,int deltaY){ int dragFlags=0; if (mSortEnabled && !mIsRemoving) { dragFlags|=DragSortListView.DRAG_POS_Y | DragSortListView.DRAG_NEG_Y; } if (mRemoveEnabled && mIsRemoving) { dragFlags|=DragSortListView.DRAG_POS_X; dragFlags|=DragSortListView.DRAG_NEG...
Sets flags to restrict certain motions of the floating View based on DragSortController settings (such as remove mode). Starts the drag on the DragSortListView.
public void put(String key,String value){ editor.putString(key,value); editor.commit(); }
Stores the given key-value pair in the Murmur generic store.
public void updateSizes(int size){ if (size == LARGE) { setSizeParameters(CIRCLE_DIAMETER_LARGE,CIRCLE_DIAMETER_LARGE,CENTER_RADIUS_LARGE,STROKE_WIDTH_LARGE,ARROW_WIDTH_LARGE,ARROW_HEIGHT_LARGE); } else { setSizeParameters(CIRCLE_DIAMETER,CIRCLE_DIAMETER,CENTER_RADIUS,STROKE_WIDTH,ARROW_WIDTH,ARROW_HEIGHT)...
Set the overall size for the progress spinner. This updates the radius and stroke width of the ring.
public static long rotateLeft(long l,int shift){ return (l << shift) | l >>> (64 - shift); }
Rotate long left by shift bits. bits rotated off to the left are put back on the right
boolean satisfies(SSAOptions d){ if (!scalarValid) { return false; } if (d.getScalarsOnly()) { return true; } if (!heapValid) { return false; } if (backwards != d.getBackwards()) { return false; } if (insertUsePhis != d.getInsertUsePhis()) { return false; } if (insertPEIDeps !=...
Given a desired set of SSA Options, does this set of SSA Options describe enough information to satisfy the desire?
public boolean isAbstract_1(){ return abstract_1; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public synchronized Object put(Object key,Object value){ if (key == null) return null; if (value == null) return remove(key); String stringKey=key.toString(); String stringValue=value.toString(); int index=m_keys.indexOf(key); if (index != -1) return m_values.set(index,stringValue); m_values.add(str...
Put key/value
public static int size(){ return _size; }
Number of columns (non terminals) in every row.
protected boolean isSoLingerChanged(){ return true; }
Returns <tt>true</tt> if and only if the <tt>soLinger</tt> property has been changed by its setter method. The system call related with the property is made only when this method returns <tt>true</tt>. By default, this method always returns <tt>true</tt> to simplify implementation of subclasses, but overriding the de...
@Override public void agentActed(Agent agent,Action command,Environment source){ String msg=""; if (env.getAgents().size() > 1) msg="A" + env.getAgents().indexOf(agent) + ": "; notify(msg + command.toString()); if (command instanceof MoveToAction) { updateTrack(agent,getMapEnv().getAgentLocation(agent)); ...
Reacts on environment changes and updates the tracks.
final public boolean isPrimaryIndex(){ return this == SPO || this == SPOC; }
Return <code>true</code> if this is the primary index for the relation.
public HtmlRegularNode addSimpleNode(String tag,String text){ HtmlRegularNode t=simpleNode(tag,text); addBodyNode(t); return t; }
Add a node of any type that contains a string
@Override public String toString(){ String val=new String(); val="Report(messageId="; val+=messageId; val+=")"; return val; }
Useful for debugging purposes.
private void noSuccessor(){ if (compute == FRAMES) { Label l=new Label(); l.frame=new Frame(); l.frame.owner=l; l.resolve(this,code.length,code.data); previousBlock.successor=l; previousBlock=l; } else { currentBlock.outputStackMax=maxStackSize; } currentBlock=null; }
Ends the current basic block. This method must be used in the case where the current basic block does not have any successor.
public void windowClosing(java.awt.event.WindowEvent e){ doneButtonActionPerformed(); }
Do the done action if the window is closed early.
public void backfill() throws InterruptedException, GondolaException { MessagePool pool=gondola.getMessagePool(); Rid rid=new Rid(); Rid savedRid=new Rid(); while (true) { channel.awaitOperational(); int startIndex=-1; cmember.saveQueue.getLatestWait(savedRid); lock.lock(); try { if (b...
There are three stages in this method: 1. Determine where to start backfilling for this peer. 2. Construct a single message filled with batched commands. 3. Send the message and update state.
public Element store(Object o){ MergSD2SignalHead p=(MergSD2SignalHead)o; Element element=new Element("signalhead"); element.setAttribute("class",this.getClass().getName()); element.setAttribute("systemName",p.getSystemName()); element.addContent(new Element("systemName").addContent(p.getSystemName())); ele...
Default implementation for storing the contents of a MergSD2SignalHead
static String parseRoleIdentifier(final String trackingId){ if (StringUtil.isNullOrWhiteSpace(trackingId) || !trackingId.contains(TRACKING_ID_TOKEN_SEPARATOR)) { return null; } return trackingId.substring(trackingId.indexOf(TRACKING_ID_TOKEN_SEPARATOR)); }
parses ServiceBus role identifiers from trackingId
public final void connectTarget(boolean secure){ if (this.connected) { throw new IllegalStateException("Already connected."); } this.connected=true; this.secure=secure; }
Tracks connecting to the target.
public static String computeCodebase(String name,String jarFile,int port,String srcRoot,String mdAlgorithm) throws IOException { if (name == null) throw new NullPointerException("name cannot be null"); if (jarFile == null) throw new NullPointerException("jarFile cannot be null"); if (port < 0) throw new Ill...
Using the given parameters in the appropriate manner, this method constructs and returns a <code>String</code> whose value is a valid Java RMI <i>codebase</i> specification. This method returns a codebase supporting one of two possible protocols: the standard <i>http</i> protocol, or the Jini <i>httpmd</i> protocol; wh...
public static ComponentUI createUI(JComponent c){ return xWindowsButtonUI; }
Creates the ui.
public int size(){ return size; }
Returns buffer size.
public Restricted(int i){ cusip=1000000000 - i; String[] arr1={"moving","binding","non binding","not to exceed","storage","auto transport","mortgage"}; quoteType=arr1[i % 7]; uniqueQuoteType="quoteType" + Integer.toString(i); price=(i / 10) * 8; minQty=i + 100; maxQty=i + 1000; if ((i % 12) == 0) { ...
Creates a new instance of Restricted
public boolean canExtractItem(int slot,ItemStack stack,int side){ return slot > 2; }
Returns true if automation can extract the given item in the given slot from the given side. Args: Slot, item, side
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public ApexClassCodeCoverageBean[] calculateAggregatedCodeCoverageUsingToolingAPI(){ PartnerConnection connection=ConnectionHandler.getConnectionHandlerInstance().getConnection(); ApexClassCodeCoverageBean[] apexClassCodeCoverageBeans=null; String[] classesAsArray=null; if (CommandLineArguments.getClassManifest...
Calculate Aggregated code coverage results for the Apex classes using Tooling API's
public boolean[] readBoolArray(final int items) throws IOException { int pos=0; byte[] buffer; if (items < 0) { buffer=new byte[INITIAL_ARRAY_BUFFER_SIZE]; while (true) { final int read=this.read(buffer,pos,buffer.length - pos); if (read < 0) { break; } pos+=read; if ...
Read array of boolean values.
@Deprecated public int deleteNotebook(LinkedNotebook linkedNotebook) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook=getAsyncClient().getClient().getSharedNotebookByAuth(getAuthenticationToken()); Long[] ids={sharedNotebook.getId()}; getAsyncClient(...
Providing a LinkedNotebook referencing a linked account, perform a delete. Synchronous call
private void mergeCollapse(){ while (stackSize > 1) { int n=stackSize - 2; if (n > 0 && runLen[n - 1] <= runLen[n] + runLen[n + 1]) { if (runLen[n - 1] < runLen[n + 1]) n--; mergeAt(n); } else if (runLen[n] <= runLen[n + 1]) { mergeAt(n); } else { break; } } }...
Examines the stack of runs waiting to be merged and merges adjacent runs until the stack invariants are reestablished: 1. runLen[i - 3] > runLen[i - 2] + runLen[i - 1] 2. runLen[i - 2] > runLen[i - 1] This method is called each time a new run is pushed onto the stack, so the invariants are guaranteed to hold for i < st...
public IterativeTrainingPanel(final NetworkPanel networkPanel,final IterableTrainer trainer){ iterativeControls=new IterativeControlsPanel(networkPanel,trainer); if (trainer != null) { trainingSetPanel=new TrainingSetPanel(trainer.getTrainableNetwork(),3); } else { trainingSetPanel=new TrainingSetPanel()...
Construct a rule chooser panel.
@Override public void report(){ Instrumentation.disableInstrumentation(); VM.sysWrite("Printing " + dataName + ":\n"); VM.sysWrite("--------------------------------------------------\n"); double total=0; double methodEntryTotal=0; double backedgeTotal=0; for ( String stringName : stringToCounterMap.keySe...
Called at end when data should dump its contents.
public String numClustersTipText(){ return "set number of clusters. -1 to select number of clusters " + "automatically by cross validation."; }
Returns the tip text for this property
@Override public synchronized boolean isClosed(){ return mBitmaps == null; }
Returns whether this instance is closed.
public void drawTitle(Canvas canvas,int x,int y,int width,Paint paint){ if (mRenderer.isShowLabels()) { paint.setColor(mRenderer.getLabelsColor()); paint.setTextAlign(Align.CENTER); paint.setTextSize(mRenderer.getChartTitleTextSize()); drawString(canvas,mRenderer.getChartTitle(),x + width / 2,y + mRen...
The graphical representation of the round chart title.
public RpcClient peerWith(String host,int port,Bootstrap bootstrap,Map<String,Object> attributes) throws IOException { InetSocketAddress remoteAddress=new InetSocketAddress(host,port); return peerWith(remoteAddress,bootstrap,attributes); }
Create a new client with the given attributes to the remoteAddress.
protected void afterInit(SiteRun run) throws Exception { }
Invoked after site init is called.