code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public int answerQuestion(FormIndex index,IAnswerData data) throws JavaRosaException {
try {
return mFormEntryController.answerQuestion(index,data,true);
}
catch ( Exception e) {
throw new JavaRosaException(e);
}
}
| Attempts to save answer into the given FormIndex into the data model. |
public B second(){
return b;
}
| Returns the second value. |
public boolean hitObject(Object object,DrawInfo2D range){
AffineTransform transform=new AffineTransform();
transform.translate(range.draw.x,range.draw.y);
transform.scale(range.draw.width,range.draw.height);
Shape s=transform.createTransformedShape(shape);
return (s.intersects(range.clip.x,range.clip.y,range.... | If drawing area intersects selected area, add to the bag |
public static boolean checkControlAfState(CaptureResult result){
boolean missing=result.get(CaptureResult.CONTROL_AF_STATE) == null;
if (missing) {
Log.e(TAG,"\n!!!! TotalCaptureResult missing CONTROL_AF_STATE. !!!!\n ");
}
return !missing;
}
| Complain if CONTROL_AF_STATE is not present in result. Could indicate bug in API implementation. |
public void testValueOfNegScaleNeg(){
long a=-98374823947823578L;
int scale=-12;
BigDecimal aNumber=BigDecimal.valueOf(a,scale);
String result="-9.8374823947823578E+28";
assertTrue("incorrect value",aNumber.toString().equals(result));
}
| Create a BigDecimal from a negative long value; scale is negative |
public int numberAttributesSelected() throws Exception {
int[] att=selectedAttributes();
return att.length - 1;
}
| Return the number of attributes selected from the most recent run of attribute selection |
public boolean isRequired(){
return label.isRequired();
}
| Determines whether the XML attribute or element is required. This ensures that if an XML element is missing from a document that deserialization can continue. Also, in the process of serialization, if a value is null it does not need to be written to the resulting XML document. |
public void message(LocoNetMessage m){
if (handleMessageIplDeviceQuery(m)) {
return;
}
else if (handleMessageIplDeviceReport(m)) {
return;
}
else if (handleMessageIplProgramInitiate(m)) {
return;
}
else if (handleMessageIplProgramAddress(m)) {
return;
}
else if (handleMessageIplPro... | Process all incoming LocoNet messages to look for IPL operations. Ignores all other LocoNet messages. <p> |
@Override public String toString(){
if (eIsProxy()) return super.toString();
StringBuffer result=new StringBuffer(super.toString());
result.append(" (key: ");
result.append(key);
result.append(')');
return result.toString();
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public ZoomMenuAction(Object target) throws Exception {
super(COMMAND);
setActionCommand(COMMAND);
if (target != null && !(target instanceof JTree)) {
throw new Exception("Unsupported target component: " + target.getClass().getName());
}
this.target=target;
}
| Constructs a new Instance with a overgiven target. E.g. use your JTree as target object. The nodes of your tree owns their compiere model objects (PO) as user objects. Supported classes are: JTree. |
@Override public boolean isValid(final Object obj){
final ISPO spo=(ISPO)obj;
return add(spo);
}
| Vectored DISTINCT filter. |
public void sync(MemBufferHolder<NonVolatileMemAllocator> mbuf){
m_nvmasvc.sync(m_nid,getBufferAddress(mbuf),0L,true);
}
| sync. a buffer to underlying memory device. |
public void zoomOut(){
Matrix save=mViewPortHandler.zoomOut(getWidth() / 2f,-(getHeight() / 2f));
mViewPortHandler.refresh(save,this,true);
calculateOffsets();
postInvalidate();
}
| Zooms out by 0.7f, from the charts center. center. |
private void do3WayMouseClick(){
switch (turnoutState()) {
case 5:
if (singleSlipRoute) {
setLowerWestToLowerEast();
}
else {
setUpperWestToUpperEast();
}
break;
case 7:
if (singleSlipRoute) {
setLowerWestToUpperEast();
}
else {
setLowerWestToLowerEast();
}
break;
case 9:
if (singleSlipR... | Throw the turnouts for a 3 way Turnout when the icon is clicked |
void writeBytes(long dest,byte[] b,int offset,int len){
assert dest + len <= getPosition() : "dest=" + dest + " pos="+ getPosition()+ " len="+ len;
final long end=dest + len;
int blockIndex=(int)(end >> blockBits);
int downTo=(int)(end & blockMask);
if (downTo == 0) {
blockIndex--;
downTo=blockSize;
... | Absolute writeBytes without changing the current position. Note: this cannot "grow" the bytes, so you must only call it on already written parts. |
public void enableAllClasses(){
if (doNotCheckCapabilities()) {
return;
}
for ( Capability cap : Capability.values()) {
if (cap.isClass()) {
enable(cap);
}
}
}
| enables all class types |
private void storeGeoKey(int keyID,int tiffTag,int valueCount,int valueOrOffset) throws java.io.IOException {
int type=XTIFFField.TIFF_SHORT;
Object value=null;
if (tiffTag > 0) {
XTIFFField values=getField(tiffTag);
if (values != null) {
type=values.getType();
if (type == XTIFFField.TIFF_ASCI... | stores a single geoKey in the index table, from the existing field information |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
protected double scaledKernelDensity(RealVector vector){
return this.kernel.density(this.bandwidthToNegativeHalf.operate(vector));
}
| Scaled version of the kernel (K_H in the literature) |
public static double[][] fill(int m,int n,double c){
double[][] o=new double[m][n];
for (int i=0; i < o.length; i++) for (int j=0; j < o[i].length; j++) o[i][j]=c;
return o;
}
| Fills an m x n matrix of doubles with constant c. Example:<br> <code> double[][] u = fill(2, 3, 1.0);<br> Result is:<br> 1.0 1.0 1.0<br> 1.0 1.0 1.0<br> </code> |
public final void buildClassifier(Instances instances) throws Exception {
m_nb=new NaiveBayesUpdateable();
m_disc=new Discretize();
m_disc.setInputFormat(instances);
Instances temp=Filter.useFilter(instances,m_disc);
m_nb.buildClassifier(temp);
if (temp.numInstances() >= 5) {
m_errors=crossValidate(m_nb... | Build the no-split node |
public static String[] listChildFilenames(File file,FileFilter filter){
if (file == null) {
String msg=Logging.getMessage("nullValue.FileIsNull");
Logging.logger().severe(msg);
throw new IllegalArgumentException(msg);
}
String[] names=file.list();
if (names == null) return null;
ArrayList<String... | Returns an array of strings naming the files and directories in the directory denoted by the specified file, that satisfy the specified filter. If the filter is null, then all files and directories are accepted. This returns null if the specified file is not a directory. |
private static void checkFileValidation(File file){
if (file == null) throw new NullPointerException("File must not be null");
if (!file.exists()) {
throw new IllegalArgumentException("The file: " + file.getPath() + " doesn't exist.");
}
file.canRead();
}
| Checks if the file is a valid file and readable. |
public BinaryIn(){
in=new BufferedInputStream(System.in);
fillBuffer();
}
| Initializes a binary input stream from standard input. |
public boolean hasInsertionMode(){
return getInsertionMode() != null;
}
| Returns whether it has the insertion mode. |
@Override public String toString(){
return "MemLRUCapacityController with a capacity of " + this.getLimit() + " megabytes and and eviction action "+ this.getEvictionAction();
}
| Returns a brief description of this capacity controller. |
private static void increment(Map<ResultPoint,Integer> table,ResultPoint key){
Integer value=table.get(key);
table.put(key,value == null ? 1 : value + 1);
}
| Increments the Integer associated with a key by one. |
private void showContentAssistPopup(){
final ScrollableJPopupMenu popupMenu=createContentAssistPopup(field,possibleValues,multipleValuesAllowed,cellClass);
popupMenu.show(field,field.getX(),field.getY() + field.getHeight());
popupMenu.requestFocusInWindow();
}
| Shows the content assist popup. |
public static boolean checkAllValuesForNull(Object[] row){
if (checkNullForDims(row[0]) && checkNullForMeasures(row[2]) && null == row[1]) {
return true;
}
return false;
}
| Method to check whether entire row is empty or not. |
private boolean canFastTruncate(Session session,Table table,boolean descendants){
if (!table.getFullTextIndexes().isEmpty()) {
return false;
}
List<Table> tableList=new ArrayList<>();
tableList.add(table.getGroup().getRoot());
while (!tableList.isEmpty()) {
Table aTable=tableList.remove(tableList.size... | Determine if a Table can be truncated 'quickly' through the Store interface. This is possible if the entire group can be truncated. Specifically, all other tables in the group must have no rows. |
private void checkNotAddingDiscoveredEndpoints(Map<String,Network> networkMap,Network network){
List<String> discoveredEndpoints=new ArrayList<String>();
_log.info("checkNotAddingDiscoveredEndpoints: checking the endpoints are not discovered in another network");
for ( String ep : networkMap.keySet()) {
if (... | Check endpoints being added were not discovered to be in another network |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
@Override public Request<Workspace> create(Workspace workspace){
registerWorkspace(workspace);
return new DummyRequest<Workspace>(workspace);
}
| Creates the given workspace. |
public static String formatTimeWithMillis(double time){
boolean negative=false;
if (time < 0) {
negative=true;
time*=-1;
}
int hours=(int)time / 3600;
int minutes=(int)(time - (hours * 3600)) / 60;
int seconds=(int)time - (hours * 3600) - (minutes * 60);
double millis=time - (hours * 3600) - (minu... | Formats a double, in seconds, to a time string. Includes milliseconds. |
public JsonArray(){
elements=new ArrayList<JsonElement>();
}
| Creates an empty JsonArray. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:24.507 -0500",hash_original_method="78570188BA83CB17A52ACDCDF5E3A80D",hash_generated_method="3F08D34572092F7AB6792C9F52FB440B") protected boolean isReInvite(){
return this.reInviteFlag;
}
| Return true if this is a re-establishment of the dialog. |
public BYTE_ARRAY(String mimeType){
super(mimeType,"[B");
}
| Constructs a new doc flavor with the given MIME type and a print data representation class name of <CODE>"[B"</CODE> (byte array). |
public MetaBuilder start(){
return new MetaBuilder();
}
| Returns new builder of item meta data. |
static long calcMultiplicativeInverseLong(long a){
BigInteger oneShift64=BigInteger.valueOf(1).shiftLeft(64);
BigInteger oneShift63=BigInteger.valueOf(1).shiftLeft(63);
return BigInteger.valueOf(a).modPow(oneShift63.subtract(BigInteger.ONE),oneShift64).longValue();
}
| Calculate the multiplicative inverse of a value (long). |
public static String extractScheme(final String challengeStr) throws MalformedChallengeException {
if (challengeStr == null) {
throw new IllegalArgumentException("Challenge may not be null");
}
final int idx=challengeStr.indexOf(' ');
String s=null;
if (idx == -1) {
s=challengeStr;
}
else {
s=c... | Extracts authentication scheme from the given authentication challenge. |
private void selectButton(){
m_ParentButton.setSelected(true);
putValue(Action.NAME,"Frozen Proximitry Browsing. Selection changes do not change graph visibility");
putValue(Action.SHORT_DESCRIPTION,"Unfreeze Proximitry Browsing. Selection changes will change graph visibility");
m_ParentButton.setSelectedIcon(n... | Changes the button appearance to reflect a frozen graph. |
public boolean animateState(State newState){
State prevState=mState;
if (mState != newState) {
mState=newState;
mPropertyAnimator=cancelAnimator(mPropertyAnimator);
mPropertyAnimator=new AnimatorSet();
mPropertyAnimator.playTogether(ObjectAnimator.ofFloat(this,"desaturation",newState.desaturation),O... | Animates this drawable to a new state. |
static protected void logFine(String name,String s){
if (DEBUG) {
logStdErr("fine",name,s,null);
}
}
| Logging can require allocation of objects, so we wrap the logger so that failures are silently ignored. |
public Object runSafely(Catbert.FastStack stack) throws Exception {
String name=getString(stack);
if (Permissions.hasPermission(Permissions.PERMISSION_PLAYLIST,stack.getUIMgr())) {
Playlist rv=Wizard.getInstance().addPlaylist(name);
sage.plugin.PluginEventManager.postEvent(sage.plugin.PluginEventManager.PLA... | Creates a new Playlist object |
protected boolean readMethods(DataInputStream d) throws IOException {
method_info mi;
int i;
methods=new method_info[methods_count];
for (i=0; i < methods_count; i++) {
mi=new method_info();
mi.access_flags=d.readUnsignedShort();
mi.name_index=d.readUnsignedShort();
mi.descriptor_index=d.readUns... | Reads in the methods from the given stream. |
public WeightedReservoirSampler(){
random=new Random();
}
| Create a new sampler with a certain reservoir size. |
private static void removeStep(MethodNode mth,InstructionRemover remover){
for ( BlockNode block : mth.getBasicBlocks()) {
remover.setBlock(block);
for ( InsnNode insn : block.getInstructions()) {
switch (insn.getType()) {
case NOP:
case GOTO:
case NEW_INSTANCE:
remover.add(insn);
break;
def... | Remove unnecessary instructions |
@Override public boolean readCredentials(final URI targetUri,final AtomicReference<Credential> credentials){
validateTargetUri(targetUri);
final String targetName=this.getTargetName(targetUri);
Trace.writeLine("SecretStore::readCredentials");
if (!_credentialCache.readCredentials(targetUri,credentials)) {
c... | Reads credentials for a target URI from the credential store |
private void handleFile(File file,UriDeploymentScannerContext ctx){
boolean changed;
Long lastMod;
if (file.isDirectory()) {
GridTuple<Long> dirLastModified=F.t(file.lastModified());
changed=checkGarDirectoryChanged(file,dirLastModified);
lastMod=dirLastModified.get();
}
else {
lastMod=tstampCa... | Tests whether given directory or file was changed since last check and if so copies all directory sub-folders and files or file itself to the deployment directory and than notifies listener about new or updated files. |
public void testOrder() throws Exception {
StorageAgent agent=this.configureStorageService("testOrder",3);
assertEquals("Initial backups should be 0",0,agent.list().length);
int size=1;
for (int i=0; i < 3; i++) {
size=size * 10;
BackupSpecification backupSpecStore=createBackup("testOrder",size);
UR... | Verify that URLs are returned in backup order. This incidentally tests the ability to store and retrieve multiple backups. |
public int compareTo(UniqueString uniqueString){
return this.tok - uniqueString.tok;
}
| Not a compare method as usual for objects Delivers the difference in positions inside of the table, the unique strings are stored in |
public boolean hasUnsupportedCriticalExtension(){
return unsupportedCritExt;
}
| Return true if a critical extension is found that is not supported, otherwise return false. |
protected void mergeIntoWebXml() throws IOException {
File webappBase=new File(uriRoot);
File webXml=new File(webappBase,"WEB-INF/web.xml");
File webXml2=new File(webappBase,"WEB-INF/web2.xml");
String insertStartMarker=Localizer.getMessage("jspc.webinc.insertStart");
String insertEndMarker=Localizer.getMessa... | Include the generated web.xml inside the webapp's web.xml. |
public CheckBoxSmartTableCell(AbstractAction action,boolean selected){
checkBox=new JCheckBox(action);
checkBox.setSelected(selected);
}
| Creates a new instance of CheckBoxSmartTableCell |
private static void printPropertiesValues(Map<String,String> props){
Object[] keys=props.keySet().toArray();
for (int i=0; i < keys.length; i++) {
String key=(String)keys[i];
String value=props.get(key);
if (value != null) println(value);
else println("");
}
}
| Prints property values only. Useful for feeding into another process parameters. |
private void loadStoredNameAndAddress(){
if (DBG) Log.d(TAG,"Loading stored name and address");
if (mContext.getResources().getBoolean(com.android.internal.R.bool.config_bluetooth_address_validation) && Settings.Secure.getInt(mContentResolver,SECURE_SETTINGS_BLUETOOTH_ADDR_VALID,0) == 0) {
if (DBG) Log.d(... | Retrieve the Bluetooth Adapter's name and address and save it in in the local cache |
public double variance(int attIndex){
double sum=0, sumSquared=0, sumOfWeights=0;
if (!attribute(attIndex).isNumeric()) {
throw new IllegalArgumentException("Can't compute variance because attribute is " + "not numeric!");
}
for (int i=0; i < numInstances(); i++) {
if (!instance(i).isMissing(attIndex)) ... | Computes the variance for a numeric attribute. |
public static LayoutData createHorizontallyFilledLayoutData(int horizontalSpan){
return createLayoutData(Alignment.FILL,Alignment.CENTER,true,false,horizontalSpan,1);
}
| This is a shortcut method that will create a grid layout data object that will expand its cell as much as is can horizontally and make the component occupy the whole area horizontally and center it vertically |
public Fci(IndependenceTest independenceTest){
if (independenceTest == null || knowledge == null) {
throw new NullPointerException();
}
this.independenceTest=independenceTest;
this.variables.addAll(independenceTest.getVariables());
buildIndexing(independenceTest.getVariables());
}
| Constructs a new FCI search for the given independence test and background knowledge. |
public void launchAssociatedEditor(){
}
| Launches the editor for this edge, if there is one. |
public AgentAppController createController(){
return new DemoController();
}
| Factory method, responsible for creating the controller. |
public TransitSubModeQSimFactory(boolean routeOnSameMode){
this.routeOnSameMode=routeOnSameMode;
}
| adding TransitSubModeAgent and TransitSubModeQSimEngine |
public Jerry removeClass(String... classNames){
for ( Node node : nodes) {
String attrClass=node.getAttribute("class");
Set<String> classes=createPropertiesSet(attrClass,' ');
boolean wasChange=false;
for ( String className : classNames) {
if (classes.remove(className) == true) {
was... | Removes a single class, multiple classes, or all classes from each element in the set of matched elements. |
public boolean isStateActive(State state){
switch (state) {
case main_region_A:
return stateVector[0] == State.main_region_A;
case main_region_B:
return stateVector[0].ordinal() >= State.main_region_B.ordinal() && stateVector[0].ordinal() <= State.main_region_B_r2_D2.ordinal();
case main_region_B_r1_C1:
return st... | Returns true if the given state is currently active otherwise false. |
public NetFactory(){
for ( Object[] o : classTagArray) {
addStorableClass((String)o[1],(Class)o[0]);
}
for ( Object[] o : enumTagArray) {
addEnumClass((String)o[1],(Class)o[0]);
}
}
| Creates a new instance. |
public <T extends CnATreeElement>T save(CnATreeElement container,Class<T> clazz) throws CommandException {
return save(container,clazz,null);
}
| Creates a new instance of class clazz as a child of container. The new instance is saved in the database. A localized title of the instance is set on the server which locale may differ from the clients locale. |
public TransportClient removeTransportAddress(TransportAddress transportAddress){
nodesService.removeTransportAddress(transportAddress);
return this;
}
| Removes a transport address from the list of transport addresses that are used to connect to. |
public Object clone() throws CloneNotSupportedException {
ExceptionTable r=(ExceptionTable)super.clone();
r.entries=new ArrayList(entries);
return r;
}
| Creates and returns a copy of this object. The constant pool object is shared between this object and the cloned object. |
private void loadLongTextValues(){
addValues(descripcionBI.getValues(tipoFicha,ValorCampoGenericoVO.TIPO_TEXTO_LARGO,id));
}
| Carga los valores de los campos de texto largo de la ficha. |
public Builder withMargins(int left,int top,int right,int bottom){
params.setMargins(left,top,right,bottom);
return this;
}
| Sets the margins for the FAB in dp |
private List orient(List seq){
DirectedEdge startEdge=(DirectedEdge)seq.get(0);
DirectedEdge endEdge=(DirectedEdge)seq.get(seq.size() - 1);
Node startNode=startEdge.getFromNode();
Node endNode=endEdge.getToNode();
boolean flipSeq=false;
boolean hasDegree1Node=startNode.getDegree() == 1 || endNode.getDegree(... | Computes a version of the sequence which is optimally oriented relative to the underlying geometry. <p> Heuristics used are: <ul> <li>If the path has a degree-1 node which is the start node of an linestring, use that node as the start of the sequence <li>If the path has a degree-1 node which is the end node of an lines... |
public static ASN1Primitive parseExtensionValue(byte[] encExtValue) throws IOException {
return ASN1Primitive.fromByteArray(ASN1OctetString.getInstance(encExtValue).getOctets());
}
| Return the ASN.1 object contained in a byte[] returned by a getExtensionValue() call. |
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 boolean isEMailValid(){
return validateEmail(getInternetAddress()) != null;
}
| Is the email valid |
private void buildEditor(){
Box rangeEditor=Box.createVerticalBox();
createCategoryFields();
createRangeFields();
for (int i=0; i < categories.size(); i++) {
Box row=Box.createHorizontalBox();
row.add(Box.createRigidArea(new Dimension(10,0)));
row.add(new JLabel((i + 1) + ". "));
row.add(this.ca... | Builds the editor. |
@Override public void loadUrl(String url){
if (url.equals("about:blank") || url.startsWith("javascript:")) {
this.loadUrlNow(url);
}
else {
this.loadUrlIntoView(url);
}
}
| Load the url into the webview. |
public UpdateRequest add(final SolrInputDocument doc,Integer commitWithin,Boolean overwrite){
Objects.requireNonNull(doc,"Cannot add a null SolrInputDocument");
if (documents == null) {
documents=new LinkedHashMap<>();
}
Map<String,Object> params=new HashMap<>(2);
if (commitWithin != null) params.put(CO... | Add a SolrInputDocument to this request |
protected void clearEvents(){
sCInterface.clearEvents();
}
| This method resets the incoming events (time events included). |
public CRemoveAllViewAction(final JFrame parent,final BackEndDebuggerProvider debuggerProvider,final INaviView view){
Preconditions.checkNotNull(parent,"IE01354: Parent argument can not be null");
Preconditions.checkNotNull(debuggerProvider,"IE01355: Manager argument can not be null");
Preconditions.checkNotNull(... | Creates a new action object. |
@DSComment("constructor") @DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:34:05.697 -0500",hash_original_method="1E2502131AFAFEE705D62EA28BD1E532",hash_generated_method="476BB4A6DF32CC0368C94A292A50B98B") public Options(){
inDither=false;
inScaled=true... | Create a default Options object, which if left unchanged will give the same result from the decoder as if null were passed. |
@SuppressWarnings("unchecked") public synchronized E firstElement(){
if (elementCount > 0) {
return (E)elementData[0];
}
throw new NoSuchElementException();
}
| Returns the first element in this vector. |
protected void assertConnectorNotRunning(){
assertThat(engine.isRunning()).isFalse();
}
| Assert that the connector is NOT currently running. |
public TranslatableComponent(){
}
| Construct new empty TranslatableComponent. |
@Override public void doRun(int run) throws Exception {
if (getRawOutput()) {
if (m_ZipDest == null) {
m_ZipDest=new OutputZipper(m_OutputFile);
}
}
if (m_Instances == null) {
throw new Exception("No Instances set");
}
Instances runInstances=new Instances(m_Instances);
Random random=new Ra... | Gets the results for a specified run number. Different run numbers correspond to different randomizations of the data. Results produced should be sent to the current ResultListener |
public static String objectAsString(IObject stringObject,int limit) throws SnapshotException {
Integer count=(Integer)stringObject.resolveValue("count");
if (count == null) return null;
if (count.intValue() == 0) return "";
IPrimitiveArray charArray=(IPrimitiveArray)stringObject.resolveValue("value");
if ... | Convert a <code>java.lang.String</code> object into a String. |
public int keyAt(int index){
if (mGarbage) {
gc();
}
return mKeys[index];
}
| Given an index in the range <code>0...size()-1</code>, returns the key from the <code>index</code>th key-value mapping that this SparseArray stores. |
private boolean isCollectionEmpty(Collection collection){
if (collection != null) {
String collectionName=collection.getCollectionName();
String collectionId=collection.getCollectionId();
String parentCollectionId=collection.getParentCollectionId();
return (Strings.isNullOrEmpty(collectionName) && Str... | Determine if a Collection is empty. In other words, the user hasn't entered any information for a single field yet. |
@Override public void mouseExited(MouseEvent e){
}
| Stub Method - Not Used |
public void beginAccept4(WebRequest theRequest){
theRequest.addHeader("Accept","text/plain; q=0.5, text/html, text/html;level=1, text/html;level=2");
}
| "level" precedence test - "text/html;level=2" is higher than "text/html;level=1"" |
protected AbstractMatrix1D vFlip(){
if (size > 0) {
this.zero+=(this.size - 1) * this.stride;
this.stride=-this.stride;
this.isNoView=false;
}
return this;
}
| Self modifying version of viewFlip(). What used to be index <tt>0</tt> is now index <tt>size()-1</tt>, ..., what used to be index <tt>size()-1</tt> is now index <tt>0</tt>. |
public ST createSingleton(Token templateToken){
String template;
if (templateToken.getType() == GroupParser.BIGSTRING || templateToken.getType() == GroupParser.BIGSTRING_NO_NL) {
template=Misc.strip(templateToken.getText(),2);
}
else {
template=Misc.strip(templateToken.getText(),1);
}
CompiledST impl... | Create singleton template for use with dictionary values. |
public void deselectAll(){
deselectAll(true);
}
| Deselects all selected items in the receiver. |
private static void run(Generator generator,DTBuilder builder,DateValue[] expected) throws IteratorShortCircuitingException {
run(generator,builder,expected,true);
}
| Asserts the date values that a generator will produce. This method assumes that the given generator will eventually terminate. |
private void updateProfileList(ArrayList<String> s){
if (s == null) {
return;
}
ArrayList<String> ce_list=new ArrayList<>();
for (int i=0; i < profileComboBox.getItemCount(); i++) {
ce_list.add(profileComboBox.getItemAt(i).toString());
}
Iterator<String> itr=s.iterator();
while (itr.hasNext()) {
... | Update the profile combo box |
public static String substringBetween(String str,String tag){
return substringBetween(str,tag,tag);
}
| Devuelve un String envuelto por otro. Ej: substringBetween("*Hola*","*") => Hola |
public SessionChannel createSessionChannel(SecureChannel channel,Client client){
return new SessionChannel(client,this,channel);
}
| Create new unactivated session channel. Session Channel will be wrapped over secure channel. |
public boolean canEvaluate(){
return true;
}
| Asynchronous Steady-State EC only: Returns true if the problem is ready to evaluate. In most cases, the default is true. |
final public int capacity(){
return array.length;
}
| Returns the current length of the backing array. |
public Loader() throws CannotCompileException, NotFoundException {
super();
delegateLoadingOf("javassist.tools.reflect.Loader");
reflection=new Reflection();
ClassPool pool=ClassPool.getDefault();
addTranslator(pool,reflection);
}
| Constructs a new class loader. |
public void output(Vertex output){
if (!isEnabled()) {
return;
}
Vertex sense=output.mostConscious(Primitive.SENSE);
if ((sense == null) || (!getPrimitive().equals(sense.getData()))) {
return;
}
output.addRelationship(Primitive.INSTANTIATION,Primitive.TWEET);
output.getNetwork().createVertex(Primi... | Output the status or direct message reply. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.