code
stringlengths 10
174k
| nl
stringlengths 3
129k
|
|---|---|
@Override protected boolean forcedRewind(int marker){
input.rewind(marker);
addASIMessage();
return true;
}
|
<p> Overrides method stub generated by customized ANTLR/Xtext generator. </p>
|
public double calculateWeight(int trooper){
double weight=0;
weight+=getWeightStructure();
weight+=getWeightArmor();
weight+=getWeightMiscEquip(trooper);
weight+=getWeightWeapon(trooper);
weight+=getWeightAmmo(trooper);
return Math.round(weight * 1000) / 1000.0;
}
|
There are some cases where we need to know the weight of an individual trooper in the BattleArmor squad, this method provides that.
|
public final void verify(EvolutionState state){
if (!(state.initializer instanceof GPInitializer)) {
state.output.error("Initializer is not a GPInitializer");
return;
}
GPInitializer initializer=(GPInitializer)(state.initializer);
if (child == null) {
state.output.error("Null root child of GPTree.");
return;
}
if (owner == null) {
state.output.error("Null owner of GPTree.");
return;
}
if (owner.trees == null) {
state.output.error("Owner has null trees.");
return;
}
if (treeNumber() == NO_TREENUM) {
state.output.error("No Tree Number! I appear to be an orphan GPTree.");
return;
}
if (constraints < 0 || constraints >= initializer.numTreeConstraints) {
state.output.error("Preposterous tree constraints (" + constraints + ")");
return;
}
child.verify(state,constraints(initializer).functionset,0);
state.output.exitIfErrors();
}
|
Verification of validity of the tree -- strictly for debugging purposes only
|
public void drawBackground(java.awt.Graphics2D g,java.awt.Paint paint){
g.setPaint(paint);
drawBackground(g);
}
|
Draw the background for the projection.
|
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:57:40.026 -0500",hash_original_method="1729B4B42F76884BCE9F1EB6E36424D7",hash_generated_method="1141C52690BF47076EA68141B6C22013") public static void fill(int[] array,int value){
for (int i=0; i < array.length; i++) {
array[i]=value;
}
}
|
Fills the specified array with the specified element.
|
public List<String> bootstrapArtifacts(){
return this.bootstrapArtifacts;
}
|
List of bootstrap artifacts to look for fractions.
|
private String createVolume(String volumeName,long capacity,String volumeTypeId,String sourceVolId,String sourceSnapId) throws Exception {
_log.info("CinderApi - start createVolume");
Gson gson=new Gson();
VolumeCreateRequest volumeCreate=new VolumeCreateRequest();
volumeCreate.volume.name=volumeName;
volumeCreate.volume.size=capacity;
if (!volumeTypeId.toUpperCase().startsWith(CinderConstants.DEFAULT)) {
volumeCreate.volume.volume_type=volumeTypeId;
}
if (null != sourceVolId) {
volumeCreate.volume.source_volid=sourceVolId;
}
if (null != sourceSnapId) {
volumeCreate.volume.snapshot_id=sourceSnapId;
}
String volumeCreateUri=endPoint.getBaseUri() + String.format(CinderConstants.URI_CREATE_VOLUME,endPoint.getCinderTenantId());
_log.debug("creting volume with uri {}",volumeCreateUri);
String json=gson.toJson(volumeCreate);
_log.debug("creating volume with body {}",json);
ClientResponse js_response=getClient().postWithHeader(URI.create(volumeCreateUri),json);
String s=js_response.getEntity(String.class);
_log.debug("Got the response {}",s);
String newVolumeId="";
if (js_response.getStatus() == ClientResponse.Status.ACCEPTED.getStatusCode()) {
VolumeCreateResponse response=gson.fromJson(SecurityUtils.sanitizeJsonString(s),VolumeCreateResponse.class);
newVolumeId=response.volume.id;
}
else {
if (null != sourceVolId) {
throw CinderException.exceptions.volumeCloneFailed(s);
}
if (null != sourceSnapId) {
throw CinderException.exceptions.createVolumeFromSnapshotFailed(s);
}
throw CinderException.exceptions.volumeCreationFailed(s);
}
_log.info("CinderApi - end createVolume");
return newVolumeId;
}
|
Create volume operation ( It is asynchronous operation )
|
private void updateProgress(int progress){
if (myHost != null && progress != previousProgress) {
myHost.updateProgress(progress);
}
previousProgress=progress;
}
|
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
|
private void loadNodes(){
m_nodes=new Query(getCtx(),MWFNode.Table_Name,"AD_WorkFlow_ID=?",get_TrxName()).setParameters(new Object[]{get_ID()}).setOnlyActiveRecords(true).list();
log.fine("#" + m_nodes.size());
}
|
Load All Nodes
|
public static byte[] toUTF(String s){
HeapDataOutputStream hdos=new HeapDataOutputStream(s);
return hdos.toByteArray();
}
|
The logic used here is based on java's DataInputStream.writeUTF() from the version 1.6.0_10.
|
public static void scaleM(float[] m,int mOffset,float x,float y,float z){
for (int i=0; i < 4; i++) {
int mi=mOffset + i;
m[mi]*=x;
m[4 + mi]*=y;
m[8 + mi]*=z;
}
}
|
Scales matrix m in place by sx, sy, and sz
|
@Override public int write(String str) throws IOException {
int n=0;
int nll=newline.length();
int sl=str.length();
for (int i=0; i < sl; i++) {
char c=str.charAt(i);
if (c == '\r') continue;
if (c == '\n') {
atStartOfLine=true;
charPosition=-nll;
out.write(newline);
n+=nll;
charIndex+=nll;
charPosition+=n;
continue;
}
if (atStartOfLine) {
n+=indent();
atStartOfLine=false;
}
n++;
out.write(c);
charPosition++;
charIndex++;
}
return n;
}
|
Write out a string literal or attribute expression or expression element.
|
public static void w(String tag,Throwable tr){
w(tag,null,tr);
}
|
Prints a message at WARN priority.
|
@Override public void deleteSingleVolumeSnapshot(StorageSystem storage,URI snapshot,TaskCompleter taskCompleter) throws DeviceControllerException {
log.info("Delete Single Volume Snapshot Started");
try {
BlockSnapshot snapshotObj=dbClient.queryObject(BlockSnapshot.class,snapshot);
log.info("deleteSingleVolumeSnapshot operation START");
HDSApiClient hdsApiClient=hdsApiFactory.getClient(HDSUtils.getHDSServerManagementServerInfo(storage),storage.getSmisUserName(),storage.getSmisPassword());
HDSHost pairMgmtServer=hdsApiClient.getSnapshotGroupPairManagementServer(storage.getSerialNumber());
if (null == pairMgmtServer) {
log.error("Unable to find snapshot group information/pair management server for Thin Image");
throw HDSException.exceptions.snapshotGroupNotAvailable(storage.getNativeGuid());
}
SnapshotGroup snapshotGroup=getViPRSnapshotGroup(pairMgmtServer,storage.getSerialNumber());
String snapShotGrpId=snapshotGroup.getObjectID();
Volume volume=dbClient.queryObject(Volume.class,snapshotObj.getParent());
ReplicationInfo replicationInfo=getReplicationInfo(snapshotGroup,volume.getNativeId(),snapshotObj.getNativeId());
if (replicationInfo != null) {
String replicationInfoObjId=replicationInfo.getObjectID();
hdsApiClient.deleteThinImagePair(pairMgmtServer.getObjectID(),snapShotGrpId,replicationInfoObjId,storage.getModel());
}
else {
log.info("Pair has been deleted already on storage system");
}
hdsProtectionOperations.removeDummyLunPath(storage,snapshot);
hdsProtectionOperations.deleteSecondaryVolumeSnapshot(storage,snapshotObj,taskCompleter);
log.info("Delete Single Volume Snapshot Completed");
}
catch ( Exception e) {
String errorMsg=String.format(DELETE_ERROR_MSG_FORMAT,snapshot);
log.error(errorMsg,e);
ServiceError serviceError=DeviceControllerErrors.hds.methodFailed("deleteSingleVolumeSnapshot",e.getMessage());
taskCompleter.error(dbClient,serviceError);
}
}
|
1. Delete ThinImage Pair 2. Delete Dummy lun path from snap volume 3. Delete Snapshot
|
public void clear(){
if (this.filterPanelList != null) {
this.filterPanelList.clear();
}
if (this.tabList != null) {
this.tabList.clear();
}
if (this.treeViewPanelList != null) {
this.treeViewPanelList.clear();
}
this.textFieldNameId.setText("");
this.textFieldDescriptionId.setText("");
this.textFieldAuthorId.setText("");
this.textFieldTagsId.setText("");
this.payloadTabsId.getTabs().clear();
}
|
clears the app
|
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 WebApplicationResource(ServletContext context,String mimetype,String path){
super(mimetype);
this.context=context;
this.path=path;
}
|
Creates a new WebApplicationResource which serves the resource at the given path relative to the given ServletContext. Rather than deriving the mimetype of the resource from the filename within the path, the mimetype given is used.
|
public byte[] encode() throws StunException {
return encode(false);
}
|
Returns a non padded binary representation of this message.
|
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){
switch (featureID) {
case UmplePackage.STATE_ENTITY___ENTRY_OR_EXIT_ACTION_1:
return ((InternalEList<?>)getEntryOrExitAction_1()).basicRemove(otherEnd,msgs);
case UmplePackage.STATE_ENTITY___AUTO_TRANSITION_1:
return ((InternalEList<?>)getAutoTransition_1()).basicRemove(otherEnd,msgs);
case UmplePackage.STATE_ENTITY___TRANSITION_1:
return ((InternalEList<?>)getTransition_1()).basicRemove(otherEnd,msgs);
case UmplePackage.STATE_ENTITY___ACTIVITY_1:
return ((InternalEList<?>)getActivity_1()).basicRemove(otherEnd,msgs);
case UmplePackage.STATE_ENTITY___STATE_1:
return ((InternalEList<?>)getState_1()).basicRemove(otherEnd,msgs);
case UmplePackage.STATE_ENTITY___TRACE_1:
return ((InternalEList<?>)getTrace_1()).basicRemove(otherEnd,msgs);
}
return super.eInverseRemove(otherEnd,featureID,msgs);
}
|
<!-- begin-user-doc --> <!-- end-user-doc -->
|
static void sort(int[] a,int left,int right,int[] work,int workBase,int workLen){
if (right - left < QUICKSORT_THRESHOLD) {
sort(a,left,right,true);
return;
}
int[] run=new int[MAX_RUN_COUNT + 1];
int count=0;
run[0]=left;
for (int k=left; k < right; run[count]=k) {
while (k < right && a[k] == a[k + 1]) k++;
if (k == right) break;
if (a[k] < a[k + 1]) {
while (++k <= right && a[k - 1] <= a[k]) ;
}
else if (a[k] > a[k + 1]) {
while (++k <= right && a[k - 1] >= a[k]) ;
for (int lo=run[count] - 1, hi=k; ++lo < --hi; ) {
int t=a[lo];
a[lo]=a[hi];
a[hi]=t;
}
}
if (run[count] > left && a[run[count]] >= a[run[count] - 1]) {
count--;
}
if (++count == MAX_RUN_COUNT) {
sort(a,left,right,true);
return;
}
}
if (count == 0) {
return;
}
else if (count == 1 && run[count] > right) {
return;
}
right++;
if (run[count] < right) {
run[++count]=right;
}
byte odd=0;
for (int n=1; (n<<=1) < count; odd^=1) ;
int[] b;
int ao, bo;
int blen=right - left;
if (work == null || workLen < blen || workBase + blen > work.length) {
work=new int[blen];
workBase=0;
}
if (odd == 0) {
System.arraycopy(a,left,work,workBase,blen);
b=a;
bo=0;
a=work;
ao=workBase - left;
}
else {
b=work;
ao=0;
bo=workBase - left;
}
for (int last; count > 1; count=last) {
for (int k=(last=0) + 2; k <= count; k+=2) {
int hi=run[k], mi=run[k - 1];
for (int i=run[k - 2], p=i, q=mi; i < hi; ++i) {
if (q >= hi || p < mi && a[p + ao] <= a[q + ao]) {
b[i + bo]=a[p++ + ao];
}
else {
b[i + bo]=a[q++ + ao];
}
}
run[++last]=hi;
}
if ((count & 1) != 0) {
for (int i=right, lo=run[count - 1]; --i >= lo; b[i + bo]=a[i + ao]) ;
run[++last]=right;
}
int[] t=a;
a=b;
b=t;
int o=ao;
ao=bo;
bo=o;
}
}
|
Sorts the specified range of the array using the given workspace array slice if possible for merging
|
public byte[] createImageFromLayers(Projection proj,int scaledWidth,int scaledHeight,List<Layer> layers,Paint background){
logger.fine("using the new ProjectionPainter interface! createImage with layer list.");
if (formatter == null) {
logger.warning("no formatter set! Can't create image.");
return new byte[0];
}
ImageFormatter imageFormatter=formatter.makeClone();
java.awt.Graphics graphics=createGraphics(imageFormatter,proj.getWidth(),proj.getHeight());
if (graphics == null) {
return new byte[0];
}
((Proj)proj).drawBackground((Graphics2D)graphics,background);
if (layers != null && !layers.isEmpty()) {
for (int i=layers.size() - 1; i >= 0; i--) {
Layer layer=layers.get(i);
if (layer != null) {
layer.renderDataForProjection(proj,graphics);
if (logger.isLoggable(Level.FINE)) {
logger.fine("image request adding layer graphics from : " + layer.getName());
}
}
}
}
else if (logger.isLoggable(Level.FINE)) {
logger.fine("no layers available for image");
}
byte[] formattedImage=getFormattedImage(imageFormatter,scaledWidth,scaledHeight);
graphics.dispose();
return formattedImage;
}
|
Create an image from a set of layers.
|
public void writeBoolean(boolean b) throws IOException {
if (b) this.write(1);
else this.write(0);
}
|
Writes a <code>boolean</code> to the underlying output stream as a single byte. If the argument is true, the byte value 1 is written. If the argument is false, the byte value <code>0</code> in written.
|
private void adjustColumnSize(){
int width=0;
for (int row=0; row < table.getRowCount(); row++) {
TableCellRenderer renderer=table.getCellRenderer(row,1);
Component comp=table.prepareRenderer(renderer,row,1);
width=Math.max(comp.getPreferredSize().width,width);
}
setColumnWidth(1,width,width,width);
}
|
Adjust the width of the time column to fit the current times.
|
public boolean isManufactured(){
Object oo=get_Value(COLUMNNAME_IsManufactured);
if (oo != null) {
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
|
Get Manufactured.
|
public long skip(long n) throws IOException {
return in.skip(n);
}
|
Skips over and discards <code>n</code> bytes of data from the input stream. The <code>skip</code> method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly <code>0</code>. The actual number of bytes skipped is returned. <p> This method simply performs <code>in.skip(n)</code>.
|
public void connectionClosed(ConnectionEvent event){
if (isActive) {
ManagedConnection conn=(ManagedConnection)event.getSource();
XAResource xar=null;
if (xaResourcesMap.get(conn) != null) xar=(XAResource)xaResourcesMap.get(conn);
xaResourcesMap.remove(conn);
try {
Transaction txn=transManager.getTransaction();
if (txn != null && xar != null) {
txn.delistResource(xar,XAResource.TMSUCCESS);
}
}
catch ( Exception se) {
String exception="JCAConnectionManagerImpl::connectionClosed: Exception occured due to " + se;
if (logger.isDebugEnabled()) {
logger.debug(exception,se);
}
}
mannPoolCache.returnPooledConnectionToPool(conn);
}
}
|
Callback for Connection Closed.
|
public X509Certificate generateX509Certificate(PrivateKey key,String provider,SecureRandom random) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException {
try {
return generate(key,provider,random);
}
catch ( NoSuchProviderException e) {
throw e;
}
catch ( SignatureException e) {
throw e;
}
catch ( InvalidKeyException e) {
throw e;
}
catch ( GeneralSecurityException e) {
throw new SecurityException("exception: " + e);
}
}
|
generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing, and the passed in source of randomness (if required).
|
protected void computeGradient(AffinityMatrix pij,double[][] qij,double qij_sum,double[][] sol,double[] meta){
final int dim3=dim * 3;
int size=pij.size();
for (int i=0, off=0; i < size; i++, off+=dim3) {
final double[] sol_i=sol[i], qij_i=qij[i];
Arrays.fill(meta,off,off + dim,0.);
for (int j=0; j < size; j++) {
if (i == j) {
continue;
}
final double[] sol_j=sol[j];
final double qij_ij=qij_i[j];
final double q=MathUtil.max(qij_ij / qij_sum,MIN_QIJ);
double a=(pij.get(i,j) - q) * qij_ij;
for (int k=0; k < dim; k++) {
meta[off + k]+=a * (sol_i[k] - sol_j[k]);
}
}
}
}
|
Compute the gradients.
|
public void testNonConformingCompositeIds() throws Exception {
DocRouter router=DocRouter.getDocRouter(CompositeIdRouter.NAME);
DocCollection coll=createCollection(4,router);
String[] ids={"A!B!C!D","!!!!!!","A!!!!B","A!!B!!C","A/59!B","A/8/!B/19/","A!B/-5","!/130!","!!A/1000","A//8!B///10!C////"};
for (int i=0; i < ids.length; ++i) {
try {
Slice targetSlice=coll.getRouter().getTargetSlice(ids[i],null,null,coll);
assertNotNull(targetSlice);
}
catch ( Exception e) {
throw new Exception("Exception routing id '" + ids[i] + "'",e);
}
}
}
|
Make sure CompositeIdRouter doesn't throw exceptions for non-conforming IDs
|
private long hash(final double[] a,final int l,final int k){
final int[] w=weight[k];
long h=init[k];
int i=l;
while (i-- != 0) h^=(h << 5) + Double.doubleToRawLongBits(a[i]) * w[i % NUMBER_OF_WEIGHTS] + (h >>> 2);
return (h & 0x7FFFFFFFFFFFFFFFL) % m;
}
|
Hashes the given double array with the given hash function.
|
public void delete(String name) throws IOException {
if (name.equalsIgnoreCase(DN_NAME)) {
dnName=null;
dnPrincipal=null;
}
else {
throw new IOException("Attribute name not recognized by " + "CertAttrSet:CertificateSubjectName.");
}
}
|
Delete the attribute value.
|
public void invalidate(){
bufferHandle=Gdx.gl20.glGenBuffer();
isDirty=true;
}
|
Invalidates the IndexBufferObject so a new OpenGL buffer handle is created. Use this in case of a context loss.
|
@NotNull public OptionalLong findOptionalLong(@NotNull SqlQuery query){
Optional<Long> value=findOptional(Long.class,query);
return value.isPresent() ? OptionalLong.of(value.get()) : OptionalLong.empty();
}
|
Finds a unique result from database, converting the database row to long using default mechanisms. Returns empty if there are no results or if single null result is returned.
|
private CharacterIterator(final CharRange r){
range=r;
hasNext=true;
if (range.negated) {
if (range.start == 0) {
if (range.end == Character.MAX_VALUE) {
hasNext=false;
}
else {
current=(char)(range.end + 1);
}
}
else {
current=0;
}
}
else {
current=range.start;
}
}
|
Construct a new iterator for the character range.
|
@Override public void close() throws IOException {
if (ResponseCache.getDefault() == this) {
ResponseCache.setDefault(null);
}
delegate.getCache().close();
}
|
Uninstalls the cache and releases any active resources. Stored contents will remain on the filesystem.
|
public void execute() throws CheckedAnalysisException {
method=Global.getAnalysisCache().getMethodAnalysis(Method.class,methodDescriptor);
ClassContext classContext=Global.getAnalysisCache().getClassAnalysis(ClassContext.class,methodDescriptor.getClassDescriptor());
BitSet bytecodeSet=classContext.getBytecodeSet(method);
if (bytecodeSet == null) {
return;
}
if (bytecodeSet.get(Constants.MONITORENTER) || bytecodeSet.get(Constants.MONITOREXIT)) {
this.lockDataflow=classContext.getLockDataflow(method);
}
else if (method.isSynchronized()) {
this.vnaDataflow=classContext.getValueNumberDataflow(method);
}
}
|
Execute dataflow analyses (only if required).
|
private void writeLine(char[] chars,int start,int len) throws IOException {
if (beginningOfLine && len > 0) {
writeIndent();
beginningOfLine=false;
}
writer.write(chars,start,len);
}
|
Writes out a block of text that contains no newlines
|
public Shape createRoundRectangle(final int x,final int y,final int w,final int h,final CornerSize size){
return createRoundRectangle(x,y,w,h,size,CornerStyle.ROUNDED,CornerStyle.ROUNDED,CornerStyle.ROUNDED,CornerStyle.ROUNDED);
}
|
Return a path for a rectangle with rounded corners.
|
URL createResumableUploadSession(URL createMediaUrl,IEntry entry,MediaFileSource file) throws IOException, ServiceException {
GDataRequest request=createInsertRequest(createMediaUrl);
initResumableMediaRequest(request,file,file.getName());
try {
startVersionScope();
writeRequestData(request,entry);
request.execute();
return new URL(request.getResponseHeader("Location"));
}
finally {
endVersionScope();
request.end();
}
}
|
Creates a resumable upload session for a new media with specified metadata.
|
public static double maximum(double[] vals){
double max=Double.NEGATIVE_INFINITY;
for (int i=0; i < vals.length; i++) if (max < vals[i]) max=vals[i];
return max;
}
|
Returns the minimum over the provided vals. You might use this to set the minimum in makeBuckets if you don't have a prescribed minimum
|
public static boolean parseArrowSmart(PsiBuilder b,int l){
IElementType tokenType=b.getTokenType();
if (b.getTokenType() == OPERATOR_DEREFERENCE) {
return consumeToken(b,OPERATOR_DEREFERENCE);
}
else {
assert b instanceof PerlBuilder;
PerlTokenData prevToken=((PerlBuilder)b).lookupToken(-1);
IElementType prevTokenType=prevToken == null ? null : prevToken.getTokenType();
if ((prevTokenType == RIGHT_BRACE || prevTokenType == RIGHT_BRACKET) && (tokenType == LEFT_BRACE || tokenType == LEFT_BRACKET || tokenType == LEFT_PAREN)) {
return true;
}
}
return false;
}
|
Smart parser for ->, makes }->[ optional
|
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:46.115 -0500",hash_original_method="DF7492B0F439F0DD586A6D33E917DC2B",hash_generated_method="B734B4B662C13F070FD40044895D7CED") public SIPHeader parse() throws ParseException {
if (debug) dbg_enter("EventParser.parse");
try {
headerName(TokenTypes.EVENT);
this.lexer.SPorHT();
Event event=new Event();
this.lexer.match(TokenTypes.ID);
Token token=lexer.getNextToken();
String value=token.getTokenValue();
event.setEventType(value);
super.parse(event);
this.lexer.SPorHT();
this.lexer.match('\n');
return event;
}
catch ( ParseException ex) {
throw createParseException(ex.getMessage());
}
finally {
if (debug) dbg_leave("EventParser.parse");
}
}
|
parse the String message
|
void attemptLogin(){
etUsername.setError(null);
etPassword.setError(null);
String email=etUsername.getText().toString();
String password=etPassword.getText().toString();
boolean cancel=false;
View focusView=null;
if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {
etPassword.setError(getString(R.string.error_invalid_password));
focusView=etPassword;
cancel=true;
}
if (TextUtils.isEmpty(email)) {
etUsername.setError(getString(R.string.error_field_required));
focusView=etUsername;
cancel=true;
}
else if (!isUsernameValid(email)) {
etUsername.setError(getString(R.string.error_invalid_email));
focusView=etUsername;
cancel=true;
}
if (cancel) {
focusView.requestFocus();
}
else {
showProgress(true);
performLogin();
}
}
|
Attempts to sign in or register the account specified by the login form. If there are form errors (invalid email, missing fields, etc.), the errors are presented and no actual login attempt is made.
|
public boolean match(Element e,String pseudoE){
return ((ExtendedSelector)getSimpleSelector()).match(e,pseudoE) && ((ExtendedCondition)getCondition()).match(e,pseudoE);
}
|
Tests whether this selector matches the given element.
|
@Override public boolean isActive(){
return amIActive;
}
|
Used by the Whitebox GUI to tell if this plugin is still running.
|
void doReps(ObjectOutputStream oout,ObjectInputStream oin,StreamBuffer sbuf,Node[] trees,int nbatches) throws Exception {
int ncycles=trees.length;
for (int i=0; i < nbatches; i++) {
sbuf.reset();
oout.reset();
for (int j=0; j < ncycles; j++) {
oout.writeObject(trees[j]);
}
oout.flush();
for (int j=0; j < ncycles; j++) {
oin.readObject();
}
}
}
|
Run benchmark for given number of batches, with each batch containing the given number of cycles.
|
public void createGraphic(GraphicAttributes ga){
init();
stateMachine.setUndefined();
int renderType=OMGraphic.RENDERTYPE_UNKNOWN;
int lineType=OMGraphic.LINETYPE_GREATCIRCLE;
if (ga != null) {
renderType=ga.getRenderType();
lineType=ga.getLineType();
}
if (Debug.debugging("eomg")) {
Debug.output("EditableOMRect.createGraphic(): rendertype = " + renderType);
Debug.output("EditableOMRect.createGraphic(): linetype = " + lineType);
}
switch (renderType) {
case (OMGraphic.RENDERTYPE_LATLON):
if (lineType == OMGraphic.LINETYPE_UNKNOWN) {
lineType=OMGraphic.LINETYPE_GREATCIRCLE;
if (ga != null) {
ga.setLineType(OMGraphic.LINETYPE_GREATCIRCLE);
}
}
rect=new OMRect(90f,-180f,90f,-180f,lineType);
break;
case (OMGraphic.RENDERTYPE_OFFSET):
rect=new OMRect(90d,-180d,-1,-1,1,1);
break;
default :
rect=new OMRect(-1,-1,-1,-1);
}
if (ga != null) {
ga.setTo(rect,true);
}
assertGrabPoints();
}
|
Create and set the graphic within the state machine. The GraphicAttributes describe the type of rect to create.
|
public void testRandom(){
Person person=PopulationUtils.getFactory().createPerson(Id.create(1,Person.class));
Plan plan1=PersonUtils.createAndAddPlan(person,false);
Plan plan2=PersonUtils.createAndAddPlan(person,false);
plan2.setScore(10.0);
Plan plan3=PersonUtils.createAndAddPlan(person,false);
plan3.setScore(-50.0);
Plan plan4=PersonUtils.createAndAddPlan(person,false);
plan4.setScore(0.0);
RandomPlanSelector<Plan,Person> selector=new RandomPlanSelector<Plan,Person>();
int cnt1=0;
int cnt2=0;
int cnt3=0;
int cnt4=0;
for (int i=0; i < 4000; i++) {
Plan plan=selector.selectPlan(person);
if (plan == plan1) cnt1++;
if (plan == plan2) cnt2++;
if (plan == plan3) cnt3++;
if (plan == plan4) cnt4++;
}
log.info("Plan 1 was returned " + cnt1 + " times.");
log.info("Plan 2 was returned " + cnt2 + " times.");
log.info("Plan 3 was returned " + cnt3 + " times.");
log.info("Plan 4 was returned " + cnt4 + " times.");
assertEquals(966,cnt1);
assertEquals(1014,cnt2);
assertEquals(1039,cnt3);
assertEquals(981,cnt4);
}
|
Test that each of a person's plans is randomly selected.
|
@Override protected void finalize() throws Throwable {
mView=null;
mTransition=null;
mJSON=null;
mKeepParameters=null;
mHotspotTextures.clear();
mHotspotTextures=null;
super.finalize();
}
|
dealloc methods
|
public synchronized static void registerSelf(Class<?> class1){
if (Log.logger.isLoggable(Level.FINEST)) {
Log.logger.finest("Config is registering " + class1.getName());
}
switch (configState) {
case LOADED:
Log.logger.severe("Module " + class1.getName() + " tried to register too late.");
break;
case INITIAL:
Log.logger.severe("Command line has not been successfully read and we are trying to register " + class1.getName());
break;
}
if (!isRegistered(class1)) {
try {
final ResourceBundle bundle=ResourceBundle.getBundle(class1.getName());
regModules.put(class1.getName(),bundle);
registerProperties(class1,bundle);
}
catch (MissingResourceException e) {
Log.logger.log(Level.FINEST,"Config found no resource bundle for {0}",class1.getName());
}
catch (Exception e) {
logger.log(Level.SEVERE,"Error processing resource bundle for " + class1.getName(),e);
}
}
}
|
Called by each "module" to register itself and its parameters. It is expected that a <classname>.properties file will be co-located with the .class file. The format for this file is not written down but can be easily observed by example, just remember that a line break must end with "<tt>\n\</tt>" with no trailing spaces! <p> <b>NB.</b> This should only be called from the static registerConfig method of the class in question!
|
static public String randomNegativeFloat(int whole,int decimal){
return "-" + NumericFunctions.randomPositiveFloat(whole,decimal);
}
|
Get a random, negative float
|
public static String removePrefix(final String text,final String prefix){
if (text != null) {
return text.replaceFirst(prefix,"");
}
return null;
}
|
Remove the prefix from text.
|
public CloudSqlDao(final String url) throws SQLException {
dataSource.setUrl(url);
final String createTableSql="CREATE TABLE IF NOT EXISTS books5 ( id INT NOT NULL " + "AUTO_INCREMENT, author VARCHAR(255), createdBy VARCHAR(255), createdById VARCHAR(255), " + "description VARCHAR(255), publishedDate VARCHAR(255), title VARCHAR(255), imageUrl "+ "VARCHAR(255), PRIMARY KEY (id))";
try (Connection conn=dataSource.getConnection()){
conn.createStatement().executeUpdate(createTableSql);
}
}
|
A data access object for Bookshelf using a Google Cloud SQL server for storage.
|
public AccountHeaderBuilder withProfileImagesClickable(boolean profileImagesClickable){
this.mProfileImagesClickable=profileImagesClickable;
return this;
}
|
enable or disable the profile images to be clickable
|
public boolean hasHeader(){
return hasExtension(Header.class);
}
|
Returns whether it has the header row.
|
public void processScrollEvent(ActionEvent event){
int currentRow=1;
FacesContext context=FacesContext.getCurrentInstance();
UIComponent component=event.getComponent();
Integer curRow=(Integer)component.getAttributes().get("currentRow");
if (curRow != null) {
currentRow=curRow.intValue();
}
scroll(currentRow);
}
|
Handles the ActionEvent generated as a result of clicking on a link that points a particular page in the result-set.
|
@Override protected void shutdown(){
Arrays.fill(mac_write_secret,(byte)0);
Arrays.fill(mac_read_secret,(byte)0);
super.shutdown();
}
|
Shutdown the protocol. It will be impossible to use the instance after the calling of this method.
|
private void writeQNameAttribute(java.lang.String namespace,java.lang.String attName,javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String attributeNamespace=qname.getNamespaceURI();
java.lang.String attributePrefix=xmlWriter.getPrefix(attributeNamespace);
if (attributePrefix == null) {
attributePrefix=registerPrefix(xmlWriter,attributeNamespace);
}
java.lang.String attributeValue;
if (attributePrefix.trim().length() > 0) {
attributeValue=attributePrefix + ":" + qname.getLocalPart();
}
else {
attributeValue=qname.getLocalPart();
}
if (namespace.equals("")) {
xmlWriter.writeAttribute(attName,attributeValue);
}
else {
registerPrefix(xmlWriter,namespace);
xmlWriter.writeAttribute(namespace,attName,attributeValue);
}
}
|
Util method to write an attribute without the ns prefix
|
public long[] select(long rank,long[] dest){
return select(rank,dest,0,dest.length);
}
|
Performs a bulk select of consecutive ranks into a given array.
|
public static String contentTypeWithCharsetAndBoundary(String mimeType,String charset,String boundary){
return mimeType + "; charset=" + charset+ "; boundary="+ boundary;
}
|
Constructs a content type with given type, charset and boundary.
|
@Deprecated public Timestamp(int year,int month,int date,int hour,int minute,int second,int nano){
super(year,month,date,hour,minute,second);
if (nano > 999999999 || nano < 0) {
throw new IllegalArgumentException("nanos > 999999999 or < 0");
}
nanos=nano;
}
|
Constructs a <code>Timestamp</code> object initialized with the given values.
|
private static void checkOutputParameters(CommandLine cmdLine) throws KeywordOptimizerException {
for ( String mode : cmdLine.getOptionValues("o")) {
try {
OutputMode outputMode=OutputMode.valueOf(mode);
if (outputMode.isOutputFileRequired() && !cmdLine.hasOption("of")) {
throw new KeywordOptimizerException("An output file must be specified if output mode is " + outputMode);
}
}
catch ( IllegalArgumentException e) {
throw new KeywordOptimizerException("Output mode '" + mode + "' is not supported",e);
}
}
}
|
Checks if output parameters are specified correctly.
|
public InstantiationException(java.lang.String s){
}
|
Constructs an InstantiationException with the specified detail message. s - the detail message.
|
public CompositeVariableValue(){
_value=new JComboBox<String>();
}
|
Create a null object. Normally only used for tests and to pre-load classes.
|
private void tearDownAllConnections(){
for ( NetworkInterface i : net) {
List<Connection> conns=i.getConnections();
if (conns.size() == 0) continue;
List<NetworkInterface> removeList=new ArrayList<NetworkInterface>(conns.size());
for ( Connection con : conns) {
removeList.add(con.getOtherInterface(i));
}
for ( NetworkInterface inf : removeList) {
i.destroyConnection(inf);
}
}
}
|
Tears down all connections for this host.
|
protected Object execute() throws IOException {
init();
if (!getSelectedRemote()) {
return null;
}
Codenvy codenvy=getMultiRemoteCodenvy().getCodenvy(remoteName);
if (codenvy == null) {
Ansi buffer=Ansi.ansi();
buffer.fg(RED);
buffer.a(format("Please login into the remote %s",remoteName));
buffer.reset();
System.out.println(buffer.toString());
return null;
}
if (isProgressEnabled()) {
new ConsoleReader().resetPromptLine("Retrieving factories...","",0);
}
User user=codenvy.user().current().execute();
List<String> factoriesID=codenvy.factory().list(user).execute();
if (isProgressEnabled()) {
new ConsoleReader().resetPromptLine("","",0);
}
List<String> factoriesName=new ArrayList<>();
List<String> factoriesVersion=new ArrayList<>();
List<String> factoriesCreated=new ArrayList<>();
int count=0;
for ( String factoryId : factoriesID) {
try {
if (isProgressEnabled()) {
count++;
String percent=(count * 100) / factoriesID.size() + "/100";
new ConsoleReader().resetPromptLine("Collecting factory data...",percent,percent.length());
}
Factory factory=codenvy.factory().get(factoryId).execute();
FactoryProject factoryProject=factory.project();
if (factoryProject != null) {
factoriesName.add(factoryProject.name());
}
else {
factoriesName.add("---");
}
factoriesVersion.add(factory.getV());
FactoryCreator creator=factory.creator();
if (creator != null) {
Date date=new Date(creator.created());
factoriesCreated.add(date.toString());
}
else {
factoriesCreated.add("...");
}
}
catch ( CodenvyException e) {
e.printStackTrace();
factoriesName.add("---");
factoriesVersion.add("---");
factoriesName.add("---");
}
}
if (isProgressEnabled()) {
new ConsoleReader().resetPromptLine("","",0);
}
AsciiArray asciiArray=buildAsciiArray().withColumns(factoriesID,factoriesName,factoriesVersion,factoriesCreated).withTitle("ID","Name","Version","Created");
System.out.println(asciiArray.toAscii());
return null;
}
|
Prints the current projects per workspace
|
public Population initialPopulation(final EvolutionState state,int thread){
Population p=setupPopulation(state,thread);
p.populate(state,thread);
return p;
}
|
Creates, populates, and returns a new population by making a new population, calling setup(...) on it, and calling populate(...) on it, assuming an unthreaded environment (thread 0). Obviously, this is an expensive method. It should only be called once typically in a run.
|
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.print("Enter a hex number: ");
String hex=input.nextLine();
try {
System.out.println("The decimal value for hex number " + hex + " is "+ hexToDecimal(hex.toUpperCase()));
}
catch ( NumberFormatException ex) {
System.out.println(ex.getMessage());
}
}
|
Main method
|
private LDAPConnection bindAs(Credentials credentials) throws GuacamoleException {
String username=credentials.getUsername();
String password=credentials.getPassword();
if (username == null || username.isEmpty()) {
logger.debug("Anonymous bind is not currently allowed by the LDAP authentication provider.");
return null;
}
if (password == null || password.isEmpty()) {
logger.debug("Anonymous bind is not currently allowed by the LDAP authentication provider.");
return null;
}
String userDN=getUserBindDN(username);
if (userDN == null) {
logger.debug("Unable to determine DN for user \"{}\".",username);
return null;
}
return ldapService.bindAs(userDN,password);
}
|
Binds to the LDAP server using the provided Guacamole credentials. The DN of the user is derived using the LDAP configuration properties provided in guacamole.properties, as is the server hostname and port information.
|
public static int YToTileY(int y,int tileGridYOffset,int tileHeight){
y-=tileGridYOffset;
if (y < 0) {
y+=1 - tileHeight;
}
return y / tileHeight;
}
|
Converts a pixel's Y coordinate into a vertical tile index relative to a given tile grid layout specified by its Y offset and tile height.
|
public SimpleFragmentIntent<F> putExtra(String name,Parcelable value){
if (extras == null) {
extras=new Bundle();
}
extras.putParcelable(name,value);
return this;
}
|
Add extended data to the intent.
|
public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,Object data) throws VisitorException {
return visitor.visit(this,data);
}
|
Accept the visitor.
|
private int randomLevel(){
int x=randomSeed;
x^=x << 13;
x^=x >>> 17;
randomSeed=x^=x << 5;
if ((x & 0x80000001) != 0) return 0;
int level=1;
while (((x>>>=1) & 1) != 0) ++level;
return level;
}
|
Returns a random level for inserting a new node. Hardwired to k=1, p=0.5, max 31 (see above and Pugh's "Skip List Cookbook", sec 3.4). This uses the simplest of the generators described in George Marsaglia's "Xorshift RNGs" paper. This is not a high-quality generator but is acceptable here.
|
public Server start() throws SQLException {
try {
started=true;
service.start();
String name=service.getName() + " (" + service.getURL()+ ")";
Thread t=new Thread(this,name);
t.setDaemon(service.isDaemon());
t.start();
for (int i=1; i < 64; i+=i) {
wait(i);
if (isRunning(false)) {
return this;
}
}
if (isRunning(true)) {
return this;
}
throw DbException.get(ErrorCode.EXCEPTION_OPENING_PORT_2,name,"timeout; " + "please check your network configuration, specially the file /etc/hosts");
}
catch ( DbException e) {
throw DbException.toSQLException(e);
}
}
|
Tries to start the server.
|
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case StextPackage.VARIABLE_DEFINITION__INITIAL_VALUE:
return getInitialValue();
}
return super.eGet(featureID,resolve,coreType);
}
|
<!-- begin-user-doc --> <!-- end-user-doc -->
|
boolean triviallyTrue(Statement triple,Schema schema){
Resource s=triple.getSubject();
URI p=triple.getPredicate();
Value o=triple.getObject();
if (p.equals(RDF.TYPE)) {
if (o.equals(OWL.ONTOLOGY)) {
return true;
}
else if (o.equals(OWL.CLASS)) {
return schema.hasClass(s);
}
else if ((o.equals(OWL.OBJECTPROPERTY) || o.equals(OWL.DATATYPEPROPERTY)) && s instanceof URI) {
return schema.hasProperty((URI)s);
}
}
return false;
}
|
Determine that a statement is trivially true for purposes of entailment tests, such as an implicit "[bnode] type Ontology" triple or a "[class] type Class" triple as long as the class exists.
|
public void closeCqs(){
try {
getCqService().closeAllCqs(true);
}
catch ( CqException cqe) {
if (logger.isDebugEnabled()) {
logger.debug("Unable to closeAll Cqs. Error :{}",cqe.getMessage(),cqe);
}
}
}
|
Close all CQs executing in this VM, and release resources associated with executing CQs. CqQuerys created by other VMs are unaffected.
|
public DefaultDatagramSessionConfig(){
}
|
Creates a new instance.
|
public PWTab addTab(final Image image,final String text){
final PWTab tab=new PWTab(image,text);
this.tabs.add(tab);
return tab;
}
|
Add a tab to the preference window
|
public static Composite createComposite(Composite parent,Font font,int columns,int hspan,int fill,int marginwidth,int marginheight){
Composite g=new Composite(parent,SWT.NONE);
GridLayout layout=new GridLayout(columns,false);
layout.marginWidth=marginwidth;
layout.marginHeight=marginheight;
g.setLayout(layout);
g.setFont(font);
GridData gd=new GridData(fill);
gd.horizontalSpan=hspan;
g.setLayoutData(gd);
return g;
}
|
Creates a Composite widget
|
public PooledByteBufferInputStream(PooledByteBuffer pooledByteBuffer){
super();
Preconditions.checkArgument(!pooledByteBuffer.isClosed());
mPooledByteBuffer=Preconditions.checkNotNull(pooledByteBuffer);
mOffset=0;
mMark=0;
}
|
Creates a new inputstream instance over the specific buffer.
|
public Iterator<String> keys(){
return this.keySet().iterator();
}
|
Get an enumeration of the keys of the JSONObject.
|
void update(){
double alpha=System.currentTimeMillis() / 1000.0 * 0.5;
float x=(float)Math.sin(alpha);
float z=(float)Math.cos(alpha);
lightPosition.set(lightDistance * x,3 + (float)Math.sin(alpha),lightDistance * z);
light.setPerspective((float)Math.toRadians(45.0f),1.0f,0.1f,60.0f).lookAt(lightPosition,lightLookAt,UP);
camera.setPerspective((float)Math.toRadians(45.0f),(float)width / height,0.1f,30.0f).lookAt(cameraPosition,cameraLookAt,UP);
}
|
Update the camera MVP matrix.
|
@Override protected void updateFromInput(){
interfaceButton.setSelection(false);
superclassButton.setSelection(false);
AbstractClassSensorAssignment<?> assignment=getInput();
if (null != assignment) {
updateTitle(assignment.getSensorConfigClass());
interfaceButton.setSelection(assignment.isInterf());
superclassButton.setSelection(assignment.isSuperclass());
classText.setText(StringUtils.defaultString(assignment.getClassName()));
annotationText.setText(StringUtils.defaultString(assignment.getAnnotation()));
}
else {
classText.setText("");
annotationText.setText("");
}
}
|
Updates controls from the input.
|
protected CMapFormat0(short language){
super((short)0,language);
byte[] initialIndex=new byte[256];
for (int i=0; i < initialIndex.length; i++) {
initialIndex[i]=(byte)i;
}
setMap(initialIndex);
}
|
Creates a new instance of CMapFormat0
|
public static String decryptString(CipherTextIvMac civ,SecretKeys secretKeys,String encoding) throws UnsupportedEncodingException, GeneralSecurityException {
return new String(decrypt(civ,secretKeys),encoding);
}
|
AES CBC decrypt.
|
public void pasteSubsession(List sessionElements,Point upperLeft){
getWorkbench().pasteSubgraph(sessionElements,upperLeft);
getWorkbench().deselectAll();
for (int i=0; i < sessionElements.size(); i++) {
Object o=sessionElements.get(i);
if (o instanceof GraphNode) {
Node modelNode=(Node)o;
getWorkbench().selectNode(modelNode);
}
}
getWorkbench().selectConnectingEdges();
}
|
Pastes list of session elements into the workbench.
|
public static ArrayList<String> toList(Set<String> set){
int n=set.size();
ArrayList<String> list=new ArrayList<String>(n);
for ( String string : set) {
list.add(string);
}
return list;
}
|
Creates a new <tt>ArrayList</tt> collection from the specified <tt>Set</tt> of <tt>String</tt>s.
|
public void attribClass(DiagnosticPosition pos,ClassSymbol c){
try {
annotate.flush();
attribClass(c);
}
catch ( CompletionFailure ex) {
chk.completionError(pos,ex);
}
}
|
Main method: attribute class definition associated with given class symbol. reporting completion failures at the given position.
|
public final boolean hasMessages(int what){
return mExec.hasMessages(what);
}
|
Check if there are any pending posts of messages with code 'what' in the message queue.
|
private void stepInput(){
if (serialInterface.map(null).orElse(false)) {
for ( final Port port : Port.VALUES) {
final Pipe receivingPipe=getCasing().getReceivingPipe(getFace(),port);
if (!receivingPipe.isReading()) {
receivingPipe.beginRead();
}
if (receivingPipe.canTransfer()) {
serialInterface.ifPresent(null);
if (serialInterface.map(null).orElse(false)) {
receivingPipe.beginRead();
}
}
}
}
else {
cancelRead();
}
}
|
Update the inputs of the stack, pulling values onto the stack.
|
public boolean isBatchTime(){
Object oo=get_Value(COLUMNNAME_IsBatchTime);
if (oo != null) {
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
|
Get Is BatchTime.
|
public Transform match(Class type) throws Exception {
if (type == int.class) {
return new IntegerTransform();
}
if (type == boolean.class) {
return new BooleanTransform();
}
if (type == long.class) {
return new LongTransform();
}
if (type == double.class) {
return new DoubleTransform();
}
if (type == float.class) {
return new FloatTransform();
}
if (type == short.class) {
return new ShortTransform();
}
if (type == byte.class) {
return new ByteTransform();
}
if (type == char.class) {
return new CharacterTransform();
}
return null;
}
|
This method is used to match the specified type to primitive transform implementations. If this is given a primitive then it will always return a suitable <code>Transform</code>. If however it is given an object type an exception is thrown.
|
public Task<FileShareRestRep> expand(URI id,FileSystemExpandParam input){
return postTask(input,getIdUrl() + "/expand",id);
}
|
Begins expanding the given file system by ID. <p> API Call: <tt>POST /file/filesystems/{id}/expand</tt>
|
private Cache createCache() throws CacheException {
Properties props=new Properties();
DistributedSystem ds=getSystem(props);
ds.disconnect();
ds=getSystem(props);
Cache cache=null;
cache=CacheFactory.create(ds);
if (cache == null) {
throw new CacheException("CacheFactory.create() returned null "){
}
;
}
return cache;
}
|
create cache
|
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:27:57.912 -0500",hash_original_method="EA27CD9461C85470B182D05F37CF9E99",hash_generated_method="32B1F400463B2CFDF4B1DE0CA45358C7") protected boolean pageDown(TextView widget,Spannable buffer){
return false;
}
|
Performs a page-down movement action. Moves the cursor or scrolls down by one page.
|
void onEachDirectory(Consumer<File> consumer){
consumer.accept(getSnapshotDirectory());
consumer.accept(getLogDirectory());
}
|
Perform the supplied function on each directory used by this server.
|
public FeatureClassInfo(CoverageTable cthis,String colname,String tablepath,String ftname,String tileDirFile,String tileDirFileColName) throws FormatException {
super(tablepath + ftname,false);
fullInit=true;
ctable=cthis;
columnname=colname.toLowerCase().intern();
tileFileName=tileDirFile;
tileFileColName=tileDirFileColName;
if ("fac".equals(tileFileName)) {
featureType=CoverageTable.AREA_FEATURETYPE;
}
else if ("end".equals(tileFileName)) {
featureType=CoverageTable.EPOINT_FEATURETYPE;
}
else if ("cnd".equals(tileFileName)) {
featureType=CoverageTable.CPOINT_FEATURETYPE;
}
else if ("txt".equals(tileFileName)) {
featureType=CoverageTable.TEXT_FEATURETYPE;
}
else if ("edg".equals(tileFileName)) {
featureType=CoverageTable.EDGE_FEATURETYPE;
}
else {
featureType=CoverageTable.SKIP_FEATURETYPE;
}
if (Debug.debugging("vpf.fci")) {
Debug.output("FCI: set to peruse (" + filename + ")\n\tcreated with column name ("+ colname+ ")\n\ttile directory file ("+ tileDirFile+ ")\n\ttile id column ("+ tileDirFileColName+ ")");
}
}
|
Construct a FeatureClassInfo that can be used for feature search
|
static public CIDR valueOf(String s){
return new CIDR(s);
}
|
Construct a CIDR from the given string.
|
public HashCode append(final long value){
iTotal=iTotal * iConstant + ((int)(value ^ (value >> 32)));
return this;
}
|
<p> Append a <code>hashCode</code> for a <code>long</code>. </p>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.