code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
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 void clearChoices(){
if (mCheckedStates != null) {
mCheckedStates.clear();
}
if (mCheckedIdStates != null) {
mCheckedIdStates.clear();
}
mCheckedCount=0;
updateOnScreenCheckedViews();
}
| Clears any choices previously set. |
private Set<Integer> doubleCheckAssociatedArticles(Set<Integer> idsToDoubleCheck,Set<Integer> blIds) throws WikiApiException {
if (idsToDoubleCheck.size() > 20000) {
getLogger().info("You want to double check " + idsToDoubleCheck.size() + " articles in the whitelist. This can take a very long time."+ System.getPr... | Double checks a list of page ids and checks for each id that belongs to a discussion page the corresponding article if it is blacklisted<br/> <br/> This is an rather expensive operation! |
protected Date parseMathString(DateMathParser parser,String datemathfmt) throws ParseException {
return parser.parseMath(datemathfmt);
}
| NOTE: declared as a method to allow for extensibility |
public static PGPPublicKey convert(PublicKeyStore publicKey) throws PGPException {
return PGPKeyUtil.readPublicKey(new ByteArrayInputStream(publicKey.getKeyData()));
}
| Returns PGPPublicKey instance that corresponds to the given Security key. |
public boolean isLightWeightPopupEnabled(){
return lightWeightPopupEnabled;
}
| Returns true if lightweight (all-Java) <code>Tooltips</code> are in use, or false if heavyweight (native peer) <code>Tooltips</code> are being used. |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
public void addParticipantListener(PacketListener listener){
connection.addPacketListener(listener,presenceFilter);
connectionListeners.add(listener);
}
| Adds a packet listener that will be notified of any new Presence packets sent to the group chat. Using a listener is a suitable way to know when the list of occupants should be re-loaded due to any changes. |
protected void stopping(){
nodeCacheMomento.restore();
if (momentos != null) {
for (int i=0; i < momentos.length; i++) {
momentos[i].restore();
}
}
}
| Called when the animation is stopping |
public BufferedDataInputStream(InputStream o,int bufLength){
super(o,bufLength);
}
| Create a BufferedInputStream based on a input stream with a specified buffer size. |
public static <EX extends Throwable>EX throwDeepCauseChecked(Throwable t,Class<? extends EX> clazz) throws EX {
if (t == null) {
throw new NullPointerException();
}
Error firstError=null;
EX firstEX=null;
RuntimeException firstRTE=null;
for (Throwable tt=t; tt != null; tt=tt.getCause()) {
firstError... | Always throw an exception; based on <code>t</code>. The <code>getCause</code> chain of <code>t</code> is analyzed, and then, an appropriate Throwable is thrown, with preference as follows: <ol> <li>An Error.</li> <li>An exception that is of type <code>clazz</code> (or a subtype).</li> <li>A runtime exception.</li> <li... |
public static int readInts(final File f,final int fileOffset,final int fileEnd,final CommonIndex a,final long offset,final long addend) throws IOException {
final int length=(fileEnd - fileOffset) * 4;
final byte[] b=new byte[length];
try (InputStream stream=new FileInputStream(f)){
int remaining=fileOffset *... | Read an array of longs from a file. |
@RolesAllowed({"PLATFORM_OPERATOR"}) public Map<String,Properties> loadMessageProperties(String languageCode) throws ObjectNotFoundException {
Map<String,Properties> propertiesMap=loadStandardLanguageProperties(PROPERTY_TYPE_MESSAGE);
if (languageCode != null && !propertiesMap.containsKey(languageCode)) {
Prope... | Load properties for user interface labels:marketplace user interface,("blue") administration portal and including messages |
public void generate(final long countToGenerate){
log.info("Starting to generate {} key pairs using the two layered stream approach",countToGenerate);
final long blockCount=countToGenerate / generationBlockSize + 1;
rangeClosed(0,blockCount).mapToObj(null).forEach(null);
flushWriter();
logDurationStatistics()... | This version of the generation uses 2 levels of java 8 streams: 1) at the top there is a serial stream, summarizing the statistics and persisting into the output stream happen at this level 2) at the lower level there is a parallel stream created by createKeyPairBlockStream doing the generation and serialization in par... |
public boolean onNavigateUpFromChild(Activity child){
return onNavigateUp();
}
| This is called when a child activity of this one attempts to navigate up. The default implementation simply calls onNavigateUp() on this activity (the parent). |
public CustomElement(String value,String comment){
this.value=value;
}
| Creates a custom element with the value and the comment set. |
public SpecificMessage(String m,int l){
super(m,l);
}
| This ctor interprets the String as the exact sequence to send, byte-for-byte. |
public void createTable(Table t,boolean replace) throws SQLException {
String orderCol=t.getAllColumns().get(0).getName();
boolean comma=false;
if (replace) dropTable(t);
else {
if (tableExists(t)) return;
}
String temporary=t.isTemporary() ? "TEMPORARY " : "";
String SQL="CREATE " + temporary + ... | Ensure projection is created for new table. (Otherwise metadata operations may fail if we try to select off a new table.) |
private static void appendDefaultValue(StringBuilder sb,FieldType fieldType,Object defaultValue){
if (fieldType.isEscapedDefaultValue()) {
appendEscapedWord(sb,defaultValue.toString());
}
else {
sb.append(defaultValue);
}
}
| Output the SQL type for the default value for the type. |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
public void updateUI(){
setUI((ScrollPaneUI)UIManager.getUI(this));
}
| Replaces the current <code>ScrollPaneUI</code> object with a version from the current default look and feel. To be called when the default look and feel changes. |
private void removeSessionFile(){
File fileNew=(File)session.get(Constants.SESSION_FILE);
if (fileNew != null && fileNew.exists()) {
fileNew.delete();
}
session.remove(Constants.SESSION_FILE);
session.remove(Constants.SESSION_FILE_NAME);
session.remove(Constants.SESSION_FILE_CONTENT_TYPE);
}
| Remove any previous uploaded file in temporal directory. And clean some session variables used to confirm overwrite action. |
@HLEFunction(nid=0xE855BF76,version=150,checkInsideInterrupt=true) public int __sceSasSetOutputmode(int sasCore,int outputMode){
checkSasHandleGood(sasCore);
this.outputMode=outputMode;
return 0;
}
| (Unknown) Set the output mode. |
public Info(){
}
| Constructs a new Info. |
protected boolean isOutgoingDiscoveryAllowed(DatapathId sw,OFPort port,boolean isStandard,boolean isReverse){
if (isLinkDiscoverySuppressed(sw,port)) {
return false;
}
IOFSwitch iofSwitch=switchService.getSwitch(sw);
if (iofSwitch == null) {
return false;
}
if (port == OFPort.LOCAL) return false;
... | Check if outgoing discovery messages are enabled or not. |
@Override public boolean equals(Object compareKey){
if (this == compareKey) return true;
else if (compareKey instanceof MonKeyBase) {
MonKeyBase key=(MonKeyBase)compareKey;
return keyMap.equals(key.getMonKeyMap());
}
else return false;
}
| This method is called automatically by a HashMap when this class is used as a HashMap key. A Coordinate is considered equal if its x and y variables have the same value. |
public void test_getPrimeExponentP(){
assertEquals("invalid prime exponent P",Util.rsaCrtParam.getPrimeExponentP(),key.getPrimeExponentP());
}
| java.security.interfaces.RSAPrivateCrtKey #getPrimeExponentP() |
protected void processMouseEvent(final MouseEvent e){
if (myInplaceComponent != null && (MouseEvent.MOUSE_PRESSED == e.getID() || MouseEvent.MOUSE_RELEASED == e.getID())) {
finishInplaceEditing();
}
super.processMouseEvent(e);
}
| When there is an inplace editor we "listen" all mouse event and finish editing by any MOUSE_PRESSED or MOUSE_RELEASED event. We are acting like yet another glass pane over the standard glass layer. |
public void addPollMessage(MarklinMessage mm,MarklinListener ml){
mm.setTimeout(500);
for ( PollMessage pm : pollQueue) {
if (pm.getListener() == ml && pm.getMessage().toString().equals(mm.toString())) {
log.debug("Message is already in the poll queue so will not add");
return;
}
}
PollMess... | As we have to poll the tams system to get updates we put request into a queue and allow the the abstrct traffic controller to handle them when it is free. |
private boolean findCoordinator(){
SearchState state=searchState;
assert this.localAddress != null;
if (!state.hasContactedAJoinedLocator && state.view != null) {
return findCoordinatorFromView();
}
String dhalgo=services.getConfig().getDistributionConfig().getSecurityUDPDHAlgo();
FindCoordinatorRequest... | This contacts the locators to find out who the current coordinator is. All locators are contacted. If they don't agree then we choose the oldest coordinator and return it. |
public final void sendMessage(Message msg){
SmHandler smh=mSmHandler;
if (smh == null) return;
smh.sendMessage(msg);
}
| Enqueue a message to this state machine. Message is ignored if state machine has quit. |
public void generateOutput() throws Exception {
BufferedOutputStream ostrm;
PostscriptGraphics psg;
ostrm=null;
try {
ostrm=new BufferedOutputStream(new FileOutputStream(getFile()));
psg=new PostscriptGraphics(getComponent().getHeight(),getComponent().getWidth(),ostrm);
psg.setFont(getComponent().ge... | generates the actual output |
public JScrollBar createHorizontalScrollBar(){
return new ScrollBar(JScrollBar.HORIZONTAL);
}
| Returns a <code>JScrollPane.ScrollBar</code> by default. Subclasses may override this method to force <code>ScrollPaneUI</code> implementations to use a <code>JScrollBar</code> subclass. Used by <code>ScrollPaneUI</code> implementations to create the horizontal scrollbar. |
public String write(Integer value){
return value.toString();
}
| This method is used to convert the provided value into an XML usable format. This is used in the serialization process when there is a need to convert a field value in to a string so that that value can be written as a valid XML entity. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:00:10.905 -0500",hash_original_method="06C25D9275C46608400AACFE7B687C39",hash_generated_method="F6FEC691A089DA01633F8C77882C744D") private void replaceTop(Scope topOfStack){
stack.set(stack.size() - 1,topOfStack);
}
| Replace the value on the top of the stack with the given value. |
public Matrix zoom(float scaleX,float scaleY,float x,float y){
Matrix save=new Matrix();
save.set(mMatrixTouch);
save.postScale(scaleX,scaleY,x,y);
return save;
}
| Zooms in or out by the given scale factor. x and y are the coordinates (in pixels) of the zoom center. |
public void putAsString(String key,Boolean value){
String strValue=value.toString();
super.put(key,strValue);
}
| <p> Adds the given <code>Boolean</code> value as a string version to the <code>Job</code>'s data map. </p> |
@Override public void updateScreen(){
nameBox.updateCursorCounter();
Block block=Block.getBlockFromName(nameBox.getText());
((GuiButton)buttonList.get(0)).enabled=nameBox.getText().trim().length() > 0 && block != null;
}
| Called from the main game loop to update the screen. |
public UserModificationConstraintException(String message,UserModificationConstraintExceptionBean bean,Throwable cause){
super(message,bean,cause);
this.bean=bean;
}
| Constructs a new exception with the specified detail message, cause, and bean for JAX-WS exception serialization. |
public CSVResultSetConfiguration(){
}
| This will create a completely empty result set configuration |
public boolean containsValue(float val){
byte[] states=_states;
float[] vals=_values;
for (int i=vals.length; i-- > 0; ) {
if (states[i] == FULL && val == vals[i]) {
return true;
}
}
return false;
}
| checks for the presence of <tt>val</tt> in the values of the map. |
public ResultMatrixSignificance(ResultMatrix matrix){
super(matrix);
}
| initializes the matrix with the values from the given matrix. |
public void close() throws java.io.IOException {
flushBuffer();
m_os.close();
}
| Close the stream, flushing it first. Once a stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously-closed stream, however, has no effect. |
public Iterator<SolrDocument> scroll(SolrQuery query) throws IOException, SolrServerException {
return new IterableSearchResult(solrClient,query);
}
| Retrives SolrDocuments through a paginated iterator. Should not be used to delete documents because of the built-in lazy pagination. |
public GitHubUser createUser(GHUser ghUser) throws IOException {
GitHubUser dtoUser=DtoFactory.getInstance().createDto(GitHubUser.class);
dtoUser.setId(String.valueOf(ghUser.getId()));
dtoUser.setHtmlUrl(ghUser.getHtmlUrl().toString());
dtoUser.setAvatarUrl(ghUser.getAvatarUrl());
dtoUser.setBio(ghUser.getBlo... | Create DTO object of GitHub user from given user |
@Override public void buildCloneFromRow(AbstractRecord databaseRow,JoinedAttributeManager joinManager,Object clone,CacheKey sharedCacheKey,ObjectBuildingQuery sourceQuery,UnitOfWorkImpl unitOfWork,AbstractSession executionSession){
Object clonedAttributeValue=buildAggregateFromRow(databaseRow,clone,null,joinManager,s... | INTERNAL: A combination of readFromRowIntoObject and buildClone. <p> buildClone assumes the attribute value exists on the original and can simply be copied. <p> readFromRowIntoObject assumes that one is building an original. <p> Both of the above assumptions are false in this method, and actually attempts to do both at... |
public void add(String... classNames){
for ( String className : classNames) {
className=className.trim();
openMonFactoryMap.put(className,className);
openMonFactoryMap.put(getJustClassName(className).toLowerCase(),className);
}
}
| Takes a fully qualified class name and puts it in the factory in 2 forms. The full form (i.e. org.automon.implementations.Jamon), and a shortened form 'Jamon'. |
@Override public boolean isModifiable(){
return false;
}
| Getter for property modifiable. |
@ApiOperation(value="Remove specified node (unregister and clean up) for the specified engine") @RequestMapping(value="/engine/{engine}/removenode",method=RequestMethod.POST) @ResponseStatus(HttpStatus.NO_CONTENT) @ResponseBody public final void postRemoveNodeByEngine(@RequestParam(value="nodeId") String nodeId,@PathVa... | Removes (unregisters and cleans up) a node for the single engine |
public synchronized void addRow(final String[] items){
Check.notNull(items,"items");
rows.add(items.clone());
}
| Add a row to the table. A row consists of an array of strings, each string representing an item to appear in a column in that row. If there are more items than columns, items at the end will not be shown. If there are fewer items than columns, columns near the end will be empty. Use <code>null</code>s or empty strings ... |
public HttpException(){
super();
}
| Creates a new HttpException with a <tt>null</tt> detail message. |
@Transactional public static Result postForm(String path){
String action="";
Map<String,String[]> formEncoded=request().body().asFormUrlEncoded();
if (formEncoded != null) {
String[] value=formEncoded.get("action");
if (value != null && value.length > 0) {
action=value[0];
}
}
switch (action) ... | Processes the POST action from the to-do item form. |
public static List<MgmtTargetFilterQuery> toResponse(final List<TargetFilterQuery> filters){
if (CollectionUtils.isEmpty(filters)) {
return Collections.emptyList();
}
return filters.stream().map(null).collect(Collectors.toList());
}
| Create a response for target filter queries. |
public byte[] toByteArray(){
return Arrays.copyOf(buf,position);
}
| Creates a newly allocated byte array. Its size is the current size of this output stream and the valid contents of the buffer have been copied into it. |
public String classIndexTipText(){
return "Index of the class attribute. If set to -1, the last attribute is taken as class attribute.";
}
| Returns the tip text for this property |
public String encode(final long expireTime,final List<byte[]> fields){
Preconditions.checkState(fields.size() <= MAX_FIELD_SIZE,"exceed max field size:" + MAX_FIELD_SIZE);
for ( final byte[] field : fields) {
Preconditions.checkArgument(field.length <= 256,"field must <= 256 bytes");
}
final byte[] randomI... | each field must <= 256 bytes, total max field count is 10 <p> token encode using url safe base64 |
@Override public Thread newThread(Runnable r){
Thread t=new Thread(r,name + "-" + integer.getAndIncrement());
if (t.isDaemon()) t.setDaemon(false);
if (t.getPriority() != Thread.NORM_PRIORITY) t.setPriority(Thread.NORM_PRIORITY);
return t;
}
| Creates a new Thread Object for the ThreadFactory. This is given the proper name for the Thread Pool and is not set as a daemon to assure that it can be easily debugged in profilers and other utilities. |
public String encodeBody(){
return encodeBody(new StringBuffer()).toString();
}
| Encode into a canonical string. |
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... |
private int parseTimeExpression(String timeExpression,TimedTextObject tto,Document doc){
int mSeconds=0;
if (timeExpression.contains(":")) {
String[] parts=timeExpression.split(":");
if (parts.length == 3) {
int h, m;
float s;
h=Integer.parseInt(parts[0]);
m=Integer.parseInt(parts[1]... | returns the number of milliseconds equivalent to this time expression |
public void testGenerateCRLs2() throws Exception {
try {
CertificateFactory.getInstance("X.509").generateCRL((InputStream)null);
fail("CRLException was not thrown");
}
catch ( CRLException e) {
}
}
| java.security.cert.CertificateFactory#generateCRLs(InputStream inStream) |
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. |
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 PShapeOpenGL(PGraphicsOpenGL pg,int kind,float... p){
this(pg,PRIMITIVE);
setKind(kind);
setParams(p);
}
| Create a shape from the PRIMITIVE family, using this kind and these params |
private void updateProgress(String progressLabel,int progress){
if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) {
myHost.updateProgress(progressLabel,progress);
}
previousProgress=progress;
previousProgressLabel=progressLabel;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
public static void checkProtocolVersion(byte protoVer){
if (GridBinaryMarshaller.PROTO_VER != protoVer) throw new BinaryObjectException("Unsupported protocol version: " + protoVer);
}
| Check protocol version. |
private void saveBinaryDataIntoFileSystem(byte[] inflatedData){
if ("".equals(m_archivePathRoot)) {
throw new IllegalArgumentException("no attachmentPath defined");
}
if (inflatedData == null || inflatedData.length == 0) {
throw new IllegalArgumentException("InflatedData is NULL");
}
if (this.get_ID()... | Save to file system. If the MArchive is not saved yet (id==0) it will first save the MArchive object because it uses the id as filename. |
public EntityMode_Basic(EntityLittleMaid pEntity){
super(pEntity);
fusedTiles=new ArrayList<IInventory>();
}
| Wild, Escorter |
@SuppressWarnings({"ResultOfMethodCallIgnored"}) public static void unzip(File zipFile,File toDir,@Nullable IgniteLogger log) throws IOException {
ZipFile zip=null;
try {
zip=new ZipFile(zipFile);
for ( ZipEntry entry : asIterable(zip.entries())) {
if (entry.isDirectory()) {
new File(toDir,... | Unzip file to folder. |
public double linearDistanceSquared(final Vector v){
double deltaX=this.x - v.x;
double deltaY=this.y - v.y;
double deltaZ=this.z - v.z;
return deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ;
}
| Compute the square of a straight-line distance to a point described by the vector taken from the origin. Monotonically increasing for arc distances up to PI. |
protected double calculateLowestVisibleTickValue(){
double unit=getTickUnit().getSize();
double index=Math.ceil(getRange().getLowerBound() / unit);
return index * unit;
}
| Calculates the value of the lowest visible tick on the axis. |
void move(int touchX,int touchY){
setTranslationX(touchX - mRegistrationX + (int)mOffsetX);
setTranslationY(touchY - mRegistrationY + (int)mOffsetY);
}
| Move the window containing this view. |
public DtoPromotionServiceImpl(final DtoFactory dtoFactory,final GenericService<Promotion> promotionGenericService,final AdaptersRepository adaptersRepository){
super(dtoFactory,promotionGenericService,adaptersRepository);
}
| Construct base dto service. |
public int createState(){
return nextState++;
}
| Create a new state. |
@Override protected EClass eStaticClass(){
return RegularExpressionPackage.Literals.REGULAR_EXPRESSION_BODY;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public void notifyDataSetChanged(){
if (noxItemCatalog != null) {
noxItemCatalog.recreate();
createShape();
initializeScroller();
refreshView();
}
}
| Used to notify when the data source has changed and is necessary to re draw the view. |
public static CstDouble make(long bits){
return new CstDouble(bits);
}
| Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance. |
public void removeAncestorListener(AncestorListener listener){
AncestorNotifier ancestorNotifier=getAncestorNotifier();
if (ancestorNotifier == null) {
return;
}
ancestorNotifier.removeAncestorListener(listener);
if (ancestorNotifier.listenerList.getListenerList().length == 0) {
ancestorNotifier.remov... | Unregisters <code>listener</code> so that it will no longer receive <code>AncestorEvents</code>. |
@Override public int hashCode(){
int result;
result=this.rowKeys.hashCode();
result=29 * result + this.columnKeys.hashCode();
result=29 * result + this.rows.hashCode();
return result;
}
| Returns a hashcode for this object. |
public final boolean opt(){
return (getFlags() & F_OPT) != 0;
}
| Optimization flags. There used to be a method optimize() that has been replaced because -O has changed meaning in javac to be replaced with -O and -O:interclass. |
public LogarithmicAxis(String label){
super(label);
setupNumberFmtObj();
}
| Creates a new axis. |
public boolean isShowOnlyMinMaxEnabled(){
return mShowOnlyMinMax;
}
| Returns true if showing only min and max value is enabled. |
public DoubleVector(IDoubleVector vec){
mValues=new double[vec.getLength()];
for (int i=0; i < vec.getLength(); ++i) {
mValues[i]=vec.get(i);
}
}
| Creates a copy of the given vector |
@Override public String toString(){
return "null";
}
| Get the "null" string value. |
@Override protected final long free(){
return youngAvailable();
}
| memory that is free without increasing of total memory taken from os |
public CursorPos(final BlockFace blockFace,final HandType handType,final float x,final float y,final float z){
Validate.notNull(handType,"HandType can't be null.");
this.handType=handType;
if (blockFace != null) {
Validate.isTrue(blockFace.isBasic(),"BlockFace must be simple.");
}
Validate.isTrue(validFlo... | Construct new CursorPos using block coordinates, from 0 to 1 |
public HotSpotForeignCallLinkage register(HotSpotForeignCallLinkage linkage){
assert !foreignCalls.containsKey(linkage.getDescriptor()) : "already registered linkage for " + linkage.getDescriptor();
foreignCalls.put(linkage.getDescriptor(),linkage);
return linkage;
}
| Registers the linkage for a foreign call. |
private void destroyNotification(int notificationId){
if (doesNotificationExist(notificationId)) {
mNotificationManager.cancel(NOTIFICATION_NAMESPACE,notificationId);
mNotifications.delete(notificationId);
updateSharedPreferencesEntry(notificationId,true);
}
}
| Destroys the notification for the id notificationId. |
public Node textNoEncode(final String text) throws IOException {
closeHead();
m_writer.write(text);
m_text++;
return this;
}
| Write out the text without encoding for (X)HTML. <P> The head for the current element is first closed if it was still open. Then the text is NOT encoded before written out. <p> This does not generate the closing tag for the node. More text or embedded nodes can still be output. |
public boolean intersects(Geometry g){
return baseGeom.intersects(g);
}
| Default implementation. |
private void sendQuery(final QueryTask.QuerySpecification spec,final Operation.CompletionHandler handler){
QueryTask task=QueryTask.create(spec).setDirect(true);
Operation queryPost=Operation.createPost(UriUtils.buildUri(getHost(),ServiceUriPaths.CORE_QUERY_TASKS)).setBody(task).setCompletion(handler);
sendReques... | This method sends a Xenon query. |
private void addToken(int start,int end,int tokenType){
int so=start + offsetShift;
addToken(zzBuffer,start,end,tokenType,so);
}
| Adds the token specified to the current linked list of tokens. |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
public KeyUsage(byte[] encoding) throws IOException {
super(encoding);
this.keyUsage=(boolean[])ASN1.decode(encoding);
}
| Creates the extension object on the base of its encoded form. |
public void registerRepeatingJob(Class<? extends Job> jobClass,int intervalInSeconds) throws SchedulerException {
JobDetail job=newJob(jobClass).withIdentity(jobClass.getSimpleName(),DEFAULT_JOB_GROUP).build();
Trigger trigger=newTrigger().withIdentity(jobClass.getSimpleName(),DEFAULT_JOB_GROUP).withSchedule(simple... | Registers a repeating job with the specified repeat interval. |
protected int read(){
int curByte=0;
try {
curByte=(rawData.get() & 0xFF);
}
catch ( final Exception e) {
status=STATUS_FORMAT_ERROR;
}
return curByte;
}
| Reads a single byte from the input stream. |
public IgniteCachePartitionedQueryMultiThreadedSelfTest(){
super(false);
}
| Don't start grid by default. |
public static <K,V>ImmutableListMultimap<K,V> of(K k1,V v1){
ImmutableListMultimap.Builder<K,V> builder=ImmutableListMultimap.builder();
builder.put(k1,v1);
return builder.build();
}
| Returns an immutable multimap containing a single entry. |
public void testBug68733() throws Exception {
Properties props=new Properties();
props.setProperty("loadBalanceStrategy",ForcedLoadBalanceStrategy.class.getName());
props.setProperty("loadBalancePingTimeout","100");
props.setProperty("autoReconnect","true");
props.setProperty("retriesAllDown","1");
String p... | Tests fix for BUG#68733, ReplicationConnection does not ping all underlying active physical connections to slaves. |
protected void sequence_Disjunction(ISerializationContext context,Disjunction semanticObject){
genericSequencer.createSequence(context,semanticObject);
}
| Contexts: Disjunction returns Disjunction Constraint: ((elements+=Disjunction_Disjunction_0_1_0 elements+=Alternative*) | elements+=Alternative+)? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.