code
stringlengths
10
174k
nl
stringlengths
3
129k
public int hashCode(){ return m_storedObjectArray.length; }
Returns a hashcode for this object.
public static int number(){ return _all.size(); }
Total number of productions.
GridMemcachedMessage(){ }
Creates empty packet which will be filled in parser.
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 tryParseResourceElement(IDOMElement element){ if (!UiBinderXmlModelUtilities.isImageElement(element) && !UiBinderXmlModelUtilities.isDataElement(element)) { return; } IDOMAttr srcAttribute=(IDOMAttr)UiBinderXmlModelUtilities.getSrcAttribute(element); if (srcAttribute == null) { return; } ...
Parses the <ui:image> or <ui:data> elements.
@Override public double[] distributionForInstance(Instance instance) throws Exception { if (m_NumIterationsPerformed == 0) { return m_ZeroR.distributionForInstance(instance); } if (m_NumIterationsPerformed == 0) { throw new Exception("No model built"); } double[] sums=new double[instance.numClasses()]...
Calculates the class membership probabilities for the given test instance.
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
public void updateBucketACL(String bucketName,String payload) throws ECSException { _log.debug("ECSApi:updateBucketACL Update bucket ACL initiated for : {}",bucketName); ClientResponse clientResp=null; final String path=MessageFormat.format(URI_UPDATE_BUCKET_ACL,bucketName); try { clientResp=put(path,payloa...
Updates the bucket ACL
public void shutdown(){ }
Stops the reporter and closes any internal resources.
public static Version v2_0(){ return new Version(ICalVersion.V2_0); }
Creates a version property that is set to the latest iCalendar version (2.0).
private void analize(){ StringTokenizer tokenizer=new StringTokenizer(sourceData,","); event=Integer.parseInt(tokenizer.nextToken()); actionType=Integer.parseInt(tokenizer.nextToken()); macroId=Integer.parseInt(tokenizer.nextToken()); }
Private methods
static public PVector random3D(PApplet parent){ return random3D(null,parent); }
Make a new 3D unit vector with a random direction using Processing's current random number generator
@Override public BooleanVal copy(){ return new BooleanVal(b); }
Copies the boolean value
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.
public boolean isWindows(){ return operatingSystem == OperatingSystem.WINDOWS; }
Tests whether the user is using Windows.
protected PrimeFinder(){ }
Makes this class non instantiable, but still let's others inherit from it.
protected void firePathChanged(TreePath path){ Object node=path.getLastPathComponent(); TreePath parentPath=path.getParentPath(); if (parentPath == null) { fireChildrenChanged(path,null,null); } else { Object parent=parentPath.getLastPathComponent(); fireChildChanged(parentPath,getIndexOfChild(pare...
Call when the path itself has changed, but no structure changes have occurred.
@Override public Object listField(final FormObject form){ final ObservableList<String> items=FXCollections.observableArrayList(form.getItemsList()); final ListView<String> lists=items == null ? new ListView<String>() : new ListView<String>(items); final JavaFXControlListener controlListener=new JavaFXControlListe...
setup and return the List field specified in the FormObject
private CMenuBuilder(){ }
You are not supposed to instantiate this class.
public DTMAxisIterator cloneIterator(){ _isRestartable=false; try { final PrecedingIterator clone=(PrecedingIterator)super.clone(); final int[] stackCopy=new int[_stack.length]; System.arraycopy(_stack,0,stackCopy,0,_stack.length); clone._stack=stackCopy; return clone; } catch ( CloneNotSupp...
Returns a deep copy of this iterator. The cloned iterator is not reset.
private boolean isOnlySimAssociated(Set<Long> rawContactIds){ for ( Long rawContactId : rawContactIds) { if (isSimAccount(rawContactId)) { return true; } } return false; }
Checks if a set of raw contact IDs is only associated to a SIM account
public CompositeName(String n) throws InvalidNameException { impl=new NameImpl(null,n); }
Constructs a new composite name instance by parsing the string n using the composite name syntax (left-to-right, slash separated). The composite name syntax is described in detail in the class description.
public static boolean isCglibProxy(Object object){ return ClassUtils.isCglibProxyClass(object.getClass()); }
Check whether the given object is a CGLIB proxy.
public void semiringPlus(HyperEdge hyperEdge){ if (null == bestHyperedge || bestHyperedge.getBestDerivationScore() < hyperEdge.getBestDerivationScore()) { bestHyperedge=hyperEdge; } }
Updates the cache of the best incoming hyperedge.
public Data encode(@Nullable Object obj) throws IgniteCheckedException { if (obj == null) return new Data(null,(short)0); byte[] bytes; short flags=0; if (obj instanceof String) bytes=((String)obj).getBytes(); else if (obj instanceof Boolean) { bytes=new byte[]{(byte)((Boolean)obj ? '1' : '0')}; ...
Encodes object.
@Override public Object eInvoke(int operationID,EList<?> arguments) throws InvocationTargetException { switch (operationID) { case ImPackage.PARAMETERIZED_TYPE_REF_IM___GET_DECLARED_TYPE_IM: return getDeclaredType_IM(); case ImPackage.PARAMETERIZED_TYPE_REF_IM___SET_DECLARED_TYPE_IM__SYMBOLTABLEENTRY: setDeclared...
<!-- begin-user-doc --> <!-- end-user-doc -->
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException { s.defaultReadObject(); if (firstDayOfWeek == null) { throw new InvalidObjectException("firstDayOfWeek is null"); } if (minimalDays < 1 || minimalDays > 7) { throw new InvalidObjectException(...
Restore the state of a WeekFields from the stream. Check that the values are valid.
private static int selectColorFormat(MediaCodecInfo codecInfo,String mimeType){ MediaCodecInfo.CodecCapabilities capabilities=codecInfo.getCapabilitiesForType(mimeType); for (int i=0; i < capabilities.colorFormats.length; i++) { int colorFormat=capabilities.colorFormats[i]; if (isRecognizedFormat(colorForma...
Returns a color format that is supported by the codec and by this test code. If no match is found, this throws a test failure -- the set of formats known to the test should be expanded for new platforms.
public boolean isCreatePlainTextDetails(){ return createPlainTextDetails; }
Creates an additional "details" attribute in the resulting hashtables which effectively contains a plain text version of the description tag.
public void removeDragEventHandlers(){ node.removeEventHandler(TouchEvent.ANY,touchHandler); node.removeEventHandler(MouseEvent.ANY,mouseHandler); }
Make the attached Node stop acting on drag actions by removing drag event handlers
@Override public void process(KeyValPair<K,V> tuple){ K key=tuple.getKey(); if (!doprocessKey(key) || (tuple.getValue() == null)) { return; } V val=low.get(key); V eval=tuple.getValue(); if ((val == null) || (val.doubleValue() > eval.doubleValue())) { low.put(cloneKey(key),eval); } val=high.get(...
Process each key and computes new high and low.
static void validateContactAgainstPolicy(ContactResource contact) throws EppException { if (contact.getDisclose() != null && !contact.getDisclose().getFlag()) { throw new DeclineContactDisclosureFieldDisallowedPolicyException(); } }
Check contact's state against server policy.
public WarningsGroup(ICalProperty property,List<ICalComponent> componentHierarchy,List<Warning> warning){ this(null,property,componentHierarchy,warning); }
Creates a new set of validation warnings for a property.
private void addReference(final int sourcePosition,final int referencePosition){ if (srcAndRefPositions == null) { srcAndRefPositions=new int[6]; } if (referenceCount >= srcAndRefPositions.length) { int[] a=new int[srcAndRefPositions.length + 6]; System.arraycopy(srcAndRefPositions,0,a,0,srcAndRefPosi...
Adds a forward reference to this label. This method must be called only for a true forward reference, i.e. only if this label is not resolved yet. For backward references, the offset of the reference can be, and must be, computed and stored directly.
public static String stringFor(int result){ switch (result) { case CUDA_SUCCESS: return "CUDA_SUCCESS"; case CUDA_ERROR_INVALID_VALUE: return "CUDA_ERROR_INVALID_VALUE"; case CUDA_ERROR_OUT_OF_MEMORY: return "CUDA_ERROR_OUT_OF_MEMORY"; case CUDA_ERROR_NOT_INITIALIZED: return "CUDA_ERROR_NOT_INITIALIZED"; case CUD...
Returns the String identifying the given CUresult
public void testCase7(){ byte aBytes[]={10,20,30,40,50,60,70,10,20,30}; byte bBytes[]={1,2,3,4,5,6,7,1,2,3}; int aSign=-1; int bSign=1; byte rBytes[]={-12,-23,-34,-45,-56,-67,-78,-12,-23,-33}; BigInteger aNumber=new BigInteger(aSign,aBytes); BigInteger bNumber=new BigInteger(bSign,bBytes); BigInteger re...
Subtract two numbers of the same length and different signs. The first is negative. The first is greater in absolute value.
@Override public Object invoke(final String resourceName,final String operationName,final Object[] params,final String[] signature){ final Link link=findLink(MBEAN_OPERATION_LINK_RELATION); if (link != null) { final ClientHttpRequest request=createHttpRequest(link); request.addParameterValues("resourceName"...
Invoke an operation identified by name on a remote resource identified by name with the given arguments. The intent of this method is to invoke an arbitrary operation on an MBean located in the remote MBeanServer.
private void logAllViewerstats(){ for ( String channel : c.getOpenChannels()) { logViewerstats(channel); } }
Log viewerstats for any open channels, which can be used to log any remaining data on all channels when the program is closed.
public Type basicGetDefinedType(){ return definedType; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public User createUser(String name,String email){ failIfInvalid(name,email); User user=new User(name,email); Key key=keyFactory.newKey(user.getId()); Entity entity=Entity.builder(key).set("id",user.getId()).set("name",name).set("email",email).build(); datastore.add(entity); return user; }
Create a new user and add it to Cloud Datastore.
boolean isValid(){ return valid; }
Check if the savepoint is valid.
protected void addToBuildSpec(String builderID) throws CoreException { IProjectDescription description=getProject().getDescription(); ICommand findBugsCommand=getFindBugsCommand(description); if (findBugsCommand == null) { ICommand newCommand=description.newCommand(); newCommand.setBuilderName(builderID);...
Adds a builder to the build spec for the given project.
private void processPrologue(Instruction s){ int numArgs=0; for (Enumeration<Operand> e=s.getDefs(); e.hasMoreElements(); numArgs++) { Register formal=((RegisterOperand)e.nextElement()).getRegister(); ValueGraphVertex v=findOrCreateVertex(formal); v.setLabel(new ValueGraphParamLabel(numArgs),0); } }
Update the value graph to account for an IR_PROLOGUE instruction <p><b>PRECONDITION:</b> <code> Prologue.conforms(s); </code>
public static OrdersFragment newInstance(String token){ OrdersFragment fragment=new OrdersFragment(); Bundle args=new Bundle(); args.putString(USER_TOKEN,token); fragment.setArguments(args); return fragment; }
Use this factory method to create a new instance of this fragment using the provided parameters.
@Override public TextAnnotation createTextAnnotation(String text) throws IllegalArgumentException { return createTextAnnotation(DEFAULT_CORPUS_ID,DEFAULT_TEXT_ID,text); }
create a TextAnnotation for the text argument, using the Tokenizer provided at construction. The text should be free from html/xml tags and non-English characters, assuming you want to process this text with other NLP components.
public ProductsCentralView(final String id,final long categoryId,final NavigationContext navigationContext){ super(id,categoryId,navigationContext); }
Construct panel.
public static void assertQ(String message,String response,String... tests){ try { String m=(null == message) ? "" : message + " "; String results=FeedChecker.validateXPath(response,tests); if (null != results) { throw new RuntimeException(m + "query failed XPath: " + results+ " xml response was: "+ ...
Validates a query matches some XPath test expressions and closes the query
public <T extends Module>void attachModule(Class<T> module){ try { Constructor<T> constructor=module.getConstructor(DialogueSystem.class); attachModule(constructor.newInstance(this)); displayComment("Module " + module.getSimpleName() + " successfully attached"); } catch ( InstantiationException|Illega...
Attaches the module to the dialogue system.
@DSSink({DSSinkKind.IO}) @DSSpec(DSCat.IO) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:52.021 -0400",hash_original_method="A4829AD80420573041015F28AD207DA9",hash_generated_method="7067DCBCADD401AE5B74A15D12B58AC3") @Override public void write(byte[] b,int off,int len){ if (...
Write the bytes to byte array.
protected void request(RequestContext context,String key,String message){ try { HttpServletRequest request=context.getRequest(); String filename=request.getRemoteAddr(); start(filename,key,"\u001b[33m" + request.getMethod() + " "+ request.getRequestURI()+ "\u001b[0m "+ message); } catch ( Exception e)...
Emits a "start" line for an incoming request.
void decryptBlock(byte[] cipher,int cipherOffset,byte[] plain,int plainOffset){ cipherBlock(cipher,cipherOffset,plain,plainOffset); }
Performs decryption operation. <p>The input cipher text <code>cipher</code>, starting at <code>cipherOffset</code> and ending at <code>(cipherOffset + len - 1)</code>, is decrypted. The result is stored in <code>plain</code>, starting at <code>plainOffset</code>. <p>The subclass that implements Cipher should ensure tha...
private long[] determinePreferenceVectorByMaxIntersection(ModifiableDBIDs[] neighborIDs,StringBuilder msg){ int dimensionality=neighborIDs.length; long[] preferenceVector=BitsUtil.zero(dimensionality); Map<Integer,ModifiableDBIDs> candidates=new HashMap<>(dimensionality); for (int i=0; i < dimensionality; i++) ...
Determines the preference vector with the max intersection strategy.
private void cleanupHandler(ContentHandler vh) throws SAXException { for (PrefixMapping pm=prefixMapping; pm != null; pm=pm.parent) vh.endPrefixMapping(pm.prefix); vh.endDocument(); }
Cleanup a handler. Remove proxy namespace mappings calling endPrefixMapping and calls also endDocument to signal that the source was ended.
public Vset checkValue(Environment env,Context ctx,Vset vset,Hashtable exp){ vset=right.checkValue(env,ctx,vset,exp); if (!right.type.isType(TC_ARRAY)) { env.error(where,"invalid.length",right.type); } return vset; }
Select the type of the expression
public Map<Integer,Integer> graphType(){ Map<Integer,Integer> result; int i; result=new HashMap<Integer,Integer>(); if (m_MultiClassifiers != null) { for (i=0; i < m_MultiClassifiers.length; i++) { if (m_MultiClassifiers[i] instanceof Drawable) { result.put(i,((Drawable)m_MultiClassifiers[i])....
Returns the type of graph representing the object.
public ConePortrayal3D(Color color){ this(color,1f); }
Constructs a ConePortrayal3D with a flat opaque appearance of the given color and a scale of 1.0.
public int mergeCompoundNames(){ final WordList wl=WordList.getInstance(); int changes=0; boolean changed; do { changed=false; for (int idx=0; idx < expressions.size() - 1; ++idx) { CompoundName compName=wl.searchCompoundName(expressions,idx); if (compName != null) { Expression first...
Merge compound names.
public boolean hasAttribute(String name){ error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); return false; }
Unimplemented. See org.w3c.dom.Element
public <T>Tuple3<T,A,B> prepend(T t){ return Tuple3.of(t,_1,_2); }
Creates a tuple 3 by prepending the supplied value
public void dupX1(){ mv.visitInsn(Opcodes.DUP_X1); }
Generates a DUP_X1 instruction.
public static String normalizePath(String path){ return path.replace(File.separatorChar,'/'); }
Normalize path by ensuring that only "/" is used as file name separator.
private void executeEscaped(String[] specDetails) throws SQLException { String sql="SELECT " + specDetails[0] + "("; for (int p=0; p < specDetails.length - 1; p++) { if (p != 0) sql=sql + ", "; sql=sql + specDetails[p + 1]; } sql=sql + ") ;"; System.out.println("DatabaseMetaDataTest.executeEscaped...
Test we can execute a function listed as a supported JDBC escaped function. We don't care about the actual return value, that should be tested elsewhere in the specific test of a function.
public String[] localizedMessagesFrom(ResourceBundle bundle){ String pattern="Constraint violation in {0}.{1} for method ''{3}'' with constraint \"{4}({6})\", for value ''{5}''"; ArrayList<String> list=new ArrayList<>(); for ( ConstraintViolation violation : constraintViolations) { Locale locale; if (bun...
Creates localized messages of all the constraint violations that has occured. <p> The key "<code>zest.constraint.<i><strong>CompositeType</strong></i>.<i><strong>methodName</strong></i></code>" will be used to lookup the text formatting pattern from the ResourceBundle, where <strong><code><i>CompositeType</i></code></s...
public void visitIincInsn(int var,int increment){ if (mv != null) { mv.visitIincInsn(var,increment); } }
Visits an IINC instruction.
public void initialiseAllDimensions(int sourceDimensions,int destDimensions,int destPastDimensions) throws Exception { this.destDimensions=destDimensions; this.sourceDimensions=sourceDimensions; this.destPastDimensions=destPastDimensions; addedMoreThanOneObservationSet=false; k=1; teKernelEstimator.initiali...
Initialise routine where the number of dimensions considered to be part of the past state may also be supplied.
private static void updateNetwork(WifiManager wifiManager,WifiConfiguration config){ Integer foundNetworkID=findNetworkInExistingConfig(wifiManager,config.SSID); if (foundNetworkID != null) { Log.i(TAG,"Removing old configuration for network " + config.SSID); wifiManager.removeNetwork(foundNetworkID); w...
Update the network: either create a new network or modify an existing network
public byte[] pad(byte[] data,int ofs,int len) throws BadPaddingException { return pad(RSACore.convert(data,ofs,len)); }
Pad the data and return the padded block.
public static void generateTriStripNormals(FloatBuffer vertices,IntBuffer indices,FloatBuffer normals){ if (vertices == null || indices == null || normals == null) { String message=Logging.getMessage("nullValue.BufferIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); ...
Generates average normal vectors for the vertices of a triangle strip.
public char first(){ return iter.first(); }
Sets the position to getBeginIndex().
private void deleteWorksheet(String title) throws IOException, ServiceException { WorksheetFeed worksheetFeed=service.getFeed(worksheetFeedUrl,WorksheetFeed.class); for ( WorksheetEntry worksheet : worksheetFeed.getEntries()) { String currTitle=worksheet.getTitle().getPlainText(); if (currTitle.equals(titl...
Deletes the worksheet specified by the title parameter. Note that worksheet titles are not unique, so this method just updates the first worksheet it finds.
public Object next(){ return enm.nextElement(); }
Move to next element in the array.
void unexecuteNSDecls(TransformerImpl transformer) throws TransformerException { unexecuteNSDecls(transformer,null); }
Send endPrefixMapping events to the result tree handler for all declared prefix mappings in the stylesheet.
public static void swapRows(Matrix matrix,long row1,long row2){ double temp=0; long cols=matrix.getColumnCount(); for (long col=0; col < cols; col++) { temp=matrix.getAsDouble(row1,col); matrix.setAsDouble(matrix.getAsDouble(row2,col),row1,col); matrix.setAsDouble(temp,row2,col); } }
Swap components in the two rows.
public boolean equals(Object obj){ return obj != null && obj instanceof ConnectionDesc && ((ConnectionDesc)obj).conn == conn; }
Two desc are equal if their PooledConnections are the same. This is useful when searching for a ConnectionDesc using only its PooledConnection.
private static PCalLocation NextLocOf(PCalLocation loc,MappingObject[][] map){ if (loc.getColumn() + 1 < map[loc.getLine()].length) { return new PCalLocation(loc.getLine(),loc.getColumn() + 1); } for (int i=loc.getLine() + 1; i < map.length; i++) { if (map[i].length > 0) { return new PCalLocation(i,...
Returns the position within map of the next object after the one with position loc. It returns null if there is no further object in map.
@UiHandler("cancelButton") public void handleCancelClick(final ClickEvent event){ this.actionDelegate.cancelled(); }
Handler set on the cancel button.
private void insertIntoGrid(DBIDRef id,V obj,int d,int v){ final int cn=cells[d]; final int nd=d + 1; int mi=Math.max(0,(int)Math.floor((obj.doubleValue(d) - offset[d] - epsilon) / gridwidth)); int ma=Math.min(cn - 1,(int)Math.floor((obj.doubleValue(d) - offset[d] + epsilon) / gridwidth)); assert (mi <= ma) :...
Insert a single object into the grid; potentially into multiple cells (at most 2^d) via recursion.
public void removeComponentResource(FacesContext context,UIComponent componentResource){ removeComponentResource(context,componentResource,null); }
<p class="changed_added_2_0">Remove argument <code>component</code>, which is assumed to represent a resource instance, as a resource to this view.</p> <div class="changed_added_2_0"> <p>
public List<ProjectTypeResolution> resolveSources(String path,boolean transientOnly) throws ServerException, NotFoundException { final List<ProjectTypeResolution> resolutions=new ArrayList<>(); for ( ProjectType type : projectTypeRegistry.getProjectTypes(ProjectTypeRegistry.CHILD_TO_PARENT_COMPARATOR)) { if (t...
Estimates to which project types the folder can be converted to
private void applyCriteria(int accountSchemaId,int costTypeId,int costElementId,int productId,Timestamp dateAccount,Timestamp dateAccountTo){ deleteParameters=new ArrayList<Object>(); resetCostParameters=new ArrayList<Object>(); deleteCostDetailWhereClause=new StringBuffer("1=1"); resetCostWhereClause=new Strin...
Apply Criteria for where clause
String computeDescription(IMethod method){ StringBuffer buf=new StringBuffer(); buf.append("Callees of "); buf.append(method.getElementName()); buf.append("("); boolean first=true; for ( String paramType : method.getParameterTypes()) { if (first) first=false; else buf.append(","); buf.appe...
Computes and returns a description string for this callee hierarchy.
public boolean hasOnlyInternalEvents(){ List<CacheEvent<?,?>> txevents=getEvents(); if (txevents == null || txevents.isEmpty()) { return false; } for ( CacheEvent<?,?> txevent : txevents) { LocalRegion region=(LocalRegion)txevent.getRegion(); if (region != null && !region.isPdxTypesRegion() && !reg...
Do all operations touch internal regions? Returns false if the transaction is empty or if any events touch non-internal regions.
public void loadAndInit(String configStr){ config=loadDataConfig(new InputSource(new StringReader(configStr))); }
Used by tests
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.ASSOCIATION___MODIFIER_1: return getModifier_1(); case UmplePackage.ASSOCIATION___ASSOCIATION_END_1: return getAssociationEnd_1(); case UmplePackage.ASSOCIATION___ARROW_1: return getArrow_1(); case...
<!-- begin-user-doc --> <!-- end-user-doc -->
public static ComponentUI createUI(JComponent pane){ return new StyledOptionPaneUI(StyleUtil.getStyle()); }
Create a new StyledOptionPaneUI. This method is used by the UIManager.
public StateSwitch createStateSwitch(){ StateSwitchImpl stateSwitch=new StateSwitchImpl(); return stateSwitch; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void testComplex() throws IOException { final String sql1="CREATE TABLE Entity2 ( Id INTEGER AUTO_INCREMENT PRIMARY KEY, Column TEXT NOT NULL, Column2 INTEGER NULL )"; final String sql2="INSERT INTO Entity2 ( Id, Column, Column2 ) SELECT Id, Column, 0 FROM Entity"; final String sql3="DROP TABLE Entity"; ...
Should be able to handle a script that contains anything nasty I can thing of right now.
void tieScriptsToSwf(DSwfInfo info,int isolateId){ if (!info.hasAllSource()) { int min=info.getFirstSourceId(); int max=info.getLastSourceId(); for (int i=min; i <= max; i++) { DModule m=getSource(i,isolateId); if (m == null) { } else { info.addSource(i,m); } } } }
Walk the list of scripts and add them to our swfInfo object This method may be called when min/max are zero and the swd has not yet fully loaded in the player or it could be called before we have all the scripts.
public void testBug9682() throws Exception { if (!serverSupportsStoredProcedures()) { return; } createProcedure("testBug9682","(decimalParam DECIMAL(18,0))\nBEGIN\n SELECT 1;\nEND"); CallableStatement cStmt=null; try { cStmt=this.conn.prepareCall("Call testBug9682(?)"); cStmt.setDouble(1,18.0); ...
Tests fix for BUG#9682 - Stored procedures with DECIMAL parameters with storage specifications that contained "," in them would fail.
public static void addEmojis(Context context,Spannable text,int emojiSize,int emojiAlignment,int textSize,boolean useSystemDefault){ addEmojis(context,text,emojiSize,emojiAlignment,textSize,0,-1,useSystemDefault); }
Convert emoji characters of the given Spannable to the according emojicon.
public boolean isModified(PasswordSafeSettings settings){ return getProviderType() != settings.getProviderType(); }
Check if the option panel modified the settings
@DSSink({DSSinkKind.IO}) @DSSpec(DSCat.IO) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:51.770 -0400",hash_original_method="AF511130F35AA3E3B287C842560F9DCE",hash_generated_method="31E7EB75C8368215C547C5CD1DE26F7C") @Override public Writer append(CharSequence csq) throws IOExc...
Invokes the delegate's <code>append(CharSequence)</code> method.
public static void splitTextures(File destination,File texturePack,double scale,boolean alphas,ProgressCallback progress) throws Exception { if (destination == null) throw new IllegalArgumentException("destination cannot be null"); Log.info("Exporting textures to \"" + destination + "\""); if (!destination.exis...
Reads a Minecraft texture pack and splits the individual block textures into .png images.
public void deleteHDU(int n) throws FitsException { int size=getNumberOfHDUs(); if (n < 0 || n >= size) { throw new FitsException("Attempt to delete non-existent HDU:" + n); } this.hduList.remove(n); if (n == 0 && size > 1) { BasicHDU<?> newFirst=this.hduList.get(0); if (newFirst.canBePrimary()) {...
Delete an HDU from the HDU list.
public void test_search02(){ int nkeys=3; int maxKeys=3; byte[][] keys=new byte[nkeys][]; int i=0; keys[i++]=new byte[]{1,3,4}; keys[i++]=new byte[]{1,3,4,1,0}; keys[i++]=new byte[]{1,3,4,2}; { MutableKeyBuffer kbuf=new MutableKeyBuffer(nkeys,keys); assertEquals(3,kbuf.getPrefixLength()); doSe...
Tests with non-zero offset into a key buffer with a shared prefix of 3 bytes.
public final void solve22ToOut(Vec2 b,Vec2 out){ final float a11=ex.x, a12=ey.x, a21=ex.y, a22=ey.y; float det=a11 * a22 - a12 * a21; if (det != 0.0f) { det=1.0f / det; } out.x=det * (a22 * b.x - a12 * b.y); out.y=det * (a11 * b.y - a21 * b.x); }
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.
public void test_write$BII() throws Exception { RandomAccessFile raf=new java.io.RandomAccessFile(fileName,"rw"); byte[] rbuf=new byte[4000]; byte[] testBuf=null; int bytesRead; try { raf.write(testBuf,1,1); fail("Test 1: NullPointerException expected."); } catch ( NullPointerException e) { } ...
java.io.RandomAccessFile#write(byte[], int, int)
public final boolean playerWhite(){ switch (modeNr) { case PLAYER_WHITE: case TWO_PLAYERS: case ANALYSIS: case EDIT_GAME: return true; default : return false; } }
Return true if white side is controlled by a human.
public void closeLogServer(){ if (serverSocket != null && !serverSocket.isClosed()) { try { serverSocket.close(); } catch ( IOException e) { logger.error("Error in closing log server",e); } serverSocket=null; } }
<p> closeLogServer </p>
public static Encoding find(String value){ return enums.find(value); }
Searches for a parameter value that is defined as a static constant in this class.