code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
ColumnFamily filterColumnFamily(ColumnFamily cached,QueryFilter filter){
if (cached == null) return null;
ColumnFamily cf=cached.cloneMeShallow(ArrayBackedSortedColumns.factory,filter.filter.isReversed());
int gcBefore=gcBefore(filter.timestamp);
filter.collateOnDiskAtom(cf,filter.getIterator(cached),gcBefore... | Filter a cached row, which will not be modified by the filter, but may be modified by throwing out tombstones that are no longer relevant. The returned column family won't be thread safe. |
public boolean isDiscreteMinutes(){
return null == discreteMinutes ? _discreteMinutes : discreteMinutes.get();
}
| Returns true if the minute hand of the clock should move in discrete steps of 1 minute. Otherwise it will move continuously like in an automatic clock. |
public Comparator<? super E> comparator(){
return comparator;
}
| Gets the comparator of the priority queue. |
protected DeclarationImpl(){
super();
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public String parse(String controlTemplate,Context controlContext) throws Exception {
this.controlContext=controlContext;
fillContextDefaults(this.controlContext);
fillContextProperties(this.controlContext);
Template template=getTemplate(controlTemplate,inputEncoding);
StringWriter sw=new StringWriter();
te... | Parse the control template and merge it with the control context. This is the starting point in texen. |
public void onBuildingsToggled(View view){
updateBuildings();
}
| Called when the Buildings checkbox is clicked. |
public static String plus(StringBuilder self,String value){
return self + value;
}
| Appends a String to this StringBuilder. |
@Override public void config(XStream xstream){
xstream.alias("fs-dir",DirectoryElement.class);
xstream.alias("fs-file",FileElement.class);
xstream.alias("fs-relation",FileSystemRelation.class);
}
| Configures the <code>XStream</code> object passed as a parameter such that aliases for classes that will be written to a file are provided to this <code>XStream</code> object. |
public static ArrayList<URLWebPage> readContents(DataStore<String,WebPage> store,Mark requiredMark,String... fields) throws Exception {
ArrayList<URLWebPage> l=new ArrayList<URLWebPage>();
Query<String,WebPage> query=store.newQuery();
if (fields != null) {
query.setFields(fields);
}
Result<String,WebPage>... | Read entries from a data store |
static public String valueOf(double val){
return java.text.NumberFormat.getInstance().format(val);
}
| Get the text representation of a number. Use as a locale-aware replacement for String.valueOf(2.3). |
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){
switch (featureID) {
case UmplePackage.ANONYMOUS_ACTION_1__CODE_LANG_1:
return ((InternalEList<?>)getCodeLang_1()).basicRemove(otherEnd,msgs);
case UmplePackage.ANONYMOUS_ACTION_1__CODE_LANGS_1:
retur... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public MuteData(UUID muter,String reason,Instant endtimestamp){
this(muter,reason);
this.endtimestamp=endtimestamp.getEpochSecond();
}
| Creates the data. |
private void adjustCaret(MouseEvent e){
if ((e.getModifiers() & ActionEvent.SHIFT_MASK) != 0 && getDot() != -1) moveCaret(e);
else positionCaret(e);
}
| Adjusts the caret location based on the MouseEvent. |
public Set<byte[]> hkeys(final byte[] key){
checkIsInMulti();
client.hkeys(key);
final List<byte[]> lresult=client.getBinaryMultiBulkReply();
return new HashSet<byte[]>(lresult);
}
| Return all the fields in a hash. <p> <b>Time complexity:</b> O(N), where N is the total number of entries |
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case ImPackage.SCRIPT_IM__SYMBOL_TABLE:
return getSymbolTable();
}
return super.eGet(featureID,resolve,coreType);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public void initialise(int k) throws Exception {
this.k=k;
initialise(k,epsilon);
}
| Initialises the calculator with the existing value for epsilon |
public void updateCoverRotate(){
mRotateDegrees+=VELOCITY;
mRotateDegrees=mRotateDegrees % 360;
postInvalidate();
}
| Update rotate degree of cover and invalide onDraw(); |
public static ClassificationDataSet readC(int classification_target,Path path,int lines_to_skip,Set<Integer> cat_cols) throws IOException {
return readC(classification_target,path,DEFAULT_DELIMITER,lines_to_skip,DEFAULT_COMMENT,cat_cols);
}
| Reads in a CSV dataset as a classification dataset. Comments assumed to start with the "#" symbol. |
public boolean isFinished(){
return isFinished(getState());
}
| Tests if the task is finished. |
public Object clone(){
try {
ExtendedGeneralPath result=(ExtendedGeneralPath)super.clone();
result.path=(GeneralPath)path.clone();
if (values != null) {
result.values=new float[values.length];
System.arraycopy(values,0,result.values,0,values.length);
}
result.numVals=numVals;
if (t... | Delegates to the enclosed <code>GeneralPath</code>. |
public void trimToSize(){
elements=cern.colt.Arrays.trimToCapacity(elements,size());
}
| Trims the capacity of the receiver to be the receiver's current size. Releases any superfluos internal memory. An application can use this operation to minimize the storage of the receiver. |
public Quaternionf identity(){
MemUtil.INSTANCE.identity(this);
return this;
}
| Set this quaternion to the identity. |
@Override public XMLStreamReader createFilteredReader(XMLStreamReader reader,StreamFilter filter) throws XMLStreamException {
throw new UnsupportedOperationException("Not supported!");
}
| Create a filtered reader that wraps the filter around the reader. Not supported. |
public boolean equals(Object o){
return o instanceof NodeList ? ((NodeList)o).nodes.equals(nodes) : false;
}
| Tests for equality with another object. |
public Object removeAttribute(String key){
return attributes.remove(key);
}
| Removes a user-defined attribute with the specified key. |
private static String undefinedXML(){
return null;
}
| This method is used to call a signature passing a null String instance. |
public CountSimComparisonTimeFilter(final List<CountSimComparison> countSimComparisons){
this.countSimComparisons=countSimComparisons;
int countsPerHour=this.countSimComparisons.size() / 24;
this.countSimComparisonTimeMap=new List[24];
for (int i=0; i < 24; i++) {
this.countSimComparisonTimeMap[i]=new Vecto... | Fills the Array for each hour with the appropriate CountSimComparison objects from the list given as parameter. |
private void loadConfiguration(){
final Preferences prefs=TFSCommonClientPlugin.getDefault().getPluginPreferences();
int refreshIntervalMillis=prefs.getInt(PreferenceConstants.BUILD_STATUS_REFRESH_INTERVAL);
if (refreshIntervalMillis <= 0) {
refreshIntervalMillis=prefs.getDefaultInt(PreferenceConstants.BUILD_... | Sets fields from saved preferences. |
@Override public boolean isEmpty(){
return false;
}
| Method isEmpty() |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:12.220 -0500",hash_original_method="F0E51D59DB287FD1630B012799B48A4C",hash_generated_method="A0A42509F3805F589A9CF13C272D1360") public void forceStop(){
synchronized (this.eventMutex) {
this.isStopped=true;
this.refCount=0;
... | Brutally stop the event scanner. This does not wait for the refcount to go to 0. |
private void cmd_applyFormat(boolean next){
if (m_format == null || m_data.size() == 0) return;
if (next) m_record++;
else m_record--;
if (m_record < 0) m_record=0;
else if (m_record >= m_data.size()) m_record=m_data.size() - 1;
record.setValue(" " + String.valueOf(m_record + 1) + " ");
String[]... | Apply Current Pattern |
public void onNothingSelected(AdapterView<?> parent){
Log.d(LOG_TAG,"onNothingSelected()");
mNothingSelectedCalled=true;
}
| Implements OnItemSelectedListener |
public ServerSocket createServerSocket(int port) throws IOException {
return initialFactory.createServerSocket(port);
}
| Create a new server socket. |
public org.fife.ui.rsyntaxtextarea.Token yylex() throws java.io.IOException {
int zzInput;
int zzAction;
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL=zzEndRead;
char[] zzBufferL=zzBuffer;
char[] zzCMapL=ZZ_CMAP;
int[] zzTransL=ZZ_TRANS;
int[] zzRowMapL=ZZ_ROWMAP;
int[] zzAttrL=ZZ_ATTRIBUTE;
... | Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
public ConfiguredReporter(ScheduledReporter reporter,long period){
this.reporter=reporter;
this.period=period;
}
| Create a new instance. |
public boolean containsHighlight(Highlight highlight){
if (decorators == null) {
return false;
}
boolean result=false;
for ( HighlightDecorator decorator : decorators) {
result=decorator.highlights.contains(highlight);
if (result) {
break;
}
}
if (!result) {
for ( HighlightDeco... | Returns true if the highlight is currently being used. |
public void put(int key){
map.put(key,null);
}
| Put the specified option into these options (without a value) |
public void testLoginException02(){
LoginException lE;
for (int i=0; i < msgs.length; i++) {
lE=new LoginException(msgs[i]);
assertEquals("getMessage() must return: ".concat(msgs[i]),lE.getMessage(),msgs[i]);
assertNull("getCause() must return null",lE.getCause());
}
}
| javax.security.auth.login.LoginException#LoginException(String msg) Assertion: constructs with not null parameter. |
public boolean isAreaTextVisible(){
return null == areaTextVisible ? _areaTextVisible : areaTextVisible.get();
}
| Returns true if the text of the areas should be drawn inside the areas. This is currently only used in the SimpleSkin. |
public void destroyRegionOnForTestsOnly(Connection con,EventID eventId,Object callbackArg){
DestroyRegionOp.execute(con,this.pool,this.regionName,eventId,callbackArg);
}
| Does a region destroy on the server using the given connection. |
private static void addCommentLines(final ZyLabelContent content,final List<IComment> comments,final Color color,final Object object){
Preconditions.checkNotNull(content,"IE01180: Content argument can't be null");
Preconditions.checkNotNull(comments,"IE01181: Comment argument can not be null");
Preconditions.chec... | Creates line content objects for a single comment string. If necessary, the string comment is broken into several lines. |
private void dynInit(){
ColumnInfo[] layout=new ColumnInfo[]{new ColumnInfo(" ",".",IDColumn.class,false,false,""),new ColumnInfo(Msg.translate(Env.getCtx(),"DocumentNo"),".",String.class),new ColumnInfo(Msg.translate(Env.getCtx(),"Date"),".",Timestamp.class),new ColumnInfo(Msg.translate(Env.getCtx(),"C_BPartner_ID")... | Dynamic Init. Table Layout, Visual, Listener |
public Iterator<Comparable<?>> iterator(){
return new DataSourceIterator();
}
| Returns an iterator over a set of elements of type T. |
@Override public void configurePathMatch(PathMatchConfigurer configurer){
configurer.setUseSuffixPatternMatch(false);
}
| Configure the path match by disabling suffix pattern matching. |
public synchronized int size(){
return index.size();
}
| Returns the number of files in the index. |
public HttpAwareServerSocket(int port,int backlog) throws IOException {
super(port,backlog);
}
| Create a server socket, bind it to the specified local port and listen to it. You can connect to an annonymous port by specifying the port number to be 0. <i>backlog</i> specifies how many connection requests the system will queue up while waiting for the ServerSocket to execute accept(). |
public synchronized void addNoSubclassDependency(RVMClass source,CompiledMethod cm){
int cmid=cm.getId();
if (TRACE || DEBUG) {
report("CLDM: " + cmid + "("+ cm.getMethod()+ ") is dependent on "+ source+ " not having a subclass\n");
}
db.addNoSubclassDependency(source,cmid);
}
| Record that the code currently being compiled (cm) must be invalidated if source ever has a subclass. |
public void remove(int i){
individuals.remove(i);
}
| Removes a single individual. |
private void addRow(TableRow row){
int i1=rows.size();
if (i1 > 0) {
i1--;
}
rows.add(row);
fireTableRowsInserted(i1,i1 + 1);
}
| Add row data |
public SkillFakeDefinition createSkillFakeDefinition(){
SkillFakeDefinitionImpl skillFakeDefinition=new SkillFakeDefinitionImpl();
return skillFakeDefinition;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private void preserveParentLink(String brokenTableName,String brokenColumnName,String brokenDefaultValue,ArrayList<String> brokenCompareColumns,String hintTableName,String hintColumnName,ArrayList<String> hintCompareColumns){
String vendorName=m_target.getVendor();
String catalogName=m_target.getCatalog();
String... | Preserve or re-create link to parent from a given child table |
public Map<S,Double> valueIteration(MarkovDecisionProcess<S,A> mdp,double epsilon){
Map<S,Double> U=Util.create(mdp.states(),new Double(0));
Map<S,Double> Udelta=Util.create(mdp.states(),new Double(0));
double delta=0;
double minDelta=epsilon * (1 - gamma) / gamma;
do {
U.putAll(Udelta);
delta=0;
... | The value iteration algorithm for calculating the utility of states. |
public void parseHeader(InputStream is) throws java.io.IOException {
synchronized (this) {
nkeys=0;
}
mergeHeader(is);
}
| Parse a MIME header from an input stream. |
private void handleException(String message,Exception exception){
boolean unexpected=!quitting();
if (unexpected && !(exception instanceof CancelException)) {
logger.warn(LocalizedMessage.create(LocalizedStrings.CacheClientUpdater_0__1__2,new Object[]{this,message,exception}),exception);
}
}
| Conditionally print a warning describing the failure <p> Signals run thread to stop. Messages are not printed if the thread or the distributed system has already been instructed to terminate. |
protected void processVariables(Variables variables){
for ( Object key : this.getVariables().keySet()) {
String value=this.getVariable((String)key);
if (FunctionHandler.validFunction(value)) {
value=FunctionHandler.executeFunction(value,variables);
}
variables.addVariable((String)key,value);
... | Process the objects variables |
void resetState(Log log){
nextSnapshotIndex=0;
nextSnapshotOffset=0;
matchIndex=0;
nextIndex=log.lastIndex() + 1;
heartbeatTime=0;
heartbeatStartTime=0;
appending=0;
timeBuffer.reset();
configuring=false;
installing=false;
failures=0;
}
| Resets the member state. |
public static NamedList doStandardDebug(SolrQueryRequest req,String userQuery,Query query,DocList results,boolean dbgQuery,boolean dbgResults) throws IOException {
NamedList dbg=new SimpleOrderedMap();
doStandardQueryDebug(req,userQuery,query,dbgQuery,dbg);
doStandardResultsDebug(req,query,results,dbgResults,dbg)... | <p> Returns a NamedList containing many "standard" pieces of debugging information. </p> <ul> <li>rawquerystring - the 'q' param exactly as specified by the client </li> <li>querystring - the 'q' param after any preprocessing done by the plugin </li> <li>parsedquery - the main query executed formated by the Solr QueryP... |
public static void writeLines(Collection<?> lines,String lineEnding,Writer writer) throws IOException {
if (lines == null) {
return;
}
if (lineEnding == null) {
lineEnding=LINE_SEPARATOR;
}
for ( Object line : lines) {
if (line != null) {
writer.write(line.toString());
}
writer.writ... | Writes the <code>toString()</code> value of each item in a collection to a <code>Writer</code> line by line, using the specified line ending. |
public boolean union(RWSet other){
if (other == null) return false;
if (isFull) return false;
boolean ret=false;
if (other instanceof MethodRWSet) {
MethodRWSet o=(MethodRWSet)other;
if (o.getCallsNative()) {
ret=!getCallsNative() | ret;
setCallsNative();
}
if (o.isFull) {
... | Adds the RWSet other into this set. |
private byte[] embiggen(byte[] b,int len){
if (b == null || b.length < len) {
return new byte[len];
}
else {
return b;
}
}
| If b.length is at least len, return b. Otherwise return a new byte array of length len. |
private static void clearAllExceptRelationships(JsonApiDocument doc){
Data<Resource> data=doc.getData();
if (data == null || data.get() == null) {
return;
}
data.get().forEach(null);
}
| Clear all relationships for all resources in document. |
public boolean contains(final AbstractInsnNode insn){
AbstractInsnNode i=first;
while (i != null && i != insn) {
i=i.next;
}
return i != null;
}
| Returns <tt>true</tt> if the given instruction belongs to this list. This method always scans the instructions of this list until it finds the given instruction or reaches the end of the list. |
public ByteBuffer createBuffer(Map<String,Object> parameters){
ByteBuffer buffer=createByteBuffer();
for ( Field field : fields) {
log.trace("Before write ByteBuffer.position={}",buffer.position());
field.write(resolveInputValue(parameters,field),buffer);
log.trace("After write ByteBuffer.position={}",... | Initializes a ByteBuffer and sets value of matching fields for use as input to a function call (Work Area One). |
public int size(){
return m_ClassNames.length;
}
| Gets the number of classes. |
public static ExecutorService newPooledExecutor(String poolName,boolean useDaemonThreads){
return ParallelIterate.newPooledExecutor(ParallelIterate.getDefaultMaxThreadPoolSize(),poolName,useDaemonThreads);
}
| Returns a brand new ExecutorService using the specified poolName and uses the optional property named to set the maximum thread pool size. The same poolName may be used more than once resulting in multiple pools with the same name. |
protected AbstractJavaCompletionProposal(){
fInvocationContext=null;
}
| The text presentation listener. |
private void createNamedEntity(Map<Integer,String> aNamedEntityMap,JCas aJCas,Map<Integer,String> aTokensMap,Map<String,Token> aJcasTokens){
Map<Integer,NamedEntity> indexedNeAnnos=new LinkedHashMap<Integer,NamedEntity>();
for (int i=1; i <= aTokensMap.size(); i++) {
if (aNamedEntityMap.get(i).equals("O")) {
... | Creates Named Entities from CoNLL BIO format to CAS format |
public static <U extends Key<?>>NotMatcher<U> not(Matcher<U> operand){
return new NotMatcher<U>(operand);
}
| Create a NotMatcher that reverses the result of the given matcher. |
public boolean validSystemNameConfig(String systemName){
return (SerialAddress.validSystemNameConfig(systemName,'L'));
}
| Public method to validate system name for configuration returns 'true' if system name has a valid meaning in current configuration, else returns 'false' |
@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/protection/full-copies/{fcid}/deactivate") @CheckPermission(roles={Role.TENANT_ADMIN},acls={ACL.ANY}) public TaskList deactivateConsistencyGroupFullCopy(@PathParam("id") URI cgURI,@PathParam("fcid") URI fullCopyURI){
List<Volume> cgV... | Deactivate the specified consistency group full copy. |
public void scrollToTop(){
if (mScrollbar.isThumbDetached()) {
mScrollbar.reattachThumbToScroll();
}
scrollToPosition(0);
if (mElevationController != null) {
mElevationController.reset();
}
}
| Scrolls this recycler view to the top. |
public boolean acceptFile(IFile file) throws CoreException {
return true;
}
| Notification sent before search starts in the given file. This method is called for all files that are contained in the search scope. Implementors can decide if the file content should be searched for search matches or not. <p> The default behaviour is to search the file for matches. </p> |
public void initSign(byte[] seed0,byte[] message){
this.hash=new byte[mdsize];
messDigestOTS.update(message,0,message.length);
this.hash=new byte[messDigestOTS.getDigestSize()];
messDigestOTS.doFinal(this.hash,0);
byte[] messPart=new byte[mdsize];
System.arraycopy(hash,0,messPart,0,mdsize);
int checkPart=... | This method initializes the distributed sigature calculation. Variables are reseted and necessary steps are calculated |
public SimpleQueryStringBuilder flags(SimpleQueryStringFlag... flags){
int value=0;
if (flags.length == 0) {
value=SimpleQueryStringFlag.ALL.value;
}
else {
for ( SimpleQueryStringFlag flag : flags) {
value|=flag.value;
}
}
this.flags=value;
return this;
}
| Specify the enabled features of the SimpleQueryString. |
public NotificationChain basicSetInitSequence(Sequence newInitSequence,NotificationChain msgs){
Sequence oldInitSequence=initSequence;
initSequence=newInitSequence;
if (eNotificationRequired()) {
ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,SexecPackage.EXECUTION_SCOPE__INIT_SEQU... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public final void yybegin(int newState){
zzLexicalState=newState;
}
| Enters a new lexical state |
@Override public void updateEntity(){
((Updater)block).update(0.05);
}
| Updates the block. |
protected POInfo initPO(Properties ctx){
POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName());
return poi;
}
| Load Meta Data |
void addToBeCompacted(Oplog oplog){
basicAddToBeCompacted(oplog);
parent.scheduleCompaction();
}
| Taking a lock on the LinkedHashMap oplogIdToOplog as it the operation of adding an Oplog to the Map & notifying the Compactor thread , if not already compaction has to be an atomic operation. add the oplog to the to be compacted set. if compactor thread is active and recovery is not going on then the compactor thread i... |
protected void logWrapper(String message){
}
| Wrapper for the log to avoid direct references to Android Log objects that will crash unit tests. Subclasses may override this method for debugging. |
private void checkInvoices(MBPartner bp){
int changed=0;
MInvoice[] invoices=MInvoice.getOfBPartner(getCtx(),bp.getC_BPartner_ID(),get_TrxName());
for (int i=0; i < invoices.length; i++) {
MInvoice invoice=invoices[i];
if (invoice.testAllocation()) {
invoice.saveEx();
changed++;
}
}
if... | Check Invoices |
public String splitConfidenceTipText(){
return "The allowable error in a split decision. Values closer to zero " + "will take longer to decide.";
}
| Returns the tip text for this property |
@SafeVarargs public static <T>boolean isOneOf(T object,T... objects){
for ( Object other : objects) {
if (object == null ? other == null : object.equals(other)) {
return true;
}
}
return false;
}
| Returns <code>true</code> if the given object equals one of the given objects. |
public TriggerProcessStatusException(String message){
super(message);
}
| Constructs a new exception with the specified detail message. The cause is not initialized. |
XListPeer(List target){
super(target);
}
| Create a list |
public void close() throws IOException {
guard.close();
RandomAccessFile localRaf=raf;
if (localRaf != null) {
synchronized (localRaf) {
raf=null;
localRaf.close();
}
if (fileToDeleteOnClose != null) {
fileToDeleteOnClose.delete();
fileToDeleteOnClose=null;
}
}
}
| Closes this zip file. This method is idempotent. This method may cause I/O if the zip file needs to be deleted. |
public Node removeNamedItemNS(String namespaceURI,String localName) throws DOMException {
throw new DTMException(DTMException.NO_MODIFICATION_ALLOWED_ERR);
}
| Removes a node specified by local name and namespace URI. A removed attribute may be known to have a default value when this map contains the attributes attached to an element, as returned by the attributes attribute of the <code>Node</code> interface. If so, an attribute immediately appears containing the default valu... |
public static String xml(Object o){
return Gestion.getXStream().toXML(o);
}
| convertir bean a xml |
public boolean isOnline(){
if (getEMail() == null || getPassword() == null) return false;
return true;
}
| Is it an Online Access User |
protected void diff_charsToLines(LinkedList<Diff> diffs,List<String> lineArray){
StringBuilder text;
for ( Diff diff : diffs) {
text=new StringBuilder();
for (int y=0; y < diff.text.length(); y++) {
text.append(lineArray.get(diff.text.charAt(y)));
}
diff.text=text.toString();
}
}
| Rehydrate the text in a diff from a string of line hashes to real lines of text. |
private static void normalizeFileBackup(final File databasesDir,final String currentUserAccount) throws IOException {
File[] files=listOfSavedAccounts(databasesDir);
if (files == null || files.length <= MAX_SAVED_ACCOUNT) {
return;
}
File file=FileUtils.getOldestFile(files);
if (!file.getName().equals(cur... | Normalize file backup and manages old user files if not more then MAX_SAVED_ACCOUNT |
public static void findIndexMatches(SearchPattern pattern,Index index,IndexQueryRequestor requestor,SearchParticipant participant,IJavaSearchScope scope,IProgressMonitor monitor) throws IOException {
pattern.findIndexMatches(index,requestor,participant,scope,monitor);
}
| Query a given index for matching entries. Assumes the sender has opened the index and will close when finished. |
public void receivedSenderReport(RtcpSenderReportPacket srp){
lastSenderReport=(((srp.ntptimestampmsw << 32) | srp.ntptimestamplsw) & 0x0000ffffffff0000L) >>> 16;
}
| Updates the statistics related to Sender Reports. Should be invoked when a RTCP Sender Report is received. |
public Point pointPosition(Coord point){
int x=position(dimension.getWidth(),point.getLongitude(),bbox.getSouthWest().getLongitude(),bbox.getNorthEast().getLongitude());
int y=position(dimension.getHeight(),point.getLatitude(),bbox.getSouthWest().getLatitude(),bbox.getNorthEast().getLatitude());
return new Point(... | Returns the x, y point of the given coordinate relative to this tile |
public static <T,X extends Throwable>Tuple3<CompletableFuture<Subscription>,Runnable,CompletableFuture<Boolean>> forEachXEvents(final LazyFutureStream<T> stream,final long x,final Consumer<? super T> consumerElement,final Consumer<? super Throwable> consumerError,final Runnable onComplete){
final CompletableFuture<Su... | Perform a forEach operation over the Stream without closing it, capturing any elements and errors in the supplied consumers, but only consuming the specified number of elements from the Stream, at this time. More elements can be consumed later, by called request on the returned Subscription, when the entire Stream h... |
public double cartesian(int i){
return data[i];
}
| Returns the ith cartesian coordinate. |
private boolean isMandatoryWarningString(String s){
String[] bases={"deprecated","unchecked","varargs","sunapi"};
String[] tails={".filename",".filename.additional",".plural",".plural.additional",".recompile"};
for ( String b : bases) {
if (s.startsWith(b)) {
String tail=s.substring(b.length());
... | The keys for mandatory warning messages are all synthesized and do not have a significant recognizable substring to look for. |
@Deprecated public static String join(Object[] tokens,String delimiter){
if (tokens == null || tokens.length == 0) return "";
StringBuilder result=new StringBuilder();
for (int i=0; i < tokens.length; i++) {
if (i > 0 && delimiter != null) result.append(delimiter);
if (tokens[i] != null) result.... | Concatenates the String representations of the elements of a String[] array into one String, and inserts a delimiter between each pair of elements. <p> This includes the String[] case, because if s is a String, then s.toString() returns s. |
public Dimension2D(Dimension2D d){
this.width=d.width;
this.height=d.height;
}
| Creates a new instance of Dimension with a predefine dimension |
private void handleAbort(TransactionServiceState existing){
Collection<Operation> ops=createNotifyServicesToAbort(existing);
if (ops.isEmpty()) {
selfPatch(ResolutionKind.ABORTED);
return;
}
OperationJoin.create(ops).setCompletion(null).sendWith(this);
}
| Handle the case when a client requests to abort. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.