code
stringlengths
10
174k
nl
stringlengths
3
129k
private static FlinkKafkaConsumer082<String> kafkaSource(BenchmarkConfig config){ return new FlinkKafkaConsumer082<>(config.kafkaTopic,new SimpleStringSchema(),config.getParameters().getProperties()); }
Create a Kafka source
public Set<String> keySet(){ return this.map.keySet(); }
Get a set of keys of the JSONObject.
protected int index(int slice,int row,int column){ return this.offset + sliceOffsets[sliceZero + slice * sliceStride] + rowOffsets[rowZero + row * rowStride]+ columnOffsets[columnZero + column * columnStride]; }
Returns the position of the given coordinate within the (virtual or non-virtual) internal 1-dimensional array.
@Override public String toString(){ StringBuffer sb=new StringBuffer("MWMStrategy[").append(get_ID()).append("-").append(getName()).append("]"); return sb.toString(); }
String representation
private void outputPartners(Properties ctx,PrintWriter out,int partnerID,boolean includeAny){ out.println("<partners>"); if (includeAny) { out.println("<partner id='-1'"); if (partnerID == 0) out.println(" selected='selected'"); out.println(">ANY</partner>"); } for ( MBPartner partner : getAllP...
Output XML list of Business Partners
private void createJournalEntriesForTransfers(final LoanDTO loanDTO,final LoanTransactionDTO loanTransactionDTO,final Office office){ final Long loanProductId=loanDTO.getLoanProductId(); final Long loanId=loanDTO.getLoanId(); final String currencyCode=loanDTO.getCurrencyCode(); final String transactionId=loanTr...
Credit loan Portfolio and Debit Suspense Account for a Transfer Initiation. A Transfer acceptance would be treated the opposite i.e Debit Loan Portfolio and Credit Suspense Account <br/> All debits are turned into credits and vice versa in case of Transfer Initiation disbursals
public static boolean isName(int c){ return c < 0x10000 && (CHARS[c] & MASK_NAME) != 0; }
Returns true if the specified character is a valid name character as defined by production [4] in the XML 1.0 specification.
public boolean match(CompilationUnit node,Object other){ if (!(other instanceof CompilationUnit)) { return false; } CompilationUnit o=(CompilationUnit)other; return (safeSubtreeMatch(node.getPackage(),o.getPackage()) && safeSubtreeListMatch(node.imports(),o.imports()) && safeSubtreeListMatch(node.types(),o....
Returns whether the given node and the other object match. <p> The default implementation provided by this class tests whether the other object is a node of the same type with structurally isomorphic child subtrees. Subclasses may override this method as needed. </p>
@SuppressWarnings("unused") private void checkPositionCacheConsistency(){ List<Integer> entitiesInCache=new ArrayList<Integer>(); List<Integer> entitiesInVector=new ArrayList<Integer>(); int entitiesInCacheCount=countEntitiesInCache(entitiesInCache); int entityVectorSize=0; for ( Entity e : entities) { i...
A check to ensure that the position cache is properly updated. This is only used for debugging purposes, and will cause a number of things to slow down.
protected final void computeMinMaxFromStrip(DataType dataType,int numStrips,int size,int width,int height) throws IOException { if (iStream != null) { iStream.close(); } iStream=new FileImageInputStream(new File(dataFilePath)); iStream.seek(imageStart); minimum=new double[samplesPerPixel]; Arrays.fill(m...
Compute minimum and maximum.
@Override public void onUpdate(){ this.prevPosX=this.posX; this.prevPosY=this.posY; this.prevPosZ=this.posZ; if (this.particleAge++ >= this.particleMaxAge) { this.setExpired(); } this.particleScale=(float)MOMathHelper.easeIn(particleAge,10,-10,particleMaxAge); }
Called to update the entity's position/logic.
protected MinimalPerfectHashFunction(final Iterable<? extends T> keys,final TransformationStrategy<? super T> transform,final int signatureWidth,final File tempDir,ChunkedHashStore<T> chunkedHashStore) throws IOException { this.transform=transform; final ProgressLogger pl=new ProgressLogger(LOGGER); pl.displayLoc...
Creates a new minimal perfect hash function for the given keys.
public static boolean isSecondaryExternalStorageMounted(File path){ if (path == null) { return false; } boolean result=false; if (hasKitKatOrNewer()) { result=Environment.MEDIA_MOUNTED.equals(EnvironmentCompat.getStorageState(path)); } else { try { String[] l=path.list(); result=l != ...
Use this instead of EnvironmentCompat. <p/> returns true if the media is present and mounted at its mount point with read/write access.
public void addConflictAddedListener(final ConflictCacheListener listener){ Check.notNull(listener,"listener"); synchronized (listenerLock) { conflictListeners.addListener(listener,ADDED); } }
Add a listener to be notified when conflicts are added
protected String computeTextFileName(){ return RandomUtil.getCodeFileName(TEXT_FILE_NAME_PATTERN,"text"); }
Computes the name of the file used to store this page's content. The default implementation returns "text.html".
private void validateNodeIds(List<String> nodeIds){ if (nodeIds == null || nodeIds.isEmpty()) { return; } List<NodeInfo> nodeInfoList=ClusterNodesUtil.getClusterNodeInfo(); List<String> validNodeIds=new ArrayList<String>(nodeInfoList.size()); for ( NodeInfo node : nodeInfoList) { validNodeIds.add(nod...
Validates that the passed list specifies valid Bourne node Ids. Note that an empty list is perfectly valid and means the service will process all Bourne nodes in the cluster.
public static void removeConnectionQualityChangeListener(){ ConnectionClassManager.getInstance().removeListener(); }
Method to set connectionQualityChangeListener
public static Matcher<Object> only(Object value){ return new Only(value); }
Returns a matcher which matches objects equal to the given object.
public boolean withPartitioning(){ return this == PARTITION || this == PERSISTENT_PARTITION; }
Return whether this policy does partitioning.
public IonValue reload(IonValue value){ IonDatagram dg=system().newDatagram(value); byte[] bytes=dg.getBytes(); checkBinaryHeader(bytes); try { dg=loader().load(bytes); } catch ( final IonException e) { final String hex=BinaryTest.bytesToHex(bytes); throw new IonException("Bad bytes: " + hex,e);...
Put value into a datagram, get bytes, and reload to single value. Result should be equivalent.
private void update(){ updateInstructionMap(); m_model.setInstructions(updateInstructions()); CTypeResultsHighlighter.updateHighlighting(m_graph,m_model.getInstructions()); }
Recalculates the internally cached structures when necessary.
JToggleButton addToggleButton(Action a){ JToggleButton tb=new JToggleButton((String)a.getValue(Action.NAME),null); tb.setEnabled(a.isEnabled()); tb.setToolTipText((String)a.getValue(Action.SHORT_DESCRIPTION)); tb.setAction(a); add(tb); return tb; }
Adds the toggle button.
private boolean canSendMessages(){ boolean canSendMessage=false; if ((null != mRoom) && (null != mRoom.getLiveState())) { canSendMessage=true; PowerLevels powerLevels=mRoom.getLiveState().getPowerLevels(); if (null != powerLevels) { canSendMessage=powerLevels.maySendMessage(mMyUserId); } } ...
Tell if the user can send a message in this room.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-06 12:51:00.697 -0400",hash_original_method="2F02B6F65586A11020FE3540EEEA7F40",hash_generated_method="A2AD53157041DF2DC4EFBC9AFCA32A23") public Builder(PrinterId printerId){ if (printerId == null) { throw new IllegalArgumentException("...
Creates a new instance.
public JSONObject(Object bean){ this(); this.populateMap(bean); }
Construct a JSONObject from an Object using bean getters. It reflects on all of the public methods of the object. For each of the methods with no parameters and a name starting with <code>"get"</code> or <code>"is"</code> followed by an uppercase letter, the method is invoked, and a key and the value returned from the ...
public long numBits(){ if (n == 0) return 0; return offsets.size64() * log2BucketSize + lcpLengths.numBits() + lcp2Bucket.numBits() + mph.numBits() + transform.numBits(); }
Returns the number of bits used by this structure.
public void dispose(){ ((SVGOMElement)e).setSVGContext(null); elemTPI.remove(e); }
Disposes this BridgeUpdateHandler and releases all resources.
public static void i(String tag,String s,Throwable e){ if (LOG.INFO >= LOGLEVEL) Log.i(tag,s,e); }
Info log message.
@Override public void releaseReader(){ readerLock.unlock(); }
Relinquishes exclusive read access to the Guacamole instruction stream. This function should be called whenever a thread finishes using a GuacamoleTunnel's GuacamoleReader.
public synchronized boolean hasCapabilities(String... capabilites){ boolean hasCaps=true; for ( String capability : capabilites) { if (!hasCapability(capability)) { hasCaps=false; break; } } return hasCaps; }
Test to see if the capabilities array contains a given set of capabilities. See the individual Capability classes for acceptable capability values. See hasCapability: for a description of the wildcard feature provided by this method.
public static boolean isXML11NameStart(int c){ return (c < 0x10000 && (XML11CHARS[c] & MASK_XML11_NAME_START) != 0) || (0x10000 <= c && c < 0xF0000); }
Returns true if the specified character is a valid name start character as defined by production [4] in the XML 1.1 specification.
@Override public Enumeration<Option> listOptions(){ Vector<Option> newVector=new Vector<Option>(4); newVector.addElement(new Option("\tIndex of the attribute to be changed \n" + "\t(default last attribute)","C",1,"-C <col>")); newVector.addElement(new Option("\tTreat missing values as an extra value \n","M",1,"-M...
Returns an enumeration describing the available options
public TypeReference(int typeRef){ this.value=typeRef; }
Creates a new TypeReference.
public BasicAnimator(Interpolator interpolator){ this.interpolator=interpolator; }
Constructs a <code>BasicAnimator</code>. The <code>next</code> method will use the passed <code>Interpolator</code> to retrieve the <code>interpolant</code>
public static String mainClass(MonitoredVm vm,boolean fullPath) throws MonitorException { String commandLine=commandLine(vm); String arg0=commandLine; int firstSpace=commandLine.indexOf(' '); if (firstSpace > 0) { arg0=commandLine.substring(0,firstSpace); } if (!fullPath) { int lastFileSeparator=arg...
Return the main class for the target Java application. Returns the main class or the name of the jar file if the application was started with the <em>-jar</em> option.
public void put(String key,boolean value){ Editor edit=context.getSharedPreferences(prefName,Context.MODE_PRIVATE).edit(); edit.putBoolean(key,value).commit(); }
Puts given key-value pair to the Shared Preferences.
public TzUrlDotOrgGenerator(boolean outlookCompatible){ baseUrl="http://www.tzurl.org/zoneinfo" + (outlookCompatible ? "-outlook" : "") + "/"; }
Creates a new tzurl.org generator.
public Boolean isLogRetained(){ return logRetained; }
Gets the value of the logRetained property.
public double elapsedTime(){ long now=System.currentTimeMillis(); return (now - start) / 1000.0; }
Returns the elapsed CPU time (in seconds) since the stopwatch was created.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:47.392 -0400",hash_original_method="93D95A6C2BC51C643AAC1084F5BA9458",hash_generated_method="5898EF9A47CD6D4D8A6946B5651B1C99") public void removeAttribute(String name){ attributes.remove(name); }
Remove any configuration attribute associated with the specified name. If there is no such attribute, no action is taken.
void reinitialize(File f){ if (contains(f)) { } }
Reinitializes a dataline that is using the given initialize object.
public boolean apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException { return exp1.apply(name) || exp2.apply(name); }
Applies the OrQueryExp on a MBean.
protected boolean beforeDelete(){ DB.executeUpdate("DELETE FROM AD_Browse_Field_Trl WHERE AD_Browse_Field_ID=? ",getAD_Browse_Field_ID(),get_TrxName()); return true; }
Before Delete
private SwapContainer swapSrcAndHAIfNeeded(VirtualArray srcVarray,VirtualPool srcVpool){ VirtualArray haVarray=null; VirtualPool haVpool=null; SwapContainer container=new SwapContainer(); container.setSrcVarray(srcVarray); container.setSrcVpool(srcVpool); container.setHaVarray(haVarray); container.setHaVp...
This method is driven by the flag on the RP+VPLEX Source Vpool to use HA as RP Source or not. When that flag is set we use the HA Varray and HA Vpool as the Sources for placement. Consequently, the Source Varray and Source VPool are then used for HA placement. We may not need to swap if the flag isn't set, but this met...
public void initDatabases(){ }
Instantiate the CheckReturnAnnotationDatabase. Do this after the repository has been set up.
public <E extends T>E min(Iterable<E> iterable){ Iterator<E> iterator=iterable.iterator(); E minSoFar=iterator.next(); while (iterator.hasNext()) { minSoFar=min(minSoFar,iterator.next()); } return minSoFar; }
Returns the smallest of the specified values according to this ordering. If there are multiple smallest values, the first of those is returned.
public String globalInfo(){ return "The normalized polynomial kernel.\n" + "K(x,y) = <x,y>/sqrt(<x,x><y,y>) where <x,y> = PolyKernel(x,y)"; }
Returns a string describing the kernel
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public static BufferedReader newReader(URL url) throws MalformedURLException, IOException { return IOGroovyMethods.newReader(configuredInputStream(null,url)); }
Creates a buffered reader for this URL.
public void draw(Graphics2D graphics2D,AttributedCharacterIterator aci){ int numGlyphs=getNumGlyphs(); aci.first(); TextPaintInfo tpi=(TextPaintInfo)aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.PAINT_INFO); if (tpi == null) return; if (!tpi.visible) return; Paint fillPaint=tpi.fillPaint...
Draws this glyph vector.
public boolean isSmoothScrolling(){ return smoothScrolling && !disableSmoothScrolling; }
Indicates that scrolling through the component should work as an animation
@RequestMapping(value="/account/change_password",method=RequestMethod.POST,produces=MediaType.TEXT_PLAIN_VALUE) @Timed public ResponseEntity<?> changePassword(@RequestBody String password){ if (!checkPasswordLength(password)) { return new ResponseEntity<>("Incorrect password",HttpStatus.BAD_REQUEST); } userSe...
POST /account/change_password : changes the current user's password
private boolean doAcquireNanos(int arg,long nanosTimeout) throws InterruptedException { if (nanosTimeout <= 0L) return false; final long deadline=System.nanoTime() + nanosTimeout; final Node node=addWaiter(Node.EXCLUSIVE); boolean failed=true; try { for (; ; ) { final Node p=node.predecessor(); ...
Acquires in exclusive timed mode.
public PackageDeclaration newPackageDeclaration(){ PackageDeclaration result=new PackageDeclaration(this); return result; }
Creates an unparented package declaration node owned by this AST. The package declaration initially declares a package with an unspecified name.
public void flushDiskCache(){ synchronized (mDiskCacheLock) { mIsDelayFlushing=false; if (mDiskLruCache != null) { try { mDiskLruCache.flush(); if (DEBUG) { Log.d(TAG,"Disk cache flushed"); } } catch ( IOException e) { Log.e(TAG,"flush - " + e); ...
Flushes the disk cache associated with this ImageProvider object. Note that this includes disk access so this should not be executed on the main/UI thread.
@SuppressWarnings({"rawtypes","unchecked"}) @Test public void testNodeProcessing() throws InterruptedException { MultiWindowSumKeyVal<String,Integer> oper=new MultiWindowSumKeyVal<String,Integer>(); CollectorTestSink swinSink=new CollectorTestSink(); oper.sum.setSink(swinSink); oper.beginWindow(0); KeyValPair...
Test functional logic
public void attach(Portrayal3D portrayal,String name,boolean visible){ destroySceneGraph(); Portrayal3DHolder p=new Portrayal3DHolder(portrayal,name,visible); portrayals.add(p); popup.add(p.menuItem); dirty=true; portrayal.setCurrentDisplay(this); createSceneGraph(); }
Attaches a portrayal to the Display3D, along with the provided human-readable name for the portrayal. The portrayal will be transformed, along with similar attached portrayals, according to the Display3D's internal transform. The portrayal may be attached initially visible or not visible.
public CProjectViewFinder(final AbstractSQLProvider provider){ m_provider=provider; }
Creates a new finder object.
private void writeQName(javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI=qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String prefix=xmlWriter.getPrefix(namespaceURI); if (prefix == null) {...
method to handle Qnames
public static String doubleArrayToString(double[] value){ if (value == null) { return ("null"); } if (value.length == 0) { return (""); } StringBuilder sb=new StringBuilder(); sb.append(value[0]); for (int i=1; i < value.length; ++i) { sb.append("," + value[i]); } return (sb.toString()); }...
Convert a double array to a comma separated value string
public static <T>T randomizeObject(IDiscordClient client,Class<T> clazz) throws IllegalAccessException, InvocationTargetException, InstantiationException { if (canBeRandomized(clazz)) { if (String.class.isAssignableFrom(clazz)) return (T)getRandString(); else if (Character.class.isAssignableFrom(clazz)) ...
Randomly constructs an object.
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (xmlWriter.getPrefix(namespace) == null) { xmlWriter.writeNamespace(prefix,namespace); x...
Util method to write an attribute with the ns prefix
public static String format(final Map<String,Set<String>> parameters,final String encoding){ final StringBuilder result=new StringBuilder(); for ( Map.Entry<String,Set<String>> parameter : parameters.entrySet()) { final String encodedName=encode(parameter.getKey(),encoding); final Set<String> values=parame...
Returns a String that is suitable for use as an <code>application/x-www-form-urlencoded</code> list of parameters in an HTTP PUT or HTTP POST.
public void fixupVariables(java.util.Vector vars,int globalsSize){ super.fixupVariables(vars,globalsSize); m_expr.fixupVariables(vars,globalsSize); }
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
private static void reinsertActionAndUtilityNodes(BNetwork reduced,BNetwork original){ for ( ActionNode n : original.getActionNodes()) { if (!reduced.hasActionNode(n.getId())) { reduced.addNode(n.copy()); } } for ( UtilityNode n : original.getUtilityNodes()) { if (!reduced.hasUtilityNode(n.get...
Reinserts the action and utility nodes in the reduced dialogue state.
public InputStream createInput(String filename){ InputStream input=createInputRaw(filename); if ((input != null) && filename.toLowerCase().endsWith(".gz")) { try { return new GZIPInputStream(input); } catch ( IOException e) { e.printStackTrace(); return null; } } return input; ...
Simplified method to open a Java InputStream. <p/> This method is useful if you want to use the facilities provided by PApplet to easily open things from the data folder or from a URL, but want an InputStream object so that you can use other Java methods to take more control of how the stream is read. <p/> If the reque...
public static List<TimeSynchronizationSample> createTolerableSortedSamples(final long startValue,final int count){ final List<TimeSynchronizationSample> samples=createTolerableSamples(startValue,count); Collections.sort(samples); return samples; }
Creates count sorted synchronization samples with a time offset that is tolerable.
public BitmapPool(int bitmapWidth,int bitmapHeight,Bitmap.Config config){ this.width=bitmapWidth; this.height=bitmapHeight; this.config=config; }
Construct a Bitmap pool with desired Bitmap parameters
private static void updateStoragePorts(List<URI> ids,VirtualArrayAssignmentChanges changes){ if (ids.isEmpty()) { return; } List<StoragePortRestRep> storagePorts=StoragePortUtils.getStoragePorts(ids); for ( StoragePortRestRep storagePort : storagePorts) { StoragePortUpdate update=new StoragePortUpdate(...
Updates the given storage ports with the virtual array assignment changes.
StatementPatternNode stmtPatternWithVars(final String varName1,final String varName2){ final StatementPatternNode spn=(StatementPatternNode)new Helper(){ { tmp=statementPatternNode(varNode(varName1),constantNode(a),varNode(varName2)); } } .getTmp(); return spn; }
Returns a fresh statement pattern with the specified variables bound.
private static String wordShapeDan2(String s,Collection<String> knownLCWords){ StringBuilder sb=new StringBuilder("WT-"); char lastM='~'; boolean nonLetters=false; int len=s.length(); for (int i=0; i < len; i++) { char c=s.charAt(i); char m=c; if (Character.isDigit(c)) { m='d'; } else ...
A fine-grained word shape classifier, that equivalence classes lower and upper case and digits, and collapses sequences of the same type, but keeps all punctuation, etc. <p> <i>Note:</i> We treat '_' as a lowercase letter, sort of like many programming languages. We do this because we use '_' joining of tokens in some...
public static Parser<Character,String> strBetween(Parser<Character,Character> open,Parser<Character,Character> close){ return null; }
A parser which parses a string between a pair of enclosing characters.
@Override public String toString(){ final StringBuilder b=new StringBuilder(); if (typeMatching) { b.append(PM_SEPARATOR); b.append(PM_TYPE_MATCH); } if (exactMatching) { b.append(PM_SEPARATOR); b.append(PM_EXACT_MATCH); } if (similarMatching) { b.append(PM_SEPARATOR); b.append(PM_SI...
Return a simple string representation.
public void addButtonActionPerformed(){ int nodeAddress=readNodeAddress(); if (nodeAddress < 0) { return; } curNode=(SerialNode)SerialTrafficController.instance().getNodeFromAddress(nodeAddress); if (curNode != null) { statusText1.setText(rb.getString("Error1") + Integer.toString(nodeAddress) + rb.get...
Method to handle add button
private void installHack(Configuration config){ if (this.getName().equals("testSendBytesAsLargeOnBridgeOnly")) { for ( ClusterConnectionConfiguration conn : config.getClusterConfigurations()) { conn.setMinLargeMessageSize(1000); } } }
the hack to create the failing condition in certain tests
public CanvasLayer(Graphics gfx,Canvas canvas){ this.gfx=gfx; this.canvas=canvas; super.setTile(canvas.image.createTexture(Texture.Config.DEFAULT)); }
Creates a canvas layer with the supplied backing canvas. The canvas will immediately be uploaded to the GPU for display.
VcfInfoStripper(boolean removeAll){ mRemoveAll=removeAll; mKeepMode=false; mInfos=null; }
Remove all info fields from header and records
public UpdateRequest version(long version){ this.version=version; return this; }
Sets the version, which will cause the index operation to only be performed if a matching version exists and no changes happened on the doc since then.
public void visitParameter(String name,int access){ if (api < Opcodes.ASM5) { throw new RuntimeException(); } if (mv != null) { mv.visitParameter(name,access); } }
Visits a parameter of this method.
public Swapper(final CommonIndex primary,final CommonIndex secondary){ mPrimary=primary; mSecondary=secondary; }
Swapper for two index arrays.
@Deprecated public static double random(){ return uniform(); }
Returns a random real number uniformly in [0, 1).
private void doStepFlying(IMovingAgent target,boolean checkBoundaries,boolean checkHive){ nectarLoad-=nectarForOneStep; if (target != null) { headTo(target); } if (getState() != State.foraging) foragingCosts+=nectarForOneStep; if (nectarLoad < 0) { setState(State.dead); return; } if (checkHi...
Do flying. During the flight is checked if the boundaries of the simulation are left. If so the bee is reverting the flying vector. This method takes the current target position in account when setting the new direction. If no target is given the current direction is kept and only the avoidance of objects is computed.
private static float patternMatchVariance(int[] counters,int[] pattern,float maxIndividualVariance){ int numCounters=counters.length; int total=0; int patternLength=0; for (int i=0; i < numCounters; i++) { total+=counters[i]; patternLength+=pattern[i]; } if (total < patternLength) { return Float...
Determines how closely a set of observed counts of runs of black/white values matches a given target pattern. This is reported as the ratio of the total variance from the expected pattern proportions across all pattern elements, to the length of the pattern.
public void clearTimes(){ super.removeElement(When.KEY); }
Removes all existing event time instances.
private void initGraph(){ hasNewPoint=false; maxXaxis=0.1; maxY1axis=10; maxY2axis=0.4; graph=(GraphView)findViewById(R.id.analytics_graph); speedGraphSeries=new LineGraphSeries<>(); graph.addSeries(speedGraphSeries); graph.getGridLabelRenderer().setVerticalLabelsColor(0xFF009688); graph.getViewport()...
init and setup Graph Contents
protected boolean isOnlyReceipt(){ super.setIsOnlyReceipt(pickcombo.getValue().equals(3)); return super.isOnlyReceipt(); }
Determines whether the Delivery Rule is set to 'OnlyReciept'
public ContainerVm(int id,int userId,double mips,float ram,long bw,long size,String vmm,ContainerScheduler containerScheduler,ContainerRamProvisioner containerRamProvisioner,ContainerBwProvisioner containerBwProvisioner,List<? extends ContainerPe> peList){ setId(id); setUserId(userId); setUid(getUid(userId,id)); ...
Creates a new VMCharacteristics object.
private static String unqualify(String path){ path=path.replace('\\','/'); return path.substring(path.lastIndexOf('/') + 1); }
Returns an unqualified version of the given file path.
public PrivateMLet(URL[] urls,ClassLoader parent,boolean delegateToCLR){ super(urls,parent,delegateToCLR); }
Constructs a new PrivateMLet for the given URLs. The URLs will be searched in the order specified for classes and resources after first searching in the specified parent class loader. The parent argument will be used as the parent class loader for delegation.
protected RealLiteralImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private void onConnectClicked(final View view){ showDeviceScanningDialog(); }
Called when SELECT DEVICE button has been clicked.
@SuppressWarnings("UnusedDeclaration") public KeyValuePersistenceSettings(File settingsFile){ InputStream in; try { in=new FileInputStream(settingsFile); } catch ( IOException e) { throw new IgniteException("Failed to get input stream for Cassandra persistence settings file: " + settingsFile.getAbsolute...
Constructs Ignite cache key/value persistence settings.
@Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main); initData(); initView(); }
Called when the activity is first created.
public boolean hasMoreNormalElements(){ return this.getTurnNormalEnum().hasMoreElements(); }
Determine if we've iterated to the end of our turn markers.
public EagerMmapSpaces(){ super(Options.set,"Eager Mmap Spaces","If true, all spaces are eagerly demand zero mmapped at boot time",false); }
Create the option.
private void drawTriangle(Canvas canvas,Paint paint,float[] path,float x,float y){ path[0]=x; path[1]=y - size - size / 2; path[2]=x - size; path[3]=y + size; path[4]=x + size; path[5]=path[3]; drawPath(canvas,path,paint,true); }
The graphical representation of a triangle point shape.
@TCB private static int longestPrefixOfGoodCodeunits(String s){ int n=s.length(), i; for (i=0; i < n; ++i) { char ch=s.charAt(i); if (ch < 0x20) { if (IS_BANNED_ASCII[ch]) { return i; } } else if (0xd800 <= ch) { if (ch <= 0xdfff) { if (i + 1 < n && Character.isSur...
The number of code-units at the front of s that form code-points in the XML Character production.
public void processScrollEvent(ActionEvent event){ int currentRow=1; if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("TRACE: ResultSetBean.processScrollEvent "); } FacesContext context=FacesContext.getCurrentInstance(); UIComponent component=event.getComponent(); Integer curRow=(Integer)component.getAt...
Handles the ActionEvent generated as a result of clicking on a link that points a particular page in the result-set.
private void addMenuBar(){ menuBar.add(file); file.add(new OpenAction(this)); file.add(new SaveAction(this)); file.add(new SaveAsAction(this)); file.addSeparator(); file.add(TextWorldActions.getTextAction(world)); file.addSeparator(); file.add(new CloseAction(this.getWorkspaceComponent())); loadDictio...
Adds menu bar to the top of TextWorldComponent.
public String convertSystemNameToAlternate(String systemName){ return (SerialAddress.convertSystemNameToAlternate(systemName)); }
Public method to convert system name to its alternate format <P> Returns a normalized system name if system name is valid and has a valid alternate representation, else return "".