code
stringlengths
10
174k
nl
stringlengths
3
129k
protected void prepare(){ ProcessInfoParameter[] para=getParameter(); for (int i=0; i < para.length; i++) { String name=para[i].getParameterName(); if (para[i].getParameter() == null) ; else log.log(Level.SEVERE,"Unknown Parameter: " + name); } m_matchers=MBankStatementMatcher.getMatchers(getCt...
Prepare - e.g., get Parameters.
private RopeByteString(ByteString left,ByteString right){ this.left=left; this.right=right; leftLength=left.size(); totalLength=leftLength + right.size(); treeDepth=Math.max(left.getTreeDepth(),right.getTreeDepth()) + 1; }
Create a new RopeByteString, which can be thought of as a new tree node, by recording references to the two given strings.
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 String toString(JSONObject jo) throws JSONException { StringBuffer sb=new StringBuffer(); int i; JSONArray ja; String key; Iterator keys; int length; Object object; String tagName; String value; tagName=jo.optString("tagName"); if (tagName == null) { return XML.escape(jo.toString...
Reverse the JSONML transformation, making an XML text from a JSONObject. The JSONObject must contain a "tagName" property. If it has children, then it must have a "childNodes" property containing an array of objects. The other properties are attributes with string values.
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 static IndexType createNonUnique(){ return createNonUnique(false,false); }
Create a non-unique index.
public static void overScrollBy(final PullToRefreshBase<?> view,final int deltaX,final int scrollX,final int deltaY,final int scrollY,final int scrollRange,final boolean isTouchEvent){ overScrollBy(view,deltaX,scrollX,deltaY,scrollY,scrollRange,0,DEFAULT_OVERSCROLL_SCALE,isTouchEvent); }
Helper method for Overscrolling that encapsulates all of the necessary function. This version of the call is used for Views that need to specify a Scroll Range but scroll back to it's edge correctly.
public GlassFish3xStandaloneLocalConfigurationCapability(){ this.propertySupportMap.put(DatasourcePropertySet.DATASOURCE,Boolean.TRUE); this.propertySupportMap.put(DatasourcePropertySet.TRANSACTION_SUPPORT,Boolean.TRUE); this.propertySupportMap.put(ResourcePropertySet.RESOURCE,Boolean.TRUE); this.propertySuppor...
Initialize the configuration-specific supports Map.
public PLVector3(){ super(); x=y=z=0.0f; }
init methods
public void testConstrStringWithoutExpPos1(){ String a="732546982374982347892379283571094797.287346782359284756"; int aScale=18; BigInteger bA=new BigInteger("732546982374982347892379283571094797287346782359284756"); BigDecimal aNumber=new BigDecimal(a); assertEquals("incorrect value",bA,aNumber.unscaledValue...
new BigDecimal(String value); value does not contain exponent
public void login(String username,String password) throws IOException { String requestUrl=RESOURCE + "/login"; Credentials creds=new Credentials(); creds.setPassword(password); creds.setUsername(username); ArgusResponse response=getClient().executeHttpRequest(ArgusHttpClient.RequestType.POST,requestUrl,creds)...
Logs into Argus.
public static void copy(URL from,OutputStream to) throws IOException { asByteSource(from).copyTo(to); }
Copies all bytes from a URL to an output stream.
protected S_AssignmentImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public Builder gradient(Gradient val){ gradient=val; return this; }
if u want generate a heat map with different colors,u need to set this
public void init(boolean forEncryption,CipherParameters params){ if (params instanceof KeyParameter) { workingKey=((KeyParameter)params).getKey(); setKey(workingKey); return; } throw new IllegalArgumentException("invalid parameter passed to RC4 init - " + params.getClass().getName()); }
initialise a RC4 cipher.
public void addCharacters(String str) throws IOException { charsAddedBetweenTags_=true; writer_.write(str); }
Adds a string to the xml document.
public final CC push(Float weightX,Float weightY){ return pushX(weightX).pushY(weightY); }
Same functionality as <code>pushX(weightX).pushY(weightY)</code> which means this cell will push in both x and y dimensions. This method returns <code>this</code> for chaining multiple calls. <p> For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
public static TermRangeQuery newStringRange(String field,String lowerTerm,String upperTerm,boolean includeLower,boolean includeUpper){ BytesRef lower=lowerTerm == null ? null : new BytesRef(lowerTerm); BytesRef upper=upperTerm == null ? null : new BytesRef(upperTerm); return new TermRangeQuery(field,lower,upper,i...
Factory that creates a new TermRangeQuery using Strings for term text.
public static double mostToxicRow(LogicCircuit lc){ Double min_growth=1.0; for ( Gate g : lc.get_output_gates()) { if (!g.get_toxicity().isEmpty()) { if (Collections.min(g.get_toxicity()) < min_growth) { min_growth=Collections.min(g.get_toxicity()); } } } return min_growth; }
A gate Toxicity score == worst Toxicity score among all rows of the truth table
public MemoryExampleTable(List<Attribute> attributes,DataRowReader i,boolean permute){ this(attributes); readExamples(i,permute); }
Creates an empty memory example table and fills it with the data rows read from i.
public UnixTerminal(InputStream terminalInput,OutputStream terminalOutput,Charset terminalCharset) throws IOException { this(terminalInput,terminalOutput,terminalCharset,CtrlCBehaviour.CTRL_C_KILLS_APPLICATION); }
Creates a UnixTerminal using a specified input stream, output stream and character set. Ctrl+c signal will be trapped instead of killing the application.
private boolean ruleInScale(Rule rule,double currentScaleDenominator){ boolean inScale=true; if (rule.getMinScaleDenominator() > 0 && currentScaleDenominator < rule.getMinScaleDenominator()) { inScale=false; } if (rule.getMaxScaleDenominator() < Double.POSITIVE_INFINITY && currentScaleDenominator > rule.get...
This method evaluates the rule against the current scale denominator.
public Transform(double radians,double scaleX,double scaleY,double translateX,double translateY){ super(scaleX * Math.cos(radians),scaleY * Math.cos(radians),Math.sin(radians),-Math.sin(radians),translateX,translateY); }
A transform that rotates, scales and translates
public float[] array(float[] array){ if (array == null || array.length != count) { array=new float[count]; } System.arraycopy(data,0,array,0,count); return array; }
Copy as many values as possible into the specified array.
protected void notifyUpdate(String key,Map<String,Object> value){ if (value.size() == 1) { Map.Entry<String,Object> entry=value.entrySet().iterator().next(); notifyUpdate(entry.getKey(),entry.getValue()); return; } for ( ISharedObjectListener listener : listeners) { listener.onSharedObjectUpdate(...
Notify listeners on map attribute update
public ApproximationSetCollector(){ this(null,null); }
Constructs an unattached collector for recording Pareto dominance approximation sets from an algorithm.
public final synchronized void printLine(String format){ String s=String.format(Locale.US,format,new Object[]{}); addLine(s); }
Write a line to the pipe.
@Override public void write(String str){ write(str.toCharArray()); }
Writes the characters from the specified string to the target.
public void recordVariable(String typeDesc,String varName,int varNo,SymbolTable tbl) throws CompileError { char c; int dim=0; while ((c=typeDesc.charAt(dim)) == '[') ++dim; int type=MemberResolver.descToType(c); String cname=null; if (type == CLASS) { if (dim == 0) cname=typeDesc.substring(1,typeD...
Makes the given variable name available.
private static void notifyListeners(final DistributedMember member,final boolean client,final EventType typeOfEvent){ startMonitoring(); ThreadPoolExecutor queuedExecutor=executor; if (queuedExecutor == null) { return; } final ClientMembershipEvent event=new InternalClientMembershipEvent(member,client); ...
Notifies registered listeners that a Client member has joined. The new member may be a client connecting to this process or a server that this process has just connected to.
public static int toRealPosition(int position,int count){ position=position - 1; if (position < 0) { position+=count; } else { position=position % count; } return position; }
helper function which may be used when implementing FragmentPagerAdapter
public DynamicLayout(CharSequence base,TextPaint paint,int width,Alignment align,float spacingmult,float spacingadd,boolean includepad){ this(base,base,paint,width,align,spacingmult,spacingadd,includepad); }
Make a layout for the specified text that will be updated as the text is changed.
@Override public void put(Mean other){ if (other instanceof MeanVariance) { final double nwsum=other.n + this.n; final double delta=other.m1 - this.m1; final double rval=delta * other.n / nwsum; this.m1=(this.n * this.m1 + other.n * other.m1) / nwsum; this.m2+=((MeanVariance)other).m2 + delta * th...
Join the data of another MeanVariance instance.
private void addEndpoints(Geometry geom){ if (geom instanceof LineString) { addEndpoints(geom.getCoordinates()); } else if (geom instanceof GeometryCollection) { GeometryCollection gc=(GeometryCollection)geom; for (int i=0; i < gc.getNumGeometries(); i++) { addEndpoints(gc.getGeometryN(i)); ...
Tests the endpoint vertices defined by a linear Geometry for the best inside point. If a Geometry is not of dimension 1 it is not tested.
boolean willForward(Integer row){ return nodeForwarding.containsKey(row); }
Checks if a node's row appears to be forwarded to a parent node as a result of collapse.
public static String submitJar(Config config,String localJar){ throw new UnsupportedOperationException("submitJar unsupported"); }
Submits a topology to run on the cluster. A topology runs forever or until explicitly killed.
public static Vinci base(Context context){ if (Base_singleton == null) { synchronized (Vinci.class) { if (Base_singleton == null) { Base_singleton=new Vinci(context); } } } return Base_singleton; }
create correct vinci object and make sure have one true instance
public void createSubUsageScenario03() throws Exception { long usageStartTime=DateTimeHandling.calculateMillis("2012-12-01 00:00:00") - DateTimeHandling.weeksToMillis(0.5); BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime); VOServiceDetails serviceDetails=serviceSetup.createPublishAndActivateMarke...
Creates the subscription test data for the overlapping scenario with billing period start time. Usage started before the billing period and ended after the Billing Period Start Time. usage started before Billing Period Start Time usage ended after Billing Period Start Time
public void clearDatabase() throws SQLException { Database db=new Database(App.getInstance().getApplicationContext()); db.onUpgrade(db.getWritableDatabase(),0,1); db.close(); }
Clears all contents of the database (note: this does not include ODK forms or instances).
public void paintTreeCellBackground(SynthContext context,Graphics g,int x,int y,int w,int h){ }
Paints the background of the row containing a cell in a tree.
public String toStringSummary(){ return new ResultMatrixPlainText(this).toStringSummary(); }
returns the summary as string.
public static int nullSafeHashCode(double[] array){ if (array == null) { return 0; } int hash=INITIAL_HASH; int arraySize=array.length; for (int i=0; i < arraySize; i++) { hash=MULTIPLIER * hash + hashCode(array[i]); } return hash; }
Return a hash code based on the contents of the specified array. If <code>array</code> is <code>null</code>, this method returns 0.
protected void sequence_CatchBlock(ISerializationContext context,CatchBlock semanticObject){ if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject,N4JSPackage.Literals.CATCH_BLOCK__CATCH_VARIABLE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissi...
Contexts: CatchBlock<Yield> returns CatchBlock CatchBlock returns CatchBlock Constraint: (catchVariable=CatchVariable block=Block)
public QueryEvaluationException(String msg,Throwable cause){ super(msg,cause); }
Creates a new TupleQueryResultHandlerException wrapping another exception.
public SQLTransactionRollbackException(){ }
Creates an SQLTransactionRollbackException object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0.
public String displayModelInOldFormatTipText(){ return "Use old format for model output. The old format is " + "better when there are many class values. The new format " + "is better when there are fewer classes and many attributes."; }
Returns the tip text for this property
@DSSource({DSSourceKind.FILE}) @DSComment("Activity on IO class") @DSSpec(DSCat.IO) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:45.204 -0500",hash_original_method="9CBC8BBFD7044A0BC3A194777FBBD2CA",hash_generated_method="C43FAE37877C94D1A4278A353B3DC98F") public int read() th...
Reads a single byte from the current position in this file and returns it as an integer in the range from 0 to 255. Returns -1 if the end of the file has been reached. Blocks until one byte has been read, the end of the file is detected, or an exception is thrown.
public LessOp_ createLessOp_(){ LessOp_Impl lessOp_=new LessOp_Impl(); return lessOp_; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public Session open() throws Exception { return open(true); }
This is used to open a new <code>Session</code> object. If the session exists within the thread local it is returned and a reference count to the session is increased. This ensures that the session is not disposed of until all references to it are closed. By default this creates a strict session.
public TitleEntity(Shape area,Title title,String toolTipText){ this(area,title,toolTipText,null); }
Creates a new chart entity.
public void checkInlinable(ConfigData configData){ if (origData == null) { isInlinable=false; return; } if (configData.isStateFull(url)) { isInlinable=false; return; } if (isInIEComment) { isInlinable=false; return; } byte[] bytes=origData; if (bytes == null) { isInlinable=fa...
Initializing isInlinable by scaning origData.
protected void sequence_ExpressionStatement(ISerializationContext context,ExpressionStatement semanticObject){ if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject,N4JSPackage.Literals.EXPRESSION_STATEMENT__EXPRESSION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider....
Contexts: ScriptElement returns ExpressionStatement RootStatement<Yield> returns ExpressionStatement RootStatement returns ExpressionStatement Statement<Yield> returns ExpressionStatement Statement returns ExpressionStatement ExpressionStatement<Yield> returns ExpressionStatement ExpressionStatement returns ExpressionS...
public boolean isTreeTab(){ return m_vo.HasTree; }
Has Tree
public static int countLine(File file) throws IOException { int count=0; try (FileChannel fc=new RandomAccessFile(file,"r").getChannel()){ MappedByteBuffer buffer=fc.map(FileChannel.MapMode.READ_ONLY,0,fc.size()); byte prevChar=NEW_LINE; while (buffer.hasRemaining()) { byte currentChar=buffer.get(...
Counts the number of lines that contain data.
private PanelMenu(){ this.setText(Bundle.getMessage("MenuPanels")); JMenu newPanel=new JMenu(Bundle.getMessage("MenuItemNew")); newPanel.add(new jmri.jmrit.display.panelEditor.PanelEditorAction(Bundle.getMessage("PanelEditor"))); newPanel.add(new jmri.jmrit.display.controlPanelEditor.ControlPanelEditorAction(Bu...
The single PanelMenu must now be accessed via the instance() method
public void write(Writer writer) throws Exception { writer.write(toString()); writer.flush(); }
writes the current DOM document into the given writer.
public static TransactionEntry makeTransactionEntry(String type,String date,String shares,String price,String commission,String currency,String notes){ TransactionEntry entry=new TransactionEntry(); TransactionData data=new TransactionData(); if (type.equals("")) type="Buy"; data.setType(type); if (!date.eq...
Creates a transaction entry object.
public TreeRTGQuercusRobur(){ super(); this.logBlock=Blocks.LOG.getDefaultState(); this.leavesBlock=Blocks.LEAVES.getDefaultState(); this.trunkSize=4; this.crownSize=8; }
<b>Quercus Robur (Pedunculate Oak)</b><br><br> <u>Relevant variables:</u><br> logBlock, logMeta, leavesBlock, leavesMeta, <s>trunkSize</s>, <s>crownSize</s>, noLeaves<br><br> <u>DecoTree example:</u><br> DecoTree decoTree = new DecoTree(new TreeRTGQuercusRobur());<br> decoTree.treeType = DecoTree.TreeType.RTG_TREE;<br>...
public static final CButton createResetButton(boolean withText){ if (withText) return createResetButton(Msg.getMsg(Env.getCtx(),A_RESET)); return createResetButton(null); }
Create Reset Button wlth Standard text
public NoAuthenticationProvider() throws GuacamoleException { environment=new LocalEnvironment(); }
Creates a new NoAuthenticationProvider that does not perform any authentication at all. All attempts to access the Guacamole system are presumed to be authorized.
public static String tryGetHalfWidthText(final char ch){ if (sHalfWidthMap.containsKey(ch)) { return sHalfWidthMap.get(ch); } else { return null; } }
Returns half-width version of that character if possible. Returns null if not possible
private void doNormalCommandLineList(List<String> commandLineList,List<String> jointOptions,Path classpath){ commandLineList.add("--classpath"); commandLineList.add(classpath.toString()); if (jointCompilation) { commandLineList.add("-j"); commandLineList.addAll(jointOptions); } if (destDir != null) { ...
Add "groovyc" parameters to the commandLineList, based on the ant configuration.
public static <E>SortedSet<E> constrainedSortedSet(SortedSet<E> sortedSet,Constraint<? super E> constraint){ return new ConstrainedSortedSet<E>(sortedSet,constraint); }
Returns a constrained view of the specified sorted set, using the specified constraint. Any operations that add new elements to the sorted set will call the provided constraint. However, this method does not verify that existing elements satisfy the constraint. <p>The returned set is not serializable.
public boolean hasValue(){ return getValue() != null; }
Returns whether it has the value.
public void tellVersion(Actor player){ }
Tell the player the WorldEdit version.
public static final short BuildShortBE(byte bytevec[],boolean MSBFirst){ return BuildShortBE(bytevec,0); }
Build short out of bytes (in big endian order).
public void testGetAttribute(){ char expectedId1=20; char expectedId2=21; char actualId1; char actualId2; unknownAttributesAttribute.addAttributeID(expectedId1); unknownAttributesAttribute.addAttributeID(expectedId2); actualId1=unknownAttributesAttribute.getAttribute(0); actualId2=unknownAttributesAttri...
Tests that getAttribute() return the correct attribute id, preserving entry order.
public void write(Object obj,String localName,String uri) throws XMLStreamException { _xml.add(obj,localName,uri); }
Writes the specified object as a fully qualified nested element of unknown type (<code>null</code> objects are ignored). The nested XML element may contain a class attribute identifying the object type.
@Interruptible private static boolean isPrefix(String a,byte[] b){ int aLen=a.length(); if (aLen > b.length) { return false; } for (int i=0; i < aLen; i++) { if (a.charAt(i) != ((char)b[i])) { return false; } } return true; }
Is string <code>a</code> a prefix of string <code>b</code>. String <code>b</code> is encoded as an ASCII byte array.
public Object internalRemove(Object key){ return context.remove(key); }
remove a key/value pair from the internal storage
public QueryTask sendQueryAndWait(QueryTask query) throws Throwable { return ServiceHostUtils.sendQueryAndWait(hosts[0],"test-host",query); }
Wait for a query to returns particular information.
@Override public void run(){ amIActive=true; String inputFile; String outputFile; boolean flag; int row, col, rN, cN, r, c, count; double xCoord, yCoord; int progress; int i, a; boolean patternMatch; double value, z, zN; int[] neighbours=new int[8]; int FID=0; int[] rowVals=new int[2]; int[]...
Used to execute this plugin tool.
public static void traverseResolverTreeAndGetStartAndEndKey(SegmentProperties segmentProperties,AbsoluteTableIdentifier tableIdentifier,FilterResolverIntf filterResolver,List<IndexKey> listOfStartEndKeys) throws QueryExecutionException { IndexKey searchStartKey=null; IndexKey searchEndKey=null; long[] startKey=ne...
method will set the start and end key for as per the filter resolver tree utilized visitor pattern inorder to populate the start and end key population.
public GoogleBaseQuery(URL feedUrl){ super(feedUrl); }
Creates a Google Base query.
public boolean isUsePriors(){ return usePriors; }
Returns whether or not this object uses the prior probabilities for classification.
static public void put(Throwable exception){ put((String)null,exception); }
Logs an exception to the static log destination.
public String lambdaTipText(){ return "The regularization constant. (default = 0.0001)"; }
Returns the tip text for this property
private void present(){ glUseProgram(quadProgram); glBindVertexArray(vao); glBindTexture(GL_TEXTURE_2D,raytraceTexture); glBindSampler(0,this.sampler); glDrawArrays(GL_TRIANGLES,0,6); glBindSampler(0,0); glBindTexture(GL_TEXTURE_2D,0); glBindVertexArray(0); glUseProgram(0); }
Present the final image on the screen/viewport.
@Override public IGangliaMetadataMessage resolve(final IGangliaMetadataMessage decl){ return decl; }
Always returns the caller's argument.
public static void init(Context context){ if (context == null) throw new NullPointerException("The passed context is null, have you checked its validity?"); OneSheeldSdk.context=context; isInit=true; boolean oldDebuggingLogStatus=isDebuggingEnabled; isDebuggingEnabled=false; getManager().disconnectAll(); ...
Initialize the sdk. <p>This should be called before any other sdk methods.</p>
public static boolean isCurrentUserInRole(String authority){ SecurityContext securityContext=SecurityContextHolder.getContext(); Authentication authentication=securityContext.getAuthentication(); if (authentication != null) { if (authentication.getPrincipal() instanceof UserDetails) { UserDetails spring...
If the current user has a specific authority (security role). <p>The name of this method comes from the isUserInRole() method in the Servlet API</p>
@Override protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec){ super.onMeasure(widthMeasureSpec,heightMeasureSpec); int measureWidth=MeasureSpec.makeMeasureSpec(getMeasuredWidth() - getPaddingLeft() - getPaddingRight(),MeasureSpec.EXACTLY); int measureHeight=MeasureSpec.makeMeasureSpec(getMeasure...
Configure the width and height of the DraggerView.
public synchronized void flush(){ if (readOnly) { return; } if (pageStore != null) { pageStore.flushLog(); } if (mvStore != null) { try { mvStore.flush(); } catch ( RuntimeException e) { backgroundException=DbException.convert(e); throw e; } } }
Flush all pending changes to the transaction log.
private void initialize(){ mTxtAddress=(TextView)mRootView.findViewById(R.id.txt_sms_address); mTxtDate=(TextView)mRootView.findViewById(R.id.txt_sms_date); }
This method initializes member fields of this object
public Contribution(NondominatedPopulation referenceSet){ this(referenceSet,(EpsilonBoxDominanceComparator)null); }
Constructs the contribution indicator using the specified reference set. Exact matching is used.
public static DiscreteVariableType serializableInstance(){ return DiscreteVariableType.NOMINAL; }
Generates a simple exemplar of this class to test serialization.
private boolean isHalfClosed(){ return mIsHalfClosed; }
get whether the EspMeshSocket is half closed
public boolean isValid(){ return Math.abs(lat().radians()) <= S2.M_PI_2 && Math.abs(lng().radians()) <= S2.M_PI; }
Return true if the latitude is between -90 and 90 degrees inclusive and the longitude is between -180 and 180 degrees inclusive.
public static <T>T doPrivileged(PrivilegedAction<T> action,AccessControlContext context){ T result=action.run(); keepalive(context); return result; }
Performs the privileged action specified by <code>action</code>. When permission checks are made, if the permission has been granted by all frames below and including the one representing the call to this method, then the permission is granted iff it is granted by the AccessControlContext <code>context</code>. In other...
private void backupIcons(BackupDataOutput data) throws IOException { if (!initializeIconCache()) { dataChanged(); if (DEBUG) Log.d(TAG,"Launcher is not initialized, delaying icon backup"); return; } final ContentResolver cr=mContext.getContentResolver(); final int dpi=mContext.getResources().get...
Write all the static icon resources we need to render placeholders for a package that is not installed.
public static SafeHtmlMint fromPolicyFactory(PolicyFactory f){ return new SafeHtmlMint(f); }
Sanitizes a chunk of HTML producing a SafeHtml instance instead of appending chars to an output buffer.
public MLContext(JavaSparkContext sc) throws DMLRuntimeException { initializeSpark(sc.sc(),false,false); }
Create an associated MLContext for given spark session.
public PrincipalId updateGroupDetail(String tenantName,String groupName,GroupDetail detail) throws Exception { return getService().updateGroupDetail(tenantName,groupName,detail,this.getServiceContext()); }
Updates a security group in the system domain of the tenant
public void append(char c[],int off,int len) throws IOException { append(new String(c,off,len)); }
method to append a part of a char array
synchronized void uncheck(){ if (!checked) return; checked=false; int size=parents.size(); for (int x=0; x < size; x++) ((ParameterDatabase)(parents.elementAt(x))).uncheck(); }
Clears the checked flag
private Object executeLT(PageContext pc,SQL sql,Query qr,ZExpression expression,int row) throws PageException { return (executeCompare(pc,sql,qr,expression,row) < 0) ? Boolean.TRUE : Boolean.FALSE; }
execute a less than operation
public void testDecomposed() throws Exception { TokenStream stream=whitespaceMockTokenizer("\u0049\u0307STANBUL \u0049\u0307ZM\u0049\u0307R ISPARTA"); TurkishLowerCaseFilter filter=new TurkishLowerCaseFilter(stream); assertTokenStreamContents(filter,new String[]{"istanbul","izmir","\u0131sparta"}); }
Test decomposed forms
@ObjectiveCName("sendAudioWithPeer:withName:withDuration:withDescriptor:") public void sendAudio(@NotNull Peer peer,@NotNull String fileName,int duration,@NotNull String descriptor){ modules.getMessagesModule().sendAudio(peer,fileName,duration,descriptor); }
Send Audio message
protected int engineGetBlockSize(){ return core.getBlockSize(); }
Returns the block size (in bytes).
public void close(){ continuous.close(); discrete.close(); }
Close this Signal