code
stringlengths
10
174k
nl
stringlengths
3
129k
public static String quoteJavaIntArray(int[] array){ if (array == null) { return "null"; } StatementBuilder buff=new StatementBuilder("new int[]{"); for ( int a : array) { buff.appendExceptFirst(", "); buff.append(a); } return buff.append('}').toString(); }
Convert an int array to the Java source code that represents this array. Null will be converted to 'null'.
public final void yybegin(int newState){ zzLexicalState=newState; }
Enters a new lexical state
public static void main(String[] args){ int N=Integer.parseInt(args[0]); Complex[] x=new Complex[N]; for (int i=0; i < N; i++) { x[i]=new Complex(i,0); x[i]=new Complex(-2 * Math.random() + 1,0); } show(x,"x"); Complex[] y=fft(x); show(y,"y = fft(x)"); Complex[] z=ifft(y); show(z,"z = ifft(y)"...
Test client and sample execution % java FFT 4 x ------------------- -0.03480425839330703 0.07910192950176387 0.7233322451735928 0.1659819820667019 y = fft(x) ------------------- 0.9336118983487516 -0.7581365035668999 + 0.08688005256493803i 0.44344407521182005 -0.7581365035668999 - 0.08688005256493803i z = ifft(y) -----...
public static double cdf(double x,double n){ return cdf(x,n / 2.0,2.0); }
cumulative density function of the chi-square distribution
public CSVParser(char separator,char quotechar,char escape,boolean strictQuotes,boolean ignoreLeadingWhiteSpace,boolean ignoreQuotations){ if (anyCharactersAreTheSame(separator,quotechar,escape)) { throw new UnsupportedOperationException("The separator, quote, and escape characters must be different!"); } if ...
Constructs CSVParser with supplied separator and quote char. Allows setting the "strict quotes" and "ignore leading whitespace" flags
public Object clone() throws CloneNotSupportedException { return new IntVector(this); }
Returns clone of current IntVector
public static void generateCallerPathDiagrams(){ MySafeDelegator.generateCallerPathDiagrams(); }
Generates caller path diagram into default (<tt>mysafe-caller-path</tt>) file.
public static Pattern compile(String regex,String flags) throws PatternSyntaxException { return new Pattern(regex,flags); }
Compiles the given String into a Pattern that can be used to match text. The syntax is normal for Java, including backslashes as part of regex syntax, like the digit shorthand "\d", escaped twice to "\\d" (so the double-quoted String itself doesn't try to interpret the backslash). <br> This variant allows flags to be p...
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static boolean isMatchingEtag(final List<String> headerList,final String etag){ for ( String header : headerList) { final String[] headerEtags=header.split(","); for ( String s : headerEtags) { s=s.trim(); if (s.equals(etag) || "*".equals(s)) { return true; } } } r...
Checks if one of the tags in the list equals the given etag.
public final boolean containsKey(String name){ return mMap.containsKey(name); }
Returns true iff a key of the given name exists in the format.
public String next(int n) throws JSONException { if (n == 0) { return ""; } char[] chars=new char[n]; int pos=0; while (pos < n) { chars[pos]=this.next(); if (this.end()) { throw this.syntaxError("Substring bounds error"); } pos+=1; } return new String(chars); }
Get the next n characters.
@Override protected void onNfcStateDisabled(){ toast(getString(R.string.nfcAvailableDisabled)); }
NFC feature was found but is currently disabled
private void tryToGetAudioFocus(){ if (mAudioFocus != AudioFocus.FOCUS && mAudioManager != null && (AudioManager.AUDIOFOCUS_REQUEST_GRANTED == mAudioManager.requestAudioFocus(this,AudioManager.STREAM_MUSIC,AudioManager.AUDIOFOCUS_GAIN))) { mAudioFocus=AudioFocus.FOCUS; } }
Requests the audio focus to the Audio Manager
private static byte[] encode3to4(byte[] b4,byte[] threeBytes,int numSigBytes,int options){ encode3to4(threeBytes,0,numSigBytes,b4,0,options); return b4; }
Encodes up to the first three bytes of array <var>threeBytes</var> and returns a four-byte array in Base64 notation. The actual number of significant bytes in your array is given by <var>numSigBytes</var>. The array <var>threeBytes</var> needs only be as big as <var>numSigBytes</var>. Code can reuse a byte array by pas...
public MarketingPermissionNotFoundException(String message){ super(message); }
Constructs a new exception with the specified detail message. The cause is not initialized.
public int binarySearchFromTo(char key,int from,int to){ return cern.colt.Sorting.binarySearchFromTo(this.elements,key,from,to); }
Searches the receiver for the specified value using the binary search algorithm. The receiver must <strong>must</strong> be sorted (as by the sort method) prior to making this call. If it is not sorted, the results are undefined: in particular, the call may enter an infinite loop. If the receiver contains multiple e...
protected boolean parseAndBuildBindings(PossibleMatch possibleMatch,boolean mustResolve) throws CoreException { if (this.progressMonitor != null && this.progressMonitor.isCanceled()) throw new OperationCanceledException(); try { if (BasicSearchEngine.VERBOSE) System.out.println("Parsing " + possibleMatch....
Add the possibleMatch to the loop -> build compilation unit declarations, their bindings and record their results.
@NonNull public static String convertDiffToPrettyMinutesLeft(@NonNull Context context,@NonNull DateTime diffTime){ int minutes=diffTime.getMinuteOfHour(); if (minutes == 0) { return context.getString(R.string.time_left_less_than_minute); } else { return context.getResources().getQuantityString(R.plurals....
Converts the time difference to the human readable minutes.
public Activity alwaysRunAfter(String beforeKey,String afterKey){ Activity before=get(beforeKey); Activity after=get(afterKey); if (before != null && after != null) ActivityManager.alwaysScheduleAfter(before,after); return after; }
Schedules the Activity corresponding to the afterKey to always be run immediately after the completion of the Activity corresponding to the beforeKey. This method has no scheduling effect on the Activity corresponding to the before key.
public static double sumToDouble(float[] array){ double sum=0; for ( float x : array) { sum+=x; } return sum; }
Sum all numbers from array.
public static RecordEventForInstanceE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { RecordEventForInstanceE object=new RecordEventForInstanceE(); int event; java.lang.String nillableValue=null; java.lang.String prefix=""; java.lang.String namespaceuri=""; try { while (!read...
static method to create the object Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable If this object is not an element, it is a complex type and the reader is at the event just after the outer start element Postcondition: If t...
@DSSink({DSSinkKind.FILE}) @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:51.195 -0400",hash_original_method="3154661078E59224754D0E69E10DDFB6",hash_generated_method="37574DF2C28BFC93DF4FFF3E9C9847C8") public static void writeLines(File file,Collection<?...
Writes the <code>toString()</code> value of each item in a collection to the specified <code>File</code> line by line. The default VM encoding and the specified line ending will be used.
public void execute(){ Mmhc search; int depth=getParams().getInt("depth",-1); search=new Mmhc(getIndependenceTest(),getIndependenceTest().getDataSets().get(0)); search.setDepth(depth); search.setKnowledge((IKnowledge)getParams().get("knowledge",new Knowledge2())); Graph graph=search.search(); setResultGra...
Executes the algorithm, producing (at least) a result workbench. Must be implemented in the extending class.
public FileParsingTextSource(File data,TextSource fallback){ delegate=new StringParsingTextSource(StringIterable.fromFile(data),fallback); }
Reads text from tab-separated file. Assumes platform default encoding.
@Override public void readSettings(){ SharedPreferences sharedPreferences=this.getSharedPreferences(getString(R.string.sp_widget_clock_day_center_setting),Context.MODE_PRIVATE); setLocation(new Location(sharedPreferences.getString(getString(R.string.key_location),getString(R.string.local)),null)); Location locati...
<br> life cycle.
@Override @Transient public boolean isFullTextSearchable(){ return true; }
Override the gisFeature value.<br> Default to true;<br> If this field is set to false, then the object won't be synchronized with the fullText search engine
@SuppressWarnings("unchecked") private BufferOutput writeByClass(Class<?> type,Object object,BufferOutput output,TypeSerializer serializer){ if (whitelistRequired.get()) throw new SerializationException("cannot serialize unregistered type: " + type); serializer.write(object,output.writeByte(Identifier.CLASS.code(...
Writes an object to the buffer with its class name.
public static boolean completed(Collection<ShardSnapshotStatus> shards){ for ( ShardSnapshotStatus status : shards) { if (status.state().completed() == false) { return false; } } return true; }
Checks if all shards in the list have completed
private List<LatticeNode> levelUpLattice(List<LatticeNode> latticeNodes,List<ContextualDatum> data){ Stopwatch sw=Stopwatch.createUnstarted(); log.debug("\tSorting lattice nodes in level {} by their dimensions ",latticeNodes.get(0).dimensions.size()); sw.start(); List<LatticeNode> latticeNodeByDimensions=new Ar...
Walking up the lattice, construct the lattice node, when include those lattice nodes that contain at least one dense context
public String toString(){ return name; }
Returns the name of this WatchMode ("on", "off", "add", "remove").
@Override public boolean onTouchEvent(MotionEvent event){ boolean retValue=mGestureDetector.onTouchEvent(event); int action=event.getAction(); if (action == MotionEvent.ACTION_UP) { onUp(); } else if (action == MotionEvent.ACTION_CANCEL) { onCancel(); } return retValue; }
Implemented to handle touch screen motion events.
@Override public void editingStopped(ChangeEvent e){ getModel().setValueAt(getCellEditor().getCellEditorValue(),getEditingRow(),getEditingColumn()); }
This is needed in order to allow auto completition: Otherwise the editor will be immediately removed after setting the first selected value and loosing its focus. This way it is ensured that the editor won't be removed.
void relocate(String relocatingNodeId,long expectedShardSize){ ensureNotFrozen(); version++; assert state == ShardRoutingState.STARTED : "current shard has to be started in order to be relocated " + this; state=ShardRoutingState.RELOCATING; this.relocatingNodeId=relocatingNodeId; this.allocationId=Allocatio...
Relocate the shard to another node.
public static void main(String[] args){ String runNumber1="749"; String runNumber2="869"; String netfile=DgPaths.RUNBASE + "run" + runNumber1.toString()+ "/"+ runNumber1.toString()+ "."+ "output_network.xml.gz"; String plans1file=DgPaths.RUNBASE + "run" + runNumber1.toString()+ "/"+ runNumber1.toString()+ "."+ ...
Should be called with 3 arguments, each of them a path to a file: 1. the config file containing the world and the network 2. the first plan file 3. the second plan file
public void moveChild(ActionEvent actionEvent){ UIComponent destinationContainer=actionEvent.getComponent().getParent(); UIComponent viewRoot=FacesContext.getCurrentInstance().getViewRoot(); UIComponent moveableChild=destinationContainer.findComponent("outputText2"); if (moveableChild == null) { moveableChi...
Move the child.
public boolean isIndexed(){ return isIndexed; }
Returns true for indexed properties, returns false for all other property styles. <p> An indexed property is a property returning an array value or a getter-method taking a single integer parameter.
@Override public void populateFrame(Audio a){ if (!(a instanceof AudioSource)) { throw new IllegalArgumentException(a.getSystemName() + " is not an AudioSource object"); } super.populateFrame(a); AudioSource s=(AudioSource)a; AudioManager am=InstanceManager.getDefault(jmri.AudioManager.class); String ab...
Method to populate the Edit Source frame with current values
public JSONObject(Map<String,Object> map){ this.map=new HashMap<String,Object>(); if (map != null) { Iterator<Entry<String,Object>> i=map.entrySet().iterator(); while (i.hasNext()) { Entry<String,Object> entry=i.next(); Object value=entry.getValue(); if (value != null) { this.map.p...
Construct a JSONObject from a Map.
public String graph(FPTreeRoot tree){ StringBuffer text=new StringBuffer(); text.append("digraph FPTree {\n"); text.append("N0 [label=\"ROOT\"]\n"); tree.graphFPTree(text); text.append("}\n"); return text.toString(); }
Assemble a dot graph representation of the FP-tree.
@Override public void run(){ amIActive=true; String inputFilesString=null; String[] pointFiles; String outputHeader=null; int row, col; int nrows, ncols; double x, y; double z=0; int a, i; int progress=0; int numPoints=0; double maxValue; double minX=Double.POSITIVE_INFINITY; double maxX=Dou...
Used to execute this plugin tool.
private boolean maybeDisableSync(){ if (mSyncEverything.isChecked() || !getSelectedModelTypes().isEmpty() || !canDisableSync()) { return false; } SyncController.get(getActivity()).stop(); mSyncSwitchPreference.setChecked(false); updateSyncStateFromSwitch(); return true; }
Disables Sync if all data types have been disabled.
public boolean isAfterLast(){ return pos >= lcText.length; }
Gibt zurueck ob der Zeiger nach dem letzten Zeichen steht.
public StreamingTemplateEngine(){ this(StreamingTemplate.class.getClassLoader()); }
Create a streaming template engine instance using the default class loader
public void writeTo(DataOutput out) throws IOException { out.writeInt(typeId); U.writeString(out,typeName); if (fields == null) out.writeInt(-1); else { out.writeInt(fields.size()); for ( Map.Entry<String,Integer> fieldEntry : fields.entrySet()) { U.writeString(out,fieldEntry.getKey()); ...
The object implements the writeTo method to save its contents by calling the methods of DataOutput for its primitive values and strings or calling the writeTo method for other objects.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:36:13.399 -0500",hash_original_method="76A5C02B3DC683D5BF99D1052171A66C",hash_generated_method="09185FFE4AB317576453852013B0DBCE") private void parseStale(String value){ if (v...
Parses and initializes the 'stale' paramer value. Any value different from case-insensitive "true" is considered "false".
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { Map<String,List<String>> metaData=MetaDataUtils.parseMetaData(parser); return new MetaData(metaData); }
PacketExtensionProvider implementation
public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException { Object value=execute(null,context); if (value == null) { return false; } else if (value instanceof Boolean) { if (((Boolean)value).booleanValue()) return true; else return false; } else return true;...
Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not null
public void playSequentially(Animator... items){ if (items != null) { mNeedsSort=true; if (items.length == 1) { play(items[0]); } else { for (int i=0; i < items.length - 1; ++i) { play(items[i]).before(items[i + 1]); } } } }
Sets up this AnimatorSet to play each of the supplied animations when the previous animation ends.
public InlineQueryResultVideo.InlineQueryResultVideoBuilder thumbUrl(URL thumbUrl){ this.thumb_url=thumbUrl; return this; }
*Required Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
protected void createMinimalGeometry(DrawContext dc,ShapeData shapeData){ this.computeReferencePoint(dc.getTerrain(),shapeData); if (shapeData.getReferencePoint() == null) return; this.computeBoundaryVertices(dc.getTerrain(),shapeData.getOuterBoundaryInfo(),shapeData.getReferencePoint()); if (this.getExtent()...
Computes the information necessary to determine this extruded polygon's extent.
private void initH2Console(ServletContext servletContext){ log.debug("Initialize H2 console"); ServletRegistration.Dynamic h2ConsoleServlet=servletContext.addServlet("H2Console",new org.h2.server.web.WebServlet()); h2ConsoleServlet.addMapping("/h2-console/*"); h2ConsoleServlet.setInitParameter("-properties","sr...
Initializes H2 console
public static <A extends CommonAllocator<A>,ValueT>ValueT fromMemBufferHolder(MemBufferHolder<A> mbh) throws IOException, ClassNotFoundException { return toObject(mbh.get()); }
de-serialize an object from a MemBufferHolder object.
public void testSkipAndLimitPlan() throws Exception { OracleCollection col=dbAdmin.createCollection("testSkipAndLimitPlan"); OracleDocument d; for (int i=0; i < 50; i++) { d=db.createDocumentFromString("{\"num\" : " + i + "}"); col.insert(d); } OracleOperationBuilderImpl obuilder=(OracleOperationBuild...
Make sure basic pagination plan (i.e. whole table pagination only, no where clause, and no filer spec orderby). has the following form. This should be produced by the pagination workaround (see OracleOperationBuilderImpl. paginationWorkaround() method for more info). SELECT STATEMENT NESTED LOOPS VIEW WINDOW NOSORT STO...
private void updatePreviewAndConflicts(){ if (myButton == -1 || myModifiers == -1) { return; } myTarConflicts.setText(null); myLblPreview.setText(KeymapUtil.getMouseShortcutText(myButton,myModifiers,getClickCount()) + " "); final MouseShortcut mouseShortcut=new MouseShortcut(myButton,myModifiers,getClickC...
Updates all UI controls
@Override protected void installListeners(){ super.installListeners(); splitPane.addPropertyChangeListener(this); }
Installs the event listeners for the UI.
public void writeByte(byte b,boolean append){ writeByteArray(new byte[]{b},append); }
Write a text in a binary File
private void put122(final int b,final int s1,final int s2){ pool.put12(b,s1).putShort(s2); }
Puts one byte and two shorts into the constant pool.
@Reference(title="Algorithm AS 91: The percentage points of the $\\chi^2$ distribution",authors="D.J. Best, D. E. Roberts",booktitle="Journal of the Royal Statistical Society. Series C (Applied Statistics)") public static double quantile(double p,double k,double theta){ final double EPS2=5e-7; final int MAXIT=1000;...
Compute probit (inverse cdf) for Gamma distributions. Based on algorithm AS 91: Reference: <p> Algorithm AS 91: The percentage points of the $\chi^2$ distribution<br /> D.J. Best, D. E. Roberts<br /> Journal of the Royal Statistical Society. Series C (Applied Statistics) </p>
public double[] computeLocalActiveOfPreviousObservations() throws Exception { return computeLocalActiveUsingPreviousObservations(null,true); }
Computes the local active info storage for the previous supplied observations. <p>Where more than one time series has been added, the array contains the local values for each tuple in the order in which they were added.</p> <p>If there was only a single time series added, the array contains k zero values before the loc...
boolean isTargetItemEnabled(){ if (target == null) { return false; } return AWTAccessor.getMenuItemAccessor().isItemEnabled(target); }
Returns true if item and all its parents are enabled This function is used to fix 6184485: Popup menu is not disabled on XToolkit even when calling setEnabled (false)
public void runTest() throws Throwable { Document doc; Node rootNode; boolean state; doc=(Document)load("staff",false); rootNode=doc.getDocumentElement(); state=rootNode.isSupported("xml","2.0"); assertTrue("throw_True",state); }
Runs the test case.
public String sqlTypeToString(int sqlType){ return sqlTypes.get(sqlType); }
Transforms integer, representing java.sql.Types value, into to human readable string.
private long hash(final char[] 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) + a[i] * w[i % NUMBER_OF_WEIGHTS] + (h >>> 2); return (h & 0x7FFFFFFFFFFFFFFFL) % m; }
Hashes the given character array with the given hash function.
private Span createSpan(HttpServletRequest request,boolean skip,Span spanFromRequest,String name){ if (spanFromRequest != null) { if (log.isDebugEnabled()) { log.debug("Span has already been created - continuing with the previous one"); } return spanFromRequest; } Span parent=this.spanExtractor....
Creates a span and appends it as the current request's attribute
private static void appendFloatType(StringBuilder sb){ sb.append("FLOAT"); }
Output the SQL type for a Java float.
Tokenizer(String data){ super(data); }
Creates a new tokenizer that will process the given string.
private void delete(IgniteUuid trashId){ IgfsEntryInfo info=null; try { info=meta.info(trashId); } catch ( ClusterTopologyServerNotFoundException ignore) { } catch ( IgniteCheckedException e) { U.warn(log,"Cannot obtain trash directory info (is node stopping?)"); if (log.isDebugEnabled()) U.e...
Perform cleanup of concrete trash directory.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:29.002 -0500",hash_original_method="328DA368C3B0C5FF79EC2B4ACE66A1A9",hash_generated_method="C9E59CBA897C530A6A55F5DD7BEEA99A") protected void fireRetransmissionTimer(){ try { if (this.getState() == null || !this.isMapped) ...
Called by the transaction stack when a retransmission timer fires.
public static PatternNotExpr not(PatternExpr subexpression){ return new PatternNotExpr(subexpression); }
Not-keyword pattern expression flips the truth-value of the pattern sub-expression.
private void handleMethodExitNode(CCFGNode node,CCFGMethodEntryNode investigatedMethod,Set<Map<String,VariableDefinition>> activeDefs,Set<BytecodeInstruction> freeUses){ CCFGMethodExitNode exitNode=(CCFGMethodExitNode)node; if (exitNode.isExitOfMethodEntry(investigatedMethod)) { rememberActiveDefs(exitNode.getM...
If this is the methodExit of our investigated public method we remember our current activeDefs for intra-class pairs
protected Node export(Node n,AbstractDocument d){ GenericProcessingInstruction p; p=(GenericProcessingInstruction)super.export(n,d); p.setTarget(getTarget()); return p; }
Exports this node to the given document.
public static TransitSchedule mergeEqualRouteProfiles(TransitSchedule schedule,String outputDirectory){ return new TransitScheduleSimplifier().mergeEqualTransitRoutes(schedule,outputDirectory); }
Simplifies a transit schedule by merging transit routes within a transit line with equal route profiles. The simplified schedule is also written into a new file.
protected void sendIntensity(double intensity){ if (log.isDebugEnabled()) { log.debug("sendIntensity(" + intensity + ")"+ " lastOutputStep: "+ lastOutputStep+ " maxDimStep: "+ maxDimStep); } int newStep=(int)Math.round(intensity * maxDimStep); if ((newStep < 0) || (newStep > maxDimStep)) { log.error("ne...
Send a Dim/Bright command to the Insteon hardware to reach a specific intensity. Acts immediately, and changes no general state. <p> This sends "Dim" commands.
public static void organizeDistribution(final Object[] objs,final RandomChoiceChooserD chooser){ organizeDistribution(objs,chooser,false); }
Same as organizeDistribution(objs, chooser, <b>false</b>);
@Override public void afterLoad(TermsEnum termsEnum,long actualUsed){ assert termsEnum instanceof RamAccountingTermsEnum; long estimatedBytes=((RamAccountingTermsEnum)termsEnum).getTotalBytes(); breaker.addWithoutBreaking(-(estimatedBytes - actualUsed)); }
Adjusts the breaker based on the difference between the actual usage and the aggregated estimations.
@Override public String toString(){ return this.area + "/" + this.aisle+ "/"+ this.x+ "/"+ this.y+ "/"+ this.z; }
Return a String like AREA/AISLE/X/Y/Z.
public void addToStackIgnoreList(String line){ addToList(stackIgnoreList,line); }
Adds the specified line to the list of classes that we should filter out of reporting results if the deserialization event occurred with the specified class in the current call stack. For example, to help ignore if serialization is happening through memcache.
String isResizingRequired(PropertyHandler paramHandler) throws Exception { String countCPU=paramHandler.getCountCPU(); try { Integer.valueOf(countCPU); } catch ( NumberFormatException e) { return null; } String masterTemplateId=paramHandler.getMasterTemplateId(); String slaveTemplateId=paramHandle...
Compare current and required sizing information of affected VMs. Returns the server ID of the first server that is to be changed or <code>null</code> if no server is to be changed.
@Override protected void onFinishInflate(){ final int childCount=getChildCount(); if (childCount > 2) { throw new IllegalStateException("PtrFrameLayout only can host 2 elements"); } else if (childCount == 2) { if (mHeaderId != 0 && mHeaderView == null) { mHeaderView=findViewById(mHeaderId); }...
Find it's child layout as header and content. Exception would throw if there are more than two child layouts. If there are two child layouts, it would find out header and content by resource id or class type. If there only one child layouts, it would be regard as content. If there is no child layout, a error hint would...
public void undoUpdate() throws SQLException { throw new UnsupportedOperationException(); }
Immediately reverses the last update operation if the row has been modified. This method can be called to reverse updates on a all columns until all updates in a row have been rolled back to their originating state since the last synchronization (<code>acceptChanges</code>) or population. This method may also be called...
public double calculateLogLikelihood(){ double logLikelihood; if (!cacheBranches) logLikelihood=traitLogLikelihood(null,treeModel.getRoot()); else logLikelihood=traitCachedLogLikelihood(null,treeModel.getRoot()); if (logLikelihood > maxLogLikelihood) { maxLogLikelihood=logLikelihood; } return logLike...
Calculate the log likelihood of the current state.
public void dumpUrl(Path webGraphDb,String url) throws IOException { fs=FileSystem.get(getConf()); nodeReaders=MapFileOutputFormat.getReaders(fs,new Path(webGraphDb,WebGraph.NODE_DIR),getConf()); Text key=new Text(url); Node node=new Node(); MapFileOutputFormat.getEntry(nodeReaders,new HashPartitioner<Text,No...
Prints the content of the Node represented by the url to system out.
public Enumeration<Option> listOptions(){ Vector<Option> result=new Vector<Option>(); result.addElement(new Option("\tThe complexity constant C.\n" + "\t(default 1)","C",1,"-C <double>")); result.addElement(new Option("\tWhether to 0=normalize/1=standardize/2=neither.\n" + "\t(default 0=normalize)","N",1,"-N")); ...
Returns an enumeration describing the available options.
protected void addOneCandidateCluster(LinkedList<Set<V>> candidates,Map<V,double[]> voltage_ranks){ try { List<Map<V,double[]>> clusters; clusters=new ArrayList<Map<V,double[]>>(kmc.cluster(voltage_ranks,2)); if (clusters.get(0).size() < clusters.get(1).size()) candidates.add(clusters.get(0).keySet())...
alternative to addTwoCandidateClusters(): cluster vertices by voltages into 2 clusters. We only consider the smaller of the two clusters returned by k-means to be a 'true' cluster candidate; the other is a garbage cluster.
public ObjectFactory(){ }
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.rsa.names._2009._12.std_ext.ws_trust1_4.advice
public static Boolean checkIsReadOnly(){ String state=Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { return true; } else { return false; } }
Checks the SD card is readonly.
public boolean removeNeighbours(List<Triangle> triangles){ return getNeighbours().removeAll(triangles); }
Remove neighbour triangles of the triangle.
public DefaultPrivateData(String elementName,String namespace){ this.elementName=elementName; this.namespace=namespace; }
Creates a new generic private data object.
public JsonArray add(JsonValue value){ if (value == null) { throw new NullPointerException("value is null"); } values.add(value); return this; }
Appends the specified JSON value to the end of this array.
@Override public void visitJumpInsn(final int opcode,final Label lbl){ super.visitJumpInsn(opcode,lbl); LabelNode ln=((JumpInsnNode)instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln,new BitSet()); } }
Detects a JSR instruction and sets a flag to indicate we will need to do inlining.
public Coordinate transform(Coordinate src,Coordinate dest){ double xp=m00 * src.x + m01 * src.y + m02; double yp=m10 * src.x + m11 * src.y + m12; dest.x=xp; dest.y=yp; return dest; }
Applies this transformation to the <tt>src</tt> coordinate and places the results in the <tt>dest</tt> coordinate (which may be the same as the source).
public ByteFifoBuffer(int len){ array=new byte[len]; }
Creates buffer of specified size
public void not(){ mv.visitInsn(Opcodes.ICONST_1); mv.visitInsn(Opcodes.IXOR); }
Generates the instructions to compute the bitwise negation of the top stack value.
private void zzDoEOF(){ if (!zzEOFDone) { zzEOFDone=true; } }
Contains user EOF-code, which will be executed exactly once, when the end of file is reached
public FunctionBlockPropertySource createFunctionBlockPropertySource(){ FunctionBlockPropertySourceImpl functionBlockPropertySource=new FunctionBlockPropertySourceImpl(); return functionBlockPropertySource; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public BezierScaleHandle(BezierFigure owner){ super(owner); }
Creates a new instance.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:58:30.761 -0500",hash_original_method="224D5C409E7F86CE5414891CFB70A981",hash_generated_method="178E85B2327E05C49F9EEB00F2AE391D") private int regCodeToServiceState(int code){ s...
code is registration state 0-5 from TS 27.007 7.2
public GuildCreateHandler(ImplDiscordAPI api){ super(api,true,"GUILD_CREATE"); }
Creates a new instance of this class.
public String seedTipText(){ return "The seed to use for randomization."; }
Describes this property.